/* Benthic Odd: ein Tauchgang. Look nach Banner A „Licht von oben“: Blauschwarz, ein Lichtkegel, Meeresschnee, weit gesperrte
   DM Sans Light, der Köder in Türkis als einziger Akzent. Farben in build.py (TEXT, LEISE, KOEDER, WASSER) werden dort geprüft. */

@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-200.woff2") format("woff2"); font-weight: 200; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --text: #d9e3ea;
  --leise: #a9bccb;
  --koeder: #5fe0d0;
  --wasser: #184b63;            /* setzt site.js je Tiefe */
  --licht: 1;                   /* Lichtkegel, 1 an der Oberfläche, 0 ab 1.000 m */
  --rand: rgba(217, 227, 234, 0.16);
  --breite: min(1120px, 100% - 40px);
  --leicht: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { background: #02060c; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.ruhig { scroll-behavior: auto; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--wasser);
  font: 300 17px/1.65 "DM Sans", system-ui, sans-serif; letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--text); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--koeder); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-weight: 200; margin: 0; }
/* Umbrüche (Denis 04.12. am iPhone): Titel und Eyebrows ausgeglichen, Absätze ohne einzelnes Wort in der letzten Zeile,
   .nb hält Zahl mit Einheit und kurze Eyebrow-Teile zusammen (build.py einheiten, eyebrow) */
h1, h2, h3, .zone-tiefe, .tier-tiefe, .tier-frage-text { text-wrap: balance; }
p { text-wrap: pretty; }
.nb { white-space: nowrap; }
.sprung { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--koeder); color: #04101a; }
.sprung:focus { top: 12px; }

/* ---------- Wasser, Licht, Schnee ---------- */
.schnee { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.licht {
  position: fixed; inset: 0 0 auto 0; height: 110vh; pointer-events: none; z-index: 0; opacity: var(--licht);
  background:
    radial-gradient(42% 70% at 50% -8%, rgba(160, 214, 232, .20), transparent 70%),
    radial-gradient(18% 60% at 50% -4%, rgba(200, 236, 246, .16), transparent 70%);
}
main, .fuss, .kopf { position: relative; z-index: 1; }

/* ---------- Kopf ---------- */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 20px 12px; gap: 16px;
  background: rgba(3, 10, 18, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(217, 227, 234, .08);
  translate: 0 -100%; opacity: 0; transition: translate .5s var(--leicht), opacity .5s var(--leicht);
}
.kopf.da, html:not(.js) .kopf, .recht-seite .kopf { translate: 0 0; opacity: 1; }
.recht-seite .kopf { position: sticky; }
.kopf-marke img { width: 150px; }
.kopf-rechts { display: flex; align-items: center; gap: 14px; }
.kopf-lot { margin: 0; font-variant-numeric: tabular-nums; letter-spacing: .08em; font-size: 14px; color: var(--text); }
.kopf-lot .lot-m { color: var(--koeder); font-weight: 400; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  border-radius: 999px; background: var(--koeder); color: #04101a; text-decoration: none;
  font-weight: 400; font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
  transition: transform .2s var(--leicht), background-color .2s;
}
.knopf:hover { color: #04101a; background: #8ff0e4; transform: translateY(-1px); }
.knopf:active { transform: scale(.98); }
.knopf-hohl { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px rgba(217, 227, 234, .45); }
.knopf-hohl:hover { background: rgba(217, 227, 234, .08); color: #fff; }
.knopf-klein { min-height: 36px; padding: 0 14px; font-size: 12px; }

/* ---------- Tiefenmesser: am Handy schmale Spalte links, ab 1200 px breit mit Zahl, Fuß und Zone ---------- */
.kopf-lot { display: none; }
.lot {
  display: block; position: fixed; left: max(10px, env(safe-area-inset-left)); top: 52%; translate: 0 -50%; z-index: 10; width: 48px;
  font-variant-numeric: tabular-nums; opacity: 0; pointer-events: none; transition: opacity .6s var(--leicht);
}
.lot.da { opacity: 1; }
.lot p { margin: 0; }
.lot-label, .lot-fuss, .lot-zone { display: none; }
.lot-zahl { font-size: 14px; font-weight: 400; line-height: 1.1; color: #fff; }
.lot-zahl small { display: block; font-size: 10px; letter-spacing: .1em; color: var(--leise); }
.lot-skala { position: relative; height: 46vh; margin: 14px 0 0 4px; border-left: 1px solid var(--rand); }
.lot-skala ol { list-style: none; margin: 0; padding: 0; }
.lot-skala li { position: absolute; left: -4px; width: 7px; border-top: 1px solid rgba(217, 227, 234, .45); }
.lot-skala li span { position: absolute; left: 12px; top: -.75em; font-size: 10px; color: var(--leise); white-space: nowrap; }
.lot-skala .lang { display: none; }
.lot-punkt {
  position: absolute; left: -5px; top: 0; width: 9px; height: 9px; border-radius: 50%; background: #effffb;
  box-shadow: 0 0 0 4px rgba(95, 224, 208, .18), 0 0 18px 4px rgba(95, 224, 208, .45);
}
@media (min-width: 1200px) {
  .lot { left: 28px; top: 50%; width: 150px; }
  .lot-label { display: block; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--leise); }
  .lot-zahl { font-size: 34px; font-weight: 200; line-height: 1.15; }
  .lot-zahl small { display: inline; font-size: 16px; letter-spacing: 0; }
  .lot-fuss { display: block; font-size: 13px; color: var(--leise); }
  .lot-zone { display: block; margin-top: 6px !important; font-size: 12px; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; color: var(--koeder); min-height: 2.8em; }
  .lot-skala { height: 38vh; margin: 14px 0 0 3px; }
  .lot-skala li span { left: 14px; font-size: 11px; }
  .lot-skala .lang { display: inline; }
  .lot-skala .kurz { display: none; }
}

/* ---------- Start ---------- */
.start {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 120px 20px 110px; position: relative;
}
.start-marke img { width: min(760px, 88vw); margin: 0 auto; }

.start-zeile { font-size: clamp(22px, 3.2vw, 34px); font-weight: 200; line-height: 1.3; max-width: 22em; margin: 34px auto 0; color: #fff; }
.start-text { max-width: 34em; margin: 20px auto 0; color: var(--text); }
.start-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 34px 0 0; }
html.js:not(.ruhig) .start-marke, html.js:not(.ruhig) .start-zeile, html.js:not(.ruhig) .start-text, html.js:not(.ruhig) .start-knoepfe {
  animation: auftauchen 1.2s var(--leicht) both;
}
html.js .start-zeile { animation-delay: .25s; }
html.js .start-text { animation-delay: .45s; }
html.js .start-knoepfe { animation-delay: .6s; }
@keyframes auftauchen { from { opacity: 0; translate: 0 18px; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }

/* ---------- Tauchgang ---------- */
.tauchgang { width: var(--breite); margin: 0 auto; padding-bottom: 10vh; }
.zone { max-width: 640px; margin: 0 auto; padding: 26vh 0 12vh; text-align: center; }
.zone-klein { padding: 14vh 0 8vh; }
.zone-tiefe { margin: 0 0 10px; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--koeder); font-variant-numeric: tabular-nums; }
.zone-fuss { color: var(--leise); letter-spacing: .12em; }
.zone h2, .ende h2 { font-size: clamp(30px, 5vw, 52px); line-height: 1.12; letter-spacing: .04em; color: #fff; }
.zone-klein h2 { font-size: clamp(22px, 3vw, 30px); }
.zone-fach { display: block; margin-top: 8px; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--leise); }
.zone-text { margin: 18px auto 0; max-width: 32em; }
.quelle { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--leise); }

.tier { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; padding: 12vh 0; }
@media (min-width: 860px) {
  .tier { grid-template-columns: 1.35fr 1fr; gap: 48px; }
  .tier-rechts .tier-bild { order: 2; }
}
.tier-bild { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.tier-bild picture, .tier-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tier-bild video { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; }
/* Video erst zeigen, wenn es läuft (bis dahin das Vorschaubild darunter) */
.tier-bild video { opacity: 0; transition: opacity .8s var(--leicht); }
.tier-bild video.laeuft { opacity: 1; }
@media (max-width: 859px) { .tier-bild { aspect-ratio: 4 / 5; } }
.tier-ecken { position: absolute; inset: 10px; pointer-events: none;
  background:
    linear-gradient(var(--koeder), var(--koeder)) top left / 18px 1px no-repeat, linear-gradient(var(--koeder), var(--koeder)) top left / 1px 18px no-repeat,
    linear-gradient(var(--koeder), var(--koeder)) top right / 18px 1px no-repeat, linear-gradient(var(--koeder), var(--koeder)) top right / 1px 18px no-repeat,
    linear-gradient(var(--koeder), var(--koeder)) bottom left / 18px 1px no-repeat, linear-gradient(var(--koeder), var(--koeder)) bottom left / 1px 18px no-repeat,
    linear-gradient(var(--koeder), var(--koeder)) bottom right / 18px 1px no-repeat, linear-gradient(var(--koeder), var(--koeder)) bottom right / 1px 18px no-repeat;
  opacity: .7;
}
/* Die Lampe des Roboters findet das Tier: Lichtkreis von oben, Bild hellt auf. */
html.js:not(.ruhig) .tier-bild { clip-path: circle(0% at 50% 0%); filter: brightness(.2); transition: clip-path 1.6s var(--leicht), filter 2s var(--leicht); }
html.js:not(.ruhig) .tier.an .tier-bild { clip-path: circle(120% at 50% 0%); filter: brightness(1); }

.tier-tiefe { margin: 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--leise); }
.tier-tiefe b { font-weight: 400; color: var(--koeder); letter-spacing: .2em; }
.tier h3 { margin-top: 10px; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: .02em; color: #fff; }
.tier-art { margin: 4px 0 0; font-style: italic; color: var(--leise); }
.tier-fakt { margin: 14px 0 0; }
.tier-frage {
  display: block; margin-top: 22px; padding: 16px 18px; border-radius: 4px; text-decoration: none;
  background: rgba(11, 34, 54, .72); box-shadow: inset 0 0 0 1px var(--rand); transition: box-shadow .25s, transform .25s var(--leicht);
}
.tier-frage:hover { box-shadow: inset 0 0 0 1px rgba(95, 224, 208, .7); transform: translateY(-2px); color: var(--text); }
.tier-frage-text { display: block; font-size: 18px; line-height: 1.4; color: #fff; }
.tier-frage-text::before { content: "“"; color: var(--koeder); }
.tier-frage-text::after { content: "”"; color: var(--koeder); }
.tier-frage-los { display: block; margin-top: 8px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--koeder); }
.tier-frage-los::before { content: "▶ "; }
.tier .quelle { display: inline-block; margin-top: 14px; }

/* ---------- Grund, Schlaf, Folgen, Fragen ---------- */
.ende, .schlaf, .folgen, .fragen { width: var(--breite); max-width: 720px; margin: 0 auto; text-align: center; padding: 18vh 0 10vh; }
.ende { padding-top: 40vh; }
.schlaf h2, .folgen h2, .fragen > h2 { font-size: clamp(28px, 4vw, 40px); color: #fff; letter-spacing: .04em; }
.schlaf p, .folgen p { margin: 16px 0 0; }
.folgen-liste { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 0; margin: 26px 0 0; }
.fragen { text-align: left; }
.fragen > h2 { text-align: center; margin-bottom: 18px; }
.frage { padding: 22px 0; border-top: 1px solid var(--rand); }
.frage h3 { font-size: 20px; font-weight: 400; color: #fff; }
.frage p { margin: 8px 0 0; }

.fuss { width: var(--breite); margin: 0 auto; padding: 60px 0 calc(40px + env(safe-area-inset-bottom)); text-align: center; font-size: 14px; color: var(--leise); border-top: 1px solid var(--rand); }
.fuss p { margin: 0 0 8px; }
.fuss ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 0; margin: 16px 0 0; }
.fuss a { color: var(--leise); }

/* ---------- Auftritt beim Scrollen (Brain scroll-animationen: je Element, ease-out, kein Überschwingen) ---------- */
html.js:not(.ruhig) .auf:not(.sichtbar) { opacity: 0; translate: 0 20px; }
html.js:not(.ruhig) .auf { transition: opacity .9s var(--leicht) var(--verz, 0ms), translate .9s var(--leicht) var(--verz, 0ms); }

/* Überschriften: Wort für Wort aus der Maske (die Überschrift selbst blendet nicht, nur ihre Wörter steigen) */
.worte .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.worte .wi { display: inline-block; }
html.js:not(.ruhig) .worte.auf:not(.sichtbar) { opacity: 1; translate: none; }
html.js:not(.ruhig) .worte .wi { transition: translate 1s var(--leicht) calc(var(--verz, 0ms) + var(--i, 0) * 80ms); }
html.js:not(.ruhig) .worte:not(.sichtbar) .wi { translate: 0 112%; }

/* Videos: ziehen leicht gegen den Text (--p setzt site.js, -1 bis 1 je nach Lage im Bild) und schärfen sich nach, wenn die Lampe
   das Tier findet. 1,16-fach vergrößert: bei 338 px Höhe 27 px Puffer je Seite, mehr als die 24 px Verschiebung. */
html.js:not(.ruhig) .tier-bild picture, html.js:not(.ruhig) .tier-bild video { scale: 1.16; translate: 0 calc(var(--p, 0) * 24px); }
html.js:not(.ruhig) .tier-bild video, html.js:not(.ruhig) .tier-bild img { filter: blur(8px); transition: filter 1.8s var(--leicht) .3s, opacity .8s var(--leicht); }
html.js:not(.ruhig) .tier.an .tier-bild video, html.js:not(.ruhig) .tier.an .tier-bild img { filter: blur(0); }

/* ---------- Datenschutz ---------- */
.recht-seite { background: #06101c; }
.recht { width: var(--breite); max-width: 720px; margin: 0 auto; padding: 60px 0 40px; }
.recht h1 { font-size: 40px; color: #fff; margin-bottom: 10px; }
.recht h2 { font-size: 22px; font-weight: 400; color: #fff; margin: 34px 0 8px; }
.recht p { margin: 0 0 12px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .kopf { padding-left: 16px; padding-right: 16px; }
  .kopf-marke img { width: 118px; }
  .zone { padding: 20vh 0 8vh; }
  .tier { padding: 9vh 0; gap: 18px; }
}
/* ---------- Platz für den Tiefenmesser (steht am Ende, damit es die Grundregeln von .tauchgang und .ende überschreibt) ---------- */
@media (max-width: 1199px) {
  /* Handy und Tablet: Spalte 10 + 48 px, dann Luft */
  .tauchgang, .ende { width: auto; max-width: none; margin-left: 78px; margin-right: 16px; }
}
@media (min-width: 1200px) {
  /* Desktop: Inhalt beginnt mindestens 250 px links (Spalte endet bei 178 px), sonst zentriert; rechts mindestens 40 px Luft */
  .tauchgang { width: auto; max-width: 1040px; margin-left: max(250px, calc((100% - 1040px) / 2)); margin-right: max(40px, calc((100% - 1040px) / 2)); }
  .ende { width: auto; margin-left: max(250px, calc((100% - 720px) / 2)); margin-right: max(40px, calc((100% - 720px) / 2)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
