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

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

body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-text);
	font-family: var(--font-family-base);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-normal);
	line-height: var(--line-height-body);
	text-rendering: optimizeLegibility;

	-webkit-touch-callout: none; 
	-webkit-user-select: none; 
	-khtml-user-select: none; 
	-moz-user-select: none; 
	-ms-user-select: none; 
	user-select: none; 
}

body,
button,
input,
textarea,
select {
	font-family: var(--font-family-base);
}

img,
picture,
video,
svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

/* Erschwert das beiläufige Öffnen/Speichern von Medien auf Touch-Geräten. */
img,
picture,
video {
	-webkit-touch-callout: none;
	-webkit-user-drag: none;
	user-select: none;
}

button,
input,
textarea,
select {
	font: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

a {
	color: inherit;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	text-decoration-thickness: 0.12em;
}

:focus-visible {
	outline: 2px solid var(--color-focus);
	outline-offset: 4px;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
	margin-top: 0;
}

h1,
h2,
h3,
h4 {
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-heading);
	letter-spacing: var(--letter-spacing-heading);
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }

p,
ul,
ol {
	max-width: 72ch;
}

::selection {
	background: var(--color-text);
	color: var(--color-background);
}

.skip-link {
	position: fixed;
	z-index: 1000;
	top: var(--space-3);
	left: var(--space-3);
	padding: var(--space-2) var(--space-3);
	transform: translateY(-180%);
	background: var(--color-text);
	color: var(--color-background);
}

.skip-link:focus {
	transform: translateY(0);
}

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