/* ==========================================================================
   Design-Tokens der Vereinsplattform
   Umschaltung über <html data-theme="redblack|dark|light">, Speicherung in localStorage['pf.theme'].
   Ein Token-Satz für alle Module (ersetzt --bg-main/--bg-card/--card … der Altsysteme).
   ========================================================================== */

:root,
[data-theme="redblack"] {
    color-scheme: dark;
    --bg:            #0b0b0d;
    --surface:       #151518;
    --surface-2:     #1f1f24;
    --surface-3:     #2a2a31;
    --text:          #f2f2f4;
    --muted:         #a2a2ad;
    --border:        #2e2e36;
    --accent:        #e11d2a;
    --accent-hover:  #ff3341;
    --accent-text:   #ffffff;
    --accent-soft:   rgba(225, 29, 42, .16);
    --success:       #22c55e;
    --warning:       #f59e0b;
    --danger:        #ef4444;
    --info:          #60a5fa;
    --focus:         #ff5964;
    --shadow:        0 10px 30px rgba(0, 0, 0, .45);
    --topbar-bg:     #000000;
    --sidebar-bg:    #101012;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg:            #0f172a;
    --surface:       #162033;
    --surface-2:     #1e293b;
    --surface-3:     #273449;
    --text:          #e5e9f0;
    --muted:         #94a3b8;
    --border:        #2b3a52;
    --accent:        #ef4444;
    --accent-hover:  #f87171;
    --accent-text:   #ffffff;
    --accent-soft:   rgba(239, 68, 68, .15);
    --success:       #22c55e;
    --warning:       #fbbf24;
    --danger:        #f87171;
    --info:          #60a5fa;
    --focus:         #93c5fd;
    --shadow:        0 10px 30px rgba(0, 0, 0, .35);
    --topbar-bg:     #0b1222;
    --sidebar-bg:    #111a2c;
}

[data-theme="light"] {
    color-scheme: light;
    --bg:            #f4f4f6;
    --surface:       #ffffff;
    --surface-2:     #f0f0f3;
    --surface-3:     #e4e4e9;
    --text:          #16161a;
    --muted:         #5d5d6b;
    --border:        #d9d9e0;
    --accent:        #c81e1e;
    --accent-hover:  #a51616;
    --accent-text:   #ffffff;
    --accent-soft:   rgba(200, 30, 30, .09);
    --success:       #15803d;
    --warning:       #b45309;
    --danger:        #b91c1c;
    --info:          #1d4ed8;
    --focus:         #c81e1e;
    --shadow:        0 8px 24px rgba(20, 20, 30, .08);
    --topbar-bg:     #111114;
    --sidebar-bg:    #ffffff;
}

:root {
    --radius:     10px;
    --radius-sm:  6px;
    --gap:        1rem;
    --font:       system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono:       ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --topbar-h:   56px;
    --sidebar-w:  240px;
}
