/**
 * Design Tokens – Remote-Gutachten
 * Mobile-First CSS Custom Properties
 * Verwendet für alle Styles im Projekt
 */

:root {
  /* ========================================
     FARBEN
     ======================================== */

  /* Primäre Hintergrundfarben */
  --color-bg-primary: #111827;      /* Dunkles Grau-Blau für Haupthintergrund */
  --color-bg-secondary: #1f2937;    /* Etwas heller für Karten/Panels */
  --color-bg-tertiary: #374151;     /* Noch heller für Hover-States */

  /* Textfarben */
  --color-text-primary: #ffffff;    /* Haupttext */
  --color-text-secondary: #9ca3af;  /* Sekundärtext, deaktivierte Elemente */
  --color-text-tertiary: #6b7280;   /* Subtiler Text */

  /* Borderfarben */
  --color-border: #374151;          /* Standard Borders */
  --color-border-light: #4b5563;    /* Hellere Borders für Fokus */

  /* Akzentfarben */
  --color-primary: #2563eb;         /* Primäre Aktionen (Blau) */
  --color-primary-hover: #1d4ed8;   /* Hover-State für Primär */
  --color-primary-active: #1e40af;  /* Active-State für Primär */

  --color-success: #16a34a;         /* Erfolg, Online-Status (Grün) */
  --color-success-hover: #15803d;

  --color-error: #dc2626;           /* Fehler, Offline, Abbrechen (Rot) */
  --color-error-hover: #b91c1c;

  --color-warning: #f59e0b;         /* Warnung, Aufmerksamkeit (Orange) */
  --color-warning-hover: #d97706;

  /* Video-Hintergrund */
  --color-video-bg: #000000;        /* Reines Schwarz für Video-Container */

  /* Overlays */
  --color-overlay-dark: rgba(0, 0, 0, 0.7);    /* Dunkles Overlay für Modals */
  --color-overlay-light: rgba(0, 0, 0, 0.4);   /* Subtiles Overlay */


  /* ========================================
     ABSTÄNDE & LAYOUT
     ======================================== */

  --spacing-xs: 0.25rem;    /* 4px */
  --spacing-sm: 0.5rem;     /* 8px */
  --spacing-md: 1rem;       /* 16px */
  --spacing-lg: 1.5rem;     /* 24px */
  --spacing-xl: 2rem;       /* 32px */
  --spacing-2xl: 3rem;      /* 48px */
  --spacing-3xl: 4rem;      /* 64px */

  /* Container & Breiten */
  --container-max-width: 1440px;
  --sidebar-width: 320px;
  --sidebar-width-lg: 400px;

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


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

  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
                      'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'SF Mono', 'Monaco', 'Cascadia Code', 'Courier New', monospace;

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

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

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;


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

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.2);

  /* Fokus-Schatten für Barrierefreiheit */
  --shadow-focus: 0 0 0 3px rgba(37, 99, 235, 0.5);


  /* ========================================
     ANIMATIONEN & TRANSITIONS
     ======================================== */

  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 400ms ease-in-out;

  --easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);


  /* ========================================
     BREAKPOINTS (als Referenz für @media)
     ======================================== */

  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;


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

  --z-video: 1;           /* Video-Elemente */
  --z-overlay: 10;        /* Overlays (Laserpointer etc.) */
  --z-controls: 20;       /* Bedienelemente über Video */
  --z-pointer: 30;        /* Laserpointer */
  --z-toast: 40;          /* Toast-Benachrichtigungen */
  --z-modal: 50;          /* Modale Dialoge */
  --z-dropdown: 60;       /* Dropdowns über allem */


  /* ========================================
     iOS SAFE AREAS
     ======================================== */

  --safe-area-inset-top: env(safe-area-inset-top);
  --safe-area-inset-right: env(safe-area-inset-right);
  --safe-area-inset-bottom: env(safe-area-inset-bottom);
  --safe-area-inset-left: env(safe-area-inset-left);


  /* ========================================
     TOUCH TARGET SIZES
     ======================================== */

  --touch-target-min: 44px;     /* iOS Human Interface Guidelines */
  --touch-target-optimal: 48px; /* Material Design & WCAG AAA */
}


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

@media (prefers-color-scheme: light) {
  /* Aktuell nur Dark Mode, aber vorbereitet für Light Mode */
}


/* ========================================
   REDUCED MOTION (Barrierefreiheit)
   ======================================== */

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