/* Off-Cam · Startseite als Motion-Film (Entwurf 23.11.2026).
   Szenen bleiben beim Scrollen stehen (sticky) und spielen ihre Bewegung über --p (0..1, aus motion.js).
   Ohne JavaScript gilt --p = 1: alles steht im Endzustand. */

.motion-seite { --kopf: 76px; }
.szene { position: relative; height: var(--h, 300vh); }
.buehne { position: sticky; top: var(--kopf); height: calc(100svh - var(--kopf)); overflow: hidden; }

/* =================== Auftakt =================== */
.auftakt { position: relative; min-height: calc(100svh - var(--kopf)); display: grid; place-items: center; overflow: hidden; background: #FFFFFF; text-align: center; }
.knaller { position: absolute; inset: 0; pointer-events: none; }
.knall { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0; white-space: nowrap; font-size: clamp(3.2rem, 13vw, 12rem); font-weight: 700; letter-spacing: -.055em; line-height: 1; color: #0E0E10; }
.knall:nth-child(even) { color: #E23C64; }
.auftakt.steht .knaller { display: none; }

.auftakt-text { position: relative; z-index: 2; display: grid; justify-items: center; gap: 0; padding-block: 48px; }
.auftakt h1 { font-size: clamp(3.4rem, 10vw, 9.4rem); line-height: .86; letter-spacing: -.06em; }
.auftakt .zeile { display: block; overflow: hidden; padding-bottom: .06em; }
.auftakt .zeile > span { display: block; transform: translateY(110%); transition: transform 1s cubic-bezier(.16, 1, .3, 1); }
.auftakt .zeile-rose { color: #E23C64; }
.auftakt.steht .zeile > span { transform: none; }
.auftakt.steht .zeile-rose > span { transition-delay: .12s; }
.auftakt-lead { max-width: 52ch; margin-top: 28px; font-size: 1.1rem; color: #2B2A30; }
.auftakt-lead strong { color: #0E0E10; }
.auftakt-knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.auftakt .held-schutz { margin-top: 22px; }
.auftakt-lead, .auftakt-knoepfe, .auftakt .held-schutz { opacity: 0; transform: translateY(18px); transition: opacity .8s, transform .9s cubic-bezier(.16, 1, .3, 1); }
.auftakt.steht .auftakt-lead { opacity: 1; transform: none; transition-delay: .35s; }
.auftakt.steht .auftakt-knoepfe { opacity: 1; transform: none; transition-delay: .5s; }
.auftakt.steht .held-schutz { opacity: 1; transform: none; transition-delay: .65s; }

.wolke { position: absolute; inset: 0; z-index: 1; }
.wf { position: absolute; left: calc(50% + var(--x) * 1%); top: calc(50% + var(--y) * 1%); white-space: nowrap; padding: 9px 16px; border-radius: 999px; background: #F7F4F2; color: #0E0E10; font-weight: 600; font-size: .95rem; text-decoration: none;
  transform: translate(calc(var(--a, -50) * 1%), -50%) translate(calc(var(--mx, 0) * var(--t) * -46px), calc(var(--my, 0) * var(--t) * -46px));
  opacity: 0; transition: opacity .7s calc(.8s + var(--i) * .08s), background-color .2s, color .2s; }
.wf:hover, .wf:focus-visible { background: #E23C64; outline: none; }
.auftakt.steht .wf { opacity: 1; animation: wf-schweben calc(5s + var(--i) * .7s) ease-in-out infinite alternate; }
@media (min-width: 900px) and (max-width: 1279px) { .wf.wf-seite { display: none; } }
@keyframes wf-schweben { from { margin-top: -6px; } to { margin-top: 6px; } }
.scroll-hinweis { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #55525C; }
.scroll-hinweis span { width: 2px; height: 34px; background: linear-gradient(#E23C64, transparent); animation: hinweis 1.6s ease-in-out infinite; }
@keyframes hinweis { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 899px) {
  .auftakt { display: block; min-height: 0; padding-bottom: 40px; }
  .wolke { position: relative; inset: auto; display: flex; gap: 10px; overflow: hidden; padding: 10px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
  .wf { position: static; transform: none; flex: none; animation: none !important; }
  .auftakt.steht .wolke .wf { animation: wf-band 28s linear infinite !important; }
  .scroll-hinweis { display: none; }
}
@keyframes wf-band { to { transform: translateX(-560%); } }

/* =================== REC → OFF =================== */
.szene-rec { --h: 330vh; }
.szene-rec .buehne {
  --licht: clamp(0, (var(--p, 1) - .2) / .12, 1);
  --hoch: clamp(0, (var(--p, 1) - .34) / .14, 1);
  background: color-mix(in srgb, #F7F4F2 calc(var(--licht) * 100%), #0E0E10);
  color: color-mix(in srgb, #0E0E10 calc(var(--licht) * 100%), #F7F4F2);
  display: grid; place-items: center;
}
.rec-kopf { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); white-space: nowrap;
  transform: translate(-50%, -50%) translateY(calc(var(--hoch) * -30vh)) scale(calc(1 - var(--hoch) * .55)); }
.rec-punkt { width: clamp(70px, 13vmin, 160px); aspect-ratio: 1; border-radius: 50%; background: #E23C64; transform: scale(calc(1 - var(--licht) * .55)); animation: rec-puls 1.2s ease-in-out infinite; }
.ist-aus .rec-punkt { animation: none; background: transparent; box-shadow: inset 0 0 0 6px currentColor; }
@keyframes rec-puls { 50% { opacity: .35; } }
.rec-wort { position: relative; font-size: clamp(4rem, 17vmin, 13rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.rec-wort b { display: block; font-weight: 700; }
.rec-an { opacity: calc(1 - var(--licht)); }
.rec-aus { position: absolute; left: 0; top: 0; opacity: var(--licht); color: #E23C64; }
.rec-tc { font-size: clamp(1rem, 2.4vmin, 1.6rem); font-weight: 600; font-variant-numeric: tabular-nums; opacity: calc(.8 - var(--licht) * .5); }
.rec-ecken { position: absolute; inset: clamp(16px, 4vmin, 40px); opacity: calc(1 - var(--hoch)); pointer-events: none; }
.rec-ecken i { position: absolute; width: 48px; height: 48px; border: 4px solid currentColor; }
.rec-ecken i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.rec-ecken i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.rec-ecken i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.rec-ecken i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.rec-zeilen { position: relative; width: min(1100px, calc(100vw - 2 * var(--seite))); margin-top: 18vh; display: grid; gap: 12px; }
.rz { opacity: var(--e); transform: translateY(calc((1 - var(--e)) * 50px)); }
.rz1 { --e: clamp(0, (var(--p, 1) - .4) / .07, 1); }
.rz2 { --e: clamp(0, (var(--p, 1) - .48) / .07, 1); }
.rz3 { --e: clamp(0, (var(--p, 1) - .57) / .09, 1); }
.rz4 { --e: clamp(0, (var(--p, 1) - .7) / .09, 1); }
.rz1, .rz2 { font-size: clamp(1.6rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.rz2 { color: #E23C64; }
.rz3 { margin-top: 16px; font-size: clamp(2.6rem, 7.4vw, 6.6rem); line-height: .9; letter-spacing: -.055em; max-width: 12ch; }
.rz3 span { color: #E23C64; }
.rz4 { max-width: 60ch; margin-top: 14px; font-size: 1.08rem; color: #2B2A30; }

/* =================== Check → Guide → Austausch =================== */
.szene-weg { --h: 380vh; --spur: 128vw; }
.szene-weg .buehne { --q: clamp(0, (var(--p, 1) - .08) / .82, 1); background: #E23C64; color: #0E0E10; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); padding: clamp(24px, 4vw, 48px) 0; }
.weg-titel { padding-inline: var(--seite); font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -.03em; }
.weg-spur { list-style: none; margin: 0; padding: 0 var(--seite); display: flex; align-items: center; gap: 6vw; width: max-content; transform: translateX(calc(var(--q) * var(--spur-px, var(--spur)) * -1)); will-change: transform; }
.weg-tafel { width: max-content; min-width: min(58vw, 820px); display: grid; gap: 18px; align-content: center; }
.weg-gross { white-space: nowrap; font-size: clamp(3.4rem, 12vw, 12rem); font-weight: 700; letter-spacing: -.065em; line-height: .82; }
.weg-tafel:nth-child(2) .weg-gross { color: #FFFFFF; }
.weg-tafel + .weg-tafel .weg-gross::before { content: "→ "; font-weight: 600; }
.weg-tafel p { width: 38ch; max-width: 80vw; font-size: 1.12rem; }
.weg-tafel .fk { justify-self: start; }
.weg-zusatz { font-weight: 700; font-size: 1.1rem; }
.weg-text { padding-inline: var(--seite); max-width: 70ch; font-weight: 500; color: #0E0E10; }
@media (max-width: 899px) { .szene-weg { --spur: 190vw; } .weg-tafel { min-width: 84vw; } .weg-tafel p { max-width: 80vw; } }

/* =================== Zahlen =================== */
.szene-zahlen { --h: 280vh; }
.szene-zahlen .buehne { background: #FFFFFF; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 24px; padding: 24px var(--seite); }
.zahl-gross { display: flex; align-items: baseline; font-weight: 700; letter-spacing: -.07em; line-height: .8; color: #E23C64; font-size: clamp(9rem, 34vmin, 26rem); font-variant-numeric: tabular-nums; }
.zahl-gross b { font-size: .5em; color: #0E0E10; margin-left: .05em; }
.zahl-text h2 { font-size: clamp(1.6rem, 3.2vw, 2.8rem); letter-spacing: -.03em; line-height: 1.05; max-width: 18ch; }
.zahl-text p { max-width: 56ch; margin-top: 12px; color: #2B2A30; }
.zahl-balken { position: relative; margin: 0; }
.zahl-balken ol { list-style: none; margin: 0; padding: 0; height: clamp(120px, 24vh, 240px); display: flex; align-items: flex-end; gap: clamp(4px, 1vw, 12px); border-bottom: 3px solid #0E0E10; }
.zahl-balken li { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.zahl-balken li i { display: block; width: 100%; height: calc(var(--w) / 44 * 100%); min-height: 4px; border-radius: 8px 8px 0 0; background: #D9D2CE; transform: scaleY(0); transform-origin: bottom; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.zahl-balken li.mit-plan i { background: #E23C64; }
.zahl-balken li.an i { transform: none; }
.zahl-balken li span { position: absolute; bottom: -26px; font-size: .78rem; font-weight: 600; color: #55525C; }
.plan-schild { position: absolute; right: 0; top: -8px; padding: 6px 12px; border-radius: 999px; background: #0E0E10; color: #FFFFFF; font-weight: 700; font-size: .85rem; opacity: 0; transform: translateY(10px) scale(.9); transition: opacity .4s, transform .5s cubic-bezier(.16, 1, .3, 1); }
.plan-an .plan-schild { opacity: 1; transform: none; }
.zahl-balken figcaption { margin-top: 34px; font-size: .8rem; color: #55525C; }
@media (min-width: 960px) {
  .szene-zahlen .buehne { grid-template-columns: auto minmax(0, 1fr); column-gap: 56px; align-items: end; }
  .zahl-balken { grid-column: 1 / -1; }
}

/* =================== Wir =================== */
.wir { padding: var(--abschnitt) 0; background: #F7F4F2; }
.wir-raster { display: grid; gap: 40px 72px; align-items: center; }
.wir-bild { margin: 0; border-radius: 30px; overflow: hidden; }
.wir-bild img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.wir-text h2 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: .9; letter-spacing: -.05em; max-width: 11ch; }
.wir-text p { max-width: 48ch; margin-top: 18px; font-size: 1.08rem; color: #2B2A30; }
.wir-text .fk { margin-top: 8px; }
@media (min-width: 960px) { .wir-raster { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); } }
[data-auf] { opacity: 0; transform: translateY(40px); transition: opacity .9s, transform 1s cubic-bezier(.16, 1, .3, 1); }
[data-auf].da { opacity: 1; transform: none; }
.wir-text[data-auf] { transition-delay: .15s; }

/* =================== Ruhige Fassung =================== */
html.ruhig .szene { height: auto; }
html.ruhig .buehne { position: relative; top: auto; height: auto; min-height: 70vh; padding-block: 80px; }
html.ruhig .rec-kopf { position: relative; left: auto; top: auto; transform: none; justify-content: center; }
html.ruhig .rec-zeilen { margin-top: 40px; }
html.ruhig .weg-spur { transform: none; width: auto; flex-direction: column; align-items: stretch; }
html.ruhig .weg-tafel { width: auto; }
html.ruhig [data-auf] { opacity: 1; transform: none; }
html.ruhig .wf { animation: none !important; }
