/*
----------------------------------------
Datei: style.css
Beschreibung: Designgrundlagen nach 13_Design_und_UI_Standards.md: Farben (hell und dunkel), Schrift, Grundelemente.
----------------------------------------
*/

:root {
    --primaer: #2563EB;
    --primaer-hover: #1D4ED8;
    --primaer-aktiv: #1E40AF;
    --primaer-hell: #DBEAFE;
    --erfolg: #16A34A;
    --erfolg-hell: #DCFCE7;
    --erfolg-dunkel: #166534;
    --warnung: #F59E0B;
    --warnung-hell: #FEF3C7;
    --warnung-dunkel: #92400E;
    --fehler: #DC2626;
    --fehler-hell: #FEE2E2;
    --fehler-dunkel: #991B1B;
    --info: #0EA5E9;
    --info-hell: #E0F2FE;
    --info-dunkel: #075985;
    --seite: #F8FAFC;
    --flaeche: #FFFFFF;
    --flaeche-2: #F1F5F9;
    --flaeche-hover: #F8FAFC;
    --rahmen: #E2E8F0;
    --rahmen-stark: #CBD5E1;
    --text: #0F172A;
    --text-2: #475569;
    --text-aus: #94A3B8;
    --radius: 10px;
    --radius-klein: 6px;
    --schatten: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
    --schrift: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primaer-hell: #172554;
        --erfolg-hell: #052e16;
        --erfolg-dunkel: #86EFAC;
        --warnung-hell: #422006;
        --warnung-dunkel: #FCD34D;
        --fehler-hell: #450a0a;
        --fehler-dunkel: #FCA5A5;
        --info-hell: #082f49;
        --info-dunkel: #7DD3FC;
        --seite: #0B1120;
        --flaeche: #111827;
        --flaeche-2: #1E293B;
        --flaeche-hover: #172033;
        --rahmen: #273449;
        --rahmen-stark: #334155;
        --text: #F8FAFC;
        --text-2: #CBD5E1;
        --text-aus: #64748B;
        --schatten: 0 1px 2px rgba(0, 0, 0, 0.4);
        color-scheme: dark;
    }
}

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

html, body { margin: 0; padding: 0; }

body {
    font-family: var(--schrift);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--seite);
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 8px; font-weight: 600; }
h1 { font-size: 30px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; margin-top: 16px; }
p { margin: 0 0 12px; max-width: 680px; }

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

code, pre { font-family: var(--mono); font-size: 13px; }
code { background: var(--flaeche-2); padding: 1px 6px; border-radius: 4px; }

.text-sekundaer { color: var(--text-2); }
.nowrap { white-space: nowrap; }
.rechts { text-align: right; }
