@charset "UTF-8";
/*
 * Leveluphost Docs - Erscheinungsbild
 *
 * Von Hand geschrieben, kein Build-Schritt (siehe CLAUDE.md). Auf diesem
 * Server ist kein Node installiert, und fuer eine Doku-Seite dieser
 * Groesse waere ein eigener Werkzeugkasten mehr Wartungslast als Nutzen.
 * Aendert man hier etwas, ist es nach dem Speichern sofort wirksam; die
 * Seiten tragen die Aenderungszeit als ?v= mit.
 *
 * Handschrift: dieselbe wie in der Storefront unter leveluphost.de.
 * Nachtblaue Leisten (#0b1424), ein einziger Blauakzent, Inter fuer den
 * Lesetext, Plus Jakarta Sans fuer Ueberschriften, JetBrains Mono fuer
 * Code. Bewusst zurueckhaltend: neutrale weiche Schatten, einheitliche
 * Radien, keine Verlaeufe, keine Leuchtflaechen, keine Emoji als Symbole.
 *
 * Aufbau:
 *   0. Schriften
 *   1. Farben (hell und dunkel)
 *   2. Grundgeruest
 *   3. Kopfzeile
 *   4. Navigation links
 *   5. Inhalt
 *   6. Auf dieser Seite (rechts)
 *   7. Hinweiskaesten
 *   8. Code
 *   9. Suche
 *  10. Fussleiste
 *  11. Schmale Bildschirme
 *  12. Ohne JavaScript
 */

/* ---------------------------------------------------------------- 0. Schriften

   Selbst gehostet, aus der Storefront uebernommen. Kein Aufruf bei einem
   fremden Anbieter, damit der Besuch der Doku nicht mehr verraet als
   noetig. Latin und Latin-Extended, sonst faellt der Umlaut auf eine
   andere Schriftfamilie und faellt im Satz auf.
*/

@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('/fonts/docs/inter/inter-400-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; font-display: swap;
    src: url('/fonts/docs/inter/inter-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('/fonts/docs/inter/inter-500-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: 500; font-display: swap;
    src: url('/fonts/docs/inter/inter-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
    src: url('/fonts/docs/inter/inter-600-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: 600; font-display: swap;
    src: url('/fonts/docs/inter/inter-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('/fonts/docs/inter/inter-700-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: 700; font-display: swap;
    src: url('/fonts/docs/inter/inter-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap;
    src: url('/fonts/docs/jakarta/jakarta-600-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: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap;
    src: url('/fonts/docs/jakarta/jakarta-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('/fonts/docs/jakarta/jakarta-700-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: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('/fonts/docs/jakarta/jakarta-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap;
    src: url('/fonts/docs/jakarta/jakarta-800-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: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap;
    src: url('/fonts/docs/jakarta/jakarta-800-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('/fonts/docs/jetbrains/jetbrains-400-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: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('/fonts/docs/jetbrains/jetbrains-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('/fonts/docs/jetbrains/jetbrains-500-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: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('/fonts/docs/jetbrains/jetbrains-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------------------------------------------------- 1. Farben

   Ein Akzent, sonst Graustufen. Die Werte stammen aus der Storefront:
   brand-600 als Akzent, slate fuer Text und Flaechen, #0b1424 fuer die
   Leisten.
*/

:root {
    --grund: #ffffff;
    --grund-leicht: #f8fafc;
    --grund-tief: #f1f5f9;
    --rand: #e2e8f0;
    --rand-leise: #eef2f7;
    --text: #0f172a;
    --text-leise: #475569;
    --text-sehr-leise: #64748b;

    --marke: #2563eb;
    --marke-tief: #1d4ed8;
    --marke-hell: #3b82f6;
    --marke-flaeche: #eff6ff;

    --nacht: #0b1424;
    --nacht-text: #cbd5e1;
    --nacht-leise: #94a3b8;
    --nacht-rand: rgba(255, 255, 255, .09);
    --nacht-flaeche: rgba(255, 255, 255, .05);

    --fokus: #3b82f6;

    --note: #2563eb;
    --note-grund: #eff6ff;
    --tip: #047857;
    --tip-grund: #ecfdf5;
    --warning: #b45309;
    --warning-grund: #fffbeb;
    --danger: #dc2626;
    --danger-grund: #fef2f2;

    --breite-nav: 280px;
    --breite-rand: 240px;
    --hoehe-kopf: 60px;

    --schrift: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --schrift-titel: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, sans-serif;
    --schrift-code: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --schatten-leicht: 0 1px 2px rgb(15 23 42 / .04);
    --schatten: 0 1px 2px rgb(15 23 42 / .04), 0 14px 34px -16px rgb(15 23 42 / .18);
}

html.dark {
    --grund: #0d1524;
    --grund-leicht: #131d31;
    --grund-tief: #18233b;
    --rand: #24314b;
    --rand-leise: #1b2740;
    --text: #e7edf6;
    --text-leise: #a3b1c6;
    --text-sehr-leise: #94a3b8;

    --marke: #60a5fa;
    --marke-tief: #93c5fd;
    --marke-hell: #3b82f6;
    --marke-flaeche: #13233d;

    --nacht: #0a1120;
    --nacht-text: #cbd5e1;
    --nacht-leise: #8fa0b8;

    --note: #60a5fa;
    --note-grund: #13233d;
    --tip: #34d399;
    --tip-grund: #0f2a24;
    --warning: #fbbf24;
    --warning-grund: #2a2210;
    --danger: #f87171;
    --danger-grund: #2c1518;
}

/* Ohne gespeicherte Wahl der Systemeinstellung folgen. */
@media (prefers-color-scheme: dark) {
    html:not(.light) {
        --grund: #0d1524;
        --grund-leicht: #131d31;
        --grund-tief: #18233b;
        --rand: #24314b;
        --rand-leise: #1b2740;
        --text: #e7edf6;
        --text-leise: #a3b1c6;
        --text-sehr-leise: #94a3b8;

        --marke: #60a5fa;
        --marke-tief: #93c5fd;
        --marke-hell: #3b82f6;
        --marke-flaeche: #13233d;

        --nacht: #0a1120;
        --nacht-text: #cbd5e1;
        --nacht-leise: #8fa0b8;

        --note: #60a5fa;
        --note-grund: #13233d;
        --tip: #34d399;
        --tip-grund: #0f2a24;
        --warning: #fbbf24;
        --warning-grund: #2a2210;
        --danger: #f87171;
        --danger-grund: #2c1518;
    }
}

/* ---------------------------------------------------------------- 2. Geruest */

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

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--schrift);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--grund);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--marke-tief); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: #dbeafe; color: #172554; }

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

.skip {
    position: absolute;
    left: -9999px;
}
.skip:focus {
    left: 12px;
    top: 12px;
    z-index: 100;
    background: var(--nacht);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--nacht-rand);
}

.rahmen {
    display: grid;
    grid-template-columns: var(--breite-nav) minmax(0, 1fr) var(--breite-rand);
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    align-items: start;
    /* Die Fussleiste sitzt unten, auch wenn die Seite kurz ist. */
    flex: 1;
}

/* ---------------------------------------------------------------- 3. Kopf

   Nachtblaue Leiste wie die Kopfzeile der Storefront. Das Logo ist fuer
   dunklen Grund gezeichnet - auf Weiss waere es nicht zu lesen.
*/

.kopf {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--hoehe-kopf);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 24px;
    background: color-mix(in srgb, var(--nacht) 96%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--nacht-rand);
}

.marke {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--nacht-text);
}
.marke:hover { text-decoration: none; }
.marke img {
    height: 25px;
    width: auto;
    display: block;
    opacity: .96;
}
.marke:hover img { opacity: 1; }
.marke .wort {
    padding-left: 12px;
    border-left: 1px solid var(--nacht-rand);
    font-family: var(--schrift-titel);
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--nacht-leise);
}

.kopf-rechts {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suche-schalter {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 216px;
    padding: 7px 9px 7px 12px;
    border: 1px solid var(--nacht-rand);
    border-radius: 10px;
    background: var(--nacht-flaeche);
    color: var(--nacht-leise);
    font: inherit;
    font-size: 13.5px;
    cursor: pointer;
}
.suche-schalter:hover {
    background: rgba(255, 255, 255, .09);
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
}
.suche-schalter .lupe { flex: 0 0 auto; width: 15px; height: 15px; }
.suche-schalter kbd { margin-left: auto; }

kbd {
    font-family: var(--schrift);
    font-size: 11.5px;
    line-height: 1;
    padding: 4px 6px;
    border: 1px solid var(--nacht-rand);
    border-radius: 6px;
    background: rgba(255, 255, 255, .07);
    color: var(--nacht-text);
}

.thema-schalter, .menue-schalter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--nacht-rand);
    border-radius: 10px;
    background: var(--nacht-flaeche);
    color: var(--nacht-text);
    cursor: pointer;
}
.thema-schalter:hover, .menue-schalter:hover {
    background: rgba(255, 255, 255, .09);
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
}
.thema-schalter svg, .menue-schalter svg { width: 16px; height: 16px; }

/* Sonne im hellen, Mond im dunklen Erscheinungsbild. */
.thema-schalter .mond { display: none; }
html.dark .thema-schalter .sonne { display: none; }
html.dark .thema-schalter .mond { display: block; }
@media (prefers-color-scheme: dark) {
    html:not(.light) .thema-schalter .sonne { display: none; }
    html:not(.light) .thema-schalter .mond { display: block; }
}

.menue-schalter { display: none; }

/* ---------------------------------------------------------------- 4. Navigation */

.navigation {
    position: sticky;
    top: var(--hoehe-kopf);
    max-height: calc(100vh - var(--hoehe-kopf));
    overflow-y: auto;
    padding: 26px 14px 56px 22px;
    border-right: 1px solid var(--rand);
}

.baum { list-style: none; margin: 0; padding: 0; }
.baum .baum { margin-left: 9px; padding-left: 11px; border-left: 1px solid var(--rand); }

/* Geschlossene Aeste bleiben eingeklappt - sonst ist die Navigation bei
   einer groesseren Doku sofort unuebersichtlich. Aufklappbar sind sie
   ueber die Schaltflaechen; ohne JavaScript steht alles offen (siehe
   ganz unten). */
.baum .baum { display: none; }
.baum li.offen > .baum { display: block; }

.baum a, .baum .ordner {
    display: block;
    padding: 6px 9px;
    border-radius: 9px;
    font-size: 14px;
    color: var(--text-leise);
    line-height: 1.45;
}
.baum a:hover { background: var(--grund-leicht); color: var(--text); text-decoration: none; }

/* Ordner ist eine Schaltflaeche - Browser-Vorgaben zuruecksetzen. Sie
   traegt nur eine Gliederungsueberschrift, deshalb klein und in
   Versalien: sie soll den Baum ordnen, nicht mit den Seiten wetteifern. */
.baum .ordner {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 20px;
    border: 0;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-sehr-leise);
    text-align: left;
}
.baum .ordner:hover { background: var(--grund-leicht); color: var(--text-leise); }

/* Seite MIT Unterseiten: Pfeil klappt auf, Titel fuehrt hin. */
.baum .zeile { display: flex; align-items: center; }
.baum .zeile a { flex: 1; min-width: 0; }

.baum .pfeil-knopf {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: -2px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--text-sehr-leise);
    cursor: pointer;
}
.baum .pfeil-knopf:hover { background: var(--grund-tief); color: var(--marke); }

/* Der Pfeil ist gezeichnet, nicht gesetzt: ein Textzeichen saehe in jeder
   Schrift anders aus. */
.baum .pfeil {
    display: block;
    width: 5px;
    height: 5px;
    font-size: 0;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .15s ease;
}
.baum li.offen > .ordner .pfeil,
.baum li.offen > .zeile .pfeil { transform: rotate(45deg); }

.baum .ordner .pfeil { margin-left: 1px; }

.baum a.aktiv {
    background: var(--marke-flaeche);
    color: var(--marke-tief);
    font-weight: 600;
    /* Flache linke Kante als Marke, rechts gerundet. */
    border-radius: 3px 9px 9px 3px;
    box-shadow: inset 2px 0 0 var(--marke);
}

/* ---------------------------------------------------------------- 5. Inhalt */

main {
    min-width: 0;
    padding: 40px 56px 96px;
}

.brotkrumen {
    font-size: 12.5px;
    color: var(--text-sehr-leise);
    margin-bottom: 14px;
}
.brotkrumen span + span::before {
    content: "/";
    margin: 0 8px;
    color: var(--text-sehr-leise);
    opacity: .6;
}

main h1 {
    font-family: var(--schrift-titel);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -.028em;
    margin: 0 0 14px;
}

.vorspann {
    max-width: 44rem;
    font-size: 17.5px;
    line-height: 1.6;
    color: var(--text-leise);
    margin: 0 0 34px;
}

.text { max-width: 46rem; }

.text h2, .text h3, .text h4 {
    font-family: var(--schrift-titel);
    letter-spacing: -.02em;
    /* Damit ein Sprung nicht unter der klebenden Kopfzeile landet. */
    scroll-margin-top: calc(var(--hoehe-kopf) + 20px);
}
.text h2 {
    font-size: 23px;
    font-weight: 700;
    margin: 52px 0 14px;
    padding-top: 22px;
    border-top: 1px solid var(--rand-leise);
}
.text h3 { font-size: 18px; font-weight: 700; margin: 34px 0 10px; }
.text h4 { font-size: 15.5px; font-weight: 600; margin: 26px 0 8px; }

.text h2:first-child { border-top: 0; margin-top: 0; padding-top: 0; }

.anker {
    margin-left: 10px;
    color: var(--text-sehr-leise);
    opacity: 0;
    font-weight: 400;
    transition: opacity .12s;
}
h2:hover .anker, h3:hover .anker, h4:hover .anker { opacity: 1; }
.anker:hover { color: var(--marke); text-decoration: none; }

.text p { margin: 15px 0; }
.text ul, .text ol { margin: 15px 0; padding-left: 22px; }
.text li { margin: 7px 0; }
.text li > ul, .text li > ol { margin: 7px 0; }
.text li::marker { color: var(--text-sehr-leise); }

.text a {
    color: var(--marke-tief);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--marke) 35%, transparent);
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.text a:hover {
    color: var(--marke);
    text-decoration-color: currentColor;
}

.text strong { font-weight: 600; color: var(--text); }
.text img { max-width: 100%; height: auto; border-radius: 12px; }

.text blockquote {
    margin: 20px 0;
    padding: 2px 0 2px 18px;
    border-left: 2px solid var(--rand);
    color: var(--text-leise);
}

.text hr { border: 0; border-top: 1px solid var(--rand-leise); margin: 40px 0; }

/* Tabellen muessen auf schmalen Bildschirmen scrollen duerfen, ohne die
   ganze Seite mitzunehmen. */
.text table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    font-size: 14.5px;
    display: block;
    overflow-x: auto;
}
.text th, .text td {
    border: 1px solid var(--rand);
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}
.text th { background: var(--grund-leicht); font-weight: 600; }
.text tbody tr:hover { background: var(--grund-leicht); }

/* ---------------------------------------------------------------- 6. Seitenrand */

.seitenrand {
    position: sticky;
    top: var(--hoehe-kopf);
    max-height: calc(100vh - var(--hoehe-kopf));
    overflow-y: auto;
    padding: 42px 24px 56px 6px;
    font-size: 13.5px;
}

.seitenrand-titel {
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-sehr-leise);
    margin: 0 0 12px;
}

.seitenrand ul { list-style: none; margin: 0; padding: 0; }
.seitenrand li { margin: 0; }
.seitenrand li.ebene-3 { padding-left: 12px; }
.seitenrand a {
    display: block;
    padding: 4px 0 4px 12px;
    border-left: 2px solid var(--rand);
    color: var(--text-leise);
    line-height: 1.45;
}
.seitenrand a:hover {
    color: var(--marke);
    border-left-color: var(--text-sehr-leise);
    text-decoration: none;
}
.seitenrand a.aktiv {
    color: var(--marke-tief);
    border-left-color: var(--marke);
    font-weight: 600;
}

/* ---------------------------------------------------------------- 7. Hinweise */

.callout {
    margin: 22px 0;
    padding: 14px 18px;
    border: 1px solid var(--rand);
    border-radius: 14px;
    background: var(--grund-leicht);
}
.callout > p:first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }

/* Der Punkt vor der Ueberschrift traegt die Farbe, nicht die ganze
   Flaeche - das bleibt lesbar und sieht nicht nach Warnbake aus. */
.callout-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--schrift-titel);
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: -.005em;
    margin: 0 0 6px;
}
.callout-title::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.callout-note    { background: var(--note-grund);    border-color: color-mix(in srgb, var(--note) 26%, var(--grund)); }
.callout-note .callout-title    { color: var(--note); }
.callout-tip     { background: var(--tip-grund);     border-color: color-mix(in srgb, var(--tip) 26%, var(--grund)); }
.callout-tip .callout-title     { color: var(--tip); }
.callout-warning { background: var(--warning-grund); border-color: color-mix(in srgb, var(--warning) 30%, var(--grund)); }
.callout-warning .callout-title { color: var(--warning); }
.callout-danger  { background: var(--danger-grund);  border-color: color-mix(in srgb, var(--danger) 26%, var(--grund)); }
.callout-danger .callout-title  { color: var(--danger); }

/* Verweis in den Adminbereich des Lesers. Bewusst kein Link - auf DIESER
   Seite gibt es kein Ziel dafuer. Im Chatbot-Widget wird derselbe Pfad zu
   einem echten Deep-Link. */
.panelpfad {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 1px 9px 1px 7px;
    border: 1px solid var(--rand);
    border-radius: 7px;
    background: var(--grund-leicht);
    font-size: .93em;
}
.panelpfad::before {
    content: "↦";
    color: var(--marke);
    font-weight: 700;
}
.panelpfad code { background: none; padding: 0; color: var(--text-leise); }

/* ---------------------------------------------------------------- 8. Code */

code {
    font-family: var(--schrift-code);
    font-size: 0.875em;
    background: var(--grund-tief);
    padding: 2px 6px;
    border-radius: 6px;
}

pre {
    position: relative;
    font-family: var(--schrift-code);
    font-size: 13.5px;
    line-height: 1.65;
    background: var(--grund-leicht);
    border: 1px solid var(--rand);
    border-radius: 14px;
    padding: 16px 20px;
    overflow-x: auto;
    margin: 22px 0;
}
pre code { background: none; padding: 0; font-size: inherit; }

/* Die Sprache als kleine Beschriftung ueber dem Block. Sie steht im
   Fluss, damit sie beim seitlichen Scrollen nicht ueber den Code
   wandert. */
pre[data-lang]::before {
    content: attr(data-lang);
    display: block;
    white-space: normal;
    margin: 0 0 10px;
    font-family: var(--schrift-code);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-sehr-leise);
}

/* Farben von tempest/highlight. Die Klassennamen stammen aus dessen
   CssTheme - alle zwoelf sind abgedeckt, damit nicht je nach Sprache
   einzelne Token ungefaerbt bleiben. Bewusst zurueckhaltend: eine Doku
   ist kein Editor.

   Rot, Orange und Gruen sind gegenueber den Vorlagen von GitHub so weit
   abgedunkelt, dass sie auf dem hellen Codegrund 4,5:1 erreichen - die
   Vorlagen liegen bei 3,3 bis 4,4:1. */
.hl-keyword   { color: #c83644; }
.hl-property  { color: #6f42c1; }
.hl-value     { color: #032f62; }
.hl-literal   { color: #032f62; }
.hl-type      { color: #005cc5; }
.hl-number    { color: #005cc5; }
.hl-variable  { color: #b64e07; }
.hl-attribute { color: #6f42c1; }
.hl-operator  { color: var(--text-leise); }
.hl-generic   { color: var(--text); }
.hl-injection { color: var(--text); }
.hl-addition  { color: #207d36; }
.hl-deletion  { color: #b31d28; }
.hl-strong    { font-weight: 700; }
.hl-em        { font-style: italic; }

html.dark .hl-keyword   { color: #ff7b72; }
html.dark .hl-property, html.dark .hl-attribute { color: #d2a8ff; }
html.dark .hl-value, html.dark .hl-literal      { color: #a5d6ff; }
html.dark .hl-type, html.dark .hl-number        { color: #79c0ff; }
html.dark .hl-variable  { color: #ffa657; }
html.dark .hl-addition  { color: #7ee787; }
html.dark .hl-deletion  { color: #ffa198; }

@media (prefers-color-scheme: dark) {
    html:not(.light) .hl-keyword   { color: #ff7b72; }
    html:not(.light) .hl-property, html:not(.light) .hl-attribute { color: #d2a8ff; }
    html:not(.light) .hl-value, html:not(.light) .hl-literal      { color: #a5d6ff; }
    html:not(.light) .hl-type, html:not(.light) .hl-number        { color: #79c0ff; }
    html:not(.light) .hl-variable  { color: #ffa657; }
    html:not(.light) .hl-addition  { color: #7ee787; }
    html:not(.light) .hl-deletion  { color: #ffa198; }
}

/* ---------------------------------------------------------------- 9. Suche */

.suche-schicht {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(11, 20, 36, .55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 20px 20px;
}
.suche-schicht[hidden] { display: none; }

.suche-fenster {
    width: 100%;
    max-width: 620px;
    background: var(--grund);
    border: 1px solid var(--rand);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgb(15 23 42 / .05), 0 30px 70px -24px rgb(15 23 42 / .45);
    overflow: hidden;
}

.suche-kopf {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--rand-leise);
}
.suche-kopf .lupe { flex: 0 0 auto; width: 17px; height: 17px; color: var(--text-sehr-leise); }
.suche-kopf input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 16px;
    color: var(--text);
    outline: none;
}
.suche-kopf input::placeholder { color: var(--text-sehr-leise); }
.suche-fenster kbd {
    border-color: var(--rand);
    background: var(--grund-leicht);
    color: var(--text-sehr-leise);
}

.suche-treffer { max-height: 56vh; overflow-y: auto; padding: 10px; }

.suche-treffer a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text);
}
.suche-treffer a:hover, .suche-treffer a.markiert {
    background: var(--marke-flaeche);
    text-decoration: none;
}
.suche-treffer .titel { font-weight: 600; font-size: 14.5px; }
.suche-treffer .pfad { font-size: 12px; color: var(--text-sehr-leise); margin-top: 1px; }
.suche-treffer .auszug { font-size: 13px; color: var(--text-leise); margin-top: 4px; }
.suche-treffer .leer { padding: 28px; text-align: center; color: var(--text-leise); font-size: 14px; }

/* ---------------------------------------------------------------- 10. Fussleiste

   Kurz gehalten: die Doku ist kein Marketing. Sie traegt die Marke und
   den Weg zurueck zum Rest der Seite.
*/

.fuss {
    background: var(--nacht);
    color: var(--nacht-leise);
}
.fuss-inhalt {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
}
.fuss img { height: 22px; width: auto; display: block; opacity: .9; }
.fuss-rechts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    font-size: 13px;
}
.fuss-rechts a { color: var(--nacht-text); }
.fuss-rechts a:hover { color: #fff; text-decoration: underline; }
.fuss-klein { font-size: 12.5px; margin: 0; }

/* --------------------------------------------------------------- 11. Schmal */

@media (max-width: 1180px) {
    .rahmen { grid-template-columns: var(--breite-nav) minmax(0, 1fr); }
    .seitenrand { display: none; }
}

@media (max-width: 860px) {
    .rahmen { grid-template-columns: minmax(0, 1fr); }
    .menue-schalter { display: inline-flex; }
    .kopf { padding: 0 16px; gap: 10px; }
    .marke .wort { display: none; }
    .suche-schalter { min-width: auto; padding: 7px 9px; }
    .suche-schalter span, .suche-schalter kbd { display: none; }

    .navigation {
        display: none;
        position: fixed;
        top: var(--hoehe-kopf);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        max-height: none;
        background: var(--grund);
        border-right: 0;
    }
    .navigation.offen { display: block; }

    main { padding: 28px 20px 72px; }
    main h1 { font-size: 27px; }
    .vorspann { font-size: 16.5px; }
    .fuss-inhalt { padding: 26px 20px; }
}

/* ---------------------------------------------------------------- 12. Ohne JS

   Die Navigation lebt vom Auf- und Zuklappen. Ist JavaScript aus, kaeme
   man an eingeklappte Aeste nie heran - also steht dann alles offen.
*/

.kein-js .baum .baum { display: block; }
.kein-js .baum .pfeil { display: none; }
