@import url("../fonts/fonts.css");

/* =========================================================================
   die-spielsucht.de . Design-System
   -------------------------------------------------------------------------
   Aesthetik: redaktionell-institutionell. Keine Design-Systems-Bibliothek,
   bewusst natives CSS (Trust-first, kein Build-Schritt, kein Framework-Gewicht).

   Feste Regeln fuer dieses Projekt:
   . EIN Akzent (Terracotta), in beiden Farbschemata identisch eingesetzt.
   . ZWEI Radien: --r-control (Bedienelemente), --r-surface (Flaechen/Medien).
     Sonst nichts. Keine Pillen, keine gemischten Rundungen.
   . Bewegung nur als Rueckmeldung auf Nutzeraktionen (MOTION 3/10).
     Keine Scroll-Effekte, keine Endlosschleifen.
   . Kein Text unter 4.5:1 Kontrast. --ink-3 ist die hellste Textfarbe.
   ========================================================================= */

/* ---------- 1. Reset ---------------------------------------------------- */

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

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

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul {
  margin: 0;
  padding: 0;
}

ul[class], ol[class] { list-style: none; }

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

input, button, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

:where(a) { color: inherit; }

/* ---------- 2. Tokens .................................................... */

:root {
  /* Schrift */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;

  /* Fluide Typo-Skala */
  --t-display: clamp(2.125rem, 1.35rem + 3.1vw, 3.25rem);
  --t-h1:      clamp(1.9rem,   1.3rem  + 2.4vw, 2.75rem);
  --t-h2:      clamp(1.4rem,   1.19rem + 0.85vw, 1.8rem);
  --t-h3:      clamp(1.125rem, 1.06rem + 0.25vw, 1.25rem);
  --t-lead:    clamp(1.0625rem, 1.01rem + 0.22vw, 1.1875rem);
  --t-body:    1rem;
  --t-small:   0.875rem;
  --t-meta:    0.8125rem;
  --t-label:   0.6875rem;

  /* Raster */
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4.2vw, 2.875rem);
  --measure: 68ch;

  /* Abstaende */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 2.75rem;  --s-8: 3.5rem;
  --s-9: 4.5rem;   --s-10: 6rem;

  /* Radien . nur diese zwei */
  --r-control: 6px;
  --r-surface: 10px;

  /* Bewegung */
  --t-fast: 130ms cubic-bezier(.2, 0, 0, 1);
  --t-base: 190ms cubic-bezier(.2, 0, 0, 1);

  /* Farben . hell
     Palette: Terracotta auf kuehlem Schiefergrau. Der warme Akzent traegt die
     Ansprache, die kuehlen Neutraltoene halten die Seite sachlich. Bewusst
     KEIN warmes Beige als Flaeche, das wuerde die Fotografie kippen lassen. */
  --paper: #fbfbfc;
  --surface: #f1f2f4;
  --surface-2: #e6e8ec;
  --ink: #1b1d24;
  --ink-2: #4c525f;
  --ink-3: #6b7180;
  --rule: #e3e5ea;
  --rule-strong: #1b1d24;
  --accent: #9a3d1f;        /* 6.7:1 auf --paper */
  --accent-solid: #9a3d1f;  /* 6.9:1 mit weisser Schrift */
  --accent-hover: #7d3018;
  --on-accent: #ffffff;
  --field: #ffffff;
  --shadow: 0 1px 2px rgba(27, 29, 36, .05), 0 8px 24px -12px rgba(27, 29, 36, .16);

  color-scheme: light;
}

/* Farben . dunkel. Bewusst als zwei Selektoren statt light-dark(),
   damit auch aeltere Browser ein vollstaendiges Set bekommen. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14161c;
    --surface: #1c1f27;
    --surface-2: #242833;
    --ink: #e8e9ee;
    --ink-2: #b3b8c4;
    --ink-3: #8b909d;
    --rule: #2b2f3a;
    --rule-strong: #4d5464;
    --accent: #e8916b;        /* 7.7:1 auf --paper */
    --accent-solid: #a8471f;  /* 5.9:1 mit weisser Schrift */
    --accent-hover: #bd5326;
    --on-accent: #ffffff;
    --field: #101217;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7);

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #14161c;
  --surface: #1c1f27;
  --surface-2: #242833;
  --ink: #e8e9ee;
  --ink-2: #b3b8c4;
  --ink-3: #8b909d;
  --rule: #2b2f3a;
  --rule-strong: #4d5464;
  --accent: #e8916b;    /* 7.7:1 auf --paper */
  --accent-solid: #a8471f;  /* 5.9:1 mit weisser Schrift */
  --accent-hover: #bd5326;
  --on-accent: #ffffff;
  --field: #101217;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7);

  color-scheme: dark;
}

/* ---------- 3. Basis ---------------------------------------------------- */

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; padding-bottom: var(--s-8); }

::selection { background: var(--accent-solid); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* Ueberschriften, die nach einem Schritt per Skript fokussiert werden, damit
   Screenreader den neuen Kontext vorlesen. Sie sind nicht per Tab erreichbar,
   deshalb braucht es dort keinen sichtbaren Ring. */
[tabindex="-1"]:focus { outline: none; }

.skip {
  position: absolute;
  left: var(--s-4);
  top: -100%;
  z-index: 60;
  background: var(--accent-solid);
  color: var(--on-accent);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-control);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: var(--s-4); }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 4. Typografie ----------------------------------------------- */

.display, .h1, .h2, .h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.display { font-size: var(--t-display); line-height: 1.1; }
.h1      { font-size: var(--t-h1);      line-height: 1.13; }
.h2      { font-size: var(--t-h2);      line-height: 1.2;  font-weight: 500; letter-spacing: -0.012em; }
.h3      { font-size: var(--t-h3);      line-height: 1.3;  font-weight: 500; letter-spacing: -0.006em; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 46ch;
  text-wrap: pretty;
}

.meta { font-size: var(--t-meta); color: var(--ink-3); }
.small { font-size: var(--t-small); color: var(--ink-2); }

/* Rationiert eingesetzt: hoechstens ein Label je drei Abschnitte. */
.label {
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Ressort-Kennzeichnung an Artikeln. Inhaltliche Taxonomie, kein Abschnitts-Label. */
.ressort {
  font-size: var(--t-meta);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent);
  text-decoration: none;
}
a.ressort:hover { text-decoration: underline; text-underline-offset: 3px; }

.num {
  font-family: var(--font-serif);
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.02em;
}

/* ---------- 5. Layout --------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 780px; }

.rule-top { border-top: 1px solid var(--rule); }
.rule-bottom { border-bottom: 1px solid var(--rule); }
.rule-strong-bottom { border-bottom: 1px solid var(--rule-strong); }

.section { padding-block: var(--s-8); }

/* Abstand über der Trennlinie: das Section-Padding wirkt nur unterhalb der
   border-top. Ohne eigenen Außenabstand klebt die Linie an Inhalten davor,
   die keinen Abstand nach unten mitbringen (z. B. Artikel/Prose-Blöcke). */
.section.rule-top { margin-top: var(--s-7); }
.section--tight { padding-block: var(--s-7); }
.section--loose { padding-block: var(--s-9); }

/* ---------- 6. Kopf ----------------------------------------------------- */

.masthead { border-bottom: 1px solid var(--rule-strong); }
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 68px;
  padding-block: var(--s-3);
}

/* Marke: Signet (offener Kreis) + Wortmarke in Source Serif 4 SemiBold.
   Konstruktion (.claude/skills/logo-design/SKILL.md, Exploration v3/08):
   . Ring r = 44/100 mit 70-Grad-Oeffnung nach rechts oben — der
     durchbrochene Kreislauf.
   . Kantenlaenge 0.71em = Versalhoehe von Source Serif 4 (~0.67em)
     plus ~4 % Overshoot; per transform zusaetzlich 4 % unter die
     Grundlinie gesetzt (Overshoot beidseitig).
   . Strichstaerke 12/100 = Stammstaerke des SemiBold.
   . Divis neu gezeichnet: Laenge 0.42em, Hoehe = Stammstaerke 0.088em,
     Mitte auf halber x-Hoehe (0.215em + 0.044em ueber Grundlinie).
   Alles in em: skaliert ueber die font-size von .brand. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 1.3125rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand__ring {
  width: 1.35em;
  height: 1.35em;
  flex: none;
  color: var(--accent);
}
.brand__sub {
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--ink-2);
}
a.brand:hover .brand__sub { color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.1vw, 1.625rem); }
.nav a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  padding-block: var(--s-2);
  transition: color var(--t-fast);
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--ink);
  padding: var(--s-2);
  margin-right: calc(var(--s-2) * -1);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .i-x { display: none; }
.nav-toggle[aria-expanded="true"] .i-x { display: block; }
.nav-toggle[aria-expanded="true"] .i-list { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule-strong);
    box-shadow: var(--shadow);
    padding: var(--s-2) var(--gutter) var(--s-4);
  }
  .nav[data-open="true"] { display: flex; }
  .nav a {
    font-size: 0.9375rem;
    text-transform: none;
    letter-spacing: 0;
    padding-block: var(--s-3);
    border-bottom: 1px solid var(--rule);
  }
  .nav a[aria-current="page"] { box-shadow: none; }
  .masthead { position: relative; }
}

/* ---------- 7. Bedienelemente ------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: var(--r-control);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), transform var(--t-fast);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent-solid); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }

.btn--outline { border-color: var(--rule-strong); color: var(--ink); }
.btn--outline:hover { background: var(--surface); }

/* Nur innerhalb des Akzentbandes. */
.btn--on-accent { background: var(--on-accent); color: var(--accent-solid); }
.btn--on-accent:hover { background: #eef0fb; }

.btn--block { width: 100%; }

.textlink {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--accent);
  transition: color var(--t-fast);
}
.textlink:hover { color: var(--accent); }

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.field > label { font-size: var(--t-small); font-weight: 600; }
.field__hint { font-size: var(--t-meta); color: var(--ink-3); }
.field__error {
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--accent);
}
.field input {
  min-height: 48px;
  padding: 0 var(--s-4);
  background: var(--field);
  color: var(--ink);
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--r-control);
  width: 100%;
}
.field input::placeholder { color: var(--ink-3); opacity: 1; }
.field input[aria-invalid="true"] { border-color: var(--accent); }

.field-row { display: flex; gap: var(--s-3); align-items: flex-end; flex-wrap: wrap; }
/* PLZ-Suchformular (form.field-row): Der Button sitzt exakt auf der Zeile des
   Eingabefelds – der Hinweistext darunter beeinflusst die Ausrichtung nicht. */
form.field-row {
  display: grid;
  grid-template-columns: minmax(0, 18rem) auto;
  gap: var(--s-2) var(--s-3);
  align-items: center;
  justify-content: start;
}
form.field-row .field { display: contents; }
form.field-row .field > label { grid-row: 1; grid-column: 1; }
form.field-row .field input { grid-row: 2; grid-column: 1; }
form.field-row .field .field__hint { grid-row: 3; grid-column: 1 / -1; }
form.field-row > .btn { grid-row: 2; grid-column: 2; }
/* Nicht mitwachsen lassen: ein fuenfstelliges Feld darf nicht die Panelbreite fuellen. */
.field-row .field { flex: 0 1 18rem; }

/* ---------- 8. Startseite: Aufmacher ------------------------------------ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.hero__body { max-width: 48ch; }
.hero .display { max-width: 13ch; margin-bottom: var(--s-5); }
.hero .lead { max-width: 42ch; margin-bottom: var(--s-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-5); align-items: center; }

.hero__figure {
  position: relative;
  border-radius: var(--r-surface);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 3 / 4;
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero__body { max-width: none; }
  .hero .display { max-width: 18ch; }
  .hero__figure { aspect-ratio: 4 / 3; order: -1; }
}

/* ---------- 9. Soforthilfe-Band ----------------------------------------- */

.sofort {
  background: var(--accent-solid);
  color: var(--on-accent);
}
.sofort__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-5) var(--s-8);
  align-items: center;
  padding-block: var(--s-6);
}
.sofort h2 {
  font-family: var(--font-serif);
  font-size: var(--t-h3);
  font-weight: 500;
  margin-bottom: var(--s-2);
}
.sofort p { font-size: var(--t-small); color: rgba(255, 255, 255, .88); max-width: 52ch; }
.sofort__lines { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); }
.sofort__line { display: flex; flex-direction: column; gap: 2px; }
.sofort__line a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-serif);
  font-size: 1.3125rem;
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}
.sofort__line a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sofort__line a svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.sofort__line span { font-size: var(--t-meta); color: rgba(255, 255, 255, .82); }

@media (max-width: 860px) {
  .sofort__inner { grid-template-columns: 1fr; }
}

/* ---------- 10. Wege (Bento 1 + 2) -------------------------------------- */

.wege {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: var(--s-4);
}
.weg {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--s-2);
  min-height: 224px;
  padding: var(--s-6);
  border-radius: var(--r-surface);
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
  transition: transform var(--t-base);
}
.weg:active { transform: translateY(1px); }
.weg p { font-size: var(--t-small); max-width: 42ch; }

/* Zelle 1: Bild, ueber zwei Reihen */
.weg--gross { grid-row: span 2; min-height: 380px; color: #fff; }
.weg--gross img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.weg--gross::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(14, 15, 20, .88) 0%, rgba(14, 15, 20, .5) 45%, rgba(14, 15, 20, .18) 100%);
}
.weg--gross p { color: rgba(255, 255, 255, .9); }
.weg--gross:hover img { transform: scale(1.02); }
.weg--gross img { transition: transform 400ms cubic-bezier(.2, 0, 0, 1); }

/* Zelle 2: Vollflaechig Akzent */
.weg--akzent { background: var(--accent-solid); color: var(--on-accent); }
.weg--akzent p { color: rgba(255, 255, 255, .88); }
.weg--akzent:hover { background: var(--accent-hover); }

/* Zelle 3: Bild, gedeckt */
.weg--bild { color: #fff; }
.weg--bild img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.weg--bild::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(14, 15, 20, .86) 0%, rgba(14, 15, 20, .46) 60%, rgba(14, 15, 20, .2) 100%);
}
.weg--bild p { color: rgba(255, 255, 255, .9); }
.weg--bild img { transition: transform 400ms cubic-bezier(.2, 0, 0, 1); }
.weg--bild:hover img { transform: scale(1.02); }

@media (max-width: 800px) {
  .wege { grid-template-columns: 1fr; }
  .weg--gross { grid-row: auto; min-height: 300px; }
}

/* ---------- 11. Zahlen -------------------------------------------------- */

.zahlen {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.zahlen blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 1.05rem + 1.35vw, 1.9rem);
  line-height: 1.34;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.zahlen__list { display: grid; gap: var(--s-6); }
.zahlen__item { display: grid; gap: var(--s-1); }
.zahlen__item b { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.375rem); line-height: 1; color: var(--accent); }
.zahlen__item span { font-size: var(--t-small); color: var(--ink-2); max-width: 34ch; }

@media (max-width: 800px) { .zahlen { grid-template-columns: 1fr; } }

/* ---------- 12. Ratgeber ------------------------------------------------ */

.ratgeber {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 3.5rem);
}

.aufmacher { text-decoration: none; display: block; }
/* Ressort, Titel und Teaser sind spans im Link. Ohne block liefen sie in eine Zeile. */
.aufmacher > * { display: block; }
.aufmacher__media {
  border-radius: var(--r-surface);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 16 / 9;
  margin-bottom: var(--s-4);
}
.aufmacher__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms cubic-bezier(.2, 0, 0, 1);
}
.aufmacher:hover img { transform: scale(1.02); }
.aufmacher .h2 { margin-block: var(--s-2); max-width: 22ch; }
.aufmacher:hover .h2 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

.beitraege { display: grid; align-content: start; }
.beitraege > * {
  display: grid;
  gap: var(--s-1);
  padding-block: var(--s-4);
  border-top: 1px solid var(--rule);
  text-decoration: none;
}
.beitraege > *:first-child { border-top: 0; padding-top: 0; }
.beitraege .ressort { color: var(--ink-3); }
.beitraege a:hover .h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.beitraege a:hover .ressort { color: var(--accent); }

/* Noch unveroeffentlichte Beitraege: sichtbar gedaempft, nicht verlinkt. */
.beitraege > div .h3 { color: var(--ink-2); font-weight: 400; }

@media (max-width: 860px) { .ratgeber { grid-template-columns: 1fr; } }

/* ---------- 13. Angehoerige + Beratungssuche ---------------------------- */

.doppel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 3.5rem);
  align-items: center;
}
.doppel__figure {
  border-radius: var(--r-surface);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 3 / 2;
}
.doppel__figure img { width: 100%; height: 100%; object-fit: cover; }

.panel {
  background: var(--surface);
  border-radius: var(--r-surface);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.panel > * + * { margin-top: var(--s-4); }

@media (max-width: 800px) { .doppel { grid-template-columns: 1fr; } }

.suche__ergebnis {
  border-top: 1px solid var(--rule);
  padding-top: var(--s-4);
  font-size: var(--t-small);
  color: var(--ink-2);
}
.suche__ergebnis[hidden] { display: none; }

/* ---------- 14. Fuss ---------------------------------------------------- */

.footer {
  border-top: 1px solid var(--rule-strong);
  padding-block: var(--s-7);
  font-size: var(--t-small);
  color: var(--ink-2);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: var(--s-6) var(--s-5);
}
.footer__brand a { text-decoration: none; color: var(--ink); font-weight: 600; }
.footer__brand a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__brand p { max-width: 34ch; margin-top: var(--s-3); }
.footer__brand .brand { font-size: 1.0625rem; margin-top: 0; }
.footer__hotlines {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-4);
  line-height: 1.7;
}
.footer__hotlines p { max-width: none; margin-top: 0; }
.footer h2 {
  font-size: var(--t-meta);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--s-3);
}
.footer ul { display: grid; gap: var(--s-2); list-style: none; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal {
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  font-size: var(--t-meta);
  color: var(--ink-3);
}

@media (max-width: 980px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- 15. Artikel ------------------------------------------------- */

.krumen {
  font-size: var(--t-meta);
  color: var(--ink-3);
  padding-block: var(--s-4);
}
.krumen a { text-decoration: none; }
.krumen a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.krumen span[aria-current] { color: var(--ink); }
/* Trennzeichen: das "/" aus dem Markup wird zentral durch "›" ersetzt
   und bekommt beidseitig deutlichen Abstand. */
.krumen span[aria-hidden="true"] {
  display: inline-block;
  font-size: 0;
  margin-inline: var(--s-3);
}
.krumen span[aria-hidden="true"]::before {
  content: "\203A"; /* › */
  font-size: var(--t-meta);
}

.artikel { max-width: 720px; margin-inline: auto; }
.artikel__kopf { padding-bottom: var(--s-5); border-bottom: 1px solid var(--rule-strong); }
.artikel__kopf .h1 { margin-block: var(--s-3) var(--s-4); }

.artikel__medium {
  border-radius: var(--r-surface);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  margin-top: var(--s-6);
}
.artikel__medium img { width: 100%; height: 100%; object-fit: cover; }
.bildtext { font-size: var(--t-meta); color: var(--ink-3); margin-top: var(--s-2); }

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s-5); }
.prose p { color: var(--ink-2); line-height: 1.75; text-wrap: pretty; }
.prose .vorspann {
  font-family: var(--font-serif);
  font-size: var(--t-lead);
  line-height: 1.6;
  color: var(--ink);
}
.prose .h2 { margin-top: var(--s-8); }
.prose .h2 + p { margin-top: var(--s-4); }
.prose strong { color: var(--ink); font-weight: 600; }
/* Listen im Fliesstext: der Reset nimmt ol/ul jedes Padding — hier Einrueckung,
   Marker-Abstand und Luft zwischen den Punkten wiederherstellen. */
.prose ol:not([class]),
.prose ul:not([class]) {
  padding-left: var(--s-6);
  display: grid;
  gap: var(--s-3);
  color: var(--ink-2);
  line-height: 1.75;
}
.prose ol:not([class]) > li,
.prose ul:not([class]) > li { padding-left: var(--s-2); }
.prose li::marker { color: var(--ink-3); font-weight: 600; }
/* Tabellen im Fliesstext: linksbuendig, ruhige Zeilenlinien, Caption oben. */
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-small);
  line-height: 1.6;
}
.prose caption {
  caption-side: top;
  text-align: left;
  font-size: var(--t-meta);
  color: var(--ink-3);
  padding-bottom: var(--s-3);
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: var(--s-3) var(--s-5) var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
}
.prose th:last-child,
.prose td:last-child { padding-right: 0; }
.prose thead th {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--rule-strong);
}
.prose tbody th { color: var(--ink); font-weight: 600; }
.prose td { color: var(--ink-2); }
/* Nur Fliesstext-Links einfaerben. Buttons im Fliesstext behalten sonst die
   Akzentfarbe als Schriftfarbe und werden auf der Akzentflaeche unlesbar. */
.prose a:not([class]) { color: var(--accent); text-underline-offset: 3px; }

/* Signale: gruppiert statt Haarlinie unter jeder Zeile. */
.signale {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
  padding: 0;
  list-style: none;
}
.signale li {
  background: var(--surface);
  border-radius: var(--r-surface);
  padding: var(--s-5);
  font-size: var(--t-small);
  color: var(--ink-2);
}
.signale b { display: block; color: var(--ink); font-size: var(--t-body); margin-bottom: var(--s-1); }
@media (max-width: 620px) { .signale { grid-template-columns: 1fr; } }

.zitat {
  border-left: 3px solid var(--accent);
  padding-left: clamp(1rem, 3vw, 1.75rem);
}
.zitat p {
  font-family: var(--font-serif);
  font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem);
  line-height: 1.42;
  color: var(--ink);
}
.zitat footer { font-size: var(--t-meta); color: var(--ink-3); margin-top: var(--s-3); }

.einschub {
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--r-surface);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.einschub > * + * { margin-top: var(--s-4); }

.quellen { font-size: var(--t-small); color: var(--ink-2); margin-top: var(--s-8); }
.quellen .h3 { margin-bottom: var(--s-4); }
.quellen ol { padding-left: 1.25rem; display: grid; gap: var(--s-3); }
.quellen a { color: var(--accent); }

.weiter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.weiter a { text-decoration: none; display: grid; gap: var(--s-2); align-content: start; }
.weiter a:hover .h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
@media (max-width: 760px) { .weiter { grid-template-columns: 1fr; gap: var(--s-5); } }

/* ---------- 16. Selbsttest ---------------------------------------------- */

.test { max-width: 680px; margin-inline: auto; }

.merkmale { display: flex; flex-wrap: wrap; gap: var(--s-3); list-style: none; padding: 0; }
.merkmale li {
  font-size: var(--t-small);
  color: var(--ink-2);
  background: var(--surface);
  border-radius: var(--r-control);
  padding: var(--s-2) var(--s-4);
}

.fortschritt__kopf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  font-size: var(--t-meta);
  color: var(--ink-3);
  margin-bottom: var(--s-3);
}
.fortschritt__kopf b { color: var(--ink); font-weight: 600; }
.fortschritt__bahn {
  height: 4px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.fortschritt__wert {
  height: 100%;
  background: var(--accent-solid);
  border-radius: inherit;
  transition: width var(--t-base);
}

.frage {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 1.1rem + 1.15vw, 1.875rem);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin-block: var(--s-7) var(--s-6);
  text-wrap: pretty;
}

.antworten { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.antworten .btn { min-height: 60px; font-size: 1rem; }
@media (max-width: 460px) { .antworten { grid-template-columns: 1fr; } }

.ergebnis__wert {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: baseline;
  column-gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.ergebnis__wert b { font-size: clamp(3rem, 2.2rem + 3.4vw, 4.25rem); line-height: 1; color: var(--accent); }
.ergebnis__wert i { font-style: normal; font-size: 1.5rem; color: var(--ink-3); }
/* Nur das Label ansprechen. Die verschachtelte Zaehler-Span in i.num bleibt gross.
   Das Label steht als eigene Zeile unter der Zahl, nicht seitlich daneben. */
.ergebnis__wert > span {
  grid-column: 1 / -1;
  margin-top: var(--s-2);
  font-size: var(--t-small);
  color: var(--ink-2);
  line-height: 1.4;
}

.hinweis {
  font-size: var(--t-meta);
  color: var(--ink-3);
  max-width: 58ch;
  line-height: 1.6;
}

.stack > * + * { margin-top: var(--s-5); }
.stack--tight > * + * { margin-top: var(--s-4); }
.stack--loose > * + * { margin-top: var(--s-7); }

[hidden] { display: none !important; }

/* ---------- 17. Hilfe finden -------------------------------------------- */

.kontakte { display: grid; gap: var(--s-4); }
.kontakt {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-6);
  background: var(--surface);
  border-radius: var(--r-surface);
}
.kontakt__nummer {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2rem);
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--accent);
  text-decoration: none;
  justify-self: start;
}
.kontakt__nummer:hover { text-decoration: underline; text-underline-offset: 5px; }

.wege-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.wege-liste > div { display: grid; gap: var(--s-2); align-content: start; }
@media (max-width: 760px) { .wege-liste { grid-template-columns: 1fr; } }

/* ---------- 18. Bewegung reduzieren ------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 19. Druck --------------------------------------------------- */

@media print {
  .nav, .nav-toggle, .sofort, .skip { display: none; }
  body { background: #fff; color: #000; }
  .artikel { max-width: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.75em; }
}
