/* ===========================================================================
   OceanMind — „Der Abtauchgang"
   Die gesamte Seite ist ein Tauchgang: Oberfläche (0 m) oben, −40 m unten.
   EIN durchgängiges Unterwasser-Design — es gibt bewusst keinen Hell/Dunkel-
   Schalter mehr; die Tiefen-Dramaturgie (hell → dunkel) IST das Design.

   Die Hintergrundfarbe interpoliert app.js (rAF) durch DEPTH_STOPS auf dem
   fixen .ocean-Layer. Fließtext liegt deshalb IMMER auf Karten mit eigener
   Fläche; nur Überschriften liegen direkt auf dem Verlauf — die Stops sind so
   gewählt, dass der Grund ab Ende des Heros dunkel genug für helle Schrift
   ist (geprüft ≥ 4.5:1, Überschriften ≥ 3:1 gelten ohnehin erst ab 24px).

   Barrierefreiheit unverändert: rem-Schriftgrößen (Panel skaliert 100–140 %),
   data-contrast/readable/underline/motion-Zustände, RTL über logische
   Eigenschaften. Bewegung: JEDE Animation hängt an den zwei globalen Gates
   (prefers-reduced-motion + html[data-motion=off]).
   =========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter_400Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter_600SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  /* Eine Farbwelt. Heller Bereich existiert nur im Hero (Himmel). */
  --sky-a: #CDE9FF;          /* Himmel oben */
  --sky-b: #9FD4FA;          /* Himmel an der Wasserlinie */
  --sun: #FFF3D6;

  --ink: #FCFDFF;            /* Standard: helle Schrift auf Tiefe */
  --ink-muted: #C2D6EA;      /* 4.6:1 noch auf #2A6AA6, tiefer besser */
  --ink-dark: #0C2645;       /* nur im Himmel-Bereich */

  --brand: #66BAFF;
  --brand-strong: #8ACCFF;
  --brand-contrast: #06182C;

  --card: rgba(7, 24, 45, .78);       /* Glasfläche über dem Verlauf */
  --card-solid: #0A1E38;              /* High-Contrast-Ersatz */
  --card-border: rgba(163, 205, 240, .28);
  --card-border-strong: #4A7FB0;

  --danger: #F87171;
  --success: #22C55E;
  --warning: #F5B60B;

  --shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 18px 44px rgba(0, 0, 0, .35);
  --radius: 16px;
  --measure: 66ch;
  --gap: clamp(18px, 3vw, 28px);
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Wird von app.js pro Frame gesetzt (0 = Oberfläche, 1 = −40 m). */
  --depth: 0;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 100%; }
/* Textgroesse setzt das Barrierefreiheits-Panel per style.fontSize (100–140 %). */

body {
  margin: 0;
  /* Fallback-Grund, falls JS nicht laeuft — mittlere Tiefe, helle Schrift ok. */
  background: #123B63;
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Bewegungs-Gates (global) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
}

/* ---------- A11y-Zustaende ---------- */
:root[data-contrast="high"] {
  --card: var(--card-solid);
  --card-border: var(--card-border-strong);
  --ink-muted: var(--ink);
}
:root[data-contrast="high"] .card,
:root[data-contrast="high"] .try-card,
:root[data-contrast="high"] .form-card,
:root[data-contrast="high"] .a11y { border-width: 2px; }
:root[data-contrast="high"] .field input,
:root[data-contrast="high"] .field textarea,
:root[data-contrast="high"] .field select { border-width: 2px; }
/* Deko tritt zurueck, Grund wird tiefer — app.js mischt die Stops zusaetzlich dunkler. */
:root[data-contrast="high"] .rays,
:root[data-contrast="high"] .bubbles,
:root[data-contrast="high"] .creature { display: none; }

:root[data-underline="on"] a { text-decoration: underline !important; }

:root[data-readable="on"] body {
  font-family: Verdana, 'DejaVu Sans', 'Segoe UI', sans-serif;
  line-height: 1.9;
  letter-spacing: .012em;
}
:root[data-readable="on"] h1,
:root[data-readable="on"] h2,
:root[data-readable="on"] h3 { letter-spacing: 0; line-height: 1.3; }

/* ---------- Grund-Typo ---------- */
.wrap { width: min(1120px, 100% - 2 * clamp(18px, 5vw, 44px)); margin-inline: auto; }

h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -.022em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.25rem, 6.4vw, 4.125rem); }
h2 { font-size: clamp(1.625rem, 3.8vw, 2.375rem); }
h3 { font-size: 1.1875rem; letter-spacing: -.012em; }
p { margin: 0; max-width: var(--measure); }
a { color: var(--brand-strong); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  /* #A8D5FF statt --brand: auch auf dem hellsten Tiefen-Stop (#2A6AA6) >=4.5:1 */
  color: #A8D5FF; margin: 0 0 14px;
}
.section-sub { color: var(--ink-muted); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -48px; z-index: 100;
  background: var(--card-solid); color: var(--ink); border: 1px solid var(--card-border);
  border-radius: 10px; padding: 10px 16px; transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

/* ===========================================================================
   Der Ozean — fixer Hintergrund-Layer.
   app.js interpoliert backgroundColor durch die Tiefen-Stops; Lichtstrahlen
   und Blasen leben hier, hinter allem Inhalt, klick-durchlaessig.
   =========================================================================== */
.ocean {
  position: fixed; inset: 0; z-index: -1;
  background: #123B63; /* wird pro Frame ueberschrieben */
  pointer-events: none;
  overflow: hidden;
}

/* Lichtstrahlen — fallen von oben ein, verschwinden mit der Tiefe.
   Deckkraft steuert app.js ueber --rays. */
.rays { position: absolute; inset: -10% 0 0 0; opacity: var(--rays, 1); }
.rays span {
  position: absolute; top: -12%;
  width: clamp(90px, 12vw, 200px); height: 75vh;
  background: linear-gradient(to bottom, rgba(255, 250, 230, .30), rgba(255, 250, 230, 0) 82%);
  transform: skewX(-14deg);
  filter: blur(6px);
  animation: ray-sway 11s ease-in-out infinite alternate;
}
.rays span:nth-child(1) { inset-inline-start: 8%; animation-delay: 0s; }
.rays span:nth-child(2) { inset-inline-start: 30%; height: 62vh; animation-delay: -3s; opacity: .8; }
.rays span:nth-child(3) { inset-inline-start: 55%; animation-delay: -6s; }
.rays span:nth-child(4) { inset-inline-start: 78%; height: 55vh; animation-delay: -8.5s; opacity: .65; }
@keyframes ray-sway {
  from { transform: skewX(-14deg) translateX(-2.5vw); }
  to   { transform: skewX(-9deg) translateX(2.5vw); }
}

/* Blasen — steigen dauerhaft leise auf. */
.bubbles { position: absolute; inset: 0; }
.bubbles span {
  position: absolute; bottom: -30px;
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.85), rgba(255,255,255,.12) 60%, transparent 70%);
  opacity: .5;
  animation: bubble-rise 14s linear infinite;
}
.bubbles span:nth-child(1) { inset-inline-start: 6%; animation-duration: 16s; }
.bubbles span:nth-child(2) { inset-inline-start: 16%; width: 6px; height: 6px; animation-duration: 12s; animation-delay: -4s; }
.bubbles span:nth-child(3) { inset-inline-start: 27%; animation-duration: 19s; animation-delay: -9s; }
.bubbles span:nth-child(4) { inset-inline-start: 41%; width: 7px; height: 7px; animation-duration: 13s; animation-delay: -2s; }
.bubbles span:nth-child(5) { inset-inline-start: 58%; animation-duration: 17s; animation-delay: -12s; }
.bubbles span:nth-child(6) { inset-inline-start: 69%; width: 5px; height: 5px; animation-duration: 11s; animation-delay: -6s; }
.bubbles span:nth-child(7) { inset-inline-start: 82%; animation-duration: 15s; animation-delay: -1s; }
.bubbles span:nth-child(8) { inset-inline-start: 93%; width: 7px; height: 7px; animation-duration: 18s; animation-delay: -10s; }
@keyframes bubble-rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  6%   { opacity: .5; }
  50%  { transform: translateY(-52vh) translateX(10px); }
  94%  { opacity: .4; }
  100% { transform: translateY(-104vh) translateX(-6px); opacity: 0; }
}

/* Bewegung aus -> Strahlen statisch sichtbar, Blasen weg (stillstehende
   Punkte saehen wie Schmutz aus). */
html[data-motion="off"] .bubbles { display: none; }
@media (prefers-reduced-motion: reduce) { .bubbles { display: none; } }

/* ---------- Tiefenmesser (Tauchcomputer-Look) ---------- */
.depth {
  position: fixed; inset-inline: 0; top: 0; z-index: 60;
  height: 3px; background: transparent; pointer-events: none;
}
.depth__bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brand), #1D6FB8);
}
.depth__read {
  position: fixed; top: 12px; inset-inline-end: 16px; z-index: 60;
  font-size: .6875rem; font-weight: 600; letter-spacing: .1em;
  color: var(--ink); background: rgba(6, 20, 38, .72);
  border: 1px solid var(--card-border); border-radius: 999px;
  padding: 4px 12px;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none; font-variant-numeric: tabular-nums;
}
.depth__read.is-on { opacity: 1; transform: translateY(0); }

/* ---------- Kopfzeile ---------- */
.site-head {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  background: rgba(6, 20, 38, .58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(163, 205, 240, .14);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 62px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.125rem; color: var(--ink); text-decoration: none; letter-spacing: -.025em; }
.brand__logo { height: 30px; width: auto; display: block; color: var(--ink); }
.site-nav { display: flex; gap: clamp(10px, 1.8vw, 22px); font-size: .9375rem; }
.site-nav a { color: var(--ink-muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.head-right { display: flex; align-items: center; gap: 14px; }

@media (max-width: 860px) {
  .site-nav { display: none; }
}

/* Sprachwahl */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: .875rem; font-weight: 600;
  color: var(--ink); background: rgba(163, 205, 240, .10); border: 1px solid var(--card-border);
  border-radius: 999px; padding: 7px 13px; cursor: pointer;
}
.lang__list {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 70;
  min-width: 170px; display: none; flex-direction: column; padding: 6px;
  background: var(--card-solid); border: 1px solid var(--card-border); border-radius: 12px;
  box-shadow: var(--shadow);
}
.lang.is-open .lang__list { display: flex; }
.lang__list button {
  display: flex; align-items: center; gap: 8px;
  font: inherit; font-size: .90625rem; text-align: start; color: var(--ink); background: transparent;
  border: 0; border-radius: 8px; padding: 9px 11px; cursor: pointer;
}
.lang__list button:hover { background: rgba(163, 205, 240, .12); }
.lang__list button[aria-selected="true"]::after { content: '✓'; margin-inline-start: auto; }

/* ===========================================================================
   0 m — Oberflaeche + Abtauchen (Hero)
   Oben ein Streifen Himmel mit Sonne, an der Wasserlinie die Wellen,
   darunter — schon unter Wasser — das Adlerrochen-Video.
   =========================================================================== */
.hero { position: relative; }

.hero__sky {
  position: relative; height: max(30svh, 220px);
  background:
    radial-gradient(ellipse 55% 60% at 72% 88%, var(--sun), transparent 70%),
    linear-gradient(to bottom, var(--sky-a), var(--sky-b));
  overflow: hidden;
}
.hero__sun {
  position: absolute; inset-inline-end: 18%; bottom: -34px;
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, #FFF9E8 30%, rgba(255, 243, 214, .55) 55%, transparent 72%);
  animation: sun-breathe 9s ease-in-out infinite alternate;
}
@keyframes sun-breathe {
  from { transform: scale(1); opacity: .95; }
  to   { transform: scale(1.12); opacity: 1; }
}

/* Wellen an der Wasserlinie: zwei Lagen, gegenlaeufig, aus dem Logo-Motiv. */
.hero__waves {
  position: absolute; inset-inline: 0; bottom: -2px; height: 54px;
  line-height: 0; z-index: 3; pointer-events: none;
}
.hero__waves svg { display: block; width: 100%; height: 100%; }
.wave-track { transform-box: view-box; animation: wave-drift 13s linear infinite; }
.wave-track--back { animation-duration: 21s; animation-direction: reverse; opacity: .55; }
@keyframes wave-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); } /* Pfad wiederholt sich alle 25 % */
}

.hero__sea {
  position: relative; min-height: 92vh; min-height: 92svh;
  display: flex; align-items: flex-end;
  padding-block: clamp(56px, 9vw, 110px);
  overflow: hidden;
  background: #1E4A50; /* falls Video noch laedt — dunkles Teal passend zur Wasserlinie */
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
/* Fester Schleier, unabhaengig vom Videoinhalt — links (Textseite) staerker. */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg,
    rgba(3, 10, 18, .84) 0%,
    rgba(3, 10, 18, .72) 40%,
    rgba(3, 10, 18, .42) 66%,
    rgba(3, 10, 18, .16) 100%);
}
/* Weicher Uebergang an der Wasserlinie: #4BA39E ist die gemittelte Farbe der
   OBERKANTE des Videobilds (aus dem Poster gesampelt) — Wellen-Vorderlage und
   Fade greifen exakt diesen Ton auf. Liegt UEBER dem Scrim (z-index 2), damit
   die Wasserlinie ueberall buendig ist; direkt unter der Oberflaeche bleibt es
   hell (Licht dringt ein), weiter unten uebernimmt der dunkle Schleier. */
.hero__sea::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 240px; z-index: 2;
  background: linear-gradient(to bottom,
    #4BA39E 0%,
    rgba(75, 163, 158, .55) 32%,
    rgba(75, 163, 158, .2) 64%,
    rgba(75, 163, 158, 0) 100%);
  pointer-events: none;
}
[dir="rtl"] .hero__scrim {
  background: linear-gradient(-100deg,
    rgba(3, 10, 18, .84) 0%,
    rgba(3, 10, 18, .72) 40%,
    rgba(3, 10, 18, .42) 66%,
    rgba(3, 10, 18, .16) 100%);
}
.hero__inner { position: relative; z-index: 3; }

.badge-soon {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .04em;
  background: rgba(6, 20, 38, .66); color: var(--brand-strong);
  border: 1px solid var(--card-border); border-radius: 999px; padding: 6px 14px;
}
.badge-soon .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }

.hero h1 { margin-top: 20px; color: #FFFFFF; }
.hero .lede { font-size: clamp(1.125rem, 2.1vw, 1.375rem); margin-top: 22px; color: #E4EEF7; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--brand-contrast); box-shadow: var(--shadow); }
.btn-outline { background: rgba(6, 20, 38, .35); color: #FFFFFF; border: 1px solid rgba(255, 255, 255, .55); }

/* Kennzahlen als Tauchcomputer-Konsole */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: clamp(34px, 5vw, 56px);
  background: rgba(6, 20, 38, .62);
  border: 1px solid var(--card-border); border-radius: var(--radius);
  overflow: hidden;
}
.stat { padding: 16px 18px; border-inline-start: 1px solid rgba(163, 205, 240, .16); }
.stat:first-child { border-inline-start: 0; }
.stat__num {
  display: block; font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 600; letter-spacing: -.03em;
  color: var(--brand-strong); font-variant-numeric: tabular-nums;
}
.stat__lbl { font-size: .8125rem; color: var(--ink-muted); }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(163, 205, 240, .16); }
}

/* Abtauch-Hinweis unten im Hero */
.hero__dive {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  color: #CFE1F0; font-size: .875rem; text-decoration: none;
}
.hero__dive svg { animation: dive-bob 2.2s ease-in-out infinite; }
@keyframes dive-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ===========================================================================
   Sektionen — schweben transparent ueber dem Ozean-Layer.
   =========================================================================== */
section { position: relative; padding-block: clamp(72px, 11vw, 130px); overflow: hidden; }
.section-head { position: relative; z-index: 2; margin-bottom: clamp(28px, 4vw, 44px); }

/* Tiefen-Chip neben der Eyebrow */
.zone {
  display: inline-block; margin-inline-start: 10px;
  font-size: .6875rem; font-weight: 600; letter-spacing: .1em;
  color: var(--ink-muted); border: 1px solid var(--card-border);
  border-radius: 999px; padding: 2px 10px; vertical-align: 2px;
  font-variant-numeric: tabular-nums;
}

/* Kreaturen (Manta, Taucher, Fische) — immer dekorativ */
.creature {
  position: absolute; z-index: 0; pointer-events: none;
  filter: brightness(0) invert(1); opacity: .13;
}
[dir="rtl"] .creature--flip { transform: scaleX(-1); }

/* Einblenden beim Scrollen (Stagger ueber data-i statt Inline-Style — CSP) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-i="1"] { transition-delay: 90ms; }
.reveal[data-i="2"] { transition-delay: 180ms; }
.reveal[data-i="3"] { transition-delay: 270ms; }
.reveal[data-i="4"] { transition-delay: 360ms; }
.reveal[data-i="5"] { transition-delay: 450ms; }
.reveal[data-i="6"] { transition-delay: 540ms; }
.reveal[data-i="7"] { transition-delay: 630ms; }

/* ---------- −6 m: Jetzt testen ---------- */
.fish-school { position: absolute; top: 6%; inset-inline-start: -160px; width: 150px; z-index: 0; pointer-events: none; opacity: .35; }
.fish-school svg { display: block; width: 100%; height: auto; }
/* Der Schwarm zieht durch, sobald die Sektion einmal sichtbar war. */
#testen.is-seen .fish-school { animation: school-cross 34s linear infinite; }
@keyframes school-cross {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 340px)); }
}
[dir="rtl"] #testen.is-seen .fish-school { animation-name: school-cross-rtl; }
@keyframes school-cross-rtl {
  from { transform: translateX(0) scaleX(-1); }
  to   { transform: translateX(calc(-100vw - 340px)) scaleX(-1); }
}
.fish-school .f { animation: fish-bob 3.4s ease-in-out infinite; transform-origin: center; }
.fish-school .f:nth-child(2n) { animation-delay: -1.2s; }
.fish-school .f:nth-child(3n) { animation-delay: -2.1s; }
@keyframes fish-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

.try-grid { position: relative; z-index: 2; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.try-card {
  display: flex; flex-direction: column; gap: 9px;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 26px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.try-card:hover { transform: translateY(-5px); border-color: var(--brand); }
/* Karte fuer das erkannte Betriebssystem (initBeta setzt sie zusaetzlich im DOM nach vorn). */
.try-card--primary { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset, var(--shadow); }

/* ---------- In-App-Browser-Hinweis (Instagram/TikTok) ----------
   Keine Reveal-Animation: der Hinweis muss sofort dastehen, sonst laedt
   jemand die APK, bevor er ihn gelesen hat. Nur logische Properties (RTL),
   keine festen Hoehen (Schriftskalierung bis 140 %). */
.inapp {
  position: relative; z-index: 2;
  display: flex; gap: 14px; align-items: flex-start;
  margin-block-end: var(--gap);
  padding: clamp(14px, 3vw, 20px);
  border-radius: 18px;
  border: 1px solid var(--brand);
  background: rgba(79, 156, 212, .12);
}
.inapp__icon { flex: none; width: 22px; height: 22px; margin-block-start: 2px; color: var(--brand); }
/* Android zeigt das Menue senkrecht (drei Punkte uebereinander). */
.inapp--android .inapp__icon { transform: rotate(90deg); }
.inapp__body { min-width: 0; }
.inapp__title { font-weight: 600; margin: 0 0 4px; }
.inapp__text { margin: 0; color: var(--ink-muted); }
.inapp__btn {
  display: inline-block; margin-block-start: 12px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--brand); color: var(--brand-contrast); font-weight: 600; text-decoration: none;
}
.inapp__btn:hover { filter: brightness(1.08); }
.inapp__hint { margin: 10px 0 0; font-size: .9rem; color: var(--ink-muted); }
.try-card__logo { width: 30px; height: 30px; color: var(--brand-strong); }
.try-card__kicker { font-size: .75rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-muted); }
.try-card__title { font-size: 1.3125rem; font-weight: 600; line-height: 1.25; }
.try-card__note { font-size: .9375rem; color: var(--ink-muted); line-height: 1.6; }
.try-card__cta { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--brand-strong); }

.howto {
  position: relative; z-index: 2; margin-top: var(--gap);
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
}
.howto summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none;
}
.howto summary::-webkit-details-marker { display: none; }
.howto summary svg { width: 18px; height: 18px; transition: transform .25s var(--ease); flex: none; }
.howto[open] summary svg { transform: rotate(180deg); }
.howto__body { padding: 0 22px 20px; }
.howto__body ol { margin: 12px 0 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 9px; }
.howto__why, .howto__hint { font-size: .9375rem; color: var(--ink-muted); line-height: 1.65; }
.howto__hint { margin-top: 16px; }

/* ---------- −12 m: Funktionen ---------- */
.deco-manta {
  /* Vollstaendige Silhouette — nicht mehr ueber den Rand bluten lassen,
     sonst wirkt sie wieder abgeschnitten. */
  top: 6%; inset-inline-end: 14px; width: min(380px, 40vw);
  animation: manta-glide 26s ease-in-out infinite alternate;
}
@keyframes manta-glide {
  from { transform: translate(0, 0) rotate(-2deg); }
  to   { transform: translate(-7vw, 34px) rotate(3deg); }
}
[dir="rtl"] .deco-manta { animation-name: manta-glide-rtl; }
@keyframes manta-glide-rtl {
  from { transform: scaleX(-1) translate(0, 0) rotate(-2deg); }
  to   { transform: scaleX(-1) translate(-7vw, 34px) rotate(3deg); }
}

.cards { position: relative; z-index: 2; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--brand); }
.card .ico { width: 30px; height: 30px; color: var(--brand-strong); transition: transform .3s var(--ease); }
.card:hover .ico { transform: translateY(-3px) scale(1.08); }
.card p { font-size: .96875rem; color: var(--ink-muted); }

/* ---------- −18 m: Die App (Screenshots folgen) ---------- */
.phones {
  position: relative; z-index: 2;
  display: flex; justify-content: center; gap: clamp(14px, 3vw, 34px);
  flex-wrap: wrap;
}
.phone {
  width: clamp(190px, 22vw, 240px); aspect-ratio: 9 / 19;
  border-radius: 34px; padding: 10px;
  background: #050E1A; border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}
.phone:nth-child(1) { transform: rotate(-4deg) translateY(10px); }
.phone:nth-child(3) { transform: rotate(4deg) translateY(10px); }
.phone__screen {
  position: relative; width: 100%; height: 100%; border-radius: 25px; overflow: hidden;
  background: linear-gradient(160deg, #0C2645, #071830);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
/* Echte App-Screenshots bekommen spaeter class="phone__shot" */
.phone__screen .phone__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone__notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 42%; height: 16px; border-radius: 10px; background: #050E1A;
}
.phone__logo { width: 84px; height: auto; filter: brightness(0) invert(1); opacity: .45; }
.phone__hint { font-size: .75rem; color: rgba(163, 205, 240, .55); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- −26 m: Sicherheit (dunkelste Zone) ---------- */
#sicherheit .section-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; opacity: .5;
}
#sicherheit .section-video-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(3, 10, 18, .82), rgba(3, 10, 18, .55) 50%, rgba(3, 10, 18, .85));
}
#sicherheit .section-head, #sicherheit .safety { z-index: 2; }

.deco-diver {
  /* Lampe + Lichtkegel sind Teil der Grafik — der Kegel zeigt nach unten
     links zur Warnkarte, die linke Kegelkante laeuft im Alpha weich aus. */
  bottom: 6%; inset-inline-end: 3%; width: min(560px, 46vw); opacity: .3; z-index: 1;
  animation: torch-flicker 7s ease-in-out infinite alternate;
}
/* Das Flackern moduliert die Gesamt-Deckkraft der Taucher-Grafik —
   der eingebaute Lichtkegel pulsiert dadurch mit. */
@keyframes torch-flicker {
  from { opacity: .24; }
  to   { opacity: .32; }
}

.safety {
  position: relative;
  background: var(--card); border: 2px solid var(--warning); border-radius: var(--radius);
  padding: 26px 28px; max-width: 760px; box-shadow: var(--shadow);
}
.safety p { max-width: none; }
.safety strong { color: var(--warning); }
.safety .body { margin-top: 14px; font-size: .96875rem; color: var(--ink-muted); }

/* ---------- −34 m: Kontakt ---------- */
.form-card {
  position: relative; z-index: 2;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px); max-width: 640px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .90625rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: rgba(6, 20, 38, .55); border: 1px solid var(--card-border); border-radius: 10px;
  padding: 12px 14px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .90625rem; margin-bottom: 22px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 17px; font-size: .9375rem; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: var(--success); }
.form-msg.err { color: var(--danger); }

/* Aufsteigender Taucher neben dem Kontaktformular — Ende des Tauchgangs.
   Die vertikale Bewegung steuert app.js pro Frame ueber --ascent (0..1):
   je weiter die Sektion durchscrollt ist, desto hoeher steigt er. */
.deco-ascent {
  top: 46%; inset-inline-end: 5%; width: min(340px, 32vw); opacity: .17;
  transform: rotate(-22deg) translateY(calc((1 - var(--ascent, 0)) * 220px - 110px));
  will-change: transform;
}
[dir="rtl"] .deco-ascent {
  transform: scaleX(-1) rotate(-22deg) translateY(calc((1 - var(--ascent, 0)) * 220px - 110px));
}
@media (max-width: 900px) { .deco-ascent { display: none; } }

/* ---------- −40 m: Fusszeile ---------- */
.site-foot {
  position: relative; padding-block: 54px 40px;
  border-top: 1px solid rgba(163, 205, 240, .14);
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 24px 44px; justify-content: space-between; align-items: flex-start; }
.site-foot .cols { display: flex; flex-wrap: wrap; gap: 22px 40px; }
.site-foot a { color: var(--ink-muted); text-decoration: none; font-size: .9375rem; }
.site-foot a:hover { color: var(--brand-strong); text-decoration: underline; }
.site-foot .copy { font-size: .875rem; color: var(--ink-muted); }
.site-foot .brand__logo { height: 24px; }

/* ---------- Rechtstexte / Unterseiten ---------- */
.legal { padding-top: clamp(100px, 14vw, 150px); padding-bottom: clamp(60px, 8vw, 100px); }
.legal h1 { font-size: clamp(1.875rem, 4.6vw, 3rem); }
.legal h2 { font-size: 1.375rem; margin-top: 40px; }
.legal h3 { font-size: 1.0625rem; margin-top: 28px; }
.legal .doc { margin-top: 26px; }
.legal p, .legal li { font-size: 1rem; }
.legal p { margin: 12px 0; max-width: var(--measure); }
.legal ul, .legal ol { padding-inline-start: 22px; }
.legal address { font-style: normal; margin: 10px 0; }
.legal table { border-collapse: collapse; width: 100%; min-width: 540px; font-size: .9375rem; }
.legal .table-scroll { overflow-x: auto; }
.legal th, .legal td { text-align: start; padding: 11px 14px; border-bottom: 1px solid rgba(163, 205, 240, .2); vertical-align: top; }
.legal th { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.legal .todo, .legal .hinweis {
  background: rgba(245, 182, 11, .12); border-inline-start: 3px solid var(--warning);
  padding: 15px 17px; margin: 20px 0; font-size: .9375rem; border-radius: 0 10px 10px 0;
}
.updated { font-size: .875rem; color: var(--ink-muted); margin-top: 32px; }
.lang-note { font-size: .90625rem; color: var(--ink-muted); border-inline-start: 3px solid var(--card-border-strong); padding-inline-start: 14px; margin-bottom: 26px; }

/* ---------- Schwebende Bedienelemente ---------- */
.fab {
  position: fixed; bottom: 24px; z-index: 55;
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card-solid); color: var(--brand-strong);
  border: 1px solid var(--card-border-strong); box-shadow: var(--shadow);
  cursor: pointer; font-family: inherit;
  transition: transform .25s var(--ease);
}
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab--a11y { inset-inline-start: 24px; }
.fab svg { width: 25px; height: 25px; }

/* ---------- Barrierefreiheits-Panel ---------- */
.a11y {
  position: fixed; bottom: 88px; inset-inline-start: 24px; z-index: 56;
  width: min(330px, calc(100vw - 48px));
  background: var(--card-solid); border: 1px solid var(--card-border-strong); border-radius: 16px;
  box-shadow: var(--shadow); padding: 18px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.a11y.is-open { opacity: 1; transform: none; }
.a11y__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.a11y h2 { font-size: 1rem; }
.a11y__close {
  display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center;
  background: transparent; color: var(--ink); border: 1px solid transparent; border-radius: 8px; cursor: pointer;
}
.a11y__close:hover { border-color: var(--card-border); }
.a11y__close svg { width: 18px; height: 18px; }
.a11y__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .90625rem; padding-block: 9px; }
.a11y__steps { display: flex; align-items: center; gap: 8px; }
.a11y__steps button {
  width: 34px; height: 34px; font: inherit; font-weight: 600; color: var(--ink);
  background: rgba(163, 205, 240, .1); border: 1px solid var(--card-border); border-radius: 8px; cursor: pointer;
}
.a11y__steps button:disabled { opacity: .4; cursor: default; }
.a11y__scale { min-width: 4.2em; text-align: center; font-size: .84375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.switch {
  position: relative; width: 46px; height: 26px; flex: none;
  background: rgba(163, 205, 240, .18); border: 1px solid var(--card-border); border-radius: 999px;
  cursor: pointer; transition: background-color .2s var(--ease);
}
.switch::after {
  content: ''; position: absolute; top: 2px; inset-inline-start: 2px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--ink);
  transition: transform .2s var(--ease);
}
.switch[aria-checked="true"] { background: var(--brand); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
[dir="rtl"] .switch[aria-checked="true"]::after { transform: translateX(-20px); }
.a11y__reset {
  margin-top: 10px; width: 100%; font: inherit; font-size: .875rem; color: var(--brand-strong);
  background: transparent; border: 1px solid var(--card-border); border-radius: 10px;
  padding: 9px; cursor: pointer;
}
.a11y__reset:hover { border-color: var(--brand); }

/* ---------- RTL-Feinheiten ---------- */
[dir="rtl"] .stat__num { direction: ltr; unicode-bidi: embed; }
[dir="rtl"] .zone { direction: ltr; unicode-bidi: embed; }

/* ---------- Tiefe Sektionen erst rendern, wenn noetig ---------- */
#sicherheit, #kontakt, .site-foot { content-visibility: auto; contain-intrinsic-size: auto 700px; }

/* ---------- Unterseiten (Support/Rechtstexte/404) ----------
   Kein Ozean-Layer, kein Tiefen-Drama — ein ruhiger, statisch dunkler Grund
   in derselben Farbwelt. Weisser Text auf #0C2645: 12,6:1. */
body.subpage {
  background: linear-gradient(180deg, #144066 0%, #0C2645 34%, #071830 100%);
  background-attachment: scroll;
  min-height: 100vh;
}
