/* =================================================================
   ELEVATEM · BRAND VARIABLES
   Single Source of Truth — alle Werte hier zentralisiert
   ================================================================= */

:root {
  /* === Farben (aus Brand-Briefing) === */
  --color-bg: #1E1C1C;
  --color-bg-elevated: #252323;
  --color-bg-overlay: rgba(30, 28, 28, 0.85);

  --color-accent: #E6FF4B;
  --color-accent-hover: #D9F23A;
  --color-accent-glow: rgba(230, 255, 75, 0.15);

  --color-text: #FFFFFF;
  --color-text-muted: rgba(255, 255, 255, 0.75);   /* AAA (10:1) */
  --color-text-subtle: rgba(255, 255, 255, 0.62);  /* AAA (6.6:1) */
  --color-text-faint: rgba(255, 255, 255, 0.55);   /* AA (5.4:1) */

  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.14);

  /* === Typografie === */
  --font-display: "Poppins", system-ui, -apple-system, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, sans-serif;

  /* Type-Scale (modular 1.250) */
  --fs-xs: 0.75rem;      /* 12px */
  --fs-sm: 0.875rem;     /* 14px */
  --fs-base: 1rem;       /* 16px */
  --fs-md: 1.125rem;     /* 18px */
  --fs-lg: 1.375rem;     /* 22px */
  --fs-xl: 1.75rem;      /* 28px */
  --fs-2xl: 2.25rem;     /* 36px */
  --fs-3xl: 3rem;        /* 48px */
  --fs-4xl: 4rem;        /* 64px */
  --fs-5xl: 5.5rem;      /* 88px */

  /* Line-Heights */
  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;

  /* Letter-Spacing */
  --ls-tighter: -0.03em;
  --ls-tight: -0.02em;
  --ls-normal: 0;
  --ls-wide: 0.04em;

  /* === Spacing (4px-Basis) === */
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.5rem;     /* 24px */
  --space-6: 2rem;       /* 32px */
  --space-7: 3rem;       /* 48px */
  --space-8: 4rem;       /* 64px */
  --space-9: 6rem;       /* 96px */
  --space-10: 8rem;      /* 128px */

  /* === Layout === */
  --container-max: 1280px;
  --container-narrow: 880px;
  --container-text: 680px;
  --gutter: clamp(1rem, 5vw, 3rem);
  --section-py: clamp(4rem, 10vw, 8rem);

  /* === Radius === */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* === Borders === */
  --border-thin: 1px solid var(--color-border);
  --border-strong: 1px solid var(--color-border-strong);

  /* === Shadows === */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 32px var(--color-accent-glow);

  /* === Motion === */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;

  /* === Z-Index === */
  --z-base: 1;
  --z-elevated: 10;
  --z-nav: 100;
  --z-modal: 1000;
  --z-toast: 10000;
}

/* Mobile-Override für kleinere Type-Scale */
@media (max-width: 767px) {
  :root {
    --fs-2xl: 1.75rem;     /* 28px statt 36px */
    --fs-3xl: 2rem;        /* 32px statt 48px */
    --fs-4xl: 2.5rem;      /* 40px statt 64px */
    --fs-5xl: 3rem;        /* 48px statt 88px */
  }
}

/* Sehr schmale Viewports — Smartphones im Portrait */
@media (max-width: 480px) {
  :root {
    --fs-3xl: 1.75rem;     /* 28px */
    --fs-4xl: 2rem;        /* 32px */
    --fs-5xl: 2.5rem;      /* 40px */
    --gutter: 1.25rem;     /* fester, kleinerer Gutter */
  }
}

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