/*!
 * DieWeedBox Design System – Tokens
 * Single source of truth. Alle anderen Layer lesen NUR diese Variablen.
 * Werte = Styleboard 0.1.1 (verbindlich). Keine Hex-Werte außerhalb dieser Datei.
 */

:root {
	/* ---- Farbe: Marke (Styleboard 0.1.1) ---- */
	--dwb-ds-action: #3bb54a;
	--dwb-ds-action-hover: #2f963b;
	--dwb-ds-deep: #080b09;
	--dwb-ds-soft: #bdffca;
	--dwb-ds-surface: #ffffff;
	--dwb-ds-surface-muted: #f7f8f7;
	--dwb-ds-ink: #222222;
	--dwb-ds-ink-muted: #444444;
	--dwb-ds-line: #d2d6dc;
	--dwb-ds-focus: #2491ff;

	/* ---- Abgeleitete Rollen (nur Kombinationen der Markenfarben) ---- */
	/* Kontrast: Weiß auf #3BB54A = 2.66:1 (WCAG-Fail). Brand Deep auf #3BB54A = 7.43:1.
	   Standard daher Deep. Zurück auf Weiß: --dwb-ds-on-action: var(--dwb-ds-surface); (siehe docs/ACCESSIBILITY.md) */
	--dwb-ds-on-action: var(--dwb-ds-deep);
	--dwb-ds-on-deep: var(--dwb-ds-soft);
	--dwb-ds-on-deep-muted: rgba(189, 255, 202, .72);  /* kurze Zusatztexte, Labels */
	--dwb-ds-on-deep-body: rgba(255, 255, 255, .86);   /* lange Fließtexte auf Deep (neutral, ≈14,5:1) */
	--dwb-ds-deep-raised: #111612;            /* Deep + 4 % Weiß, für Karten auf dunklen Flächen */
	--dwb-ds-deep-line: rgba(189, 255, 202, .16);
	/* Link auf hell: Text in Ink, Unterstreichung in Action (Text #2F963B auf Weiß = 3.79:1, Fail für Fließtext) */
	--dwb-ds-link: var(--dwb-ds-ink);
	--dwb-ds-link-decoration: var(--dwb-ds-action-hover);
	--dwb-ds-link-on-deep: var(--dwb-ds-soft);

	/* Seiten-Akzent: EINE optionale Zusatzfarbe pro Landingpage für Headline-Highlights.
	   Standard = Marke. Landingpages dürfen ihn überschreiben (Charakter bleibt). */
	--dwb-ds-page-accent: var(--dwb-ds-soft);

	/* ---- Typografie ---- */
	--dwb-ds-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--dwb-ds-fw-regular: 400;
	--dwb-ds-fw-medium: 500;
	--dwb-ds-fw-semibold: 600;
	--dwb-ds-fw-bold: 700;
	--dwb-ds-fw-heavy: 800;
	--dwb-ds-fs-eyebrow: 12px;
	--dwb-ds-fs-small: 14px;
	--dwb-ds-fs-body: 16px;
	--dwb-ds-fs-lead: 18px;
	--dwb-ds-fs-h3: clamp(18px, 1.2vw + 14px, 22px);
	--dwb-ds-fs-h2: clamp(24px, 2.2vw + 16px, 40px);
	--dwb-ds-fs-h1: clamp(30px, 3.6vw + 16px, 56px);
	--dwb-ds-lh-body: 1.6;
	--dwb-ds-lh-tight: 1.1;
	--dwb-ds-lh-heading: 1.15;
	--dwb-ds-ls-heading: -0.04em;
	--dwb-ds-ls-eyebrow: 0.14em;

	/* ---- Spacing (4/8/12/16/24/32) + Sektionsrhythmus ---- */
	--dwb-ds-space-1: 4px;
	--dwb-ds-space-2: 8px;
	--dwb-ds-space-3: 12px;
	--dwb-ds-space-4: 16px;
	--dwb-ds-space-5: 24px;
	--dwb-ds-space-6: 32px;
	--dwb-ds-section-y: clamp(32px, 6vw, 96px);  /* = 32 → 3×32 */
	--dwb-ds-gutter: clamp(16px, 4vw, 32px);
	--dwb-ds-container: 1200px;
	--dwb-ds-measure: 68ch;

	/* ---- Radii ---- */
	--dwb-ds-radius-control: 4px;
	--dwb-ds-radius-card: 16px;
	--dwb-ds-radius-panel: 20px;
	--dwb-ds-radius-pill: 999px;

	/* ---- Schatten & Fokus ---- */
	--dwb-ds-shadow-card: 0 8px 24px rgba(8, 11, 9, .08);
	--dwb-ds-shadow-card-hover: 0 12px 32px rgba(8, 11, 9, .14);
	--dwb-ds-focus-ring: 0 0 0 3px var(--dwb-ds-focus);
	--dwb-ds-focus-offset: 3px;

	/* ---- Controls ---- */
	--dwb-ds-control-h: 44px;          /* Styleboard min. 40px; 44px = Touch-Ziel (WCAG 2.5.5) */
	--dwb-ds-control-px: 20px;
	--dwb-ds-control-py: 12px;

	/* ---- Bewegung ---- */
	--dwb-ds-ease: cubic-bezier(.2, .7, .2, 1);
	--dwb-ds-dur: 160ms;
}

@media (prefers-reduced-motion: reduce) {
	:root { --dwb-ds-dur: 0ms; }
}
