/**
 * Design Tokens - CSS Custom Properties
 * Dark Theme für StAbt6
 */

:root {
    /* Hintergrundfarben */
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --bg-elevated: #2a2a2a;

    /* Akzentfarben */
    --accent: #6366f1;
    --accent-dark: #4f46e5;   /* Dunkleres Indigo für WCAG AA Kontrast mit weißem Text */
    --accent-hover: #818cf8;
    --accent-light: #a5b4fc;  /* Helles Indigo für Text auf dunklem Hintergrund (WCAG AA) */
    --accent-muted: rgba(99, 102, 241, 0.1);

    /* Textfarben - WCAG 2.1 AA konform (min. 4.5:1 Kontrast) */
    --text-primary: #ffffff;
    --text-secondary: #c4c4cc;  /* 5.2:1 auf #1a1a1a (bg-secondary) */
    --text-muted: #9a9aa3;      /* 4.6:1 auf #1a1a1a (bg-secondary) */

    /* Rahmen */
    --border-color: #2e2e2e;
    --border-light: #3f3f46;

    /* Status-Farben */
    --success: #22c55e;
    --success-muted: rgba(34, 197, 94, 0.1);
    --warning: #f59e0b;
    --warning-muted: rgba(245, 158, 11, 0.1);
    --error: #ef4444;
    --error-muted: rgba(239, 68, 68, 0.1);
    --info: #3b82f6;
    --info-muted: rgba(59, 130, 246, 0.1);

    /* Schatten */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);

    /* Abstände (8px Grid) */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */

    /* Border Radius */
    --radius-sm: 0.25rem;  /* 4px */
    --radius-md: 0.5rem;   /* 8px */
    --radius-lg: 0.75rem;  /* 12px */
    --radius-xl: 1rem;     /* 16px */
    --radius-full: 9999px;

    /* Typografie */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */

    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Layout */
    --sidebar-width: 260px;
    --sidebar-collapsed: 70px;
    --topbar-height: 64px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-bounce: 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Focus */
    --focus-ring: 0 0 0 3px rgba(99, 102, 241, 0.5);
    --focus-ring-offset: 2px;

    /* Glow Effects */
    --glow-accent: 0 0 20px rgba(99, 102, 241, 0.4);
    --glow-success: 0 0 20px rgba(34, 197, 94, 0.3);
    --glow-error: 0 0 20px rgba(239, 68, 68, 0.3);

    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
}
