/* =========================================================
   SPÄTER IST JETZT — Stylesheet
   Layout-Idee: Ein Lebens-Lineal (0–90 Jahre) läuft oben mit,
   die Seite liest sich wie ein Lebenslauf von "heute" bis "Rente".
   Farben: kühles Behördenpapier, Tinte, Kobaltblau, Textmarker-Gelb
   (wie markierte Zeilen in einer Renteninformation).
   ========================================================= */

:root {
  --paper: #f3f5f8;
  --paper-2: #e6ebf2;
  --card: #ffffff;
  --ink: #121a2b;
  --ink-2: #46506a;
  --muted: #6b7590;
  --line: #d3dae5;
  --accent: #2447d6;
  --accent-ink: #ffffff;
  --mark: #ffe14d;
  --mark-ink: #121a2b;
  --pro: #0a7a4b;
  --contra: #b8361f;

  /* Diagramm-Farben (validiert, siehe README) */
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --s4: #eda100;
  --grid: #dde3ec;
  --axis: #b9c2d1;

  --f-display: "Anybody", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Newsreader", Georgia, "Times New Roman", serif;
  --f-ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.2vw, 2.3rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.6vw, 3.6rem);
  --step-4: clamp(3rem, 1.8rem + 6vw, 7.5rem);

  --radius: 6px;
  --maxw: 1160px;
  --text: 66ch;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1320;
    --paper-2: #161e31;
    --card: #1a2338;
    --ink: #eef1f7;
    --ink-2: #b7c0d4;
    --muted: #8a94ad;
    --line: #2a3550;
    --accent: #7d93ff;
    --accent-ink: #0e1320;
    --mark: #ffe14d;
    --mark-ink: #121a2b;
    --pro: #4cc38a;
    --contra: #ff7a5c;
    --s1: #3987e5;
    --s2: #d95926;
    --s3: #199e70;
    --s4: #c98500;
    --grid: #232d45;
    --axis: #3a4662;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1320;
  --paper-2: #161e31;
  --card: #1a2338;
  --ink: #eef1f7;
  --ink-2: #b7c0d4;
  --muted: #8a94ad;
  --line: #2a3550;
  --accent: #7d93ff;
  --accent-ink: #0e1320;
  --mark: #ffe14d;
  --mark-ink: #121a2b;
  --pro: #4cc38a;
  --contra: #ff7a5c;
  --s1: #3987e5;
  --s2: #d95926;
  --s3: #199e70;
  --s4: #c98500;
  --grid: #232d45;
  --axis: #3a4662;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
button, input, select { font: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Typo ---------- */
h1, h2, h3 { font-family: var(--f-display); line-height: 1.02; margin: 0; text-wrap: balance; }
h2 {
  font-size: var(--step-3);
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  letter-spacing: -0.01em;
}
h3 {
  font-size: var(--step-1);
  font-weight: 700;
  font-variation-settings: "wdth" 90;
}
p { margin: 0; max-width: var(--text); }
.lead { font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); }
.eyebrow, .label, .ui {
  font-family: var(--f-ui);
}
.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.small { font-family: var(--f-ui); font-size: var(--step--1); color: var(--muted); line-height: 1.45; }
.num { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 75; }
sup.ref { font-family: var(--f-ui); font-size: 0.62em; font-weight: 600; }
sup.ref a { text-decoration: none; padding: 0 1px; }

/* Textmarker */
mark {
  color: var(--mark-ink);
  background: linear-gradient(transparent 12%, var(--mark) 12%, var(--mark) 88%, transparent 88%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 0.12em;
  transition: background-size 0.9s cubic-bezier(.2,.7,.2,1);
}
.js mark.pre { background-size: 0% 100%; }

/* ---------- Kopfzeile + Lebens-Lineal ---------- */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 20px; padding-block: 10px; }
.brand {
  font-family: var(--f-display);
  font-weight: 900;
  font-variation-settings: "wdth" 70;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand span { color: var(--accent); }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  font-family: var(--f-ui);
  font-size: 0.86rem;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 99px;
  white-space: nowrap;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a.active { background: var(--ink); color: var(--paper); }
.theme-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 99px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: var(--f-ui);
  font-size: 0.82rem;
  white-space: nowrap;
}

.ruler { position: relative; height: 26px; border-top: 1px solid var(--line); }
.ruler svg { display: block; width: 100%; height: 26px; }
.ruler .tick { stroke: var(--axis); stroke-width: 1; }
.ruler .tick.major { stroke: var(--muted); }
.ruler text { font-family: var(--f-ui); font-size: 9px; fill: var(--muted); }
.ruler .fill { fill: var(--accent); opacity: 0.14; }
.ruler .now { fill: var(--accent); }
.ruler .goal { fill: var(--ink); }
.ruler-label {
  position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: 4px;
  font-family: var(--f-ui); font-size: 11px; font-weight: 600; color: var(--accent);
  background: var(--paper); padding: 0 6px;
}

/* ---------- Abschnitte ---------- */
section { padding-block: clamp(64px, 9vw, 128px); border-bottom: 1px solid var(--line); }
section.alt { background: var(--paper-2); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head .age {
  font-family: var(--f-ui); font-size: var(--step--1); color: var(--muted);
  display: flex; gap: 10px; align-items: center;
}
.sec-head .age b { color: var(--ink); font-weight: 600; }
.stack { display: grid; gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(24px, 4vw, 48px); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.grid-2 > *, .grid-3 > * { min-width: 0; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 8vw, 104px) clamp(48px, 7vw, 88px); }
.hero h1 {
  font-size: var(--step-4);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 60;
  text-transform: uppercase;
}
.hero h1 .w1 { display: block; }
.hero h1 .w2 { display: block; color: var(--accent); }
.js .hero h1 .w1 { animation: squeeze 1.6s cubic-bezier(.2,.7,.2,1) both; }
.js .hero h1 .w2 { animation: stretch 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes squeeze { from { font-variation-settings: "wdth" 150; } to { font-variation-settings: "wdth" 60; } }
@keyframes stretch { from { font-variation-settings: "wdth" 50; } to { font-variation-settings: "wdth" 60; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: end; }
.hero .lead { margin-top: 24px; }
.age-box { display: grid; gap: 14px; }
.age-box label { font-family: var(--f-ui); font-weight: 600; font-size: 0.95rem; }
.age-row { display: flex; align-items: center; gap: 14px; }
.age-row input[type="number"] {
  width: 5.2ch; font-family: var(--f-display); font-weight: 800; font-size: 2.4rem;
  font-variation-settings: "wdth" 75; padding: 4px 8px; border: 2px solid var(--ink);
  border-radius: var(--radius); background: var(--card); color: var(--ink);
}
.countdown { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 70; font-size: var(--step-3); line-height: 1; }
.countdown small { display: block; font-family: var(--f-ui); font-size: 0.9rem; font-weight: 500; color: var(--ink-2); margin-top: 8px; }
.lifebar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--paper-2); gap: 2px; }
.lifebar span { display: block; height: 100%; }
.lifebar .lived { background: var(--ink); }
.lifebar .work { background: var(--accent); }
.lifebar .rest { background: var(--mark); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--f-ui); font-size: 0.8rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Zitat-Duell ---------- */
.duel { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 3vw, 40px); align-items: stretch; }
.duel .vs {
  font-family: var(--f-display); font-weight: 900; font-size: var(--step-2);
  font-variation-settings: "wdth" 60; color: var(--muted); align-self: center;
}
.quote { display: grid; gap: 18px; align-content: start; }
.quote blockquote {
  margin: 0; font-family: var(--f-body); font-size: var(--step-1); line-height: 1.4; font-style: italic;
}
.quote blockquote::before { content: "„"; }
.quote blockquote::after { content: "“"; }
.person { display: flex; gap: 14px; align-items: center; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; flex: none; overflow: hidden;
  background: var(--paper-2); display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; color: var(--ink-2); font-size: 1.2rem;
  border: 1px solid var(--line);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person .who { font-family: var(--f-ui); font-size: 0.9rem; line-height: 1.35; }
.person .who b { display: block; font-size: 1rem; }
.person .who span { color: var(--muted); }
.bw img { filter: grayscale(1); }
@media (max-width: 760px) { .duel { grid-template-columns: 1fr; } .duel .vs { justify-self: center; } }

/* ---------- Fluss-Diagramm Umlage ---------- */
.flow { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 12px; align-items: center; }
.flow-col { display: grid; gap: 10px; }
.node {
  border: 1px solid var(--line); background: var(--card); border-radius: var(--radius);
  padding: 12px 14px; font-family: var(--f-ui); font-size: 0.92rem; line-height: 1.3;
}
.node b { display: block; font-size: 1rem; }
.node .pct { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; font-variation-settings: "wdth" 75; color: var(--accent); }
.node.kasse { text-align: center; border: 2px solid var(--ink); padding: 22px 14px; }
.flow-pipe { position: relative; height: 2px; background: var(--line); margin: 8px 0; overflow: hidden; }
.flow-pipe i { position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: coin 2.4s linear infinite; }
.flow-pipe i:nth-child(2) { animation-delay: .8s; }
.flow-pipe i:nth-child(3) { animation-delay: 1.6s; }
@keyframes coin { from { left: -10px; } to { left: 100%; } }
.flow-arrows { display: grid; gap: 34px; }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr; } .flow-arrows { display: none; } }

.saeulen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.saeule { background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; align-content: start; }
.saeule:nth-child(2) { border-top-color: var(--s3); }
.saeule:nth-child(3) { border-top-color: var(--s4); }
.saeule ul { margin: 0; padding-left: 1.1em; font-family: var(--f-ui); font-size: 0.88rem; color: var(--ink-2); }
.saeule .tag { font-family: var(--f-ui); font-size: 0.75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .saeulen { grid-template-columns: 1fr; } }

/* ---------- Formulare / Regler ---------- */
.field { display: grid; gap: 6px; font-family: var(--f-ui); }
.field label { font-size: 0.88rem; font-weight: 600; display: flex; justify-content: space-between; gap: 10px; }
.field label output { font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.field input[type="number"], .field select, .field input[type="text"] {
  padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--ink); width: 100%;
}
input[type="range"] { width: 100%; accent-color: var(--accent); }
.fields { display: grid; gap: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--f-ui); font-weight: 600; font-size: 0.92rem;
  padding: 10px 16px; border-radius: 99px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
}
.btn.ghost { background: transparent; color: var(--ink); }
.btn:hover { filter: brightness(1.1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--f-ui); font-size: 0.88rem; padding: 7px 13px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.result-big { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 72; font-size: var(--step-3); line-height: 1; }
.result-sub { font-family: var(--f-ui); color: var(--ink-2); font-size: 0.92rem; }
.formula {
  font-family: var(--f-ui); font-size: 0.9rem; background: var(--paper-2); border-radius: var(--radius);
  padding: 12px 14px; color: var(--ink-2); line-height: 1.5;
}
.formula b { color: var(--ink); }

/* ---------- Demografie ---------- */
.ratio-stage { display: grid; gap: 22px; }
.years { display: flex; flex-wrap: wrap; gap: 8px; }
.ratio-view { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.people { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; min-height: 84px; }
.fig { width: 26px; height: 64px; transition: transform .4s, opacity .4s; }
.fig path, .fig circle { fill: var(--s1); }
.fig.part { opacity: 1; }
.fig.retiree path, .fig.retiree circle { fill: var(--s2); }
.ratio-num { font-family: var(--f-display); font-weight: 900; font-size: var(--step-4); font-variation-settings: "wdth" 60; line-height: .9; text-align: right; }
.ratio-num small { display: block; font-family: var(--f-ui); font-size: 0.85rem; font-weight: 500; color: var(--ink-2); }
@media (max-width: 600px) { .ratio-view { grid-template-columns: 1fr; } .ratio-num { text-align: left; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.stat { padding: 18px 18px 18px 0; display: grid; gap: 4px; align-content: start; }
.stat .v { font-family: var(--f-display); font-weight: 800; font-size: var(--step-2); font-variation-settings: "wdth" 75; line-height: 1; }
.stat .l { font-family: var(--f-ui); font-size: 0.86rem; color: var(--ink-2); }

/* ---------- Diagramme ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--f-ui); fill: var(--muted); font-size: 11px; }
.chart .t-strong { fill: var(--ink); font-weight: 600; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; }
.chart-title { font-family: var(--f-ui); font-weight: 600; font-size: 0.98rem; margin-bottom: 2px; }
.chart-sub { font-family: var(--f-ui); font-size: 0.82rem; color: var(--muted); margin-bottom: 12px; }
.tip {
  position: absolute; pointer-events: none; z-index: 5; min-width: 120px;
  background: var(--ink); color: var(--paper); font-family: var(--f-ui); font-size: 0.8rem; line-height: 1.4;
  padding: 8px 10px; border-radius: 6px; transform: translate(-50%, calc(-100% - 10px));
  white-space: nowrap; box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.tip b { font-weight: 600; }
.tip .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
details.table { margin-top: 12px; font-family: var(--f-ui); font-size: 0.85rem; }
details.table summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.tablewrap { overflow-x: auto; margin-top: 8px; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 600; color: var(--ink-2); }
td.r, th.r { text-align: right; }

/* ---------- Zeynep-Lebenslauf ---------- */
.timeline { display: flex; height: 44px; border-radius: var(--radius); overflow: hidden; gap: 2px; }
.timeline div { position: relative; min-width: 0; display: flex; align-items: center; justify-content: center; font-family: var(--f-ui); font-size: 0.7rem; color: #fff; font-weight: 600; cursor: default; }
.timeline .ph-school { background: var(--muted); }
.timeline .ph-full { background: var(--s1); }
.timeline .ph-kid { background: var(--s2); }
.timeline .ph-part { background: var(--s3); }
.timeline .ph-train { background: var(--ink-2); }
.timeline div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }

/* ---------- Karten: Reformen, Personen ---------- */
.reform { display: grid; gap: 10px; align-content: start; }
.reform .side {
  justify-self: start; font-family: var(--f-ui); font-size: 0.72rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px;
  background: var(--paper-2); color: var(--ink-2);
}
.reform .n { font-family: var(--f-display); font-weight: 900; font-size: 2rem; font-variation-settings: "wdth" 60; color: var(--accent); line-height: 1; }
.reform p { font-size: 1rem; }

.council { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; }
@media (max-width: 860px) { .council { grid-template-columns: 1fr; } }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.role {
  text-align: left; cursor: pointer; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: var(--radius); padding: 12px; display: grid; gap: 2px; font-family: var(--f-ui);
}
.role b { font-size: 0.98rem; }
.role span { font-size: 0.8rem; color: var(--muted); }
.role[aria-pressed="true"] { border: 2px solid var(--accent); padding: 11px; }
.verdict { display: grid; gap: 14px; }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pc > div { min-width: 0; }
.pc h4 { margin: 0 0 6px; font-family: var(--f-ui); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .06em; }
.pc .plus h4 { color: var(--pro); }
.pc .minus h4 { color: var(--contra); }
.pc ul { margin: 0; padding-left: 1.1em; font-size: 0.98rem; }
@media (max-width: 520px) { .pc { grid-template-columns: 1fr; } }
.vote { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--f-ui); font-size: 0.9rem; }
.tally { font-family: var(--f-ui); font-size: 0.85rem; color: var(--ink-2); }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.pcard .ph { aspect-ratio: 4 / 3; background: var(--paper-2); display: grid; place-items: center; overflow: hidden; max-width: 100%; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.pcard .ph .ini { font-family: var(--f-display); font-weight: 900; font-size: 3rem; color: var(--muted); font-variation-settings: "wdth" 70; }
.pcard .bd { padding: 14px 16px 16px; display: grid; gap: 6px; align-content: start; }
.pcard .role-t { font-family: var(--f-ui); font-size: 0.8rem; color: var(--muted); }
.pcard q { font-style: italic; font-size: 0.98rem; }
.pcard .credit { font-family: var(--f-ui); font-size: 0.68rem; color: var(--muted); }

/* ---------- Spiele / Quiz ---------- */
.guess { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.guess .field { flex: 1 1 180px; }
.reveal { font-family: var(--f-ui); }
.quiz-q { display: grid; gap: 12px; }
.quiz-q .opts { display: grid; gap: 8px; }
.opt {
  text-align: left; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer; font-family: var(--f-ui); font-size: 0.95rem;
}
.opt.right { border: 2px solid var(--pro); padding: 11px 13px; }
.opt.wrong { border: 2px solid var(--contra); padding: 11px 13px; opacity: .8; }
.opt:disabled { cursor: default; }
.quiz-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-family: var(--f-ui); font-size: 0.9rem; }
.progress-dots { display: flex; gap: 6px; }
.progress-dots i { width: 22px; height: 4px; border-radius: 2px; background: var(--line); }
.progress-dots i.done { background: var(--accent); }

/* ---------- Video ---------- */
.video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--ink); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; text-align: center; color: var(--paper); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .consent { display: grid; gap: 12px; padding: 20px; max-width: 46ch; font-family: var(--f-ui); font-size: 0.88rem; }
.video .consent .btn { justify-self: center; background: var(--mark); color: var(--mark-ink); border-color: var(--mark); }
.video.placeholder { background: repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 12px, var(--card) 12px, var(--card) 24px); color: var(--ink-2); border: 2px dashed var(--line); }

/* ---------- Checkliste ---------- */
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.todo li { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.todo .when { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; font-variation-settings: "wdth" 70; color: var(--accent); line-height: 1.1; }
.todo .when small { display: block; font-family: var(--f-ui); font-size: 0.7rem; font-weight: 500; color: var(--muted); }

/* ---------- Quellen ---------- */
.sources { font-family: var(--f-ui); font-size: 0.86rem; line-height: 1.5; padding-left: 2.2em; display: grid; gap: 8px; }
.sources li { padding-left: 4px; word-break: break-word; }
.sources li:target { background: var(--mark); color: var(--mark-ink); border-radius: 4px; }
.sources .via { color: var(--muted); }
.note {
  font-family: var(--f-ui); font-size: 0.85rem; border-left: 3px solid var(--mark); padding: 8px 12px;
  background: var(--card); color: var(--ink-2); max-width: var(--text);
}
footer { padding-block: 48px 64px; font-family: var(--f-ui); font-size: 0.86rem; color: var(--ink-2); }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
footer h3 { font-size: 1rem; margin-bottom: 8px; }

/* ---------- Einblenden ---------- */
.js .reveal-up { transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .8s; }
.js .reveal-up.pre { transform: translateY(24px); opacity: .001; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal-up.pre { transform: none; opacity: 1; }
  .js mark.pre { background-size: 100% 100%; }
}
