/* =========================================================
   Anne 29 — Birthday Route
   Mobile-first, no framework, dark green anchor
   ========================================================= */

:root {
  --green-deep:   #142a22;
  --green-bark:   #1a3a2e;
  --green-moss:   #2d5a3d;
  --green-fresh:  #4a7c5b;
  --green-light:  #7fae8c;

  --cream:        #f5ecd6;
  --cream-soft:   #faf5e6;
  --sun:          #f5c542;
  --sun-soft:     #f8d97a;
  --terracotta:   #c97d5b;
  --plum:         #6b3e5a;
  --ink:          #0e1c15;

  --shadow-soft:  0 8px 30px rgba(0, 0, 0, .28);
  --shadow-card:  0 12px 40px rgba(0, 0, 0, .35);

  --radius-sm:    .5rem;
  --radius-md:    1rem;
  --radius-lg:    1.75rem;

  --container:    36rem;
  --container-wide: 52rem;

  --ease-out:     cubic-bezier(.22, .61, .36, 1);
  --ease-in-out:  cubic-bezier(.65, 0, .35, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* reserviert Scrollbar-Platz permanent → kein horizontaler Layout-Shift beim Lock */
  scrollbar-gutter: stable;
}

/* Scroll-Lock-Klasse: kein position:fixed → kein vertikaler Sprung beim Unlock */
html.is-scroll-locked,
html.is-scroll-locked body {
  overflow: hidden;
  touch-action: none;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--cream);
  background: var(--green-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }

/* =========================================================
   Hintergrund-Layer: Himmel + Berge (fixed)
   ========================================================= */

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    #f8d97a   0%,    /* Tal: warmes Morgenlicht */
    #f5c542  10%,
    #e89a5e  22%,
    #c97d5b  35%,
    #6b3e5a  55%,
    #2d5a3d  75%,
    #1a3a2e  90%,
    #142a22 100%     /* Gipfel: kuehl, dunkel */
  );
  /* der gradient ist groesser als der Viewport — wir verschieben ihn beim Scrollen */
  background-size: 100% 800vh;
  background-position: 0 0;
  /* transition entfernt — Lock/Unlock erzeugte sichtbaren Farbflash */
  pointer-events: none;
}

.mountains {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 1;
  pointer-events: none;
  /* leicht vom unteren Rand abgesetzt */
  transform: translateY(0);
  will-change: transform;
}

.mountain { stroke: none; }
.mountain--back  { fill: rgba(45, 90, 61, .55); }
.mountain--mid   { fill: rgba(26, 58, 46, .85); }
.mountain--front { fill: var(--green-deep); }

.snow { fill: rgba(250, 245, 230, .85); }
.trees { fill: var(--green-deep); opacity: .85; }
.trees--mid { fill: rgba(20, 42, 34, .9); }
.trees--front { fill: var(--ink); }

/* =========================================================
   Sterne (oberes Drittel, erscheinen beim Gipfel)
   ========================================================= */

.stars {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}

.stars.is-visible {
  opacity: 1;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--cream-soft);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(250, 245, 230, .65);
  animation: star-twinkle var(--star-duration, 3s) ease-in-out var(--star-delay, 0s) infinite;
}

.star--big {
  width: 3px;
  height: 3px;
  box-shadow: 0 0 8px rgba(245, 197, 66, .55);
}

@keyframes star-twinkle {
  0%, 100% { opacity: .45; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.4); }
}

/* =========================================================
   Klatter-Szene: Wand, Kletterin, Sicherer, Seil, Umlenker
   ========================================================= */

.climb-stage {
  position: fixed;
  top: 0;
  right: 0;
  width: 90px;
  height: 100vh;
  height: 100dvh;
  z-index: 4;
  pointer-events: none;
}

@media (min-width: 768px) {
  .climb-stage { width: 130px; }
}

/* Felswand-Streifen — undurchsichtig, eigener Fels */
.climb-wall {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg,
      rgba(58, 44, 36, .98) 0%,
      rgba(78, 60, 48, .98) 50%,
      rgba(46, 34, 28, .99) 100%),
    repeating-linear-gradient(176deg,
      rgba(20, 14, 10, .25) 0 1px,
      transparent 1px 80px),
    repeating-linear-gradient(180deg,
      rgba(255, 230, 200, .035) 0 70px,
      transparent 70px 140px);
  background-blend-mode: normal, multiply, screen;
  border-left: 1px solid rgba(245, 197, 66, .25);
  box-shadow: inset 6px 0 14px rgba(0, 0, 0, .35);
}

/* Griffe an der Wand */
.hold {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%,
    rgba(245, 236, 214, .8),
    rgba(150, 110, 85, .9) 50%,
    rgba(20, 14, 10, .95) 90%);
  box-shadow:
    0 2px 3px rgba(0, 0, 0, .55),
    inset 0 -2px 2px rgba(0, 0, 0, .5);
  transform: translate(-50%, -50%);
}

.hold--small {
  width: 7px;
  height: 7px;
  opacity: .55;
}

@media (min-width: 768px) {
  .hold       { width: 13px; height: 13px; }
  .hold--small{ width: 9px;  height: 9px;  }
}

/* Umlenker direkt an der Wand (kein Felskanten-Plateau dahinter) */
.anchor {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 38px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5));
  animation: anchor-glow 3.5s ease-in-out infinite;
}

@keyframes anchor-glow {
  0%, 100% {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5))
            drop-shadow(0 0 0 transparent);
  }
  50% {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5))
            drop-shadow(0 0 6px rgba(245, 197, 66, .55));
  }
}

@media (min-width: 768px) {
  .anchor { top: 18px; width: 58px; height: 48px; }
}

/* Das physikalische Seil (SVG quer ueber die ganze Stage) */
.rope {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.rope-path {
  filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, .35));
}

/* Sprechblasen links neben den Figuren */
.speech {
  position: absolute;
  right: calc(100% - 10px);          /* knapp links neben der Stage */
  width: max-content;
  max-width: min(220px, 60vw);
  background: var(--cream-soft);
  color: var(--ink);
  padding: .55rem .8rem;
  border-radius: .9rem;
  font-size: clamp(.78rem, 3.2vw, .95rem);
  line-height: 1.3;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
  opacity: 0;
  transform: scale(.85) translateX(10px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
  pointer-events: none;
  z-index: 6;
}

@media (min-width: 768px) {
  .speech { max-width: min(280px, 40vw); font-size: 1rem; }
}

.speech.is-visible {
  opacity: 1;
  transform: scale(1) translateX(0);
}

/* Pfeil-Spitze zeigt auf die Figur rechts */
.speech::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: var(--cream-soft);
  border-right: 0;
  filter: drop-shadow(2px 0 2px rgba(0, 0, 0, .25));
}

/* Anne: Sprechblase folgt ihrer Position vertikal (JS setzt top auf Kopfhoehe) */
.speech--anne {
  top: 50%;
  transform: scale(.85) translate(10px, -50%);
  transition: opacity .25s var(--ease-out),
              transform .25s var(--ease-out),
              top .12s linear;
}

.speech--anne.is-visible {
  transform: scale(1) translate(0, -50%);
}

/* Sicherer: Pfeil-Spitze (auf bubble.top:50%) zeigt direkt auf den Kopf
   Belayer-SVG Kopf liegt ~64px ueber dem Stage-Boden → bubble.bottom = 64 - bubble.height/2 */
.speech--belayer {
  bottom: 46px;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .speech--belayer { bottom: 50px; }
}

/* Anne, die Kletterin (Position via JS) */
.climber-anne {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .4));
  transition: top .12s linear;
}

@keyframes climber-sway {
  0%, 100% { transform: translate(-50%, -50%) rotate(-1.5deg); }
  50%      { transform: translate(-50%, -50%) rotate(1.5deg); }
}
.climber-anne {
  animation: climber-sway 4.5s ease-in-out infinite;
}

@keyframes climber-shake {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  20%      { transform: translate(-58%, -50%) rotate(-7deg); }
  40%      { transform: translate(-42%, -50%) rotate(7deg); }
  60%      { transform: translate(-55%, -50%) rotate(-5deg); }
  80%      { transform: translate(-45%, -50%) rotate(5deg); }
}
.climber-anne.is-shaking {
  animation: climber-shake .7s ease-in-out 1;
}

/* Sicherer unten am Boden */
.belayer {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .45));
}

/* =========================================================
   Tal-Sektionen (heller, gelblicher Hintergrund):
   Akzente DUNKEL machen, damit Kontrast stimmt
   ========================================================= */

.scene--intro,
.scene--check,
.scene--stats {
  color: var(--ink);
}

.scene--intro .kicker,
.scene--check .kicker,
.scene--stats .kicker {
  color: var(--plum);
  opacity: 1;
}

.scene--intro .lead,
.scene--check .lead,
.scene--stats .lead {
  color: var(--ink);
}

.scene--intro .footnote,
.scene--check .footnote,
.scene--stats .footnote {
  color: rgba(20, 28, 22, .68);
}

/* Hero-Titel im Tal: dunkles "Hey" + plum "Anne" */
.scene--intro .title-hero {
  color: var(--ink);
}

.scene--intro .title-hero .name {
  color: var(--plum);
  text-shadow: 0 2px 0 rgba(20, 28, 22, .08);
}

/* Check + Stats Titel dunkel */
.scene--check .title,
.scene--stats .title {
  color: var(--ink);
}

/* em (Kursive Akzente) im Tal: terracotta statt gelb */
.scene--intro em,
.scene--check em,
.scene--stats em {
  color: var(--terracotta);
}

/* Freistehender Text in Tal-Sektionen: warmer Glow gegen die Bergketten */
.scene--intro .kicker,
.scene--check .kicker,
.scene--stats .kicker,
.scene--intro .title-hero,
.scene--check .title,
.scene--stats .title,
.scene--intro .footnote,
.scene--check .footnote {
  text-shadow:
    0 0 14px rgba(248, 217, 122, .85),
    0 1px 0 rgba(250, 245, 230, .9);
}

/* Lead in Intro: Glas-Card damit Text auch ueber dunklem Berg lesbar ist */
.scene--intro .lead {
  display: inline-block;
  max-width: max-content;
  background: rgba(250, 245, 230, .78);
  padding: .65rem .95rem;
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Check-Liste: heller Stripe pro Item, dunkler Text, plum-Haken */
.scene--check .check-list li {
  color: var(--ink);
  background: rgba(250, 245, 230, .85);
  padding: .65rem .85rem .65rem 2.75rem;
  border-radius: .75rem;
  border: 1px solid rgba(107, 62, 90, .25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.scene--check .check-list li::before {
  left: .65rem;
  border-color: rgba(107, 62, 90, .55);
  background: rgba(255, 255, 255, .55);
}

.scene--check .check-list li::after {
  left: 1rem;
  border-left-color: var(--plum);
  border-bottom-color: var(--plum);
}

/* Stats-Karten: heller cream-Hintergrund (Berge scheinen nicht durch) */
.scene--stats .stat-grid > div {
  background: rgba(250, 245, 230, .92);
  border: 1px solid rgba(107, 62, 90, .3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.scene--stats .stat-grid dt {
  color: var(--plum);
}

.scene--stats .stat-grid dd {
  color: var(--ink);
}

.scene--stats .stat-grid .num {
  color: var(--plum);
}

/* Status #2 + #3: dunklerer Hintergrund → helle Titel/Kicker */
.scene--stats-2,
.scene--stats-3 {
  color: var(--cream);
}

.scene--stats-2 .kicker,
.scene--stats-3 .kicker {
  color: var(--sun);
}

.scene--stats-2 .title,
.scene--stats-3 .title {
  color: var(--cream-soft);
}

.scene--stats-2 .footnote,
.scene--stats-3 .footnote {
  color: rgba(245, 236, 214, .8);
}

/* Stats-Karten in 2+3 bekommen dunkleren Glas-Look statt cream-massiv */
.scene--stats-2 .stat-grid > div,
.scene--stats-3 .stat-grid > div {
  background: rgba(20, 28, 22, .55);
  border: 1px solid rgba(245, 197, 66, .25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

.scene--stats-2 .stat-grid dt,
.scene--stats-3 .stat-grid dt {
  color: var(--green-light);
}

.scene--stats-2 .stat-grid dd,
.scene--stats-3 .stat-grid dd {
  color: var(--cream-soft);
}

/* Form-Tag in Status #2 + #3: lesbar auf dunklem Glas-BG */
.scene--stats-2 .form-tag--mid {
  background: rgba(245, 197, 66, .9);
  color: var(--ink);
}

.scene--stats-3 .form-tag--bad {
  background: rgba(201, 125, 91, .95);
  color: var(--cream-soft);
}

/* =========================================================
   Gestik beim Sprechen — kleines Wippen am Figur-SVG
   ========================================================= */

@keyframes speak-bob {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-2.5deg) translateY(-1px); }
  75%      { transform: rotate( 2.5deg) translateY(-1px); }
}

.climber-anne.is-speaking > svg,
.belayer.is-speaking > svg {
  animation: speak-bob .55s ease-in-out infinite;
  transform-origin: center bottom;
}

/* Crux-Pause: Anne haengt etwas ruhiger am Seil */
.climber-anne.is-resting {
  animation-duration: 5.5s;
}

/* =========================================================
   Layout & Container
   ========================================================= */

main {
  position: relative;
  z-index: 2;
}

.scene {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    clamp(2rem, 8vw, 5rem)
    105px
    clamp(2rem, 8vw, 5rem)
    clamp(1.25rem, 5vw, 2.5rem);
  position: relative;
}

@media (min-width: 600px) {
  .scene { padding-right: 130px; }
}

@media (min-width: 768px) {
  .scene { padding-right: 170px; }
}

.container {
  width: 100%;
  max-width: var(--container);
  position: relative;
}
.container--wide { max-width: var(--container-wide); }

/* =========================================================
   Typografie
   ========================================================= */

.kicker {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--sun);
  margin: 0 0 .75rem;
  opacity: .9;
}

.title-hero {
  font-family: "Archivo Black", "Inter", sans-serif;
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.02em;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .1em;
  font-size: clamp(3rem, 14vw, 6rem);
  color: var(--cream-soft);
}

.title-hero .name {
  color: var(--sun);
  font-size: 1.4em;
}

.title-hero--summit .name {
  color: var(--sun);
}

.title {
  font-family: "Archivo Black", "Inter", sans-serif;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.015em;
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 8.5vw, 3.75rem);
  color: var(--cream-soft);
}

.lead {
  font-size: clamp(1.0625rem, 4.5vw, 1.375rem);
  line-height: 1.5;
  margin: 0 0 1.5rem;
  color: var(--cream);
  max-width: 32ch;
}

.footnote {
  margin-top: 1.5rem;
  font-size: .9375rem;
  color: rgba(245, 236, 214, .7);
  font-style: italic;
  max-width: 32ch;
}

em {
  font-style: italic;
  color: var(--sun);
  font-weight: 600;
}

/* =========================================================
   Scene 1: Intro
   ========================================================= */

.scene--intro .container { text-align: left; }

.scroll-hint {
  position: absolute;
  bottom: -3.5rem;
  left: 0;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  background: rgba(250, 245, 230, .88);
  padding: .5rem .9rem .5rem 1rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  width: max-content;
  opacity: 1;
}

.scroll-hint__arrow {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--plum);
  animation: arrow-bounce 1.6s ease-in-out infinite;
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); opacity: .8; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* =========================================================
   Scene 2: Check-Liste
   ========================================================= */

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.check-list li {
  position: relative;
  padding-left: 2.5rem;
  font-size: clamp(1rem, 4.2vw, 1.25rem);
  line-height: 1.4;
  color: var(--cream);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--green-light);
  border-radius: var(--radius-sm);
  background: rgba(20, 42, 34, .4);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: .35rem;
  top: .55em;
  width: .85rem;
  height: .45rem;
  border-left: 3px solid var(--sun);
  border-bottom: 3px solid var(--sun);
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform .35s var(--ease-out) .15s;
}

.check-list li.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.check-list li.is-visible::after {
  transform: rotate(-45deg) scale(1);
}

/* =========================================================
   Scene 3: Stats
   ========================================================= */

.stat-grid {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 480px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

.stat-grid > div {
  background: rgba(245, 236, 214, .06);
  border: 1px solid rgba(245, 236, 214, .14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.25rem;
}

.stat-grid dt {
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: .35rem;
}

.stat-grid dd {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  color: var(--cream-soft);
  line-height: 1;
}

.stat-grid .num {
  font-size: clamp(2.5rem, 11vw, 4.5rem);
  color: var(--sun);
}

.stat-grid .small {
  font-size: clamp(1.25rem, 5vw, 1.75rem);
}

/* Form-Tag: faerbt die Form-Karte je nach Zustand */
.form-tag {
  display: inline-block;
  padding: .1em .55em;
  border-radius: .5rem;
  font-family: "Archivo Black", sans-serif;
  font-size: inherit;
  line-height: 1.1;
}

.form-tag--good {
  background: rgba(74, 124, 91, .25);
  color: var(--green-deep);
  box-shadow: inset 0 0 0 1.5px rgba(74, 124, 91, .55);
}

.form-tag--mid {
  background: rgba(245, 197, 66, .35);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(201, 125, 91, .65);
}

.form-tag--bad {
  background: rgba(201, 125, 91, .45);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(107, 62, 90, .8);
  animation: form-pulse 1.6s ease-in-out infinite;
}

@keyframes form-pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: .82; transform: scale(.97); }
}

/* =========================================================
   Scene 4: Crux — zuuuu
   ========================================================= */

.scene--crux .container {
  text-align: center;
}

/* Spacer-Sektionen: 100vh leerer Bereich vor Crux/Video damit User
   Atempause hat + leerer BG mit Bergen + Kletterer sichtbar */
.scene--spacer {
  min-height: 100vh;
  min-height: 100dvh;
  pointer-events: none;
}

/* Crux + Video: Kicker und Footnote initial unsichtbar.
   Werden erst durch .is-revealed (vom JS nach Lock+Delay) eingeblendet.
   zuuuu und video-frame haben eigene aggressive Reveal-Animationen */
.scene--crux .kicker,
.scene--crux .crux-footnote,
.scene--video .kicker,
.scene--video .title {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .35s ease-out,
    transform .42s cubic-bezier(.34, 1.4, .55, 1);
}

.scene--crux.is-revealed .kicker,
.scene--crux.is-revealed .crux-footnote,
.scene--video.is-revealed .kicker,
.scene--video.is-revealed .title {
  opacity: 1;
  transform: translateY(0);
}

/* Footnote kommt etwas spaeter als Kicker */
.scene--crux.is-revealed .crux-footnote {
  transition-delay: .25s;
}
.scene--video.is-revealed .title {
  transition-delay: .12s;
}

.zuuuu {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(3.5rem, 17vw, 8.5rem);
  max-width: 100%;
  line-height: .9;
  color: var(--sun);
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: .02em;
  margin: 0 auto 1.5rem;
  text-shadow:
    0 0 0 var(--terracotta),
    4px 4px 0 var(--terracotta),
    8px 8px 0 rgba(0, 0, 0, .25);
  transform: rotate(-4deg);
  letter-spacing: -.03em;
}

.zuuuu span {
  display: inline-block;
  opacity: 0;
  /* von oben crashen — panischer Eintritt */
  transform: translateY(-90px) rotate(-30deg) scale(.3);
  transition:
    opacity .14s ease-out,
    transform .28s cubic-bezier(.34, 1.65, .55, 1.05);   /* overshoot */
}

.zuuuu.is-visible span {
  opacity: 1;
  transform: translateY(0) rotate(0) scale(1);
}

/* sehr schneller Stagger — knallt zackig rein */
.zuuuu.is-visible span:nth-child(1) { transition-delay: .00s; }
.zuuuu.is-visible span:nth-child(2) { transition-delay: .035s; }
.zuuuu.is-visible span:nth-child(3) { transition-delay: .07s; }
.zuuuu.is-visible span:nth-child(4) { transition-delay: .105s; }
.zuuuu.is-visible span:nth-child(5) { transition-delay: .14s; }
.zuuuu.is-visible span:nth-child(6) {
  transition-delay: .2s;
  animation: zuuuu-wiggle 1.2s ease-in-out 1.1s infinite;
}

/* Panic-Shake des ganzen zuuuu direkt nach Erscheinen */
.zuuuu.is-visible {
  animation: zuuuu-panic .45s cubic-bezier(.36, .07, .19, .97) .22s 1;
}

@keyframes zuuuu-panic {
  0%, 100% { transform: rotate(-4deg) translateX(0); }
  15% { transform: rotate(-7deg) translateX(-4px); }
  35% { transform: rotate(-1deg) translateX(4px); }
  55% { transform: rotate(-6deg) translateX(-3px); }
  75% { transform: rotate(-3deg) translateX(3px); }
}

@keyframes zuuuu-wiggle {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-6px) rotate(8deg); }
}

.dialog {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.5rem, 6vw, 2.25rem);
  color: var(--cream-soft);
  line-height: 1.15;
  margin: 0 0 1.5rem;
}

/* =========================================================
   Scene 5: Video
   ========================================================= */

.scene--video .container { text-align: center; }

/* Extra Atempause nach der Video-Sequenz: Anne hat Strecke zum Hochklettern
   (Recovery) bevor Status #2 (Halbzeit) triggert. Snap-Logik im JS sorgt
   dafuer dass Content trotzdem im Viewport zentriert ist beim Lock */
.scene--video {
  min-height: 135vh;
  min-height: 135dvh;
}

/* Video-Frame umschliesst das Video eng — keine BG-Balken seitlich.
   Initial: unsichtbar. Reveal erst NACH Lock via .is-revealed (JS) */
.video-frame {
  margin: 1rem auto 0;
  padding: 0;
  position: relative;
  display: block;
  max-width: 100%;
  /* JS setzt --video-width nach loadedmetadata auf exakte Video-Breite */
  width: var(--video-width, auto);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid var(--sun);
  box-shadow: var(--shadow-card);
  background: var(--cream-soft);
  line-height: 0;
  opacity: 0;
  transform: translateY(40px) scale(.85) rotate(-3deg);
  transition:
    opacity .3s ease-out,
    transform .5s cubic-bezier(.34, 1.45, .55, 1);
}

.video-frame.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(-1.5deg);
}

/* alte is-active-Regel entfernt — Reveal laeuft jetzt ueber .is-revealed (JS) */

.video {
  display: block;
  vertical-align: top;
  width: 100%;
  height: auto;
  max-height: 68vh;
  max-height: 68dvh;
  background: var(--green-deep);
}

@media (min-width: 640px) {
  .video { max-height: 64vh; max-height: 64dvh; }
}

.video-score {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: .15rem 1rem;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 1rem 1.25rem;
  background: var(--cream-soft);
  color: var(--ink);
  text-align: left;
  line-height: 1.4;          /* Reset von .video-frame line-height: 0 */
}

.score-label {
  grid-column: 1;
  grid-row: 1;
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--green-moss);
}

.score-value {
  grid-column: 1;
  grid-row: 2;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2rem, 9vw, 3rem);
  color: var(--green-deep);
  line-height: 1;
}

.score-note {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-size: .9375rem;
  color: var(--green-bark);
  font-style: italic;
}

/* =========================================================
   Scene 6: Hall of zuuuu
   ========================================================= */

.scene--hall .container { text-align: center; }

.zuuuu-mini {
  font-family: "Archivo Black", sans-serif;
  color: var(--sun);
  font-style: italic;
  text-decoration: underline wavy var(--terracotta);
  text-underline-offset: 6px;
}

.counter-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.counter-list--three {
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
}

.counter-list li {
  background: rgba(245, 236, 214, .07);
  border: 1px solid rgba(245, 236, 214, .14);
  border-radius: var(--radius-md);
  padding: 1.25rem .75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}

.counter-list--three li {
  padding: 1rem .5rem;
}

.counter {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2rem, 10vw, 3.25rem);
  color: var(--sun);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.counter-label {
  font-size: .8125rem;
  letter-spacing: .05em;
  color: var(--cream);
  opacity: .85;
  text-align: center;
}

/* =========================================================
   Scene 7: Letzte Seillaenge
   ========================================================= */

.scene--final .container {
  text-align: left;
}

.scene--final .title {
  font-size: clamp(1.75rem, 7vw, 2.75rem);
}

/* =========================================================
   Scene 8: Gipfel
   ========================================================= */

.scene--summit {
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(245, 197, 66, .25), transparent 60%);
}

.scene--summit .container { text-align: center; }

.scene--summit .lead {
  margin-left: auto;
  margin-right: auto;
}

.scene--summit .footnote {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* =========================================================
   Confetti Canvas
   ========================================================= */

.confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* =========================================================
   Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .climber { animation: none; }
  html { scroll-behavior: auto; }
}
