/* HENOS · /lp2 Abschnitt „Funktionen“ (#so-gehts)
 * ==================================================================
 * Sieben Funktionen im Muster von trustworthy.com: Überschrift (die
 * Fortsetzung in Grün, kein Etikett darüber), ein Satz und ein Bild. Jedes Bild ist eine blasse App-Fläche (echter
 * Screenshot oder gezeichnete Liste) mit scharfen Karten darüber.
 *
 * Maßstab: Jedes Bild ist eine Komposition von 40 × 30 em. Die Schrift-
 * größe der Komposition folgt der Breite des Rahmens (cqw), höchstens
 * 13 px. Darum stehen in .l2-fx-bild em-Werte statt der --text-Stufen:
 * sie sind Bildeinheiten, keine Bildschirm-Pixel (wie bei .ld-siegel).
 *
 * Handy: je Funktion Text, dann Bild. Desktop mit JS (ab 960 px): links
 * eine stehende Bühne, alle sieben Bilder übereinander, sichtbar ist das
 * der Funktion, die rechts gerade mittig steht (assets/lp2-funktionen.js).
 * Ohne JS bleibt auch am Desktop die einfache Abfolge.
 * Bewegung: Die Karten fliegen einmal ein, sobald ihr Bild im Blick ist
 * (.is-da). Das Netz (KI mit Zusammenhang) und die Köpfe (Teilen) leben in
 * einer Schleife und haben darum je einen Pausenknopf (WCAG 2.2.2); er
 * hält alle Filme der Seite an.
 */

.l2-fx { background: var(--c-surface); padding: var(--space-9) var(--space-4); }
.l2-fx-inner { max-width: 1120px; margin: 0 auto; }
.l2-fx-head { margin-bottom: var(--space-7); max-width: 640px; }
.l2-fx-head .ld-eyebrow { margin-bottom: var(--space-2); }
.l2-fx-head h2 {
  font-size: var(--text-4xl); line-height: 1.15; letter-spacing: -0.02em;
  color: var(--c-navy-deep); margin: 0; text-wrap: balance;
}

.l2-fx-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-9); }

/* ---- Text ------------------------------------------------------------ */
.l2-fx-copy h3 {
  margin: 0 0 var(--space-2); font-size: var(--text-3xl); line-height: 1.2;
  letter-spacing: -0.015em; color: var(--c-navy-deep); text-wrap: balance;
}
.l2-fx-copy p { margin: 0; font-size: var(--text-lg); line-height: 1.5; color: var(--c-text-muted); text-wrap: pretty; }

/* ---- Bildrahmen ------------------------------------------------------ */
.l2-fx-vis {
  position: relative; margin-top: var(--space-5); container-type: inline-size;
  border: 1px solid var(--c-track); border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--c-bg), var(--c-surface-soft));
  overflow: hidden;
}
.l2-fx-bild {
  position: relative; width: 40em; height: 30em; margin: 0 auto;
  font-size: 8px; font-size: min(calc(100cqw / 40), 13px);
  color: var(--c-text); line-height: 1.3;
}
.l2-fx-bild b { font-weight: 700; color: var(--c-navy-deep); }
.l2-fx-bild small { display: block; color: var(--c-text-muted); font-size: 1em; }

/* Blasse App-Fläche hinter den Karten */
.l2-fx-blass { opacity: .5; filter: blur(.1em) saturate(.7); }
/* Ein Handy: dunkler Rand, heller Metallring, weicher Schatten, Glanz. */
.l2-fx-phone {
  position: absolute; left: 13.1em; top: 1.2em; width: 13.8em; height: 29.4em;
  border: .45em solid var(--c-navy-deep); border-radius: 2.4em; overflow: hidden;
  background: var(--c-navy-deep);
  box-shadow: 0 0 0 .14em var(--c-app-rand-stark), 0 .6em 1.4em rgba(var(--c-navy-rgb), .14), 0 2.4em 4.4em rgba(var(--c-navy-rgb), .2);
}
.l2-fx-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 1.95em; }
.l2-fx-phone::after {
  content: ""; position: absolute; inset: 0; border-radius: 1.95em; pointer-events: none;
  background: linear-gradient(125deg, rgba(var(--c-white-rgb), .22) 0%, rgba(var(--c-white-rgb), 0) 38%);
}

/* Scharfe Karte */
.l2-fx-karte {
  position: absolute; background: var(--c-surface); border-radius: 1.4em;
  box-shadow: var(--shadow-lg); border: 1px solid var(--c-track);
}
.l2-fx-tile, .l2-fx-mini-ico {
  flex: none; display: grid; place-items: center; border-radius: .8em;
  background: var(--c-green-soft); color: var(--c-green-deep);
}
.l2-fx-tile { width: 3.2em; height: 3.2em; font-size: 1em; }
.l2-fx-tile .ico { font-size: 1.6em; }
.l2-fx-tile.is-amber { background: var(--c-amber-soft); color: var(--c-amber-deep); }

/* ---- Scan mit der Henos App ---------------------------------------
   Die grünen Ecken liegen genau auf dem Blatt im Kamera-Screenshot
   (Blatt bei 10,6 bis 90 % der Breite und 17,5 bis 68,5 % der Höhe). */
.l2-fx-ecken { position: absolute; left: 14.9em; top: 6.6em; width: 10.3em; height: 14.6em; }
.l2-fx-ecken i { position: absolute; width: 2em; height: 2em; border: .3em solid var(--c-green); }
.l2-fx-ecken i:nth-child(1) { left: -.3em; top: -.3em; border-right: 0; border-bottom: 0; border-top-left-radius: .7em; }
.l2-fx-ecken i:nth-child(2) { right: -.3em; top: -.3em; border-left: 0; border-bottom: 0; border-top-right-radius: .7em; }
.l2-fx-ecken i:nth-child(3) { left: -.3em; bottom: -.3em; border-right: 0; border-top: 0; border-bottom-left-radius: .7em; }
.l2-fx-ecken i:nth-child(4) { right: -.3em; bottom: -.3em; border-left: 0; border-top: 0; border-bottom-right-radius: .7em; }
/* Grüner Lichtschein hinter dem Handy */
.l2-fx-schein {
  position: absolute; left: 50%; top: 46%; width: 30em; height: 26em; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(var(--c-green-rgb), .2), rgba(var(--c-green-rgb), 0));
}
/* Ein Scan-Strich läuft einmal über das Blatt, dann rasten die Ecken ein. */
.l2-fx-strich {
  position: absolute; left: 15.2em; width: 9.7em; top: 6.6em; height: .3em; border-radius: var(--radius-pill);
  background: var(--c-green); box-shadow: 0 0 1.2em .3em rgba(var(--c-green-rgb), .55);
  opacity: 0;
}
.l2-fx-js .l2-fx-vis.is-da .l2-fx-strich { animation: l2-fx-scan 1.3s cubic-bezier(.45,0,.55,1) .25s 1 both; }
@keyframes l2-fx-scan {
  0% { top: 6.6em; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 20.9em; opacity: 0; }
}
.l2-fx-scan { left: 2em; right: 2em; bottom: 1.8em; padding: 1.2em 1.4em; display: flex; align-items: center; gap: 1.1em; }
.l2-fx-scan-txt { flex: 1; min-width: 0; }
.l2-fx-scan-txt b { display: block; font-size: 1.5em; }
.l2-fx-scan-txt small { font-size: 1.2em; margin-top: .15em; }
.l2-fx-scan .l2-fx-status { display: inline-flex; align-items: center; gap: .3em; font-size: 1.2em; }
/* Was die KI aus dem Blatt liest: ein Wert nach dem anderen, jeder mit
   grünem Haken (lp2-funktionen.js, Abschnitt 7). */
.l2-fx-bild small.l2-fx-ausgelesen { display: flex; align-items: center; gap: .35em; white-space: nowrap; margin-top: .35em; }
.l2-fx-wert {
  display: inline-flex; align-items: center; gap: .3em; min-width: 0;
  font-weight: 700; color: var(--c-navy-deep);
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.l2-fx-wert .ico { flex: none; color: var(--c-green-deep); font-size: 1.15em; }
.l2-fx-wert.is-weg { opacity: 0; transform: translateY(-.55em); }
.l2-fx-wert.is-kommt { opacity: 0; transform: translateY(.55em); transition: none; }
.l2-fx-wert.is-puls .ico { animation: l2-wert-haken .5s cubic-bezier(.2,1.6,.4,1) 1 both; }
@keyframes l2-wert-haken { 0% { transform: scale(.3); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ---- 2 · Benennen und einsortieren ------------------------------------
   Links eine Spalte frisch gescannter Dateien (Platz 0 bis 2 sichtbar,
   Platz 3 wartet unten), rechts der Tresor mit vier Fächern. Die Datei auf
   Platz 0 bekommt einen Lichtstreif (.is-scan), dann ihren Titel
   (.is-benannt) und fliegt in ihr Fach (.is-flug, Ziel von JS als
   transform). Das Fach im iPhone leuchtet kurz auf (.is-treffer) und zählt
   eins hoch (lp2-funktionen.js, Abschnitt 6). */
.l2-fx-ordnen-ort {
  position: absolute; left: 1.4em; top: 1.6em; padding: .3em .7em; border-radius: var(--radius-pill);
  background: var(--c-surface); border: 1px solid var(--c-track);
  font-size: 1.05em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-muted);
}
.l2-fx-eingang { position: absolute; left: 1.4em; top: 4.8em; width: 16.8em; height: 22em; z-index: 2; --d: .1s; }
.l2-fx-datei {
  --p: 0; position: absolute; left: 0; top: 0; width: 100%; height: 6em;
  display: flex; align-items: center; gap: .8em; padding: 0 .85em; box-sizing: border-box;
  background: var(--c-surface); border: 1px solid var(--c-track); border-radius: 1.2em;
  box-shadow: var(--shadow); overflow: hidden;
  transform: translateY(calc(var(--p) * 7em)) scale(var(--s, 1));
  transition: transform .75s cubic-bezier(.2,.8,.2,1), opacity .5s ease, border-color .4s ease, box-shadow .4s ease;
}
.l2-fx-datei[data-platz="1"] { --p: 1; }
.l2-fx-datei[data-platz="2"] { --p: 2; opacity: .8; }
.l2-fx-datei[data-platz="3"] { --p: 3; --s: .94; opacity: 0; }
.l2-fx-datei.is-scan, .l2-fx-datei.is-benannt { border-color: rgba(var(--c-green-rgb), .55); box-shadow: var(--shadow-lg); }
/* Hinüber ins Fach: klein werden und im Zeichen des Fachs verschwinden. */
.l2-fx-datei.is-flug {
  z-index: 3; opacity: 0;
  transition: transform .75s cubic-bezier(.55,0,.25,1), opacity .25s ease .5s;
}
.l2-fx-datei.is-still { transition: none; }
.l2-fx-datei-tile {
  position: relative; flex: none; width: 2.5em; height: 2.5em; border-radius: .75em;
  background: var(--c-surface-soft); color: var(--c-text-muted);
  transition: background .4s ease, color .4s ease;
}
.l2-fx-datei-tile .ico {
  position: absolute; left: 50%; top: 50%; font-size: 1.4em; margin: -.5em 0 0 -.5em;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,1.5,.4,1);
}
.l2-fx-datei-tile .is-neu { opacity: 0; transform: scale(.5); }
.l2-fx-datei.is-benannt .l2-fx-datei-tile { background: var(--c-green-soft); color: var(--c-green-deep); }
.l2-fx-datei.is-benannt .l2-fx-datei-tile .is-roh { opacity: 0; transform: scale(.5); }
.l2-fx-datei.is-benannt .l2-fx-datei-tile .is-neu { opacity: 1; transform: none; }
.l2-fx-datei-txt { flex: 1; min-width: 0; display: grid; }
.l2-fx-datei-txt > span { grid-area: 1 / 1; min-width: 0; transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1), filter .35s ease; }
.l2-fx-datei-txt b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l2-fx-datei-txt small { font-size: 1.05em; margin-top: .2em; }
.l2-fx-datei-txt .is-roh b {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.15em; font-weight: 600; color: var(--c-text-muted);
}
.l2-fx-datei-txt .is-neu b { font-size: 1.22em; }
.l2-fx-datei-txt .is-neu { opacity: 0; transform: translateY(.6em); filter: blur(.15em); }
.l2-fx-datei.is-benannt .l2-fx-datei-txt .is-roh { opacity: 0; transform: translateY(-.6em); filter: blur(.15em); }
.l2-fx-datei.is-benannt .l2-fx-datei-txt .is-neu { opacity: 1; transform: none; filter: none; }
/* Der Lichtstreif, der die Datei „liest“ */
.l2-fx-datei-glanz { position: absolute; inset: 0; pointer-events: none; }
.l2-fx-datei-glanz::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%;
  background: linear-gradient(100deg, rgba(var(--c-green-rgb), 0), rgba(var(--c-green-rgb), .22) 50%, rgba(var(--c-green-rgb), 0));
  transform: translateX(-110%); opacity: 0;
}
.l2-fx-datei.is-scan .l2-fx-datei-glanz::before { animation: l2-ordnen-glanz .8s cubic-bezier(.45,0,.55,1) 1 both; }
@keyframes l2-ordnen-glanz {
  0% { transform: translateX(-110%); opacity: 1; }
  100% { transform: translateX(240%); opacity: 1; }
}

.l2-fx-fach {
  position: relative; display: flex; align-items: center; gap: .8em; padding: .6em .65em; border-radius: 1em;
  border: 1px solid transparent; transition: background .5s ease, border-color .5s ease;
}
.l2-fx-fach .l2-fx-tile { width: 2.6em; height: 2.6em; transition: transform .45s cubic-bezier(.2,1.6,.4,1), box-shadow .45s ease; }
.l2-fx-fach .l2-fx-tile .ico { font-size: 1.35em; }

/* .is-app: rechts ein iPhone mit der Tresor-Ansicht der App, vereinfacht. Die Fächer zählen
   bei jeder Ankunft hoch, oben die Summe. Das Handy läuft unten aus dem
   Bild (wie der Scan). */
.l2-fx-ordnenbild.is-app .l2-fx-eingang { left: 1.2em; width: 16em; }
.l2-fx-ordnenbild.is-app .l2-fx-ordnen-ort { left: 1.2em; }
/* Hinweis unter den Dateien: Henos ist nicht nur eine Handy-App. */
.l2-fx-geraete {
  position: absolute; left: 1.2em; bottom: 1.5em; display: inline-flex; align-items: center; gap: .45em;
  padding: .45em .9em .45em .7em; border-radius: var(--radius-pill);
  background: var(--c-surface); border: 1px solid var(--c-track); box-shadow: var(--shadow);
  font-size: 1.05em; font-weight: 700; color: var(--c-navy-deep); white-space: nowrap; --d: .5s;
}
.l2-fx-geraete .ico { font-size: 1.25em; color: var(--c-green-deep); }
.l2-fx-handy {
  position: absolute; left: 18.8em; top: 1.5em; width: 19.8em; height: 33em; z-index: 1; --d: .3s;
  display: flex; flex-direction: column; box-sizing: border-box;
  border: .45em solid var(--c-navy-deep); border-radius: 2.6em; overflow: hidden;
  background: var(--c-surface);
  box-shadow: 0 0 0 .14em var(--c-app-rand-stark), 0 .6em 1.4em rgba(var(--c-navy-rgb), .14), 0 2.4em 4.4em rgba(var(--c-navy-rgb), .2);
}
.l2-fx-handy-status { position: relative; display: flex; align-items: center; height: 2.3em; padding: 0 1.5em; flex: none; }
.l2-fx-handy-status b { font-size: .95em; }
.l2-fx-handy-status i { position: absolute; left: 50%; top: .55em; width: 5.4em; height: 1.55em; margin-left: -2.7em; border-radius: var(--radius-pill); background: var(--c-navy-deep); }
.l2-fx-handy-kopf { padding: .4em 1.3em 1.1em; flex: none; }
.l2-fx-handy-kopf b { display: block; font-size: 2.1em; line-height: 1.1; letter-spacing: -0.02em; }
.l2-fx-handy-kopf small { display: flex; align-items: center; gap: .35em; margin-top: .35em; font-size: 1.05em; }
.l2-fx-handy-kopf .ico { font-size: 1.1em; }
.l2-fx-handy-kopf .ico.is-ok { color: var(--c-green-deep); }
.l2-fx-handy-liste {
  flex: 1; display: flex; flex-direction: column; gap: .55em; padding: .8em .8em;
  background: var(--c-surface-soft);
}
.l2-fx-ordnenbild.is-app .l2-fx-fach {
  gap: .65em; padding: .65em .7em; background: var(--c-surface); border-radius: .9em; border-color: var(--c-surface);
}
.l2-fx-ordnenbild.is-app .l2-fx-fach .l2-fx-tile { width: 2.5em; height: 2.5em; border-radius: .75em; background: var(--c-surface-soft); color: var(--c-navy); }
.l2-fx-ordnenbild.is-app .l2-fx-fach .l2-fx-tile .ico { font-size: 1.3em; }
.l2-fx-ordnenbild.is-app .l2-fx-fach > b { flex: 1; min-width: 0; font-size: 1.08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l2-fx-fach-zahl { flex: none; font-size: 1.12em; font-weight: 700; color: var(--c-text-muted); font-variant-numeric: tabular-nums; transition: color .4s ease; }
.l2-fx-fach-pfeil { flex: none; font-size: .85em; margin-left: -.25em; color: var(--c-app-rand-stark); }
.l2-fx-ordnenbild.is-app .l2-fx-fach.is-treffer { background: var(--c-surface); border-color: rgba(var(--c-green-rgb), .6); box-shadow: 0 0 0 .3em rgba(var(--c-green-rgb), .12); }
.l2-fx-ordnenbild.is-app .l2-fx-fach.is-treffer .l2-fx-tile { background: var(--c-green-soft); color: var(--c-green-deep); }
.l2-fx-fach.is-treffer .l2-fx-fach-zahl { color: var(--c-green-deep); }
.l2-fx-fach-zahl.is-puls, [data-l2-summe].is-puls { display: inline-block; animation: l2-zahl-puls .5s cubic-bezier(.2,1.6,.4,1) 1 both; }
@keyframes l2-zahl-puls { 0% { transform: scale(1.5); } 100% { transform: none; } }

/* ---- 3 · Chat -------------------------------------------------------- */
.l2-fx-frage {
  position: absolute; right: 1.6em; top: 3.4em; margin: 0;
  padding: .85em 1.3em; border-radius: var(--radius-pill);
  background: var(--c-surface-soft); border: 1px solid var(--c-app-rand-stark);
  box-shadow: var(--shadow); font-size: 1.5em; font-weight: 700; color: var(--c-navy-deep);
}
.l2-fx-antwort { left: 1.6em; top: 9.4em; width: 28em; padding: 1.4em 1.6em; }
.l2-fx-antwort p { margin: 0 0 .6em; font-size: 1.45em; }
.l2-fx-antwort ul { margin: 0; padding-left: 1.3em; font-size: 1.35em; line-height: 1.5; }
.l2-fx-quelle {
  display: inline-flex; align-items: center; gap: .4em; margin-top: 1em;
  padding: .35em .8em; border-radius: var(--radius-pill);
  background: var(--c-green-soft); color: var(--c-green-deep); font-size: 1.15em; font-weight: 700;
}

/* ---- 4 · Erinnerungen ------------------------------------------------ */
.l2-fx-note { left: 1.2em; right: 1.2em; top: 5.6em; padding: 1.3em 1.4em; }
.l2-fx-note.is-zwei { left: 3em; right: 3em; top: 21.6em; padding: 1em 1.2em; }
.l2-fx-note-kopf { display: flex; align-items: center; gap: 1.1em; }
.l2-fx-note-txt { flex: 1; min-width: 0; }
.l2-fx-note-txt b { display: block; font-size: 1.5em; }
.l2-fx-note-txt small { font-size: 1.2em; margin-top: .15em; }
.l2-fx-note-zeit { flex: none; text-align: right; font-size: 1.2em; color: var(--c-text-muted); }
.l2-fx-note-zeit small { color: var(--c-red-deep); font-weight: 700; margin-top: .15em; }
.l2-fx-note-tipp {
  display: block; margin-top: 1em; padding: .9em 1.1em; border-radius: .9em;
  border: 1px solid var(--c-track); font-size: 1.3em; line-height: 1.4; text-wrap: balance;
}
.l2-fx-note.is-zwei .l2-fx-tile { width: 2.6em; height: 2.6em; }
.l2-fx-note.is-zwei .l2-fx-note-txt b { font-size: 1.35em; }

/* ---- Abos -------------------------------------------------------------
   Oben die Summe mit einem Balken der Anteile, darunter die Abos. Jede
   Zeile und ihr Balkenstück teilen sich eine Farbe (--f) und den Moment
   des Einflugs (--d). */
.l2-fx-abosumme { left: 2em; right: 2em; top: 1.4em; padding: 1em 1.6em 1.2em; }
.l2-fx-abosumme-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 1em; }
.l2-fx-abosumme-zahl { display: flex; align-items: baseline; gap: .7em; }
.l2-fx-abosumme-zahl b { font-size: 2.9em; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.l2-fx-abosumme-zahl small { font-size: 1.3em; }
.l2-fx-abosumme-jahr { display: flex; flex-direction: column; align-items: flex-end; gap: .45em; }
.l2-fx-abosumme-jahr small { font-size: 1.2em; }
.l2-fx-abo-teile { display: flex; gap: .2em; height: .7em; margin-top: .9em; border-radius: var(--radius-pill); overflow: hidden; background: var(--c-surface-soft); }
.l2-fx-abo-teile i { flex: var(--w) 0 0; background: var(--f); transform-origin: left; transition: transform .7s cubic-bezier(.2,.8,.2,1) var(--d, 0s); }
.l2-fx-aboliste { left: 2em; right: 2em; top: 10em; padding: .35em 1.4em; display: flex; flex-direction: column; }
.l2-fx-abo { display: flex; align-items: center; gap: 1em; height: 3.55em; border-top: 1px solid var(--c-track); }
.l2-fx-abo:first-child { border-top: 0; }
.l2-fx-abo .l2-fx-tile { width: 2.4em; height: 2.4em; border-radius: .7em; background: var(--c-surface-soft); color: var(--f); }
.l2-fx-abo .l2-fx-tile .ico { font-size: 1.25em; }
.l2-fx-abo-txt { flex: 1; min-width: 0; }
.l2-fx-abo-txt b { display: block; font-size: 1.3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l2-fx-abo-txt small { font-size: 1.05em; }
.l2-fx-abo-preis { flex: none; font-size: 1.3em; font-weight: 700; color: var(--c-navy-deep); font-variant-numeric: tabular-nums; }
/* Die eine Zeile, um die man sich kümmern muss: Die Frist erscheint zuletzt. */
.l2-fx-bild small.l2-fx-abo-frist {
  display: inline-flex; align-items: center; gap: .35em; padding: .1em .6em .1em .45em; border-radius: var(--radius-pill);
  background: var(--c-amber-soft); color: var(--c-amber-deep); font-weight: 700;
  transition: opacity .4s ease 1.7s, transform .5s cubic-bezier(.2,1.5,.4,1) 1.7s;
}

/* ---- 5 · Teilen ------------------------------------------------------
   Henos in der Mitte (.l2-fx-mitte und das SVG wie beim Netz), vier Köpfe
   außen herum. Der Kopf, bei dem der Lichtpunkt zuletzt ankam, trägt
   .is-an; die Karte unten nennt seinen Zugang. */
.l2-fx-netz .l2-teil-ringe circle { fill: none; stroke: var(--c-app-rand-stark); stroke-width: 1; stroke-dasharray: 2 7; transform-origin: 200px 108px; animation: l2-teil-drehen 70s linear infinite; }
.l2-fx-netz .l2-teil-ringe circle:last-child { animation-duration: 110s; animation-direction: reverse; }
@keyframes l2-teil-drehen { to { transform: rotate(360deg); } }
.l2-teil-speichen path { transition: stroke .4s ease, stroke-width .4s ease, opacity .5s ease .3s; }
.l2-teil-speichen path.is-offen { stroke-dasharray: 5 5; }
.l2-teil-speichen path.is-hell { stroke: var(--c-green); stroke-width: 2; }
/* Der Lichtpunkt läuft hier von der Mitte nach außen: Henos gibt frei. */
.l2-teil-fluss path.is-fluss { animation: l2-teil-fluss 1.1s cubic-bezier(.5,0,.6,1) both; }
@keyframes l2-teil-fluss {
  0% { stroke-dashoffset: 10; opacity: 0; }
  20% { opacity: 1; }
  92% { opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}
.l2-fx-teil-ort, .l2-fx-kopf-name {
  position: absolute; left: 50%; transform: translateX(-50%);
  padding: .3em .7em; border-radius: var(--radius-pill); white-space: nowrap;
  background: var(--c-surface); border: 1px solid var(--c-track);
  font-size: 1.05em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-muted);
  transition: border-color .3s ease, color .3s ease;
}
.l2-fx-teil-ort { top: 47.5%; --d: .2s; }
.l2-fx-kopf { position: absolute; left: var(--x); top: var(--y); width: 4.8em; height: 4.8em; margin: -2.4em 0 0 -2.4em; }
.l2-fx-kopf-in { position: absolute; inset: 0; }
.l2-fx-kopf-bild {
  position: absolute; inset: 0; border-radius: var(--radius-circle); overflow: hidden;
  border: .28em solid var(--c-surface); box-shadow: var(--shadow), 0 0 0 1px var(--c-track);
  transition: box-shadow .35s ease;
}
.l2-fx-kopf-bild svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.l2-fx-kopf-bild.is-gruen { background: var(--c-green-soft); color: var(--c-green-deep); }
.l2-fx-kopf-bild.is-navy { background: var(--c-surface-soft); color: var(--c-navy); }
.l2-fx-kopf-bild.is-amber { background: var(--c-amber-soft); color: var(--c-amber-deep); }
.l2-fx-kopf-bild.is-grau { background: var(--c-surface-soft); color: var(--c-app-rand-stark); }
.l2-fx-kopf.is-offen .l2-fx-kopf-bild { box-shadow: 0 0 0 1px var(--c-app-rand-stark); }
/* Was dieser Mensch darf, als kleines Zeichen am Kopf (Schlüssel, Stift, Auge). */
.l2-fx-kopf-recht {
  position: absolute; right: -.5em; bottom: -.3em; width: 2em; height: 2em;
  display: grid; place-items: center; border-radius: var(--radius-circle);
  background: var(--c-surface); border: 1px solid var(--c-track); color: var(--c-navy);
  box-shadow: var(--shadow); transition: background .3s ease, color .3s ease, border-color .3s ease, transform .4s cubic-bezier(.2,1.6,.4,1);
}
.l2-fx-kopf-recht .ico { font-size: 1.1em; }
.l2-fx-kopf-name { top: calc(100% + .55em); }
.l2-fx-kopf.is-an .l2-fx-kopf-bild { box-shadow: var(--shadow-lg), 0 0 0 .22em var(--c-green), 0 0 0 .7em rgba(var(--c-green-rgb), .14); }
.l2-fx-kopf.is-an .l2-fx-kopf-recht { background: var(--c-green); border-color: var(--c-green); color: var(--c-surface); transform: scale(1.15); }
.l2-fx-kopf.is-an .l2-fx-kopf-name { border-color: var(--c-green); color: var(--c-green-deep); }
/* Ankunft des Lichtpunkts: ein Ring läuft einmal vom Kopf weg. */
.l2-fx-kopf-in::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-circle);
  border: .15em solid rgba(var(--c-green-rgb), .6); opacity: 0;
}
.l2-fx-kopf.is-treffer .l2-fx-kopf-in::before { animation: l2-netz-welle .7s cubic-bezier(.2,.6,.4,1) 1 both; }
/* Köpfe schweben leicht, jeder im eigenen Takt. */
.l2-fx-js .l2-fx-teilbild.is-da .l2-fx-kopf-in { animation: l2-teil-schweben 4.8s ease-in-out infinite; }
.l2-fx-js .l2-fx-teilbild.is-da .l2-fx-kopf:nth-of-type(2n) .l2-fx-kopf-in { animation-duration: 5.6s; animation-delay: -1.9s; }
.l2-fx-js .l2-fx-teilbild.is-da .l2-fx-kopf:nth-of-type(3n) .l2-fx-kopf-in { animation-duration: 4.1s; animation-delay: -3s; }
@keyframes l2-teil-schweben { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.4em); } }
/* Karte: Kürzel, Name und ein Satz zur Rolle. Zwei Zeilen Platz, damit sie
   beim Wechsel nicht springt; der Inhalt blendet kurz weg (.is-wechsel). */
.l2-fx-zugang { left: 2em; right: 2em; bottom: 1.4em; padding: 1.1em 1.4em; display: flex; align-items: center; gap: 1.1em; }
.l2-fx-zugang-txt { flex: 1; min-width: 0; min-height: 5.2em; display: flex; flex-direction: column; justify-content: center; }
.l2-fx-zugang-txt b { display: block; font-size: 1.45em; }
.l2-fx-zugang-txt small { font-size: 1.2em; margin-top: .15em; }
.l2-fx-zugang .l2-fx-status { display: inline-flex; align-items: center; gap: .35em; }
.l2-fx-zugang > * { transition: opacity .2s ease, transform .2s ease; }
.l2-fx-zugang.is-wechsel > * { opacity: 0; transform: translateY(.3em); }
.l2-fx-av {
  flex: none; width: 3.4em; height: 3.4em; border-radius: var(--radius-circle);
  display: grid; place-items: center; font-weight: 700; font-size: 1.15em;
}
.l2-fx-av.is-gruen { background: var(--c-green-soft); color: var(--c-green-deep); }
.l2-fx-av.is-navy { background: var(--c-surface-soft); color: var(--c-navy); }
.l2-fx-av.is-amber { background: var(--c-amber-soft); color: var(--c-amber-deep); }
.l2-fx-av.is-grau { background: var(--c-surface-soft); color: var(--c-text-muted); }
.l2-fx-status { flex: none; padding: .3em .8em; border-radius: var(--radius-pill); font-size: 1.1em; font-weight: 700; }
.l2-fx-status.is-aktiv { background: var(--c-green-soft); color: var(--c-green-deep); }
.l2-fx-status.is-offen { background: var(--c-surface-soft); color: var(--c-navy); }

/* ---- 6 · KI mit Zusammenhang ----------------------------------------- */
.l2-fx-netz { position: absolute; inset: 0; width: 100%; height: 100%; }
.l2-fx-netz path { fill: none; stroke: var(--c-app-rand-stark); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .6s ease, stroke-width .6s ease; }
.l2-fx-netz path.is-an { stroke: var(--c-green); stroke-width: 2; }
.l2-fx-netz circle { fill: var(--c-app-rand-stark); }
/* Lichtpunkte: ein kurzes Stück Strich wandert vom Etikett zur Mitte.
   pathLength 100 (lp2-funktionen.js), darum ohne non-scaling-stroke. */
.l2-netz-fluss path {
  vector-effect: none; stroke: var(--c-green); stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 10 100; stroke-dashoffset: -100; opacity: 0;
  filter: drop-shadow(0 0 3px rgba(var(--c-green-rgb), .8));
}
.l2-netz-fluss path.is-fluss { animation: l2-netz-fluss 1.15s cubic-bezier(.5,0,.6,1) both; }
@keyframes l2-netz-fluss {
  0% { stroke-dashoffset: -100; opacity: 0; }
  10% { opacity: 1; }
  92% { opacity: 1; }
  100% { stroke-dashoffset: 10; opacity: 0; }
}
/* Querverbindung, die gerade „erkannt" wird */
.l2-netz-quer path.is-glimmen { stroke: rgba(var(--c-green-rgb), .75); stroke-width: 1.6; }
.l2-netz-speichen path.is-glimmen { stroke: rgba(var(--c-green-rgb), .5); }
/* Punkte im Hintergrund funkeln */
.l2-netz-punkte circle { animation: l2-netz-funkeln 3.2s ease-in-out infinite; }
.l2-netz-punkte circle:nth-child(2n) { animation-delay: -1.1s; animation-duration: 2.6s; }
.l2-netz-punkte circle:nth-child(3n) { animation-delay: -2.2s; animation-duration: 3.8s; }
@keyframes l2-netz-funkeln { 0%, 100% { opacity: .35; } 50% { opacity: 1; fill: rgba(var(--c-green-rgb), .7); } }
.l2-fx-mitte {
  position: absolute; left: 50%; top: 36%; width: 5.6em; height: 5.6em; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: var(--radius-circle);
  background: var(--c-surface); box-shadow: var(--shadow-lg); border: 1px solid var(--c-track);
}
.l2-fx-mitte img { position: relative; width: 3em; height: 3em; transition: transform .25s ease; }
/* Zwei Wellen laufen ständig aus der Mitte; bei jedem ankommenden
   Lichtpunkt zuckt das Zeichen kurz (.is-treffer). */
.l2-fx-mitte::before, .l2-fx-mitte::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  border: .15em solid rgba(var(--c-green-rgb), .55); opacity: 0;
  animation: l2-netz-welle 2.8s cubic-bezier(.2,.6,.4,1) infinite;
}
.l2-fx-mitte::after { animation-delay: 1.4s; }
@keyframes l2-netz-welle { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }
.l2-fx-mitte.is-treffer img { transform: scale(1.12); }
.l2-fx-mitte { transition: box-shadow .25s ease; }
.l2-fx-mitte.is-treffer { box-shadow: var(--shadow-lg), 0 0 0 .5em rgba(var(--c-green-rgb), .16); }
.l2-fx-tag {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  padding: .35em .75em; border-radius: var(--radius-pill); white-space: nowrap;
  background: var(--c-surface); border: 1px solid var(--c-track);
  font-size: 1.05em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-muted);
}
.l2-fx-tag.is-an { border-color: var(--c-green); color: var(--c-green-deep); }
/* Etiketten schweben leicht, jedes im eigenen Takt (--x/--y bleiben). */
.l2-fx-js .l2-fx-netzbild.is-da .l2-fx-tag { animation: l2-netz-schweben 4.6s ease-in-out infinite; }
.l2-fx-js .l2-fx-netzbild.is-da .l2-fx-tag:nth-of-type(2n) { animation-duration: 5.4s; animation-delay: -1.8s; }
.l2-fx-js .l2-fx-netzbild.is-da .l2-fx-tag:nth-of-type(3n) { animation-duration: 3.9s; animation-delay: -2.9s; }
@keyframes l2-netz-schweben {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - .45em)); }
}
/* Das Etikett, von dem gerade ein Lichtpunkt startet */
.l2-fx-tag.is-puls { border-color: var(--c-green); color: var(--c-green-deep); box-shadow: 0 0 0 .3em rgba(var(--c-green-rgb), .14); }
.l2-fx-tag { transition: opacity .4s ease var(--d, 0s), border-color .3s ease, color .3s ease, box-shadow .3s ease; }
.l2-fx-erkannt { left: 2em; right: 2em; bottom: 1.4em; padding: 1.2em 1.4em; display: flex; align-items: center; gap: 1.1em; }
.l2-fx-erkannt-txt b { display: block; font-size: 1.45em; }
.l2-fx-erkannt-txt small { font-size: 1.2em; margin-top: .2em; }

/* Pausenknopf oben rechts im Bild; angehalten steht alles still. */
.l2-fx-pause { position: absolute; top: var(--space-3); right: var(--space-3); z-index: 2; }
.l2-fx-netzbild.is-pause *, .l2-fx-netzbild.is-pause *::before, .l2-fx-netzbild.is-pause *::after,
.l2-fx-teilbild.is-pause *, .l2-fx-teilbild.is-pause *::before, .l2-fx-teilbild.is-pause *::after,
.l2-fx-ordnenbild.is-pause *, .l2-fx-ordnenbild.is-pause *::before, .l2-fx-ordnenbild.is-pause *::after,
.l2-fx-scanbild.is-pause *, .l2-fx-scanbild.is-pause *::before, .l2-fx-scanbild.is-pause *::after { animation-play-state: paused !important; }

/* ---- Einflug (nur mit JS; ohne JS steht alles) ----------------------- */
.l2-fx-pop { transition: opacity .5s cubic-bezier(.4,0,.2,1) var(--d, 0s), transform .7s cubic-bezier(.2,.8,.2,1) var(--d, 0s); }
.l2-fx-js .l2-fx-vis:not(.is-da) .l2-fx-pop { opacity: 0; transform: translateY(1.4em); }
.l2-fx-js .l2-fx-vis:not(.is-da) .l2-fx-tag { opacity: 0; }
.l2-fx-tag.is-an { transition: opacity .4s ease var(--d, 0s), border-color .4s ease 1.4s, color .4s ease 1.4s; }
.l2-fx-tag:nth-of-type(2n) { --d: .1s; }
.l2-fx-tag:nth-of-type(3n) { --d: .2s; }
.l2-fx-tag:nth-of-type(5n) { --d: .3s; }
.l2-fx-js .l2-fx-vis:not(.is-da) .l2-fx-tag.is-an { border-color: var(--c-track); color: var(--c-text-muted); }
.l2-fx-netz path.is-an { stroke-dasharray: 160; stroke-dashoffset: 0; transition: stroke-dashoffset .6s ease 1s; }
.l2-fx-js .l2-fx-vis:not(.is-da) .l2-fx-netz path.is-an { stroke-dashoffset: 160; }

.l2-fx-js .l2-fx-vis:not(.is-da) .l2-fx-ecken { transform: scale(1.12); }
/* Abos: Balkenstücke wachsen von links, die Frist springt zuletzt auf. */
.l2-fx-js .l2-fx-vis:not(.is-da) .l2-fx-abo-teile i { transform: scaleX(0); }
.l2-fx-js .l2-fx-vis:not(.is-da) .l2-fx-abo-frist { opacity: 0; transform: scale(.8); transition-delay: 0s; }
.l2-fx-aboliste { --d: .2s; }
.l2-fx-ecken { --d: 1.35s; }
.l2-fx-scan { --d: 1.6s; }
.l2-fx-antwort { --d: .6s; }
.l2-fx-note.is-zwei { --d: .5s; }
/* Teilen: Köpfe wachsen versetzt aus dem Nichts, die Speichen kommen nach. */
.l2-fx-js .l2-fx-vis:not(.is-da) .l2-fx-kopf { transform: scale(.6); }
.l2-fx-js .l2-fx-vis:not(.is-da) .l2-teil-speichen path { opacity: 0; transition-delay: 0s; }
.l2-fx-kopf:nth-of-type(2n) { --d: .15s; }
.l2-fx-kopf:nth-of-type(3n) { --d: .3s; }
.l2-fx-kopf.is-offen { --d: .45s; }
.l2-fx-zugang { --d: .8s; }
.l2-fx-erkannt { --d: 1.5s; }

/* ---- Knopf nach den Funktionen --------------------------------------- */
.l2-fx .l2-cta-mitte {
  margin-top: var(--space-9); padding-top: var(--space-8); border-top: 1px solid var(--c-track);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.l2-fx .l2-cta-mitte .ld-cta { align-self: stretch; }
.l2-fx .l2-cta-mitte .bewertung { justify-content: center; margin-top: var(--space-4); }

/* ---- Breiten --------------------------------------------------------- */
@media (min-width: 640px) {
  .l2-fx { padding: var(--space-10) var(--space-6); }
  .l2-fx-head h2 { font-size: var(--text-6xl); }
  .l2-fx-vis { max-width: 560px; }
  .l2-fx .l2-cta-mitte .ld-cta { align-self: center; min-width: 320px; }
}

/* Desktop mit JS: Text rechts scrollt, Bild links steht und blendet über. */
@media (min-width: 960px) {
  .l2-fx-js .l2-fx-list {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: var(--space-10); row-gap: 0;
  }
  .l2-fx-js .l2-fx-item { display: contents; }
  .l2-fx-js .l2-fx-copy {
    grid-column: 2; min-height: 52vh; padding: var(--space-8) 0;
    display: flex; flex-direction: column; justify-content: center;
    border-top: 1px solid var(--c-track);
    opacity: .4; transition: opacity .4s ease;
  }
  .l2-fx-js .l2-fx-copy.is-aktiv { opacity: 1; }
  .l2-fx-js .l2-fx-item:first-child .l2-fx-copy { border-top: 0; }
  .l2-fx-js .l2-fx-vis {
    grid-column: 1; grid-row: 1 / span 7; align-self: start;
    position: sticky; top: max(96px, calc(50vh - 220px));
    margin-top: 0; max-width: none;
    opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s;
  }
  .l2-fx-js .l2-fx-vis.is-aktiv { opacity: 1; visibility: visible; transition: opacity .45s ease, visibility 0s; }
  .l2-fx-js .l2-fx-copy h3 { font-size: var(--text-4xl); }
}
