/* Rechtstexte: Impressum, Datenschutz, Nutzungsbedingungen */
:root {
  --crust: #141414; --ink-2: #444; --primary: #224db8; --wheat: #f4c133; --wheat-ink: #141414; --flour: #f5f6f8; --surface: #ffffff;
  --muted: #555; --line: #e4e6ea; --closed: #b3261e;
  --font-display: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* Dunkles Design */
:root[data-theme="dark"] { --crust: #eef0f3; --ink-2: #c9ced6; --primary: #8fb0ff; --wheat-ink: #141414; --flour: #0f1115; --surface: #1a1d23; --muted: #a9b0bb; --line: #2a2e35; --closed: #f08a80; color-scheme: dark; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--flour); color: var(--crust); font: 16px/1.6 var(--font-body); }
.r-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.r-top a.brand { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font: 700 18px/1 var(--font-display); }
.r-top a.brand img { width: 30px; height: 30px; }
.r-top nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.r-top nav a { color: var(--primary); text-decoration: none; font-weight: 500; }
.r-top nav a:hover { text-decoration: underline; }
.r-top nav a[aria-current] { color: var(--crust); font-weight: 700; text-decoration: none; }
main { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font: 700 34px/1.1 var(--font-display); letter-spacing: -.02em; margin: 8px 0 4px; }
h2 { font: 700 21px/1.25 var(--font-display); margin: 34px 0 6px; }
h3 { font-size: 16px; margin: 20px 0 4px; }
p, li { max-width: 68ch; }
ul { padding-left: 22px; }
a { color: var(--primary); text-underline-offset: 2px; }
.stand { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.karte { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.karte p { margin: 4px 0; }
.fehlt { background: color-mix(in srgb, var(--closed) 12%, transparent); color: #8a3120; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.entwurf { background: color-mix(in srgb, var(--wheat) 25%, var(--surface)); border-left: 4px solid var(--wheat); border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.toc { font-size: 15px; columns: 2 240px; padding-left: 20px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; margin: 8px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 700; }
@media (max-width: 560px) { h1 { font-size: 28px; } .r-top nav { font-size: 13px; } table, thead, tbody, tr, td, th { display: block; } thead { display: none; } td { border: 0; padding: 2px 0; } tr { border-bottom: 1px solid var(--line); padding: 8px 0; } td:first-child { font-weight: 700; } }
/* Dunkles Design */
:root[data-theme="dark"] .fehlt { color: var(--closed); }

.r-top a.brand { white-space: nowrap; font-weight: 700; }
@media (max-width: 560px) { .r-top { flex-wrap: wrap; gap: 6px 12px; } .r-top nav { margin-left: 0; flex-basis: 100%; } }
.theme-btn { flex: none; width: 38px; height: 38px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--crust); }
.theme-btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.theme-btn svg { width: 20px; height: 20px; }
[data-theme-toggle] .ic-sun { display: none; }
:root[data-theme="dark"] [data-theme-toggle] .ic-sun { display: block; }
:root[data-theme="dark"] [data-theme-toggle] .ic-moon { display: none; }
:root[data-theme="dark"] .theme-btn { border-color: #3a3f48; }
@media (max-width: 560px) { .r-top .theme-btn { position: absolute; right: 16px; top: 12px; } }
.r-top { position: sticky; }

/* Logo 1c „Ausfahrtsschild" */
.brand-sign { display: inline-flex; background: #224db8; border-radius: 9px; padding: 3px; flex: none; }
.brand-frame { display: inline-flex; align-items: center; gap: 9px; border: 2.5px solid #fff; border-radius: 6.5px; padding: 4px 12px 4px 8px; color: #fff; }
.brand-brezel { width: 30px; height: 30px; flex: none; display: block; }
.brand-text { display: grid; line-height: 1; }
.brand-name { font: 800 18px/1.05 "Archivo", var(--font-display, sans-serif); letter-spacing: -.005em; color: #fff; white-space: nowrap; }
.brand-exit { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font: 700 11px/1 "Archivo", var(--font-body, sans-serif); color: #ffcf3d; white-space: nowrap; }
.brand-exit svg { width: 11px; height: 11px; }
.r-top a.brand { gap: 0; }
:root[data-theme="dark"] .brand-sign { box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
