/* ==========================================================================
   Design-System "Klinische Klarheit" — Variablen, Reset, Typografie, Utilities
   ========================================================================== */

:root {
	--primary: #15424A;
	--primary-ink: #0e2f35;
	--bg: #FAFBFA;
	--surface: #FFFFFF;
	--accent: #8FA89B;
	--sand: #E8E2D6;
	--ink: #16231F;
	--ink-soft: #4B5A55;
	--line: #D8D2C4;
	--radius: 2px;
	--radius-feature: 8px;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--font-display: 'Fraunces', 'Iowan Old Style', serif;
	--font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;

	--space-xs: clamp(0.75rem, 0.6rem + 0.6vw, 1.25rem);
	--space-s: clamp(1.25rem, 1rem + 1vw, 2rem);
	--space-m: clamp(2rem, 1.5rem + 2vw, 3.5rem);
	--space-l: clamp(3rem, 2rem + 4vw, 6rem);
	--space-xl: clamp(4rem, 2.5rem + 6vw, 10rem);

	--container-max: 1240px;
}

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

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
	line-height: 1.6;
	text-wrap: pretty;
	overflow-x: hidden;
}

body.drawer-open {
	overflow: hidden;
}

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

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

a {
	color: inherit;
}

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

h1 {
	font-size: clamp(2.5rem, 1.9rem + 2.6vw, 4.2rem);
	font-weight: 500;
	letter-spacing: -0.01em;
}

h2 {
	font-size: clamp(1.9rem, 1.6rem + 1.4vw, 2.75rem);
}

h3 {
	font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.7rem);
	font-weight: 600;
	font-family: var(--font-body);
}

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

.eyebrow {
	font-family: var(--font-body);
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--accent);
	margin: 0 0 0.9em;
}

.eyebrow a {
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}

.container {
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.skip-link {
	position: absolute;
	left: -999px;
	top: auto;
	background: var(--primary);
	color: #fff;
	padding: 0.8em 1.2em;
	z-index: 1000;
	border-radius: var(--radius);
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
}

hr, .rule {
	border: none;
	border-top: 1px solid var(--line);
	margin: 0;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.9375rem;
	padding: 0.95em 1.6em;
	border-radius: var(--radius);
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform 220ms var(--ease-out), background-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
	cursor: pointer;
	min-height: 44px;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn:active {
	transform: scale(0.98);
}

.btn--primary {
	background: var(--primary);
	color: #fff;
	box-shadow: 0 8px 20px -10px rgba(21, 66, 74, 0.55);
}

.btn--primary:hover {
	background: var(--primary-ink);
}

.btn--on-dark {
	background: #fff;
	color: var(--primary-ink);
}

.btn--outline-on-dark {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline-on-dark:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

/* Fokus-Sichtbarkeit */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}
