/* Reset & Basiselemente */

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

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

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

h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -0.005em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; text-wrap: pretty; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

a {
	color: var(--primary);
	text-decoration: none;
	transition: color var(--dur-ui) var(--ease-out);
}
a:hover { color: var(--accent); }

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

button { font-family: inherit; }

::selection { background: var(--accent-soft); color: var(--primary-dark); }

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

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	background: var(--primary);
	color: #fff;
	padding: 0.75em 1.2em;
	border-radius: var(--radius);
	z-index: 1000;
	transition: top var(--dur-ui) var(--ease-out);
}
.skip-link:focus { top: 1rem; color: #fff; }

@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;
	}
}
