/* ============================================================================
   InflamAI — Website-Stylesheet (die EINE Site)
   Baut auf css/tokens.css. Hell/Porzellan default, warmes Kerzenlicht-Dark.
   Grundsätze (Founder): wenig Text, viel Weißraum, Amber ≤ 10 %, KEINE
   leuchtenden Boxen/Glow-Karten, moderate Headlines, mobile erstklassig.
   ========================================================================== */

:root {
  /* Apple-Variante: Display-Typo läuft über die System-Schrift (SF auf Apple-
     Geräten), Fallback bleibt die self-hostete Hanken Grotesk — kein CDN. */
  --font-display: -apple-system, BlinkMacSystemFont, "Hanken Grotesk", system-ui, sans-serif;
  --maxw: 1120px;
  --maxw-narrow: 720px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 10vw, 140px);
  /* Moderat statt riesig — Founder: Hero-Text war „sehr groß" */
  --fs-hero: clamp(1.9rem, 3vw + 0.85rem, 2.75rem);
  --fs-h2: clamp(1.55rem, 2.4vw + 0.6rem, 2.3rem);
  --fs-lead: clamp(1.02rem, 1.3vw + 0.5rem, 1.22rem);
  --heat: 0; /* 0→1: Morgenlicht wird beim Scrollen wärmer (site.js) */
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { overflow-x: hidden; font-optical-sizing: auto; }
/* Standard-Tap-Highlight ist ein hartes blaugraues Rechteck — auf runden
   Buttons sieht das kaputt aus. Stattdessen ein warmer Hauch Amber. */
html { -webkit-tap-highlight-color: rgba(232,168,56,0.18); }

/* --- Layout ---------------------------------------------------------------- */
/* viewport-fit=cover heißt: Inhalt darf unter Notch und Home-Indikator laufen.
   Die Gutter halten ihn dort heraus — im Querformat ist genau das der
   Unterschied zwischen lesbar und angeschnitten. */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-left: calc(var(--gutter) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--gutter) + env(safe-area-inset-right, 0px)); }
.wrap-narrow { max-width: var(--maxw-narrow); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(44px, 7vw, 88px); }
.center { text-align: center; }
.muted { color: var(--text-secondary); }
.faint { color: var(--text-tertiary); }
.amber { color: var(--accent-text); }
.hide { display: none !important; }
.balance { text-wrap: balance; }

.skiplink { position: fixed; left: -9999px; top: 10px; z-index: 300; }
.skiplink:focus-visible { left: 10px; }

/* --- Typo ------------------------------------------------------------------ */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body);
  font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--accent-text); margin: 0 0 14px; }
.eyebrow i { font-size: 14px; }
/* Tracking ist größenspezifisch (Apple-Typo): großes Display-Format negativ,
   Fließtext bei ~0. Leading eng oben, locker unten. */
.h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-hero);
  line-height: 1.05; letter-spacing: -0.022em; margin: 0; }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2);
  line-height: 1.12; letter-spacing: -0.018em; margin: 0 0 14px; }
.h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.12rem, 1.8vw, 1.38rem);
  line-height: 1.22; letter-spacing: -0.01em; margin: 0 0 8px; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-secondary); margin: 0; }
.kicker-num { font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em; line-height: 1; }

/* --- Buttons ---------------------------------------------------------------- */
.btn { --_h: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--_h); padding: 0 26px; border-radius: var(--radius-button);
  font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1;
  letter-spacing: -0.006em;
  border: 1px solid transparent; cursor: pointer; user-select: none; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-standard), filter var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-normal) var(--ease-standard), background var(--dur-fast) var(--ease-standard); }
.btn i { font-size: 19px; }
/* Feedback sitzt auf dem Pointer-Down und ist sofort da (100 ms, ease-out). */
.btn:active { transform: scale(0.97); opacity: 0.92; transition-duration: 100ms; transition-timing-function: ease-out; }
.btn--lg { --_h: 62px; padding: 0 30px; font-size: 17px; }
.btn--sm { --_h: 44px; padding: 0 18px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }
/* Flach statt farbigem Schein — Tiefe kommt aus Fläche und Zustand. */
.btn--primary { background: var(--ember-gradient); color: var(--ember-on-accent); }
.btn--secondary { background: var(--surface-card); color: var(--text-primary);
  border-color: var(--hairline); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--text-primary); border-color: var(--hairline); }
/* Hover nur dort, wo es Hover gibt. Auf Touch bleibt der Zustand sonst nach
   dem Antippen kleben und der Button sieht dauerhaft „angefasst" aus. */
@media (hover: hover) {
  .btn--primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
  .btn--secondary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
  .btn--ghost:hover { background: var(--surface-card); }
}

/* --- Cards / Grids (ruhig — bewusst KEINE Glow-Variante) -------------------- */
/* Hell: randlose weiße Flächen auf Porzellan (apple.com-Prinzip) — Trennung
   über Flächenkontrast + sehr weichen Schatten, nicht über Linien.
   Dark behält Hairlines + aufgehellte Flächen (Founder-Regel, glow-frei). */
.card { background: var(--paper); border: 1px solid transparent;
  border-radius: var(--radius-card); padding: clamp(20px, 2.6vw, 30px);
  box-shadow: 0 1px 2px rgba(20,24,33,0.05), 0 12px 32px -20px rgba(20,24,33,0.14); }
.card--elevated { box-shadow: 0 2px 6px rgba(20,24,33,0.06), 0 26px 52px -26px rgba(20,24,33,0.20); }
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid--2 { grid-template-columns: 1fr; } }

.icon-disc { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center;
  justify-content: center; font-size: 22px; flex: 0 0 auto; background: var(--ember-amber-12); color: var(--accent-text); }
.icon-disc--pill { border-radius: 999px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 14px;
  border-radius: 999px; font-size: 13.5px; font-weight: 600; background: var(--surface-card);
  border: 1px solid var(--hairline); color: var(--text-secondary); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: var(--ember-amber-15); color: var(--accent-text); }
.badge i { font-size: 13px; }
/* Konzept-Bild auf der Vision-Seite: Der Hinweis muss am Bild kleben, nicht
   irgendwo im Text. Auf breiten Schirmen sitzt er als Fähnchen auf der
   Oberkante, auf schmalen als Bildunterschrift — dort bräuchte er sonst drei
   Zeilen und läge quer über dem Bildschirm des Geräts. */
.concept-figure { display: flex; justify-content: center; position: relative; }
.badge--concept { position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  z-index: 6; max-width: min(100%, 320px); text-align: center; line-height: 1.35;
  background: color-mix(in srgb, var(--info) 14%, var(--surface-card));
  color: var(--info); box-shadow: var(--shadow-md); }
@media (max-width: 640px) {
  .concept-figure { flex-direction: column; align-items: center; }
  .badge--concept { position: static; transform: none; order: 2; margin-top: 16px;
    max-width: 32ch; box-shadow: none; }
}
.shot--top { object-position: top; }

/* --- Nav ----------------------------------------------------------------------
   Transluzente Chrome-Schicht, Inhalt scrollt darunter durch. Statt harter
   1px-Kante ein Scroll-Edge-Effekt: ein weicher Schattenverlauf blendet nur
   ein, wenn Inhalt tatsächlich unter der Leiste liegt (kein Glow — Schatten). */
.nav { position: sticky; top: 0; z-index: 80; width: 100%; background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.nav::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px;
  pointer-events: none; opacity: 0; transition: opacity var(--dur-normal);
  background: linear-gradient(180deg, rgba(20,24,33,0.07), transparent); }
.nav.is-scrolled::after { opacity: 1; }
[data-theme="dark"] .nav::after { background: linear-gradient(180deg, rgba(0,0,0,0.45), transparent); }
.nav__row { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 0; font-family: var(--font-display);
  font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--text-primary); text-decoration: none; }
.brand__mark { width: 30px; height: 30px; border-radius: 8px; display: block; margin-right: 10px; }
.brand b { color: var(--accent-text); font-weight: 700; }
.nav__links { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.nav__link { font-size: 15px; font-weight: 600; color: var(--text-secondary); padding: 9px 13px;
  border-radius: 10px; text-decoration: none;
  transition: color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast) var(--ease-standard); }
.nav__link:active { transform: scale(0.96); transition-duration: 100ms; }
@media (hover: hover) { .nav__link:hover { color: var(--text-primary); background: var(--surface-card); } }
.nav__link.is-active { color: var(--accent-text); }
.nav__spacer { flex: 1; }
.nav__tools { display: flex; align-items: center; gap: 8px; }
.iconbtn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--hairline);
  background: transparent; color: var(--text-secondary); cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; font-size: 18px;
  transition: color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast) var(--ease-standard); }
.iconbtn:active { transform: scale(0.94); transition-duration: 100ms; }
@media (hover: hover) { .iconbtn:hover { color: var(--text-primary); background: var(--surface-card); } }
.langtoggle { display: inline-flex; border: 1px solid var(--hairline); border-radius: 999px; overflow: hidden; height: 40px; }
.langtoggle button { border: none; background: transparent; color: var(--text-tertiary); font-weight: 700;
  font-size: 13px; padding: 0 12px; cursor: pointer; font-family: var(--font-display); }
.langtoggle button.is-active { background: var(--ember-amber-15); color: var(--accent-text); }
.nav__burger { display: none; }

@media (max-width: 880px) {
  .nav__links { position: fixed; inset: 60px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg-page); border-bottom: 1px solid var(--hairline);
    padding: 10px calc(var(--gutter) + env(safe-area-inset-right, 0px))
             calc(18px + env(safe-area-inset-bottom, 0px))
             calc(var(--gutter) + env(safe-area-inset-left, 0px));
    gap: 2px; transform: translateY(-130%); visibility: hidden;
    transition: transform var(--dur-normal) var(--ease-standard), visibility 0s linear var(--dur-normal);
    margin-left: 0; box-shadow: var(--shadow-lg);
    /* Wenn das Menü länger wird als der Platz darunter, scrollt es selbst,
       statt hinter den Bildschirmrand zu rutschen. */
    max-height: calc(100svh - 60px); overflow-y: auto; overscroll-behavior: contain; }
  .nav__links.is-open { transform: translateY(0); visibility: visible; transition-delay: 0s; }
  .nav__link { padding: 15px 12px; font-size: 17px; border-radius: 12px; }
  .nav__burger { display: inline-flex; }
  .nav-hide-narrow { display: none; }
  /* Der Handlungsaufruf darf im Menü nicht fehlen — auf dem Handy ist der
     Kopfbereich sonst eine Sackgasse. site.js hängt ihn ein. */
  .nav__cta-mobile { margin-top: 12px; }
}
@media (min-width: 881px) { .nav__cta-mobile { display: none; } }
/* Sprachwahl: in der Kopfzeile, solange sie dort Platz hat — darunter im Menü. */
.langtoggle--mobile { display: none; }
@media (max-width: 440px) {
  .nav__tools > .langtoggle { display: none; }
  .langtoggle--mobile { display: inline-flex; align-self: flex-start; margin-top: 10px; }
}

/* --- Hero: Morgenlicht --------------------------------------------------------
   Der Dawn-Verlauf wärmt sich beim Scrollen auf (--heat 0→1 via site.js).
   Hell: Porzellan-Morgen. Dark: ruhige Abendglut — warm, nie Neon. */
.hero { position: relative; padding-block: clamp(44px, 7vw, 96px) clamp(56px, 8vw, 110px); overflow: hidden; }
.dawn { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dawn::before, .dawn::after { content: ""; position: absolute; inset: 0; transition: opacity 0.4s linear; }
.dawn::before { background:
    radial-gradient(115% 75% at 76% -6%, var(--ember-amber-12), transparent 55%),
    radial-gradient(90% 60% at -4% 6%, color-mix(in srgb, var(--info) 7%, transparent), transparent 60%);
  opacity: 1; }
.dawn::after { background:
    radial-gradient(120% 85% at 72% -4%, var(--ember-amber-30), transparent 60%),
    radial-gradient(80% 55% at 4% 10%, var(--ember-amber-12), transparent 55%);
  opacity: calc(var(--heat) * 0.55); }
/* Dark: KEIN Glow (Founder-Feedback). Nur ein Hauch „letztes Licht" als
   flacher, linearer Verlauf an der Oberkante — sonst ruhiges, flaches Dunkel. */
[data-theme="dark"] .dawn::before { background:
    linear-gradient(180deg, rgba(232,168,56,0.055), transparent 32%); }
[data-theme="dark"] .dawn::after { display: none; }

.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 26px;
  color: var(--text-tertiary); font-size: 13.5px; }
.hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust i { color: var(--success); font-size: 15px; }
.hero__visual { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero__book { display: flex; justify-content: center; }
.hero__book__art { width: clamp(150px, 52%, 210px); }
.hero__book__art svg { width: 100%; height: auto; display: block;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,0.16)); }
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .hero__eyebrow { justify-content: center; }
  .hero__cta, .hero__trust { justify-content: center; }
  /* Mobile: Ember begrüßt zuerst und sitzt auf dem Tagebuch wie eine Kerze.
     Das Bild bleibt, wird aber deutlich kleiner — auf dem Handy muss das
     Versprechen mit auf den ersten Bildschirm, nicht erst nach dem Wischen.
     ember.js schreibt Breite und Höhe direkt ins Element, deshalb hier
     ausnahmsweise !important. */
  .hero__visual { order: -1; gap: 0; }
  .hero__visual [data-ember] { width: 128px !important; height: 151px !important;
    transform: none; margin: 0 0 -14px; }
  .hero__book__art { width: 124px; }
}
@media (max-width: 920px) and (min-height: 800px) {
  .hero__visual [data-ember] { width: 148px !important; height: 175px !important; margin-bottom: -16px; }
  .hero__book__art { width: 142px; }
}
/* Handy im Querformat: breit, aber flach. Gestapelt schöbe das Bild die
   Überschrift komplett unter den Rand — nebeneinander ist hier die einzige
   Anordnung, die auf einen Blick funktioniert. */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { padding-block: 24px 34px; }
  .hero__grid { grid-template-columns: 1.05fr 0.85fr; text-align: left; gap: 26px; align-items: center; }
  .hero__eyebrow, .hero__cta, .hero__trust { justify-content: flex-start; }
  .hero__visual { order: 0; }
  .hero__visual [data-ember] { width: 96px !important; height: 113px !important; margin-bottom: -10px; }
  .hero__book__art { width: 96px; }
  .hero .lead { margin-top: 14px; }
  .section { padding-block: clamp(40px, 6vw, 64px); }
}

/* Ember-Bühne */
.ember-stage { position: relative; display: grid; place-items: center; }
/* Reserve the mascot's final box before ember.js runs to prevent layout shift. */
[data-ember] { display: inline-block; position: relative; width: 120px; height: 141.6px; }
[data-ember][data-size="88"] { width: 88px; height: 103.84px; }
[data-ember][data-size="96"] { width: 96px; height: 113.28px; }
[data-ember][data-size="110"] { width: 110px; height: 129.8px; }
[data-ember][data-size="122"] { width: 122px; height: 143.96px; }
[data-ember][data-size="140"] { width: 140px; height: 165.2px; }
[data-ember][data-size="196"] { width: 196px; height: 231.28px; }

/* 7-Tage-Band (reines UI-Element — Ember hat hier nichts verloren) */
.forecast { display: flex; gap: 8px; align-items: flex-end; background: var(--surface-card);
  border: 1px solid var(--hairline); border-radius: var(--radius-xl); padding: 14px 16px 12px; box-shadow: var(--shadow-sm); }
.forecast .fc-day { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 34px; }
.forecast .fc-day span { font-size: 10.5px; font-weight: 600; color: var(--text-tertiary); }
.forecast .fc-day.is-today span { color: var(--accent-text); font-weight: 800; }
.forecast .fc-bar { width: 8px; height: 44px; border-radius: 99px; background: var(--surface-raised);
  display: flex; align-items: flex-end; overflow: hidden; }
.forecast .fc-bar i { display: block; width: 100%; border-radius: 99px; }
.forecast__label { font-size: 11px; color: var(--text-tertiary); text-align: center; margin-top: 6px; }

/* --- Feature / Steps ----------------------------------------------------------- */
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature p { color: var(--text-secondary); font-size: 15.5px; line-height: 1.55; margin: 0; }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--ember-on-accent);
  background: var(--ember-gradient); width: 34px; height: 34px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; }

/* --- Solidarität ------------------------------------------------------------ */
.solidarity { text-align: center; }
.solidarity .big { font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5.2rem); background: var(--ember-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1; letter-spacing: -0.03em; }

/* --- Persönliche Notiz -------------------------------------------------------- */
.note { max-width: 620px; margin-inline: auto; text-align: center; }
.note p { font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw + 0.6rem, 1.5rem); line-height: 1.5; color: var(--text-primary); margin: 0 0 18px; }
.note .sig { font-family: var(--font-display); font-weight: 700; color: var(--accent-text); font-size: 15px; }

/* --- iPhone 13 Pro Frame + App-Screens ---------------------------------------
   Maße 1:1 vom Gerät, auf dem die Screenshots entstanden sind: Body
   71,5 × 146,7 mm, Display 390 × 844 pt (= 1170 × 2532 px @3x), umlaufender
   Rand 3,45 mm, Screen-Radius 47,33 pt, Notch 161 × 33,4 pt.
   Alles als Anteil von --dw, damit die Proportionen bei jeder Größe stimmen.
   Das Screen-Seitenverhältnis trifft exakt 1170/2532 — kein Crop.
   Reihenfolge der Ebenen: Body (Edelstahl) → Bezel (Screen-Spread-Shadow)
   → Screen → Notch → Glaskante. Tasten sind Pseudoelemente.
   ---------------------------------------------------------------------------- */
.device {
  --dw: min(300px, 76vw);
  --d-bezel:  calc(var(--dw) * 0.04825);   /* Rand gesamt, Body-Kante → Display */
  --d-glass:  calc(var(--dw) * 0.04037);   /* davon schwarzes Deckglas          */
                                           /* Rest (0.00788) = Edelstahlrand    */
  --d-r-body: calc(var(--dw) * 0.15798);
  --d-r-screen: calc(var(--dw) * 0.10964);
  --d-btn-w:  calc(var(--dw) * 0.01450);   /* Tastenbreite inkl. Überstand      */
  --d-btn-out: calc(var(--dw) * -0.00662); /* Überstand über die Body-Kante     */
  --d-btn-r:  calc(var(--dw) * 0.00380);
  --metal-hi: #eef2f6; --metal-spec: #b6bec7; --metal-mid: #7d858e; --metal-lo: #3d434a;

  width: var(--dw); aspect-ratio: 431.7 / 885.7;
  position: relative; flex: 0 0 auto;
  border-radius: var(--d-r-body);
  background:
    /* Glanzkanten links/rechts */
    linear-gradient(90deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 2.2%,
                           rgba(255,255,255,0) 97.8%, rgba(255,255,255,0.42) 100%),
    /* poliertes Edelstahlband: weiche Spiegelbänder entlang der Längskanten */
    linear-gradient(180deg,
      var(--metal-hi) 0%,    var(--metal-mid) 4%,   var(--metal-lo) 12%,
      var(--metal-mid) 20%,  var(--metal-spec) 24%, var(--metal-mid) 28%,
      var(--metal-lo) 42%,   var(--metal-lo) 58%,
      var(--metal-mid) 72%,  var(--metal-spec) 76%, var(--metal-mid) 80%,
      var(--metal-lo) 88%,   var(--metal-hi) 100%);
  box-shadow:
    0 1px 2px rgba(16,20,28,0.18),
    0 12px 24px -10px rgba(16,20,28,0.26),
    0 38px 60px -28px rgba(16,20,28,0.40);
}
@supports (corner-shape: squircle) {
  .device, .device__screen { corner-shape: squircle; }
}

/* Display + schwarzes Deckglas (Spread-Shadow ist exakt konzentrisch) */
.device__screen {
  position: absolute; inset: var(--d-bezel);
  border-radius: var(--d-r-screen); overflow: hidden;
  background: #06070a;
  box-shadow: 0 0 0 var(--d-glass) #06070a;
}
.device--shot .device__screen img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Notch (iPhone 13 Pro — kein Dynamic Island) */
.device__screen::before {
  content: ""; position: absolute; z-index: 4;
  top: 0; left: 50%; transform: translateX(-50%);
  width: calc(var(--dw) * 0.37294); height: calc(var(--dw) * 0.07737);
  background: #06070a;
  border-radius: 0 0 calc(var(--dw) * 0.04633) calc(var(--dw) * 0.04633);
}
/* Glaskante: feiner Lichtsaum + Abdunklung unter dem Rand */
.device__screen::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.055),
              inset 0 0 calc(var(--dw) * 0.026) rgba(0,0,0,0.22);
}

/* Tasten: links Stummschalter + Lautstärke, rechts Seitentaste.
   Höhen/Positionen in % der Body-Höhe (146,7 mm) — .device__side::before
   rechnet gegen die Lautstärke-Taste, daher 156,3 % statt 8,52 %.        */
.device::before, .device::after, .device__side, .device__side::before {
  position: absolute; width: var(--d-btn-w);
  border-radius: var(--d-btn-r); z-index: 1;
}
.device::before, .device::after, .device__side::before { content: ""; }
.device::before, .device__side, .device__side::before {          /* linke Seite */
  left: var(--d-btn-out);
  background: linear-gradient(90deg, var(--metal-mid) 0%, var(--metal-lo) 38%, #23282e 100%);
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.45);
}
.device::after {                                                 /* rechte Seite */
  right: var(--d-btn-out);
  background: linear-gradient(270deg, var(--metal-mid) 0%, var(--metal-lo) 38%, #23282e 100%);
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.45);
}
.device::before       { top: 10.57%; height: 2.39%; }            /* Stummschalter */
.device__side         { top: 14.66%; height: 5.45%; }            /* Lautstärke +  */
.device__side::before { top: 156.3%; height: 100%; left: 0; }    /* Lautstärke −  */
.device::after        { top: 17.04%; height: 8.52%; }            /* Seitentaste   */

/* Kleine Amplitude, langsamer Takt — keine großen Dauer-Oszillationen. */
.device--float { animation: device-float 7s var(--ease-inout) infinite; }
@keyframes device-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .device--float { animation: none; } }

.appscreen { position: absolute; inset: 0; display: flex; flex-direction: column;
  font-family: var(--font-body); color: var(--text-primary); background: var(--bg-page); }
.appscreen__status { height: 44px; flex: 0 0 auto; display: flex; align-items: flex-end;
  justify-content: space-between; padding: 0 22px 4px; font-size: 13px; font-weight: 700; font-family: var(--font-display); }
.appscreen__status i { font-size: 12px; margin-left: 5px; }
.appscreen__body { flex: 1; overflow: hidden; padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 16px; }
.appcard { background: var(--surface-card); border: 1px solid var(--hairline);
  border-radius: 18px; padding: 14px; box-shadow: var(--shadow-sm); }
.apptab { height: 64px; flex: 0 0 auto; border-top: 1px solid var(--separator); display: flex; background: var(--surface-card); }
.apptab > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 10px; color: var(--text-tertiary); }
.apptab > div.is-active { color: var(--accent-text); }
.apptab i { font-size: 21px; }

.phones { display: flex; gap: clamp(18px, 3vw, 38px); align-items: flex-start; justify-content: center; flex-wrap: wrap; }
.phones figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phones figcaption { text-align: center; max-width: 300px; }
.phones figcaption b { font-family: var(--font-display); font-size: 16px; display: block; margin-bottom: 4px; }
.phones figcaption p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin: 0; }

.shotplaceholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; text-align: center; padding: 28px; background:
  repeating-linear-gradient(45deg, var(--surface-default), var(--surface-default) 12px, var(--surface-card) 12px, var(--surface-card) 24px); }
.shotplaceholder b { font-family: var(--font-display); font-size: 15px; }
.shotplaceholder p { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; margin: 0; }

/* --- Zeitleiste (Forschung) ---------------------------------------------------- */
.path { position: relative; margin-top: 34px; padding-left: 26px; }
.path::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--ember-amber-30), var(--separator)); border-radius: 2px; }
.path__item { position: relative; padding: 0 0 30px; }
.path__item:last-child { padding-bottom: 0; }
.path__item::before { content: ""; position: absolute; left: -24px; top: 5px; width: 12px; height: 12px;
  border-radius: 99px; background: var(--bg-page); border: 3px solid var(--ember-amber); }
.path__item b { font-family: var(--font-display); font-size: 16px; display: block; margin-bottom: 3px; }
.path__item p { color: var(--text-secondary); font-size: 15px; line-height: 1.55; margin: 0; max-width: 56ch; }

/* --- Team --------------------------------------------------------------------- */
.person { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.person .avatar { width: 132px; height: 132px; border-radius: 999px; background: var(--surface-default);
  border: 1px dashed var(--hairline); display: grid; place-items: center; color: var(--text-tertiary);
  font-size: 12.5px; gap: 4px; overflow: hidden; }
.person .avatar i { font-size: 26px; display: block; }
.person .avatar img { width: 100%; height: 100%; object-fit: cover; }
.person b { font-family: var(--font-display); font-size: 17px; }
.person small { color: var(--accent-text); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.8px; }
.person p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.55; max-width: 30ch; margin: 0; }
.person .avatar.avatar--photo { border-style: solid; border-color: var(--hairline); background: var(--surface-card); }
/* Partner-Logo in runder, weißer Bubble (gleiche Größe wie die Personen-Avatare) */
.logo-chip { width: 132px; height: 132px; border-radius: 999px; background: #fff;
  border: 1px solid var(--hairline); display: grid; place-items: center; padding: 30px; overflow: hidden; }
.logo-chip img { width: 100%; height: 100%; object-fit: contain; display: block; }
.partner-kicker { margin-top: 2px; }

/* --- FAQ ------------------------------------------------------------------------ */
.faq { border-top: 1px solid var(--hairline); }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 2px;
  display: flex; align-items: center; gap: 16px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1rem, 1.7vw, 1.14rem); color: var(--text-primary); }
.faq__q i { margin-left: auto; transition: transform var(--dur-normal) var(--ease-standard); color: var(--accent-text); flex: 0 0 auto; }
.faq__item.is-open .faq__q i { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease-standard); }
.faq__a p { padding: 0 2px 20px; color: var(--text-secondary); font-size: 15.5px; line-height: 1.6; max-width: 64ch; margin: 0; }

/* --- Formulare -------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > label { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.input { height: 56px; border-radius: var(--radius-lg); border: 1.5px solid var(--hairline);
  background: var(--paper); color: var(--text-primary); padding: 0 16px; font-size: 16px;
  font-family: var(--font-body); width: 100%; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.input::placeholder { color: var(--text-tertiary); }
.input:focus { outline: none; border-color: var(--ember-amber); box-shadow: 0 0 0 4px var(--ember-amber-15); }
.input--err { border-color: var(--error); }
.field__err { font-size: 13px; color: var(--error); min-height: 0; }
.consent-row { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 18px; }
.consent-row input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--ember-amber); flex: 0 0 auto; }
.consent-row label { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; }
.waitlist-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0; }
.waitlist-done .icon-disc { width: 64px; height: 64px; font-size: 30px;
  background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); border-radius: 999px; }
.form-note { font-size: 12.5px; color: var(--text-tertiary); margin-top: 10px; line-height: 1.5; }

/* --- Footer -------------------------------------------------------------------- */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--hairline);
  padding-top: clamp(40px, 6vw, 68px);
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer__brandcol { grid-column: 1 / -1; } }
.footer__heading { font-family: var(--font-body); font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-tertiary); margin: 0 0 12px; }
.footer a { display: block; color: var(--text-secondary); font-size: 14.5px; text-decoration: none; padding: 6px 0; }
.footer a:hover { color: var(--accent-text); }
.footer__brandcol p { color: var(--text-tertiary); font-size: 14px; line-height: 1.6; margin-top: 12px; max-width: 36ch; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--hairline); color: var(--text-tertiary); font-size: 13px; }
.disclaimer-band { background: var(--ember-amber-12); border: 1px solid var(--ember-amber-30);
  border-radius: var(--radius-lg); padding: 14px 18px; font-size: 13px; color: var(--text-secondary);
  line-height: 1.55; display: flex; gap: 12px; align-items: flex-start; }
.disclaimer-band i { color: var(--accent-text); font-size: 18px; margin-top: 1px; flex: 0 0 auto; }
.disclaimer-band .db-warn { color: var(--accent-text); margin-top: 1px; flex: 0 0 auto; }

/* --- Consent-Banner + Modal ------------------------------------------------------ */
.consent { position: fixed; z-index: 120; left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(140%);
  width: min(560px, calc(100vw - 24px)); background: var(--surface-elevated); border: 1px solid var(--hairline);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 20px;
  /* Kein Overshoot: der Banner kommt aus keiner Geste, also kritisch gedämpft. */
  transition: transform var(--dur-slow) var(--ease-standard); }
.consent.is-visible { transform: translateX(-50%) translateY(0); }
.consent__title { font-family: var(--font-display); font-weight: 700; font-size: 17px;
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.consent p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; margin: 0; }
.consent p a { color: var(--accent-text); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.consent__actions .btn { flex: 1; min-width: 140px; }
.consent__settingsbtn { background: none; border: none; color: var(--text-tertiary); font-size: 13px;
  text-decoration: underline; cursor: pointer; margin-top: 12px; width: 100%; padding: 8px; }
.modal { position: fixed; inset: 0; z-index: 130; display: none; align-items: center; justify-content: center;
  padding: 16px; background: rgba(10,12,15,0.55); backdrop-filter: blur(4px); }
.modal.is-open { display: flex; }
.modal__card { background: var(--bg-page); border: 1px solid var(--hairline); border-radius: var(--radius-xxl);
  width: min(540px, 100%); max-height: 88vh; max-height: 88dvh; overflow-y: auto;
  overscroll-behavior: contain; padding: 24px; box-shadow: var(--shadow-lg); }
.cat-row { display: flex; gap: 14px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--separator); }
.cat-row__txt { flex: 1; }
.cat-row__txt b { font-family: var(--font-display); font-size: 15px; }
.cat-row__txt p { font-size: 13px; color: var(--text-secondary); margin-top: 3px; line-height: 1.5; }
.cat-row__txt small { font-size: 11.5px; color: var(--text-tertiary); }
.switch { position: relative; width: 46px; height: 28px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__track { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-raised);
  transition: background var(--dur-fast); pointer-events: none; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm);
  transition: transform var(--dur-normal) var(--ease-spring); }
.switch input:checked + .switch__track { background: var(--ember-amber); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:disabled + .switch__track { opacity: 0.5; }

/* --- Flammen-Cursor ------------------------------------------------------------- */
.flamecursor { position: fixed; top: 0; left: 0; z-index: 200; width: 26px; height: 32px;
  margin: -16px 0 0 -13px; pointer-events: none; will-change: transform; transition: opacity var(--dur-normal); }
.flamecursor.is-hidden { opacity: 0; }
html.flame-active, html.flame-active a, html.flame-active button,
html.flame-active [role="button"] { cursor: none; }
html.flame-active input, html.flame-active textarea, html.flame-active select,
html.flame-active [contenteditable] { cursor: auto; }

/* --- Scroll-Reveal + Drift („Hauch" Interaktivität) -------------------------------- */
.reveal { opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s var(--ease-standard), transform 0.6s var(--ease-standard); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.07s; }
.reveal[data-d="2"] { transition-delay: 0.14s; }
.reveal[data-d="3"] { transition-delay: 0.21s; }
.reveal[data-d="4"] { transition-delay: 0.28s; }
[data-drift] { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  [data-drift] { transform: none !important; }
}

/* --- Dark Mode: ruhig, flach, glow-frei ----------------------------------------------
   Eigene Designsprache statt „Light mit dunklen Farben": Tiefe kommt aus
   aufgehellten Flächen + feinen warmen Hairlines — nicht aus Leuchten.
   (Founder: keine Glow-Effekte im Dark Mode.) */
[data-theme="dark"] .ember-glow { display: none; }
[data-theme="dark"] .btn--primary { box-shadow: none; }
[data-theme="dark"] .btn--primary:hover { filter: brightness(1.06); box-shadow: none; transform: translateY(-1px); }
[data-theme="dark"] .card,
[data-theme="dark"] .forecast,
[data-theme="dark"] .btn--secondary { box-shadow: none; }
/* Dark bekommt seine Hairline + aufgehellte Fläche zurück (statt Papierweiß). */
[data-theme="dark"] .card { background: var(--surface-card); border-color: var(--hairline); }
[data-theme="dark"] .card--elevated { box-shadow: none; border-color: rgba(255,255,255,0.14); }
/* Dunkles Theme: helleres Stahlband (Silber statt Graphit) + Lichtsaum, damit
   das Gerät sich vom dunklen Grund absetzt statt darin zu verschwinden. */
[data-theme="dark"] .device {
  --metal-hi: #f4f7fa; --metal-spec: #ccd4dc; --metal-mid: #949ca5; --metal-lo: #4e545c;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.10),
              0 18px 36px -16px rgba(0,0,0,0.72),
              0 44px 72px -32px rgba(0,0,0,0.80);
}
[data-theme="dark"] .disclaimer-band { background: transparent; border-color: var(--hairline); }
[data-theme="dark"] .path::before { background: linear-gradient(rgba(232,168,56,0.45), var(--separator)); }
[data-theme="dark"] .path__item::before { border-color: var(--ember-amber); background: var(--bg-secondary); }

/* --- Transluzenz & Kontrast: Systempräferenzen respektieren -------------------------
   Reduzierte Transparenz → Chrome wird frostig/solide; mehr Kontrast →
   definierte Kanten statt weicher Flächentrennung. */
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg-page); backdrop-filter: none; -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--hairline); }
  .modal { backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .nav { background: var(--bg-page); border-bottom: 1px solid var(--separator); }
  .card { border-color: var(--separator); }
  .pill, .btn--ghost { border-color: var(--separator); }
}

/* --- Rechtsseiten / Prosa ----------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 40px; font-size: 1.35rem; }
.prose h3 { margin-top: 26px; font-size: 1.08rem; }
.prose p, .prose li { color: var(--text-secondary); font-size: 15.5px; line-height: 1.66; margin: 10px 0; }
.prose ul { padding-left: 20px; }
.prose strong { color: var(--text-primary); }
.editor-note { background: color-mix(in srgb, var(--warning) 14%, transparent); border: 1px dashed var(--warning);
  border-radius: var(--radius-md); padding: 14px 16px; font-size: 13.5px; color: var(--text-primary);
  margin-bottom: 26px; line-height: 1.55; }
.editor-note b { color: var(--warning); }

/* --- Touch: alles Antippbare mindestens 44 × 44 --------------------------------------
   Gilt nur für grobe Zeiger (Finger). Mit der Maus bleibt die Kopfzeile so
   kompakt wie entworfen. Rheuma heißt oft auch: die Finger treffen nicht
   millimetergenau — hier ist das kein Detail, sondern Bedienbarkeit. */
@media (pointer: coarse) {
  .iconbtn { width: 44px; height: 44px; }
  .langtoggle { height: 46px; }
  .langtoggle button { padding: 0 14px; }
  .brand { padding-block: 7px; }
  .footer a { padding: 12px 0; }
  .footer__bottom a { padding: 12px 0; }
  .consent-row input { width: 24px; height: 24px; margin-top: 1px; }
  .switch { width: 52px; height: 32px; }
  .switch__track::after { width: 26px; height: 26px; }
  .switch input:checked + .switch__track::after { transform: translateX(20px); }
}
/* Sehr schmale Geräte: die Rechtsseiten tragen oben einen Text-Knopf, der bei
   360 px Breite die Zeile sprengt. Dort bleibt nur der Pfeil. */
@media (max-width: 420px) {
  .nav__back span { position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; }
  .nav__back { padding: 0 14px; }
  /* Nebeneinander brechen die Knöpfe ohnehin um und stehen dann verschieden
     breit da. Untereinander und gleich breit ist ruhiger und leichter zu
     treffen. */
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .btn--lg { --_h: 56px; padding: 0 22px; font-size: 16px; }
}

/* --- Utilities ---------------------------------------------------------------------- */
.mt-0{margin-top:0}.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}
.mt-32{margin-top:32px}.mt-48{margin-top:48px}
.mb-0{margin-bottom:0}.mb-16{margin-bottom:16px}.mb-32{margin-bottom:32px}

/* --- Tagebuch-Story (scrollgesteuerte Szene, Startseite) ---------------------------- */
.scrolly { position: relative; height: 320vh; }
/* svh statt vh: Mobile-Browser rechnen vh gegen die ausgefahrene Adressleiste.
   Mit vh ragt die Bühne unter den sichtbaren Bereich und der Scroll-Hinweis
   sitzt außerhalb des Bildes. */
.sh-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.sh-scene { position: absolute; inset: 0; left: 44%; }
.sh-copy { position: absolute; inset: 0; right: 60%; z-index: 6;
  display: flex; align-items: center; padding-left: clamp(20px, 6vw, 84px); }
.sh-step { position: absolute; max-width: 36ch; opacity: 0; }
.sh-step .h2 { margin-bottom: 12px; }
.sh-step p { color: var(--text-secondary); font-size: 16.5px; line-height: 1.62; }
.sh-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 7px; color: var(--text-tertiary);
  font-size: 13px; transition: opacity .4s; }
.sh-hint i { animation: sh-bob 1.8s var(--ease-inout) infinite; }
@keyframes sh-bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(5px) } }

.sh-book { position: absolute; left: 50%; top: 14%; width: clamp(150px, 34%, 220px);
  margin-left: calc(clamp(150px, 34%, 220px) / -2); z-index: 3; will-change: transform; }
.sh-book svg { width: 100%; height: auto; display: block;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,0.16)); }

.sh-page { position: absolute; left: 50%; top: 17%; width: clamp(64px, 15%, 96px);
  margin-left: calc(clamp(64px, 15%, 96px) / -2); aspect-ratio: 3 / 4;
  background: var(--paper); border: 1px solid var(--separator); border-radius: 5px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.10); opacity: 0; will-change: transform;
  padding: 12% 11%; }
.sh-page::before { content: ""; display: block; height: 8%; width: 60%;
  border-radius: 3px; background: color-mix(in srgb, var(--ember-amber, #E8A838) 55%, transparent); }
.sh-page::after { content: ""; display: block; margin-top: 14%; height: 62%;
  background: repeating-linear-gradient(to bottom,
    color-mix(in srgb, var(--text-tertiary) 42%, transparent) 0 1px, transparent 1px 22%); }

/* --w muss aus absoluten Einheiten bestehen: ein Prozentanteil landet über
   --dw in den border-radius-Rechnungen des Geräts, und Prozent-Radien werden
   pro Achse aufgelöst — der Rahmen bekommt eiförmige Ecken, ungleiche Bezels
   und eine verzerrte Notch. 21vw ≈ 38 % der Szene (56 % des Viewports). */
.sh-phone { --w: clamp(180px, 21vw, 300px);
  position: absolute; left: 50%; top: 24%; width: var(--w);
  margin-left: calc(var(--w) / -2); z-index: 5; opacity: 0; will-change: transform; }
/* Das Gerät bringt eine eigene absolute Breite mit (--dw). Ohne diese Bindung
   ist es breiter als sein Platzhalter, sitzt außermittig und läuft auf dem
   Handy rechts aus dem Bild. */
.sh-phone .device { --dw: var(--w); }

/* Ruhige Fassung: reduced motion oder fehlendes JS zeigt das Endbild. */
.sh--static { height: auto; }
.sh--static .sh-stage { position: relative; height: auto; min-height: 0; padding: 56px 0 30px; }
.sh--static .sh-scene { position: relative; left: 0; height: 480px; max-width: 560px; margin-inline: auto; }
.sh--static .sh-book, .sh--static .sh-hint { display: none; }
.sh--static .sh-page { opacity: .45; top: auto; bottom: 6%; }
.sh--static .sh-page:nth-child(odd) { transform: translateX(-120%) rotate(-16deg); }
.sh--static .sh-page:nth-child(even) { transform: translateX(60%) rotate(11deg); }
/* Absolute Breite auch hier: die statische Szene ist nur 480px hoch, mit
   21vw wäre das Gerät auf breiten Schirmen höher als die Szene. */
.sh--static .sh-phone { opacity: 1; top: 6%; --w: min(216px, 46vw); }
.sh--static .sh-copy { position: relative; inset: auto; display: block; padding: 0 20px; }
.sh--static .sh-step { position: relative; opacity: 1; max-width: 60ch; margin: 26px auto; text-align: center; }

@media (max-width: 860px) {
  .sh-scene { left: 0; top: 0; height: 62%; }
  .sh-copy { inset: auto 0 0 0; right: 0; height: 36%; text-align: center;
    padding: 0 calc(22px + env(safe-area-inset-right, 0px)) 0 calc(22px + env(safe-area-inset-left, 0px));
    align-items: flex-start; justify-content: center; }
  /* Absolut positionierte Kinder rechnen gegen die Polsterkante des Elternteils,
     nicht gegen dessen Innenraum. Mit left/right: 0 klebte der Text deshalb am
     Bildschirmrand, obwohl .sh-copy gepolstert ist — Rand hier direkt setzen. */
  .sh-step { max-width: 38ch; margin-inline: auto;
    left: calc(22px + env(safe-area-inset-left, 0px));
    right: calc(22px + env(safe-area-inset-right, 0px)); }
  .sh-step p { font-size: 15.5px; line-height: 1.55; }
  /* top-Werte halten Buch und Handy unter der klebenden Kopfzeile — sonst
     schiebt sich der Rahmen über das obere Ende des Geräts. */
  .sh-book { width: 40%; margin-left: -20%; top: 16%; }
  /* Das Handy wird auf dem Hochkant-Bildschirm über die Höhe begrenzt, sonst
     ist es länger als die Bühne und wird oben wie unten angeschnitten. */
  .sh-phone { --w: min(216px, 46vw, 24svh); top: 18%; }
}
/* Querformat auf dem Handy: für die dreiaktige Szene ist schlicht keine Höhe
   da. scrolly.js schaltet hier auf das ruhige Endbild um (.sh--static);
   diese Regel hält die Typografie dabei kompakt. */
@media (max-height: 560px) and (orientation: landscape) {
  .sh--static .sh-scene { height: 320px; }
  .sh--static .sh-step { margin: 18px auto; }
}
