/* Schauseite Loop Planner, Entwurf 3 (Rückmeldung User 29.10.). Farben und Schrift wie die App.
   Bewegung über CSS Scroll-Driven Animations, nur bei prefers-reduced-motion: no-preference.
   Wo Scroll-Timelines fehlen (Firefox), lädt js/bewegung.js GSAP und buehne.css (68B).
   Mit reduzierter Bewegung oder ohne Skript: ruhige, vollständige Fassung (Schicht „grund“). */
@import url("buehne.css") supports(animation-timeline: view()) (prefers-reduced-motion: no-preference);

@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
  src: url(schrift/saira.woff2) format('woff2');
}
@property --zahl { syntax: '<integer>'; inherits: false; initial-value: 0; }

/* Grundfarben, Schrift und Farbschema ohne Ebene: Eine Hülle (Artifact-Vorschau) setzt eigene Grundstyles ohne Ebene
   (helles Farbschema, 14-px-Systemschrift, schwarze Schrift), die sonst die Schicht „grund“ schlagen (Entwurf 2, 29.10.). */
:root {
  --bg: #07080b;
  --panel: #0e1117;
  --karte: #121620;
  --linie: #212734;
  --text: #eef1f6;
  --muted: #98a2b3;
  --leise: #6f7a8c;
  --akzent: #45d6ef;
  --akzent-tief: #1a8fa6;
  --rot: #ff5d52;
  --auf-akzent: #06222a;
  --schrift: 'Saira', 'Avenir Next Condensed', 'Bahnschrift', 'Roboto Condensed', 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --breite: min(1240px, 100% - 32px);
  --rand: max(16px, (100% - 1240px) / 2);
  color-scheme: dark;
}
html, body { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--schrift); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}

@layer grund {
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--akzent); }
h1, h2, h3 { font-stretch: 87.5%; line-height: 1.02; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(34px, 5.2vw, 64px); font-weight: 650; }
h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 650; }
p { margin: 0; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.kicker {
  font-family: var(--mono); font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--akzent); font-weight: 500; font-stretch: 100%; line-height: 1.4;
}
.kicker::before { content: ''; display: inline-block; width: 22px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 10px; }
.punkt { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--akzent); box-shadow: 0 0 12px var(--akzent); margin-right: 10px; vertical-align: 1px; }

/* Kopf mit Fortschritt (Schlauch füllt sich beim Scrollen) */
.kopf {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 12px var(--rand);
  background: rgba(7, 8, 11, .72); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.marke { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; margin-right: auto; }
.marke span { font-weight: 600; font-stretch: 87.5%; letter-spacing: .16em; text-transform: uppercase; font-size: 15px; }
.kopf-nav { display: flex; gap: 26px; }
.kopf-nav a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.kopf-nav a:hover { color: var(--text); }
.fortschritt {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--akzent-tief), var(--akzent));
  box-shadow: 0 0 10px rgba(69, 214, 239, .6);
  transform-origin: 0 50%; transform: scaleX(0);
}

.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--akzent); color: var(--auf-akzent);
  font-weight: 650; text-decoration: none; letter-spacing: .01em;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background .25s;
}
.knopf:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(69, 214, 239, .35); }
.knopf:focus-visible, .marke:focus-visible, a:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }
.knopf.klein { min-height: 38px; padding: 0 16px; font-size: 15px; }
.knopf.leise { background: rgba(255, 255, 255, .04); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.knopf.leise:hover { box-shadow: inset 0 0 0 1px var(--akzent); }

/* Held: Blender-Szene vollflächig */
.held { position: relative; margin-top: -63px; }
.held .pin { position: relative; width: 100%; min-height: 100svh; display: grid; align-items: end; overflow: clip; isolation: isolate; }
/* .held davor: .folge (weiter unten, gleiche Schicht) setzt sonst position: relative */
.held .folge-held { position: absolute; inset: 0; aspect-ratio: auto; z-index: -2; }
.folge-held img { object-position: 62% 50%; }
.held .pin::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 8, 11, .94) 0%, rgba(7, 8, 11, .72) 34%, rgba(7, 8, 11, 0) 64%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 8, 11, 0) 38%);
}
.held-text { padding: 140px var(--rand) clamp(80px, 12vh, 140px); max-width: calc(var(--rand) + 980px); }
.schild {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(69, 214, 239, .32); background: rgba(69, 214, 239, .06); color: var(--akzent);
  font-size: 14px; letter-spacing: .05em; margin-bottom: 28px; backdrop-filter: blur(6px);
}
.held h1 { font-size: clamp(48px, 8vw, 120px); font-weight: 750; line-height: .94; }
.zeile { display: block; overflow: clip; padding-bottom: .04em; white-space: nowrap; }
.zeile > span { display: inline-block; }
.zeile.akzent > span {
  background: linear-gradient(100deg, var(--akzent) 20%, #b8f3ff 50%, var(--akzent) 80%);
  background-size: 250% 100%; background-position: 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.einleitung { max-width: 560px; margin-top: 28px; color: #b9c2d0; font-size: clamp(17px, 1.4vw, 19px); }
.aktionen { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.scroll-hinweis {
  position: absolute; right: var(--rand); bottom: 40px; display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--leise);
  writing-mode: vertical-rl;
}
.scroll-hinweis span { width: 1px; height: 64px; background: linear-gradient(var(--akzent), transparent); }

/* Gepinnte Abschnitte: ruhige Grundfassung */
.pin { width: var(--breite); margin: 0 auto; }
.folge { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #050608; }
.folge img { display: none; width: 100%; height: 100%; object-fit: cover; }
.folge img.schluessel, .folge img:first-child:last-child { display: block; }
/* js/bildfolge.js malt die Folge auf ein Canvas, je Scrollstelle genau ein Bild (User 30.10., Ghosting) */
.folge canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.folge.leinwand img { display: none; }

/* Problem */
.problem { padding-top: clamp(80px, 12vw, 160px); }
.folge-problem { border-radius: 18px; border: 1px solid var(--linie); }
.problem-text { margin-top: 36px; }
.zeilen { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.zeilen li { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.2; font-stretch: 87.5%; color: var(--muted); }
.zeilen strong { color: var(--text); font-weight: 650; }
.zeilen .rot { color: var(--rot); }

/* Wende */
.wende { padding: clamp(100px, 14vw, 200px) 0 0; text-align: center; }
.wende-logo { width: clamp(84px, 10vw, 128px); margin: 0 auto 40px; display: block; overflow: visible; }
.wende-schlauch { fill: none; stroke: var(--akzent); stroke-width: 13.2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px rgba(69, 214, 239, .6)); }
.wende-ring { fill: #e8f4fc; }
/* Bauplan hinter der Wende (User 30.10.: „2D blauer Bauplan … nur ganz abstrakt und faint“), Mitte hinter dem Satz noch blasser */
.wende .pin { position: relative; }
.wende-logo, .wende .satz { position: relative; z-index: 1; }
.bauplan {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none;
  color: var(--akzent); opacity: .16;
  -webkit-mask-image: radial-gradient(ellipse 55% 50% at 50% 55%, rgba(0, 0, 0, .2), #000 80%);
  mask-image: radial-gradient(ellipse 55% 50% at 50% 55%, rgba(0, 0, 0, .2), #000 80%);
}
.bauplan :is(.teil, .schlauch, .mass) { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.bauplan .schlauch { stroke-width: 3; }
.bauplan .mass { stroke-width: 1; }
.bauplan text { fill: currentColor; font-family: var(--mono); font-size: 14px; letter-spacing: .16em; }
.satz { max-width: 980px; margin: 0 auto; font-size: clamp(34px, 5.4vw, 72px); font-weight: 650; line-height: 1.08; }

/* Aufbau */
.aufbau { padding-top: clamp(100px, 14vw, 200px); }
.aufbau .pin { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.aufbau h2 { margin: 12px 0 20px; font-size: clamp(30px, 3.2vw, 44px); }
.schritte { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; position: relative; }
.schritte li { display: grid; grid-template-columns: 30px 1fr; gap: 4px 10px; padding: 9px 12px; border-radius: 12px; }
.schritte li > span { font-family: var(--mono); font-size: 13px; color: var(--akzent); padding-top: 4px; }
.schritte strong { font-size: 18px; font-weight: 650; font-stretch: 87.5%; }
.schritte p { color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 1px; }
.fenster {
  /* Aufnahme auf das Gehäuse zugeschnitten (User 30.10.: „zu viel blank space“), Höhe passt in den Bildschirm */
  width: min(100%, calc((100svh - 160px) * 780 / 654)); justify-self: center;
  margin: 0; border-radius: 14px; overflow: hidden; background: #0b0d12;
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 50px 120px rgba(0, 0, 0, .65), 0 0 0 1px rgba(69, 214, 239, .05), 0 0 120px rgba(69, 214, 239, .10);
}
.fenster-leiste { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #10131a; border-bottom: 1px solid var(--linie); }
.fenster-leiste i { width: 10px; height: 10px; border-radius: 50%; background: #2a303c; }
.fenster-leiste span { margin-left: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--leise); }

/* Funktionen als Kacheln */
.funktionen { width: var(--breite); margin: 0 auto; padding-top: clamp(100px, 14vw, 200px); }
.abschnitt-kopf { max-width: 760px; margin-bottom: 48px; }
.abschnitt-kopf h2 { margin-top: 14px; }
.raster { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.kachel {
  grid-column: span 3; position: relative; overflow: hidden; border-radius: 20px;
  background: linear-gradient(180deg, var(--karte), var(--panel)); border: 1px solid var(--linie);
  display: flex; flex-direction: column;
}
.kachel.gross { grid-column: span 4; }
.kachel.typo { grid-column: span 2; padding: 28px; justify-content: space-between; gap: 18px; background: radial-gradient(120% 90% at 100% 0%, rgba(69, 214, 239, .18), transparent 60%), var(--panel); }
.kachel.breit { grid-column: span 6; display: grid; grid-template-columns: 3fr 2fr; align-items: center; }
.kachel.weit { grid-column: span 6; }
.folge-aufbau { aspect-ratio: 780 / 654; }
.kachel figure { margin: 0; overflow: hidden; aspect-ratio: 16 / 10; position: relative; }
.kachel.breit figure { order: 2; aspect-ratio: 16 / 11; }
.kachel figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.kachel:hover figure img { transform: scale(1.04); }
/* Freigestellte App-Elemente (109A): ganz gezeigt oder oben angesetzt und unten ausgeblendet, nie angeschnitten an der Seite */
.kachel figure.element { display: grid; justify-items: center; padding: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px) 0;
  background: radial-gradient(80% 70% at 50% 0%, rgba(69, 214, 239, .12), transparent 70%), #0b0e14; border-bottom: 1px solid var(--linie); }
.kachel figure.element img { width: auto; height: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)); }
.element.hoch { align-items: start; mask-image: linear-gradient(#000 72%, transparent 98%); }
.element.hoch img { width: min(64%, 380px); }
.element.quer { align-items: center; padding-bottom: clamp(20px, 3vw, 36px); }
.element.quer img { width: min(100%, 1100px); }
.kachel.weit figure.element { aspect-ratio: auto; }
.kachel .varianten img { object-fit: cover; }
.kachel-text { padding: 24px 28px 30px; }
.kachel-text h3 { margin: 6px 0 10px; }
.kachel-text p:not(.nummer), .kachel.typo p:last-child { color: var(--muted); font-size: 16px; }
.nummer { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--akzent); }
.riesig { font-size: clamp(64px, 7vw, 104px); font-weight: 800; font-stretch: 62.5%; line-height: .9; letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff, #7fdff0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.typo-zeile { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 20px; color: var(--text); }
.typo-zeile .pfeil { flex: 1; height: 1px; background: linear-gradient(90deg, var(--akzent), transparent); position: relative; }
.typo-zeile .pfeil::after { content: ''; position: absolute; right: 0; top: -4px; border: 4px solid transparent; border-left: 7px solid var(--akzent); }
.varianten img { position: absolute; inset: 0; }
.varianten img + img { opacity: 0; }
.abc { position: absolute; left: 16px; bottom: 14px; display: flex; gap: 6px; }
.abc span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: rgba(7, 8, 11, .7); border: 1px solid var(--linie); color: var(--muted); }
.abc span:first-child { background: var(--akzent); color: var(--auf-akzent); border-color: var(--akzent); }

/* Laufband */
.band { margin-top: clamp(90px, 12vw, 160px); border-block: 1px solid var(--linie); overflow: hidden; padding: 22px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.band-spur { display: flex; width: max-content; }
.band ul { display: flex; list-style: none; margin: 0; padding: 0; }
.band li { font-size: clamp(26px, 3.4vw, 44px); font-weight: 650; font-stretch: 75%; text-transform: uppercase; letter-spacing: .02em; padding: 0 28px; white-space: nowrap; color: #2c3442; }
.band li:nth-child(3n + 1) { color: var(--text); }
.band li::after { content: '◦'; color: var(--akzent); margin-left: 56px; font-weight: 400; }

/* Zahlen */
.fakten { width: var(--breite); margin: 0 auto; padding-top: clamp(80px, 10vw, 140px); }
.fakten dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fakten div { border-top: 1px solid var(--linie); padding-top: 22px; }
.fakten dt { color: var(--muted); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.zahl { display: block; font-size: clamp(72px, 9vw, 132px); font-weight: 750; font-stretch: 62.5%; line-height: .9; color: var(--text); letter-spacing: -.02em; margin-bottom: 10px;
  counter-reset: z var(--zahl); }
.zahl::after { content: counter(z); }
.z66 { --zahl: 66; } .z50 { --zahl: 50; } .z3 { --zahl: 3; }
.fakten dd { margin: 8px 0 0; color: var(--muted); }

/* Video */
.video { width: var(--breite); margin: 0 auto; padding-top: clamp(100px, 14vw, 180px); text-align: center; }
.video .kicker { margin-bottom: 14px; }
.video-rahmen {
  margin-top: 36px; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; position: relative;
  border: 1px solid var(--linie); display: grid; place-items: center; color: var(--muted);
  background: radial-gradient(70% 90% at 50% 50%, rgba(69, 214, 239, .10), transparent 70%), repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 64px), repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 64px), var(--panel);
}
.video-rahmen video { width: 100%; height: 100%; object-fit: cover; }

/* Schluss */
.schluss { width: var(--breite); margin: clamp(100px, 14vw, 200px) auto 0; padding-bottom: clamp(80px, 10vw, 140px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.schluss-bild { order: 2; width: 100%; border-radius: 22px; border: 1px solid var(--linie);
  box-shadow: 0 50px 120px rgba(0, 0, 0, .6), 0 0 120px rgba(69, 214, 239, .12); }
.schluss h2 { font-size: clamp(44px, 6.4vw, 96px); font-weight: 750; }
.schluss p { color: #c3cbd8; margin: 20px 0 32px; max-width: 460px; font-size: 19px; }

/* Fuß */
.fuss { width: var(--breite); margin: 0 auto; padding: 32px 0 44px; border-top: 1px solid var(--linie); color: var(--leise); font-size: 14px; display: grid; gap: 8px; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; }
.fuss a { color: var(--muted); text-decoration: none; }
.fuss a:hover { color: var(--akzent); }

@media (max-width: 900px) {
  .kopf-nav { display: none; }
  .aufbau .pin { grid-template-columns: 1fr; gap: 18px; }
  .aufbau-text { display: contents; }
  .aufbau .kicker, .aufbau h2 { order: -2; }
  .aufbau h2 { margin: 0; }
  .fenster { order: -1; }
  .schritte { grid-template-columns: 1fr 1fr; }
  .schritte p { display: none; }
  .schritte li { padding: 7px 10px; }
  .schritte strong { font-size: 16px; }
  .raster { grid-template-columns: 1fr; }
  .kachel, .kachel.gross, .kachel.typo, .kachel.breit, .kachel.weit { grid-column: auto; }
  .kachel.breit { grid-template-columns: 1fr; }
  .kachel.breit figure { order: 0; }
  .fakten dl { grid-template-columns: 1fr; gap: 28px; }
  .held { align-items: end; }
  .folge-held img { object-position: 70% 30%; }
  .held .pin::before { background: linear-gradient(0deg, var(--bg) 8%, rgba(7, 8, 11, .82) 52%, rgba(7, 8, 11, .2) 100%); }
  .scroll-hinweis { display: none; }
  .schluss { grid-template-columns: 1fr; }
  .schluss-bild { order: 0; }
}
@media (max-width: 520px) { .knopf.klein { display: none; } }

/* ===== Bewegung: nur wenn erwünscht ===== */
@media (prefers-reduced-motion: no-preference) {
  /* Auftritt beim Laden (Zeit) */
  .folge-held { animation: held-rein 2.4s cubic-bezier(.2, .7, .1, 1) backwards; }
  .zeile > span { animation: zeile-hoch 1.2s cubic-bezier(.2, .8, .1, 1) backwards, breite 1.6s cubic-bezier(.2, .8, .1, 1) backwards; }
  .zeile + .zeile > span { animation-delay: .14s, .14s; }
  .zeile.akzent > span { animation: zeile-hoch 1.2s cubic-bezier(.2, .8, .1, 1) .14s backwards, breite 1.6s cubic-bezier(.2, .8, .1, 1) .14s backwards, glanz 6s ease-in-out 1.8s infinite; }
  .schild, .einleitung, .aktionen { animation: weich-rein 1s cubic-bezier(.2, .8, .2, 1) backwards; }
  .schild { animation-delay: .05s; } .einleitung { animation-delay: .45s; } .aktionen { animation-delay: .6s; }
  .punkt { animation: puls 2.2s ease-in-out infinite; }
  .scroll-hinweis span { animation: tropfen 2.4s cubic-bezier(.6, 0, .4, 1) infinite; transform-origin: top; }
  .band-spur { animation: band 46s linear infinite; }
  .band:hover .band-spur { animation-play-state: paused; }
  .varianten img:nth-child(2) { animation: variante-b 9s infinite; }
  .varianten img:nth-child(3) { animation: variante-c 9s infinite; }
  .abc span:nth-child(1) { animation: abc-a 9s infinite; }
  .abc span:nth-child(2) { animation: abc-b 9s infinite; }
  .abc span:nth-child(3) { animation: abc-c 9s infinite; }
}
@keyframes held-rein { from { transform: scale(1.14); filter: brightness(.3) blur(6px); } }
@keyframes zeile-hoch { from { transform: translateY(105%); } }
@keyframes breite { from { font-stretch: 50%; letter-spacing: .04em; } }
@keyframes glanz { 0%, 60% { background-position: 0 0; } 100% { background-position: -150% 0; } }
@keyframes weich-rein { from { opacity: 0; transform: translateY(18px); } }
@keyframes puls { 50% { opacity: .35; box-shadow: 0 0 2px var(--akzent); } }
@keyframes tropfen { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes band { to { transform: translateX(-50%); } }
@keyframes variante-b { 0%, 30% { opacity: 0; } 34%, 64% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes variante-c { 0%, 64% { opacity: 0; } 68%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes abc-a { 0%, 31% { background: var(--akzent); color: var(--auf-akzent); } 34%, 97% { background: rgba(7, 8, 11, .7); color: var(--muted); } }
@keyframes abc-b { 0%, 31%, 68%, 100% { background: rgba(7, 8, 11, .7); color: var(--muted); } 34%, 65% { background: var(--akzent); color: var(--auf-akzent); border-color: var(--akzent); } }
@keyframes abc-c { 0%, 65% { background: rgba(7, 8, 11, .7); color: var(--muted); } 68%, 97% { background: var(--akzent); color: var(--auf-akzent); border-color: var(--akzent); } }
}

/* ===== Scroll-Inszenierung: nur wo der Browser Scroll-Timelines kann ===== */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .fortschritt { animation: fuellen linear both; animation-timeline: scroll(root); }
    html.gsap *, html.gsap *::before, html.gsap *::after { animation: none !important; }

    /* Held: Bild fährt beim Wegscrollen heran, Text hebt ab */
    .held { view-timeline: --held block; }
    /* Held: Kamerafahrt durch die Seitenwand ins Gehäuse (110A), der Text hebt zu Beginn ab */
    .held-text, .scroll-hinweis { animation: text-raus linear both; animation-timeline: --held; animation-range: contain 0% contain 16%; }

    /* Gepinnte Bühnen: Abschnitt hoch, Inhalt klebt */
    /* Layout der Bühnen: buehne.css (per @import oben, im Firefox vom Skript geladen) */
    .problem { view-timeline: --problem block; }
    .aufbau { view-timeline: --aufbau block; }
    .wende { view-timeline: --wende block; }
    .zeilen li { animation: zeile-wechsel linear both; animation-timeline: --problem; }
    .zeilen li:nth-child(1) { animation-range: contain 0% contain 17%; }
    .zeilen li:nth-child(2) { animation-range: contain 17% contain 34%; }
    .zeilen li:nth-child(3) { animation-range: contain 34% contain 52%; }
    .zeilen li:nth-child(4) { animation-range: contain 52% contain 76%; }
    .zeilen li:nth-child(5) { animation: zeile-bleibt linear both; animation-timeline: --problem; animation-range: contain 76% contain 92%; }

    /* Wende: Logo zeichnet sich, Satz leuchtet Wort für Wort auf */
    .wende-schlauch { animation: zeichnen linear both; animation-timeline: --wende; animation-range: contain 0% contain 30%; }
    .wende-ring.links { animation: ring-links linear both; animation-timeline: --wende; animation-range: contain 26% contain 36%; }
    .wende-ring.rechts { animation: ring-rechts linear both; animation-timeline: --wende; animation-range: contain 26% contain 36%; }
    .satz span { animation: wort-an linear both; animation-timeline: --wende; }
    .bauplan { animation: bauplan-ran linear both; animation-timeline: --wende; animation-range: contain 0% contain 100%; }
    .bauplan .teil { animation: zeichnen linear both; animation-timeline: --wende; animation-range: contain 0% contain 35%; }
    .bauplan .schlauch { animation: zeichnen linear both; animation-timeline: --wende; animation-range: contain 25% contain 60%; }
    .bauplan .mass { animation: zeichnen linear both; animation-timeline: --wende; animation-range: contain 50% contain 75%; }
    .bauplan text { animation: einblenden linear both; animation-timeline: --wende; animation-range: contain 60% contain 80%; }

    /* Aufbau: Fenster kippt herein, Schritte folgen der Aufnahme */
    .fenster { animation: fenster-kippen linear both; animation-timeline: --aufbau; animation-range: entry 10% entry 100%; }
    .schritte li { animation: schritt-an linear both; animation-timeline: --aufbau; }
    .schritte li:nth-child(1) { animation-range: contain 0% contain 25%; }
    .schritte li:nth-child(2) { animation-range: contain 25% contain 33%; }
    .schritte li:nth-child(3) { animation-range: contain 33% contain 43%; }
    .schritte li:nth-child(4) { animation-range: contain 43% contain 60%; }
    .schritte li:nth-child(5) { animation-range: contain 60% contain 81%; }
    .schritte li:nth-child(6) { animation: schritt-bleibt linear both; animation-timeline: --aufbau; animation-range: contain 81% contain 88%; }
    .schritte::before { animation: fuellen-hoch linear both; animation-timeline: --aufbau; animation-range: contain 0% contain 92%; }

    /* Kacheln wischen auf, Bilder setzen sich */
    .kachel { animation: kachel-auf linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .kachel figure img { animation: bild-setzt linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    .varianten img:nth-child(2) { animation: variante-b 9s infinite; }
    .varianten img:nth-child(3) { animation: variante-c 9s infinite; }
    .abschnitt-kopf, .video h2, .video .kicker, .video-rahmen { animation: weich-rein linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .band-spur { animation: band 46s linear infinite; }

    /* Zeitpunkte je Wort (Bildfolgen: js/bildfolge.js) */
    
    .satz span:nth-child(1){animation-range:contain 18.0% contain 24.0%}
    .satz span:nth-child(2){animation-range:contain 21.3% contain 27.3%}
    .satz span:nth-child(3){animation-range:contain 24.6% contain 30.6%}
    .satz span:nth-child(4){animation-range:contain 27.9% contain 33.9%}
    .satz span:nth-child(5){animation-range:contain 31.2% contain 37.2%}
    .satz span:nth-child(6){animation-range:contain 34.5% contain 40.5%}
    .satz span:nth-child(7){animation-range:contain 37.8% contain 43.8%}
    .satz span:nth-child(8){animation-range:contain 41.1% contain 47.1%}
    .satz span:nth-child(9){animation-range:contain 44.4% contain 50.4%}
    .satz span:nth-child(10){animation-range:contain 47.7% contain 53.7%}
    .satz span:nth-child(11){animation-range:contain 51.0% contain 57.0%}
    .satz span:nth-child(12){animation-range:contain 54.3% contain 60.3%}
    .satz span:nth-child(13){animation-range:contain 57.6% contain 63.6%}
    .satz span:nth-child(14){animation-range:contain 60.9% contain 66.9%}
    .satz span:nth-child(15){animation-range:contain 64.2% contain 70.2%}
    .satz span:nth-child(16){animation-range:contain 67.5% contain 73.5%}
    .satz span:nth-child(17){animation-range:contain 70.8% contain 76.8%}
    .satz span:nth-child(18){animation-range:contain 74.1% contain 80.1%}
    .satz span:nth-child(19){animation-range:contain 77.4% contain 83.4%}

    /* Zahlen zählen hoch */
    .zahl { animation: zaehlen linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }

    /* Schluss: Bild zieht zurück */
    .schluss { view-timeline: --schluss block; }
    .schluss-bild { animation: zurueck linear both; animation-timeline: --schluss; animation-range: entry 0% cover 50%; }
    .schluss-text > * { animation: weich-rein linear both; animation-timeline: --schluss; animation-range: entry 40% contain 30%; }
  }
}
@keyframes fuellen { to { transform: scaleX(1); } }
@keyframes fuellen-hoch { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes text-raus { to { opacity: 0; transform: translateY(-12vh); } }
@keyframes zeile-wechsel { 0% { opacity: 0; transform: translateY(40px); filter: blur(8px); } 18%, 80% { opacity: 1; transform: none; filter: none; } 100% { opacity: 0; transform: translateY(-30px); filter: blur(6px); } }
@keyframes zeile-bleibt { 0% { opacity: 0; transform: translateY(40px); filter: blur(8px); } 40%, 100% { opacity: 1; transform: none; filter: none; } }
@keyframes zeichnen { from { stroke-dashoffset: 1; } }
@keyframes bauplan-ran { from { transform: scale(1.06); } }
@keyframes einblenden { from { opacity: 0; } }
@keyframes ring-links { from { transform: translateX(-26px); opacity: 0; } }
@keyframes ring-rechts { from { transform: translateX(26px); opacity: 0; } }
@keyframes wort-an { to { opacity: 1; } }
@keyframes fenster-kippen { from { transform: perspective(1400px) rotateX(24deg) scale(.86) translateY(8%); opacity: .3; } }
@keyframes schritt-an { 0% { opacity: .32; background: transparent; } 12%, 88% { opacity: 1; background: rgba(69, 214, 239, .07); } 100% { opacity: .32; background: transparent; } }
@keyframes schritt-bleibt { to { opacity: 1; background: rgba(69, 214, 239, .07); } }
@keyframes kachel-auf { from { clip-path: inset(14% 8% 0 8% round 28px); opacity: 0; transform: translateY(60px); } to { clip-path: inset(0 0 0 0 round 20px); opacity: 1; transform: none; } }
@keyframes bild-setzt { from { transform: scale(1.22); } }
@keyframes zaehlen { from { --zahl: 0; } }
@keyframes zurueck { from { clip-path: inset(10% 14% 10% 14% round 32px); transform: scale(1.06); filter: brightness(.4); } to { clip-path: inset(0 0 0 0 round 22px); } }
