/* Erklärfilme im Hochformat. Alle Maße in em, die Bühne setzt 1em auf 4,3 % der Filmbreite.
   So sieht der Film in jeder Größe gleich aus, auch im exportierten TikTok-Video (1080 x 1920).
   Zeiten kommen aus dem HTML: --von/--bis je Szene, --t je Element, jeweils in Sekunden ab Filmstart.
   Aufbau: Grund (Licht, Liniennetz, Korn), oben die Linie mit einer Haltestelle je Szene,
   Szenen mit Kapiteltitel, Bild und Satz, blaue Wischer zwischen den Szenen. */

.film { --feder: cubic-bezier(.34, 1.45, .64, 1); --hell: #8DB9FF; --hauch: #C9DCFF; }
.film-buehne { position: absolute; inset: 0; font-size: 4.3cqi; line-height: 1.3; overflow: hidden; background: #0A1322; }
.film-buehne::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 0 9em 1em rgb(3 7 15 / .62); }

/* Grund: Lichtschein wandert langsam, das Liniennetz zeichnet sich und zieht nach oben, darüber feines Korn */
.film-grund { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.film-grund::before { content: ""; position: absolute; inset: -25%; background: radial-gradient(38% 26% at 30% 30%, rgb(37 87 214 / .62), transparent 72%), radial-gradient(34% 24% at 76% 74%, rgb(141 185 255 / .2), transparent 72%); }
.film-grund::after { content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: soft-light; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E"); }
.film-netz { position: absolute; inset: 0; width: 100%; height: 100%; }
.film-netz path { fill: none; stroke: var(--hell); stroke-opacity: .2; stroke-width: .45; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.film-netz circle { fill: #0A1322; stroke: var(--hell); stroke-opacity: .36; stroke-width: .45; }
.film.gestartet .film-grund::before { animation: f-licht var(--dauer) ease-in-out both; }
.film.gestartet .film-netz { animation: f-netz var(--dauer) linear both; }
.film.gestartet .film-netz path { animation: weg-zeichnen 3.4s var(--ein-aus) calc(var(--t) * 1s) forwards; }
/* Züge: kurze Lichtstriche, die auf den Linien durchs Bild fahren */
.film-netz path.zug { stroke: #B5D2FF; stroke-opacity: .75; stroke-width: .55; stroke-dasharray: .045 2; stroke-dashoffset: .05; filter: drop-shadow(0 0 1.2px #8DB9FF); }
.film.gestartet .film-netz path.zug { animation: f-zug calc(var(--d) * 1s) linear calc(var(--t) * 1s) infinite; }
@keyframes f-zug { from { stroke-dashoffset: .05; } to { stroke-dashoffset: -1; } }
@keyframes f-licht { 0% { transform: translate(-5%, -4%) scale(1); } 45% { transform: translate(7%, 6%) scale(1.18); } 100% { transform: translate(-3%, 9%) scale(1.06); } }
@keyframes f-netz { from { transform: scale(1.02); } to { transform: translateY(-5%) scale(1.1); } }

.film-oben { position: absolute; z-index: 6; left: 8%; right: 8%; top: 4.6%; display: flex; align-items: center; gap: .55em; font-size: .8em; font-weight: 700; font-stretch: 114%; letter-spacing: -.025em; }
.film-oben .marke-zeichen { width: 1.9em; height: 1.9em; }
.film-oben .marke-zeichen .start { fill: #0A1322; stroke: #fff; }
.film-oben .marke-zeichen .ziel { fill: #fff; }
.film-oben span { margin-left: auto; padding: .28em .75em; border-radius: 99em; background: rgb(141 185 255 / .16); color: var(--hauch); font-stretch: 80%; font-weight: 650; font-size: .86em; letter-spacing: .07em; text-transform: uppercase; }

/* Haltestellen: eine je Szene. Die Linie füllt sich, während die Szene läuft, die nächste Haltestelle leuchtet auf */
.film-halte { position: absolute; z-index: 6; left: 8%; right: 8%; top: 10.4%; display: flex; align-items: center; }
.film-halte i { flex: none; width: .56em; height: .56em; border-radius: 50%; background: #0A1322; box-shadow: inset 0 0 0 .12em rgb(141 185 255 / .5); }
.film-halte span { flex: 1; height: .14em; position: relative; overflow: hidden; background: rgb(141 185 255 / .22); }
.film-halte span::after { content: ""; position: absolute; inset: 0; background: var(--hell); transform: scaleX(0); transform-origin: 0 50%; }
.film.gestartet .film-halte span::after { animation: f-lauf calc(var(--d) * 1s) linear calc(var(--t) * 1s) forwards; }
.film.gestartet .film-halte i { animation: f-halt-an .45s var(--feder) calc(var(--t) * 1s) forwards; }
@keyframes f-halt-an { to { background: var(--hell); box-shadow: 0 0 .8em rgb(141 185 255 / .85); transform: scale(1.2); } }

/* Szenen wechseln hart, weil der Wischer den Wechsel verdeckt */
.sz { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: .9em; padding: 24% 8% max(17%, 3.9rem); opacity: 0; }
.sz.letzte { grid-template-rows: minmax(0, 1fr); }
/* Kapiteltitel: bei den Schritten mit Nummer, sonst mit einem kleinen Haltering */
.sz-titel { justify-self: start; display: flex; align-items: center; gap: .6em; font-size: .86em; font-stretch: 84%; font-weight: 680; letter-spacing: .08em; text-transform: uppercase; color: var(--hauch); }
.sz-titel b { width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--hell); color: #0A1322; display: grid; place-items: center; font-stretch: 100%; font-weight: 800; letter-spacing: 0; }
.sz-titel i { width: .72em; height: .72em; border-radius: 50%; box-shadow: inset 0 0 0 .17em var(--hell); }
.sz-bild { position: relative; display: grid; align-content: center; justify-items: center; gap: 1em; min-height: 0; perspective: 60em; }
/* Ganz langsame Kamerafahrt auf das Bild zu, über die Dauer der Szene */
@keyframes f-fahrt { from { transform: scale(.985); } to { transform: scale(1.035); } }
.film.gestartet .sz { animation: sz-an .01s linear calc(var(--von) * 1s) both, sz-aus .01s linear calc(var(--bis) * 1s) forwards; }
.film.gestartet .sz.letzte { animation: sz-an .01s linear calc(var(--von) * 1s) both; }
/* Punch-in: Nach jedem Wischer rastet das neue Bild mit einem kleinen Ruck ein */
.film.gestartet .sz-bild { animation: f-fahrt calc((var(--bis) - var(--von)) * 1s) linear calc(var(--von) * 1s) both, f-punch .5s cubic-bezier(.16, 1, .3, 1) calc(var(--von) * 1s) both; animation-composition: replace, add; }
@keyframes f-punch { from { transform: scale(1.07) translateY(.5em); } to { transform: none; } }
@keyframes sz-an { from { opacity: 0; } to { opacity: 1; } }
@keyframes sz-aus { to { opacity: 0; } }

/* Der Satz: Wort für Wort aus der Zeile heraus, im Tempo der Stimme */
.sz-text { position: relative; isolation: isolate; margin: 0; min-height: 4.48em; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0 .27em; font-size: 1.5em; font-weight: 740; font-stretch: 116%; letter-spacing: -.034em; line-height: 1.12; }
.sz-text::before { content: ""; position: absolute; z-index: -1; inset: -.45em -.7em; border-radius: 1em; background: rgb(10 19 34 / .8); filter: blur(.6em); }
.w { display: inline-block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.w > span { display: inline-block; transform: translateY(118%); }
.w.b { color: var(--hell); }
.w > span { transform: translateY(118%) rotate(4deg); transform-origin: 0 100%; }
.film.gestartet .w > span { animation: w-rein .36s cubic-bezier(.16, 1, .3, 1) calc(var(--t) * 1s) forwards; }
.film.gestartet .w.b > span { animation: w-rein .36s cubic-bezier(.16, 1, .3, 1) calc(var(--t) * 1s) forwards, w-blitz .7s ease-out calc((var(--t) + .12) * 1s) both; }
@keyframes w-rein { to { transform: none; } }
@keyframes w-blitz { 0% { text-shadow: 0 0 0 transparent; color: #fff; } 30% { text-shadow: 0 0 .5em rgb(141 185 255 / .95); color: #fff; } 100% { text-shadow: 0 0 .2em rgb(141 185 255 / .25); color: var(--hell); } }

/* Wischer: eine blaue Fläche fährt wie ein Zug von unten nach oben durch das Bild */
.wisch { position: absolute; z-index: 5; left: 0; right: 0; top: -3%; height: 106%; background: #2557D6; transform: translateY(104%); }
.wisch::before { content: ""; position: absolute; left: 0; right: 0; top: -1.3em; height: 1.3em; background: var(--hell); }
.wisch::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1.3em; height: 1.3em; background: #17243F; }
.wisch { top: -12%; height: 124%; }
.film.gestartet .wisch { animation: f-wisch .56s cubic-bezier(.76, 0, .24, 1) calc(var(--t) * 1s) both; }
@keyframes f-wisch { from { transform: translateY(104%) skewY(-7deg); } to { transform: translateY(-108%) skewY(-7deg); } }

/* Auftritte */
.film .e { opacity: 0; }
.film.gestartet .e { animation: e-rein .45s var(--aus) calc(var(--t) * 1s) both; }
.film.gestartet .e.pop { animation: e-pop .42s var(--feder) calc(var(--t) * 1s) both; }
.film.gestartet .e.oben { animation: e-oben .45s var(--feder) calc(var(--t) * 1s) both; }
.film.gestartet .e.seite { animation: e-seite .45s cubic-bezier(.16, 1, .3, 1) calc(var(--t) * 1s) both; }
.film.gestartet .e.karte { animation: e-karte .55s cubic-bezier(.16, 1, .3, 1) calc(var(--t) * 1s) both; }
.film.gestartet .e.hoch { animation: e-hoch .6s cubic-bezier(.16, 1, .3, 1) calc(var(--t) * 1s) both; }
.film.gestartet .e.fall { animation: e-fall .4s var(--feder) calc(var(--t) * 1s) both; }
.film.gestartet .sz-titel.e { animation: titel-rein .42s cubic-bezier(.16, 1, .3, 1) calc(var(--t) * 1s) both; }
@keyframes titel-rein { from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-.6em); } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
@keyframes e-rein { from { opacity: 0; transform: translateY(1.2em); } to { opacity: 1; transform: none; } }
@keyframes e-pop { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes e-oben { from { opacity: 0; transform: translateY(-2.2em) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes e-seite { from { opacity: 0; transform: translateX(3.4em); filter: blur(.25em); } to { opacity: 1; transform: none; } }
@keyframes e-karte { from { opacity: 0; transform: translateY(3.2em) rotateX(26deg) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes e-hoch { from { opacity: 0; transform: translateY(9em) scale(.94); filter: blur(.3em); } to { opacity: 1; transform: none; } }
@keyframes e-fall { from { opacity: 0; transform: translateY(-2.4em) scale(1.15); } to { opacity: 1; transform: none; } }
/* Pause: alles hält an, auch die Laufleiste */
.film:not(.laeuft) .film-buehne *, .film:not(.laeuft) .film-buehne *::before, .film:not(.laeuft) .film-buehne *::after { animation-play-state: paused !important; }

/* ---------- Bausteine ---------- */
/* Handy: kommt gekippt ins Bild und richtet sich auf. Unten läuft es weich aus, so wirkt es groß, ohne den Satz zu verdrängen */
.f-geraet { position: relative; width: 16em; max-width: 100%; height: 18.4em; padding: .5em .5em 0; border-radius: 2.5em 2.5em 0 0; background: #17243F; -webkit-mask-image: linear-gradient(#000 calc(100% - 1.4em), transparent calc(100% - .1em)); mask-image: linear-gradient(#000 calc(100% - 1.4em), transparent calc(100% - .1em)); box-shadow: 0 0 0 .07em rgb(141 185 255 / .42), 0 2.6em 4.5em -1.8em rgb(0 0 0 / .95), 0 0 6em -1em rgb(37 87 214 / .6); }
.f-geraet::before { content: ""; position: absolute; z-index: 2; left: 50%; top: 1.05em; width: 26%; height: .95em; margin-left: -13%; border-radius: 99em; background: #0A1322; }
.f-schirm { position: relative; height: 100%; border-radius: 2.05em 2.05em 0 0; overflow: hidden; padding: 2.5em .9em 1.1em; display: grid; gap: .6em; align-content: start; background: #F3F6FB; color: var(--tinte); }
/* Einmal fährt ein Lichtreflex über das Glas */
.f-schirm::after { content: ""; position: absolute; z-index: 3; inset: -20% -70%; background: linear-gradient(105deg, transparent 43%, rgb(255 255 255 / .26) 50%, transparent 57%); transform: translateX(-75%); pointer-events: none; }
.film.gestartet .f-schirm::after { animation: f-glanz .8s var(--ein-aus) calc((var(--t) + .35) * 1s) both; }
@keyframes f-glanz { from { transform: translateX(-75%); } to { transform: translateX(75%); } }
.f-schirm.sperre { padding-top: 2.3em; gap: .45em; background: radial-gradient(130% 70% at 15% 0%, #2F63E0 0%, #16306B 46%, #0C1730 100%); color: #fff; }
.film.gestartet .f-geraet.e { animation: geraet-rein .7s cubic-bezier(.16, 1, .3, 1) calc(var(--t) * 1s) both; }
.film.gestartet .f-geraet.e.zittert { animation: geraet-rein .7s cubic-bezier(.16, 1, .3, 1) calc(var(--t) * 1s) both, f-zittern .34s ease-in-out calc(var(--z1, 999) * 1s), f-zittern .34s ease-in-out calc(var(--z2, 999) * 1s), f-zittern .34s ease-in-out calc(var(--z3, 999) * 1s); animation-composition: replace, add, add, add; }
@keyframes geraet-rein { from { opacity: 0; transform: translateY(6em) rotateX(26deg) rotateZ(-6deg) scale(.82); } to { opacity: 1; transform: none; } }
@keyframes f-zittern { 0%, 100% { transform: none; } 20% { transform: translateX(-.35em) rotateZ(-1.2deg); } 40% { transform: translateX(.35em) rotateZ(1.2deg); } 60% { transform: translateX(-.22em) rotateZ(-.7deg); } 80% { transform: translateX(.16em) rotateZ(.4deg); } }

.f-uhr { margin: .05em 0 .1em; text-align: center; font-size: 2.9em; font-weight: 760; font-stretch: 118%; letter-spacing: -.04em; line-height: .95; font-variant-numeric: tabular-nums; }
.f-uhr small { display: block; margin-bottom: .55em; font-size: .23em; font-stretch: 80%; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--hauch); }
.f-uhr i { display: inline-block; margin: 0 .02em; font-style: normal; transform: translateY(-.06em); }
.film.gestartet .f-uhr i { animation: f-blink 1s steps(2, jump-none) infinite; }
@keyframes f-blink { from { opacity: 1; } to { opacity: .2; } }

.f-stapel { display: grid; gap: .5em; width: 100%; }
.f-stapel.ueber { position: absolute; z-index: 3; left: 3%; right: 3%; bottom: 1.2em; width: auto; }
.f-meldung { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7em; align-items: center; padding: .42em .7em; border-radius: 1.05em; background: #fff; color: var(--tinte); font-size: .9em; box-shadow: 0 1em 2em -1.1em rgb(0 0 0 / .85); }
.f-meldung i { width: 2.1em; height: 2.1em; border-radius: .65em; background: var(--signal-hauch); color: var(--signal-schrift); display: grid; place-items: center; }
.f-meldung i svg { width: 1.1em; height: 1.1em; }
.f-meldung i.rot { background: #FFE2DD; color: #C2301B; }
.f-meldung i.gruen { background: var(--gruen-hauch); color: #0B6B3F; }
.f-meldung b { display: block; font-weight: 690; line-height: 1.2; }
.f-meldung span { color: var(--tinte-3); font-size: .9em; font-variant-numeric: tabular-nums; }
.f-status { justify-self: start; display: inline-flex; align-items: center; gap: .55em; margin-top: .3em; padding: .45em .9em; border-radius: 99em; background: rgb(255 255 255 / .1); font-size: .84em; font-weight: 620; }
.f-status > i { width: .6em; height: .6em; border-radius: 50%; background: #FFB020; box-shadow: 0 0 0 .3em rgb(255 176 32 / .25); }
.f-status.mitte { justify-self: center; margin: 0; }
.f-status.blau > i { background: var(--hell); box-shadow: 0 0 0 .3em rgb(141 185 255 / .25); }
.f-status.hell { justify-self: center; margin: 0; padding: .6em 1em; background: #fff; color: var(--tinte); box-shadow: 0 1em 2em -1.1em rgb(0 0 0 / .85); }
.f-status svg { width: 1.25em; height: 1.25em; color: var(--gruen); flex: none; }

.f-kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: .5em; font-size: .8em; font-stretch: 80%; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--tinte-3); }
.f-slots { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.f-slot { position: relative; padding: .55em 0; border-radius: 99em; text-align: center; font-weight: 690; font-size: 1.05em; background: #fff; box-shadow: inset 0 0 0 .12em var(--haar); font-variant-numeric: tabular-nums; }
.f-slot.zu { background: #E9EDF4; color: #9AA6BC; box-shadow: none; text-decoration: line-through; }
.film.gestartet .f-slot.wird { animation: f-slot-an .35s var(--feder) calc(var(--t) * 1s) forwards; }
@keyframes f-slot-an { 50% { transform: scale(1.08); } to { background: var(--signal); color: var(--auf-signal); box-shadow: none; transform: none; } }
.f-knopf { position: relative; display: grid; place-items: center; padding: .7em 1em; border-radius: 99em; background: var(--signal); color: var(--auf-signal); font-weight: 720; font-size: 1.05em; }
.film.gestartet .f-knopf.drueck, .film.gestartet .voll.drueck { animation: f-druck .45s var(--aus) calc(var(--t) * 1s) both; }
@keyframes f-druck { 0%, 100% { transform: none; } 40% { transform: scale(.92); } }
.f-tipp { position: absolute; z-index: 2; left: 50%; top: 50%; width: 3em; height: 3em; margin: -1.5em 0 0 -1.5em; border-radius: 50%; background: rgb(141 185 255 / .55); border: .16em solid #fff; box-shadow: 0 0 0 .5em rgb(141 185 255 / .3); opacity: 0; pointer-events: none; }
.film.gestartet .f-tipp { animation: f-tipp .55s var(--aus) calc(var(--t) * 1s) both; }
@keyframes f-tipp { 0% { opacity: 0; transform: scale(.3); } 35% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
.f-erfolg { display: flex; align-items: center; gap: .55em; padding: .65em .8em; border-radius: 1em; background: var(--gruen-hauch); color: #0B6B3F; font-weight: 690; font-size: .84em; white-space: nowrap; }
.f-erfolg i { flex: none; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--gruen); color: #fff; display: grid; place-items: center; }
.f-erfolg svg { width: .95em; height: .95em; }

/* Strecke: die Linie fährt nach unten, an jedem Halt ploppt ein Symbol auf und eine Karte kommt von rechts */
.f-strecke { list-style: none; margin: 0; padding: 0; position: relative; width: 100%; display: grid; gap: 1.2em; }
.f-strecke::before, .f-strecke::after { content: ""; position: absolute; left: 1.42em; top: 1.5em; bottom: 1.5em; width: .22em; margin-left: -.11em; border-radius: 1em; background: rgb(141 185 255 / .22); }
.f-strecke::after { background: var(--hell); transform-origin: 50% 0; transform: scaleY(0); box-shadow: 0 0 1.2em rgb(141 185 255 / .8); }
.film.gestartet .f-strecke::after { animation: f-linie 1.7s var(--ein-aus) calc(var(--t) * 1s) forwards; }
@keyframes f-linie { to { transform: none; } }
.f-strecke li { position: relative; display: grid; grid-template-columns: 2.85em minmax(0, 1fr); gap: .8em; align-items: center; }
.f-strecke li > i { position: relative; z-index: 1; width: 2.85em; height: 2.85em; border-radius: 50%; background: var(--hell); color: var(--tinte); display: grid; place-items: center; box-shadow: 0 0 0 .35em #0A1322, 0 0 2em rgb(141 185 255 / .5); }
.f-strecke li > i svg { width: 1.4em; height: 1.4em; }
.f-strecke li > div { display: grid; gap: .1em; padding: .8em 1em; border-radius: 1.05em; background: #fff; color: var(--tinte); box-shadow: 0 1.2em 2.4em -1.4em rgb(0 0 0 / .9); }
.f-strecke b { font-size: 1.1em; font-weight: 720; font-stretch: 106%; letter-spacing: -.02em; line-height: 1.2; }
.f-strecke span { color: var(--tinte-3); font-size: .88em; }

/* Kalender: liegt schräg im Raum, neue Termine fallen hinein, der Zähler zählt mit */
.f-zaehler { display: flex; align-items: center; gap: .7em; padding: .45em .5em .45em 1.1em; border-radius: 99em; background: #1B2D52; font-weight: 650; }
.f-zaehler b { width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--hell); color: var(--tinte); overflow: hidden; font-size: 1.15em; font-weight: 800; line-height: 1.9em; text-align: center; font-variant-numeric: tabular-nums; }
.f-zaehler b i { display: block; font-style: normal; }
.film.gestartet .f-zaehler b i { animation: f-zaehl 2s steps(5, end) calc((var(--t) - .4) * 1s) forwards; }
@keyframes f-zaehl { to { transform: translateY(-9.5em); } }
.f-woche { width: 100%; display: grid; grid-template-columns: repeat(5, 1fr); gap: .45em; padding: .9em; border-radius: 1.3em; background: #14213D; box-shadow: 0 0 0 .07em rgb(141 185 255 / .34), 0 2.4em 4em -2em #000, 0 0 5em -1em rgb(37 87 214 / .55); }
.film.gestartet .f-woche.e.kippt { animation: woche-rein .65s cubic-bezier(.16, 1, .3, 1) calc(var(--t) * 1s) both; }
@keyframes woche-rein { from { opacity: 0; transform: rotateX(52deg) rotateZ(-14deg) translateY(5em) scale(.9); } to { opacity: 1; transform: rotateX(20deg) rotateZ(-4deg); } }
.f-woche > div { display: grid; grid-template-rows: auto repeat(4, 2.5em); gap: .4em; }
.f-woche > div > span { text-align: center; font-size: .78em; font-stretch: 80%; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--hauch); }
.f-woche i { border-radius: .55em; background: rgb(255 255 255 / .07); }
.f-woche.kurz > div { grid-template-rows: auto repeat(3, 2.1em); }
.f-woche i.alt { background: rgb(141 185 255 / .26); }
.f-woche i.zu { background: repeating-linear-gradient(135deg, rgb(255 255 255 / .2) 0 .26em, transparent .26em .52em); box-shadow: inset 0 0 0 .08em rgb(255 255 255 / .28); }
.f-woche i.t { background: var(--hell); box-shadow: 0 0 1.4em rgb(141 185 255 / .75); }

/* E-Mail als Karte */
.f-mail { width: 100%; display: grid; gap: .6em; padding: 1.1em; border-radius: 1.3em; background: #fff; color: var(--tinte); box-shadow: 0 1.6em 3em -1.6em rgb(0 0 0 / .95), 0 0 0 .3em rgb(141 185 255 / .18); }
.f-mail .von { display: flex; align-items: center; gap: .6em; font-size: .82em; color: var(--tinte-3); }
.f-mail .von i { width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--tinte); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 750; }
.f-mail .betreff { font-size: 1.18em; font-weight: 720; font-stretch: 106%; letter-spacing: -.02em; line-height: 1.2; }
.f-mail p { margin: 0; font-size: .95em; color: var(--tinte-2); }
.f-mail .knoepfe { display: flex; flex-wrap: wrap; gap: .4em; }
.f-mail .knoepfe span { position: relative; padding: .5em .95em; border-radius: 99em; box-shadow: inset 0 0 0 .12em var(--haar); font-size: .9em; font-weight: 660; }
.f-mail .knoepfe .voll { background: var(--signal); color: var(--auf-signal); box-shadow: none; }
.f-marke { justify-self: start; padding: .22em .65em; border-radius: 99em; background: var(--gruen-hauch); color: #0B6B3F; font-stretch: 80%; font-weight: 700; font-size: .74em; letter-spacing: .06em; text-transform: uppercase; }
.f-tippt { display: grid; gap: .15em; }
.f-tippt span { display: block; white-space: nowrap; clip-path: inset(0 100% 0 0); }
.film.gestartet .f-tippt span { animation: f-schreib .7s steps(28) calc(var(--t) * 1s) both; }
.f-chips { width: 100%; display: flex; justify-content: center; gap: .3em; }
.f-chips span { display: inline-flex; align-items: center; gap: .28em; padding: .42em .7em .42em .5em; border-radius: 99em; background: #fff; color: var(--tinte); font-size: .74em; white-space: nowrap; font-weight: 660; box-shadow: 0 1em 2em -1.1em rgb(0 0 0 / .85); }
.f-chips svg { width: 1.1em; height: 1.1em; color: var(--gruen); }
/* Einwilligung: Das Kästchen wird angehakt */
.f-haken { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75em; align-items: center; padding: .8em 1em; border-radius: 1.05em; background: #1B2D52; box-shadow: inset 0 0 0 .07em rgb(141 185 255 / .34); font-size: .95em; font-weight: 620; line-height: 1.25; }
.f-haken i { width: 1.6em; height: 1.6em; border-radius: .42em; display: grid; place-items: center; color: #0A1322; box-shadow: inset 0 0 0 .13em var(--hauch); }
.f-haken i svg { width: 1.05em; height: 1.05em; opacity: 0; transform: scale(.7); }
.film.gestartet .f-haken i { animation: f-haken-an .3s var(--aus) calc(var(--t) * 1s) forwards; }
.film.gestartet .f-haken i svg { animation: e-pop .4s var(--feder) calc(var(--t) * 1s) forwards; }
@keyframes f-haken-an { to { background: var(--hell); box-shadow: 0 0 1.2em rgb(141 185 255 / .7); } }
/* Bahn: Der Brief fährt von der Website zur Kundin */
.f-bahn { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: .5em 0; font-size: .82em; font-stretch: 80%; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--hauch); }
.f-bahn span:last-child { text-align: right; }
.f-bahn .spur { grid-column: 1 / -1; position: relative; height: 3em; }
.f-bahn .spur::before { content: ""; position: absolute; left: 1em; right: 1em; top: 50%; height: .26em; margin-top: -.13em; border-radius: 1em; background: rgb(141 185 255 / .3); }
.f-bahn .spur b { position: absolute; top: 50%; width: 1.5em; height: 1.5em; margin-top: -.75em; border-radius: 50%; background: #0A1322; border: .3em solid var(--hell); }
.f-bahn .spur b:first-child { left: .25em; }
.f-bahn .spur b:nth-child(2) { right: .25em; }
.f-brief { position: absolute; z-index: 1; top: 0; left: 0; width: 3em; height: 3em; border-radius: 50%; background: var(--hell); color: var(--tinte); display: grid; place-items: center; box-shadow: 0 0 2em rgb(141 185 255 / .8); opacity: 0; }
.f-brief svg { width: 1.5em; height: 1.5em; }
.film.gestartet .f-brief { animation: f-brief calc(var(--d, .8) * 1s) var(--ein-aus) calc(var(--t) * 1s) both; }
@keyframes f-brief { 0% { left: 0; opacity: 0; transform: scale(.5); } 15% { opacity: 1; transform: none; } 100% { left: calc(100% - 3em); opacity: 1; transform: none; } }
/* Tage: Der Vortag leuchtet auf, die Glocke klingelt */
.f-tage { position: relative; display: flex; gap: .5em; }
.f-tage span { width: 3.2em; height: 3.5em; border-radius: .85em; display: grid; place-items: center; background: rgb(255 255 255 / .08); color: var(--hauch); font-weight: 720; font-size: 1.05em; }
.film.gestartet .f-tage .heute { animation: f-heute .45s var(--feder) calc(var(--t) * 1s) forwards; }
@keyframes f-heute { to { background: var(--hell); color: #0A1322; transform: scale(1.12); box-shadow: 0 0 2em rgb(141 185 255 / .7); } }
.f-tage > i { position: absolute; right: -1.4em; top: -1.2em; width: 2.5em; height: 2.5em; border-radius: 50%; background: #fff; color: #2557D6; display: grid; place-items: center; box-shadow: 0 .8em 1.6em -.8em #000; }
.f-tage > i svg { width: 1.3em; height: 1.3em; }

/* Suche */
.f-suche { width: 100%; display: flex; align-items: center; gap: .6em; padding: .9em 1.15em; border-radius: 99em; background: #fff; color: var(--tinte); font-weight: 640; font-size: 1.06em; box-shadow: 0 1.4em 2.6em -1.6em #000, 0 0 0 .32em rgb(141 185 255 / .25); }
.f-suche svg { width: 1.15em; height: 1.15em; flex: none; color: var(--tinte-3); }
.f-suche span { white-space: nowrap; clip-path: inset(0 100% 0 0); }
.f-suche span.fest { clip-path: none; }
.film.gestartet .f-suche span:not(.fest) { animation: f-schreib .9s steps(22) calc(var(--t) * 1s) both; }
@keyframes f-schreib { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.f-suche.klein { padding: .6em 1em; font-size: .92em; }
/* Trefferseite: zwei Blöcke, die nacheinander aufleuchten */
.f-serp { width: 100%; display: grid; gap: .9em; }
.f-block { position: relative; display: grid; gap: .55em; padding: 1.15em .8em .8em; border-radius: 1.1em; background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 .07em rgb(141 185 255 / .22); }
.film.gestartet .f-block { animation: f-block-an .5s var(--aus) calc(var(--t) * 1s) forwards; }
@keyframes f-block-an { to { background: rgb(141 185 255 / .17); box-shadow: inset 0 0 0 .15em var(--hell), 0 0 2.4em rgb(141 185 255 / .35); } }
.f-fahne { position: absolute; z-index: 1; left: .7em; top: -.8em; display: inline-flex; align-items: center; gap: .45em; padding: .26em .8em .26em .3em; border-radius: 99em; background: var(--hell); color: #0A1322; font-size: .84em; font-weight: 740; box-shadow: 0 .6em 1.4em -.6em #000; }
.f-fahne b { width: 1.5em; height: 1.5em; border-radius: 50%; background: #0A1322; color: #fff; display: grid; place-items: center; font-size: .92em; }
.f-karte { position: relative; height: 4.3em; border-radius: .7em; overflow: hidden; background: #DCE6F7 linear-gradient(115deg, transparent 46%, #fff 46% 50%, transparent 50%), linear-gradient(8deg, transparent 58%, #fff 58% 63%, transparent 63%); background-blend-mode: normal; }
.f-karte i { position: absolute; width: 1.7em; height: 1.7em; border-radius: 50%; background: #2557D6; color: #fff; display: grid; place-items: center; box-shadow: 0 .4em .8em -.3em rgb(10 19 34 / .6); }
.f-karte i svg { width: 1em; height: 1em; }
.f-zeilen { display: grid; gap: .4em; }
.f-zeilen i { height: .5em; border-radius: 1em; background: rgb(141 185 255 / .34); }
.f-zeilen i:nth-child(1) { width: 78%; } .f-zeilen i:nth-child(2) { width: 62%; } .f-zeilen i:nth-child(3) { width: 70%; }
.f-zeilen.treffer i:nth-child(1) { width: 48%; height: .66em; background: rgb(141 185 255 / .55); } .f-zeilen.treffer i:nth-child(2) { width: 90%; } .f-zeilen.treffer i:nth-child(3) { width: 72%; }
.f-zeilen.treffer + .f-zeilen.treffer { margin-top: .35em; }
/* Google-Profil als Karte */
.f-profil { width: 100%; display: grid; gap: .7em; padding: 1.05em; border-radius: 1.3em; background: #fff; color: var(--tinte); box-shadow: 0 1.6em 3em -1.6em rgb(0 0 0 / .95), 0 0 0 .3em rgb(141 185 255 / .18); }
.f-profil .kopf { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8em; align-items: center; }
.f-profil .kopf > i { width: 2.7em; height: 2.7em; border-radius: 50%; background: #2557D6; color: #fff; display: grid; place-items: center; }
.f-profil .kopf > i svg { width: 1.35em; height: 1.35em; }
.f-profil .kopf b { display: block; font-size: 1.2em; font-weight: 740; font-stretch: 106%; letter-spacing: -.02em; line-height: 1.2; }
.f-profil .kopf span { color: var(--tinte-3); font-size: .86em; }
.f-profil ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4em; }
.f-profil li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7em; align-items: center; padding: .5em .7em; border-radius: .8em; background: #F1F3F7; font-weight: 650; }
.f-profil li > svg { width: 1.2em; height: 1.2em; color: #2557D6; }
.f-profil li em { width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--gruen); color: #fff; display: grid; place-items: center; }
.f-profil li em svg { width: .85em; height: .85em; }
.f-profil .fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4em; }
.f-profil .fotos i { height: 2.5em; border-radius: .6em; background: linear-gradient(135deg, #C9DAF7, #8FB2EE); }
.f-profil .fotos i:nth-child(2) { background: linear-gradient(135deg, #B9CFF4, #5F8DE6); }
.f-url { padding: .42em 1.1em; border-radius: 99em; background: var(--hell); color: #0A1322; font-weight: 720; font-size: .95em; }
.f-treffer { width: 100%; display: grid; gap: .55em; }
.f-treffer > div { position: relative; display: grid; gap: .42em; padding: .95em 1em; border-radius: 1em; background: rgb(255 255 255 / .07); }
.f-treffer > div i { height: .5em; border-radius: 1em; background: rgb(141 185 255 / .28); }
.f-treffer > div i:nth-child(1) { width: 52%; height: .68em; }
.f-treffer > div i:nth-child(2) { width: 88%; }
.f-treffer > div i:nth-child(3) { width: 70%; }
.f-treffer > .matt { opacity: .5; }
.f-treffer > .ihr { gap: .12em; padding: 1.1em 1.1em; background: #fff; color: var(--tinte); box-shadow: 0 0 0 .24em var(--hell), 0 0 3em rgb(141 185 255 / .6); }
.f-treffer .ihr b { font-size: 1.22em; font-weight: 720; }
.f-treffer .ihr span { font-size: .88em; color: var(--tinte-3); }
.f-treffer .ihr span:first-of-type { color: #0B6B3F; font-weight: 600; }
.f-treffer .ihr .f-pin { position: absolute; right: .9em; top: .9em; width: 2.4em; height: 2.4em; border-radius: 50%; background: #2557D6; color: #fff; display: grid; place-items: center; }
.f-treffer .ihr .f-pin svg { width: 1.25em; height: 1.25em; }
.f-seite { display: grid; gap: .1em; }
.f-seite b { font-size: 1.3em; font-weight: 740; font-stretch: 110%; letter-spacing: -.025em; }
.f-seite span { color: var(--tinte-3); font-size: .9em; }
.f-bild { height: 5.2em; border-radius: 1em; background: #DCE6F7; position: relative; overflow: hidden; }
.f-bild::before { content: ""; position: absolute; left: 12%; right: -10%; top: 46%; height: 60%; border-top: .22em solid #2557D6; border-left: .22em solid #2557D6; border-top-left-radius: 1.6em; }

.f-paar { width: 100%; display: grid; gap: .7em; }
.f-paar > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9em; align-items: center; padding: 1em 1.05em; border-radius: 1.2em; background: rgb(255 255 255 / .07); color: var(--hauch); }
.f-paar > .ihr { background: #fff; color: var(--tinte); box-shadow: 0 0 0 .24em var(--hell), 0 0 3em rgb(141 185 255 / .6); }
.f-paar.gleich > div { background: #fff; color: var(--tinte); box-shadow: 0 1.4em 2.6em -1.5em rgb(0 0 0 / .95), 0 0 0 .3em rgb(141 185 255 / .18); }
.f-paar.gleich i { background: #2557D6; color: #fff; }
.f-paar.gleich span { color: var(--tinte-3); font-weight: 650; }
.f-paar i { width: 2.7em; height: 2.7em; border-radius: .8em; display: grid; place-items: center; background: rgb(255 255 255 / .09); }
.f-paar i svg { width: 1.35em; height: 1.35em; }
.f-paar .ihr i { background: #2557D6; color: #fff; }
.f-paar b { display: block; font-size: 1.1em; font-weight: 720; line-height: 1.25; }
.f-paar span { font-size: .9em; }
.f-paar .ihr span { color: var(--tinte-3); }

/* Schlussbild */
.f-ende { display: grid; justify-items: center; gap: .9em; text-align: center; }
.f-ende svg { width: 6.4em; height: 6.4em; filter: drop-shadow(0 0 1.6em rgb(141 185 255 / .55)); }
.f-ende .weg { fill: none; stroke: var(--hell); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.film.gestartet .f-ende .weg { animation: weg-zeichnen .7s var(--ein-aus) calc(var(--t) * 1s) forwards; }
.f-ende .start { fill: #0A1322; stroke: #fff; stroke-width: 3; }
.f-ende .ziel { fill: #fff; }
.f-ende > b { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .25em; font-size: 2.3em; font-weight: 770; font-stretch: 118%; letter-spacing: -.04em; line-height: 1.04; }
.f-ende > span { color: var(--hauch); font-size: 1.05em; text-wrap: balance; }
.f-ende .url { margin-top: .6em; padding: .5em 1.2em; border-radius: 99em; background: var(--hell); color: #0A1322; font-weight: 720; }
.f-klein { max-width: 22em; margin-top: .9em; color: rgb(201 220 255 / .82); font-size: .8em; text-wrap: balance; }
.f-ki { display: none; margin-top: 1.4em; font-size: .72em; font-stretch: 80%; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: rgb(201 220 255 / .7); }

/* Laufleiste: die Linie mit einem Halt, der mitfährt */
.film-lauf { position: absolute; z-index: 6; left: 8%; right: calc(4.5% + 3.1rem); bottom: calc(2.6% + 1.25rem - .16em); height: .32em; border-radius: 1em; background: rgb(141 185 255 / .24); }
.film:has(.film-ton:not([hidden])) .film-lauf { left: calc(4.5% + 3.1rem); }
.film-lauf i { position: absolute; inset: 0; border-radius: 1em; background: var(--hell); transform-origin: 0 50%; transform: scaleX(0); }
.film-lauf b { position: absolute; inset: 0; transform: translateX(-100%); }
.film-lauf b::after { content: ""; position: absolute; right: -.45em; top: 50%; width: .9em; height: .9em; margin-top: -.45em; border-radius: 50%; background: #0A1322; border: .2em solid var(--hell); box-shadow: 0 0 .9em rgb(141 185 255 / .9); }
.film.gestartet .film-lauf i { animation: f-lauf var(--dauer) linear forwards; }
.film.gestartet .film-lauf b { animation: f-lauf-b var(--dauer) linear forwards; }
@keyframes f-lauf { to { transform: none; } }
@keyframes f-lauf-b { to { transform: none; } }

/* Titelbild vor dem Start */
.film-poster { position: absolute; inset: 0; z-index: 7; display: grid; align-content: end; justify-items: start; gap: .55em; padding: 9% 8% max(13%, 4.1rem); font-size: 4.3cqi; background: #0A1322 radial-gradient(60% 38% at 30% 24%, rgb(37 87 214 / .5), transparent 72%); transition: opacity .35s, visibility .35s; }
.film-poster::before { content: ""; position: absolute; left: 16%; right: -8%; top: 13%; height: 27%; border-top: .22em solid var(--hell); border-left: .22em solid var(--hell); border-top-left-radius: 2.4em; }
.poster-symbol { position: absolute; left: 16%; top: 40%; transform: translate(-50%, -50%) translateX(.11em); width: 3.4em; height: 3.4em; border-radius: 50%; background: var(--hell); color: #0A1322; display: grid; place-items: center; box-shadow: 0 0 0 .5em #0A1322; }
.poster-symbol svg { width: 1.6em; height: 1.6em; }
.film-poster .schild { margin-top: .5em; font-size: .8em; color: var(--hauch); }
.film-poster b { font-size: 2.35em; font-weight: 770; font-stretch: 118%; letter-spacing: -.04em; line-height: 1; text-wrap: balance; }
.film-poster p { margin: 0; color: var(--hauch); }
.film.gestartet .film-poster { opacity: 0; visibility: hidden; }

.film-knopf { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; width: 100%; padding: 0; border: 0; border-radius: inherit; background: none; color: inherit; cursor: pointer; }
.film-knopf i { width: 4.4rem; height: 4.4rem; border-radius: 50%; background: var(--hell); color: #0A1322; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgb(0 0 0 / .7); transition: transform .3s var(--aus), opacity .25s; }
.film-knopf svg { width: 1.8rem; height: 1.8rem; }
.film-knopf .s-nochmal { display: none; }
.film.ende .film-knopf .s-play { display: none; }
.film.ende .film-knopf .s-nochmal { display: block; }
.film.gestartet.laeuft .film-knopf i { opacity: 0; transform: scale(.8); }
.film.ende .film-buehne { opacity: .45; transition: opacity .4s; }
.film-knopf:focus-visible { outline: 3px solid var(--hell); outline-offset: 4px; }
.film-knopf:active i { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .film:not(.laeuft) .film-knopf:hover i { transform: scale(1.07); } }

/* Ecken: Ton unten links, groß und klein unten rechts */
.film-ecke button { position: absolute; z-index: 9; bottom: 2.6%; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .16); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .2s, transform .16s var(--aus); }
.film-ecke button[hidden] { display: none; }
.film-ecke svg { width: 1.15rem; height: 1.15rem; }
.film-ecke button:active { transform: scale(.93); }
.film-ecke button:focus-visible { outline: 2.5px solid #fff; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .film-ecke button:hover { background: rgb(255 255 255 / .3); } }
.film-gross { right: 4.5%; }
.film-ton { left: 4.5%; }
.film-gross .s-zu, .film-ton .s-aus { display: none; }
.film-ton[aria-pressed="true"] .s-an { display: none; }
.film-ton[aria-pressed="true"] .s-aus { display: block; }
/* Groß: Der Film löst sich aus der Seite und steht mittig vor einem dunklen Schleier. Der Platz in der Seite bleibt frei, nichts springt */
html.film-ist-gross { overflow: hidden; }
.film-platz.gross::before { content: ""; position: fixed; inset: 0; z-index: 88; background: rgb(10 19 34 / .88); animation: film-schleier .25s both; }
.film-platz.gross .film { position: fixed; z-index: 89; left: 50%; top: 50%; width: auto; height: min(94dvh, calc(94vw * 16 / 9)); aspect-ratio: 9 / 16; transform: translate(-50%, -50%); box-shadow: 0 40px 120px -20px rgb(0 0 0 / .85); animation: film-auf .32s var(--aus) both; }
.film-platz.gross .film-gross .s-auf { display: none; }
.film-platz.gross .film-gross .s-zu { display: block; }
@keyframes film-auf { from { opacity: 0; transform: translate(-50%, -50%) scale(.94); } }
@keyframes film-schleier { from { opacity: 0; } }

/* Export fürs TikTok-Video (export.mjs): bildfüllend, ohne Knöpfe, mit Abstand zu den Flächen, die TikTok selbst belegt */
.film.export { position: fixed; z-index: 999; inset: 0; width: 100vw; height: 100vh; border-radius: 0; box-shadow: none; }
.film.export .film-ecke, .film.export .film-knopf, .film.export .film-poster, .film.export .film-lauf { display: none; }
.film.export .film-buehne { font-size: 4cqi; }
.film.export .film-oben { top: 8.6%; left: 11.5%; right: 11.5%; }
.film.export .film-halte { top: 13.5%; left: 11.5%; right: 11.5%; }
.film.export .sz { padding: 29% 11.5% 33%; }
.film.export .f-ki { display: block; }

.film-abschrift { border-top: 1px solid var(--haar); }
.film-abschrift summary { padding: .8rem 0; cursor: pointer; font-weight: 650; font-size: .96rem; }
.film-abschrift p { margin: 0 0 1rem; color: var(--tinte-2); font-size: .96rem; }
.film-teilen { justify-self: start; border: 0; background-color: transparent; color: inherit; font: inherit; font-weight: 650; font-size: .96rem; cursor: pointer; }
