/* ==========================================================================
   Design Tokens — Mieterstrom Süd
   Single source of truth for color, type, spacing and radii.
   ========================================================================== */

:root {
  /* ---- Color: brand red (Logo-Rot, Design 2026) ---- */
  --color-primary: #C8161D;
  --color-primary-dark: #A5111A;
  --color-primary-darker: #820E15;
  --color-primary-light: #FBE9EA;
  --color-primary-border: #F2C5C8;
  --color-primary-bright: #EF4B52; /* used for icons/text on dark bands, where the muted primary reads too dark */

  /* ---- Color: sustainability/success accent (used sparingly, per CI) ---- */
  --color-accent-green: #4C8F63;
  --color-accent-green-dark: #386C4A;
  --color-accent-green-light: #E8F3EB;
  --color-accent-green-border: #C3DECB;

  /* ---- Color: deep bands (keyfacts bar, CTA banner) ---- */
  --color-band-dark: #18202B;

  /* ---- Color: neutrals ---- */
  --color-ink: #1B2129;
  --color-anthracite: #18202B;
  --color-anthracite-soft: #252A30;
  --color-body: #4A525C;
  --color-muted: #5F6873;
  --color-white: #FFFFFF;
  --color-gray-50: #F6F7F9;
  --color-gray-100: #EFF1F4;
  --color-gray-200: #E4E7EB;
  --color-border: #E1E4E8;
  --color-border-strong: #8C8F8A;

  /* ---- Feedback (deliberately distinct from the brand red) ---- */
  --color-error: #B54708;
  --color-error-light: #FDF1E7;

  /* ---- Elevation ---- */
  --shadow-sm: 0 1px 2px rgba(23, 26, 24, 0.06);
  --shadow-md: 0 8px 24px rgba(23, 26, 24, 0.08);
  --shadow-lg: 0 24px 56px rgba(17, 37, 27, 0.16);
  --shadow-card-hover: 0 16px 32px rgba(23, 26, 24, 0.10);

  /* ---- Radii ---- */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --radius-btn: 6px;

  /* ---- Spacing scale (4px base) ---- */
  --space-3xs: 0.25rem;   /* 4px */
  --space-2xs: 0.5rem;    /* 8px */
  --space-xs: 0.75rem;    /* 12px */
  --space-sm: 1rem;       /* 16px */
  --space-md: 1.5rem;     /* 24px */
  --space-lg: 2rem;       /* 32px */
  --space-xl: 3rem;       /* 48px */
  --space-2xl: 4rem;      /* 64px */
  --space-3xl: 6rem;      /* 96px */
  --space-4xl: 8rem;      /* 128px */

  /* ---- Type families ---- */
  --font-display: "Archivo", "Segoe UI", sans-serif; /* Design 2026: eine Schrift für alles */
  --font-body: "Archivo", "Segoe UI", sans-serif;

  /* ---- Type scale (fluid) ---- */
  --text-xs: 0.8125rem;                                   /* 13px */
  --text-sm: 0.9375rem;                                    /* 15px */
  --text-base: 1.0625rem;                                  /* 17px */
  --text-md: clamp(1.1875rem, 1.13rem + 0.3vw, 1.375rem);  /* 19–22px */
  --text-lg: clamp(1.375rem, 1.24rem + 0.6vw, 1.75rem);    /* 22–28px */
  --text-xl: clamp(1.75rem, 1.45rem + 1.3vw, 2.375rem);    /* 28–38px */
  --text-2xl: clamp(2.125rem, 1.6rem + 2.2vw, 3.25rem);    /* 34–52px */
  --text-3xl: clamp(2.5rem, 1.7rem + 3.4vw, 4.25rem);      /* 40–68px */

  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.55;
  --leading-relaxed: 1.7;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;

  /* ---- Layout ---- */
  --container-max: 1440px;
  --container-padding: clamp(1.25rem, 1rem + 2vw, 3rem);
  --header-height: 88px;
  --header-height-scrolled: 68px;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 420ms;
}
