/* politik-konkret – Basis-Stylesheet
   Mobile first. Keine externen Ressourcen. */

/* ---------- Schrift (selbst gehostet, kein Google-Fonts-CDN) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  /* Auf Latin + Latin-Extended subgesetzt (344 KB -> 163 KB), Achsen erhalten.
     Erzeugung siehe README, Abschnitt "Schrift". */
  src: url("../fonts/InterVariable-latin.6e20b51bbdd2.woff2") format("woff2");
}

/* ---------- Design-Tokens ---------- */
:root {
  --color-text: #1F2933;
  --color-text-muted: #52606D;
  --color-bg: #FAFAF9;
  --color-surface: #FFFFFF;
  --color-border: #E3E1DE;
  --color-accent: #6D28D9;
  --color-accent-dark: #59209E;
  --color-accent-soft: #F2EDFC;
  --color-focus: #6D28D9;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --size-content: 1100px;
  --size-narrow: 720px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --header-height: 4.1rem;

  --radius: 10px;
  --shadow-card: 0 1px 2px rgba(31, 41, 51, 0.04);
  --shadow-card-hover: 0 6px 20px rgba(31, 41, 51, 0.09);
}

/* ---------- Reset / Grundlagen ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }
main:focus { outline: none; }

img { max-width: 100%; height: auto; }

/* ---------- Typografie ---------- */
h1, h2, h3 {
  margin: 0 0 var(--space-4);
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.185rem; }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--color-accent-dark); }

.tabular-nums { font-variant-numeric: tabular-nums; }

.lead {
  font-size: 1.115rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 60ch;
}

.eyebrow {
  margin: 0 0 var(--space-2);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.note {
  margin-top: var(--space-8);
  padding: var(--space-4);
  border-left: 3px solid var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  color: var(--color-text);
}

/* ---------- Fokus & Skip-Link ---------- */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -4rem;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 120ms ease-in;
}
.skip-link:focus {
  top: var(--space-4);
  color: #FFFFFF;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--size-content);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container--narrow { max-width: var(--size-narrow); }

.section { padding-block: var(--space-16); }   /* 4rem oben und unten */

.section__heading { margin-bottom: var(--space-2); }

.section__intro {
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-bottom: var(--space-8);
}

.page-title { margin-bottom: var(--space-3); }

/* ---------- Header ---------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
}

.wordmark {
  font-size: 1.115rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-decoration: none;
}
.wordmark:hover { color: var(--color-text); }
.wordmark__accent { color: var(--color-accent); }

/* Burger-Button: nur mobil sichtbar */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--color-accent); }

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle__bars {
  position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* Ohne JS bleibt die Navigation sichtbar (Fallback) */
.site-nav { flex-basis: 100%; }
.site-nav[hidden] { display: none; }

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.site-nav__list a {
  display: block;
  padding: var(--space-2) 0;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}
.site-nav__list a:hover { color: var(--color-accent); }
.site-nav__list a[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 600;
}

/* ---------- Sektion 1: Hero ---------- */
.hero__inner {
  /* Volle Bildschirmhoehe abzueglich Header (svh wegen mobiler Browserleisten) */
  min-height: calc(100svh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--space-16);
}

.hero__title {
  font-size: clamp(2.25rem, 8vw, 3.25rem);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  max-width: 16ch;
}

.hero__subtitle {
  font-size: 1.115rem;
  color: var(--color-text-muted);
  max-width: 40ch;
  margin: 0;
}

.hero__shortcut { margin: var(--space-8) 0 0; }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-12);
  align-self: flex-start;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  min-height: 44px;
}
.scroll-cue:hover { color: var(--color-accent); }

.scroll-cue__chevron {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  animation: scroll-cue-bob 1.8s ease-in-out infinite;
}

@keyframes scroll-cue-bob {
  0%, 100% { transform: rotate(45deg) translate(-2px, -2px); }
  50%      { transform: rotate(45deg) translate(2px, 2px); }
}

/* ---------- Sektion 2: Persona-Stepper ---------- */
.persona-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--color-accent-soft);
  border-radius: var(--radius);
}

/* display:flex schlaegt die [hidden]-Regel des Browsers - explizit nachziehen. */
.persona-summary[hidden] { display: none; }

.persona-summary__label { color: var(--color-text-muted); }

.stepper[hidden] { display: none; }

.stepper__dots {
  display: flex;
  gap: var(--space-2);
  list-style: none;
  margin: 0 0 var(--space-8);
  padding: 0;
}

.stepper__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
}
.stepper__dot.is-done { background: var(--color-text-muted); }
.stepper__dot.is-current { background: var(--color-accent); }

.step {
  border: 0;
  margin: 0 0 var(--space-12);
  padding: 0;
  min-width: 0;
}
/* Erst wenn JS uebernommen hat, wird auf eine Frage reduziert. */
.stepper--js .step { margin-bottom: 0; }
.stepper--js .step[data-pk-step-hidden] { display: none; }
.step:focus { outline: none; }

.step__legend {
  display: block;
  padding: 0;
  margin-bottom: var(--space-2);
}

.step__count {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.step__question {
  display: block;
  font-size: 1.5rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.step__hint {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.step__options {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.option {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.option:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}
.option[aria-pressed="true"] {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  font-weight: 600;
}
.option--quiet { color: var(--color-text-muted); }

.step__actions {
  display: flex;
  gap: var(--space-6);
  margin: var(--space-6) 0 0;
}

.linklike {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-accent);
  font: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.linklike:hover { color: var(--color-accent-dark); }
.linklike--muted { color: var(--color-text-muted); }
.linklike--muted:hover { color: var(--color-text); }

.step__actions .linklike:last-child { margin-left: auto; }

/* ---------- Sektion 3: Beispiel-Story ---------- */
.station { margin-bottom: var(--space-12); }
.station:last-of-type { margin-bottom: 0; }

.station__question {
  font-size: 1.185rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.station__figure { margin-bottom: var(--space-3); }

.station__value {
  display: block;
  /* Bewusst Anthrazit: keine Gut/Schlecht-Faerbung ueber die Akzentfarbe. */
  color: var(--color-text);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* Eigene Zeile statt Inline: bei langen Spannen ("+145 bis +350") passt die
   Einheit auf 375px sonst nicht mehr daneben und bricht mal so, mal so um. */
.station__unit {
  display: block;
  margin-top: 0.1em;
  font-size: 1.115rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
}

.station__caveat {
  display: block;
  margin-top: var(--space-2);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.station__note {
  color: var(--color-text-muted);
  max-width: 56ch;
}

/* ---------- Sektion 5: Vertrauensblock ---------- */
.trust__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: baseline;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.trust__meta .divider { color: var(--color-border); }

/* ---------- Karten ---------- */
.card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}

.card__title { margin-bottom: var(--space-2); }

.card__text {
  color: var(--color-text-muted);
  margin: 0;
}

.card--link {
  height: 100%;
  margin-bottom: 0;
  color: inherit;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.card--link:hover {
  color: inherit;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card__icon {
  display: block;
  margin-bottom: var(--space-4);
  color: var(--color-accent);
  /* Einheitlicher Strichstil fuer alle Piktogramme */
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card--topic { display: flex; flex-direction: column; }

.card__preview {
  margin: var(--space-4) 0 0;
  margin-top: auto;   /* buendig am Kartenfuss, egal wie lang der Teaser ist */
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.card__cue {
  display: inline-block;
  margin-top: var(--space-4);
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.topic-section { margin-bottom: var(--space-12); }

/* ---------- Themenseite: Parteien, Werte, Belege ---------- */
.partei-karte .card__title { font-size: 1.06rem; }

/* Fehlende Angaben werden nicht versteckt, sondern ruhig als offen markiert -
   eine leere Flaeche waere fuer den Lesenden nicht von einem Fehler zu
   unterscheiden. */
.card__text--offen { font-style: italic; }

.wertliste {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
}

.wertliste__item + .wertliste__item {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

/* Zahlen bleiben Anthrazit: kein Gruen/Rot fuer Plus/Minus, damit die
   Darstellung nicht bewertet (Kernprinzip 4). */
.wertliste__wert {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text);
}

.wertliste__kontext {
  margin: var(--space-2) 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.quellenzeile {
  margin: var(--space-2) 0 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.persona-summary--inline { margin-bottom: var(--space-6); }

.aufklapper {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-6);
  background: var(--color-accent-soft);
  border-radius: var(--radius);
}

.aufklapper__summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-accent);
  /* Mindestens 44px Touch-Ziel */
  padding-block: var(--space-3);
}

.aufklapper .card__text + .card__text { margin-top: var(--space-3); }
.aufklapper .card__text:last-child { margin-bottom: var(--space-3); }

.datenstand {
  margin: var(--space-8) 0 var(--space-2);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.quellenliste {
  margin: 0;
  padding-left: var(--space-6);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.quellenliste li + li { margin-top: var(--space-3); }

/* Die Annahmen der Studie gehoeren sichtbar an die Quelle, nicht in eine
   Fussnote (§ 19 MStV: Annahmen nicht unterschlagen). */
.quellenliste__notiz { display: block; }

/* ---------- Themen-Grid: 1 / 2 / 4 Spalten ---------- */
.topic-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  background: var(--color-accent);
  color: #FFFFFF;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.button:hover {
  background: var(--color-accent-dark);
  color: #FFFFFF;
}

/* ---------- Brotkrumen ---------- */
.breadcrumb {
  margin-bottom: var(--space-6);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.breadcrumb span { margin-inline: var(--space-2); }
.breadcrumb span:last-child { margin-inline: 0; }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal-section {
  margin-bottom: var(--space-8);
  max-width: 68ch;
}

.legal-section h2 {
  font-size: 1.185rem;
  margin-bottom: var(--space-3);
}

.legal-section h3 {
  font-size: 1rem;
  margin: var(--space-6) 0 var(--space-2);
}

.legal-section address {
  font-style: normal;
  line-height: 1.7;
}

.legal-section ul {
  margin: 0 0 var(--space-4);
  padding-left: 1.2em;
}

.legal-section li { margin-bottom: var(--space-1); }

.legal-section a { overflow-wrap: anywhere; }

.legal-meta {
  margin-top: var(--space-12);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--space-16);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-block: var(--space-8);
}

.site-footer__brand { margin: 0; }

.site-footer__wordmark {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-footer__credit {
  margin: var(--space-1) 0 0;
  color: var(--color-text-muted);
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-6);
}

.site-footer__meta {
  margin: 0;
  color: var(--color-text-muted);
}

/* ---------- Ab Tablet ---------- */
@media (min-width: 40em) {
  h1 { font-size: 2.35rem; }
  .hero__title { font-size: 3rem; }
  .hero__inner { padding-block: var(--space-24); }

  .topic-grid { grid-template-columns: repeat(2, 1fr); }

  .step__options { grid-template-columns: repeat(2, 1fr); }
  .station__value { font-size: 3rem; }

  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

/* ---------- Ab Desktop ---------- */
@media (min-width: 64em) {
  .topic-grid { grid-template-columns: repeat(4, 1fr); }

  .station__value { font-size: 3.5rem; }   /* 56px+ auf dem Desktop */

  .nav-toggle { display: none; }

  /* Navigation immer sichtbar, egal was JS gesetzt hat */
  .site-nav,
  .site-nav[hidden] {
    display: block;
    flex-basis: auto;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-8);
    padding-bottom: 0;
  }

  .section { padding-block: var(--space-24); }  /* 6rem oben und unten */
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue__chevron { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
