/* ==========================================================================
   DESIGN-TOKENS
   --------------------------------------------------------------------------
   Hier lassen sich Farben, Schriften, Abstände & Co. zentral anpassen.
   Im restlichen CSS werden nur diese Variablen verwendet.

   Farbwelt: Lila & Beige – abgeleitet aus dem Logo (Storch) und der
   Farbkombination der Jacke. Alle Text-/Hintergrund-Kombinationen sind auf
   WCAG-AA-Kontrast (mind. 4,5 : 1) geprüft.
   ========================================================================== */

:root {
  /* ---------- Farbpalette ---------------------------------------------- */
  --plum-950: #241326;
  --plum-900: #3c1b3f; /* Logo-Lila */
  --plum-800: #4a2c50;
  --plum-700: #5a3f66; /* Jacken-Lila */
  --plum-600: #6b4f78;
  --plum-500: #86709a;
  --plum-300: #b9a8c6;
  --plum-200: #d8cde0;
  --plum-100: #ece5f0;
  --plum-50: #f6f2f8;

  --sand-50: #fbf8f4;
  --sand-100: #f5efe7;
  --sand-200: #ebe2d6;
  --sand-300: #dccdba;
  --sand-400: #c9b5a0; /* Jacken-Beige */
  --sand-500: #cfb090; /* Logo-Beige (Bündel) */
  --sand-700: #8a6a48;
  --sand-800: #6e5338;

  /* ---------- Semantische Farben (diese im CSS verwenden) -------------- */
  --color-bg: var(--sand-50);
  --color-bg-alt: var(--sand-100);
  --color-surface: #ffffff;
  --color-text: #2b2230;
  --color-text-muted: #5e5466;
  --color-heading: var(--plum-900);
  --color-primary: var(--plum-700);
  --color-primary-hover: var(--plum-900);
  --color-on-primary: #ffffff;
  --color-accent: var(--sand-500);
  --color-accent-text: var(--sand-800); /* Beige, das als Schrift auf Hell lesbar ist */
  --color-border: var(--sand-300);
  --color-focus: var(--plum-700);

  /* dunkle Bereiche (Werdegang, Kontakt, Footer) */
  --color-dark-bg: var(--plum-900);
  --color-dark-bg-deep: var(--plum-950);
  --color-dark-text: var(--sand-100);
  --color-dark-muted: var(--plum-200);
  --color-dark-accent: var(--sand-500);

  /* ---------- Schriften (lokal eingebunden, siehe main.css) ------------ */
  --font-heading: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* fließende Schriftgrößen: klein auf dem Handy, größer am Desktop */
  --text-xs: 0.8125rem;
  --text-sm: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --text-xl: clamp(1.3125rem, 1.15rem + 0.7vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.35rem + 1.7vw, 2.75rem);
  --text-3xl: clamp(2.125rem, 1.5rem + 2.8vw, 3.875rem);

  --leading-tight: 1.15;
  --leading-normal: 1.65;

  /* ---------- Abstände ------------------------------------------------- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2rem;
  --space-xl: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  --space-2xl: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --space-3xl: clamp(4.5rem, 3rem + 6vw, 8rem);

  /* ---------- Formen & Schatten --------------------------------------- */
  --radius-s: 0.5rem;
  --radius-m: 1rem;
  --radius-l: 1.75rem;
  --radius-xl: 2.5rem;
  --radius-pill: 999px;

  --shadow-s: 0 1px 2px rgb(60 27 63 / 0.06), 0 2px 8px rgb(60 27 63 / 0.06);
  --shadow-m: 0 4px 12px rgb(60 27 63 / 0.08), 0 14px 36px rgb(60 27 63 / 0.1);

  /* ---------- Layout --------------------------------------------------- */
  --container: 72rem;
  --container-narrow: 46rem;
  --header-height: 4.5rem;

  /* ---------- Bewegung ------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-s: 0.2s;
  --duration-m: 0.45s;
  --duration-l: 0.8s;
}
