/* Agentic Marketing – project page in four tabs, RepoCity corporate design (night blue, brushed gold).
   Without JavaScript every tab is shown one below the other; without WebGL or with reduced motion
   every surface stays readable and complete. */

@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo.woff2") format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("assets/fonts/source-serif.woff2") format("woff2-variations"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Syncopate"; src: url("assets/fonts/syncopate-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Syncopate"; src: url("assets/fonts/syncopate-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --night: #02060f;
  --paper: #050f22;
  --navy: #0b1a33;
  --navy-2: #13294a;
  --spot: #5e80b0;
  --surface: linear-gradient(160deg, rgba(22, 42, 76, 0.72), rgba(8, 18, 38, 0.82));
  --surface-flat: rgba(10, 22, 44, 0.8);
  --raised: rgba(24, 46, 82, 0.78);
  --ink: #f4ecdb;
  --ink-2: #ddd3bf;
  --text: #d9d3c5;
  --muted: #a9b3c4;
  --line: rgba(214, 190, 140, 0.13);
  --line-gold: rgba(214, 186, 132, 0.4);
  --gold: #c9a96e;
  --gold-light: #ead7ae;
  --gold-strong: #f3e3bf;
  --gold-deep: #8f7148;
  --gold-soft: rgba(201, 169, 110, 0.14);
  --gold-metal: linear-gradient(135deg, #f3e3bf 0%, #cdb07a 30%, #9c7f52 55%, #e2c993 78%, #8a6c43 100%);
  --good: #6fcf97;
  --good-soft: rgba(111, 207, 151, 0.13);
  --bad: #ef8a7a;
  --bad-soft: rgba(239, 138, 122, 0.14);
  --info-soft: rgba(94, 128, 176, 0.2);
  --radius: 16px;
  --shadow: 0 22px 50px rgba(0, 3, 10, 0.55), 0 2px 0 rgba(255, 255, 255, 0.03) inset, 0 -1px 0 rgba(0, 0, 0, 0.4) inset;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Syncopate", "Archivo", system-ui, sans-serif;
  --font-serif: "Source Serif", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 1180px;
  --dock-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--gold-deep) var(--night); scrollbar-width: thin; }
body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(90% 60% at 50% -10%, rgba(94, 128, 176, 0.22), transparent 70%),
    radial-gradient(70% 50% at 100% 40%, rgba(19, 41, 74, 0.5), transparent 70%),
    var(--night);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--dock-h) + 28px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
::selection { background: var(--gold); color: var(--night); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-light); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 0.86em; color: var(--gold-light); }
q { font-family: var(--font-serif); color: var(--ink-2); }
html[lang="de"] .en, html[lang="en"] .de { display: none !important; }
.vorrat { position: absolute; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.laedt { color: var(--muted); list-style: none; }

/* ---------- Header: in the flow, so it never lies over content ---------- */
.kopf {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 14px;
  position: relative; z-index: 5;
}
.marke { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; }
.marke svg { width: 38px; height: 38px; filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.6)); }
.marke__wort { font-weight: 650; font-size: 1rem; line-height: 1.1; letter-spacing: 0.01em; }
.marke__wort span { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.24em; color: var(--gold); margin-top: 0.25rem; }
.kopf__rechts { display: flex; align-items: center; gap: 0.6rem; }
.sprache { display: flex; border: 1px solid var(--line-gold); border-radius: 999px; padding: 3px; background: var(--surface-flat); }
.sprache button {
  font: 650 0.78rem/1 var(--font); letter-spacing: 0.06em; color: var(--muted); background: none; border: 0;
  min-width: 44px; min-height: 38px; border-radius: 999px; cursor: pointer; transition: color 0.2s, background-color 0.2s;
}
.sprache button[aria-pressed="true"] { background: var(--gold-metal); color: var(--night); }
.sprache button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.kopf__app {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px;
  border: 1px solid var(--line-gold); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.92rem;
  background: var(--surface-flat);
}
.kopf__app:hover { border-color: var(--gold); color: var(--ink); }

/* ---------- Tabs ---------- */
.tafel-panel { outline: none; }
.reiter-aktiv .tafel-panel[hidden] { display: none; }
.tafel-panel.erscheint { animation: erscheinen 0.5s var(--ease-out) both; }
@keyframes erscheinen { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 0 12px calc(10px + env(safe-area-inset-bottom));
  display: flex; justify-content: center; pointer-events: none;
}
.dock__leiste {
  pointer-events: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
  width: min(100%, 560px); padding: 6px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(22, 42, 76, 0.92), rgba(5, 13, 30, 0.95));
  border: 1px solid var(--line-gold);
  box-shadow: 0 18px 40px rgba(0, 3, 10, 0.7), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.dock__reiter {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 56px; padding: 6px 2px; border-radius: 18px; text-decoration: none;
  color: var(--muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.1; text-align: center;
  transition: color 0.2s, background-color 0.25s;
}
.dock__reiter svg { width: 24px; height: 24px; }
.dock__reiter:hover { color: var(--ink); }
.dock__reiter[aria-selected="true"] { color: var(--night); background: var(--gold-metal); box-shadow: 0 6px 16px rgba(0, 3, 10, 0.6); }
@media (min-width: 720px) {
  .dock__reiter { flex-direction: row; gap: 8px; font-size: 0.86rem; }
}

/* ---------- Layout ---------- */
.inhalt { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.block { padding: clamp(2.6rem, 6vw, 4.6rem) 0 0; }
.block__titel { font-size: clamp(1.55rem, 3.2vw, 2.4rem); line-height: 1.12; font-weight: 650; letter-spacing: -0.01em; max-width: 26ch; text-wrap: balance; margin-bottom: 1.1rem; }
.block__vorspann { max-width: 68ch; color: var(--text); }
.zwei { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2.5rem; max-width: 1000px; }
@media (min-width: 900px) { .zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.zwei p { color: var(--ink-2); }

.knoepfe { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.pille {
  display: inline-flex; align-items: center; gap: 0.55rem; min-height: 48px; padding: 0 1.3rem;
  border-radius: 999px; border: 1px solid var(--line-gold); color: var(--ink); text-decoration: none;
  font-size: 0.97rem; font-weight: 600; background: var(--surface-flat);
  transition: background-color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}
.pille svg { width: 18px; height: 18px; }
.pille:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-1px); }
.pille--voll { background: var(--gold-metal); color: var(--night); border-color: transparent; box-shadow: 0 10px 24px rgba(0, 3, 10, 0.55); }
.pille--voll:hover { color: var(--night); }

/* ---------- Hero with the pit ---------- */
.held { position: relative; isolation: isolate; min-height: min(88svh, 860px); display: flex; align-items: flex-end; overflow: hidden; }
.held__buehne {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 40% at 70% 88%, rgba(201, 169, 110, 0.38), transparent 70%),
    radial-gradient(80% 60% at 60% 30%, rgba(19, 41, 74, 0.9), transparent 75%),
    linear-gradient(180deg, #050d1e 0%, #0b1a33 55%, #02060f 100%);
}
.held__buehne canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.held::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(2, 6, 15, 0.7) 0%, transparent 28%), linear-gradient(90deg, rgba(2, 6, 15, 0.82) 0%, rgba(2, 6, 15, 0.45) 46%, transparent 72%), linear-gradient(0deg, var(--night) 0%, transparent 32%); pointer-events: none; }
.held__inhalt { width: 100%; max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(2rem, 8vh, 6rem) var(--gutter) clamp(1.6rem, 5vh, 3rem); }
.held__titel {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.9rem, 6.4vw, 5.2rem); line-height: 1.04; letter-spacing: 0.02em;
  background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, 0.55)); margin-bottom: 1.2rem;
}
.held__satz { font-family: var(--font-serif); font-size: clamp(1.15rem, 2.1vw, 1.55rem); line-height: 1.42; color: var(--ink); max-width: 36ch; margin-bottom: 1.6rem; }
.held__zahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin: 0; max-width: 640px; }
.held__zahlen div { padding: 0.9rem 0.9rem 0.8rem; border-radius: 14px; background: var(--surface-flat); border: 1px solid var(--line); display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.held__zahlen dd { margin: 0 0 0.25rem; font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1; color: var(--gold-strong); font-variant-numeric: tabular-nums; }
.held__zahlen dt { font-size: 0.8rem; line-height: 1.3; color: var(--muted); }
.held .knoepfe { margin-top: 1.4rem; }
.fx .held__inhalt > * { animation: auftritt 0.9s var(--ease-out) both; }
.fx .held__inhalt > :nth-child(2) { animation-delay: 0.08s; }
.fx .held__inhalt > :nth-child(3) { animation-delay: 0.16s; }
.fx .held__inhalt > :nth-child(4) { animation-delay: 0.24s; }
@keyframes auftritt { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Steps ---------- */
.schritte { list-style: none; counter-reset: schritt; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
@media (min-width: 760px) { .schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .schritte { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.schritte li { counter-increment: schritt; position: relative; padding: 1.1rem 1.1rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.schritte li::before { content: counter(schritt); display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--gold); margin-bottom: 0.5rem; }
.schritte b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 0.3rem; }
.schritte p { margin: 0; font-size: 0.95rem; color: var(--text); }

/* ---------- Pictures ---------- */
.bild { margin: 1.4rem 0 0; }
.bild img { border-radius: 14px; border: 1px solid var(--line-gold); box-shadow: var(--shadow); width: 100%; }
.bild figcaption { margin-top: 0.7rem; font-size: 0.92rem; color: var(--muted); max-width: 70ch; }
.bild figcaption b { color: var(--ink); margin-right: 0.3rem; }
.bild--gross picture { display: block; }
.bilder-zwei { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1.2rem; }
@media (min-width: 820px) { .bilder-zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bild--gross img { max-width: 360px; margin: 0 auto; } }
.bild--schmal { max-width: 760px; }

/* ---------- Findings of the example run ---------- */
.befunde { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.befund { border-radius: 14px; background: var(--surface-flat); border: 1px solid var(--line); }
.befund--weg { border-color: rgba(239, 138, 122, 0.45); background: linear-gradient(160deg, rgba(239, 138, 122, 0.08), var(--surface-flat)); }
.befund summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.4rem 0.8rem; align-items: start; padding: 0.85rem 1rem; min-height: 48px; }
.befund summary::-webkit-details-marker { display: none; }
.befund summary .titel { color: var(--ink); font-weight: 600; line-height: 1.4; }
.befund summary .entscheid { grid-column: 2; font-size: 0.85rem; color: var(--muted); }
.befund--weg summary .titel { text-decoration: line-through; text-decoration-color: rgba(239, 138, 122, 0.7); }
.befund__mehr { padding: 0 1rem 1rem calc(1rem + 2.4rem); font-size: 0.94rem; }
.befund__mehr p { margin: 0 0 0.5rem; }
.befund__beleg { color: var(--muted); font-size: 0.88rem; }
.chip {
  display: inline-grid; place-items: center; min-width: 1.75rem; height: 1.75rem; padding: 0 0.35rem; border-radius: 8px;
  font-weight: 700; font-size: 0.86rem; line-height: 1; border: 1px solid transparent;
}
@media (max-width: 420px) { .art__chips .chip { min-width: 1.5rem; height: 1.5rem; font-size: 0.78rem; border-radius: 6px; } }
.chip--supported { background: var(--good-soft); color: var(--good); border-color: rgba(111, 207, 151, 0.4); }
.chip--partial { background: var(--gold-soft); color: var(--gold-light); border-color: var(--line-gold); }
.chip--unsupported { background: var(--bad-soft); color: var(--bad); border-color: rgba(239, 138, 122, 0.45); }
.chip--unreachable { background: rgba(152, 164, 184, 0.12); color: var(--muted); border-color: rgba(152, 164, 184, 0.35); }

.grenzen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.7rem; max-width: 1000px; }
@media (min-width: 820px) { .grenzen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grenzen li { padding: 1rem 1.1rem; border: 1px solid var(--line); background: rgba(10, 22, 44, 0.45); border-radius: 12px; font-size: 0.97rem; }
.grenzen b { display: block; color: var(--ink); margin-bottom: 0.2rem; }

/* ---------- Panel heads (tabs 2–4) ---------- */
.panel-kopf { padding: clamp(1.4rem, 4vw, 3rem) 0 0.6rem; max-width: 820px; }
.panel-titel {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  font-size: clamp(1.45rem, 4.6vw, 3rem); line-height: 1.08;
  background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 0.9rem; overflow-wrap: anywhere;
}
.panel-satz { font-family: var(--font-serif); font-size: clamp(1.08rem, 1.8vw, 1.3rem); line-height: 1.5; color: var(--ink); }
.legende, .zeichen-legende { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-size: 0.88rem; color: var(--muted); }
.legende li, .zeichen-legende li { display: inline-flex; align-items: center; gap: 0.45rem; }
.punkt { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.punkt--mensch { background: var(--gold-light); box-shadow: 0 0 0 3px var(--gold-soft); }
.punkt--auto { background: var(--spot); box-shadow: 0 0 0 3px var(--info-soft); }
.punkt--sperre { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }

/* ---------- Organigram: a spine the figure travels down ---------- */
.org { position: relative; margin-top: 1.6rem; --spur-x: 19px; }
.org__spur { position: absolute; top: 0; bottom: 0; left: var(--spur-x); width: 2px; background: linear-gradient(180deg, var(--line-gold), rgba(214, 186, 132, 0.15)); }
.org__puls { position: absolute; left: -5px; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--gold-strong); box-shadow: 0 0 0 4px rgba(243, 227, 191, 0.18), 0 0 24px 6px rgba(201, 169, 110, 0.55); transform: translateY(var(--puls-y, 0px)); transition: transform 1.1s var(--ease-out); }
.org__ort { position: relative; z-index: 1; margin: 1.8rem 0 0.9rem; padding-left: calc(var(--spur-x) * 2 + 14px); font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--gold); }
.org__ort:first-of-type { margin-top: 0.4rem; }
.org__ort::before { content: ""; position: absolute; left: calc(var(--spur-x) - 7px); top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 4px; transform: rotate(45deg); background: var(--night); border: 2px solid var(--gold); }
.org__stationen { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.station {
  position: relative; margin-left: calc(var(--spur-x) * 2 + 14px); padding: 1.05rem 1.1rem 1rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: border-color 0.5s, box-shadow 0.5s, transform 0.5s var(--ease-out);
}
.station::before { content: ""; position: absolute; top: calc(0.8rem + 14px); left: calc(-1 * (var(--spur-x) + 14px)); width: calc(var(--spur-x) + 14px); height: 2px; background: var(--line-gold); }
.station__nr {
  position: absolute; top: 0.8rem; left: calc(-1 * (var(--spur-x) * 2 + 14px) + var(--spur-x) - 15px);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 700; color: var(--ink); background: var(--navy); border: 2px solid var(--spot);
  transition: background-color 0.4s, color 0.4s, box-shadow 0.4s;
}
.station[data-art="mensch"] .station__nr { border-color: var(--gold-light); }
.station[data-art="sperre"] .station__nr { border-color: var(--bad); }
.station h4 { font-size: 1.12rem; font-weight: 650; line-height: 1.3; margin-bottom: 0.4rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; }
.station h4 code { font-size: 0.78rem; padding: 0.15rem 0.45rem; border-radius: 6px; background: rgba(2, 6, 15, 0.5); border: 1px solid var(--line); }
.station p { margin: 0 0 0.55rem; font-size: 0.96rem; }
.station__zahl { padding: 0.5rem 0.7rem; border-radius: 10px; background: var(--gold-soft); border: 1px solid var(--line-gold); color: var(--gold-strong); font-family: var(--font-serif); font-size: 1rem !important; }
.station__ast { padding: 0.45rem 0.7rem; border-radius: 10px; border: 1px dashed rgba(152, 164, 184, 0.45); color: var(--muted); font-size: 0.9rem !important; }
.station__ast--sperre { border-color: rgba(239, 138, 122, 0.6); color: var(--bad); background: var(--bad-soft); }
.faehig { list-style: none; margin: 0.7rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.faehig li { font-size: 0.8rem; line-height: 1.3; padding: 0.3rem 0.6rem; border-radius: 999px; background: rgba(2, 6, 15, 0.45); border: 1px solid var(--line); color: var(--ink-2); }
.station.ist-dran { border-color: var(--gold-deep); box-shadow: var(--shadow), 0 0 0 1px rgba(201, 169, 110, 0.25); }
.station.ist-dran .station__nr { background: var(--gold-metal); color: var(--night); box-shadow: 0 0 18px rgba(201, 169, 110, 0.6); }
.org-laeuft .station:not(.war-dran) .station__zahl { opacity: 0.35; }
.station__zahl { transition: opacity 0.6s; }
.org__qualitaet { margin: 1.6rem 0 0 calc(var(--spur-x) * 2 + 14px); padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px dashed var(--line-gold); color: var(--muted); font-size: 0.94rem; }
.org__qualitaet h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.org__qualitaet p { margin: 0; }
@media (min-width: 980px) {
  .org { --spur-x: 50%; }
  .org__spur { left: calc(50% - 1px); }
  .org__ort { padding-left: 0; text-align: center; }
  .org__ort::before { display: none; }
  .org__ort > span { display: inline-block; padding: 0.35rem 0.9rem; border-radius: 999px; background: var(--night); border: 1px solid var(--line-gold); }
  .org__ort { padding-top: 0.2rem; }
  .org__stationen { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 92px; row-gap: 1.2rem; align-items: start; }
  .org__stationen:has(> .rechts:last-child) { padding-bottom: 5.5rem; }
  .station { margin: 0; }
  .station.links { grid-column: 1; }
  .station.rechts { grid-column: 2; transform: translateY(5.5rem); }
  .station::before { width: 46px; }
  .station__nr { left: auto; }
  .station.links::before { left: 100%; }
  .station.links .station__nr { right: -61px; }
  .station.rechts::before { left: -46px; }
  .station.rechts .station__nr { left: -61px; }
  .org__qualitaet { margin: 2rem auto 0; max-width: 560px; text-align: center; }
}

/* ---------- Measurements ---------- */
.mess { margin-top: clamp(1.6rem, 4vw, 2.6rem); padding: clamp(1.1rem, 3vw, 2rem); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mess__titel { font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 650; line-height: 1.2; margin-bottom: 0.7rem; }
.mess__kern { font-family: var(--font-serif); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.45; color: var(--gold-strong); max-width: 50ch; }
.mess__erklaerung { color: var(--text); max-width: 70ch; font-size: 0.97rem; }
.mess__unter { font-size: 1.05rem; font-weight: 650; margin: 1.6rem 0 0.8rem; }
.quelle { margin: 1rem 0 0; font-size: 0.84rem; color: var(--muted); overflow-wrap: anywhere; }
.quelle a { color: var(--gold-light); }

.vergleich { margin: 1.2rem 0 1.1rem; display: grid; gap: 0.6rem; }
.vergleich__kopf, .vergleich__zeile { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 0.6rem; align-items: center; }
.vergleich__kopf { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.vergleich__kopf span:not(:first-child) { text-align: center; }
.vergleich__zeile { padding: 0.7rem 0.8rem; border-radius: 12px; background: rgba(2, 6, 15, 0.38); border: 1px solid var(--line); }
.vergleich__zeile > span:first-child { font-size: 0.92rem; color: var(--ink-2); line-height: 1.35; }
.wert { text-align: center; font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.wert small { display: block; font-size: 0.72rem; font-weight: 500; color: var(--muted); margin-top: 0.15rem; }
.wert--null { color: var(--good); }
.wert--gold { color: var(--gold-strong); }

.arten { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.art { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.45rem; padding: 0.75rem 0.85rem; border-radius: 12px; background: rgba(2, 6, 15, 0.38); border: 1px solid var(--line); }
.art--hervor { border-color: var(--line-gold); background: linear-gradient(160deg, rgba(201, 169, 110, 0.12), rgba(2, 6, 15, 0.38)); }
.art__name { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.art__name small { color: var(--muted); font-weight: 500; margin-left: 0.35rem; }
.art__reihen { display: grid; gap: 0.35rem; }
.art__reihe { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: 0.6rem; align-items: center; font-size: 0.82rem; color: var(--muted); }
.art__chips { display: flex; flex-wrap: wrap; gap: 4px; }
.art__notiz { font-size: 0.86rem; color: var(--gold-light); }
@media (min-width: 900px) {
  .art { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); align-items: center; }
  .art__notiz { grid-column: 2; }
}
.zeichen-legende { margin-top: 0.9rem; }
.faelle { margin-top: 1rem; }
.faelle summary { cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; color: var(--gold-light); font-weight: 600; list-style: none; }
.faelle summary::-webkit-details-marker { display: none; }
.faelle summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 0.25s; }
.faelle[open] summary::before { transform: rotate(45deg); }
.faelle__liste[hidden] { display: none; }
.faelle__liste { margin: 0.6rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.fall { padding: 0.75rem 0.85rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(2, 6, 15, 0.3); font-size: 0.92rem; }
.fall__satz { color: var(--ink-2); margin: 0 0 0.45rem; }
.fall__urteile { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.82rem; color: var(--muted); align-items: center; }
.fall__urteile span { display: inline-flex; align-items: center; gap: 0.35rem; }
.fall__quelle { font-size: 0.8rem; }

.trichter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 1.1rem 0; }
.trichter div { padding: 0.8rem; border-radius: 12px; background: rgba(2, 6, 15, 0.38); border: 1px solid var(--line); }
.trichter b { display: block; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--ink); line-height: 1.05; font-variant-numeric: tabular-nums; }
.trichter span { font-size: 0.82rem; color: var(--muted); line-height: 1.3; display: block; margin-top: 0.2rem; }
.balken { display: grid; gap: 0.8rem; margin: 0.4rem 0 1.1rem; }
.balken__zeile { display: grid; gap: 0.3rem; }
.balken__name { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.9rem; color: var(--ink-2); flex-wrap: wrap; }
.balken__name b { color: var(--ink); font-variant-numeric: tabular-nums; }
.balken__spur { height: 14px; border-radius: 0 6px 6px 0; background: rgba(152, 164, 184, 0.1); overflow: hidden; }
.balken__fuell { height: 100%; width: var(--w); border-radius: 0 4px 4px 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold-light)); transform-origin: left; }
.reiter-zeigt-benchmarks .balken__fuell { animation: wachsen 1s var(--ease-out) both; }
@keyframes wachsen { from { transform: scaleX(0); } to { transform: none; } }
.balken__fuell--leise { background: linear-gradient(90deg, #3b5478, var(--spot)); }

.funde { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; max-width: 900px; }
.funde li { padding: 0.9rem 1rem; border: 1px solid var(--line); background: rgba(2, 6, 15, 0.38); border-radius: 12px; font-size: 0.95rem; }
.funde b { display: block; color: var(--ink); margin-bottom: 0.2rem; }

/* ---------- Presentation as a self-running film ---------- */
.film { margin-top: 0.6rem; }
.film__buehne {
  position: relative; aspect-ratio: 16 / 9; width: min(100%, calc((100svh - 390px) * 16 / 9)); min-width: min(100%, 560px); margin: 0 auto; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-gold);
  background:
    radial-gradient(70% 70% at 50% 110%, rgba(201, 169, 110, 0.28), transparent 70%),
    radial-gradient(80% 70% at 50% 0%, rgba(94, 128, 176, 0.28), transparent 70%),
    linear-gradient(180deg, #071226, #02060f);
  box-shadow: var(--shadow);
}
@media (max-width: 700px) { .film__buehne { aspect-ratio: 4 / 5; width: 100%; min-width: 0; } }
.film__buehne::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold-metal); transform-origin: left; transform: scaleX(var(--fortschritt, 0)); }
.szene { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; align-items: center; justify-items: center; padding: clamp(1rem, 4vw, 3rem); opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0s linear 0.7s; }
.szene.ist-aktiv { opacity: 1; visibility: visible; transition: opacity 0.7s ease, visibility 0s; }
.szene__text { margin: 0; text-align: center; font-family: var(--font-serif); font-size: clamp(1.15rem, 3vw, 2rem); line-height: 1.3; color: var(--ink); max-width: 30ch; text-wrap: balance; }
.szene.ist-aktiv .szene__text { animation: auftritt 0.9s var(--ease-out) 0.35s both; }
.szene__bild { display: flex; align-items: center; justify-content: center; gap: clamp(0.6rem, 3vw, 2rem); width: 100%; min-height: 0; flex-wrap: wrap; }

.zahlkarte { display: grid; place-items: center; padding: clamp(0.8rem, 3vw, 1.6rem) clamp(1rem, 4vw, 2.2rem); border-radius: 18px; background: var(--surface); border: 1px solid var(--line-gold); }
.zahlkarte b { font-size: clamp(2rem, 7vw, 4.4rem); color: var(--ink); line-height: 1; }
.zahlkarte small { color: var(--muted); font-size: clamp(0.8rem, 1.6vw, 1rem); margin-top: 0.4rem; }
.ist-aktiv .zahlkarte { animation: auftritt 0.8s var(--ease-out) both; }
.ist-aktiv .zahlkarte--falsch { animation: auftritt 0.8s var(--ease-out) 0.2s both, verdacht 1.2s ease 2.2s both; }
@keyframes verdacht { to { border-color: var(--bad); box-shadow: 0 0 40px rgba(239, 138, 122, 0.25); } }

.szene__bild--kreis { position: relative; width: min(100%, 520px); aspect-ratio: 1.6; }
.kern { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 0.7rem 1.1rem; border-radius: 999px; background: var(--gold-metal); color: var(--night); font-weight: 700; font-size: clamp(0.85rem, 2vw, 1.05rem); white-space: nowrap; }
.trabant { position: absolute; left: 50%; top: 50%; padding: 0.35rem 0.7rem; border-radius: 999px; background: var(--surface-flat); border: 1px solid var(--line-gold); color: var(--ink-2); font-size: clamp(0.7rem, 1.7vw, 0.92rem); white-space: nowrap; --a: calc(var(--i) * 45deg); transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * min(26vw, 150px))) rotate(calc(-1 * var(--a))); }
.ist-aktiv .trabant { animation: ausschwaermen 1s var(--ease-out) both; animation-delay: calc(var(--i) * 0.12s); }
@keyframes ausschwaermen { from { opacity: 0; transform: translate(-50%, -50%) scale(0.4); } }

.abgleich { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1.1rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--good); font-size: clamp(1.4rem, 5vw, 2.8rem); font-weight: 700; color: var(--ink); }
.abgleich i { font-style: normal; color: var(--good); }
.abgleich--nein { border-color: var(--bad); }
.abgleich--nein i { color: var(--bad); }
.ist-aktiv .abgleich { animation: auftritt 0.8s var(--ease-out) both; }
.ist-aktiv .abgleich--nein { animation-delay: 0.9s; }

.szene__bild--zitat blockquote { margin: 0; max-width: 34ch; font-family: var(--font-serif); font-size: clamp(1rem, 2.6vw, 1.6rem); line-height: 1.45; color: var(--gold-strong); padding: 1rem 1.3rem; border: 1px solid var(--line-gold); background: var(--gold-soft); border-radius: 14px; }
.szene__bild--zitat cite { display: block; margin-top: 0.5rem; font-family: var(--font); font-style: normal; font-size: 0.6em; color: var(--muted); }
.ist-aktiv blockquote { animation: zitieren 1.8s steps(36, end) both; }
@keyframes zitieren { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.wahl { padding: 0.9rem 1.4rem; border-radius: 14px; font-weight: 700; font-size: clamp(1rem, 3vw, 1.5rem); border: 1px solid; }
.wahl--ja { color: var(--good); border-color: var(--good); background: var(--good-soft); }
.wahl--nein { color: var(--bad); border-color: var(--bad); background: var(--bad-soft); }
.ist-aktiv .wahl--ja { animation: auftritt 0.8s var(--ease-out) both, waehlen 0.6s ease 1.4s both; }
.ist-aktiv .wahl--nein { animation: auftritt 0.8s var(--ease-out) 0.15s both; }
@keyframes waehlen { 50% { transform: scale(1.1); } to { transform: scale(1.04); box-shadow: 0 0 36px rgba(111, 207, 151, 0.3); } }

.szene__bild--woche { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; width: min(100%, 680px); }
.tag { text-align: center; font-size: clamp(0.65rem, 1.6vw, 0.85rem); color: var(--muted); padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.kanal { grid-row: 2; grid-column: calc(var(--t) + 1); padding: 0.45rem 0.2rem; border-radius: 10px; text-align: center; font-size: clamp(0.55rem, 1.4vw, 0.8rem); background: var(--surface); border: 1px solid var(--line-gold); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.ist-aktiv .kanal { animation: einordnen 0.7s var(--ease-out) both; animation-delay: calc(0.2s + var(--t) * 0.18s); }
@media (max-width: 700px) {
  .szene__bild--woche { grid-template-columns: auto minmax(0, 1fr); width: min(100%, 260px); gap: 5px 12px; align-items: center; }
  .tag { grid-column: 1; border-bottom: 0; padding: 0; text-align: left; }
  .tag:nth-child(1) { grid-row: 1; } .tag:nth-child(2) { grid-row: 2; } .tag:nth-child(3) { grid-row: 3; } .tag:nth-child(4) { grid-row: 4; }
  .tag:nth-child(5) { grid-row: 5; } .tag:nth-child(6) { grid-row: 6; } .tag:nth-child(7) { grid-row: 7; }
  .kanal { grid-column: 2; grid-row: calc(var(--t) + 1); font-size: 0.8rem; padding: 0.3rem 0.6rem; text-align: left; }
}
@keyframes einordnen { from { opacity: 0; transform: translateY(-30px); } }

.szene__bild--schloss { flex-direction: column; }
.szene__bild--schloss svg { width: clamp(70px, 14vw, 120px); height: auto; fill: none; stroke: var(--bad); stroke-width: 3.4; stroke-linejoin: round; stroke-linecap: round; }
.szene__bild--schloss rect { fill: var(--bad-soft); }
.ist-aktiv .buegel { animation: schliessen 0.7s var(--ease-out) 0.6s both; }
@keyframes schliessen { from { transform: translateY(-9px); } }
.schloss__text { font-weight: 700; color: var(--bad); font-size: clamp(1rem, 2.6vw, 1.4rem); }

.meldung { display: flex; align-items: center; gap: 0.9rem; max-width: 520px; padding: 0.9rem 1.1rem; border-radius: 18px; background: rgba(24, 46, 82, 0.92); border: 1px solid var(--line-gold); box-shadow: var(--shadow); }
.meldung svg { flex: 0 0 auto; width: 44px; height: 44px; }
.meldung b { display: block; color: var(--ink); font-size: clamp(0.92rem, 2.2vw, 1.15rem); line-height: 1.3; }
.meldung small { color: var(--muted); font-size: clamp(0.78rem, 1.8vw, 0.92rem); }
.ist-aktiv .meldung { animation: herabgleiten 0.9s var(--ease-out) 0.2s both; }
@keyframes herabgleiten { from { opacity: 0; transform: translateY(-60px) scale(0.96); } }

.szene--abspann { grid-template-rows: 1fr; }
.abspann { text-align: center; display: grid; justify-items: center; gap: 0.6rem; max-width: 760px; }
.abspann__marke { width: clamp(48px, 9vw, 76px); height: clamp(48px, 9vw, 76px); }
.abspann__name { margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1rem, 3vw, 1.8rem); background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.abspann__faehig { list-style: none; margin: 0.4rem 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem; }
.abspann__faehig li { font-size: clamp(0.62rem, 1.5vw, 0.86rem); padding: 0.22rem 0.55rem; border-radius: 999px; border: 1px solid var(--line-gold); color: var(--ink-2); background: rgba(2, 6, 15, 0.5); }
.ist-aktiv .abspann__faehig li { animation: auftritt 0.6s var(--ease-out) both; }
.abspann__wer { margin: 0; color: var(--muted); font-size: clamp(0.78rem, 1.8vw, 0.95rem); }

.film__steuer { display: flex; align-items: center; gap: 0.6rem; margin: 0.8rem auto 0; max-width: 100%; width: min(100%, calc((100svh - 390px) * 16 / 9)); min-width: min(100%, 560px); }
@media (max-width: 700px) { .film__steuer { width: 100%; min-width: 0; } }
.film__spielen { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-gold); background: var(--gold-metal); color: var(--night); display: grid; place-items: center; cursor: pointer; }
.film__spielen svg { width: 20px; height: 20px; }
.film__spielen .play { display: none; }
.film__spielen[aria-pressed="false"] .play { display: block; }
.film__spielen[aria-pressed="false"] .pause { display: none; }
.film__kapitel { list-style: none; margin: 0; padding: 2px; display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.film__kapitel::-webkit-scrollbar { display: none; }
.film__kapitel button { white-space: nowrap; min-height: 40px; padding: 0 0.85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-flat); color: var(--muted); font: 600 0.84rem/1 var(--font); cursor: pointer; }
.film__kapitel button[aria-current="true"] { color: var(--ink); border-color: var(--gold); background: var(--gold-soft); }

/* ---------- Footer ---------- */
.fuss { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: clamp(3rem, 7vw, 5rem) auto 0; padding: 1.6rem var(--gutter) 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.fuss__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-bottom: 0.8rem; }
.fuss__links a { color: var(--ink-2); display: inline-flex; min-height: 40px; align-items: center; }

/* ---------- Calm version ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  .org__puls { display: none; }
}

/* ---------- Without JavaScript the film's scenes stand one below the other ---------- */
html:not(.reiter-aktiv) .film__buehne { aspect-ratio: auto; display: grid; gap: 1px; }
html:not(.reiter-aktiv) .szene { position: static; opacity: 1; visibility: visible; min-height: 320px; }
html:not(.reiter-aktiv) .film__steuer { display: none; }
