/* Dokumentation (/doku, server/doku.mjs). Präfix d- (Seite), db- (Schaubilder aus shared/doku/bilder.js), dg- (Grafiken der Karten).
   Zwei Farbwelten über die Klasse an <html>:
   .d-betreiber  Adresse des Betreibers: Farbwelt der Website, Violett auf Nachtblau (dunkel) bzw. hell mit Violett, Epilogue für Überschriften.
   .d-neutral    Adresse einer Marke: ruhig und neutral, Akzent aus der Farbe der Marke (/doku/marke.css setzt --akzent).
   Hell und dunkel nach der Einstellung des Systems. Gelb gestrichelt = Feld, das der Kunde ändern darf; Schraffur = gesperrt.
   Ohne Skript voll lesbar und bedienbar; doku.js setzt html.d-js und ergänzt Abhaken, Treffer beim Tippen und das Menü am Handy.
   Keine Überzeilen, keine Punkte- oder Gittermuster, keine Inline-Stile (CSP). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/inter/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/inter/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Epilogue'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/epilogue/epilogue-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Epilogue'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/epilogue/epilogue-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Farben ---------- */
:root {
  --bg: #f5f6f8; --surface: #ffffff; --surface-2: #f1f3f6; --surface-3: #e5e8ee;
  --line: rgba(15, 23, 41, .13); --line-soft: rgba(15, 23, 41, .08); --line-strong: rgba(15, 23, 41, .24);
  --ink: #18202e; --ink-soft: #434c5b; --ink-faint: #5a6372;
  --akzent: #0f1729; --auf-akzent: #ffffff; --akzent-zart: rgba(15, 23, 41, .07); --akzent-text: #0f1729;
  --hover: rgba(15, 23, 41, .045);
  --gruen: #12805c; --gruen-zart: rgba(18, 128, 92, .1); --orange: #b45309; --orange-zart: rgba(217, 119, 6, .12); --rot: #c2333a; --rot-zart: rgba(194, 51, 58, .1);
  --gelb: #ffd43b; --gelb-rand: #d9a800; --gelb-zart: rgba(255, 212, 59, .3);
  --schraffur: repeating-linear-gradient(135deg, rgba(15, 23, 41, .16) 0 2px, transparent 2px 7px);
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display: var(--font);
  --schatten: 0 1px 2px rgba(15, 23, 41, .05), 0 14px 34px -22px rgba(15, 23, 41, .32);
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
  --top: 64px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1014; --surface: #171a20; --surface-2: #1f232b; --surface-3: #2a2f39;
    --line: rgba(255, 255, 255, .13); --line-soft: rgba(255, 255, 255, .075); --line-strong: rgba(255, 255, 255, .26);
    --ink: #e7e9ee; --ink-soft: #b7bdc8; --ink-faint: #979eab;
    --akzent: #f5f6f8; --auf-akzent: #0e1014; --akzent-zart: rgba(255, 255, 255, .08); --akzent-text: #f5f6f8;
    --hover: rgba(255, 255, 255, .06);
    --gruen: #4fc78e; --gruen-zart: rgba(79, 199, 142, .13); --orange: #f5a54a; --orange-zart: rgba(245, 165, 74, .13); --rot: #ff8a8a; --rot-zart: rgba(255, 122, 122, .12);
    --gelb-rand: #ffd43b; --gelb-zart: rgba(255, 212, 59, .22);
    --schraffur: repeating-linear-gradient(135deg, rgba(255, 255, 255, .17) 0 2px, transparent 2px 7px);
    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -24px rgba(0, 0, 0, .7);
  }
}
/* Betreiber: Farbwelt der Website */
.d-betreiber {
  --bg: #f7f6fc; --surface: #ffffff; --surface-2: #f2f0fb; --surface-3: #e6e2f6;
  --line: rgba(35, 25, 90, .13); --line-soft: rgba(35, 25, 90, .075); --line-strong: rgba(35, 25, 90, .26);
  --ink: #16132e; --ink-soft: #46425f; --ink-faint: #5f5a7a;
  --akzent: #6d4dff; --auf-akzent: #ffffff; --akzent-zart: rgba(109, 77, 255, .1); --akzent-text: #5534e6;
  --hover: rgba(109, 77, 255, .06);
  --verlauf: linear-gradient(100deg, #8b6bff 0%, #6d4dff 50%, #4b2fd6 100%);
  --knopf: linear-gradient(180deg, #7a5cff 0%, #5f3fe8 100%);
  --display: "Epilogue", "Inter", "Segoe UI", system-ui, sans-serif;
  --schraffur: repeating-linear-gradient(135deg, rgba(35, 25, 90, .17) 0 2px, transparent 2px 7px);
  --schatten: 0 1px 2px rgba(35, 25, 90, .06), 0 16px 36px -22px rgba(55, 35, 150, .35);
}
@media (prefers-color-scheme: dark) {
  .d-betreiber {
    --bg: #0d0c1d; --surface: #141329; --surface-2: #1b1a35; --surface-3: #252345;
    --line: rgba(255, 255, 255, .1); --line-soft: rgba(255, 255, 255, .065); --line-strong: rgba(255, 255, 255, .22);
    --ink: #f6f4fb; --ink-soft: #d0cbdd; --ink-faint: #aea8bd;
    --akzent: #7c5cff; --auf-akzent: #ffffff; --akzent-zart: rgba(124, 92, 255, .17); --akzent-text: #cbbdff;
    --hover: rgba(124, 92, 255, .1);
    --verlauf: linear-gradient(100deg, #c4b5ff 0%, #9b80ff 45%, #6d4dff 100%);
    --schraffur: repeating-linear-gradient(135deg, rgba(255, 255, 255, .17) 0 2px, transparent 2px 7px);
    --schatten: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 44px -26px rgba(0, 0, 0, .8);
  }
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 20px); background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
code, kbd, pre, samp { font-family: var(--font); }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--akzent); color: var(--auf-akzent); }
.d-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.d-skip { position: absolute; left: 12px; top: -48px; z-index: 40; padding: 8px 14px; border-radius: 999px; background: var(--akzent); color: var(--auf-akzent); text-decoration: none; font-weight: 600; font-size: 14px; }
.d-skip:focus { top: 10px; }
.d-sym { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Kopf ---------- */
.d-top { position: sticky; top: 0; z-index: 30; height: var(--top); background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line-soft); }
.d-top-in { max-width: 1360px; height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 18px; }
.d-top-marke { display: flex; align-items: center; gap: 6px; flex: none; min-width: 0; }
.d-wortmarke { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; border-radius: 10px; padding: 6px 4px; }
.d-wortmarke .qlogo { height: 28px; }
.d-doku-link { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--akzent-zart); color: var(--akzent-text); font-size: 13px; font-weight: 650; text-decoration: none; }
.d-marke { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.d-marke img { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; }
.d-marke > span { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.d-marke b { font-weight: 650; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-marke-z { color: var(--ink-faint); font-size: 14px; white-space: nowrap; }
.d-top-platz { flex: 1; }
.d-suche { position: relative; flex: 1; max-width: 440px; }
.d-top .d-suche { margin-left: 12px; }
.d-suche input { width: 100%; height: 40px; padding: 0 40px 0 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.d-suche input::placeholder { color: var(--ink-faint); }
.d-suche input:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 4px var(--akzent-zart); }
.d-suche input::-webkit-search-cancel-button { display: none; }
.d-suche-ic { position: absolute; left: 13px; top: 11px; width: 18px; height: 18px; fill: none; stroke: var(--ink-faint); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.d-kbd { position: absolute; right: 10px; top: 10px; min-width: 20px; height: 20px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-faint); font: 500 12px/18px var(--font); text-align: center; pointer-events: none; }
.d-web { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.d-web a, .d-top-akt a { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 550; text-decoration: none; white-space: nowrap; color: var(--ink-soft); }
.d-web a:hover { color: var(--ink); background: var(--hover); }
.d-top-akt { display: flex; align-items: center; gap: 8px; flex: none; }
.d-top .d-suche + .d-top-akt { margin-left: auto; }
.d-app { background: var(--akzent); color: var(--auf-akzent) !important; padding: 0 18px !important; }
.d-betreiber .d-app { background: var(--knopf); box-shadow: 0 0 0 1px rgba(124, 92, 255, .5), 0 8px 22px -10px rgba(109, 77, 255, .7); }
.d-app:hover { filter: brightness(1.08); }
.d-themen-link { display: none !important; border: 1px solid var(--line); color: var(--ink) !important; }

/* ---------- Raster: Navigation | Inhalt | Auf dieser Seite ---------- */
.d-wrap { max-width: 1360px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 264px minmax(0, 1fr) 216px; grid-template-areas: "nav main toc"; gap: 0 52px; align-items: start; }
.d-main { grid-area: main; min-width: 0; padding: 36px 0 80px; max-width: 780px; }
.d-wrap-start { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; max-width: 1260px; }
.d-start { max-width: none; padding-top: 0; }

/* ---------- Seitenleiste ---------- */
.d-nav { grid-area: nav; position: sticky; top: var(--top); max-height: calc(100vh - var(--top)); overflow-y: auto; padding: 26px 10px 48px 0; font-size: 14px; scrollbar-width: thin; }
.d-nav-start { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink-soft); font-weight: 600; }
.d-nav-g { margin-top: 2px; }
.d-nav-g summary { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border-radius: var(--r-sm); cursor: pointer; list-style: none; color: var(--ink); font-weight: 600; user-select: none; }
.d-nav-g summary::-webkit-details-marker { display: none; }
.d-nav-g summary .d-sym { color: var(--akzent-text); }
.d-nav-g summary > span:first-of-type { flex: 1; min-width: 0; }
.d-nav-g summary::after { content: ''; width: 7px; height: 7px; margin: 0 4px 3px 2px; border-right: 1.6px solid var(--ink-faint); border-bottom: 1.6px solid var(--ink-faint); transform: rotate(-45deg); transition: transform .2s var(--ease); flex: none; }
.d-nav-g[open] summary::after { transform: rotate(45deg); margin-bottom: 5px; }
.d-nav-g summary:hover { background: var(--hover); }
.d-nav-n { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--ink-faint); font-size: 12px; font-weight: 600; text-align: center; line-height: 20px; }
.d-nav ul { list-style: none; margin: 0; padding: 0; }
.d-nav-g ul { margin: 2px 0 10px 19px; padding-left: 10px; border-left: 1px solid var(--line-soft); }
.d-nav li a { display: block; padding: 7px 10px; border-radius: var(--r-sm); color: var(--ink-soft); text-decoration: none; line-height: 1.4; }
.d-nav a:hover { background: var(--hover); color: var(--ink); }
.d-nav a.is-aktiv, .d-nav-start.is-aktiv { background: var(--akzent-zart); color: var(--akzent-text); font-weight: 650; }
.d-nav li a.is-gelesen::after { content: ''; display: inline-block; width: 8px; height: 4px; margin: 0 0 3px 8px; border-left: 1.6px solid var(--gruen); border-bottom: 1.6px solid var(--gruen); transform: rotate(-45deg); }
.d-nav-h { margin: 18px 0 4px; padding: 0 10px; color: var(--ink-faint); font-size: 13px; font-weight: 600; }
.d-nav-web { display: none; }
.d-neutral .d-nav > ul { margin-top: 6px; }

/* ---------- Auf dieser Seite ---------- */
.d-toc { grid-area: toc; position: sticky; top: var(--top); padding: 40px 0 40px; font-size: 13.5px; }
.d-toc-h { margin: 0 0 10px; color: var(--ink); font-size: 13px; font-weight: 650; }
.d-toc ol, .d-toc-m ol { list-style: none; margin: 0; padding: 0; }
.d-toc a { display: block; padding: 5px 0 5px 14px; border-left: 2px solid var(--line-soft); color: var(--ink-faint); text-decoration: none; line-height: 1.45; transition: color .15s, border-color .15s; }
.d-toc a:hover { color: var(--ink); }
.d-toc a.is-aktiv { color: var(--akzent-text); border-left-color: var(--akzent); font-weight: 600; }
.d-toc-m { display: none; margin: 0 0 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.d-toc-m summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; padding: 10px 16px; font-size: 14px; font-weight: 650; list-style: none; }
.d-toc-m summary::-webkit-details-marker { display: none; }
.d-toc-n { color: var(--ink-faint); font-weight: 500; margin-right: auto; }
.d-toc-m summary::after { content: ''; width: 8px; height: 8px; border-right: 1.6px solid var(--ink-faint); border-bottom: 1.6px solid var(--ink-faint); transform: rotate(45deg); margin-bottom: 4px; }
.d-toc-m[open] summary::after { transform: rotate(-135deg); margin-bottom: -2px; }
.d-toc-m ol { padding: 0 16px 12px; }
.d-toc-m a { display: block; padding: 7px 0; color: var(--ink-soft); text-decoration: none; font-size: 14px; border-top: 1px solid var(--line-soft); }

/* ---------- Kopf einer Seite ---------- */
.d-krumen ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0 0 18px; padding: 0; font-size: 13.5px; color: var(--ink-faint); }
.d-krumen li + li::before { content: '›'; margin-right: 6px; color: var(--ink-faint); }
.d-krumen a { color: var(--akzent-text); text-decoration: none; font-weight: 550; }
.d-krumen a:hover { text-decoration: underline; }
.d-kopf { margin-bottom: 30px; }
.d-kopf h1 { margin: 0; font-family: var(--display); font-size: clamp(30px, 4.2vw, 42px); line-height: 1.1; font-weight: 750; letter-spacing: -.03em; text-wrap: balance; }
.d-betreiber .d-kopf h1 { font-weight: 820; letter-spacing: -.035em; }
.d-lede { margin: 14px 0 0; color: var(--ink-soft); font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.d-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.d-meta li { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--ink-soft); font-size: 13px; }
.d-meta .d-sym { width: 15px; height: 15px; color: var(--akzent-text); }

/* ---------- Fließtext ---------- */
.d-text { font-size: 16px; }
.d-text > :first-child { margin-top: 0; }
.d-text h2 { margin: 2.3em 0 .7em; padding-top: .9em; border-top: 1px solid var(--line-soft); font-family: var(--display); font-size: 24px; line-height: 1.25; font-weight: 720; letter-spacing: -.02em; }
.d-betreiber .d-text h2 { font-weight: 800; letter-spacing: -.028em; }
.d-text > h2:first-child { border-top: 0; padding-top: 0; }
.d-text h3 { margin: 1.8em 0 .45em; font-size: 17.5px; line-height: 1.4; font-weight: 680; }
.d-text > p, .d-text > ul, .d-text > ol, .d-hinweis-in > ul, .d-hinweis-in > ol { margin: 0 0 1em; }
.d-text > ul, .d-hinweis-in > ul { padding-left: 1.25em; }
.d-text > ul > li, .d-hinweis-in > ul > li { margin: .35em 0; }
.d-text > ul > li::marker, .d-hinweis-in > ul > li::marker { color: var(--akzent-text); }
.d-text > ol:not(.d-schritte), .d-hinweis-in > ol { list-style: none; counter-reset: num; padding: 0; }
.d-text > ol:not(.d-schritte) > li, .d-hinweis-in > ol > li { counter-increment: num; position: relative; padding-left: 38px; margin: .7em 0; }
.d-text > ol:not(.d-schritte) > li::before, .d-hinweis-in > ol > li::before { content: counter(num); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--akzent-zart); color: var(--akzent-text); font-size: 13px; font-weight: 700; line-height: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.d-text a { color: var(--akzent-text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--akzent-text) 35%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.d-text a:hover { text-decoration-color: currentColor; }
.d-text strong { font-weight: 680; }
.d-text code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-soft); font: 550 .9em/1.4 var(--font); font-feature-settings: "tnum", "zero", "ss01"; word-break: break-word; }
.d-text pre { position: relative; margin: 0 0 1.3em; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow-x: auto; }
.d-text pre code { padding: 0; border: 0; background: none; font-size: 14px; white-space: pre; word-spacing: .22em; }
.d-kopieren { position: absolute; right: 8px; top: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--ink-soft); font-size: 13px; font-weight: 600; cursor: pointer; }
.d-kopieren:hover { color: var(--ink); border-color: var(--line-strong); }
.d-text pre:has(.d-kopieren) { padding-right: 96px; }

/* Klick-Pfade in der App */
.d-pfad { white-space: normal; }
.d-pfad-t { display: inline-block; padding: 0 8px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line-soft); color: var(--ink); font-size: max(13px, .87em); font-weight: 600; line-height: 1.75; white-space: nowrap; }
.d-pfad-s { margin: 0 4px; color: var(--ink-faint); font-weight: 600; }
.d-text a .d-pfad-t { color: inherit; }

/* Hinweise */
.d-hinweis { --h: var(--akzent-text); display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; margin: 0 0 1.4em; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--h) 30%, transparent); border-radius: var(--r-lg); background: color-mix(in srgb, var(--h) 7%, var(--surface)); }
.d-hinweis-tipp { --h: var(--gruen); }
.d-hinweis-achtung { --h: var(--orange); }
.d-hinweis-info { --h: var(--ink-faint); background: var(--surface); border-color: var(--line); }
.d-hinweis > .d-sym { width: 22px; height: 22px; color: var(--h); margin-top: 1px; }
.d-hinweis-in > :last-child { margin-bottom: 0; }
.d-hinweis-in p, .d-hinweis-in ul { margin: 0 0 .5em; }
.d-hinweis-t { font-weight: 700; color: var(--h); }
.d-hinweis-info .d-hinweis-t { color: var(--ink); }

/* Schrittkarten */
.d-schritte { list-style: none; margin: 0 0 1.6em; padding: 0; display: grid; gap: 10px; }
.d-schritt { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; margin: 0; padding: 14px 18px 14px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color .2s, background-color .2s; }
.d-schritt-nr { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--akzent-zart); color: var(--akzent-text); font-weight: 750; font-size: 14px; font-variant-numeric: tabular-nums; border: 0; padding: 0; }
button.d-schritt-nr { cursor: pointer; transition: background-color .2s, color .2s, transform .2s var(--ease); }
button.d-schritt-nr:hover { background: color-mix(in srgb, var(--akzent) 22%, transparent); }
button.d-schritt-nr svg { display: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.d-schritt-in { min-width: 0; padding-top: 5px; }
.d-schritt-t { display: block; margin-bottom: 2px; font-weight: 680; font-size: 16px; line-height: 1.4; }
.d-schritt-in p { margin: 0; color: var(--ink-soft); }
.d-schritt.is-erledigt { background: color-mix(in srgb, var(--gruen) 6%, var(--surface)); border-color: color-mix(in srgb, var(--gruen) 30%, transparent); }
.d-schritt.is-erledigt button.d-schritt-nr { background: var(--gruen); color: #fff; }
.d-schritt.is-erledigt button.d-schritt-nr span { display: none; }
.d-schritt.is-erledigt button.d-schritt-nr svg { display: block; }
.d-schritt.is-erledigt .d-schritt-t { color: var(--ink-soft); }
.d-schritte-stand { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 10px 14px; border-radius: var(--r); background: var(--surface-2); font-size: 14px; color: var(--ink-soft); }
.d-schritte-stand b { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-balken { position: relative; flex: 1; height: 6px; min-width: 40px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.d-balken i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--akzent); transition: width .4s var(--ease); }
.d-schritte-stand.is-fertig .d-balken i { background: var(--gruen); }
.d-schritte-stand button { height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-faint); font-size: 13px; font-weight: 600; cursor: pointer; }
.d-schritte-stand button:hover { background: var(--hover); color: var(--ink); }

/* Tabellen */
.d-tabelle { margin: 0 0 1.5em; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.d-text table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.d-text th, .d-text td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.d-text thead th { color: var(--ink-soft); font-size: 13px; font-weight: 650; background: var(--surface-2); }
.d-text tbody th { font-weight: 650; color: var(--ink); }
.d-text tbody tr:last-child > * { border-bottom: 0; }
.d-text tbody tr:hover > * { background: var(--hover); }

/* ---------- Lernpfad auf einer Seite ---------- */
.d-lp-karte { margin-top: 44px; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--akzent) 30%, transparent); border-radius: var(--r-lg); background: color-mix(in srgb, var(--akzent) 6%, var(--surface)); }
.d-lp-karte-kopf { display: flex; align-items: center; gap: 12px; }
.d-lp-karte-kopf .d-sym { width: 22px; height: 22px; color: var(--akzent-text); }
.d-lp-karte-kopf > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.d-lp-karte-kopf b { font-weight: 700; }
.d-lp-karte-kopf > span > span { color: var(--ink-faint); font-size: 14px; }
.d-lp-balken { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 14px 0; padding: 0; }
.d-lp-balken li { height: 6px; border-radius: 999px; background: var(--surface-3); }
.d-lp-balken li.ist-vorher, .d-lp-balken li.is-gelesen { background: color-mix(in srgb, var(--akzent) 55%, transparent); }
.d-lp-balken li.ist-hier { background: var(--akzent); }
.d-lp-weiter { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; min-height: 44px; padding: 8px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.d-lp-weiter span { color: var(--ink-faint); font-size: 14px; }
.d-lp-weiter b { font-weight: 650; margin-right: auto; }
.d-lp-weiter .d-sym { color: var(--akzent-text); transition: transform .2s var(--ease); }
.d-lp-weiter:hover .d-sym { transform: translateX(3px); }
.d-lp-ende { margin: 0; color: var(--ink-soft); }
.d-lp-ende a { color: var(--akzent-text); }

/* ---------- Weiterblättern ---------- */
.d-vz { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.d-lp-karte + .d-vz { margin-top: 16px; }
.d-artikel + .d-vz { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.d-vz a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; transition: border-color .15s, transform .2s var(--ease); }
.d-vz a:hover { border-color: color-mix(in srgb, var(--akzent) 50%, transparent); }
.d-vz .d-sym { color: var(--akzent-text); }
.d-vz-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.d-vz-t > span:first-child { color: var(--ink-faint); font-size: 13px; }
.d-vz b { font-weight: 650; font-size: 15.5px; line-height: 1.35; }
.d-vz-b { color: var(--ink-faint); font-size: 13px; }
.d-nach { grid-column: 2; flex-direction: row-reverse; text-align: right; }

/* ---------- Startseite ---------- */
.d-held { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 56px 0 52px; }
.d-betreiber .d-held { position: relative; }
.d-betreiber .d-held::before { content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: -80px; height: 520px; background: radial-gradient(60% 60% at 20% 30%, color-mix(in srgb, var(--akzent) 14%, transparent), transparent 70%); pointer-events: none; }
.d-held h1 { margin: 0; font-family: var(--display); font-size: clamp(34px, 5vw, 58px); line-height: 1.04; font-weight: 820; letter-spacing: -.038em; text-wrap: balance; }
.d-zweit { display: block; background-image: var(--verlauf, none); -webkit-background-clip: text; background-clip: text; color: transparent; }
.d-neutral .d-zweit { color: inherit; }
.d-held .d-lede { max-width: 58ch; }
.d-held .d-lede p { margin: 0 0 .6em; }
.d-held .d-lede a { color: var(--akzent-text); font-weight: 600; text-underline-offset: 3px; }
.d-suche-gross { max-width: 620px; margin-top: 26px; display: flex; }
.d-suche-gross input { height: 56px; padding: 0 116px 0 50px; font-size: 16px; border-radius: 16px; box-shadow: var(--schatten); }
.d-suche-gross .d-suche-ic { left: 18px; top: 19px; }
.d-suche-los { position: absolute; right: 7px; top: 7px; height: 42px; padding: 0 18px; border: 0; border-radius: 11px; background: var(--akzent); color: var(--auf-akzent); font-weight: 650; font-size: 15px; cursor: pointer; }
.d-betreiber .d-suche-los { background: var(--knopf); }
.d-gesucht { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; max-width: 620px; }
.d-gesucht > span { color: var(--ink-faint); font-size: 14px; }
.d-gesucht ul { display: contents; list-style: none; }
.d-gesucht a { display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); font-size: 14px; font-weight: 550; text-decoration: none; }
.d-gesucht a:hover { border-color: var(--akzent); color: var(--akzent-text); }

/* Lernpfad (Karte rechts im Kopf der Startseite) */
.d-lp { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--schatten); }
.d-lp-kopf { display: flex; gap: 14px; align-items: flex-start; }
.d-lp-sym { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--akzent-zart); color: var(--akzent-text); flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.d-lp h2 { margin: 0; font-family: var(--display); font-size: 21px; line-height: 1.2; font-weight: 780; letter-spacing: -.02em; }
.d-lp-kopf p { margin: 4px 0 0; color: var(--ink-faint); font-size: 14px; line-height: 1.5; }
.d-lp-stand { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; font-size: 13.5px; color: var(--ink-soft); white-space: nowrap; }
.d-lp-stand[hidden] { display: none; }
.d-lp-liste { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 4px; }
.d-lp-liste a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 10px; border-radius: var(--r); text-decoration: none; transition: background-color .15s; }
.d-lp-liste a:hover { background: var(--hover); }
.d-lp-nr { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong); color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.d-lp-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.d-lp-t b { font-weight: 620; font-size: 15px; line-height: 1.35; }
.d-lp-t span { color: var(--ink-faint); font-size: 13px; }
.d-lp-liste .d-sym { color: var(--ink-faint); transition: transform .2s var(--ease), color .2s; }
.d-lp-liste a:hover .d-sym { color: var(--akzent-text); transform: translateX(3px); }
.d-lp-liste li.is-gelesen .d-lp-nr { background: var(--gruen); border-color: var(--gruen); color: #fff; }

.d-sek { margin-top: 64px; }
.d-sek-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 20px; }
.d-sek-kopf h2, .d-sek > h2 { margin: 0; font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -.03em; }
.d-sek-kopf p { margin: 0; color: var(--ink-faint); font-size: 15px; }
.d-neutral .d-sek > h2 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }

/* Aufgaben-Karten */
.d-aufgaben { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.d-aufgabe { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); overflow: hidden; transition: border-color .2s, transform .3s var(--ease), box-shadow .3s; }
.d-aufgabe:hover { border-color: color-mix(in srgb, var(--akzent) 45%, transparent); box-shadow: var(--schatten); }
.d-aufgabe-bild { height: 150px; display: grid; place-items: center; padding: 18px; background: var(--surface-2); border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.d-aufgabe-text { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.d-aufgabe h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.d-aufgabe h3 a { text-decoration: none; }
.d-aufgabe h3 a::after { content: ' →'; color: var(--akzent-text); }
.d-aufgabe h3 a:hover { color: var(--akzent-text); }
.d-aufgabe-sym { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--akzent-zart); color: var(--akzent-text); flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.d-aufgabe-text > p { margin: 10px 0 14px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.d-aufgabe-mehr { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid var(--line-soft); }
.d-aufgabe-mehr a { display: flex; align-items: center; min-height: 40px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); font-size: 14.5px; text-decoration: none; }
.d-aufgabe-mehr li:last-child a { border-bottom: 0; padding-bottom: 0; }
.d-aufgabe-mehr a::after { content: '›'; margin-left: auto; padding-left: 8px; color: var(--ink-faint); font-weight: 600; }
.d-aufgabe-mehr a:hover { color: var(--akzent-text); }

/* Alle Themen */
.d-bereiche { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.d-bereich { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.d-bereich-kopf { display: flex; align-items: center; gap: 10px; }
.d-bereich-sym { width: 22px; height: 22px; color: var(--akzent-text); flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.d-bereich h3 { margin: 0; font-size: 16.5px; font-weight: 700; }
.d-bereich p { margin: 6px 0 12px; color: var(--ink-faint); font-size: 14px; line-height: 1.5; }
.d-bereich ul { list-style: none; margin: 0; padding: 0; }
.d-bereich li a { display: flex; align-items: center; min-height: 40px; padding: 6px 0; border-top: 1px solid var(--line-soft); color: var(--ink-soft); font-size: 14.5px; text-decoration: none; }
.d-bereich li a:hover { color: var(--akzent-text); }

/* Startseite einer Marke */
.d-held-marke { grid-template-columns: minmax(0, 1fr); padding-bottom: 20px; }
.d-held-marke h1 { font-size: clamp(30px, 4vw, 44px); }
.d-kacheln { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.d-kachel { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; transition: border-color .15s; }
a.d-kachel:hover { border-color: var(--akzent); }
.d-kachel-sym { width: 40px; height: 40px; margin-bottom: 6px; padding: 9px; border-radius: 12px; background: var(--akzent-zart); color: var(--akzent-text); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.d-kachel b { font-weight: 650; font-size: 16px; }
.d-kachel span { color: var(--ink-faint); font-size: 14px; line-height: 1.5; }
.d-kachel-still { background: var(--surface-2); }

/* ---------- Suche: Seite und Treffer beim Tippen ---------- */
.d-treffer { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.d-treffer a { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; }
.d-treffer a:hover { border-color: var(--akzent); }
.d-treffer b { font-weight: 650; font-size: 16px; }
.d-treffer span { color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }
.d-treffer .d-treffer-b { color: var(--akzent-text); font-size: 13px; font-weight: 650; }
.d-treffer .d-treffer-x { color: var(--ink-faint); font-size: 14px; }
mark { background: var(--gelb-zart); color: inherit; border-radius: 3px; padding: 0 1px; }
.d-liste { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 35; max-height: min(70vh, 480px); overflow-y: auto; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 1px 2px rgba(15, 23, 41, .08), 0 24px 60px -20px rgba(15, 23, 41, .4); text-align: left; }
.d-liste[hidden] { display: none; }
.d-liste a { display: block; padding: 10px 12px; border-radius: var(--r); text-decoration: none; }
.d-liste a b { display: block; font-size: 14.5px; font-weight: 650; }
.d-liste a .d-l-b { display: block; color: var(--akzent-text); font-size: 12.5px; font-weight: 650; }
.d-liste a .d-l-x { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-faint); font-size: 13.5px; line-height: 1.45; }
.d-liste a:hover, .d-liste a[aria-selected="true"] { background: var(--hover); }
.d-liste a[aria-selected="true"] { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--akzent) 40%, transparent); }
.d-liste .d-leer { padding: 12px; color: var(--ink-faint); font-size: 14px; }
.d-liste .d-l-fuss { display: flex; gap: 14px; padding: 8px 12px 4px; margin-top: 4px; border-top: 1px solid var(--line-soft); color: var(--ink-faint); font-size: 12.5px; }
.d-liste .d-l-fuss kbd { padding: 0 5px; border: 1px solid var(--line); border-radius: 5px; font: 600 12px/18px var(--font); }

/* ---------- Fuß ---------- */
.d-fuss { margin-top: 40px; border-top: 1px solid var(--line-soft); }
.d-fuss-in { max-width: 1360px; margin: 0 auto; padding: 22px 24px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; color: var(--ink-faint); font-size: 14px; }
.d-fuss-in > b { font-weight: 650; color: var(--ink); }
.d-wortmarke-klein .qlogo { height: 24px; }
.d-fuss-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }
.d-fuss a { color: var(--ink-faint); text-decoration: none; }
.d-fuss-links a { display: inline-flex; align-items: center; min-height: 40px; }
.d-fuss a:hover { color: var(--ink); }

/* =================================================================================================
   Schaubilder (shared/doku/bilder.js)
   ================================================================================================= */
.d-bild { margin: 6px 0 1.7em; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface-2); overflow: hidden; }
.d-bild > .db { padding: 22px; }
.d-bild figcaption { padding: 12px 20px 14px; border-top: 1px solid var(--line-soft); background: var(--surface); color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.db, .dg { --wl: #6d4dff; --site: #fbfaf7; --site-ink: #2b2118; --site-z: #ddd6ca; color: var(--ink); font-size: 13px; line-height: 1.4; min-width: 0; }
.db-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.db-klein { color: var(--ink-faint); font-size: 13px; }
.db-chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--surface-3); color: var(--ink-soft); font-size: 12px; font-weight: 650; white-space: nowrap; }
.db-chip-gelb { background: var(--gelb-zart); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--gelb-rand); }
.db-chip-schraffur { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.db-chip-schraffur::before { content: ''; width: 14px; height: 10px; border-radius: 2px; background: var(--schraffur); box-shadow: inset 0 0 0 1px var(--line); }
.db-chip-orange { background: var(--orange-zart); color: var(--orange); }
.db-chip-violett { background: var(--akzent-zart); color: var(--akzent-text); }
.db-chip-gruen { background: var(--gruen-zart); color: var(--gruen); }
.db-chip-rot { background: var(--rot-zart); color: var(--rot); }
.db-knopf { display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.db-knopf-haupt { background: var(--akzent); border-color: transparent; color: var(--auf-akzent); }
.db-knopf-ok { background: var(--gruen-zart); border-color: color-mix(in srgb, var(--gruen) 35%, transparent); color: var(--gruen); }
.db-knopf-an { background: var(--akzent-zart); border-color: var(--akzent); color: var(--akzent-text); }
.db-knopf-akzent { background: var(--wl); border-color: transparent; color: #fff; transition: background-color .3s; }
.db-knopf-klein { height: 24px; padding: 0 8px; font-size: 12px; }
.db-pfad { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 13px; }
.db-pfad i { font-style: normal; color: var(--ink-faint); }
.db-fenster { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; box-shadow: var(--schatten); }
.db-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 42px; padding: 7px 12px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.db-flaeche { padding: 14px; }
.db-adresse { margin-left: auto; color: var(--ink-faint); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.db-adresse-voll { display: inline-flex; align-items: center; gap: 6px; margin: 0 auto; padding: 3px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--ink-soft); }
.db-umschalter { display: inline-flex; margin-left: auto; padding: 2px; border-radius: 8px; background: var(--surface-3); }
.db-umschalter span { padding: 2px 9px; border-radius: 6px; font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.db-umschalter .an { background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.db-wert { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-soft); font-size: 12.5px; font-weight: 600; word-break: break-all; }
.db-legende { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; color: var(--ink-soft); font-size: 13px; }
.db-legende span { display: inline-flex; align-items: center; gap: 8px; }
.db-legende i { display: inline-block; width: 22px; height: 12px; border-radius: 3px; }
.db-l-gelb { background: var(--gelb-zart); box-shadow: inset 0 0 0 1.5px var(--gelb-rand); outline: 1.5px dashed var(--gelb-rand); outline-offset: -1.5px; }
.db-l-schraffur { background: var(--schraffur), var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.db-l-grau { background: var(--surface-3); outline: 1.5px dashed var(--line-strong); outline-offset: -1.5px; }

/* Kleine Kundenwebsite (immer hell, wie eine echte Website) */
.db-site { display: grid; gap: 7px; padding: 12px; border-radius: 10px; background: var(--site); color: var(--site-ink); border: 1px solid rgba(43, 33, 24, .08); --schraffur: repeating-linear-gradient(135deg, rgba(43, 33, 24, .2) 0 2px, transparent 2px 7px); }
.db-site-gross { gap: 10px; padding: 14px; }
.db-site-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.db-z { display: block; height: 8px; width: 100%; border-radius: 4px; background: var(--site-z); }
.db-z-nav { height: 12px; background: #ece6dc; }
.db-z-titel { height: 13px; width: 72%; }
.db-z-dunkel { background: var(--site-ink); }
.db-z-kurz { width: 58%; }
.db-z-hoch { height: 30px; }
.db-z-bild { height: 46px; background: linear-gradient(135deg, #c98d5c, #9a5b2e); border-radius: 6px; }
.db-z-breit { width: 100%; }
.db-z-feld { background-color: rgba(255, 212, 59, .45); background-image: none; outline: 1.5px dashed #d9a800; outline-offset: 1px; }
.db-z-bild.db-z-feld { background: linear-gradient(135deg, #c98d5c, #9a5b2e); outline-color: #e0b400; outline-width: 2px; }
.db-z-schraffur { background: var(--schraffur), #f1ece3; }
.db-z-fehlt { background: transparent; outline: 1.5px dashed #e5484d; outline-offset: -1px; }
.db-z-bild.db-z-fehlt { background: rgba(229, 72, 77, .08); }

/* Felder in der Kundenwebsite */
.db-feld { position: relative; display: grid; gap: 5px; padding: 18px 10px 10px; border-radius: 7px; }
.db-feld-gelb { background: rgba(255, 212, 59, .22); outline: 1.5px dashed #d9a800; }
.db-feld-grau { background: rgba(43, 33, 24, .05); outline: 1.5px dashed rgba(43, 33, 24, .35); }
.db-feld-schraffur { min-height: 40px; background: var(--schraffur), #f1ece3; outline: 1px solid rgba(43, 33, 24, .14); }
.db-feld-titel b { font-family: var(--display); font-size: 17px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--site-ink); }
.db-feld-bild { min-height: 64px; background-color: transparent; background-image: linear-gradient(135deg, rgba(201, 141, 92, .9), rgba(154, 91, 46, .9)); }
.db-feld-breit { min-height: 78px; }
.db-feld-name { position: absolute; left: 6px; top: -9px; display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 6px; background: #ffd43b; color: #2b2118; font-size: 11.5px; font-weight: 700; line-height: 16px; white-space: nowrap; }
.db-feld-grau .db-feld-name { background: #e3ddd2; }
.db-feld-schraffur .db-feld-name { position: static; justify-self: start; align-self: center; background: #fbfaf7; border: 1px solid rgba(43, 33, 24, .15); }
.db-feld-name .db-ic { width: 12px; height: 12px; }
.db-feld-aktiv { outline-style: solid; outline-width: 2px; box-shadow: 0 0 0 4px rgba(255, 212, 59, .25); }
.db-cursor { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--site-ink); }
@media (prefers-reduced-motion: no-preference) { .db-cursor { animation: db-blink 1.1s steps(1) infinite; } }
@keyframes db-blink { 50% { opacity: 0; } }

/* 1. Aufteilung */
.db-drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.db-karte { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.db-karte-kopf { display: flex; align-items: center; gap: 8px; }
.db-karte-kopf .db-ic { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--akzent-zart); color: var(--akzent-text); }
.db-karte-kopf b { font-size: 15px; }
.db-karte > p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.db-karte > .db-chip { align-self: flex-start; }
.db-mini { display: grid; gap: 6px; padding: 10px; border-radius: 9px; background: var(--site); border: 1px solid rgba(43, 33, 24, .08); --schraffur: repeating-linear-gradient(135deg, rgba(43, 33, 24, .2) 0 2px, transparent 2px 7px); }
.db-mini-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.db-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.db-liste li { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); }
.db-liste .db-ic { color: var(--gruen); }

/* 2. Übernahme: Weg in Stationen */
.db-weg { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.db-weg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.db-weg li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.db-weg li:not(:last-child)::after { content: ''; position: absolute; left: calc(50% + 20px); right: calc(-50% + 20px); top: 15px; height: 2px; background: var(--line-strong); }
.db-weg-nr { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line-strong); font-weight: 750; font-size: 13px; color: var(--ink-soft); }
.db-weg .ist .db-weg-nr { background: var(--akzent); border-color: var(--akzent); color: var(--auf-akzent); box-shadow: 0 0 0 5px var(--akzent-zart); }
.db-weg-t { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink-soft); }
.db-weg .ist .db-weg-t { color: var(--ink); }
.db-paar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; }
.db-paar-pfeil { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--akzent); color: var(--auf-akzent); }

/* 3. Vergleich */
.db-vgl { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.db-vgl-bilder { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.db-vgl-spalte { display: grid; gap: 6px; }
.db-abschnitte { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.db-abschnitte li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); }
.db-abschnitt-n { font-weight: 650; }

/* 4. KI */
.db-kette { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.db-knoten { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: center; min-width: 0; }
.db-knoten > .db-ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--akzent-zart); color: var(--akzent-text); }
.db-knoten-mitte { border-color: color-mix(in srgb, var(--akzent) 45%, transparent); }
.db-kette-pfeil, .db-stufe-pfeil { display: grid; place-items: center; color: var(--akzent-text); }
.db-kette-pfeil .db-ic { width: 22px; height: 22px; }
.db-chat { display: grid; gap: 8px; margin-top: 16px; }
.db-blase { max-width: 85%; margin: 0; padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--ink-soft); font-size: 13.5px; }
.db-blase-sie { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--akzent); border-color: transparent; color: var(--auf-akzent); }
.db-blase-klein { max-width: none; padding: 6px 10px; font-size: 13px; background: var(--surface-2); }

/* 5. Feldsperren */
.db-sperren { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.db-menue { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--schatten); }
.db-menue-t { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-weight: 700; }
.db-menue ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.db-menue li { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 8px; border-radius: 8px; color: var(--ink-soft); }
.db-menue li i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; }
.db-menue li.an { background: var(--akzent-zart); color: var(--ink); font-weight: 650; }
.db-menue li.an i { border: 5px solid var(--akzent); }
.db-menue .db-klein { margin: 0; }

/* 6. Übergabe */
.db-dialog { max-width: 500px; margin: 0 auto; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--schatten); }
.db-dialog-t { margin: 0 0 12px; font-family: var(--display); font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.db-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.db-check li { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 4px 8px; border-radius: 8px; color: var(--ink-soft); }
.db-check li > span:not(.db-chip) { flex: 1; min-width: 0; }
.db-check li.ok .db-ic { color: var(--gruen); }
.db-check li.offen { background: var(--surface-2); }
.db-check li.offen .db-ic { color: var(--ink-faint); }
.db-einladen { display: grid; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.db-eingabe { display: flex; align-items: center; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink-soft); }
.db-dialog-fuss { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* 7. Feedback */
.db-fb { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.db-fb-teil { position: relative; display: grid; gap: 6px; padding: 8px; border-radius: 8px; outline: 1.5px dashed transparent; }
.db-fb-seite .db-fb-teil:nth-of-type(2) { outline-color: var(--wl); background: rgba(109, 77, 255, .06); }
.db-pin { position: absolute; right: -8px; top: -8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--wl); color: #fff; font-size: 12px; font-weight: 750; box-shadow: 0 0 0 3px var(--site); }
.db-fb-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.db-fb-liste li { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.db-fb-liste li.an { border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-zart); }
.db-fb-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; }

/* 8. Onboarding */
.db-fortschritt { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-weight: 700; font-size: 12.5px; }
.db-balken { position: relative; display: inline-block; width: 90px; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.db-balken i { position: absolute; inset: 0 40% 0 0; border-radius: inherit; background: var(--akzent); }
.db-formular { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.db-formular li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 46px; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); }
.db-formular li > span { display: grid; gap: 4px; min-width: 0; }
.db-formular li.ok .db-ic { color: var(--gruen); }
.db-formular li:not(.ok) .db-ic { color: var(--ink-faint); }
.db-formular .db-z { background: var(--surface-3); height: 7px; }
.db-datei { display: inline-flex; width: max-content; padding: 1px 8px; border-radius: 6px; background: var(--surface-2); font-size: 12.5px; font-weight: 600; }
.db-formular .db-tresor { background: var(--surface-2); }
.db-formular .db-tresor .db-ic { color: var(--akzent-text); }

/* 9. Whitelabel (Farbe zum Ausprobieren: doku.js setzt .wl-2 / .wl-3) */
.db-wl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.db-wl.wl-2 { --wl: #0f7c6e; }
.db-wl.wl-3 { --wl: #d9480f; }
.db-anmelden { display: grid; justify-items: center; gap: 8px; padding: 10px 6px 4px; text-align: center; }
.db-anmelden > b { font-size: 16px; }
.db-anmelden .db-eingabe { width: 100%; max-width: 240px; }
.db-anmelden .db-knopf { width: 100%; max-width: 240px; height: 36px; }
.db-recht { margin-top: 4px; }
.db-logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--wl); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: -.02em; transition: background-color .3s; }
.db-logo-klein { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; }
.db-mail { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; box-shadow: var(--schatten); }
.db-mail-kopf { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.db-mail-kopf > span { display: grid; }
.db-mail-inhalt { display: grid; gap: 8px; justify-items: start; padding: 14px; }
.db-mail-inhalt .db-z { background: var(--surface-3); }
.db-farbwahl { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 22px 14px; margin-top: -8px; }
.db-farbwahl[hidden] { display: none; }
.db-farbwahl .db-klein { margin-right: 6px; }
.db-farbe { position: relative; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.db-farbe::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #6d4dff; box-shadow: 0 0 0 2px var(--surface); }
.db-farbe-2::before { background: #0f7c6e; }
.db-farbe-3::before { background: #d9480f; }
.db-farbe[aria-pressed="true"]::before { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }

/* 10. DNS */
.db-dns { max-width: 560px; margin: 0 auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; box-shadow: var(--schatten); }
.db-dns-kopf, .db-dns-reihe { display: grid; grid-template-columns: 90px 80px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 14px; }
.db-dns-kopf { background: var(--surface-2); color: var(--ink-faint); font-size: 12.5px; font-weight: 650; }
.db-dns-reihe { border-top: 1px solid var(--line-soft); }
.db-dns-fuss { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-top: 1px solid var(--line-soft); color: var(--ink-soft); }
.db-dns-fuss .db-ic { color: var(--gruen); }

/* 11. Veröffentlichen */
.db-stufen { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.db-stufe { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: center; min-width: 0; }
.db-stufe > .db-ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--surface-2); color: var(--ink-soft); }
.db-stufe b { font-size: 14.5px; }
.db-stufe-live { border-color: color-mix(in srgb, var(--gruen) 45%, transparent); }
.db-stufe-live > .db-ic { background: var(--gruen-zart); color: var(--gruen); }
.db-stufe-pfeil { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.db-versionen { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--ink-soft); }
.db-versionen .db-ic { color: var(--akzent-text); }

/* 12. Bearbeiten */
.db-gespeichert { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--gruen); font-size: 12.5px; font-weight: 650; }
.db-editor .db-site { position: relative; }
.db-leiste-format { justify-self: start; display: inline-flex; align-items: center; gap: 2px; margin-bottom: -4px; padding: 3px; border-radius: 8px; background: #1d1a33; color: #fff; font-size: 12.5px; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
.db-leiste-format > * { display: grid; place-items: center; min-width: 26px; height: 24px; padding: 0 6px; border-radius: 5px; }
.db-leiste-format b { background: rgba(255, 255, 255, .16); }
.db-bild-knoepfe { display: flex; gap: 6px; justify-content: center; align-items: center; min-height: 56px; }

/* 13. Sicherung */
.db-schutz { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.db-schutz li { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.db-schutz .db-ic { width: 32px; height: 32px; padding: 6px; border-radius: 9px; background: var(--akzent-zart); color: var(--akzent-text); }
.db-schutz b { font-size: 15px; }
.db-schutz span { color: var(--ink-soft); font-size: 13px; line-height: 1.45; }

/* Grafiken der Karten auf der Startseite */
.dg { width: 100%; max-width: 300px; }
.dg-uebernehmen { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.dg-uebernehmen .db-site { padding: 9px; gap: 5px; }
.dg-uebernehmen .db-z-bild { height: 30px; }
.dg-pfeil { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--akzent); color: var(--auf-akzent); }
.dg-kunden { display: grid; gap: 6px; justify-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.dg-kunden .db-check { gap: 0; }
.dg-kunden .db-check li { min-height: 22px; padding: 0; }
.dg-marke { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.dg-marke-t { display: grid; flex: 1; min-width: 0; }
.dg-marke-t .db-klein { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-farben { display: flex; gap: 4px; }
.dg-farben i { width: 14px; height: 14px; border-radius: 50%; background: #6d4dff; }
.dg-farben i:nth-child(2) { background: #0f7c6e; }
.dg-farben i:nth-child(3) { background: #d9480f; }
.dg-recht { display: grid; gap: 6px; }
.dg-zeile { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); font-weight: 600; font-size: 13px; }
.dg-zeile .db-ic { color: var(--gruen); }
.dg-ki { display: grid; gap: 8px; }
.dg-kundenhilfe { display: grid; gap: 10px; justify-items: end; padding: 14px; border-radius: 12px; background: var(--site); --site: #fbfaf7; --site-ink: #2b2118; border: 1px solid rgba(43, 33, 24, .08); }
.dg-kundenhilfe .db-feld { width: 100%; padding: 10px; }

/* ---------- Mittlere Breite ---------- */
@media (max-width: 1259px) {
  .d-web { display: none; }
  .d-top .d-suche { margin-left: auto; }
}
@media (max-width: 1199px) {
  .d-wrap { grid-template-columns: 240px minmax(0, 1fr); grid-template-areas: "nav main"; gap: 0 40px; }
  .d-wrap-start { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; }
  .d-toc { display: none; }
  .d-toc-m { display: block; }
  .d-aufgaben { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 999px) {
  .d-held { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; }
  .db-vgl, .db-fb, .db-sperren { grid-template-columns: minmax(0, 1fr); }
  .db-schutz { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ---------- Schmal: eine Spalte, Navigation unter dem Inhalt (Sprung über „Themen“) ---------- */
@media (max-width: 899px) {
  :root { --top: 60px; }
  .d-top-in { padding: 0 14px; gap: 10px; }
  .d-doku-link { display: none; }
  .d-wortmarke .qlogo { height: 25px; }
  .d-marke-z { display: none; }
  .d-suche { max-width: none; }
  .d-top .d-suche { margin-left: 4px; }
  .d-kbd { display: none; }
  .d-themen-link { display: inline-flex !important; padding: 0 12px !important; }
  .d-app { display: none !important; }
  .d-ist-start .d-app { display: inline-flex !important; }
  .d-ist-start .d-doku-link { display: inline-flex; }
  .d-wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "nav"; padding: 0 16px; }
  .d-main { padding: 22px 0 40px; }
  .d-nav { position: static; max-height: none; overflow: visible; padding: 24px 0 40px; border-top: 1px solid var(--line-soft); }
  .d-nav-web { display: block; }
  .d-lede { font-size: 17px; }
  .d-vz { grid-template-columns: minmax(0, 1fr); }
  .d-nach { grid-column: 1; }
  .d-aufgaben { grid-template-columns: minmax(0, 1fr); }
  .d-bereiche, .d-kacheln { grid-template-columns: minmax(0, 1fr); }
  .d-sek { margin-top: 48px; }
  .d-fuss-links { margin-left: 0; }
}
@media (max-width: 680px) {
  .d-bild > .db { padding: 14px; }
  .db-drei { grid-template-columns: minmax(0, 1fr); }
  .db-weg { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .db-weg li { flex-direction: row; text-align: left; gap: 12px; padding: 4px 0; }
  .db-weg li:not(:last-child)::after { left: 15px; right: auto; top: 36px; bottom: -6px; width: 2px; height: auto; }
  .db-weg-t { font-size: 14px; }
  .db-paar, .db-kette, .db-stufen, .db-wl { grid-template-columns: minmax(0, 1fr); }
  .db-paar-pfeil, .db-kette-pfeil .db-ic, .db-stufe-pfeil .db-ic { transform: rotate(90deg); justify-self: center; }
  .db-paar-pfeil .db-ic { transform: rotate(90deg); }
  .db-paar-pfeil { transform: none; }
  .db-stufe-pfeil { flex-direction: row; justify-content: center; }
  .db-vgl-bilder { grid-template-columns: 1fr 1fr; }
  .db-schutz { grid-template-columns: minmax(0, 1fr); }
  .db-dns-kopf, .db-dns-reihe { grid-template-columns: 64px 50px minmax(0, 1fr); padding: 10px; }
  .db-leiste { gap: 6px; }
  .db-adresse { flex-basis: 100%; margin-left: 0; order: 3; }
  .db-umschalter { margin-left: 0; }
  /* Tabellen als Karten: jede Zeile ein Block, Spaltenname vor dem Wert */
  .d-tabelle { border: 0; background: none; overflow: visible; }
  .d-text .d-tabelle table, .d-text .d-tabelle tbody, .d-text .d-tabelle tr, .d-text .d-tabelle th, .d-text .d-tabelle td { display: block; }
  .d-text .d-tabelle thead { display: none; }
  .d-text .d-tabelle tbody { display: grid; gap: 8px; }
  .d-text .d-tabelle tr { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
  .d-text .d-tabelle tbody th { padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line-soft); }
  .d-text .d-tabelle td { padding: 8px 14px; border-bottom: 1px solid var(--line-soft); }
  .d-text .d-tabelle td::before { content: attr(data-spalte); display: block; color: var(--ink-faint); font-size: 12.5px; font-weight: 650; }
  .d-text .d-tabelle tr > :last-child { border-bottom: 0; }
  .d-text .d-tabelle-2 td::before { display: none; }
  .d-text h2 { margin-top: 1.8em; padding-top: .8em; font-size: 22px; }
  .d-text tbody tr:hover > * { background: inherit; }
  .d-text .d-tabelle tbody tr:hover th { background: var(--surface-2); }
  .d-schritt { padding: 12px 14px 12px 12px; gap: 12px; }
  .d-suche-gross input { padding-right: 16px; }
  .d-suche-los { display: none; }
  .d-lp { padding: 18px; }
}
@media (max-width: 420px) {
  .d-wortmarke .qlogo { height: 22px; }
  .d-marke b { display: none; }
  .d-themen-link span { display: none; }
  .d-themen-link { width: 40px; padding: 0 !important; justify-content: center; }
  .d-meta li { height: auto; min-height: 30px; padding: 4px 10px; }
}
/* Mit Skript (doku.js setzt html.d-js): Navigation am Handy als Schublade statt unter dem Inhalt */
@media (max-width: 899px) {
  .d-js .d-nav { position: fixed; inset: var(--top) 0 0 0; z-index: 29; overflow-y: auto; padding: 16px 16px 40px; background: var(--bg); border-top: 1px solid var(--line-soft); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
  .d-js.d-nav-offen .d-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .18s, transform .18s; }
  .d-js.d-nav-offen body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print {
  .d-top, .d-nav, .d-toc, .d-toc-m, .d-vz, .d-fuss, .d-skip, .d-lp-karte, .d-schritte-stand, .d-kopieren { display: none !important; }
  .d-wrap { display: block; }
  body { background: #fff; color: #000; }
  .d-schritt, .d-bild, .d-hinweis { break-inside: avoid; }
}
