/**
 * Zentrale CSS-Variablen für das gesamte Projekt
 * Diese Datei sollte als erste CSS-Datei geladen werden
 */

:root {
  /* Farbpalette */
  --primary-color: #0066CC;
  --primary-dark: #0055b3;
  --primary-light: #1e60aa; /* Dunkleres Blau für besseren Kontrast (WCAG AA) */
  --secondary-color: #6c757d;
  --accent-color: #28a745;
  --warning-color: #ffc107;
  --error-color: #dc3545;
  --error-bg: #fee2e2;
  --error-text: #b91c1c;
  --success-color: #28a745;
  --success-bg: #dcfce7;
  --success-text: #15803d;
  --warning-bg: #fef9c3;
  --warning-text: #854d0e;
  --info-color: #17a2b8;
  --color-danger: #e11d48;
  
  /* Neutrale Farben */
  --white: #ffffff;
  --black: #000000;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Text-Farben */
  --text-primary: #1f2937; /* Dunkelgrau für Haupttext */
  --text-secondary: #4b5563; /* Mittelgrau für Sekundärtext */
  --text-muted: #6b7280; /* Helles Grau für unwichtigeren Text */
  --text-light: #ffffff; /* Weiß für Text auf dunklem Hintergrund */
  
  /* Hintergrund-Farben */
  --bg-primary: #ffffff;
  --bg-secondary: #f7fafc;
  --bg-muted: #edf2f7;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  --bg-card: #ffffff;
  
  /* Schriftarten */
  --font-primary: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'Georgia', 'Times New Roman', serif;
  --font-mono: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  
  /* Schriftgrößen */
  --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 */
  
  /* Zeilenhöhen */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* Abstände */
  --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 */
  
  /* Border Radius */
  --radius-sm: 0.25rem;    /* 4px */
  --radius-md: 0.375rem;   /* 6px */
  --radius-lg: 0.5rem;     /* 8px */
  --radius-xl: 0.75rem;    /* 12px */
  --radius-2xl: 1rem;      /* 16px */
  --radius-full: 9999px;
  
  /* 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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --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);
  
  /* Übergänge */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
  --transition-slow: 0.3s ease;
  
  /* 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 (für JavaScript) */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
  
  /* Container */
  --container-padding: var(--spacing-md);
  --container-max-width: 1200px;
  
  /* Cards */
  --card-padding: var(--spacing-lg);
  --card-radius: var(--radius-lg);
  --card-shadow: var(--shadow-md);
  
  /* Touch Targets */
  --touch-target: 44px;
  --touch-target-size: 44px;
}

/* Dark Mode Variablen (optional für zukünftige Erweiterung) */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #a0aec0;
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --bg-muted: #4a5568;
    --bg-card: rgba(45, 55, 72, 0.95);
  }
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  :root {
    --container-padding: var(--spacing-sm);
    --card-padding: var(--spacing-md);
    --text-base: 0.9rem;
    --text-lg: 1rem;
    --text-xl: 1.125rem;
    --text-2xl: 1.25rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --container-padding: var(--spacing-xl);
    --card-padding: var(--spacing-xl);
  }
}
