/* ==========================================================================
   Base: Reset, Design-Tokens, Typografie — Werkstatt-Präzision
   ========================================================================== */

:root {
	/* Farbsystem: gedämpftes Graphit + eine ruhige Rost-/Signal-Orange-Akzentfarbe (kein Vollton). */
	--km-primary: #1c1f22;
	--km-primary-soft: oklch(26% 0.008 250);
	--km-accent: #c5531f;
	--km-accent-soft: oklch(52% 0.1 40);
	--km-steel: #8a9199;
	--km-bg: #f4f2ee;
	--km-bg-raised: #ffffff;
	--km-line: oklch(85% 0.004 250);
	--km-ink: oklch(20% 0.006 250);
	--km-ink-soft: oklch(42% 0.008 250);

	--km-radius: 2px;
	--km-radius-feature: 18px;
	--km-space-unit: 8px;

	/* Typo-Skala, Verhältnis 1.333 (perfect fourth) */
	--km-fs-body: clamp(1.0625rem, 0.98rem + 0.2vw, 1.15rem);
	--km-fs-small: 0.875rem;
	--km-fs-h3: clamp(1.4rem, 1.3rem + 0.5vw, 1.7rem);
	--km-fs-h2: clamp(1.9rem, 1.6rem + 1.4vw, 2.6rem);
	--km-fs-h1: clamp(2.6rem, 2rem + 3.2vw, 4.1rem);
	--km-fs-digit: clamp(3rem, 2.2rem + 4vw, 5.5rem);

	--km-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--km-dur: 220ms;

	--km-shadow-1: 0 1px 2px oklch(20% 0 0 / 0.06), 0 2px 8px oklch(20% 0 0 / 0.05);
	--km-shadow-2: 0 8px 24px oklch(20% 0 0 / 0.1), 0 2px 6px oklch(20% 0 0 / 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	margin: 0;
	overflow-x: hidden;
	background: var(--km-bg);
	color: var(--km-ink);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: var(--km-fs-body);
	line-height: 1.6;
	font-variant-numeric: tabular-nums;
	text-wrap: pretty;
}

img, video, iframe { max-width: 100%; height: auto; display: block; }

svg { max-width: 100%; height: auto; }

.icon {
	width: 1.4em;
	height: 1.4em;
	max-width: 32px;
	max-height: 32px;
	flex: 0 0 auto;
	vertical-align: middle;
	color: currentColor;
}

h1, h2, h3, h4 {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--km-primary);
	text-wrap: pretty;
	margin: 0;
}

h1 { font-size: var(--km-fs-h1); }
h2 { font-size: var(--km-fs-h2); }
h3 { font-size: var(--km-fs-h3); }

p { margin: 0 0 1em; max-width: 68ch; }

a { color: var(--km-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.2em; }

button { font-family: inherit; }

:focus-visible {
	outline: 2px solid var(--km-accent);
	outline-offset: 3px;
	border-radius: 2px;
}

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 8px; left: 8px;
	width: auto; height: auto;
	clip-path: none;
	background: var(--km-primary);
	color: #fff;
	padding: 10px 16px;
	z-index: 1000;
	border-radius: var(--km-radius);
}

.section-head { max-width: 640px; margin: 0 0 clamp(32px, 6vw, 56px); }
.section-head--left { margin-right: auto; text-align: left; }
.section-head--right { margin-left: auto; text-align: right; }
.section-head__kicker {
	font-family: 'Space Grotesk', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: var(--km-fs-small);
	color: var(--km-accent);
	font-weight: 600;
	margin: 0 0 0.5em;
}
.section-head__sub { color: var(--km-ink-soft); margin: 0.6em 0 0; }
