/* assets/css/docs.css – docs.koruit.net
 * Schriften liegen lokal (keine Verbindung zu Google beim Seitenaufruf).
 * Akzentfarbe je Bereich über --akzent (siehe inhalte/<bereich>/bereich.php).
 */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}

:root {
  --akzent: #1f66ff;
  --akzent-dunkel: #6f9bff;
  --ink: #0d1b34;
  --ink-soft: #3c4f72;
  --ink-faint: #6a7a98;
  --bg: #ffffff;
  --bg-alt: #f5f8fd;
  --surface: #ffffff;
  --line: rgba(13, 27, 52, 0.1);
  --line-stark: rgba(13, 27, 52, 0.18);
  --code-bg: #f1f4f9;
  --schatten: 0 1px 2px rgba(13, 27, 52, 0.06), 0 10px 30px rgba(13, 27, 52, 0.08);
  --schatten-hoch: 0 4px 10px rgba(13, 27, 52, 0.08), 0 24px 60px rgba(13, 27, 52, 0.18);
  --tipp: #1f7a4d;      --tipp-bg: #eaf6ef;
  --hinweis: #1f66ff;   --hinweis-bg: #eaf1ff;
  --achtung: #a66300;   --achtung-bg: #fff5e1;
  --wichtig: #b42335;   --wichtig-bg: #fdecee;
  --kopf-hoehe: 64px;
  --nav-breite: 280px;
  --toc-breite: 240px;
  --radius: 12px;
  --schrift: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --schrift-titel: "Space Grotesk", var(--schrift);
  --schrift-code: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --akzent: var(--akzent-dunkel);
    --ink: #e7ecf5;
    --ink-soft: #b4bfd3;
    --ink-faint: #8391ab;
    --bg: #0c1424;
    --bg-alt: #111c30;
    --surface: #142036;
    --line: rgba(231, 236, 245, 0.1);
    --line-stark: rgba(231, 236, 245, 0.2);
    --code-bg: #1a2740;
    --schatten: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.3);
    --schatten-hoch: 0 4px 10px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.5);
    --tipp: #5fd39a;      --tipp-bg: rgba(95, 211, 154, 0.1);
    --hinweis: #7ea8ff;   --hinweis-bg: rgba(126, 168, 255, 0.1);
    --achtung: #f3b54a;   --achtung-bg: rgba(243, 181, 74, 0.1);
    --wichtig: #ff8593;   --wichtig-bg: rgba(255, 133, 147, 0.1);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --akzent: var(--akzent-dunkel);
  --ink: #e7ecf5;
  --ink-soft: #b4bfd3;
  --ink-faint: #8391ab;
  --bg: #0c1424;
  --bg-alt: #111c30;
  --surface: #142036;
  --line: rgba(231, 236, 245, 0.1);
  --line-stark: rgba(231, 236, 245, 0.2);
  --code-bg: #1a2740;
  --schatten: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.3);
  --schatten-hoch: 0 4px 10px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.5);
  --tipp: #5fd39a;      --tipp-bg: rgba(95, 211, 154, 0.1);
  --hinweis: #7ea8ff;   --hinweis-bg: rgba(126, 168, 255, 0.1);
  --achtung: #f3b54a;   --achtung-bg: rgba(243, 181, 74, 0.1);
  --wichtig: #ff8593;   --wichtig-bg: rgba(255, 133, 147, 0.1);
  color-scheme: dark;
}

/* ---------- Grundlagen ---------- */

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

html { scroll-padding-top: calc(var(--kopf-hoehe) + 24px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--akzent); text-underline-offset: 3px; }

img { max-width: 100%; }

.icon { width: 18px; height: 18px; flex: none; vertical-align: middle; }

kbd {
  font-family: var(--schrift);
  font-size: 11px;
  line-height: 1;
  padding: 4px 6px;
  border: 1px solid var(--line-stark);
  border-bottom-width: 2px;
  border-radius: 6px;
  color: var(--ink-faint);
  background: var(--surface);
  white-space: nowrap;
}

.springen {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--akzent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}
.springen:focus { left: 16px; }

:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 4px; }

.nur-mobil { display: none !important; }

:root:not([data-theme="dark"]) .nur-dunkel { display: none; }
:root[data-theme="dark"] .nur-hell { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .nur-hell { display: none; }
  :root:not([data-theme]) .nur-dunkel { display: inline; }
}

/* ---------- Kopfzeile ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--kopf-hoehe);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.kopf-innen {
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.marke {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--schrift-titel);
  font-size: 18px;
  white-space: nowrap;
}
.marke img { border-radius: 8px; }
.marke strong { font-weight: 700; }

.kopf-trenner { color: var(--line-stark); font-size: 22px; }

.bereichswahl { position: relative; }

.bereichswahl-knopf {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font: 600 15px var(--schrift);
  cursor: pointer;
}
.bereichswahl-knopf:hover, .bereichswahl-knopf[aria-expanded="true"] { background: var(--bg-alt); border-color: var(--line); }
.bereichswahl-knopf .icon { width: 16px; height: 16px; color: var(--ink-faint); }

.bereichswahl-liste {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--schatten-hoch);
}
.bereichswahl-liste a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}
.bereichswahl-liste a:hover, .bereichswahl-liste a[aria-current] { background: var(--bg-alt); }
.bereichswahl-liste small { display: block; color: var(--ink-faint); font-size: 13px; }
.bereichswahl-kategorie { display: block; padding: 10px 10px 4px; color: var(--ink-faint); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.bereichswahl-liste .bereichswahl-alle {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-soft);
}

.suchfeld {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(340px, 32vw);
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--line-stark);
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--ink-faint);
  font: 15px var(--schrift);
  cursor: pointer;
  text-align: left;
}
.suchfeld span { flex: 1; }
.suchfeld:hover { border-color: var(--akzent); }

.kopf-rechts { display: flex; align-items: center; gap: 6px; }

.kopf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.kopf-link .icon { width: 15px; height: 15px; }
.kopf-link:hover { background: var(--bg-alt); color: var(--ink); }

.kopf-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
}
.kopf-knopf:hover { background: var(--bg-alt); color: var(--ink); }

/* ---------- Dreispaltiges Raster ---------- */

.raster {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--nav-breite) minmax(0, 1fr) var(--toc-breite);
  min-height: calc(100vh - var(--kopf-hoehe));
}

/* Linke Navigation */
.seitennav {
  position: sticky;
  top: var(--kopf-hoehe);
  height: calc(100vh - var(--kopf-hoehe));
  overflow-y: auto;
  padding: 28px 16px 40px 24px;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
}

.nav-gruppe + .nav-gruppe { margin-top: 22px; }

.nav-gruppe-titel {
  margin: 0 0 6px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.seitennav ul { list-style: none; margin: 0; padding: 0; }

.seitennav a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
}
.seitennav a:hover { background: var(--bg-alt); color: var(--ink); }
.seitennav a[aria-current="page"] {
  background: color-mix(in srgb, var(--akzent) 11%, transparent);
  color: var(--akzent);
  font-weight: 600;
}

.nav-abdunkler { display: none; }

/* Artikel */
.artikel-spalte { padding: 40px 56px 64px; min-width: 0; }

.artikel { max-width: 780px; margin: 0 auto; }

.brotkrumen {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--ink-faint);
}
.brotkrumen a { color: var(--akzent); text-decoration: none; font-weight: 500; }
.brotkrumen .icon { width: 14px; height: 14px; }

.artikel h1 {
  margin: 0 0 12px;
  font-family: var(--schrift-titel);
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.einleitung { margin: 0 0 32px; font-size: 18px; color: var(--ink-soft); }

/* Inhalt aus Markdown */
.inhalt h2, .inhalt h3, .inhalt h4 {
  position: relative;
  font-family: var(--schrift-titel);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.inhalt h2 { margin: 48px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 26px; }
.inhalt h3 { margin: 32px 0 10px; font-size: 20px; }
.inhalt h4 { margin: 24px 0 8px; font-size: 17px; }
.inhalt > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.anker-link {
  margin-left: 8px;
  color: var(--ink-faint);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.inhalt :is(h2, h3, h4):hover .anker-link, .anker-link:focus { opacity: 1; }

.inhalt p, .inhalt ul, .inhalt ol { margin: 0 0 16px; }
.inhalt li { margin: 4px 0; }
.inhalt li > ul, .inhalt li > ol { margin: 4px 0 0; }
.inhalt ul, .inhalt ol { padding-left: 24px; }

/* Nummerierte Listen als Schrittfolge */
.inhalt > ol { list-style: none; padding-left: 0; counter-reset: schritt; }
.inhalt > ol > li {
  position: relative;
  padding-left: 42px;
  margin: 10px 0;
  counter-increment: schritt;
}
.inhalt > ol > li::before {
  content: counter(schritt);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--akzent) 13%, transparent);
  color: var(--akzent);
  font: 700 14px/1 var(--schrift-titel);
}

.inhalt code {
  font-family: var(--schrift-code);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--code-bg);
}

.inhalt pre {
  margin: 0 0 20px;
  padding: 16px 18px;
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--code-bg);
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.55;
}
.inhalt pre code { padding: 0; background: none; }

.inhalt hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

.inhalt blockquote {
  margin: 0 0 16px;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--line-stark);
  color: var(--ink-soft);
}

.pfad {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border: 1px solid var(--line-stark);
  border-radius: 6px;
  background: var(--bg-alt);
  font-size: 0.9em;
  font-weight: 500;
  white-space: nowrap;
}
.pfad-pfeil { color: var(--ink-faint); }

/* Tabellen */
.tabelle { margin: 0 0 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.tabelle table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabelle th, .tabelle td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tabelle th { background: var(--bg-alt); font-weight: 600; font-size: 14px; white-space: nowrap; }
.tabelle tr:last-child td { border-bottom: 0; }

/* Hinweiskästen */
.hinweis {
  --farbe: var(--hinweis);
  margin: 0 0 20px;
  padding: 14px 18px 2px;
  border: 1px solid color-mix(in srgb, var(--farbe) 25%, transparent);
  border-left: 4px solid var(--farbe);
  border-radius: 10px;
  background: var(--hinweis-bg);
}
.hinweis-tipp { --farbe: var(--tipp); background: var(--tipp-bg); }
.hinweis-achtung { --farbe: var(--achtung); background: var(--achtung-bg); }
.hinweis-wichtig { --farbe: var(--wichtig); background: var(--wichtig-bg); }
.hinweis-titel { margin: 0 0 4px !important; color: var(--farbe); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase; }
.hinweis p, .hinweis ul, .hinweis ol { margin-bottom: 12px; }
.hinweis ol { list-style: decimal; padding-left: 22px; }
.hinweis ol > li { padding-left: 0; }
.hinweis ol > li::before { content: none; }

.stand { margin: 48px 0 0; font-size: 14px; color: var(--ink-faint); }

/* Blättern */
.blaettern { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.blaettern a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.blaettern a:hover { border-color: var(--akzent); box-shadow: var(--schatten); }
.blaettern small { display: flex; align-items: center; gap: 4px; color: var(--ink-faint); font-size: 13px; }
.blaettern small .icon { width: 14px; height: 14px; }
.blaettern span { font-weight: 600; color: var(--akzent); }
.blaettern-weiter { grid-column: 2; text-align: right; align-items: flex-end; }

/* Rechte Spalte: Inhaltsverzeichnis */
.toc {
  position: sticky;
  top: var(--kopf-hoehe);
  height: calc(100vh - var(--kopf-hoehe));
  overflow-y: auto;
  padding: 40px 24px 40px 8px;
  font-size: 14px;
  scrollbar-width: thin;
}
.toc-titel { margin: 0 0 10px; font-weight: 600; font-size: 13px; color: var(--ink); }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a {
  display: block;
  margin-left: -1px;
  padding: 4px 0 4px 14px;
  border-left: 2px solid transparent;
  color: var(--ink-faint);
  line-height: 1.4;
  text-decoration: none;
}
.toc .toc-ebene-3 a { padding-left: 26px; font-size: 13px; }
.toc a:hover { color: var(--ink); }
.toc a.aktiv { color: var(--akzent); border-left-color: var(--akzent); font-weight: 500; }

.toc-hilfe {
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--ink-soft);
}
.toc-hilfe p { margin: 0 0 6px; }
.toc-hilfe strong { color: var(--ink); }
.toc-hilfe a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.toc-hilfe .icon { width: 15px; height: 15px; }

/* ---------- Startseite ---------- */

.start { max-width: 1160px; margin: 0 auto; padding: 0 24px 72px; }

.start-kopf { padding: 72px 0 48px; text-align: center; }
.start-dachzeile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--akzent) 10%, transparent);
  color: var(--akzent);
  font-weight: 600;
  font-size: 14px;
}
.start-kopf h1 {
  margin: 0 0 12px;
  font-family: var(--schrift-titel);
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.start-kopf > p { margin: 0 auto 28px; max-width: 560px; font-size: 18px; color: var(--ink-soft); }

.start-suche {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid var(--line-stark);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink-faint);
  font: 16px var(--schrift);
  text-align: left;
  box-shadow: var(--schatten);
  cursor: pointer;
}
.start-suche span { flex: 1; }
.start-suche:hover { border-color: var(--akzent); }

.start-bereiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 360px)); justify-content: center; gap: 20px; }
.start-kategorie { margin: 40px 0 16px; text-align: center; font-family: var(--schrift-titel); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }
.start-kategorie:first-of-type { margin-top: 0; }

.bereich-karte {
  --karte-farbe: var(--akzent);
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.bereich-karte:hover { transform: translateY(-2px); box-shadow: var(--schatten-hoch); border-color: var(--karte-farbe); }
.bereich-karte img { margin-bottom: 14px; }
.bereich-karte h2 { margin: 0; font-family: var(--schrift-titel); font-size: 24px; }
.bereich-untertitel { margin: 0 0 10px; color: var(--karte-farbe); font-weight: 600; font-size: 14px; }
.bereich-karte p { margin: 0 0 14px; color: var(--ink-soft); }
.bereich-karte ul { margin: 0 0 18px; padding-left: 18px; color: var(--ink-soft); font-size: 15px; }
.bereich-karte-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--karte-farbe); font-weight: 600; }
.bereich-karte-link .icon { transition: transform 0.15s; }
.bereich-karte:hover .bereich-karte-link .icon { transform: translateX(3px); }

.start-kontakt {
  margin-top: 56px;
  padding: 36px;
  border-radius: 18px;
  background: var(--bg-alt);
  text-align: center;
}
.start-kontakt h2 { margin: 0 0 6px; font-family: var(--schrift-titel); font-size: 24px; }
.start-kontakt p { margin: 0 0 18px; color: var(--ink-soft); }

.knopf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--akzent);
  border-radius: 10px;
  background: var(--akzent);
  color: #fff;
  font: 600 15px var(--schrift);
  text-decoration: none;
  cursor: pointer;
}
:root[data-theme="dark"] .knopf { color: #0c1424; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .knopf { color: #0c1424; } }
.knopf-leise { background: none; color: var(--akzent) !important; }
.knopfreihe { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.fehlerseite { max-width: 620px; margin: 0 auto; padding: 96px 24px; text-align: center; }
.fehlercode { margin: 0; font: 700 72px/1 var(--schrift-titel); color: var(--akzent); }
.fehlerseite h1 { font-family: var(--schrift-titel); }
.fehlerseite p { color: var(--ink-soft); }

/* ---------- Fußzeile ---------- */

.fuss { border-top: 1px solid var(--line); background: var(--bg); }
.mit-bereich .fuss { position: relative; z-index: 1; }
.fuss-innen {
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-faint);
}
.fuss nav { display: flex; flex-wrap: wrap; gap: 18px; }
.fuss a { color: var(--ink-faint); text-decoration: none; }
.fuss a:hover { color: var(--ink); }

/* ---------- Suche ---------- */

.suche { position: fixed; inset: 0; z-index: 80; }
.suche-hintergrund { position: absolute; inset: 0; background: rgba(8, 15, 30, 0.5); backdrop-filter: blur(3px); }
.suche-fenster {
  position: relative;
  width: min(640px, calc(100% - 32px));
  max-height: min(620px, calc(100vh - 120px));
  margin: 80px auto 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--schatten-hoch);
  overflow: hidden;
}
.suche-kopf { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); color: var(--ink-faint); }
.suche-kopf input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font: 17px var(--schrift);
  padding: 6px 0;
}
.suche-kopf input::-webkit-search-cancel-button { display: none; }
.suche-ergebnisse { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.suche-ergebnisse a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}
.suche-ergebnisse a.aktiv, .suche-ergebnisse a:hover { background: color-mix(in srgb, var(--akzent) 10%, transparent); }
.suche-ergebnisse small { display: block; color: var(--ink-faint); font-size: 12px; }
.suche-ergebnisse strong { display: block; font-weight: 600; }
.suche-ergebnisse span { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.suche-ergebnisse mark { background: color-mix(in srgb, var(--akzent) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.suche-leer { margin: 0; padding: 28px 20px; text-align: center; color: var(--ink-faint); font-size: 15px; }

/* ---------- Responsiv ---------- */

@media (max-width: 1200px) {
  .raster { grid-template-columns: var(--nav-breite) minmax(0, 1fr); }
  .toc { display: none; }
  .artikel-spalte { padding: 36px 40px 56px; }
}

@media (max-width: 900px) {
  .nur-mobil { display: inline-flex !important; }
  .suchfeld, .kopf-link, .kopf-trenner { display: none; }
  .kopf-innen { padding: 0 12px; gap: 6px; }
  .kopf-rechts { margin-left: auto; }
  .marke span { display: none; }
  .bereichswahl-liste { position: fixed; left: 16px; right: 16px; width: auto; top: calc(var(--kopf-hoehe) - 4px); }

  .raster { display: block; }
  .seitennav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 60;
    width: min(320px, 86vw);
    height: 100%;
    padding: 0 16px 32px;
    background: var(--bg);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  .seitennav-kopf {
    position: sticky;
    top: 0;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    height: var(--kopf-hoehe);
    margin-bottom: 8px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  body.nav-offen .seitennav { transform: none; box-shadow: var(--schatten-hoch); }
  body.nav-offen .nav-abdunkler { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(8, 15, 30, 0.45); }
  body.nav-offen { overflow: hidden; }

  .artikel-spalte { padding: 24px 16px 48px; }
  .einleitung { font-size: 17px; }
  .inhalt h2 { font-size: 23px; }
  .blaettern { grid-template-columns: 1fr; }
  .blaettern-weiter { grid-column: 1; }
  .start { padding: 0 16px 56px; }
  .start-kopf { padding: 48px 0 32px; }
  .start-bereiche { grid-template-columns: 1fr; }
  .start-suche kbd { display: none; }
  .suche-fenster { margin-top: 16px; max-height: calc(100vh - 32px); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .kopf, .seitennav, .toc, .blaettern, .fuss, .anker-link { display: none !important; }
  .raster { display: block; }
  .artikel-spalte { padding: 0; }
}
