/*
 * Design-Tokens – Richtung A „Werkstatt“.
 * Einzige Stelle für Farbwerte, Typo-Skala, Abstände, Radien und Schatten.
 * Kontraste (WCAG): Rot/Weiß 5.6:1, Rot/Hellgrau 5.0:1, Anthrazit/Hellgrau 7.6:1,
 * Text/Hellgrau 12.7:1, Weiß/Anthrazit 8.5:1.
 */

:root {
	/* Marke */
	--color-brand: #ce1616;
	--color-brand-dark: #a81111;      /* Hover, Weiß darauf 7.6:1 */
	--color-brand-tint: #fbe8e8;
	--color-anthracite: #4d4d4d;
	--color-anthracite-dark: #383838;

	/* Flächen */
	--color-bg: #f4f2ee;
	--color-surface: #ffffff;
	--color-surface-sunken: #ebe8e2;
	--color-border: #dcd8d0;          /* dekorativ */
	--color-border-strong: #85827b;   /* Formularfelder, ≥ 3:1 auf Weiß */

	/* Text */
	--color-text: #2b2b2b;
	--color-text-muted: #5c5c5c;      /* ≥ 5.9:1 auf Weiß, ≥ 5.3:1 auf Hellgrau */
	--color-text-inverse: #ffffff;
	--color-text-inverse-muted: #e6e6e6;
	--color-link: var(--color-brand);

	/* Status */
	--color-success: #1d6b34;         /* 6.5:1 auf Weiß */
	--color-success-bg: #e5f1e8;
	--color-warning: #8a4b00;         /* 6.8:1 auf Weiß */
	--color-warning-bg: #fbefe0;

	/* Platzhalter (fehlende Inhalte) */
	--color-placeholder-bg: #fff1a8;
	--color-placeholder-text: #4a3b00;

	/* Fokus – auf dunklem/rotem Grund lokal auf Weiß setzen */
	--color-focus: #1a1a1a;
	--focus-ring: 3px solid var(--color-focus);
	--focus-offset: 2px;

	/* Schriften */
	--font-display: "Bebas Neue", "Arial Narrow", "Roboto Condensed", sans-serif;
	--font-body: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* Typo-Skala (mobile-first, fließend bis Desktop) */
	--fs-xs: 0.8125rem;   /* 13 */
	--fs-sm: 0.9375rem;   /* 15 */
	--fs-base: 1.0625rem; /* 17 – Source Sans läuft klein */
	--fs-md: 1.1875rem;   /* 19 */
	--fs-lg: 1.375rem;    /* 22 */
	--fs-xl: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
	--fs-h3: clamp(1.5rem, 1.35rem + 0.6vw, 1.875rem);
	--fs-h2: clamp(2rem, 1.6rem + 1.6vw, 2.875rem);
	--fs-h1: clamp(2.75rem, 1.9rem + 3.6vw, 5rem);

	--lh-display: 0.95;
	--lh-tight: 1.25;
	--lh-base: 1.55;

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

	--tracking-display: 0.015em;
	--tracking-caps: 0.06em;

	/* Abstände (4er-Raster) */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-7: 3rem;
	--space-8: 4rem;
	--space-9: 6rem;
	--section-gap: clamp(var(--space-7), 2rem + 3vw, var(--space-9));

	/* Layout */
	--container-max: 1440px;
	--gutter: 1rem;
	--tap: 44px;              /* Mindestgröße Touch-Ziele */
	--control-h: 48px;        /* Buttons, Eingabefelder */

	/* Radien */
	--radius-sm: 8px;
	--radius-md: 10px;
	--radius-lg: 12px;
	--radius-pill: 999px;

	/* Schatten – sparsam, nur für schwebende Ebenen */
	--shadow-sm: 0 1px 2px rgb(0 0 0 / 0.06);
	--shadow-md: 0 8px 28px rgb(0 0 0 / 0.14);
	--overlay: rgb(20 20 20 / 0.5);

	/* Bewegung */
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--dur-fast: 120ms;
	--dur: 220ms;

	/* Ebenen */
	--z-header: 50;
	--z-dropdown: 60;
	--z-toast: 90;
}

@media (min-width: 768px) {
	:root {
		--gutter: 1.5rem;
	}
}

@media (min-width: 1024px) {
	:root {
		--gutter: 2rem;
	}
}

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