/*
 * Element defaults and accessibility primitives.
 */

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

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

body {
	margin: 0;
	background: var(--qv-bg);
	color: var(--qv-ink);
	font-family: var(--qv-font-sans);
	font-size: var(--qv-text-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	/* German compound words are the usual cause of phone overflow. */
	overflow-wrap: break-word;
}

/* Tracking was tuned for Helvetica and ran very tight — -0.045em at
   line-height 0.98 is poster setting, and it was a large part of why the page
   read as a newspaper front. Manrope is already narrow-set, so it needs less
   help; these values let the headline breathe without going loose. */
h1,
h2,
h3,
h4 {
	margin: 0 0 1rem;
	/* The display face carries the headlines; body copy stays Manrope.
	   Bricolage is wider-set than Manrope, so it gets far less negative
	   tracking than the old values. */
	font-family: var(--qv-font-display);
	line-height: 1.12;
	letter-spacing: -0.01em;
	text-wrap: balance;
	hyphens: auto;
}

h1 {
	font-size: var(--qv-h1);
	line-height: 1.02;
	letter-spacing: -0.022em;
	font-weight: 800;
}

h2 {
	font-size: var(--qv-h2);
	font-weight: 800;
}

h3 {
	font-size: clamp(1.15rem, 0.8vw + 1rem, 1.4rem);
	font-weight: 700;
}

p,
li {
	text-wrap: pretty;
}

p {
	margin: 0 0 1rem;
}

a {
	color: var(--qv-green-ink);
}

a:hover {
	text-decoration-thickness: 2px;
}

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

figure {
	margin: 0;
}

table {
	border-collapse: collapse;
	width: 100%;
}

/* Wide content scrolls inside its own container; the body never scrolls sideways. */
.qv-b-dokument table,
.qv-b-dokument pre {
	display: block;
	overflow-x: auto;
	max-width: 100%;
}

/* --- accessibility ------------------------------------------------------- */

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--qv-green-cta);
	outline-offset: 2px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.qv-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--qv-ink);
	color: #fff;
	padding: 0.75rem 1.5rem;
	border-radius: 0 0 var(--qv-radius-control) 0;
	font-weight: 700;
	text-decoration: none;
}

.qv-skip:focus {
	left: 0;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}
