/* ============================================================
 * P360 — Design Tokens
 * ============================================================
 * Zentrale Design-Variablen für die ganze App. Diese Datei
 * definiert KEIN Styling — nur Variablen. Das eigentliche
 * Styling kommt aus components.css.
 *
 * Verwendung:
 *   <link rel="stylesheet" href="/static/tokens.css">
 *   color: var(--c-text);
 *   padding: var(--c-space-4);
 *
 * Konvention: alle neuen Variablen tragen den Präfix --c-
 * (für "component"), damit sie nicht mit den bestehenden
 * --primary, --bg etc. aus base.html kollidieren.
 * ============================================================ */

:root {
    /* ── Spacing-Skala (4er-System) ──────────────────────── */
    --c-space-1: 4px;
    --c-space-2: 8px;
    --c-space-3: 12px;
    --c-space-4: 16px;
    --c-space-5: 20px;
    --c-space-6: 24px;
    --c-space-8: 32px;
    --c-space-10: 40px;
    --c-space-12: 48px;
    --c-space-16: 64px;

    /* ── Border-Radien ───────────────────────────────────── */
    --c-radius-sm: 6px;
    --c-radius: 8px;
    --c-radius-lg: 12px;
    --c-radius-xl: 16px;
    --c-radius-full: 9999px;

    /* ── Schriften ───────────────────────────────────────── */
    --c-font-display: 'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;
    --c-font-mono: 'Courier New', 'SF Mono', Menlo, monospace;

    /* ── Schriftgrössen-Skala ────────────────────────────── */
    --c-text-xs: 11px;
    --c-text-sm: 12px;
    --c-text-base: 14px;
    --c-text-md: 15px;
    --c-text-lg: 17px;
    --c-text-xl: 20px;
    --c-text-2xl: 24px;
    --c-text-3xl: 32px;

    /* ── Farben — Grau-Skala ─────────────────────────────── */
    --c-gray-50: #f9fafb;
    --c-gray-100: #f3f4f6;
    --c-gray-200: #e5e7eb;
    --c-gray-300: #d1d5db;
    --c-gray-400: #9ca3af;
    --c-gray-500: #6b7280;
    --c-gray-600: #4b5563;
    --c-gray-700: #374151;
    --c-gray-800: #1f2937;
    --c-gray-900: #111827;

    /* ── Farben — Brand (übernommen aus :root von base.html) ── */
    --c-primary: var(--primary, #20B2FF);
    --c-primary-50: #ecf8ff;
    --c-primary-100: #d4eeff;
    --c-primary-600: #0090d8;
    --c-primary-700: #0071ad;
    --c-primary-900: #0d4a6b;

    /* ── Farben — Status ─────────────────────────────────── */
    --c-success: #16a34a;
    --c-success-50: #f0fdf4;
    --c-success-100: #dcfce7;
    --c-warn: #f59e0b;
    --c-warn-50: #fffbeb;
    --c-warn-100: #fef3c7;
    --c-danger: #dc2626;
    --c-danger-50: #fef2f2;
    --c-danger-100: #fee2e2;

    /* ── Semantische Aliase ──────────────────────────────── */
    --c-text: var(--c-gray-800);
    --c-text-muted: var(--c-gray-500);
    --c-text-subtle: var(--c-gray-400);
    --c-bg: var(--c-gray-50);
    --c-bg-card: #ffffff;
    --c-bg-subtle: var(--c-gray-100);
    --c-border: var(--c-gray-200);
    --c-border-strong: var(--c-gray-300);

    /* ── Shadows ─────────────────────────────────────────── */
    --c-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --c-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --c-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --c-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --c-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

    /* ── Transitions ─────────────────────────────────────── */
    --c-transition-fast: 0.15s ease;
    --c-transition: 0.2s ease;
    --c-transition-slow: 0.3s ease;

    /* ── Z-Index-Skala ───────────────────────────────────── */
    --c-z-dropdown: 100;
    --c-z-sticky: 200;
    --c-z-modal-backdrop: 900;
    --c-z-modal: 1000;
    --c-z-toast: 9999;
}
