/*
 * WattAPP landing page. Same design language as the app ("Seekarte & Queller",
 * wattapp-web/src/styles/tokens.css): Priel ink, Wattblau paper, Sand panels, Queller lime for the
 * one main action, oystercatcher red only as a rare accent. Mobile first; everything in rem so
 * browser zoom and the OS text size scale the whole page.
 */

/* ---------- fonts (self-hosted, OFL; no requests to third parties) ---------- */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('../fonts/atkinson-hyperlegible-next-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('../fonts/atkinson-hyperlegible-next-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('../fonts/atkinson-hyperlegible-next-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-latin-600-italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --priel: #0d3b47;
  --priel-ink: #0a2f39;
  --wattblau: #dcebee;
  --schlick: #5e5a52;
  --queller: #c4d600;
  --queller-tief: #a9b800;
  --sand: #efe6cf;
  --sand-hell: #f7f2e3;
  --austernfischer: #e4472b;
  --wasser: #77d2f3;

  --c-bg: var(--wattblau);
  --c-text: var(--priel);
  --c-muted: var(--schlick);
  --c-surface: var(--sand);
  --c-surface-2: var(--sand-hell);
  --c-line: var(--schlick);
  --c-primary: var(--queller);
  --c-on-primary: var(--priel);
  --c-focus: var(--priel);
  --c-focus-halo: #fff;
  --c-link: var(--priel);

  --font-ui: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;

  --fs-sm: 0.889rem;
  --fs-md: 1.222rem;
  --fs-lg: 1.556rem;
  --fs-xl: clamp(2rem, 1.4rem + 2.6vw, 2.8rem);
  --fs-hero: clamp(2.6rem, 1.6rem + 5.2vw, 4.9rem);
  --measure: 38rem;

  --s-2: 0.444rem;
  --s-3: 0.667rem;
  --s-4: 0.889rem;
  --s-5: 1.333rem;
  --s-6: 1.778rem;
  --s-7: 2.667rem;
  --s-8: 3.556rem;
  --s-9: 5rem;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --bw: 2px;
  --shadow-solid: 0 3px 0 var(--priel);
  --tap: max(48px, 2.667rem);
  --page: 70rem;
  --gutter: clamp(1.1rem, 0.6rem + 3vw, 2.5rem);
  --focus-ring: 0 0 0 3px var(--c-focus), 0 0 0 6px var(--c-focus-halo);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-size: 112.5%; /* 18 px, scales with the browser's text size */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-wrap: break-word;
  hyphens: auto;
  /* only split long words (Gebärdensprache), never WattAPP or Browser */
  hyphenate-limit-chars: 12 5 5;
  -webkit-hyphenate-limit-before: 5;
  -webkit-hyphenate-limit-after: 5;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
img,
video {
  height: auto;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  text-wrap: balance;
  hyphens: manual;
}
h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: var(--fs-xl);
  letter-spacing: 0.005em;
}
h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.25;
}
p,
ul,
ol,
dl,
figure {
  margin: 0;
}
p + p {
  margin-top: var(--s-4);
}
a {
  color: var(--c-link);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 3px;
}
strong {
  font-weight: 700;
}
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 7px var(--c-focus-halo);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.icon {
  flex: none;
  width: 1.3em;
  height: 1.3em;
}

/* skip link */
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  background: var(--queller);
  color: var(--priel);
  font-weight: 700;
}
.skip-link:focus {
  top: var(--s-4);
}

/* layout */
.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--s-8);
}
.section__head {
  max-width: var(--measure);
  margin-bottom: var(--s-6);
}
.section__head p {
  margin-top: var(--s-4);
  font-size: var(--fs-md);
  line-height: 1.45;
}
.prose {
  max-width: var(--measure);
}
.prose > h2 + p,
.lead {
  margin-top: var(--s-5);
}
.lead {
  max-width: var(--measure);
  font-size: var(--fs-md);
  line-height: 1.45;
}
.on-dark .lead {
  color: var(--c-muted);
}
.section--follow {
  padding-top: 0;
}
.project__aside h3 + p {
  margin-top: var(--s-3);
}

/* dark surfaces */
.on-dark {
  --c-text: #fff;
  --c-muted: #d5e6ea;
  --c-link: #fff;
  --c-focus: var(--queller);
  --c-focus-halo: var(--priel);
  background: var(--priel);
  color: #fff;
}

/* tide line between sections (the app's "waterline") */
.tideline {
  position: relative;
}
.tideline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 14px;
  background: var(--tide-next, var(--c-bg));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='12' viewBox='0 0 44 12'%3E%3Cpath d='M0 12V7C7 7 8 1 11 1s4 6 11 6 8-6 11-6 4 6 11 6v5z'/%3E%3C/svg%3E") 0 100% / 44px 12px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='12' viewBox='0 0 44 12'%3E%3Cpath d='M0 12V7C7 7 8 1 11 1s4 6 11 6 8-6 11-6 4 6 11 6v5z'/%3E%3C/svg%3E") 0 100% / 44px 12px repeat-x;
  pointer-events: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: var(--tap);
  padding: 0.55em 1.2em;
  border: var(--bw) solid var(--priel);
  border-radius: var(--r-md);
  background: var(--sand-hell);
  color: var(--priel);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}
.btn:hover {
  background: var(--sand);
}
.btn--primary {
  background: var(--queller);
  color: var(--priel);
  box-shadow: var(--shadow-solid);
}
.btn--primary:hover {
  background: var(--queller-tief);
}
.btn--primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--priel);
}
.on-dark .btn--primary {
  box-shadow: 0 3px 0 var(--priel-ink);
}
.btn--big {
  min-height: 3.4rem;
  padding: 0.65em 1.5em;
  font-size: var(--fs-md);
  border-radius: var(--r-lg);
}
.on-dark .btn--ghost {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.on-dark .btn--ghost:hover {
  background: rgb(255 255 255 / 0.12);
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  padding-block: var(--s-4);
}
.topbar__brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  border-radius: var(--r-sm);
}
.topbar__brand img {
  width: clamp(7rem, 4.5rem + 9vw, 11rem);
}
.topbar__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  padding: 0;
  list-style: none;
}
.topbar__nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: var(--tap);
  padding-inline: 0.25rem;
  font-weight: 700;
  text-decoration-color: transparent;
}
.topbar__nav a:hover {
  text-decoration-color: currentColor;
}
.topbar__nav .is-section {
  display: none;
}
@media (min-width: 56rem) {
  .topbar__nav .is-section {
    display: list-item;
  }
}

/* ---------- hero ---------- */
.hero {
  --tide-next: var(--sand);
  padding-bottom: var(--s-7);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: var(--s-6);
  align-items: end;
  padding-top: var(--s-5);
}
.hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: var(--fs-hero);
  line-height: 0.98;
  letter-spacing: -0.005em;
  max-width: 13ch;
}
.hero__lead {
  max-width: 34rem;
  margin-top: var(--s-5);
  font-size: var(--fs-md);
  line-height: 1.45;
  color: var(--c-muted);
}
.hero__lead strong {
  color: #fff;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-5);
  margin-top: var(--s-6);
}
.hero__note {
  margin-top: var(--s-4);
  max-width: 30rem;
  color: var(--c-muted);
}
.hero__ikke {
  position: relative;
  display: grid;
  justify-items: center;
  align-self: end;
  margin-bottom: calc(-1 * var(--s-7) - 4px); /* feet on the tide line */
}
.hero__ikke img {
  width: auto;
  height: clamp(18rem, 58vh, 34rem);
}
.bubble {
  position: relative;
  justify-self: start;
  max-width: 15rem;
  margin-bottom: var(--s-4);
  z-index: 1;
  padding: var(--s-3) var(--s-4);
  border: var(--bw) solid var(--priel);
  border-radius: var(--r-lg);
  background: #fff;
  color: var(--priel);
  font-weight: 700;
  line-height: 1.35;
}
.bubble::after {
  /* tail pointing to IKKE */
  content: '';
  position: absolute;
  left: 58%;
  bottom: -12px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-right: var(--bw) solid var(--priel);
  border-bottom: var(--bw) solid var(--priel);
  transform: rotate(45deg);
}
@media (prefers-reduced-motion: no-preference) {
  .bubble {
    animation: bubble-in 600ms var(--ease-out) 350ms both;
  }
  @keyframes bubble-in {
    from {
      opacity: 0;
      transform: translateY(8px) scale(0.96);
    }
  }
}

/* phones: IKKE next to the headline, small, so the button stays in the first screen */
@media (max-width: 47.99rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'text ikke' 'more more';
    align-items: start;
  }
  .hero__text {
    display: contents;
  }
  .hero__intro {
    grid-area: text;
  }
  .hero__ikke {
    grid-area: ikke;
    align-self: start;
    margin-bottom: 0;
  }
  .hero__ikke img {
    height: 9.5rem;
  }
  .hero__ikke .bubble {
    display: none;
  }
  .hero__more {
    grid-area: more;
  }
  .hero__lead {
    margin-top: var(--s-4);
  }
}
@media (min-width: 48rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    padding-top: var(--s-6);
  }
  /* bubble beside IKKE's head */
  .hero__ikke .bubble {
    position: absolute;
    top: 6%;
    right: 62%;
    width: max-content;
    max-width: 14rem;
  }
  .hero__ikke .bubble::after {
    left: auto;
    right: -12px;
    bottom: auto;
    top: 40%;
    transform: rotate(-45deg);
  }
}

/* "on the phone?" QR panel, only shown on big screens with a mouse (site.js) */
.qr {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-4);
  align-items: center;
  max-width: 24rem;
  margin-top: var(--s-6);
  padding: var(--s-4);
  border: var(--bw) solid rgb(255 255 255 / 0.55);
  border-radius: var(--r-md);
}
.qr[hidden] {
  display: none;
}
.qr__code {
  width: 7.5rem;
  height: 7.5rem;
  padding: 6px;
  border-radius: var(--r-sm);
  background: #fff;
}
.qr__code svg {
  width: 100%;
  height: 100%;
}
.qr p {
  font-size: var(--fs-sm);
}

/* ---------- funders band (directly below the first screen, as the funders require) ---------- */
.funding {
  --tide-next: var(--c-bg);
  background: var(--sand);
  padding-block: var(--s-5) var(--s-6);
}
.funding__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-7);
}
.funding h2 {
  font-family: var(--font-ui);
  font-style: normal;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0;
}
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-6);
  padding: 0;
  list-style: none;
}
.logos li {
  display: grid;
  place-items: center;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  background: #fff;
}
.logos img {
  width: auto;
  height: 4.6rem;
}
.logos .logo--wide img {
  height: 1.9rem;
}
.funding__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-4);
}

/* ---------- stations: chart + list ---------- */
.stations {
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 60rem) {
  .stations {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
  }
}
.chart {
  position: relative;
  border: var(--bw) solid var(--priel);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--wasser);
  aspect-ratio: 1.0644;
}
.chart img {
  width: 100%;
}
.chart-fig figcaption {
  margin-top: var(--s-3);
  color: var(--c-muted);
  font-size: var(--fs-sm);
}
.buoy {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin: -1rem 0 0 -1rem;
  border: var(--bw) solid var(--priel);
  border-radius: 50%;
  background: var(--queller);
  color: var(--priel);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: 0 0 0 3px rgb(255 255 255 / 0.9);
}
.station-list {
  display: grid;
  gap: var(--s-3);
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.station {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-2) var(--s-4);
  align-items: center;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--sand-hell);
  border: 1px solid rgb(13 59 71 / 0.18);
}
.station__icon {
  position: relative;
  width: 3.4rem;
  height: 3.4rem;
}
.station__icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: var(--bw) solid var(--priel);
}
.station__num {
  position: absolute;
  left: -0.45rem;
  top: -0.45rem;
  display: grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--priel);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.station h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.05;
}
.station p {
  color: var(--c-muted);
  font-size: var(--fs-sm);
  line-height: 1.4;
}
.station__text {
  display: grid;
  gap: 0.2rem;
}

/* ---------- film ---------- */
.film {
  --tide-next: var(--c-bg);
}
.film__grid {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
@media (min-width: 60rem) {
  .film__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}
.film video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  background: #000;
  border: var(--bw) solid #fff;
}
.film__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-4);
  padding: 0;
  list-style: none;
  color: var(--c-muted);
  font-size: var(--fs-sm);
}
.film__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

/* transcript / FAQ disclosure */
details {
  border-radius: var(--r-md);
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--tap);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary .icon {
  transition: transform 160ms var(--ease-out);
}
details[open] > summary .icon {
  transform: rotate(180deg);
}
.transcript {
  margin-top: var(--s-5);
  border: var(--bw) solid rgb(255 255 255 / 0.6);
}
.transcript__body {
  padding: 0 var(--s-4) var(--s-4);
  max-width: var(--measure);
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  gap: var(--s-6);
  padding: 0;
  list-style: none;
}
@media (min-width: 52rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-5);
  }
}
.step {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: var(--s-4);
}
.step__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.step__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border: var(--bw) solid var(--priel);
  border-radius: 50%;
  background: var(--queller);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
}
.step h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.05;
}
/* desktop: the three steps share one row grid, so the phones start and end at the same height */
@media (min-width: 52rem) {
  @supports (grid-template-rows: subgrid) {
    .step {
      grid-row: span 3;
      grid-template-rows: subgrid;
    }
  }
}
.phone {
  /* only as tall as the screenshot (the step's last row grows when another step has more text) */
  align-self: start;
  width: min(14rem, 62vw);
  margin-top: var(--s-2);
  border: 6px solid var(--priel);
  border-radius: 28px;
  overflow: hidden;
  background: var(--priel);
  box-shadow: 0 18px 30px -18px rgb(13 59 71 / 0.6);
}
.phone img {
  width: 100%;
}
.hint {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-left: 5px solid var(--queller-tief);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--sand-hell);
  font-size: var(--fs-sm);
}

/* ---------- for everyone ---------- */
.access {
  --tide-next: var(--c-bg);
}
.features {
  display: grid;
  gap: var(--s-4);
  padding: 0;
  list-style: none;
}
@media (min-width: 40rem) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 64rem) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-2) var(--s-4);
  align-content: start;
  padding: var(--s-4);
  border: var(--bw) solid rgb(255 255 255 / 0.4);
  border-radius: var(--r-md);
}
.feature .icon {
  grid-row: span 2;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.45rem;
  border-radius: 50%;
  background: var(--queller);
  color: var(--priel);
}
.feature h3 {
  font-size: var(--fs-md);
}
.feature p {
  color: var(--c-muted);
}
.access__more {
  margin-top: var(--s-6);
  max-width: var(--measure);
}

/* ---------- project ---------- */
.project__grid {
  display: grid;
  gap: var(--s-7);
}
@media (min-width: 60rem) {
  .project__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: start;
  }
}
.project__aside {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--sand);
}
.project__aside h3 {
  font-size: var(--fs-sm);
}
.project__aside .logos {
  margin-top: var(--s-3);
}
.eu-note {
  font-size: var(--fs-sm);
}
.linklist {
  display: grid;
  gap: var(--s-2);
  padding: 0;
  margin-top: var(--s-5);
  list-style: none;
}
.linklist a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: var(--tap);
  font-weight: 700;
}
.linklist .icon {
  width: 1.1em;
  height: 1.1em;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: var(--s-3);
  max-width: 48rem;
}
.faq details {
  background: var(--sand-hell);
  border: 1px solid rgb(13 59 71 / 0.25);
}
.faq summary {
  font-size: var(--fs-md);
  line-height: 1.3;
}
.faq__body {
  padding: 0 var(--s-4) var(--s-5);
  max-width: var(--measure);
}
.faq__body ul,
.faq__body ol {
  padding-left: 1.3em;
  margin-top: var(--s-3);
}

/* ---------- contact + final call ---------- */
.contact {
  display: grid;
  gap: var(--s-6);
  align-items: end;
}
@media (min-width: 52rem) {
  .contact {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-5);
}
.contact__ikke {
  justify-self: center;
}
.contact__ikke img {
  height: 15rem;
  width: auto;
}
.finale {
  --tide-next: var(--priel-ink);
  text-align: left;
}
.finale .wrap {
  display: grid;
  gap: var(--s-5);
  justify-items: start;
}
.finale h2 {
  font-size: var(--fs-hero);
  max-width: 14ch;
}

/* ---------- footer ---------- */
.footer {
  background: var(--priel-ink);
  padding-block: var(--s-7) var(--s-8);
}
.footer__grid {
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 52rem) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}
.footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  padding: 0;
  list-style: none;
}
.footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 700;
}
.footer__small {
  margin-top: var(--s-4);
  color: var(--c-muted);
  font-size: var(--fs-sm);
}
.footer img.footer__mark {
  width: 9rem;
}

/* ---------- sub pages (legal, Leichte Sprache, accessibility) ---------- */
.page-head {
  --tide-next: var(--c-bg);
  padding-top: var(--s-5);
  padding-bottom: var(--s-7);
}
.page-head h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: var(--fs-xl);
}
.page-head p {
  margin-top: var(--s-4);
  max-width: var(--measure);
  color: var(--c-muted);
}
.doc {
  padding-block: var(--s-6) var(--s-8);
}
/* text column aligned with the header, at reading width */
.doc.prose {
  max-width: var(--page);
}
.doc.prose > * {
  max-width: var(--measure);
}
.doc > :first-child,
.doc > section:first-child > h2:first-child {
  margin-top: 0;
}
.doc h2 {
  margin-top: var(--s-7);
  font-size: var(--fs-lg);
}
.doc h3 {
  margin-top: var(--s-5);
}
.doc h2 + p,
.doc h3 + p,
.doc h2 + ul,
.doc h3 + ul,
.doc p + ul,
.doc ul + p,
.doc h2 + address,
.doc h3 + address {
  margin-top: var(--s-3);
}
.doc ul,
.doc ol {
  padding-left: 1.3em;
}
.doc li + li {
  margin-top: var(--s-2);
}
.doc address {
  font-style: normal;
}
.doc .stand {
  margin-top: var(--s-7);
  color: var(--c-muted);
  font-size: var(--fs-sm);
}

/* Leichte Sprache: bigger text, more air, one statement per line */
.ls {
  font-size: 1.15rem;
  line-height: 1.6;
}
.ls p + p {
  margin-top: var(--s-5);
}
.ls h2 {
  margin-top: var(--s-8);
}
.ls-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-5);
  align-items: center;
  margin-top: var(--s-5);
}
@media (min-width: 44rem) {
  .ls-row {
    grid-template-columns: 9rem minmax(0, 1fr);
  }
}
.ls-row img {
  width: 6rem;
  height: auto;
}
@media (min-width: 44rem) {
  .ls-row img {
    width: 9rem;
  }
}
.ls {
  max-width: var(--page);
}
.ls > section {
  max-width: 40rem;
}

/* ---------- high contrast ---------- */
@media (prefers-contrast: more) {
  :root {
    --c-bg: #fff;
    --c-muted: #000;
    --c-text: #000;
    --c-link: #000;
    --c-surface: #fff;
    --c-surface-2: #fff;
    --sand: #fff;
    --sand-hell: #fff;
    --c-focus: #000;
    --c-focus-halo: #ffe600;
    --queller: #ffe600;
    --queller-tief: #e6cf00;
    --priel: #000;
    --priel-ink: #000;
  }
  .on-dark {
    --c-muted: #fff;
    background: #000;
  }
  .tideline::after {
    display: none;
  }
  .station,
  .faq details,
  .feature,
  .funding,
  .project__aside {
    border: 3px solid currentColor;
  }
}

/* Windows high contrast / forced colours: keep borders and focus visible */
@media (forced-colors: active) {
  .btn,
  .station,
  .feature,
  .faq details,
  .bubble,
  .buoy,
  .step__num {
    border: 2px solid CanvasText;
  }
  .tideline::after {
    display: none;
  }
  .feature .icon {
    forced-color-adjust: auto;
  }
  /* the white wordmark keeps its dark tile, otherwise it vanishes on a light system background */
  .topbar__brand,
  .footer__mark {
    forced-color-adjust: none;
    background: #0d3b47;
    padding: 4px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .topbar__nav,
  .qr,
  .film video,
  .skip-link {
    display: none !important;
  }
  .on-dark {
    background: #fff;
    color: #000;
  }
}
