/* ═══════════════════════════════════════════════════
   FörderPortal Design Tokens
   Single Source of Truth für alle CSS-Variablen
   ═══════════════════════════════════════════════════ */

:root {
  /* ── Brand Colors ── */
  --primary: #005DA6;
  --primary-dark: #003D73;
  --primary-light: #E8F0FE;
  --primary-50: #F0F6FF;
  --accent: #F0AB00;
  --accent-dark: #C48900;
  --accent-light: #FFF8E1;

  /* ── Semantic Colors ── */
  --success: #059669;
  --success-bg: #DCFCE7;
  --error: #DC2626;
  --error-bg: #FEE2E2;
  --warning: #D4A017;
  --warning-bg: #FEF3C7;
  --info: #0EA5E9;
  --info-bg: #E0F2FE;

  /* ── Neutral Colors ── */
  --gray-50: #F7F8FA;
  --gray-100: #F0F2F5;
  --gray-200: #E2E6EC;
  --gray-300: #CDD3DC;
  --gray-400: #94A0B0;
  --gray-500: #6B7685;
  --gray-600: #4A5568;
  --gray-700: #2D3748;
  --gray-800: #1A202C;
  --gray-900: #111827;

  /* ── Backgrounds & Surfaces ── */
  --bg: #F7F8FA;
  --bg-secondary: #FFFFFF;
  --card: #FFFFFF;
  --card-hover: #FAFBFC;
  --border: #E2E6EC;
  --border-light: #F0F2F5;

  /* ── Text Colors ── */
  --text: #1A2332;
  --text-secondary: #4A5568;
  --text-muted: #6B7685;
  --text-light: #94A0B0;

  /* ── Typography ── */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* Type Scale (Major Third 1.25) */
  --text-xs: 0.7rem;     /* 11.2px - badges, meta */
  --text-sm: 0.8rem;     /* 12.8px - labels, captions */
  --text-base: 0.95rem;  /* 15.2px - body text */
  --text-md: 1rem;       /* 16px - inputs, UI elements */
  --text-lg: 1.15rem;    /* 18.4px - section headers */
  --text-xl: 1.35rem;    /* 21.6px - page titles */
  --text-2xl: 1.75rem;   /* 28px - hero, stat values */
  --text-3xl: 2.25rem;   /* 36px - display */

  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

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

  /* ── Spacing Scale (4px base) ── */
  --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: 6px;
  --radius: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 2px 12px rgba(0, 61, 115, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
  --shadow-lift: 0 12px 40px rgba(0, 61, 115, 0.14);

  /* ── Transitions ── */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* ── Layout ── */
  --sidebar-width: 240px;
  --sidebar-collapsed: 60px;
  --topbar-height: 56px;
  --container-max: 1200px;

  /* ── Z-Index Scale ── */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;

  /* ── Status Badge Colors ── */
  --status-eingegangen-bg: #EBF2FA;
  --status-eingegangen-text: #1A5276;
  --status-pruefung-bg: #FEF3C7;
  --status-pruefung-text: #92400E;
  --status-genehmigt-bg: #DCFCE7;
  --status-genehmigt-text: #14532D;
  --status-abgelehnt-bg: #FEE2E2;
  --status-abgelehnt-text: #7F1D1D;
  --status-ausgezahlt-bg: #DDD6FE;
  --status-ausgezahlt-text: #4C1D95;
  --status-zurueck-bg: #F5F3FF;
  --status-zurueck-text: #5B21B6;
}

/* ── Dark Mode ── */
html[data-theme="dark"] {
  --bg: #0F1318;
  --bg-secondary: #161C26;
  --card: #1A1F27;
  --card-hover: #232B38;
  --border: #2A3140;
  --border-light: #1E2633;

  --text: #E8EDF3;
  --text-secondary: #B8C9D9;
  --text-muted: #8C9AAA;
  --text-light: #5C6A7A;

  --primary-light: #1A2E45;
  --primary-50: #0F1D30;
  --accent-light: #2A2310;

  --success-bg: #0D2818;
  --error-bg: #2D1515;
  --warning-bg: #2A2310;
  --info-bg: #0D1F2D;

  --gray-50: #1A1F27;
  --gray-100: #232B38;
  --gray-200: #2A3140;
  --gray-800: #E2E6EC;
  --gray-900: #F0F2F5;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.3);

  --status-eingegangen-bg: #1A2E45;
  --status-eingegangen-text: #7CB3E0;
  --status-pruefung-bg: #2A2310;
  --status-pruefung-text: #FCD34D;
  --status-genehmigt-bg: #0D2818;
  --status-genehmigt-text: #6EE7A0;
  --status-abgelehnt-bg: #2D1515;
  --status-abgelehnt-text: #FCA5A5;
  --status-ausgezahlt-bg: #1E1338;
  --status-ausgezahlt-text: #C4B5FD;
  --status-zurueck-bg: #1E1338;
  --status-zurueck-text: #C4B5FD;
}

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