/* ==========================================================================
   EAW Energieanlagenbau GmbH — Design Tokens
   Zentrale Definition aller wiederkehrenden Gestaltungswerte.
   ========================================================================== */

:root {
  /* ---- Farben: Hintergrund & Oberflächen ---- */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f5f6f7;
  --color-surface: #ffffff;
  --color-surface-alt: #eef0f1;

  /* ---- Farben: Text ---- */
  --color-text-primary: #1a1d21;      /* Anthrazit */
  --color-text-secondary: #565d66;
  --color-text-inverse: #ffffff;
  --color-text-inverse-muted: rgba(255, 255, 255, 0.72);

  /* ---- Farben: Marke ---- */
  --color-brand-orange: #df8a34;      /* EAW Signalfarbe */
  --color-brand-orange-dark: #b96f24;
  --color-brand-teal: #1f8a82;        /* aus dem EAW-Zeichen */
  --color-brand-navy: #0c3a5c;        /* WEGRA-Blau, Partnerfarbe */
  --color-nav-blue: #004d7a;          /* Exakter Blauton der Navigationsleiste */

  /* ---- Farben: EAW-Systemfarben (Ausgangslage & Kernkompetenzen) ---- */
  --color-eaw-orange: #E8902F;
  --color-eaw-darkblue: #0D4568;
  --color-eaw-petrol: #168A84;
  --color-eaw-green: #72B85A;
  --color-eaw-lime: #C9D83F;

  /* ---- Farben: Funktional ---- */
  --color-accent-primary: var(--color-brand-orange);   /* ausschließlich CTAs */
  --color-accent-secondary: var(--color-brand-navy);
  --color-success: #2e9e63;
  --color-warning: #e0a83a;
  --color-error: #d64545;

  /* ---- Farben: dunkle Flächen (Hero, Footer) ---- */
  --color-dark-900: #0b0f14;
  --color-dark-800: #12181f;
  --color-dark-700: #1b232c;
  --color-dark-border: rgba(255, 255, 255, 0.12);

  /* ---- Typografie ---- */
  --font-display: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --fs-h1-min: 2.75rem;   /* 44px  */
  --fs-h1-max: 4.75rem;   /* 76px  */
  --fs-h2-min: 2rem;      /* 32px  */
  --fs-h2-max: 3.25rem;   /* 52px  */
  --fs-h3-min: 1.375rem;  /* 22px  */
  --fs-h3-max: 1.875rem;  /* 30px  */
  --fs-body: 1.125rem;    /* 18px  */
  --fs-body-lg: 1.25rem;  /* 20px  */
  --fs-caption: 0.9375rem;/* 15px  */
  --fs-eyebrow: 0.8125rem;/* 13px  */

  --lh-tight: 1.1;
  --lh-heading: 1.2;
  --lh-body: 1.65;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* ---- Spacing (8pt-System) ---- */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
  --space-16: 128px;

  /* ---- Radius ---- */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* ---- Schatten ---- */
  --shadow-sm: 0 2px 8px rgba(15, 20, 25, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 20, 25, 0.10);
  --shadow-lg: 0 24px 64px rgba(15, 20, 25, 0.16);
  --shadow-card-hover: 0 20px 48px rgba(12, 58, 92, 0.16);

  /* ---- Layout ---- */
  --container-max: 1280px;
  --container-pad: clamp(20px, 5vw, 64px);
  --grid-columns: 12;
  --grid-gap: 24px;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 600ms;

  /* ---- Z-Index ---- */
  --z-nav: 100;
  --z-overlay: 200;
  --z-modal: 300;
}

@media (min-width: 768px) {
  :root {
    --container-pad: 48px;
  }
}
