/* Reset + Basistypografie */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; 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: var(--fs-body);
	line-height: 1.6;
	text-wrap: pretty;
	overflow-x: hidden;
}

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

h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--ink);
	line-height: 1.12;
	font-weight: 600;
	margin: 0 0 0.6em;
	text-wrap: pretty;
}
h1 { font-size: var(--fs-h1); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); font-weight: 500; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-size: var(--fs-h4); font-weight: 600; }

p { margin: 0 0 1.1em; max-width: 65ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }

ul, ol { padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

button { font-family: inherit; }

::selection { background: var(--surface-2); color: var(--ink); }

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

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

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

.eyebrow {
	display: inline-block;
	font-size: var(--fs-eyebrow);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--primary);
	margin-bottom: 0.9em;
}

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }

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

/* Icon-Sicherheitsnetz: nie ohne feste Größe rendern lassen */
.icon {
	width: 1.4em;
	height: 1.4em;
	max-width: 32px;
	max-height: 32px;
	flex: 0 0 auto;
	vertical-align: middle;
	color: currentColor;
}
