/* LernNord Startseite (Entwurf). Mobile first. Tokens: ../brand/tokens.css
   Aufbau: links die Seekarte (Signatur "Nordkurs"), rechts die Inseln (Abschnitte).
   Tiefe: Ebenen (.plane) werden von assets/site.js gegeneinander verschoben. Ohne JS oder mit
   "Bewegung reduzieren" stehen sie in ihrer Ruhelage, Überdeckung, Unschärfe und Schatten bleiben. */

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

:root {
  --rail-w: 40px;
  --gutter: 16px;
  --gutter-l: 14px;
  --wrap: 1120px;
  --sec-pad: clamp(64px, 9vw, 128px);
  color-scheme: light;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ln-himmel);
  color: var(--ln-tiefsee);
  font-family: var(--ln-font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ln-sonne); color: var(--ln-tiefsee); }

img, svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

h1, h2, h3 {
  font-family: var(--ln-font-display);
  font-weight: 800;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.2rem + 4.4vw, 4rem); line-height: 1.02; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3rem); line-height: 1.06; letter-spacing: -0.01em; }
h3 { font-size: 1.22rem; font-weight: 700; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }

a { color: var(--ln-lagune-text); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: #8F2606; }

:focus-visible {
  outline: 3px solid var(--ln-tiefsee);
  outline-offset: 3px;
  border-radius: 10px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ln-tiefsee);
  color: #fff;
  font-weight: 700;
}
.skip:focus { top: 12px; color: #fff; }

.small { font-size: 0.95rem; color: var(--ln-tiefsee-soft); }

/* ------------------------------------------------------------------ Knöpfe */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 4px 28px 0;
  border: 0;
  border-radius: 16px;
  font-family: var(--ln-font-display);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ln-tiefsee);
  cursor: pointer;
  transition: transform 120ms var(--ln-ease-out), box-shadow 120ms var(--ln-ease-out), background-color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-sun { background: var(--ln-sig); color: #fff; box-shadow: 0 5px 0 var(--ln-sig-press), 0 14px 24px -12px rgba(12, 30, 51, 0.6); }
.btn-lagune { background: var(--ln-sig); color: #fff; box-shadow: 0 5px 0 var(--ln-sig-press), 0 12px 20px -12px rgba(12, 30, 51, 0.5); }  /* „Prüfen“ wie in der App */
.btn-soft { background: #fff; box-shadow: inset 0 0 0 2px #b9d3e4, 0 5px 0 #b9d3e4; }
.btn:hover { color: var(--ln-tiefsee); }
@media (hover: hover) and (pointer: fine) {
  .btn-sun:hover { background: #B8330C; color: #fff; transform: translateY(-1px); }
  .btn-lagune:hover { background: #B8330C; color: #fff; transform: translateY(-1px); }
  .btn-soft:hover { transform: translateY(-1px); }
}
.btn:active { transform: translateY(4px); }
.btn-sun:active { box-shadow: 0 1px 0 var(--ln-sig-press); }
.btn-lagune:active { box-shadow: 0 1px 0 var(--ln-sig-press); }
.btn-soft:active { box-shadow: inset 0 0 0 2px #b9d3e4, 0 1px 0 #b9d3e4; }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; }
.btn-wide { width: 100%; }

.textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--ln-lagune-text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  cursor: pointer;
}

/* ------------------------------------------------------------------ Gerüst */
.layout {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  min-height: 100vh;
}
main { min-width: 0; overflow-x: clip; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) 0 var(--gutter-l);
}

.sec {
  position: relative;
  padding: var(--sec-pad) 0;
  background: var(--sec-bg, var(--ln-himmel));
  color: var(--ln-tiefsee);
}
.sec > .wave,
.ankunft > .wave {
  position: absolute;
  left: 0; right: 0;
  top: -38px;
  width: 100%;
  height: 40px;
  fill: var(--sec-bg, var(--ln-himmel));
  pointer-events: none;
}
.sec-polar { --sec-bg: var(--ln-polar); }
.sec-himmel { --sec-bg: var(--ln-himmel); }
.sec-sand { --sec-bg: #fbeec7; }
.sec-abend { --sec-bg: var(--ln-abendlicht); }
.sec-dusk { --sec-bg: #fde7bf; background: linear-gradient(180deg, #fde7bf 0%, #f9d9a8 100%); }
.sec-dusk > .wave { fill: #fde7bf; }

/* Einblenden beim Scrollen, nur mit JS und Bewegung */
.motion .rv { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ln-ease-out), transform 700ms var(--ln-ease-out); }
.motion .rv.in { opacity: 1; transform: none; }

/* Ebenen */
.plane { will-change: transform; }

/* ------------------------------------------------------------------ Seekarte */
.rail {
  position: sticky;
  top: 0;
  z-index: 30;
  align-self: start;
  height: 100vh;
  height: 100svh;
  background: linear-gradient(0deg, #CFE7F7 0%, #E4F0F8 40%, #F2F7FA 100%);
  border-right: 2px solid rgba(22, 50, 79, 0.12);
}
.rail-list {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  height: 100%;
  margin: 0;
  padding: 0 0 10px;
  list-style: none;
}
/* Ohne JS: gepunktete Linie statt gemessener Route */
.rail-list::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 72px;
  bottom: 24px;
  border-left: 2.5px dotted rgba(61, 90, 120, 0.55);
  z-index: -1;
}
.js .rail-list::before { display: none; }

.rail a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  color: var(--ln-tiefsee);
  text-decoration: none;
  font-family: var(--ln-font-display);
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.1;
}
.rail .rl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ri { position: relative; flex: none; width: 26px; height: 18px; }
.ri svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ri-flag { opacity: 0; transform: translateY(5px) scale(0.6); transform-origin: 52% 46%; transition: opacity 260ms var(--ln-ease-out), transform 420ms var(--ln-ease-spring); }
.rail a.is-visited .ri-flag { opacity: 1; transform: none; }
.rail a[aria-current] .ri::after {
  content: "";
  position: absolute;
  inset: -7px -6px;
  border: 2.5px solid var(--ln-koralle-text);
  border-radius: 50%;
}

.rail-north { background: linear-gradient(180deg, var(--ln-nordnacht) 0%, #1A2148 100%); padding: 12px 0 10px; border-radius: 0 0 16px 16px; }
.rail-north a { color: #EEF4F8; flex-direction: column; gap: 2px; }
.rs { position: relative; width: 28px; height: 28px; }
.rs svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rs-star { fill: transparent; stroke: #EEF4F8; stroke-width: 5; stroke-linejoin: round; transition: fill 400ms ease, transform 500ms var(--ln-ease-spring); }
.rs-rays { stroke: var(--ln-sonne); stroke-width: 7; stroke-linecap: round; opacity: 0; transition: opacity 400ms ease; }
.rail.is-lit .rs-star,
.no-motion .rs-star { fill: var(--ln-sonne); stroke: var(--ln-sonne); transform: scale(1.15); }
.rail.is-lit .rs-rays { opacity: 1; }
.motion .rail.is-lit .rs-rays { animation: rays 9s linear infinite; }
@keyframes rays { to { transform: rotate(360deg); } }
.rail-north a[aria-current] .rs::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2.5px solid var(--ln-sonne);
  border-radius: 50%;
}

.rail-route {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.rr-base { fill: none; stroke: rgba(61, 90, 120, 0.55); stroke-width: 2.5; stroke-dasharray: 1 7; stroke-linecap: round; }
.rr-done { fill: none; stroke: var(--ln-koralle); stroke-width: 3.5; stroke-linecap: round; }
.rr-boat { display: none; }
.motion .rr-boat { display: block; }

/* ------------------------------------------------------------------ Hafen (Hero) */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #DDEFFC 0%, #EEF4F8 34%, #FFF3D1 66%, #FFF1D2 74%);
  overflow: clip;
}
.topbar {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter) 0 var(--gutter-l);
}
.brand { display: inline-flex; border-radius: 12px; }
.brand .logo { height: 34px; width: auto; }
.topnav { display: none; }

.hero-copy {
  position: relative;
  z-index: 5;
  padding: clamp(24px, 6vh, 64px) var(--gutter) 0 var(--gutter-l);
  max-width: 660px;
}
.hero-copy h1 { max-width: 13ch; }
.lede { margin-top: 18px; max-width: 32ch; font-size: clamp(1.1rem, 1rem + 0.45vw, 1.32rem); line-height: 1.5; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 26px; }
.hero .textlink {
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(245, 251, 255, 0.86);
  box-shadow: var(--ln-shadow-1);
}

.hero-scene {
  position: relative;
  z-index: 1;
  height: clamp(320px, 100vw, 470px);
  margin-top: 10px;
  overflow: hidden;
  pointer-events: none;
}
.stage {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 240%;
  aspect-ratio: 1440 / 900;
  translate: -73.6% 0;              /* Telefon: die Insel (x 780–1340 von 1440) steht mittig und ganz im Bild */
}
.stage .plane { position: absolute; inset: 0; }
.stage .p-sea, .stage .p-front { left: -4%; right: -4%; }
.stage .plane > svg { width: 100%; height: 100%; overflow: visible; }
.p-far { filter: blur(0.6px); opacity: 0.95; }
.p-air use[href="#s-cloud"] { filter: drop-shadow(0 10px 14px rgba(22, 50, 79, 0.14)); }

/* ------------------------------------------------------------------ Zahli (aus der Kinder-App) */
.zahli { overflow: visible; }
.zahli .z-body, .zahli .z-tuft, .zahli .z-wing, .zahli .z-scarf, .zahli .z-beak, .zahli .z-feet, .zahli .z-eye, .zahli .z-mouth {
  stroke: var(--ln-tiefsee); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round;
}
.zahli .z-body { fill: #3D7FB8; }
.zahli .z-tuft, .zahli .z-wing { fill: #2F6E9E; }
.zahli .z-belly { fill: #F2F7FA; }
.zahli .z-marks { fill: none; stroke: #A9C6DD; stroke-width: 2.4; stroke-linecap: round; }
.zahli .z-face { fill: #DDEFFC; }
.zahli .z-cheek { fill: #E05A2E; opacity: 0.35; }
.zahli .z-eye, .zahli .z-shine { fill: #fff; }
.zahli .z-pupil { fill: #1A2148; }
.zahli .z-happy, .zahli .z-brow { fill: none; stroke: #1A2148; stroke-width: 3.6; stroke-linecap: round; }
.zahli .z-brow { stroke-width: 2.8; }
.zahli .z-beak, .zahli .z-feet { fill: #F2BE44; }
.zahli .z-mouth { fill: #8F2606; }
.zahli .z-scarf { fill: #E05A2E; }
.zahli .z-hat-cone { fill: #F2BE44; stroke: #1A2148; stroke-width: 2.4; stroke-linejoin: round; }
.zahli .z-hat-band { fill: none; stroke: #E05A2E; stroke-width: 4; stroke-linecap: round; }
.zahli .z-hat-pom { fill: #E05A2E; stroke: #1A2148; stroke-width: 2.2; }
.zahli .z-think circle { fill: #fff; stroke: #1A2148; stroke-width: 2; }
.zahli .z-spark path { fill: #F2BE44; stroke: #1A2148; stroke-width: 1.6; stroke-linejoin: round; }
.zahli .z-heart { fill: #E05A2E; stroke: #1A2148; stroke-width: 2; stroke-linejoin: round; }
.zahli .z-c1 { fill: #F2BE44; } .zahli .z-c2 { fill: #E05A2E; } .zahli .z-c3 { fill: #3D7FB8; } .zahli .z-c4 { fill: #5AA84E; }

.motion .zahli .z-fig { animation: zahli-bob 4.2s ease-in-out infinite; }
.motion .zahli-denken .z-fig { animation: none; }
.motion .zahli .z-eyes { transform-box: fill-box; transform-origin: center; animation: zahli-blink 5.5s infinite; }
.motion .zahli .z-wave { transform-box: view-box; transform-origin: 96px 66px; animation: zahli-wave 5.5s ease-in-out 0.4s infinite; }
.motion .zahli-jubeln .z-fig { animation: zahli-hop 900ms var(--ln-ease-out) 150ms 1 both, zahli-bob 4.2s ease-in-out 1.2s infinite; }
.motion .zahli-feiern .z-wing-l, .motion .zahli-feiern .z-wing-r { transform-box: view-box; animation: zahli-flap 700ms ease-in-out infinite alternate; }
.motion .zahli-feiern .z-wing-l { transform-origin: 24px 66px; }
.motion .zahli-feiern .z-wing-r { transform-origin: 96px 66px; animation-direction: alternate-reverse; }
@keyframes zahli-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes zahli-blink { 0%, 92%, 100% { transform: scaleY(1); } 94% { transform: scaleY(0.08); } 96% { transform: scaleY(1); } }
@keyframes zahli-wave { 0%, 38%, 100% { transform: rotate(0deg); } 6% { transform: rotate(-16deg); } 12% { transform: rotate(6deg); } 18% { transform: rotate(-16deg); } 24% { transform: rotate(6deg); } 30% { transform: rotate(-8deg); } }
@keyframes zahli-hop { 0% { transform: translateY(0); } 30% { transform: translateY(-10px); } 55% { transform: translateY(0); } 72% { transform: translateY(-4px); } 100% { transform: translateY(0); } }
@keyframes zahli-flap { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }

/* ------------------------------------------------------------------ Worum es geht */
.worum { display: grid; gap: 40px; }
.worum-text h2 { max-width: 16ch; }
.worum-text p { margin-top: 18px; max-width: 58ch; }
.worum-text h2 + p { margin-top: 22px; }

.compass { margin: 0; display: grid; gap: 22px; justify-items: center; }
.compass-disc {
  width: 156px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 4px 0 rgba(22, 50, 79, 0.12), 0 26px 40px -22px rgba(22, 50, 79, 0.6);
}
.compass-disc svg { width: 100%; height: 100%; }
.compass-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; margin: 0; padding: 0; list-style: none; }
.cp {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 2.5px solid var(--ln-tiefsee);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(22, 50, 79, 0.14), var(--ln-edge);
  font-family: var(--ln-font-display);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.15;
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.cp-dir {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ln-tiefsee);
  color: #fff;
  font-size: 0.82rem;
  padding-top: 2px;
}
.cp-n .cp-dir { background: var(--ln-sonne); color: var(--ln-tiefsee); }

/* ------------------------------------------------------------------ Woche */
.woche-head p { margin-top: 14px; max-width: 52ch; color: var(--ln-tiefsee-soft); }
.log {
  margin-top: 36px;
  padding: 8px 18px;
  border-radius: var(--ln-radius-l);
  background: #fff;
  border: 2.5px solid var(--ln-tiefsee);
  box-shadow: 0 6px 0 rgba(22, 50, 79, 0.1), var(--ln-shadow-2);
}
.log-days { margin: 0; padding: 0; list-style: none; }
.day { display: grid; gap: 6px; padding: 16px 0; }
.day + .day { border-top: 2px dashed #c6dbe8; }
.day h3 { font-size: 1.15rem; color: var(--ln-lagune-text); }
.lane { max-width: 60ch; }
.lane-who { font-weight: 700; }
.lane.is-empty { color: var(--ln-tiefsee-soft); }

/* ------------------------------------------------------------------ Ausprobieren (Höhepunkt) */
.peak {
  --sec-bg: #EEF5FA;
  background: linear-gradient(180deg, #EEF5FA 0%, #F4F8FB 40%, #FFF6E3 100%);
  overflow-x: clip;
  padding-bottom: 0;
}
.peak-sky { position: absolute; left: 0; right: 0; top: 0; height: 300px; overflow: hidden; pointer-events: none; }
.peak-sky .plane, .peak-sky svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.peak-copy { position: relative; z-index: 2; }
.peak-copy h2 { max-width: 14ch; }
.peak-copy p { margin-top: 16px; max-width: 46ch; font-size: 1.12rem; }

.peak-world { position: relative; overflow: hidden; margin-top: 12px; padding: 128px var(--gutter) 150px var(--gutter-l); }
.pw-sea {
  position: absolute;
  left: -60px; right: -60px;
  top: 190px; bottom: 0;
  background: linear-gradient(180deg, #CFE7F7 0%, #7FB4DD 30%, #2F6E9E 100%);
}
.pw-sea::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(255, 255, 255, 0.75); }
.pw-far { position: absolute; left: 0; bottom: 100%; width: 100%; height: 48px; filter: blur(0.6px); }
.pw-isle { position: absolute; left: 0; right: 0; bottom: 40px; height: 200px; pointer-events: none; }
.pw-isle svg { position: absolute; left: 50%; bottom: 0; width: 760px; height: 100%; translate: -50% 0; }
.pw-palms { position: absolute; left: 0; right: 0; bottom: 130px; height: 0; pointer-events: none; }
.pw-palm { position: absolute; bottom: 0; }
.pw-palm-l { left: calc(50% - 250px); width: 120px; height: 160px; }
.pw-palm-r { left: calc(50% + 110px); width: 170px; height: 226px; transform: scaleX(-1); }

.task-wrap { position: relative; z-index: 3; width: min(540px, 100%); margin: 0 auto; }
.task-wrap::after {
  content: "";
  position: absolute;
  left: 6%; right: 6%;
  bottom: -26px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(22, 50, 79, 0.32), rgba(22, 50, 79, 0));
  z-index: -1;
}
.task {
  position: relative;
  padding: 22px 18px 20px;
  border: 3px solid var(--ln-tiefsee);
  border-radius: 26px;
  background-color: #fff;
  background-image: linear-gradient(#e3eef6 1px, transparent 1px), linear-gradient(90deg, #e3eef6 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -1px -1px;
  box-shadow: 0 7px 0 rgba(22, 50, 79, 0.18), var(--ln-shadow-3), var(--ln-edge);
}
.task-tag {
  display: inline-block;
  padding: 3px 12px 1px;
  border-radius: 999px;
  background: var(--ln-tiefsee);
  color: #fff;
  font-family: var(--ln-font-display);
  font-weight: 700;
  font-size: 0.85rem;
}
.task-q { margin-top: 12px; font-size: 1.2rem; }
.task-q strong { font-family: var(--ln-font-display); font-weight: 800; font-size: 1.35rem; white-space: nowrap; }

.pw-zahli { position: absolute; right: 14px; top: -104px; width: 120px; z-index: 4; pointer-events: none; }
.pw-zahli .zahli { display: none; width: 100%; height: auto; }
.pw-zahli[data-pose="denken"] .pz-denken,
.pw-zahli[data-pose="jubeln"] .pz-jubeln,
.pw-zahli[data-pose="mutmachen"] .pz-mutmachen { display: block; }

/* Rechenkästchen */
.rk { --cell: 48px; display: inline-grid; margin: 16px 0 6px; }
.rk-row { display: grid; grid-template-columns: 30px repeat(3, var(--cell)); }
.rk-c {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--cell);
  border-right: 2px solid #a9c8dc;
  border-bottom: 2px solid #a9c8dc;
  background: #fff;
  font-weight: 700;
  font-size: calc(var(--cell) * 0.56);
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}
.rk-sign { background: transparent; border: 0; justify-content: flex-end; padding-right: 6px; }
.rk-sign + .rk-c { border-left: 2px solid #a9c8dc; }
.rk-head span { display: flex; align-items: flex-end; justify-content: center; height: 24px; padding-bottom: 3px; font-size: 0.8rem; font-weight: 700; color: var(--ln-tiefsee-soft); }
.rk-head + .rk-row .rk-c:not(.rk-sign) { border-top: 2px solid #a9c8dc; }
.rk-carry .rk-c { height: calc(var(--cell) * 0.62); font-size: calc(var(--cell) * 0.36); border-bottom: 3px solid var(--ln-tiefsee); }
.rk-carry .rk-sign { border-bottom: 0; }
.rk-note { font-size: 0.75rem !important; color: var(--ln-tiefsee-soft); }
.rk-blank { background: #f1f7fb; }
.rk-in {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2346b8;
  caret-color: #2346b8;
  font: inherit;
  text-align: center;
}
.rk-in:focus { outline: none; box-shadow: inset 0 0 0 3px var(--ln-lagune); background: #F2F7FA; }
.rk-c.is-ok { background: #e6f6df; }
.rk-c.is-no { background: var(--ln-sand-flaeche); }

.task-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 12px; margin-top: 14px; }
.task-actions .btn { min-height: 50px; padding: 4px 20px 0; font-size: 1.02rem; }
.task-msg { min-height: 1.6em; margin-top: 12px; font-weight: 700; }
.task-msg.is-ok { color: var(--ln-palme-text); }
.task-msg.is-no { color: var(--ln-sand-text); }
.hints { display: grid; gap: 10px; margin-top: 8px; }
.hint {
  border: 2px dashed #b9d3e4;
  border-radius: 14px;
  background: #fffdf3;
  padding: 10px 14px;
}
.hint summary { cursor: pointer; font-family: var(--ln-font-display); font-weight: 700; }
.hint p { margin-top: 6px; }
.hint[hidden] { display: none; }
.no-js-hide { display: none; }
html:not(.js) .js-only { display: none; }

.pw-robbe { position: absolute; z-index: 5; right: -6px; bottom: 34px; width: 112px; pointer-events: none; }
.pw-robbe svg { width: 100%; height: auto; filter: drop-shadow(0 10px 10px rgba(12, 30, 51, 0.22)); }
.pw-front { position: absolute; z-index: 6; left: -60px; right: -60px; bottom: 0; height: 74px; pointer-events: none; }
.pw-front svg { width: 100%; height: 100%; }

/* ------------------------------------------------------------------ Funktionen */
#funktionen h2 { max-width: 18ch; }
.funk { display: grid; gap: 48px; margin-top: 36px; }
.album { margin: 0; }
.album-page {
  padding: 18px 14px;
  border: 3px solid var(--ln-tiefsee);
  border-radius: 28px;
  background: #fff9e8;
  box-shadow: 0 7px 0 rgba(22, 50, 79, 0.14), var(--ln-shadow-3), var(--ln-edge);
  rotate: -1.2deg;
}
.album-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sticker {
  width: 56px;
  aspect-ratio: 1;
  padding: 5px;
  border: 2.5px solid var(--ln-tiefsee);
  border-radius: 16px;
  background: #fff;
  background: color-mix(in srgb, var(--wf) 20%, #fff);
  rotate: var(--r, 0deg);
  box-shadow: 0 5px 10px -6px rgba(22, 50, 79, 0.5);
}
.sticker:nth-child(4n + 2) { scale: 1.08; box-shadow: 0 12px 18px -8px rgba(22, 50, 79, 0.55); z-index: 1; }
.sticker svg { width: 100%; height: 100%; overflow: visible; }
.album figcaption { margin-top: 26px; }
.album figcaption p { margin-top: 10px; max-width: 52ch; }

.features { display: grid; gap: 26px 32px; margin: 0; padding: 0; list-style: none; align-content: start; }
.feat { display: grid; grid-template-columns: 50px 1fr; gap: 16px; align-items: start; }
.feat h3 { font-size: 1.15rem; }
.feat p { margin-top: 4px; }
.feat-ico {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border: 2.5px solid var(--ln-tiefsee);
  border-radius: 15px;
  box-shadow: 0 4px 0 rgba(22, 50, 79, 0.18), var(--ln-edge);
}
.feat-ico svg { width: 28px; height: 28px; fill: #fff; stroke: var(--ln-tiefsee); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.feat-ico svg .fi-in { fill: none; }
.feat-ico .zahli { width: 44px; height: 42px; stroke-width: initial; fill: initial; }
.fi-lagune { background: var(--ln-lagune); }
.fi-sonne { background: var(--ln-sonne); }
.fi-koralle { background: var(--ln-koralle); }
.fi-palme { background: var(--ln-palme); }
.feat-ico:has(.zahli) { background: #E6EAF7; }

/* ------------------------------------------------------------------ Lehrkräfte */
.lehr { display: grid; gap: 28px; }
.lehr-head p { margin-top: 14px; max-width: 46ch; }
.lehr-list { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.lehr-list p { margin-top: 6px; max-width: 46ch; }
.badge {
  display: inline-block;
  vertical-align: 0.2em;
  padding: 3px 10px 1px;
  border-radius: 999px;
  background: var(--ln-tiefsee);
  color: #FFF3D1;
  font-family: var(--ln-font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
h2 .badge { font-size: 0.9rem; vertical-align: 0.45em; }
.lehr-art { width: 100%; }
.lehr-art svg { width: min(460px, 100%); height: auto; margin: 0 auto; overflow: visible; }

/* ------------------------------------------------------------------ Preise */
.preise { display: grid; gap: 40px; }
.preise-head p { margin-top: 16px; max-width: 44ch; font-size: 1.1rem; }
.plan-wrap { position: relative; padding-top: 84px; max-width: 460px; }
.plan-peek { position: absolute; top: 0; right: 30px; width: 132px; z-index: 1; }
.plan-peek svg { width: 100%; height: auto; }
.plan {
  position: relative;
  z-index: 2;
  padding: 28px 24px 26px;
  border: 3px solid var(--ln-tiefsee);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 7px 0 rgba(22, 50, 79, 0.16), var(--ln-shadow-3), var(--ln-edge);
}
.plan h3 { font-size: 1.5rem; font-weight: 800; color: var(--ln-lagune-text); }
.plan-price { margin-top: 8px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.plan-amount { font-family: var(--ln-font-display); font-weight: 800; font-size: clamp(2.8rem, 2rem + 3vw, 3.6rem); line-height: 1; }
.plan-per { font-weight: 700; font-size: 1.1rem; }
.plan-alt { margin-top: 4px; font-size: 1.1rem; }
.plan-list { margin: 22px 0 26px; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan-list li { position: relative; padding-left: 34px; }
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ln-palme) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.3 3.3L16 8' fill='none' stroke='%2316324f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  box-shadow: inset 0 0 0 2px var(--ln-tiefsee);
}

/* ------------------------------------------------------------------ Fragen */
.faq { max-width: 860px; }
.faq-list { margin-top: 28px; }
.faq details { border-bottom: 2px dashed rgba(22, 50, 79, 0.28); }
.faq summary {
  position: relative;
  display: block;
  padding: 18px 44px 18px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--ln-font-display);
  font-weight: 700;
  font-size: 1.18rem;
  line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 28px; height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--ln-tiefsee) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 8v12M8 14h12' stroke='%23fff4d2' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  transition: transform 200ms var(--ln-ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; max-width: 64ch; }

/* ------------------------------------------------------------------ Ankunft */
.ankunft {
  position: relative;
  padding-top: clamp(96px, 12vw, 150px);
  background: linear-gradient(180deg, var(--ln-nordnacht) 0%, #1A2148 100%);
  color: #fff;
  overflow-x: clip;
}
.ankunft > .wave { fill: var(--ln-nordnacht); }
.night { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.nt-stars { position: absolute; inset: 0 0 30% 0; }
.nt-stars svg { width: 100%; height: 100%; }
.nt-north { position: absolute; right: 12px; top: 16px; width: 74px; height: 74px; }
.nt-north svg { width: 100%; height: 100%; overflow: visible; }
.nt-star { fill: var(--ln-sonne); }
.nt-rays { stroke: var(--ln-sonne); stroke-width: 4; stroke-linecap: round; opacity: 0.9; }
.motion .nt-rays { transform-box: fill-box; transform-origin: center; animation: rays 14s linear infinite; }

.ankunft-copy { position: relative; z-index: 2; }
.ankunft-copy h2 { max-width: 12ch; color: #fff; }
.ankunft-copy p { margin: 16px 0 28px; max-width: 40ch; color: #EEF4F8; font-size: 1.12rem; }
.ankunft :focus-visible { outline-color: var(--ln-sonne); }

.ankunft-scene { position: relative; height: 230px; margin-top: 8px; pointer-events: none; }
.nt-sea { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; }
.nt-sea svg { width: 100%; height: 100%; }
.nt-isle { position: absolute; right: -40px; bottom: 6px; width: 340px; }
.nt-isle svg { width: 100%; height: auto; overflow: visible; }

.footer { position: relative; z-index: 2; background: #0B1024; padding: 8px 0 40px; color: #EEF4F8; }
.footer-in { display: grid; gap: 14px; }
.brand-neg .logo { height: 32px; }
.footer a { color: #EEF4F8; }
.footer a:hover { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-small { font-size: 0.9rem; color: #AEB4C8; }

/* ================================================================== Impressum, Datenschutz */
.legal-page { background: var(--ln-polar); }
.legal-top { padding: 18px 0; background: #fff; border-bottom: 1px solid #D9E3EC; }
.legal { padding: 40px 0 72px; }
.legal-wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); margin: 0 0 14px; }
.legal h2 { font-size: 1.3rem; line-height: 1.25; margin: 36px 0 10px; scroll-margin-top: 16px; }
.legal p, .legal li { line-height: 1.6; max-width: 68ch; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal-lead { font-size: 1.1rem; }
.legal-kinder { margin: 24px 0 0; padding: 16px 20px; background: #FFF1D2; border: 2px solid #E7C978; border-radius: 16px; }
.legal-kinder h2 { margin: 0 0 6px; font-size: 1.15rem; }
.legal-kinder p { margin: 0; font-size: 1.05rem; }
.legal-toc { margin: 24px 0 8px; padding: 16px 20px; background: #fff; border: 1px solid #D9E3EC; border-radius: 14px; }
.legal-toc ol { margin: 0; padding-left: 2em; columns: 2 240px; column-gap: 32px; }
.legal-toc li { margin: 2px 0; break-inside: avoid; }
.legal-table { overflow-x: auto; margin: 12px 0; }
.legal-table table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.95rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid #D9E3EC; }
.legal-table th { background: #EEF4F8; }
.legal-stand { margin-top: 40px; color: var(--ln-tiefsee-soft); font-size: 0.95rem; }
.legal-page .footer { padding-top: 24px; }

/* ================================================================== „Wir bauen noch“ (bald.html) */
.bald-page { background: #0B1024; }
.bald { position: relative; min-height: 78vh; display: grid; place-items: center; padding: 48px var(--gutter) 160px;
  background: linear-gradient(180deg, #CFEAFA 0%, #FFF4DE 78%); overflow: hidden; }
.bald-in { max-width: 640px; text-align: center; position: relative; z-index: 1; }
.bald .brand .logo { height: 44px; }
.bald h1 { margin: 28px 0 14px; }
.bald-lead { font-size: 1.15rem; line-height: 1.55; margin: 0 auto; max-width: 52ch; }
.bald-kontakt { margin-top: 18px; color: var(--ln-tiefsee-soft); }
.bald-wesen { list-style: none; display: flex; justify-content: center; gap: 18px; margin: 32px 0 0; padding: 0; }
.bald-wesen svg { width: 76px; height: 76px; animation: bald-hopp 2.8s ease-in-out infinite; }
.bald-wesen li:nth-child(2) svg { animation-delay: .4s; }
.bald-wesen li:nth-child(3) svg { animation-delay: .8s; }
.bald-meer { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; }
/* Welle und Fahrt-Spur sind 64 px links und rechts breiter als der Bildschirm: so ist die Welle auch dort
   definiert, wo das Boot ein- und ausfährt, und Spur und Welle haben immer dieselbe Breite. Weil die Welle nur
   waagrecht gestreckt wird (preserveAspectRatio="none", Höhe fest 70 px), liegt ihre Oberfläche bei x = f · Breite
   bei jeder Bildschirmbreite auf derselben Höhe in px. Darum laufen zwei gleich lange lineare Animationen synchron:
   .bald-fahrt schiebt die Spur waagrecht (translateX in % der eigenen Breite = Wellenbreite), .bald-boot hebt und
   senkt das Boot auf die Wellenhöhe an genau dieser Stelle und neigt es mit dem Hang (bald-wiegen, Stützstellen alle
   2 % aus dem Wellenpfad #s-wave berechnet; Rumpf ca. 6 px eingetaucht, Neigung höchstens 8°). */
.bald-welle { position: absolute; left: -64px; bottom: 0; width: calc(100% + 128px); height: 70px; fill: #3D7FB8; }
.bald-fahrt { position: absolute; left: -64px; bottom: 0; width: calc(100% + 128px); height: 0;
  animation: bald-segeln 18s linear infinite; }
.bald-boot { position: absolute; left: -32px; bottom: 0; width: 64px; height: 56px; transform-origin: 50% 90%;
  animation: bald-wiegen 18s linear infinite; }
@keyframes bald-hopp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes bald-segeln { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes bald-wiegen {
  0% { transform: translateY(-18.7px) rotate(-8.0deg); }
  2% { transform: translateY(-23.7px) rotate(-8.0deg); }
  4% { transform: translateY(-28.1px) rotate(-8.0deg); }
  6% { transform: translateY(-31.9px) rotate(-8.0deg); }
  8% { transform: translateY(-35.2px) rotate(-7.6deg); }
  10% { transform: translateY(-38.0px) rotate(-6.3deg); }
  12% { transform: translateY(-40.2px) rotate(-5.0deg); }
  14% { transform: translateY(-41.9px) rotate(-3.6deg); }
  16% { transform: translateY(-43.1px) rotate(-2.3deg); }
  18% { transform: translateY(-43.7px) rotate(-1.0deg); }
  20% { transform: translateY(-43.8px) rotate(0.3deg); }
  22% { transform: translateY(-43.4px) rotate(1.7deg); }
  24% { transform: translateY(-42.5px) rotate(2.9deg); }
  26% { transform: translateY(-41.1px) rotate(4.2deg); }
  28% { transform: translateY(-39.2px) rotate(5.5deg); }
  30% { transform: translateY(-36.8px) rotate(6.7deg); }
  32% { transform: translateY(-33.9px) rotate(7.9deg); }
  34% { transform: translateY(-30.5px) rotate(8.0deg); }
  36% { transform: translateY(-26.6px) rotate(8.0deg); }
  38% { transform: translateY(-22.3px) rotate(8.0deg); }
  40% { transform: translateY(-18.2px) rotate(8.0deg); }
  42% { transform: translateY(-14.5px) rotate(8.0deg); }
  44% { transform: translateY(-11.4px) rotate(7.4deg); }
  46% { transform: translateY(-8.7px) rotate(6.2deg); }
  48% { transform: translateY(-6.5px) rotate(5.0deg); }
  50% { transform: translateY(-4.7px) rotate(3.8deg); }
  52% { transform: translateY(-3.5px) rotate(2.6deg); }
  54% { transform: translateY(-2.7px) rotate(1.4deg); }
  56% { transform: translateY(-2.4px) rotate(0.2deg); }
  58% { transform: translateY(-2.6px) rotate(-1.1deg); }
  60% { transform: translateY(-3.2px) rotate(-2.3deg); }
  62% { transform: translateY(-4.4px) rotate(-3.5deg); }
  64% { transform: translateY(-6.0px) rotate(-4.7deg); }
  66% { transform: translateY(-8.1px) rotate(-5.9deg); }
  68% { transform: translateY(-10.6px) rotate(-7.1deg); }
  70% { transform: translateY(-13.7px) rotate(-8.0deg); }
  72% { transform: translateY(-17.2px) rotate(-8.0deg); }
  74% { transform: translateY(-21.2px) rotate(-8.0deg); }
  76% { transform: translateY(-25.4px) rotate(-8.0deg); }
  78% { transform: translateY(-29.2px) rotate(-8.0deg); }
  80% { transform: translateY(-32.7px) rotate(-8.0deg); }
  82% { transform: translateY(-35.9px) rotate(-7.3deg); }
  84% { transform: translateY(-38.5px) rotate(-6.1deg); }
  86% { transform: translateY(-40.7px) rotate(-4.7deg); }
  88% { transform: translateY(-42.2px) rotate(-3.0deg); }
  90% { transform: translateY(-43.0px) rotate(-1.0deg); }
  92% { transform: translateY(-42.9px) rotate(1.3deg); }
  94% { transform: translateY(-41.9px) rotate(3.9deg); }
  96% { transform: translateY(-39.9px) rotate(6.5deg); }
  98% { transform: translateY(-36.8px) rotate(8.0deg); }
  100% { transform: translateY(-32.7px) rotate(8.0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .bald-wesen svg, .bald-fahrt, .bald-boot { animation: none; }
  .bald-fahrt { transform: translateX(20%); }                          /* auf dem ersten Wellenkamm */
  .bald-boot { transform: translateY(-43.8px) rotate(0.3deg); }        /* = Stützstelle 20 % von bald-wiegen */
}

/* ================================================================== ab 600 px */
@media (min-width: 600px) {
  :root { --gutter: 28px; --gutter-l: 28px; }
  .sticker { width: 70px; }
  .album-page { padding: 24px 22px; }
  .day { grid-template-columns: 9rem 1fr 1fr; gap: 24px; align-items: baseline; }
  .log { padding: 8px 28px; }
  .task { padding: 26px 28px 24px; }
  .rk { --cell: 54px; }
  .pw-zahli { width: 140px; top: -122px; right: 26px; }
  .features { grid-template-columns: 1fr 1fr; }
}

/* ================================================================== ab 900 px: Hero nebeneinander */
@media (min-width: 900px) {
  .topnav { display: flex; gap: 4px; }
  .topnav a {
    padding: 10px 14px 8px;
    border-radius: 12px;
    color: var(--ln-tiefsee);
    text-decoration: none;
    font-family: var(--ln-font-display);
    font-weight: 700;
  }
  .topnav a:hover { background: rgba(255, 255, 255, 0.7); }
  .brand .logo { height: 42px; }
  .topbar { padding-top: 22px; }

  .hero { min-height: max(100svh, 680px); }
  .hero-copy { padding-top: clamp(28px, 7vh, 80px); }
  .hero-copy h1 { font-size: min(clamp(2.25rem, 1.2rem + 4.4vw, 4rem), 7.4vh); }
  .hero-scene { position: absolute; inset: 0; height: auto; margin: 0; overflow: visible; }
  .stage { left: auto; right: 0; width: max(100%, 160svh); translate: none; }

  .worum { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 56px; }
  .compass { position: relative; aspect-ratio: 1; width: min(440px, 100%); justify-self: center; display: block; }
  .compass-disc { position: absolute; left: 50%; top: 50%; width: 46%; translate: -50% -50%; }
  .compass-points { display: block; position: absolute; inset: 0; }
  .cp { position: absolute; max-width: 11em; }
  .cp-n { left: 50%; top: 0; translate: -50% 0; }
  .cp-s { left: 50%; bottom: 0; translate: -50% 0; }
  .cp-o { right: 0; top: 50%; translate: 0 -50%; max-width: 8.6em; }
  .cp-w { left: 0; top: 50%; translate: 0 -50%; max-width: 8.6em; }

  .peak-copy p { font-size: 1.2rem; }
  .peak-world { padding-top: 150px; }
  .pw-sea { top: 210px; }
  .pw-isle { height: 240px; }
  .pw-isle svg { width: 1040px; }
  .pw-palms { bottom: 150px; }
  .pw-palm-l { left: calc(50% - 440px); width: 150px; height: 200px; }
  .pw-palm-r { left: calc(50% + 260px); width: 200px; height: 266px; }
  .peak-world { padding-bottom: 170px; }
  .pw-robbe { right: calc(50% - 500px); bottom: 12px; width: 170px; }
  .pw-front { height: 96px; }

  .funk { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: 56px; align-items: start; }
  .album { position: sticky; top: 40px; }

  .lehr { grid-template-columns: 1fr 1fr; grid-template-areas: "head art" "list art"; align-items: start; }
  .lehr-head { grid-area: head; }
  .lehr-list { grid-area: list; }
  .lehr-art { grid-area: art; align-self: center; justify-self: center; }

  .preise { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
  .plan-wrap { justify-self: end; width: 100%; }

  .nt-north { right: 8%; top: 44px; width: 120px; height: 120px; }
  .ankunft-scene { height: 300px; margin-top: -60px; }
  .nt-isle { right: 6%; width: 460px; }
  .footer-in { grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 32px; }
  .footer-in p:first-of-type { grid-column: 1 / -1; order: 3; }
  .footer-links { justify-content: flex-end; }
  .footer-small { grid-column: 1 / -1; order: 4; }
}

/* ================================================================== ab 1100 px: Seekarte mit Namen */
@media (min-width: 1100px) {
  :root { --rail-w: 158px; --gutter: 48px; --gutter-l: 48px; }
  .rail a { justify-content: flex-start; gap: 10px; padding: 4px 8px 4px 14px; }
  .rail .rl { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .ri { width: 32px; height: 22px; }
  .rail-list::before { left: 30px; }
  .rail-north { padding: 18px 0 14px; }
  .rail-north a { flex-direction: row; gap: 12px; padding-left: 16px; }
  .rs { width: 30px; height: 30px; }
  .rail a[aria-current] .rl { color: var(--ln-koralle-text); }
  .rail-north a[aria-current] .rl { color: var(--ln-sonne); }
  @media (hover: hover) { .rail a:hover .rl { text-decoration: underline; text-underline-offset: 3px; } }
}

/* ================================================================== Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plane { will-change: auto; }
  .btn, .ri-flag, .rs-star, .faq summary::after { transition: none; }
}
