/* ============================================================
   NOUZ · assets/css/site.css
   Stilsystem Dose v32. Tokens siehe STYLE.md.
   Ein dunkler Grund, kein Light Mode. Orange ist Akzent, kein Flächenfüller.
   ============================================================ */

/* ---------- Schriften (self-hosted, Latin-Subset, SIL OFL) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/archivo-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/archivo-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}
/* Ersatzschriften mit angeglichenen Metriken, damit der Font-Tausch nichts verschiebt (CLS 0).
   Gemessen mit _qa/tools/fontmetrics.mjs: Archivo 400 = 0,991 × Arial, Archivo 800 = 1,047 × Arial Bold,
   Ascent 88 %, Descent 21 % (Overrides durch size-adjust geteilt). */
@font-face {
  font-family: "Archivo Fallback";
  font-weight: 400;
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 99.1%;
  ascent-override: 88.8%;
  descent-override: 21.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Archivo Fallback";
  font-weight: 800;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold");
  size-adjust: 104.7%;
  ascent-override: 84%;
  descent-override: 20.1%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "JetBrains Mono Fallback";
  src: local("Courier New"), local("Liberation Mono"), local("DejaVu Sans Mono");
  size-adjust: 100%;
  ascent-override: 102%;
  descent-override: 30%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --bg:       #0D0A08;
  --text:     #F2EDE2;
  --text-2:   #C9C2B6;   /* Sublines, etwas zurückgenommen */
  --accent:   #E0662A;
  --meta:     #8C857B;
  --line:     #2A2724;
  --field:    #8C857B;   /* Rand von Eingabefeldern: 3:1 gegen --bg (WCAG 1.4.11) */

  --font-sans: "Archivo", "Archivo Fallback", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "JetBrains Mono Fallback", "Courier New", monospace;

  --wrap:   1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --space:  clamp(48px, 7vw, 96px);
  --radius: 4px;

  color-scheme: dark;
}

/* ---------- Reset, Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }

/* Sichtbarer Fokus überall, nur bei Tastatur */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus-visible { outline: none; }

/* Sprungmarken nicht unter dem Kopf verstecken */
[id] { scroll-margin-top: 24px; }
/* Firefox scrollt fokussierte Elemente knapp unter dem Rand sonst nicht ins Bild (Tab-Fokus) */
:is(a, button, input, select, textarea) { scroll-margin-block: 12px; }

/* ---------- Bausteine ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding-top: var(--space); padding-bottom: var(--space); }
.section + .section { border-top: 1px solid var(--line); }

/* Alle h1 und h2 ausgewogen umbrechen (Runde 7b). Ohne Unterstützung: normaler Umbruch */
h1, h2 { text-wrap: balance; }
/* Fliesstext: kein einzelnes Wort allein in der letzten Zeile (Runde 7c). Ohne Unterstützung: normaler Umbruch */
p, li { text-wrap: pretty; }
.nowrap { white-space: nowrap; }

.h1 {
  font-weight: 800;
  font-size: clamp(44px, 9vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-wrap: balance;
  hyphens: manual;           /* wie .h2: Firefox trennte sonst «Stun-de», «For-schung» */
  overflow-wrap: break-word; /* nur Notfall: Wort länger als die ganze Zeile */
}
.h2 {
  font-weight: 800;
  font-size: clamp(36px, 6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
  hyphens: manual;           /* Wörter ganz lassen; text-wrap: balance würde sonst lieber trennen */
  overflow-wrap: break-word; /* nur Notfall: Wort länger als die ganze Zeile */
}
.h3 {
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.accent { color: var(--accent); }
.lead {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 36ch;
}
/* Rechtstexte: Lead auf Desktop in einer Zeile (Impressum), auf Mobile darf er umbrechen */
@media (min-width: 861px) { .legal__head .lead { max-width: 70ch; } }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }

/* Mono: Statuszeilen, Mengen, Navigation, Log-Zeilen, B5-Satz */
.mono, .status, .b5, .folgt, .label {
  font-family: var(--font-mono);
  font-weight: 400;
}
.label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--meta);
}
.status {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--meta);
}
.b5 {
  font-size: 12px;
  line-height: 1.7;
  color: var(--meta);
}
.folgt {
  font-size: 0.85em;
  color: var(--meta);
  letter-spacing: 0.02em;
}

/* Blinkender Cursor am Ende der Statuszeilen */
.cursor {
  color: var(--accent);
  animation: nouz-blink 1.1s steps(1, end) infinite;
}
@keyframes nouz-blink {
  50% { opacity: 0; }
}

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

/* Button, der wie ein Link aussieht (Cookie-Einstellungen) */
.linklike {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.linklike:hover { color: var(--accent); }

/* ---------- Skip-Link ---------- */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus-visible { top: 12px; color: var(--bg); }

/* ---------- Kopf ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px 28px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.site-header__mark {
  display: block;
  color: var(--accent);
  line-height: 0;
  flex: 0 0 auto;
  padding: 6px 0;
}
.site-header__mark:hover { color: var(--accent); }
.site-header__mark svg { width: 110px; height: 32px; }

.site-nav { margin-left: auto; }
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav__list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  text-decoration: none;
}
.site-nav__list a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.4em;
}

.site-header__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-header__cta:hover { background: var(--accent); color: var(--bg); }

@media (max-width: 860px) {
  .site-header__inner {
    flex-wrap: wrap;
    padding-top: 16px;
    padding-bottom: 8px;
  }
  .site-header__cta { margin-left: auto; }
  .site-nav {
    order: 3;
    flex: 1 0 100%;
    margin-left: 0;
  }
  .site-nav__list {
    flex-wrap: wrap;   /* passt sie nicht (grössere Schrift, Zoom): zweite Zeile statt Überlauf (Runde 7c) */
    justify-content: space-between;
    gap: 0 12px;
    font-size: 12px;
    letter-spacing: 0.04em;
  }
  /* site.js setzt is-wrapped, sobald die Liste zwei Zeilen hat: dann wie bei 320 px */
  .site-nav__list.is-wrapped { justify-content: flex-start; gap: 0 16px; }
}
/* Sehr schmale Geräte (bis 360 px): Navigation bricht in zwei Zeilen um, damit jedes Ziel 44 px bleibt.
   H2 etwas kleiner, damit lange Wörter («Prüfungssession») ganz in die Zeile passen statt getrennt zu werden. */
@media (max-width: 360px) {
  .h2 { font-size: 33px; }
  .site-nav__list { flex-wrap: wrap; justify-content: flex-start; gap: 0 16px; font-size: 12px; letter-spacing: 0.02em; }
}

/* ---------- Fuss ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
  padding-top: 40px;
  padding-bottom: 56px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--meta);
}
.site-footer__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 60ch;
}
.site-footer__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.site-footer__nav a,
.site-footer__nav .linklike {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  color: var(--meta);
}
.site-footer__nav a:hover,
.site-footer__nav .linklike:hover { color: var(--accent); }

/* ---------- Buttons, Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  background: var(--accent);
  color: var(--bg);
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { color: var(--bg); background: var(--text); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Zeile: Label links, Inhalt rechts ---------- */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  border-top: 1px solid var(--line);
}
.row__label {
  flex: 0 0 160px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.row__body { flex: 1 1 520px; min-width: 0; }
.statement {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 30ch;
}

/* ---------- Wartelisten-Formular ---------- */
.wl { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.wl__form { display: flex; flex-direction: column; gap: 14px; }
/* E-Mail, Preisfrage, Button: schmal untereinander, breit in einer Zeile (Text der Preisfrage darunter).
   Container-Query: entscheidet nach der Breite des Formulars, nicht des Fensters. */
.wl { container-type: inline-size; }
.wl__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "email" "ptext" "price" "btn";
  gap: 12px;
}
.wl__row .wl__email { grid-area: email; }
.wl__row .wl__price-text { grid-area: ptext; }
.wl__row .wl__price-field { grid-area: price; }
.wl__row .btn { grid-area: btn; }
@container (min-width: 560px) {
  .wl__row {
    grid-template-columns: minmax(0, 1fr) 118px auto;   /* 118 px: Platz für «CHF 100.00» */
    grid-template-areas: "email price btn" "ptext ptext ptext";
  }
  .wl__row .wl__price-text { margin-top: -4px; }
}
.wl__email {
  min-width: 0;
  min-height: 56px;
  padding: 0 18px;
  background: transparent;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
}
.wl__email::placeholder { color: var(--meta); opacity: 1; }
.wl__email:focus-visible { outline-offset: 0; border-color: var(--accent); }
.wl__email[aria-invalid="true"] { border-color: var(--accent); }


.wl__segment {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--font-mono);
  font-size: 13px;
}
.wl__legend {
  float: left;
  margin-right: 8px;
  padding: 0;
  color: var(--meta);
}
.wl__chip { position: relative; cursor: pointer; }
.wl__chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.wl__chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
}
.wl__chip:hover span { border-color: var(--meta); color: var(--text); }
.wl__chip input:checked + span { border-color: var(--text); color: var(--text); }
.wl__chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.wl__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 44px;
  padding: 3px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--meta);
  cursor: pointer;
}
.wl__consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}
.wl__consent a { color: var(--text-2); }

.wl__hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wl__status {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.wl__status:empty { display: none; }
.wl__status.is-error { color: var(--accent); }
/* Nach dem Eintragen bleibt nur die Terminal-Zeile */
.wl__form.is-done > :not(.wl__status) { display: none; }
.wl__form.is-done .wl__status { font-size: 15px; }
.wl__consent input[aria-invalid="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Freiwillige Preisangabe */
.wl__price-text { display: flex; flex-direction: column; gap: 4px; }
.wl__price-label { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }
.wl__price-hint { font-size: 12px; line-height: 1.5; color: var(--meta); }
.wl__price-field { position: relative; }
@container (max-width: 559.98px) { .wl__price-field { width: 180px; } }
.wl__price-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--meta);
  pointer-events: none;
}
/* Rand und Fokus wie beim E-Mail-Feld; «CHF» steht im Feld */
.wl__price-input {
  width: 100%;
  min-height: 56px;
  padding: 0 12px 0 52px;
  background: transparent;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
}
.wl__price-input:focus-visible { outline-offset: 0; border-color: var(--accent); }
.wl__price-input[aria-invalid="true"] { border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-top: clamp(32px, 4.5vw, 64px);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.hero__text {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* Headline und Formular passen auch bei 1440 × 900 in den ersten Bildschirm */
.hero__title { max-width: 9ch; font-size: clamp(44px, 8vw, 112px); }
.hero .wl, .hero .wl__form { gap: 12px; }
.hero__visual {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;   /* Entwurfshinweis nah an der Dose */
}
.lid__note {
  max-width: 42ch;
  text-wrap: balance;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--meta);
  text-align: center;
}
/* Standbild (SVG) und darüber der Canvas der 3D-Dose, gleiche Fläche: kein Layout-Sprung */
.lid-stage { position: relative; width: 75%; }   /* 75 % der Hero-Spalte; 3D-Dose füllt dieselbe Breite */
.lid { display: block; width: 100%; height: auto; border-radius: 50%; transition: opacity 0.6s ease; }
.lid__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease; }
.lid-stage.is-3d .lid__canvas { opacity: 1; }
.lid__canvas.is-mouse { cursor: grab; }   /* nur mit Maus: Ziehen dreht, Klick stoppt bzw. startet */
.lid__canvas.is-mouse:active { cursor: grabbing; }
.lid-stage.is-3d .lid { opacity: 0; }   /* bleibt im DOM: Screenreader lesen den alt-Text */
@media (max-width: 860px) {
  .hero { gap: 40px; padding-top: 32px; }
  .hero__text { gap: 22px; }
}

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  background: var(--accent);
  color: var(--bg);
  padding: 14px 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.32em;
  white-space: nowrap;
}
.ticker__track {
  display: inline-flex;
  animation: nouz-ticker 40s linear infinite;
  will-change: transform;
}
.ticker__track span { padding-right: 3em; }
@keyframes nouz-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Weiche ---------- */
.switch { border-top: 1px solid var(--line); }
.switch__link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.switch__num {
  width: 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}
.switch__name {
  flex: 1 1 300px;
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.switch__path {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--meta);
}
.switch__link:hover .switch__name { color: var(--accent); }

/* ---------- Known Bugs ---------- */
.bugs {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: clamp(80px, 11vw, 160px) 0 clamp(48px, 6vw, 80px);
}
.bugs__list { border-top: 1px solid var(--line); }
.bugs__item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.bugs__code {
  flex: 0 0 120px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  padding-top: 0.4em;
}
.bugs__text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 8px; }
.bugs__head {
  font-weight: 800;
  font-size: clamp(21px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.bugs__note {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--meta);
  max-width: 70ch;
}

/* ---------- Bridge ---------- */
.bridge { border-top: 1px solid var(--line); }
.bridge__text {
  font-weight: 800;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

/* ---------- Active Buffs ---------- */
.buffs { border-top: 1px solid var(--line); }
.buffs__item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.buffs dt {
  flex: 0 0 200px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 0.2em;
}
.buffs dd { flex: 1 1 280px; font-size: 19px; line-height: 1.5; }

/* ---------- Klingt nach dir ---------- */
.moments {
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-top: 1px solid var(--line);
}
.moments__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-weight: 800;
  font-size: clamp(25px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 26ch;
}
.moments__list p:nth-child(even) { color: var(--text-2); }
.moments__close { font-size: 20px; line-height: 1.5; color: var(--text-2); }
.moments__prompt { font-family: var(--font-mono); font-size: 14px; }

/* ---------- Inhalt ---------- */
.contents {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 48px;
  border-top: 1px solid var(--line);
}
.contents__intro {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.contents__sub { color: var(--text-2); }
.contents__table {
  flex: 1 1 420px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 15px;
  border-top: 1px solid var(--line);
}
.contents__table th,
.contents__table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}
.contents__table th { text-align: left; font-weight: 400; color: var(--text-2); padding-right: 16px; }
.contents__table td { text-align: right; }

/* ---------- So geht es ---------- */
.steps { display: flex; flex-direction: column; gap: 28px; }
.steps li {
  display: flex;
  gap: 24px;
  align-items: baseline;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.3;
}
.steps__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

/* ---------- Fragen ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.faq__q { font-weight: 800; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.faq__a { margin-top: 8px; color: var(--text-2); max-width: 65ch; }
.faq__a a { color: var(--text); }

/* ---------- Schluss-CTA ---------- */
.closer {
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-top: 1px solid var(--line);
}

/* ---------- Situations-Seiten ---------- */
.sit-hero {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: clamp(40px, 8vw, 112px);
  padding-bottom: clamp(56px, 8vw, 112px);
}
.sit-hero__title { font-size: clamp(44px, 8.2vw, 104px); max-width: 12ch; }
.sit-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.scene {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-top: 1px solid var(--line);
}
.scene__title { max-width: 20ch; font-size: clamp(32px, 5vw, 64px); }
.scene__text {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 52ch;
}
.log {
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
}
.log__line {
  display: flex;
  flex-wrap: wrap;   /* lange Zeilen (/sport) schieben den Text in die nächste Zeile */
  gap: 6px 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.log__time { flex: 0 0 auto; font-size: 13px; color: var(--accent); }
.log__text { flex: 1 1 220px; font-size: 16px; line-height: 1.5; }

/* ---------- Artikel /wissenschaft ---------- */
.article__head {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: clamp(40px, 8vw, 112px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.article__title { font-size: clamp(40px, 7vw, 96px); max-width: 16ch; }
.article__lead { max-width: 52ch; }
.toc__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.toc__list a { display: inline-flex; align-items: center; min-height: 44px; }
.substance {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  padding: var(--space) 0;
  border-top: 1px solid var(--line);
}
.substance__title { flex: 0 0 280px; font-size: clamp(32px, 4vw, 52px); }
.substance__body { flex: 1 1 520px; min-width: 0; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.6em; }
.prose li::marker { color: var(--meta); }
.prose strong { font-weight: 800; }
.prose a { color: var(--text); }
.table-scroll { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.data-table th, .data-table td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: baseline;
}
.data-table th { font-weight: 400; color: var(--text-2); }
.data-table thead th { color: var(--meta); font-size: 12px; }
.sources__note { font-size: 18px; }
.sources__stand { margin-top: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--meta); }
.sources__group { margin-top: 40px; }
/* Quellen kompakt: ein Eintrag pro Zeile, auf Desktop zweispaltig */
.sources__list {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.45;
}
.sources__list li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text-2); break-inside: avoid; }
.sources__list a { font-family: var(--font-mono); font-size: 12px; color: var(--text); }
@media (min-width: 861px) {
  .sources__list { columns: 2; column-gap: 40px; }
}
.article__end {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-top: 1px solid var(--line);
}
.article__end .b5 { font-size: 14px; color: var(--text-2); }

/* Box mit oranger Linie links: «Ergänzung, kein Ersatz» und «> offen:» */
.note-box, .open-box {
  max-width: 68ch;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--accent);
}
.note-box { display: flex; flex-direction: column; gap: 8px; color: var(--text-2); }
.note-box__title, .open-box__label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.open-box { margin: 1.2em 0; }
.open-box__label { margin-bottom: 6px; }
.open-box p:last-child { margin: 0; }

/* «Auf einen Blick»: vier Kacheln, Klick springt zum Abschnitt */
.glance { display: flex; flex-direction: column; gap: 12px; }
.glance__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.glance__tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  min-height: 44px;
  padding: 18px 20px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text-2);
}
.glance__tile:hover { color: var(--text); }
.glance__name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--meta); }
.glance__amount { font-weight: 800; font-size: clamp(30px, 3vw, 40px); line-height: 1; letter-spacing: -0.02em; color: var(--accent); }
.glance__unit { margin-top: -2px; font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.glance__text { font-size: 14px; line-height: 1.45; }

/* Wirkstoff-Abschnitte: oranges Mono-Label, Zahlen, die zählen */
.substance__kicker {
  flex: 0 0 100%;
  margin-bottom: -12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.num { color: var(--accent); font-weight: 800; white-space: nowrap; }

/* ---------- Themenblock mit Werkzeug (Situations-Seiten, Runde 7) ---------- */
.topic { display: flex; flex-direction: column; gap: 20px; border-top: 1px solid var(--line); }
.topic__text { max-width: 62ch; color: var(--text-2); }
.topic__note { font-family: var(--font-mono); font-size: 13px; color: var(--meta); }
.topic__note a { color: var(--text-2); }
.tool {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
}
.tool__name { font-size: 13px; letter-spacing: 0.04em; color: var(--accent); }
.tool__status { font-size: 14px; line-height: 1.6; color: var(--text); }
.tool__hint { font-size: 12px; color: var(--meta); }
.tool__time, .tool__digit { font-size: clamp(48px, 9vw, 72px); font-weight: 500; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.tool__row { display: flex; flex-wrap: wrap; gap: 10px; }
.tool__row[hidden], .tool [hidden] { display: none; }
.tool__btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.tool__btn:hover { border-color: var(--text); }
.tool__btn:disabled { opacity: 0.45; cursor: default; }
.tool__pad {
  min-height: 160px;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}
.tool__pad[data-state="go"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.tool__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.tool__field { display: flex; flex-direction: column; gap: 6px; }
.tool__label { font-size: 12px; color: var(--meta); }
.tool__input {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  min-width: 0;
}
.tool__input:focus-visible { outline-offset: 0; border-color: var(--accent); }
.tool__result { font-size: 18px; line-height: 1.5; color: var(--text); }
.topic__box { margin-top: 8px; }

/* ---------- /ueber-uns ---------- */
.team__sub {
  display: block;
  max-width: 32ch;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: var(--meta);
}
.story { border-top: 1px solid var(--line); }
.story__list { display: flex; flex-direction: column; gap: 48px; }
.story__item {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
}
.story__title {
  flex: 0 0 280px;
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.story__num {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--accent);
}
.story__item p { flex: 1 1 480px; max-width: 62ch; font-size: 18px; line-height: 1.6; color: var(--text-2); }
.story__item a { color: var(--text); }

.team { border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 32px; }
.team__title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 32px);
}
.team__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 15px;
  border-top: 1px solid var(--line);
}
.team__table th, .team__table td {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.team__table thead th { font-family: var(--font-sans); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.team__table tbody th { width: 200px; font-weight: 400; color: var(--meta); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.team__stack { display: none; }
.team__note { color: var(--text-2); }   /* volle Breite wie die Tabelle darüber (Runde 7) */
@media (max-width: 720px) {
  .team__table { display: none; }
  .team__stack { display: flex; flex-direction: column; gap: 32px; }
  .team__name { font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
  .team__dl { margin-top: 12px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 14px; }
  .team__dl div { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .team__dl dt { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--meta); }
  .team__dl dd { margin-top: 4px; }
}

.lab { border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 48px; }
.lab__img { width: 100%; height: auto; border-radius: var(--radius); background: var(--line); }
.lab__caption { margin-top: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--meta); }
.labbook { display: flex; flex-direction: column; gap: 20px; max-width: 860px; }
.labbook__log { font-family: var(--font-mono); font-size: 15px; line-height: 1.6; border-top: 1px solid var(--line); }
.labbook__line {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.labbook__no { flex: 0 0 auto; color: var(--accent); }
/* Einblendung nur mit JavaScript (Klasse js) und nur, bis der Block sichtbar wird */
.js .labbook__line {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition-delay: calc(var(--i, 0) * 220ms);
}
.js .labbook.is-on .labbook__line { opacity: 1; transform: none; }

/* ---------- Rechtsseiten ---------- */
.legal__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: clamp(40px, 8vw, 112px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.legal__title { font-size: clamp(30px, 8.4vw, 96px); }
/* Bis 340 px: «Datenschutzerklärung» passt so ganz in die Zeile, ohne Trennung */
@media (max-width: 340px) { .legal__title { font-size: 26px; } }
.legal { padding-bottom: var(--space); }
.legal__sec {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 48px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.legal__h {
  flex: 0 0 280px;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.legal__body { flex: 1 1 480px; max-width: 68ch; color: var(--text-2); }
.legal__body > * + * { margin-top: 0.8em; }
.legal__body ul { padding-left: 1.2em; }
.legal__body em { font-style: normal; color: var(--text); }
.legal__body a { color: var(--text); }
.legal__contact a { display: inline-flex; align-items: center; min-height: 44px; }
.legal__stand {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--meta);
}

/* ---------- 404 ---------- */
.notfound__nav { width: 100%; margin-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Cookie-Banner: schmale Leiste unten ---------- */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--bg);
  border-top: 1px solid var(--meta);
  max-height: 85vh;
  overflow-y: auto;
}
.cookie[hidden] { display: none; }
.nouz-cb .cookie[hidden] { display: block; }
/* Solange das Banner offen ist: unten Platz lassen, damit nichts dauerhaft verdeckt ist */
.nouz-cb body { padding-bottom: var(--cookie-h, 160px); }
.cookie__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.cookie__text { flex: 1 1 420px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.cookie__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
/* «Ok, beide» und «Nur das Nötige»: gleich gross, gleich auffällig */
.cookie__btn {
  min-height: 44px;
  min-width: 150px;
  padding: 0 18px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.cookie__btn:hover { background: var(--text); color: var(--bg); }
.cookie__more { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); min-height: 44px; min-width: 44px; padding: 0 4px; }
.cookie__settings {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.cookie__settings[hidden] { display: none; }
.cookie__cats { margin: 0; padding: 0; border: 0; width: 100%; }
.cookie__cat {
  display: grid;
  grid-template-columns: 22px 140px 1fr;
  align-items: baseline;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  cursor: pointer;
}
.cookie__cat input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); align-self: center; }
.cookie__name { font-family: var(--font-mono); color: var(--text); }
.cookie__desc { color: var(--text-2); }
@media (max-width: 600px) {
  .cookie__actions { width: 100%; }
  .cookie__actions .cookie__btn { flex: 1 1 0; min-width: 0; white-space: nowrap; padding: 0 10px; }
  .cookie__more { flex: 1 1 100%; text-align: left; }
  .cookie__cat { grid-template-columns: 22px 1fr; }
  .cookie__desc { grid-column: 2; }
}

/* ---------- Bewegung: nur, wenn erwünscht ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .labbook__line { opacity: 1; transform: none; }
}
