/* ============================================================
   strategy-review.com — The Strategy Engine / Future Archive
   ------------------------------------------------------------
   Visuelle Identität: dunkle Bibliothek aus gläsernen Wissens-
   platten. Blauschwarzer Grund, präzise dünne Linien, Zahlen in
   Monospace, ruhige Bewegung — Messinstrument, nicht Spiel.
   Keine externen Schriften: Systemstapel, Monospace für Werte.
   ============================================================ */

:root {
  --bg:        #06080f;
  --bg-deep:   #04050a;
  --bg-raise:  rgba(233, 240, 250, 0.03);
  --ink:       #e9edf5;
  --ink-dim:   #96a1b3;
  --ink-faint: #5b6578;
  --glass:     #a8dcef;                       /* Glasplatten-Leuchten */
  --glass-dim: rgba(168, 220, 239, 0.55);
  --glass-glow:rgba(140, 210, 240, 0.30);
  --warn:      #e8c98a;                       /* Schwelle / Befunde   */
  --line:      rgba(233, 237, 245, 0.10);
  --line-soft: rgba(233, 237, 245, 0.06);
  --font-text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
               "Liberation Mono", monospace;
  --maxw: 66rem;
  --maxw-text: 44rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  background-image: radial-gradient(ellipse 120% 80% at 50% -10%, #0b101c 0%, var(--bg-deep) 70%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-text);
  font-weight: 300;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Grundtypografie ---------- */
h1, h2, h3 { font-weight: 400; letter-spacing: -0.01em; line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 0.5rem; }
p  { max-width: var(--maxw-text); }
a  { color: var(--glass); text-decoration: none; border-bottom: 1px solid rgba(168,220,239,0.3); }
a:hover { border-bottom-color: var(--glass); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--glass);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: rgba(168, 220, 239, 0.25); }

.mono, .zahl { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.label.hell { color: var(--glass-dim); }

/* ---------- Layoutrahmen ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem); }
section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
section + section { border-top: 1px solid var(--line-soft); }

/* ---------- Kopf ---------- */
header.site {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  padding: 1.1rem 0;
}
header.site .wrap { display: flex; align-items: baseline; gap: 1.5rem; flex-wrap: wrap; }
.wortmarke {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border: 0;
}
.wortmarke span { color: var(--glass); }
nav.haupt { margin-left: auto; display: flex; gap: 1.4rem; flex-wrap: wrap; }
nav.haupt a {
  font-size: 0.8rem; letter-spacing: 0.06em;
  color: var(--ink-dim); border: 0;
}
nav.haupt a:hover, nav.haupt a[aria-current="page"] { color: var(--ink); }
.lang { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-faint); border: 0; }
.lang:hover { color: var(--glass); }

/* Unterseiten ohne Hero: Kopf im Fluss statt absolut */
body.unterseite header.site { position: static; border-bottom: 1px solid var(--line-soft); }
body.unterseite main { padding-top: clamp(2rem, 5vw, 3.5rem); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.hero-medien { position: absolute; inset: 0; z-index: 0; }
.hero-medien video, .hero-medien img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(0.85);
}
.hero::after {                       /* Lesbarkeitsverlauf */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(4,5,10,0.55) 0%, rgba(4,5,10,0.25) 45%, rgba(4,5,10,0.88) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 6rem; padding-bottom: 4rem; }
.hero h1 { max-width: 21ch; text-wrap: balance; }
.hero .claim { margin-top: 1.2rem; font-size: 1.02rem; color: var(--ink-dim); max-width: 38rem; }
.hero .einstieg { margin-top: 2.2rem; }

.knopf {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--bg-deep);
  background: var(--glass);
  border: 1px solid var(--glass);
  border-radius: 3px;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  box-shadow: 0 0 32px var(--glass-glow);
}
.knopf:hover { background: #c2e8f5; border-color: #c2e8f5; }
.knopf.leise {
  color: var(--glass); background: transparent;
  border: 1px solid rgba(168,220,239,0.4);
  box-shadow: none;
}
.knopf.leise:hover { border-color: var(--glass); background: rgba(168,220,239,0.06); }

/* ---------- Karten / Platten ---------- */
.karte {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(1.2rem, 3vw, 1.8rem);
}
.raster { display: grid; gap: 1rem; }
@media (min-width: 720px) {
  .raster.zwei { grid-template-columns: 1fr 1fr; }
  .raster.drei { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Check-Interface ---------- */
#check { scroll-margin-top: 2rem; }
.check-buehne {
  position: relative;
  background: linear-gradient(180deg, rgba(9,13,22,0.92), rgba(6,8,15,0.96)),
              url("../img/bg-check.webp") center / cover no-repeat;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  min-height: 26rem;
}
@media (min-width: 900px) {
  .check-lauf { display: grid; grid-template-columns: 1fr 130px; gap: 2rem; align-items: start; }
}
.check-platte { display: none; }
@media (min-width: 900px) { .check-platte { display: block; } }

.fortschritt { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.6rem; }
.fortschritt .zahl { font-size: 0.75rem; color: var(--ink-faint); white-space: nowrap; }
.balkenbahn { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.balken { height: 100%; width: 0; background: var(--glass); box-shadow: 0 0 12px var(--glass-glow); transition: width 0.35s ease; }

.frage-text { font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 400; max-width: 34rem; }
.antworten { list-style: none; margin-top: 1.6rem; display: grid; gap: 0.55rem; }
.antwort {
  display: flex; gap: 0.9rem; align-items: baseline;
  width: 100%; text-align: left;
  background: rgba(233, 240, 250, 0.025);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-dim);
  font: inherit; font-size: 0.95rem; line-height: 1.5;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.antwort:hover { border-color: rgba(168,220,239,0.45); color: var(--ink); }
.antwort[aria-pressed="true"] {
  border-color: var(--glass);
  background: rgba(168, 220, 239, 0.07);
  color: var(--ink);
  box-shadow: 0 0 20px rgba(140, 210, 240, 0.12);
}
.antwort .taste {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.05rem 0.4rem;
  flex-shrink: 0;
}
.antwort[aria-pressed="true"] .taste { color: var(--glass); border-color: rgba(168,220,239,0.5); }

.check-nav { display: flex; gap: 1rem; margin-top: 1.6rem; align-items: center; }
.check-nav .frei { flex: 1; }
.schalter {
  font: inherit; font-size: 0.85rem;
  color: var(--ink-dim);
  background: none; border: 1px solid var(--line);
  border-radius: 4px; padding: 0.55rem 1.1rem; cursor: pointer;
}
.schalter:hover:not(:disabled) { color: var(--ink); border-color: rgba(233,237,245,0.3); }
.schalter:disabled { opacity: 0.35; cursor: default; }
.schalter.primaer { color: var(--bg-deep); background: var(--glass); border-color: var(--glass); }
.schalter.primaer:hover:not(:disabled) { background: #c2e8f5; }
.hinweis-taste { font-size: 0.72rem; color: var(--ink-faint); margin-top: 1.2rem; }

/* Zusatzangaben */
.zusatz-felder { display: grid; gap: 1rem; margin-top: 1.5rem; max-width: 26rem; }
.zusatz-felder label { display: block; font-size: 0.8rem; color: var(--ink-dim); margin-bottom: 0.35rem; }
.zusatz-felder select {
  width: 100%; font: inherit; font-size: 0.92rem;
  color: var(--ink); background: var(--bg-deep);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 0.6rem 0.8rem;
}

/* ---------- Ergebnis ---------- */
.ergebnis h2 { margin-bottom: 0.25rem; }
.ergebnis .typ-name { color: var(--glass); text-shadow: 0 0 28px var(--glass-glow); }
.ergebnis-teile { display: grid; gap: 1rem; margin-top: 1.8rem; }
.befund { border-left: 2px solid var(--warn); padding-left: 1rem; }
.befund .label { color: var(--warn); }
.grenzfall-mark {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--warn); border: 1px solid rgba(232,201,138,0.4);
  border-radius: 3px; padding: 0.1rem 0.5rem; margin-left: 0.6rem;
  vertical-align: middle; letter-spacing: 0.08em;
}
.radar-figur { max-width: 30rem; margin: 0 auto; }
.radar-figur svg { width: 100%; height: auto; display: block; }
.radar-legende { list-style: none; display: flex; flex-wrap: wrap; gap: 1.1rem; justify-content: center; margin-top: 0.8rem; font-size: 0.75rem; color: var(--ink-dim); }
.radar-legende .marke { display: inline-block; width: 1.1em; height: 0; border-top: 2px solid; margin-right: 0.4em; vertical-align: middle; }
.radar-werte { font-size: 0.82rem; color: var(--ink-dim); }
.radar-werte table { border-collapse: collapse; width: 100%; max-width: 30rem; margin: 0.6rem auto 0; }
.radar-werte th, .radar-werte td { text-align: left; padding: 0.3rem 0.6rem; border-bottom: 1px solid var(--line-soft); font-weight: 300; }
.radar-werte td.zahl { text-align: right; }
.radar-werte .ready { color: var(--glass); }

.weiter-verweise { margin-top: 2rem; display: grid; gap: 0.8rem; }
.weiter-verweise .karte { font-size: 0.9rem; color: var(--ink-dim); }
.weiter-verweise .karte a { font-size: 0.95rem; }

/* ---------- Methodenblock ---------- */
.methoden-band {
  background: linear-gradient(180deg, rgba(6,8,15,0.94), rgba(6,8,15,0.86)),
              url("../img/bg-methods.webp") center / cover no-repeat;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
body.unterseite .methoden-band { background:
  linear-gradient(180deg, rgba(6,8,15,0.92), rgba(6,8,15,0.88)),
  url("../../assets/img/bg-methods.webp") center / cover no-repeat; }
.methoden-liste { list-style: none; display: grid; gap: 0.8rem; margin-top: 1.6rem; }
@media (min-width: 720px) { .methoden-liste { grid-template-columns: 1fr 1fr; } }
.methoden-liste .karte { height: 100%; }
.methoden-liste a.titel { font-size: 1.02rem; }
.methoden-liste p { font-size: 0.88rem; color: var(--ink-dim); margin-top: 0.4rem; }
.methoden-liste .nr { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-faint); display: block; margin-bottom: 0.4rem; }

/* Methoden-Einzelseite */
article.methode { max-width: var(--maxw-text); }
article.methode header { margin-bottom: 2rem; }
article.methode .einordnung { color: var(--ink-dim); font-size: 1.05rem; margin-top: 0.6rem; }
article.methode section { padding: 1.8rem 0; border-top: 1px solid var(--line-soft); }
article.methode section:first-of-type { border-top: 0; }
article.methode h2 { font-size: 1.2rem; }
article.methode h2 .label { display: block; margin-bottom: 0.4rem; }
.schritte { list-style: none; counter-reset: schritt; display: grid; gap: 1rem; margin-top: 1rem; }
.schritte li { position: relative; padding-left: 3rem; }
.schritte li::before {
  counter-increment: schritt;
  content: "0" counter(schritt);
  position: absolute; left: 0; top: 0.1rem;
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--glass-dim);
}
.schritte b { font-weight: 500; display: block; }
.schritte p { font-size: 0.92rem; color: var(--ink-dim); }
.plusminus { display: grid; gap: 1.2rem; margin-top: 1rem; }
@media (min-width: 640px) { .plusminus { grid-template-columns: 1fr 1fr; } }
.plusminus ul { list-style: none; display: grid; gap: 0.5rem; font-size: 0.9rem; color: var(--ink-dim); }
.plusminus li { padding-left: 1.1rem; position: relative; }
.plusminus li::before { content: "—"; position: absolute; left: 0; color: var(--ink-faint); }
.plusminus .plus li::before { content: "+"; color: var(--glass-dim); }
.ki-abschnitt {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-left: 2px solid var(--glass);
  border-radius: 0 6px 6px 0;
  padding: 1.4rem 1.6rem;
  margin-top: 1rem;
}
.ki-abschnitt p + p { margin-top: 0.9rem; }

/* ---------- Daten / Statistik ---------- */
.stat-karten { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin-top: 1.6rem; }
.stat-karten .karte .zahl { font-size: 2rem; color: var(--glass); text-shadow: 0 0 24px var(--glass-glow); }
.stat-karten .karte .label { margin-bottom: 0.4rem; }
.stat-karten .karte .sub { font-size: 0.72rem; color: var(--ink-faint); margin-top: 0.3rem; }
.balkenliste { list-style: none; display: grid; gap: 0.55rem; margin-top: 1rem; max-width: 36rem; }
.balkenliste li { display: grid; grid-template-columns: 11rem 1fr 3.5rem; gap: 0.8rem; align-items: center; font-size: 0.85rem; }
.balkenliste .name { color: var(--ink-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.balkenliste .bahn { height: 0.45rem; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.balkenliste .fuellung { height: 100%; background: var(--glass); opacity: 0.75; border-radius: 999px; min-width: 2px; }
.balkenliste .wert { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-dim); text-align: right; }
.zu-wenig { font-size: 0.85rem; color: var(--ink-faint); margin-top: 0.8rem; }
.fallzahl { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); }

/* ---------- Fließtext-Seiten ---------- */
.textseite { max-width: var(--maxw-text); }
.textseite h1 { margin-bottom: 1.2rem; }
.textseite h2 { margin-top: 2.4rem; }
.textseite p + p { margin-top: 0.9rem; }
.textseite ul, .textseite ol { margin: 0.9rem 0 0 1.2rem; color: var(--ink-dim); }
.textseite li + li { margin-top: 0.4rem; }
.textseite table { border-collapse: collapse; width: 100%; margin-top: 1rem; font-size: 0.9rem; }
.textseite th, .textseite td { text-align: left; padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--line-soft); font-weight: 300; vertical-align: top; }
.textseite th { color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Fuß ---------- */
footer.site {
  border-top: 1px solid var(--line-soft);
  padding: 2.5rem 0 3rem;
  font-size: 0.8rem; color: var(--ink-faint);
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: baseline; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-left: auto; }
footer.site a { color: var(--ink-faint); border: 0; }
footer.site a:hover { color: var(--glass); }

/* ---------- Hilfen ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 50;
  background: var(--bg-deep); color: var(--ink);
  padding: 0.5rem 1rem; border: 1px solid var(--line); border-radius: 4px;
  transition: top 0.15s ease;
}
.skip:focus { top: 1rem; }
[hidden] { display: none !important; }
