/* GRUNDLICHT Tauchschule Weissensee (Beispiel). Ein Abstieg von 0 bis 18 m. Schriftgrößen nur aus den Variablen der Schrift-Ordnung. */
@font-face { font-family: "Mona Sans"; src: url("../fonts/mona-sans-var.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --oben: #E6F6F3; --mitte: #1FA3A0; --tiefe: #0B4F7A; --grund: #06243A; --rot: #E2332B; --rot-k: #D2281F; --leine: #F2C230; --lampe-ton: #FFC878;
  --g-wort: clamp(4rem, min(16vw, 26svh), 15rem);
  --g-zeile: clamp(2rem, min(4.6vw, 8.5svh), 4.75rem);
  --g-ueber: clamp(1.5rem, 2.4vw, 2.5rem);
  --g-lead: clamp(1.125rem, 1.4vw, 1.4375rem);
  --g-text: clamp(1.0625rem, 1.05vw, 1.1875rem);
  --g-daten: clamp(0.9375rem, 0.95vw, 1.0625rem);
  --g-klein: 1rem;
  --k-tag: 30px; --k-name: 21px; --k-zahl: 24px; --k-dy: 0px;   /* SVG-Einheiten der Tiefenkarte (Kartenbreite 900), am Handy größer */
  --a1: 8px; --a2: 16px; --a3: 24px; --a4: 40px; --a5: 64px; --a6: 104px; --a7: 168px;
  --rand: clamp(16px, 5vw, 72px);
  --kopfh: 4.5rem;
  --schrift: "Mona Sans", system-ui, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;

  /* Lebendige Werte aus grundlicht.js (Anteile 0 bis 1 = "noch da") */
  --r1: 1; --r2: 1; --kg: 1; --kl: 0; --kt: 0; --a0: 1; --a1p: 1; --a2p: 1; --a3p: 1;
  --tf: 0; --t2: 0; --t5: 0; --t7: 0;
  --saeule: #E6F6F3;

  /* Geometrie des ersten Bildschirms (Querformat): Foto 48 : 35, Wasserlinie bei 31,1 %, Taucherin endet bei 64,6 % */
  --h0v: max(100svh, 46rem);
  --ueber: 22svh;
  --b2ramp: 14.7%;
  --fw: max(100vw, calc(var(--h0v) * 1.5));
  --fh: calc(var(--fw) * 35 / 48);
  --wlf: 0.3114;
  --ft: max(calc(31rem - var(--fh) * var(--wlf)), calc(var(--h0v) - 34px - var(--fh) * 0.6457));
  --cx: 11.667%; --cy: 30.286%; --cw: 65.833%; --ch: 36.571%;
  --rx: 73.3%; --ry: 46.86%;
}
@media (max-aspect-ratio: 1/1) {
  :root {
    --ueber: 14svh;
    --b2ramp: 9.4%;
    --fw: max(100vw, calc(var(--h0v) * 0.55));
    --fh: calc(var(--fw) * 2868 / 1776);
    --wlf: 0.3947;
    --ft: max(calc(34rem - var(--fh) * var(--wlf)), calc(var(--h0v) - 34px - var(--fh) * 0.6067));
    --cx: 0%; --cy: 39.05%; --cw: 84.46%; --ch: 22.32%;
    --rx: 76.6%; --ry: 48.47%;
  }
}
/* Flache Fenster: Text über der Wasserlinie, Taucherin darunter, alles im ersten Bildschirm */
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  :root { --h0v: 100svh; --ueber: 8svh; --kopfh: 3.5rem; --ft: calc(71svh - var(--wlf) * var(--fh)); }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--oben); -webkit-text-size-adjust: 100%; scroll-padding-top: var(--kopfh); }
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
body {
  --rot-live: color-mix(in oklab, color-mix(in oklab, var(--rot) calc(var(--r1) * 100%), #7A4B3A) calc(var(--r2) * 100%), #4F6B80);
  --knopf-live: color-mix(in oklab, var(--rot-k) calc(var(--r2) * 100%), #E9A93A);
  --knopf-text: color-mix(in oklab, var(--grund) calc(var(--kt) * 100%), #fff);
  --gelb-live: color-mix(in oklab, var(--leine) calc(var(--kg) * 100%), #5F8A5A);
  --orange-live: color-mix(in oklab, #FF8A1F calc(var(--a1p) * 100%), #4F6B80);
  --tinte: color-mix(in oklab, var(--oben) calc(var(--kl) * 100%), var(--grund));
  margin: 0; background: var(--oben); color: var(--grund); font-family: var(--schrift); font-size: var(--g-text); line-height: 1.6;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img, picture { display: block; }
.sprung { min-height: 44px; display: inline-flex; align-items: center; position: fixed; left: var(--a2); top: -4rem; z-index: 100; padding: var(--a1) var(--a2); background: var(--grund); color: var(--oben); border-radius: 999px; font-size: var(--g-klein); }
.sprung:focus { top: var(--a1); }

/* Wassersäule: fest, Farbe aus der Tiefe, nur opacity */
.saeule { position: fixed; inset: 0; z-index: 0; background: var(--oben); overflow: hidden; }
.saeule .w { position: absolute; inset: 0; opacity: 0; }
.w2 { background: var(--mitte); } .w3 { background: var(--tiefe); } .w4 { background: var(--grund); }
.strahlen { position: absolute; left: -20vw; top: -4svh; width: 140vw; height: 92svh; opacity: 0; will-change: transform, opacity;
  background: repeating-linear-gradient(104deg, rgba(255,255,255,0) 0 64px, rgba(255,255,255,0.22) 96px, rgba(255,255,255,0) 150px, rgba(255,255,255,0) 230px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, rgba(0,0,0,0.5) 55%, transparent 92%); mask-image: linear-gradient(to bottom, #000 0, rgba(0,0,0,0.5) 55%, transparent 92%); }

/* Kopfzeile: fest und leise */
.kopf { position: fixed; left: 0; right: 0; top: 0; height: var(--kopfh); z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: var(--a3);
  padding: 0 var(--rand); color: var(--tinte); transition: color 0.25s; }
.kopf::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: calc(100% + 36px); pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in oklab, var(--saeule) 97%, transparent) 0, color-mix(in oklab, var(--saeule) 92%, transparent) 58%, color-mix(in oklab, var(--saeule) 0%, transparent) 100%); }
.kopf::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: calc(100% + 36px); pointer-events: none; opacity: var(--kl); transition: opacity 0.25s;
  background: linear-gradient(to bottom, rgba(6, 36, 58, 0.9) 0, rgba(6, 36, 58, 0.84) 58%, rgba(6, 36, 58, 0) 100%); }
.kopf a { color: inherit; text-decoration: none; }
.kopf a.cta { color: var(--knopf-text); }
.logo { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; font-weight: 700; font-size: var(--g-text); letter-spacing: 0.06em; }
.logo-punkt { width: 12px; height: 12px; border-radius: 50%; background: var(--rot-live); }
.kopf-nav { display: flex; gap: var(--a4); margin-left: auto; margin-right: var(--a4); font-size: var(--g-klein); font-weight: 500; }
.kopf-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border-bottom: 1px solid transparent; }
.kopf-nav a:hover { border-bottom-color: currentColor; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; box-shadow: 0 0 0 6px color-mix(in oklab, var(--saeule) 90%, transparent); }

/* Roter Knopf: die Farbe stirbt bei 3 bis 6 m und kommt im Lampenlicht zurück */
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 var(--a4); border: 0; border-radius: 999px; font-weight: 600; font-size: var(--g-text); line-height: 1; font-family: var(--schrift); letter-spacing: 0.005em; color: var(--knopf-text); background: var(--knopf-live); text-decoration: none; cursor: pointer; }
.cta:active { transform: translateY(1px); }
.cta:disabled { opacity: 0.6; cursor: default; }
.cta-klein { min-height: 44px; padding: 0 var(--a3); font-size: var(--g-klein); }

/* Riesenwort: nur die Tiefe, zwischen Hintergrund und Person */
.wort { position: absolute; z-index: 4; margin: 0; font-family: var(--schrift); font-weight: 300; font-size: var(--g-wort); line-height: 1; letter-spacing: -0.04em; white-space: nowrap; color: var(--oben); opacity: 0.5; pointer-events: none; transition: opacity 0.35s ease; }
.wort.unter { opacity: 0.1; }

/* ---------- S0 ---------- */
.s0 { position: relative; height: calc(var(--h0v) + var(--ueber)); overflow: clip; }
.foto { position: absolute; left: 50%; top: var(--ft); width: var(--fw); height: var(--fh); margin-left: calc(var(--fw) / -2); }
.ebene { position: absolute; inset: 0; will-change: transform; }
.ebene img { width: 100%; height: 100%; }
.fa, .ft { display: block; }
.sky-tief .ft, .t-tief .ft { opacity: var(--tf); }
.sky, .sky-tief { z-index: 1;
  -webkit-mask-image: radial-gradient(ellipse 46% 36% at 82% calc(var(--wlf) * 100%), #000 34%, transparent 100%), linear-gradient(to bottom, #000 calc(var(--wlf) * 100% + 2%), transparent calc(var(--wlf) * 100% + 4%)), linear-gradient(to bottom, transparent 0, #000 calc(var(--wlf) * 100% - 4%));
  mask-image: radial-gradient(ellipse 46% 36% at 82% calc(var(--wlf) * 100%), #000 34%, transparent 100%), linear-gradient(to bottom, #000 calc(var(--wlf) * 100% + 2%), transparent calc(var(--wlf) * 100% + 4%)), linear-gradient(to bottom, transparent 0, #000 calc(var(--wlf) * 100% - 4%));
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.wasser { z-index: 2;
  -webkit-mask-image: linear-gradient(to bottom, transparent calc(var(--wlf) * 100% - 3%), #000 calc(var(--wlf) * 100% + 1%));
  mask-image: linear-gradient(to bottom, transparent calc(var(--wlf) * 100% - 3%), #000 calc(var(--wlf) * 100% + 1%)); }
.taucherin { z-index: 6; }
.t-box { position: absolute; left: var(--cx); top: var(--cy); width: var(--cw); height: var(--ch); }
.t-box picture { position: absolute; inset: 0; }
.t-box img { width: 100%; height: 100%; }
.blasen { position: absolute; left: var(--rx); top: var(--ry); width: 0; height: 0; z-index: 8; will-change: transform; pointer-events: none; }
.blase { position: absolute; left: 0; top: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.8); background: radial-gradient(circle at 32% 30%, rgba(255,255,255,0.55), rgba(255,255,255,0.08) 55%, rgba(255,255,255,0) 72%); opacity: 0; will-change: transform, opacity; }

.s0-text { will-change: opacity; position: absolute; z-index: 20; left: var(--rand); top: calc(var(--kopfh) + var(--a3)); width: min(44rem, calc(100% - 2 * var(--rand))); color: var(--grund); }
.s0-text h1 { margin: 0; font-size: var(--g-zeile); font-weight: 560; font-stretch: 100%; letter-spacing: -0.025em; line-height: 1.02; text-wrap: balance; }
.s0-text .lead { margin: var(--a2) 0 0; font-size: var(--g-lead); line-height: 1.45; max-width: 40rem; }
.s0-text .vertrauen { margin: var(--a2) 0 var(--a2); font-family: var(--mono); font-size: var(--g-daten); font-weight: 450; letter-spacing: 0.01em; }
.ziffer { font-weight: 600; }
.satz-kopf { margin: var(--a2) 0 0; font-size: var(--g-klein); line-height: 1.5; max-width: 30rem; }

/* ---------- S1 ---------- */
/* Fotohintergründe: feste Hülle mit weichem Auslauf an der Stationsgrenze, damit die wandernde Ebene nie an der Abschnittskante hart abgeschnitten wird */
.bgw { position: absolute; inset: 0; pointer-events: none; }
.bgw1 { z-index: 3; -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 74%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 74%, transparent 100%); }
.bgw2, .bgw3 { z-index: 1; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%); }
.s1 { position: relative; margin-top: calc(var(--ueber) * -1); min-height: max(190svh, 70rem); padding: calc(var(--ueber) + 26svh) var(--rand) 60svh; overflow: clip; color: var(--oben); }
.s1-bg { position: absolute; z-index: 3; top: 0; left: calc(72vw - 133svh * 1.005); width: 266svh; height: 170svh; will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--b2ramp), #000 74%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 var(--b2ramp), #000 74%, transparent 100%); }
.s1-bg picture, .s1-b3 picture { position: absolute; inset: 0; }
.s1-bg img { width: 100%; height: 100%; object-fit: cover; }
.b2-tief .ft, .b3-tief .ft { opacity: var(--t2); }
.s1-schleier { position: absolute; z-index: 5; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(6,36,58,0.84) 0, rgba(6,36,58,0.68) 40%, rgba(6,36,58,0) 76%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26svh, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 26svh, #000 80%, transparent 100%); }
.s1-wort { z-index: 4; right: var(--rand); top: calc(var(--ueber) + 66svh); color: var(--oben); }

.s1-b3 { position: absolute; z-index: 6; top: calc(var(--ueber) + 62svh); width: 72vw; aspect-ratio: 3 / 2; left: calc(72vw - 72vw * 0.5127); will-change: transform; }
.s1-b3 img { width: 100%; height: 100%; }
.steg { display: block; margin: var(--a3) 0 0; width: min(22rem, 72vw); aspect-ratio: 3 / 2; -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 52%, transparent 100%); }
.steg picture, .steg img { width: 100%; height: 100%; object-fit: cover; }

.s1-text { position: relative; z-index: 20; width: min(36rem, 46vw); }
h2 { margin: 0; font-size: var(--g-zeile); font-weight: 560; font-stretch: 100%; letter-spacing: -0.025em; line-height: 1.02; text-wrap: balance; }
.schritte { list-style: none; margin: var(--a5) 0 0; padding: 0; position: relative; display: grid; gap: clamp(2.5rem, 9svh, 5.5rem); }
.leine { position: absolute; left: calc(1.25rem - 1.5px); top: 1rem; bottom: 1rem; width: 3px; background: var(--gelb-live); opacity: 0.85; transform-origin: 50% 0; }
.schritte li { position: relative; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--a3); align-items: start; }
.nr { position: relative; z-index: 1; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--grund); border: 2px solid var(--gelb-live); font-family: var(--mono); font-weight: 450; font-size: var(--g-daten); font-variant-numeric: tabular-nums; }
.schritte h3 { margin: 0 0 var(--a1); font-size: var(--g-ueber); font-weight: 560; letter-spacing: -0.015em; line-height: 1.15; }
.schritte p { margin: 0; font-size: var(--g-text); line-height: 1.55; max-width: 28rem; }

/* ---------- S2 · Kurse und Preise ---------- */
.s2, .s3 { position: relative; overflow: clip; color: var(--oben); }
.s2 { min-height: max(168svh, 70rem); margin-top: -10svh; padding: 30svh var(--rand) 24svh; }
.s2-bg, .s3-bg { position: absolute; z-index: 1; left: 0; right: 0; top: 6svh; height: 150svh; will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 76%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 76%, transparent 100%); }
.s2-bg picture, .s3-bg picture { position: absolute; inset: 0; }
.s2-bg img, .s3-bg img { width: 100%; height: 100%; object-fit: cover; }
.s2-bg img { object-position: 38% 50%; }
.b5-tief .ft { opacity: var(--t5); } .b7-tief .ft { opacity: var(--t7); }
.s2-schleier, .s3-schleier { position: absolute; z-index: 2; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,79,122,0.9) 0, rgba(11,79,122,0.72) 38%, rgba(11,79,122,0) 74%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 6%, #000 30%, #000 78%, transparent 96%); mask-image: linear-gradient(to bottom, transparent 6%, #000 30%, #000 78%, transparent 96%); }
.s2-wort { z-index: 4; right: var(--rand); top: 74svh; }
.s2-taucher { position: absolute; z-index: 6; right: -2vw; top: 22svh; width: min(52vw, 60svh * 1.42); will-change: transform; }
.s2-taucher img { width: 100%; height: auto; }
.s2-text { position: relative; z-index: 20; width: min(44rem, 56vw); margin-top: 2svh; }
.logbuch { position: relative; list-style: none; margin: var(--a5) 0 0; padding: 0; font-family: var(--mono); font-size: var(--g-daten); font-weight: 450; font-variant-numeric: tabular-nums; }
.logbuch::before { content: ""; position: absolute; z-index: -1; inset: -12px -28px -12px -20px; border-radius: 14px; background: linear-gradient(90deg, rgba(6, 36, 58, 0.66), rgba(6, 36, 58, 0.52)); }
.logbuch li { --zp: 1; display: grid; grid-template-columns: minmax(12rem, 1.7fr) minmax(8rem, 1.1fr) minmax(7rem, 1fr) auto; gap: var(--a2); align-items: baseline; padding: var(--a3) 0 var(--a3) var(--a3); border-top: 1px solid rgba(230, 246, 243, 0.38); position: relative; }
.logbuch li > span { opacity: clamp(0, calc((var(--zp) * 2.4 - var(--i, 0) * 0.3) * 2), 1); }
.logbuch li > span:nth-child(2) { --i: 1; } .logbuch li > span:nth-child(3) { --i: 2; } .logbuch li > span:nth-child(4) { --i: 3; }
.logbuch li:last-child { border-bottom: 1px solid rgba(230, 246, 243, 0.38); }
.logbuch li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--orange-live); opacity: clamp(0, calc(var(--zp) * 6), 1); }
.lz-n { font-family: var(--schrift); font-size: var(--g-text); font-weight: 600; letter-spacing: -0.005em; line-height: 1.25; }
.lz-p { font-size: var(--g-ueber); font-weight: 500; text-align: right; line-height: 1.1; }
.hinweis { margin: var(--a4) 0 0; font-size: var(--g-text); max-width: 30rem; }
.beispiel { margin: var(--a2) 0 0; font-family: var(--mono); font-size: var(--g-klein); opacity: 0.85; }

/* ---------- S3 · Tauchplätze ---------- */
.s3 { min-height: max(170svh, 70rem); margin-top: -20svh; padding: 30svh var(--rand) 22svh; }
.s3-bg img { object-position: 30% 50%; }
.s3-wort { z-index: 4; left: 8vw; top: 112svh; }
.s3-karte { position: absolute; z-index: 8; margin: 0; right: calc(var(--rand) * 0.5); top: 31svh; width: min(58vw, 66rem); will-change: transform; }
.s3-karte::before { content: ""; position: absolute; z-index: -1; inset: -12% -8%; background: radial-gradient(ellipse closest-side, rgba(6, 36, 58, 0.74) 0, rgba(6, 36, 58, 0.5) 64%, rgba(6, 36, 58, 0) 100%); }
.karte-svg { display: block; width: 100%; height: auto; overflow: visible; will-change: transform; }
.karte-svg .gitter path { fill: none; stroke: rgba(230, 246, 243, 0.1); stroke-width: 1; }
.karte-svg .ufer { fill: rgba(31, 163, 160, 0.26); stroke: rgba(230, 246, 243, 0.9); stroke-width: 1.6; stroke-linejoin: round; }
.karte-svg .hl { fill: rgba(6, 36, 58, 0.045); stroke: rgba(191, 233, 236, 0.4); stroke-width: 0.9; stroke-linejoin: round; }
.karte-svg .hl.h { stroke: rgba(191, 233, 236, 0.8); stroke-width: 1.4; }
.karte-svg .hl.an { stroke: #fff; stroke-width: 3.4; }
.karte-svg .tag-l { stroke: #fff; stroke-width: 1.5; fill: none; }
.karte-svg .tag-k { fill: #fff; }
.karte-svg .tag-t { fill: #fff; font-family: var(--mono); font-size: var(--k-tag); font-weight: 600; paint-order: stroke; stroke: rgba(6, 36, 58, 0.9); stroke-width: 6px; stroke-linejoin: round; }
.karte-svg .pl { stroke: rgba(230, 246, 243, 0.7); stroke-width: 1.2; fill: none; }
.karte-svg .pk { fill: var(--oben); stroke: var(--grund); stroke-width: 2; }
.karte-svg .pin.nah .pk { fill: #fff; r: 8; }
.karte-svg .kt { fill: var(--oben); font-family: var(--mono); font-size: var(--k-name); font-weight: 500; paint-order: stroke; stroke: rgba(6, 36, 58, 0.9); stroke-width: 5px; stroke-linejoin: round; }
.karte-svg .kz { transform: translateY(var(--k-dy)); font-weight: 600; font-size: var(--k-zahl); }
.karte-svg .massstab path, .karte-svg .nord path { stroke: rgba(230, 246, 243, 0.8); stroke-width: 1.5; fill: none; }
.s3-karte figcaption { max-width: min(100%, 34rem); margin-top: var(--a2); font-size: var(--g-klein); position: relative; padding: var(--a1) var(--a2); border-radius: 8px; background: rgba(6, 36, 58, 0.72); }
.s3-taucher { position: absolute; z-index: 7; left: 31vw; top: 8svh; width: min(20vw, 46svh); will-change: transform; }
.s3-taucher img { width: 100%; height: auto; }
.s3-text { position: relative; z-index: 20; width: min(28rem, 34vw); }
.plaetze { list-style: none; margin: var(--a5) 0 0; padding: 0; display: grid; gap: var(--a4); }
.plaetze li { display: grid; gap: 2px; padding: var(--a2) 0 0; border-top: 1px solid rgba(230, 246, 243, 0.4); }
.plaetze b { font-size: var(--g-ueber); font-weight: 560; letter-spacing: -0.015em; line-height: 1.15; }
.plaetze span { font-family: var(--mono); font-size: var(--g-daten); font-weight: 450; }

/* ---------- S4 · Grund ---------- */
.s4 { position: relative; height: 240svh; color: var(--oben); }
.s4-stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
.s4-basis { position: absolute; z-index: 1; inset: 0; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26%, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 26%, #000 78%, transparent 100%); }
.s4-basis picture, .l-grund { position: absolute; inset: 0; width: 100%; height: 100%; }
.s4-basis img, .l-grund img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.s4-wort { z-index: 6; right: 3vw; top: 12svh; opacity: 0.45; }
.s4-taucher, .l-taucher { position: absolute; left: 34vw; bottom: 3svh; height: 62svh; aspect-ratio: 1412 / 1610; }
.s4-taucher { z-index: 3; }
.s4-taucher::after { content: ""; position: absolute; z-index: -1; left: 4%; right: 4%; bottom: 0; height: 7%; background: radial-gradient(ellipse closest-side, rgba(2, 14, 24, 0.72), rgba(2, 14, 24, 0)); pointer-events: none; }
.s4-taucher picture, .l-taucher picture { display: block; width: 100%; height: 100%; }
.s4-taucher img, .l-taucher img { width: 100%; height: 100%; }
.s4-text { position: absolute; z-index: 10; left: var(--rand); top: calc(var(--kopfh) + var(--a4)); width: min(46vw, 40rem); will-change: transform, opacity; }
.s4-text::before { content: ""; position: absolute; z-index: -1; inset: -48px -12vw -40px -48px; pointer-events: none; background: radial-gradient(ellipse closest-side at 38% 46%, rgba(6, 36, 58, 0.78) 0, rgba(6, 36, 58, 0.5) 62%, rgba(6, 36, 58, 0) 100%); }
.s4-text p { margin: var(--a3) 0 0; max-width: 28rem; }
.s4-text .hinweis-lampe { font-family: var(--mono); font-size: var(--g-klein); color: var(--lampe-ton); opacity: 0; transition: opacity 0.8s ease; }
.s4.lampe-an .hinweis-lampe { opacity: 1; }
.s4-cta, .cta-kopie { position: absolute; left: var(--rand); bottom: var(--rand); z-index: 10; }
.cta-kopie { z-index: 1; background: var(--rot); color: #fff; pointer-events: none; }
.s4-cta { z-index: 3; }
.s4-cta:focus-visible { z-index: 12; }
.lampe { position: absolute; z-index: 4; left: 0; top: 0; width: var(--lampe-d, 700px); height: var(--lampe-d, 700px); overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transform-origin: 50% 50%; will-change: transform, opacity;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 0, #000 42%, rgba(0,0,0,0.72) 62%, rgba(0,0,0,0.28) 82%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 0, #000 42%, rgba(0,0,0,0.72) 62%, rgba(0,0,0,0.28) 82%, transparent 100%); }
.lampe-innen { position: absolute; left: 0; top: 0; width: 100vw; height: 100svh; transform-origin: 0 0; will-change: transform; }
.glut { position: absolute; z-index: 5; left: 0; top: 0; width: var(--lampe-d, 700px); height: var(--lampe-d, 700px); opacity: 0; visibility: hidden; transform-origin: 50% 50%; will-change: transform, opacity; pointer-events: none;
  background: radial-gradient(circle closest-side, rgba(255,205,130,0.34) 0, rgba(255,190,110,0.16) 45%, rgba(255,180,100,0) 100%); }

/* ---------- S5 · Logbuch im Lampenlicht ---------- */
.s5 { position: relative; z-index: 1; padding: var(--a6) var(--rand) var(--a7); background: var(--grund); color: var(--oben); overflow: clip; }
.s5-licht { position: absolute; z-index: 0; left: -10vw; top: 6%; width: 78vw; height: 92%; pointer-events: none; will-change: transform;
  background: radial-gradient(ellipse closest-side, rgba(255, 190, 110, 0.2) 0, rgba(255, 190, 110, 0.09) 52%, rgba(255, 190, 110, 0) 100%); }
.s5-in { position: relative; z-index: 2; max-width: 46rem; }
.s5-lead { margin: var(--a3) 0 0; font-size: var(--g-lead); line-height: 1.45; max-width: 34rem; }
.logbuch-form { margin-top: var(--a5); display: grid; grid-template-columns: 1fr 1fr; gap: var(--a4) var(--a4); max-width: 100%; }
.feld { position: relative; display: grid; gap: var(--a1); align-content: start; }
.feld.breit, .aktion.breit { grid-column: 1 / -1; }
.feld label { font-size: var(--g-klein); font-weight: 600; color: var(--lampe-ton); }
.feld input, .feld select, .feld textarea { width: 100%; min-height: 48px; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(230, 246, 243, 0.4); border-radius: 0; background: transparent; color: var(--oben); font-family: var(--schrift); font-size: var(--g-text); line-height: 1.4; color-scheme: dark; }
.feld select option { background: var(--grund); color: var(--oben); }
.feld textarea { resize: vertical; }
.feld input::placeholder { color: rgba(230, 246, 243, 0.62); }
.fl { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lampe-ton); transform-origin: 0 50%; }
.feld input:focus-visible, .feld select:focus-visible, .feld textarea:focus-visible { outline: 3px solid var(--lampe-ton); outline-offset: 4px; box-shadow: none; }
.fehler { margin: 0; min-height: 1.5em; font-size: var(--g-klein); line-height: 1.5; color: #FFB4A8; }
.feld input[aria-invalid="true"], .feld select[aria-invalid="true"], .feld textarea[aria-invalid="true"] { border-bottom-color: #FFB4A8; }
.aktion { display: grid; gap: var(--a3); justify-items: start; }
.cta-rot { background: var(--rot-k); color: #fff; min-height: 60px; }
.cta-rot:focus-visible { outline: 3px solid var(--lampe-ton); outline-offset: 4px; box-shadow: none; }
.formular-meldung { margin: 0; min-height: 1.6em; font-size: var(--g-text); font-weight: 560; color: var(--lampe-ton); }

/* Ende: die gelbe Leine läuft von oben zum Absenden, am Knopf hängt die rote Boje; Messmarken an den Feldlinien */
.s5 { --s5-pt: var(--a6); }
.s5-leine { position: absolute; z-index: 1; left: calc(var(--rand) * -0.5 - 1.5px); top: calc(var(--s5-pt) * -1); bottom: 82px; width: 3px; background: var(--leine); transform-origin: 50% 0; }
.s5-leine::before { content: ""; position: absolute; left: 100%; bottom: -1px; width: calc(var(--rand) * 0.5 - 1.5px); height: 2px; background: var(--leine); }
.s5-leine::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--rot-k); }
.s5-wort { z-index: 1; right: var(--rand); top: 18%; }
.feld input, .feld select, .feld textarea { background-image: repeating-linear-gradient(90deg, rgba(230, 246, 243, 0.5) 0 1px, transparent 1px 14px); background-size: 100% 6px; background-position: 0 100%; background-repeat: no-repeat; }
@media (max-width: 1100px) { .s5-wort { display: none; } }

/* ---------- S6 · Fuß · Auftauchen ---------- */
.s6 { position: relative; z-index: 1; overflow: clip; background: linear-gradient(to bottom, var(--grund) 0, #0A416B 45%, #0C5A84 100%); color: var(--oben); padding: var(--a5) var(--rand) calc(var(--a6) + 5rem); border-top: 1px solid rgba(230, 246, 243, 0.14); }
.s6::before { content: ""; position: absolute; right: -10vw; top: -20%; width: 70vw; aspect-ratio: 1; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 200, 120, 0.2), rgba(255, 200, 120, 0)); }
.s6-wort { z-index: 0; right: var(--rand); top: var(--a5); color: var(--oben); }
.s6-in { position: relative; z-index: 1; max-width: 46rem; display: grid; gap: var(--a3); justify-items: start; }
.s6-stopp { margin: 0; text-wrap: balance; font-size: var(--g-ueber); font-weight: 560; letter-spacing: -0.015em; line-height: 1.15; }
.cta-auf { background: transparent; border: 2px solid var(--oben); color: var(--oben); }
.cta-auf:hover { background: rgba(230, 246, 243, 0.12); }
.s6-hinweis { margin: var(--a2) 0 0; font-size: var(--g-klein); max-width: 34rem; }
.s6 address { display: grid; gap: 2px; font-style: normal; font-size: var(--g-klein); }
.s6 a { color: inherit; text-underline-offset: 3px; }
.s6-nav { display: flex; flex-wrap: wrap; gap: var(--a1) var(--a3); font-size: var(--g-klein); }
.s6-nav a, .s6 address a { display: inline-flex; align-items: center; min-height: 44px; }

/* Schwebeteilchen: eine Ebene vor allem */
.partikel { position: fixed; inset: 0; z-index: 30; overflow: hidden; pointer-events: none; }
.partikel div { position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 640px); background: url("../bilder/partikel.svg") 0 0 / 640px 640px repeat; will-change: transform; opacity: 0.6; }

/* Tauchcomputer */
.computer { position: fixed; z-index: 40; right: var(--rand); bottom: var(--rand); width: min(17rem, calc(100vw - 2 * var(--rand))); padding: var(--a3) var(--a3) var(--a2); border-radius: 20px;
  background: rgba(6, 36, 58, 0.9); border: 1px solid rgba(230, 246, 243, 0.32); color: var(--oben); font-family: var(--mono); font-size: var(--g-daten); font-weight: 450; font-variant-numeric: tabular-nums; transition: opacity 0.35s ease; }
.computer.weg { opacity: 0; pointer-events: none; }
.c-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: var(--a2); }
.c-kopf > span:first-child { letter-spacing: 0.08em; opacity: 0.8; }
.c-tiefe { font-size: var(--g-ueber); font-weight: 450; line-height: 1.1; }
.c-zeile { display: flex; justify-content: space-between; margin-top: var(--a2); }
.c-zeile b { font-weight: 450; }
.c-farben { list-style: none; margin: var(--a3) 0 var(--a2); padding: 0; display: flex; justify-content: space-between; }
.c-farben .f { display: grid; justify-items: center; gap: 6px; width: 3rem; font-size: var(--g-klein); }
.c-farben .f i { width: 18px; height: 18px; border-radius: 50%; background: var(--fc); box-shadow: inset 0 0 0 1.5px rgba(230, 246, 243, 0.5); }
.f0 { --fc: color-mix(in oklab, #FF3B30 calc(var(--a0) * 100%), #17425F); }
.f1 { --fc: color-mix(in oklab, #FF8A1F calc(var(--a1p) * 100%), #17425F); }
.f2 { --fc: color-mix(in oklab, #FFD21F calc(var(--a2p) * 100%), #17425F); }
.f3 { --fc: color-mix(in oklab, #3DCB5B calc(var(--a3p) * 100%), #17425F); }
.f4 { --fc: #2E8BFF; }
.c-status { margin: 0; padding-top: var(--a2); border-top: 1px solid rgba(230, 246, 243, 0.2); min-height: 2.6rem; }
.computer.lampe-an .c-status { color: var(--lampe-ton); }

/* Startbild ohne Springen: bis die Bewegung gezeichnet hat, nur der erste Bildschirm, nichts wandert */
html.js:not(.bereit) .blasen, html.js:not(.bereit) .partikel, html.js:not(.bereit) .s1, html.js:not(.bereit) .s2, html.js:not(.bereit) .s3,
html.js:not(.bereit) .s4, html.js:not(.bereit) .s5, html.js:not(.bereit) .s6, html.js:not(.bereit) .computer { visibility: hidden; }
.taucherin, .blasen { transition: opacity 0.6s ease; }
html.js:not(.foto-da) .taucherin, html.js:not(.foto-da) .blasen { opacity: 0; }

/* Ohne JavaScript: jede Station mit eigener fester Farbe, alles lesbar, kein Abstieg */
html:not(.js) .saeule { display: none; }
html:not(.js) .s1 { background: #127786; } html:not(.js) .s2, html:not(.js) .s3 { background: var(--tiefe); }
html:not(.js) .s0 { background: var(--oben); }
html:not(.js) .s4 { height: 100svh; background: var(--grund); }
html:not(.js) .lampe, html:not(.js) .glut { display: none; }
html:not(.js) .computer { display: none; }
html:not(.js) .s6-in .cta-auf { display: none; }

/* Ruhige Fassung: kein Zittern, keine Parallaxe, Stationen statt Fahrt */
html.ruhig .ebene, html.ruhig .blasen { will-change: auto; }
html.ruhig .s1 { min-height: 0; padding-bottom: 12svh; }
html.ruhig .s1-bg { --b2ramp: 12.6%; height: 175svh; width: 311svh; left: calc(72vw - 156.3svh * 1.005); }
html.ruhig .s2, html.ruhig .s3 { min-height: 0; }
html.ruhig .s4 { height: 150svh; }
html.ruhig .saeule .w { transition: opacity 0.9s ease; }
html.ruhig .s4 .hinweis-lampe { transition: none; }
html.ruhig .strahlen, html.ruhig .partikel { display: none; }

/* Flache Fenster und Handy: Computer als schmale Pille unten rechts (Tiefe und Farbpunkte), Kopfzeile ohne Menü */
@media (max-height: 560px), (max-width: 760px) {
  .computer { display: flex; align-items: center; gap: var(--a2); width: auto; padding: 10px var(--a2); border-radius: 999px; }
  .c-zeile, .c-status, .c-kopf > span:first-child, .c-farben .f span { display: none; }
  .c-kopf { display: block; }
  .c-tiefe { font-size: var(--g-text); white-space: nowrap; }
  .c-farben { margin: 0; gap: 10px; justify-content: flex-start; }
  .c-farben .f { width: auto; }
}
/* Ruhige Fassung: der Computer ist immer die schmale Pille und verdeckt so weniger */
html.ruhig .computer { display: flex; align-items: center; gap: var(--a2); width: auto; padding: 10px var(--a2); border-radius: 999px; }
html.ruhig .c-zeile, html.ruhig .c-status, html.ruhig .c-kopf > span:first-child, html.ruhig .c-farben .f span { display: none; }
html.ruhig .c-kopf { display: block; }
html.ruhig .c-tiefe { font-size: var(--g-text); white-space: nowrap; }
html.ruhig .c-farben { margin: 0; gap: 10px; justify-content: flex-start; }
html.ruhig .c-farben .f { width: auto; }
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  .s0-text { top: calc(var(--kopfh) + 4px); width: calc(100% - 2 * var(--rand)); }
  .s0-text .lead { margin-top: 4px; font-size: var(--g-klein); max-width: none; line-height: 1.35; }
  .s0-text .vertrauen { margin: 4px 0 var(--a1); }
  .s0-aktion { display: flex; flex-direction: column; gap: var(--a1); align-items: flex-start; }
  .satz-kopf { margin: 0; max-width: 30rem; font-size: var(--g-klein); line-height: 1.35; background: rgba(230, 246, 243, 0.84); box-shadow: 0 0 16px 12px rgba(230, 246, 243, 0.84); border-radius: 6px; }
  .s0-text .cta { flex: none; min-height: 48px; padding: 0 var(--a3); }
  .s4-text .hinweis-lampe { display: none; }
  .s4-text p { margin-top: var(--a2); }
  .s4-taucher, .l-taucher { left: auto; right: 8vw; height: 54svh; bottom: 6.5rem; }
  .s4-wort { display: none; }
}
@media (max-width: 760px) {
  .s5 { --s5-pt: var(--a5); }
  :root { --kopfh: 4rem; --k-tag: 50px; --k-name: 35px; --k-zahl: 39px; --k-dy: 15px; }
  .kopf-nav { display: none; }
  .cta { padding: 0 var(--a3); white-space: nowrap; font-size: var(--g-text); }
  .cta-klein { font-size: var(--g-klein); }
  .s0-text { top: calc(var(--kopfh) + var(--a2)); }
  .s0-text .lead { margin-top: var(--a2); }
  .s0-text .vertrauen { margin: var(--a2) 0; }
  .s1 { padding-top: calc(var(--ueber) + 18svh); }
  .s1-text { width: 100%; }
  .s1-bg { left: calc(80vw - 133svh * 1.005); }
  .s1-schleier { background: linear-gradient(180deg, rgba(6,36,58,0.74), rgba(6,36,58,0.84)); }
  .s1-b3 { width: 150vw; left: calc(66vw - 150vw * 0.5127); top: calc(var(--ueber) + 4svh + 118svh + 24vw); }
  .s1-wort { top: calc(var(--ueber) + 4svh + 100svh); }
  .s2 { padding-top: 22svh; }
  .s2-schleier, .s3-schleier { background: linear-gradient(180deg, rgba(11,79,122,0.78), rgba(11,79,122,0.7)); }
  .s2-text, .s3-text { width: 100%; }
  .logbuch li { grid-template-columns: 1fr auto; gap: 4px var(--a2); }
  .lz-d { grid-column: 1; } .lz-t { grid-column: 1; } .lz-p { grid-column: 2; grid-row: 1; }
  .s2-taucher { width: 92vw; right: -10vw; top: 108svh; }
  .s2-wort { top: 126svh; }
  .s3 { padding-top: 18svh; }
  .s3 { display: flex; flex-direction: column; }
  .s3-text { order: 1; }
  .s3-karte { order: 2; position: relative; right: auto; top: auto; width: 100%; margin-top: var(--a5); }
  .s3-taucher { left: auto; right: 2vw; top: 50svh; width: 34vw; z-index: 6; }
  .s3-wort { left: 8vw; top: auto; bottom: 3svh; }
  .s6-wort { display: none; }
  .s4-text { width: calc(100% - 2 * var(--rand)); }
  .s4-taucher, .l-taucher { left: auto; right: 6vw; height: 34svh; bottom: calc(var(--rand) + 8rem); }
  .s4-wort { top: 46svh; right: 2vw; }
  .logbuch-form { grid-template-columns: 1fr; }
  .s5 { padding-top: var(--a5); }
}
@media (max-width: 760px) and (max-aspect-ratio: 1/1) {
  .s2-text { margin-top: 0; }
  .s4-cta, .cta-kopie { bottom: calc(var(--rand) + 4.5rem); }
}
