/* =========================================================
   Design Tokens — "Klinische Wärme"
   ========================================================= */
:root {
	--primary: #123B3D;
	--primary-oklch: oklch(26% 0.04 192);
	--primary-soft: oklch(26% 0.04 192 / 0.08);
	--bg: #FAF7F2;
	--bg-oklch: oklch(97% 0.01 80);
	--bg-alt: oklch(94% 0.015 75);
	--accent: #C98A3E;
	--accent-oklch: oklch(66% 0.1 70);
	--accent-soft: oklch(66% 0.1 70 / 0.12);
	--text: #1C2524;
	--text-soft: oklch(32% 0.02 190 / 0.72);
	--line: oklch(26% 0.04 192 / 0.14);
	--surface: #ffffff;

	--radius: 4px;
	--radius-feature: 28px;

	--font-display: 'Fraunces', Georgia, serif;
	--font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;

	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--dur-fast: 180ms;
	--dur-base: 260ms;

	--container: 1240px;

	/* Typo-Skala, Verhältnis 1.333 (Major Third) */
	--step--1: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
	--step-0: clamp(1.0625rem, 1rem + 0.2vw, 1.15rem);
	--step-1: clamp(1.3rem, 1.2rem + 0.5vw, 1.5rem);
	--step-2: clamp(1.6rem, 1.4rem + 1vw, 2rem);
	--step-3: clamp(2.1rem, 1.7rem + 1.8vw, 2.75rem);
	--step-4: clamp(2.6rem, 1.9rem + 3vw, 3.65rem);
	--step-5: clamp(3.1rem, 2rem + 5vw, 4.9rem);

	/* Sektions-Abstände — bewusst ungleich (weit-eng-weit) */
	--space-dense: clamp(2.5rem, 2rem + 2vw, 4rem);
	--space-roomy: clamp(4rem, 3rem + 5vw, 10rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

html { overflow-x: hidden; }

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

.icon {
	width: 1.4em;
	height: 1.4em;
	flex: 0 0 auto;
	vertical-align: middle;
}

/* Serverseitiges Sicherheitsnetz: kein .icon darf je riesig werden */
.icon { max-width: 32px; max-height: 32px; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--primary);
	line-height: 1.15;
	margin: 0 0 0.5em;
	text-wrap: pretty;
	font-weight: 600;
}

h1 { font-size: var(--step-5); font-weight: 500; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p {
	margin: 0 0 1.1em;
	text-wrap: pretty;
	max-width: 65ch;
	color: var(--text-soft);
}

p.lede {
	font-size: var(--step-1);
	color: var(--text);
}

a { color: var(--primary); }

ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.4em; color: var(--text-soft); }

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

button { font-family: inherit; }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--primary);
	color: var(--bg);
	padding: 0.8em 1.2em;
	z-index: 999;
	border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
