/**
 * CSS Design Tokens
 * Zentrale Custom Properties für konsistente Werte im gesamten Projekt
 *
 * @package VR-Infotainment
 * @since 1.0.0
 */

:root {
    /* =========================================================================
       FARBEN - Primär
       ========================================================================= */

    /* Royal Blue - Hauptfarbe */
    --color-primary-50: #eff6ff;
    --color-primary-100: #dbeafe;
    --color-primary-200: #bfdbfe;
    --color-primary-300: #93c5fd;
    --color-primary-400: #60a5fa;
    --color-primary-500: #3b82f6;
    --color-primary-600: #2563eb;
    --color-primary-700: #1d4ed8;
    --color-primary-800: #1e40af;
    --color-primary-900: #1e3a8a;

    /* Alias für einfache Verwendung */
    --color-primary: var(--color-primary-600);
    --color-primary-light: var(--color-primary-400);
    --color-primary-dark: var(--color-primary-800);

    /* =========================================================================
       FARBEN - Semantisch
       ========================================================================= */

    /* Success - Grün */
    --color-success-50: #ecfdf5;
    --color-success-100: #dcfce7;
    --color-success-200: #bbf7d0;
    --color-success-300: #86efac;
    --color-success-400: #4ade80;
    --color-success-500: #22c55e;
    --color-success-600: #16a34a;
    --color-success-700: #15803d;
    --color-success-800: #166534;
    --color-success-900: #14532d;

    --color-success: var(--color-success-500);
    --color-success-light: var(--color-success-400);
    --color-success-dark: var(--color-success-700);

    /* Warning - Gelb/Amber */
    --color-warning-50: #fffbeb;
    --color-warning-100: #fef3c7;
    --color-warning-200: #fde68a;
    --color-warning-300: #fcd34d;
    --color-warning-400: #fbbf24;
    --color-warning-500: #f59e0b;
    --color-warning-600: #d97706;
    --color-warning-700: #b45309;
    --color-warning-800: #92400e;
    --color-warning-900: #78350f;

    --color-warning: var(--color-warning-500);
    --color-warning-light: var(--color-warning-400);
    --color-warning-dark: var(--color-warning-700);

    /* Danger - Rot */
    --color-danger-50: #fef2f2;
    --color-danger-100: #fee2e2;
    --color-danger-200: #fecaca;
    --color-danger-300: #fca5a5;
    --color-danger-400: #f87171;
    --color-danger-500: #ef4444;
    --color-danger-600: #dc2626;
    --color-danger-700: #b91c1c;
    --color-danger-800: #991b1b;
    --color-danger-900: #7f1d1d;

    --color-danger: var(--color-danger-500);
    --color-danger-light: var(--color-danger-400);
    --color-danger-dark: var(--color-danger-700);

    /* =========================================================================
       FARBEN - Neutral (Grau)
       ========================================================================= */

    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #94a3b8;
    --color-gray-500: #64748b;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;
    --color-gray-950: #020617;

    /* =========================================================================
       FARBEN - Spezial (Theme-spezifisch)
       ========================================================================= */

    /* Akzentfarben für Themen */
    --color-accent-sky: #0ea5e9;
    --color-accent-cyan: #06b6d4;
    --color-accent-violet: #8b5cf6;
    --color-accent-purple: #a855f7;
    --color-accent-indigo: #6366f1;
    --color-accent-emerald: #10b981;
    --color-accent-teal: #14b8a6;
    --color-accent-orange: #f97316;

    /* Hintergrund (Dark Theme) */
    --color-bg-primary: #090A0F;
    --color-bg-secondary: #0f172a;
    --color-bg-tertiary: #1e293b;
    --color-bg-elevated: rgba(12, 14, 22, 0.9);
    --color-bg-glass: rgba(255, 255, 255, 0.03);
    --color-bg-glass-hover: rgba(255, 255, 255, 0.05);

    /* Text */
    --color-text-primary: #ffffff;
    --color-text-secondary: #e2e8f0;
    --color-text-tertiary: #94a3b8;
    --color-text-muted: rgba(148, 163, 184, 0.75);

    /* Borders */
    --color-border-default: rgba(148, 163, 184, 0.18);
    --color-border-subtle: rgba(255, 255, 255, 0.08);
    --color-border-emphasis: rgba(37, 99, 235, 0.5);

    /* =========================================================================
       GRADIENTEN
       ========================================================================= */

    /* Primary Gradient (Royal Blue -> Sky) */
    --gradient-primary: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-accent-sky) 100%);
    --gradient-primary-hover: linear-gradient(135deg, var(--color-primary-700) 0%, #0284c7 100%);

    /* Success Gradient */
    --gradient-success: linear-gradient(135deg, var(--color-success-500) 0%, var(--color-accent-emerald) 100%);
    --gradient-success-subtle: linear-gradient(182deg, rgba(21, 128, 61, 0.92), rgba(8, 47, 28, 0.9));

    /* Warning Gradient */
    --gradient-warning: linear-gradient(135deg, var(--color-warning-400) 0%, var(--color-warning-500) 100%);
    --gradient-warning-subtle: linear-gradient(182deg, rgba(202, 138, 4, 0.9), rgba(80, 44, 2, 0.92));

    /* Danger Gradient */
    --gradient-danger: linear-gradient(135deg, var(--color-danger-500) 0%, var(--color-danger-600) 100%);
    --gradient-danger-subtle: linear-gradient(182deg, rgba(239, 68, 68, 0.88), rgba(120, 22, 22, 0.92));

    /* Glass/Frost Gradients */
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    --gradient-glass-hover: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);

    /* Accent Gradients */
    --gradient-accent-blue: linear-gradient(135deg, var(--color-primary-500), var(--color-accent-cyan));
    --gradient-accent-purple: linear-gradient(135deg, var(--color-accent-violet), var(--color-accent-purple));
    --gradient-accent-mixed: linear-gradient(45deg, #3b82f6, #06b6d4, #0ea5e9, #3b82f6);

    /* Theme-spezifische Gradients */
    --gradient-weltall: linear-gradient(135deg, #0a0a0a 0%, #a8a8a8 100%);
    --gradient-dino: linear-gradient(135deg, #047857 0%, #f97316 100%);

    /* Text Gradients */
    --gradient-text-primary: linear-gradient(135deg, #fff 0%, #60a5fa 50%, #0ea5e9 100%);
    --gradient-text-space: linear-gradient(135deg, #ffffff 0%, #a8a8a8 50%, #0a0a0a 100%);
    --gradient-text-dino: linear-gradient(135deg, #fff 0%, #90EE90 50%, #8B4513 100%);

    /* =========================================================================
       SCHATTEN
       ========================================================================= */

    /* Kleine Schatten (Buttons, kleine Elemente) */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);

    /* Mittlere Schatten (Cards, Panels) */
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-DEFAULT: 0 4px 12px rgba(0, 0, 0, 0.15);

    /* Grosse Schatten (Modals, Dropdowns) */
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Farbige Schatten (für Akzent-Elemente) */
    --shadow-primary: 0 8px 24px rgba(37, 99, 235, 0.4);
    --shadow-primary-lg: 0 12px 48px rgba(37, 99, 235, 0.35);
    --shadow-success: 0 8px 24px rgba(34, 197, 94, 0.35);
    --shadow-danger: 0 8px 24px rgba(239, 68, 68, 0.35);
    --shadow-warning: 0 8px 24px rgba(245, 158, 11, 0.35);

    /* Glass/Frost Schatten */
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --shadow-glass-lg: 0 20px 60px -10px rgba(0, 0, 0, 0.3);
    --shadow-glass-inset: inset 0 1px 0 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 0 rgba(255, 255, 255, 0.02);

    /* Elevated Schatten (für schwebende Elemente) */
    --shadow-elevated: 0 18px 48px -24px rgba(0, 0, 0, 0.7);
    --shadow-elevated-lg: 0 40px 70px rgba(8, 11, 24, 0.55);

    /* =========================================================================
       ABSTÄNDE (Spacing)
       ========================================================================= */

    --spacing-px: 1px;
    --spacing-0: 0;
    --spacing-0-5: 0.125rem;  /* 2px */
    --spacing-1: 0.25rem;     /* 4px */
    --spacing-1-5: 0.375rem;  /* 6px */
    --spacing-2: 0.5rem;      /* 8px */
    --spacing-2-5: 0.625rem;  /* 10px */
    --spacing-3: 0.75rem;     /* 12px */
    --spacing-3-5: 0.875rem;  /* 14px */
    --spacing-4: 1rem;        /* 16px */
    --spacing-5: 1.25rem;     /* 20px */
    --spacing-6: 1.5rem;      /* 24px */
    --spacing-7: 1.75rem;     /* 28px */
    --spacing-8: 2rem;        /* 32px */
    --spacing-9: 2.25rem;     /* 36px */
    --spacing-10: 2.5rem;     /* 40px */
    --spacing-11: 2.75rem;    /* 44px */
    --spacing-12: 3rem;       /* 48px */
    --spacing-14: 3.5rem;     /* 56px */
    --spacing-16: 4rem;       /* 64px */
    --spacing-20: 5rem;       /* 80px */
    --spacing-24: 6rem;       /* 96px */
    --spacing-28: 7rem;       /* 112px */
    --spacing-32: 8rem;       /* 128px */

    /* Semantische Spacing-Aliase */
    --spacing-xs: var(--spacing-1);   /* 4px */
    --spacing-sm: var(--spacing-2);   /* 8px */
    --spacing-md: var(--spacing-4);   /* 16px */
    --spacing-lg: var(--spacing-6);   /* 24px */
    --spacing-xl: var(--spacing-8);   /* 32px */
    --spacing-2xl: var(--spacing-12); /* 48px */
    --spacing-3xl: var(--spacing-16); /* 64px */

    /* Component-spezifische Spacing */
    --spacing-card-padding: clamp(1.35rem, 2vw, 1.85rem);
    --spacing-section-padding: clamp(1.75rem, 2.5vw, 3rem);
    --spacing-button-padding-x: 1.5rem;
    --spacing-button-padding-y: 0.75rem;

    /* =========================================================================
       BORDER RADIUS
       ========================================================================= */

    --radius-none: 0;
    --radius-sm: 0.125rem;    /* 2px */
    --radius-DEFAULT: 0.25rem; /* 4px */
    --radius-md: 0.375rem;    /* 6px */
    --radius-lg: 0.5rem;      /* 8px */
    --radius-xl: 0.75rem;     /* 12px */
    --radius-2xl: 1rem;       /* 16px */
    --radius-3xl: 1.5rem;     /* 24px */
    --radius-full: 9999px;

    /* Semantische Radius-Aliase */
    --radius-button: var(--radius-full);
    --radius-card: var(--radius-3xl);      /* 24px - für Cards */
    --radius-card-lg: 26px;                 /* Booking Panel */
    --radius-card-xl: 30px;                 /* Booking Stage */
    --radius-input: var(--radius-xl);       /* 12px */
    --radius-badge: var(--radius-full);
    --radius-modal: 20px;
    --radius-calendar-day: 18px;
    --radius-slot-card: 22px;

    /* =========================================================================
       TYPOGRAFIE
       ========================================================================= */

    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', var(--font-sans);
    --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

    /* Font Sizes */
    --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 */
    --text-4xl: 2.25rem;      /* 36px */
    --text-5xl: 3rem;         /* 48px */

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* Letter Spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;

    /* =========================================================================
       TRANSITIONS & ANIMATIONS
       ========================================================================= */

    --transition-fast: 150ms;
    --transition-DEFAULT: 200ms;
    --transition-slow: 300ms;
    --transition-slower: 500ms;

    --ease-DEFAULT: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* =========================================================================
       Z-INDEX
       ========================================================================= */

    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;

    /* =========================================================================
       BREAKPOINTS (zur Referenz, nicht als CSS-Variablen verwendbar)
       ========================================================================= */

    /*
     * sm: 640px
     * md: 768px
     * lg: 1024px
     * xl: 1280px
     * 2xl: 1536px
     */
}

/* =========================================================================
   DARK MODE OVERRIDES (falls benötigt)
   ========================================================================= */

@media (prefers-color-scheme: dark) {
    :root {
        /* Bereits dark-first designed, keine Änderungen nötig */
    }
}

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
    :root {
        --transition-fast: 0ms;
        --transition-DEFAULT: 0ms;
        --transition-slow: 0ms;
        --transition-slower: 0ms;
    }
}
