/**
 * Reset – bewusst schlank. Keine Schriftgröße auf html: 1rem bleibt die
 * vom Nutzer gewählte Browser-Schriftgröße (WCAG 1.4.4 Textvergrößerung).
 */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: var(--header-offset, 6rem);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	background: var(--theme-bg);
	color: var(--theme-text);
	font-family: var(--font-family-body);
	font-size: var(--font-size-body);
	font-weight: var(--font-weight-regular);
	line-height: var(--line-height-body);
	margin: 0;
	min-height: 100vh;
	overflow-x: clip;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

/* Resets mit Spezifität 0 (:where) – jede Komponentenklasse gewinnt. */
:where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol) {
	margin: 0;
}

:where(ul[class], ol[class]) {
	list-style: none;
	padding: 0;
}

:where(img, svg, video, picture) {
	display: block;
	height: auto;
	max-width: 100%;
}

:where(input, button, textarea, select) {
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
}

:where(button) {
	cursor: pointer;
}

:where(a) {
	color: inherit;
}

:where(table) {
	border-collapse: collapse;
	width: 100%;
}

[hidden] {
	display: none !important; /* hidden muss jede display-Regel schlagen */
}
