/* Kacheln der Branchenseiten (Bob 02.10.26): kleine App-Bilder wie auf der
   IT-Seite, mit etwas Bewegung. Eigene Datei, weil stil.css die
   500-Zeilen-Grenze längst überschreitet; geladen nur auf Branchenseiten.
   Die Bilder liegen in .bild--mitte (Rahmen ~380 × 250, verschoben).
   Jede Bewegung startet erst mit .ist-sichtbar und spielt einmal ab —
   prefers-reduced-motion schaltet sie in stil.css ab. */

.fk { --blau: #1a6fe0; --grau: #7b8296; --linie: #e3eaf3; }
.fk-kopf { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 650; margin-bottom: 8px; }
.fk-kopf svg { width: 14px; height: 14px; color: var(--blau); }

@keyframes fk-rein { from { opacity: 0; transform: translateY(8px); } }
@keyframes fk-rutschen { from { opacity: 0; transform: translateX(26px); } }
@keyframes fk-pop { 0% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.08); } }
@keyframes fk-wachsen { from { width: 0; } }
@keyframes fk-weg { to { opacity: 0; visibility: hidden; } }
@keyframes fk-huepfen { 0%, 60%, 100% { transform: none; opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes fk-haken { from { background: #fff; border-color: #cfd8e3; } }
@keyframes fk-haken-svg { from { opacity: 0; transform: scale(.4); } }
@keyframes fk-waehlen { from { background: #fff; border-color: #edf1f6; color: #1f2c44; } }
@keyframes fk-zeiger { from { transform: translate(60px, 70px); opacity: 0; } 20% { opacity: 1; } }
@keyframes fk-klick { 0% { box-shadow: 0 0 0 0 rgba(26, 111, 224, .45); } 100% { box-shadow: 0 0 0 12px rgba(26, 111, 224, 0); } }
@keyframes fk-tropfen { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Vorlagen (Agentur, Bau): Zeiger wählt, Abschnitte folgen ---------- */
.fk--vorlagen .fb-vorlagen { width: 178px; }
.fk--vorlagen .fb-abschnitte { left: 208px; width: 168px; }
.fk-zeiger { left: 128px; top: 76px; }
.auftritt.ist-sichtbar .fk-zeiger { animation: fk-zeiger .8s .2s both; }
.auftritt.ist-sichtbar .fk--vorlagen .fb-vorlagen > span.ist-aktiv { animation: fk-waehlen .3s 1s both; }
.auftritt.ist-sichtbar .fk--vorlagen .fb-vorlagen > span.ist-aktiv i { animation: fk-pop .35s 1.1s both; }
.auftritt.ist-sichtbar .fk--vorlagen .fb-abschnitte { animation: fk-rutschen .5s 1.2s both; }
.auftritt.ist-sichtbar .fk--vorlagen .fb-abschnitte span { animation: fk-rein .4s both; animation-delay: 1.5s; }
.auftritt.ist-sichtbar .fk--vorlagen .fb-abschnitte span:nth-of-type(2) { animation-delay: 1.65s; }
.auftritt.ist-sichtbar .fk--vorlagen .fb-abschnitte span:nth-of-type(3) { animation-delay: 1.8s; }
.auftritt.ist-sichtbar .fk--vorlagen .fb-abschnitte span:nth-of-type(4) { animation-delay: 1.95s; }

/* ---------- Frag deine Meetings: Frage, Tippen, Antwort ---------- */
.fk-frage { position: absolute; left: 20px; top: 14px; width: 330px; display: flex; justify-content: flex-end; }
.fk-frage span { padding: 9px 14px; border-radius: 14px 14px 4px 14px; background: var(--blau); color: #fff; font-size: 11px; font-weight: 600; }
.fk-antwort { left: 20px; top: 64px; width: 330px; min-height: 44px; padding: 13px 14px 13px 40px; font-size: 10.5px; line-height: 1.5; color: #4c556b; }
.fk-antwort p { margin: 0 0 10px !important; font-size: 10.5px !important; color: #4c556b !important; }
.fk-tippen { position: absolute; left: 40px; top: 18px; display: flex; gap: 4px; }
.fk-tippen i { width: 6px; height: 6px; border-radius: 50%; background: #9cc4f5; animation: fk-huepfen 1s infinite; }
.fk-tippen i:nth-child(2) { animation-delay: .15s; } .fk-tippen i:nth-child(3) { animation-delay: .3s; }
.fk-antwort__inhalt { opacity: 1; }
.auftritt.ist-sichtbar .fk-frage { animation: fk-rein .45s .2s both; }
.auftritt.ist-sichtbar .fk-antwort { animation: fk-rein .45s .7s both; }
.fk-tippen { visibility: hidden; }
.auftritt.ist-sichtbar .fk-tippen { visibility: visible; animation: fk-weg .2s 1.9s both; }
.auftritt.ist-sichtbar .fk-antwort__inhalt { animation: fk-rein .5s 2s both; }

/* ---------- Aufgaben und Tabelle: Zeilen, Haken, To-Do-Knopf ---------- */
.fk-aufgaben { left: 40px; top: 12px; width: 300px; padding: 13px 15px; font-size: 10.5px; }
.fk-aufgabe { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; border-top: 1px solid #f1f4f8; }
.fk-aufgabe small { display: block; color: var(--grau); font-size: 9.5px; margin-top: 2px; }
.fk-box { width: 15px; height: 15px; flex: none; margin-top: 1px; border-radius: 5px; border: 1.5px solid var(--blau); background: var(--blau); display: grid; place-items: center; }
.fk-box svg { width: 10px; height: 10px; color: #fff; }
.fk-todo { display: flex; align-items: center; justify-content: center; gap: 7px; }
.fk-todo img { width: 14px; height: 14px; filter: brightness(0) invert(1); }
.auftritt.ist-sichtbar .fk-aufgabe, .auftritt.ist-sichtbar .fk-zeile { animation: fk-rein .4s calc(.2s + var(--i) * .3s) both; }
.auftritt.ist-sichtbar .fk-box { animation: fk-haken .25s calc(1.3s + var(--i) * .25s) both; }
.auftritt.ist-sichtbar .fk-box svg { animation: fk-haken-svg .25s calc(1.3s + var(--i) * .25s) both; }
.auftritt.ist-sichtbar .fk-todo { animation: fk-rein .4s 2.2s both, fk-klick .9s 2.8s; }
.fk-tabelle { width: 320px; left: 30px; }
.fk-zeile { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #f1f4f8; }
.fk-zeile em { font-style: normal; font-weight: 600; font-size: 9.5px; color: var(--blau); background: #eef6ff; border-radius: 6px; padding: 3px 7px; text-align: center; }
.fk-zeile b { font-size: 10px; font-variant-numeric: tabular-nums; color: #c0392b; background: #fdf0ee; padding: 2px 7px; border-radius: 6px; }

/* ---------- Sprecher (Agentur) ---------- */
.fk--sprecher .fb-sprecher { height: 220px; }
.fk-chip { position: absolute; left: 18px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #e9f8f0; color: #1e7a4c; font-size: 10px; font-weight: 650; }
.fk-chip svg { width: 11px; height: 11px; }
.auftritt.ist-sichtbar .fk-satz1 { animation: fk-rein .45s .2s both; }
.auftritt.ist-sichtbar .fk-satz2 { animation: fk-rein .45s 1s both; }
.auftritt.ist-sichtbar .fk-chip { animation: fk-pop .45s 1.9s both; }

/* ---------- Felder (Vertrieb) ---------- */
.fk-felder { left: 30px; top: 8px; width: 320px; padding: 13px 15px 8px; font-size: 10.5px; }
.fk-feld { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 7px 0; border-top: 1px solid #f1f4f8; }
.fk-feld small { color: var(--grau); font-size: 9.5px; }
.fk-feld span { font-weight: 550; }
.fk-felder .fk-feld:last-child span { color: var(--blau); font-weight: 650; }
.auftritt.ist-sichtbar .fk-felder .fk-feld, .auftritt.ist-sichtbar .fk-notiz .fk-feld { animation: fk-rein .4s calc(.2s + var(--i) * .28s) both; }

/* ---------- Meeting erkannt (Vertrieb) ---------- */
.fk-call { left: 0; top: 6px; width: 250px; height: 168px; padding: 10px; background: #1f2740; border-color: #1f2740; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.fk-call__kachel { height: 108px; border-radius: 10px; background: #2c3654; display: grid; place-items: center; }
.fk-call__kachel img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.fk-call__kachel:first-child { box-shadow: inset 0 0 0 2px #7aa7ee; }
.fk-call__leiste { grid-column: span 2; display: flex; justify-content: center; gap: 8px; }
.fk-call__leiste i { width: 22px; height: 22px; border-radius: 50%; background: #3a4566; }
.fk-call__leiste .fk-call__auf { background: #d93a3a; }
.fk-popup { left: 150px; top: 96px; width: 226px; display: flex; gap: 10px; padding: 12px 13px; font-size: 10px; }
.fk-popup > img { width: 24px; height: 24px; flex: none; }
.fk-popup b { display: block; font-size: 11px; } .fk-popup small { color: var(--grau); }
.fk-popup__knoepfe { display: flex; gap: 6px; margin-top: 8px; }
.fk-popup__knoepfe em { font-style: normal; font-weight: 600; padding: 4px 11px; border-radius: 7px; border: 1px solid var(--linie); }
.fk-popup__knoepfe .fk-popup__start { background: var(--blau); border-color: var(--blau); color: #fff; }
.fk-laeuft { left: 150px; top: 200px; display: flex; align-items: center; gap: 7px; padding: 7px 12px; font-size: 10px; font-weight: 600; }
.fk-laeuft i { width: 8px; height: 8px; border-radius: 50%; background: #d93a3a; animation: fk-tropfen 1.4s infinite; }
.auftritt.ist-sichtbar .fk-call { animation: fk-rein .4s .1s both; }
.auftritt.ist-sichtbar .fk-popup { animation: fk-rutschen .5s .7s both; }
.auftritt.ist-sichtbar .fk-popup__start { animation: fk-klick .8s 1.5s; }
.auftritt.ist-sichtbar .fk-laeuft { animation: fk-rein .4s 2.1s both; }

/* ---------- CRM (Vertrieb, auf Anfrage) ---------- */
.fk-crm { top: 12px; height: auto; padding-bottom: 14px; }
.fk-crm .fb-ticket__logo { width: 18px; height: 18px; }
.fk-badge { margin-left: auto; font-style: normal; font-size: 9px; font-weight: 650; color: #b4580a; background: #fff3e2; padding: 3px 8px; border-radius: 999px; }
.auftritt.ist-sichtbar .fk-crm__feld { animation: fk-rein .4s calc(.2s + var(--i) * .3s) both; }
.auftritt.ist-sichtbar .fk-crm .fb-knopf { animation: fk-rein .4s 1.3s both, fk-klick .9s 1.9s; }

/* ---------- Beschlüsse (Hausverwaltung) ---------- */
.fk-protokoll { left: 30px; top: 8px; width: 320px; padding: 13px 15px; font-size: 10.5px; }
.fk-protokoll .fk-kopf { margin-bottom: 2px; }
.fk-datum { display: block; color: var(--grau); font-size: 9.5px; margin: 0 0 8px 21px; }
.fk-top { padding: 9px 0 6px; border-top: 1px solid #f1f4f8; }
.fk-top__kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.fk-top__kopf b { font-size: 10.5px; }
.fk-angenommen { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 9px; font-weight: 650; color: #1e7a4c; background: #e9f8f0; padding: 3px 8px; border-radius: 999px; }
.fk-angenommen svg { width: 9px; height: 9px; }
.fk-stimmen { display: flex; height: 7px; border-radius: 4px; overflow: hidden; background: #e8edf4; margin-bottom: 5px; }
.fk-ja { background: #2fbf71; } .fk-nein { background: #e46a5e; }
.fk-top small { color: var(--grau); font-size: 9.5px; }
.auftritt.ist-sichtbar .fk-top { animation: fk-rein .4s calc(.2s + var(--i) * .6s) both; }
.auftritt.ist-sichtbar .fk-stimmen i { animation: fk-wachsen .8s calc(.5s + var(--i) * .6s) both; }
.auftritt.ist-sichtbar .fk-angenommen { animation: fk-pop .4s calc(1.3s + var(--i) * .6s) both; }

/* ---------- Mieteranruf (Hausverwaltung) ---------- */
.fk-notiz { left: 40px; top: 6px; width: 300px; padding: 12px 15px; font-size: 10.5px; }
.fk-notiz__kopf { display: flex; align-items: center; gap: 8px; color: var(--grau); font-size: 10px; font-weight: 600; }
.fk-notiz__tel { width: 22px; height: 22px; border-radius: 50%; background: #e7f6ee; display: grid; place-items: center; }
.fk-notiz__tel svg { width: 12px; height: 12px; color: #2e8b57; }
.fk-notiz__wer { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.fk-notiz__wer b { display: block; font-size: 11px; } .fk-notiz__wer small { color: var(--grau); font-size: 9.5px; }
.fk-kuerzel { width: 30px; height: 30px; border-radius: 50%; background: #f3e8ff; color: #7a3fc2; font-weight: 700; font-size: 10px; display: grid; place-items: center; }
.fk-todo-zeile { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 10px; border-radius: 9px; background: #eef6ff; color: var(--blau); font-weight: 650; }
.fk-todo-zeile img { width: 15px; height: 15px; }
.auftritt.ist-sichtbar .fk-notiz__wer { animation: fk-rein .4s .15s both; }
.auftritt.ist-sichtbar .fk-todo-zeile { animation: fk-pop .45s 1.2s both; }

/* ---------- PDF (Hausverwaltung, Bau) ---------- */
.fk-seite { left: 20px; top: 4px; width: 168px; height: 226px; padding: 22px 14px 12px; border-radius: 6px; display: grid; gap: 7px; align-content: start; font-size: 10px; }
.fk-seite__band { position: absolute; left: 0; right: 0; top: 0; height: 8px; border-radius: 6px 6px 0 0; background: linear-gradient(90deg, #1a6fe0, #41b8f0); }
.fk-seite b { font-size: 11px; line-height: 1.25; } .fk-seite small { color: var(--grau); font-size: 9px; margin-bottom: 4px; }
.fk-seite i { height: 5px; border-radius: 3px; background: #e8edf4; width: 92%; }
.fk-seite i:nth-of-type(3n) { width: 64%; } .fk-seite i:nth-of-type(4) { width: 78%; }
.fk-seite__pdf { position: absolute; right: -12px; bottom: 14px; width: 34px; height: 34px; filter: drop-shadow(0 6px 10px rgba(26, 60, 120, .25)); }
.fk-export { left: 208px; top: 64px; width: 170px; padding: 13px; display: grid; gap: 9px; font-size: 10px; }
.fk-export .fb-knopf { margin: 0; }
.fk-balken { height: 5px; border-radius: 3px; background: #e8edf4; overflow: hidden; }
.fk-balken i { display: block; height: 100%; width: 100%; background: var(--blau); }
.fk-fertig { display: flex; align-items: center; gap: 6px; font-weight: 650; color: #1e7a4c; }
.fk-ok { width: 16px; height: 16px; border-radius: 50%; background: #2fbf71; display: grid; place-items: center; }
.fk-ok svg { width: 10px; height: 10px; color: #fff; }
.fk-datei { color: var(--grau); font-size: 9px; overflow-wrap: anywhere; }
.auftritt.ist-sichtbar .fk-seite i { animation: fk-wachsen .5s both; animation-delay: .3s; }
.auftritt.ist-sichtbar .fk-seite i:nth-of-type(2) { animation-delay: .4s; } .auftritt.ist-sichtbar .fk-seite i:nth-of-type(3) { animation-delay: .5s; }
.auftritt.ist-sichtbar .fk-seite i:nth-of-type(4) { animation-delay: .6s; } .auftritt.ist-sichtbar .fk-seite i:nth-of-type(5) { animation-delay: .7s; }
.auftritt.ist-sichtbar .fk-seite i:nth-of-type(6) { animation-delay: .8s; } .auftritt.ist-sichtbar .fk-seite i:nth-of-type(7) { animation-delay: .9s; }
.auftritt.ist-sichtbar .fk-export { animation: fk-rutschen .5s .5s both; }
.auftritt.ist-sichtbar .fk-export .fb-knopf { animation: fk-klick .9s 1.1s; }
.auftritt.ist-sichtbar .fk-balken i { animation: fk-wachsen 1s 1.3s both; }
.auftritt.ist-sichtbar .fk-fertig { animation: fk-pop .4s 2.3s both; }
.auftritt.ist-sichtbar .fk-seite__pdf { animation: fk-pop .45s 2.4s both; }
.auftritt.ist-sichtbar .fk-seite i:nth-of-type(n+8) { animation-delay: 1s; }
/* Querverweis von der Branche auf die passende Vorlage. */
.vl-querverweis { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 10px 16px; border-radius: 999px; border: 1px dashed var(--rahmen); color: var(--akzent); font-weight: 600; font-size: .94rem; text-decoration: none; }
.vl-querverweis svg { width: 16px; height: 16px; }
.vl-querverweis:hover { border-style: solid; }
