/* =========================================================
   NOIRIEN — Design Tokens
   Marke der ZEROvia GmbH
   Farbwelt aus Markenhandbuch (verbindlich):
   Spätburgunder #421422 · Riesling #F5EFE3 · Gold #D4AF37 · Rebhang #1A3B26
   Werkzeuge:
   Rebschwarz #16292A · Pergament #F0E2D4 · Schiefer #4B4B43 · Altgold #C2A068
   ========================================================= */

:root,
[data-theme="light"] {
  /* Marken-Kernfarben (Riesling-basierte helle Lesefläche) */
  --brand-spaetburgunder: #421422;
  --brand-riesling: #F5EFE3;
  --brand-gold: #D4AF37;
  --brand-rebhang: #1A3B26;

  /* Werkzeuge */
  --brand-rebschwarz: #16292A;
  --brand-pergament: #F0E2D4;
  --brand-schiefer: #4B4B43;
  --brand-altgold: #C2A068;
  --brand-weinlaub: #D0E7D2;
  --brand-laubschatten: #2C5934;
  --brand-rebtrieb: #92C799;

  /* Semantische Rollen — Light (Riesling-Modus) */
  --color-bg: #F5EFE3;             /* Riesling */
  --color-surface: #F9F3E7;
  --color-surface-2: #F0E2D4;      /* Pergament */
  --color-surface-offset: #EDDCC8;
  --color-surface-dark: #421422;   /* Spätburgunder-Sektionen */
  --color-surface-darker: #2E0E17;
  --color-border: #E3D3B8;
  --color-border-strong: #C7AF89;
  --color-divider: #EAD9BF;

  /* Text */
  --color-text: #421422;           /* Spätburgunder als Primärtext auf Riesling */
  --color-text-muted: #6B4048;
  --color-text-faint: #9C7B82;
  --color-text-on-dark: #F0E2D4;   /* Pergament auf Spätburgunder */
  --color-text-on-dark-muted: #C2A068; /* Altgold */

  /* Akzent (Gold nur auf DUNKLEM Grund für Text; auf hell nur als Element/Linie/Zahl-Akzent, nicht als lesende Fläche) */
  --color-accent: #D4AF37;
  --color-accent-hover: #B8952A;
  --color-accent-dark: #A67F1E;

  /* Rebhang für Grünstufen (nicht als Erfolgsfarbe verwenden) */
  --color-vine: #1A3B26;
  --color-vine-soft: #D0E7D2;

  /* Radien — zurückhaltend */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* Schatten — sehr weich, warm getönt */
  --shadow-sm: 0 1px 2px rgba(66, 20, 34, 0.06);
  --shadow-md: 0 6px 18px rgba(66, 20, 34, 0.08);
  --shadow-lg: 0 20px 44px rgba(66, 20, 34, 0.14);

  /* Type Scale — fluid */
  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.25vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1.4rem + 4vw, 4.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Inhaltsbreiten */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-max: 1320px;

  /* Übergänge */
  --transition: 240ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 480ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts */
  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', system-ui, sans-serif;

  /* Tracking */
  --tracking-word: 0.167em; /* Wortmarke */
  --tracking-label: 0.19em; /* Labels versal */
  --tracking-nav: 0.08em;
}

/* =========================================================
   Dark Mode — Spätburgunder als Bühne
   ========================================================= */
[data-theme="dark"] {
  --color-bg: #2E0E17;
  --color-surface: #421422;
  --color-surface-2: #4E1B29;
  --color-surface-offset: #582132;
  --color-surface-dark: #16292A;    /* Rebschwarz für tiefe Kontraste */
  --color-surface-darker: #0F1E1F;
  --color-border: #5A2634;
  --color-border-strong: #7A3849;
  --color-divider: #501E2C;

  --color-text: #F0E2D4;            /* Pergament */
  --color-text-muted: #C2A068;      /* Altgold */
  --color-text-faint: #8E6F45;
  --color-text-on-dark: #F0E2D4;
  --color-text-on-dark-muted: #C2A068;

  --color-accent: #D4AF37;
  --color-accent-hover: #E3C24E;
  --color-accent-dark: #A67F1E;

  --color-vine: #1A3B26;
  --color-vine-soft: #2C5934;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 44px rgba(0, 0, 0, 0.6);
}

/* Riesling-Hell ist der Website-Standard.
   Kein automatischer prefers-color-scheme-Switch — Nutzer:innen können über
   den Header-Toggle bewusst in den Spätburgunder-Modus wechseln. */
