/**
 * MQV component styles – Brand Guidelines v3.2 (May 2026).
 *
 * Type: Zalando Sans for text; headers in Zalando Sans SemiExpanded Medium
 * (width 112.5 %, tracking -25); sub-headers in the SemiExpanded light cut.
 * Colour: black and white first, Terra / Grey / Light Blue for surfaces and
 * soft gradients, accent colours only through the brand pattern.
 *
 * Accessibility (BITV 2.0 / WCAG 2.1 AA): text is black on every brand
 * surface (≥ 9.9:1), secondary text #4D5050 (≥ 5.9:1 on light surfaces),
 * the accent blue never carries text on light backgrounds (3:1 only),
 * focus is a 3 px outline, targets are at least 44 px, motion respects
 * prefers-reduced-motion, layouts reflow down to 320 px.
 */

:root {
	--mqv-ink: var(--wp--preset--color--contrast);
	--mqv-paper: var(--wp--preset--color--base);
	--mqv-muted: var(--wp--preset--color--accent-4);
	--mqv-rule: var(--wp--preset--color--accent-6);
	--mqv-rule-strong: var(--wp--preset--color--contrast);
	--mqv-surface: var(--wp--preset--color--accent-5);
	--mqv-terra-light: var(--wp--preset--color--accent-3);
	--mqv-light-blue: var(--wp--preset--color--accent-1);
	--mqv-header-height: 5.5rem;
	--mqv-radius: 8px;
	--mqv-focus: 3px solid var(--wp--preset--color--contrast);
	--mqv-semi: 112.5%;
}

/* ------------------------------------------------------------- Typography */

h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-post-title,
.mqv-semi {
	font-stretch: var(--mqv-semi);
}

/* Sub-header voice: SemiExpanded light. The guide asks for ExtraLight (200);
   300 is used so long lines stay legible for low-vision readers. */
.is-style-mqv-lead,
.mqv-subhead {
	font-size: var(--wp--preset--font-size--large);
	font-stretch: var(--mqv-semi);
	font-weight: 300;
	letter-spacing: 0;
	line-height: 1.45;
	max-width: 36em;
}

p,
li {
	max-width: 70ch;
}

strong,
b {
	font-weight: 600;
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

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

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
	outline: var(--mqv-focus);
	outline-offset: 2px;
}

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

.skip-link.screen-reader-text:focus {
	background: var(--mqv-ink);
	clip-path: none;
	color: var(--mqv-paper);
	font-weight: 600;
	height: auto;
	left: 1rem;
	padding: 0.75rem 1.25rem;
	top: 1rem;
	width: auto;
	z-index: 100000;
}

.mqv-placeholder {
	border: 1px dashed var(--mqv-rule);
	color: var(--mqv-muted);
	font-size: var(--wp--preset--font-size--small);
	padding: 0.75rem 1rem;
}

/* Editor notes: visible in the editor and to logged-in editors only. */
.is-style-mqv-editor-note {
	display: none;
}

body.logged-in .is-style-mqv-editor-note,
.editor-styles-wrapper .is-style-mqv-editor-note {
	background: #fff4dc;
	border-left: 4px solid var(--wp--preset--color--orange);
	display: block;
	font-size: var(--wp--preset--font-size--small);
	max-width: none;
	padding: 0.75rem 1rem;
}

/* ---------------------------------------------------------------- Buttons */

.wp-block-button__link {
	min-height: 44px;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 2px solid var(--mqv-ink);
	color: var(--mqv-ink);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--mqv-ink);
	color: var(--mqv-paper);
}

/* ----------------------------------------------------------------- Header */

.mqv-header {
	background: var(--mqv-paper);
	border-bottom: 1px solid var(--mqv-rule);
	position: relative;
	z-index: 50;
}

.mqv-header__service {
	gap: 0.25rem 1.25rem;
	min-height: 2.75rem;
	padding-top: 0.25rem;
}

.mqv-header__service .mqv-inline-nav a,
.mqv-header__service .mqv-lang a,
.mqv-header__service .mqv-lang__current {
	align-items: center;
	display: inline-flex;
	font-size: var(--wp--preset--font-size--small);
	min-height: 44px;
}

.mqv-header__bar {
	gap: 1.5rem;
	min-height: var(--mqv-header-height);
	padding-bottom: 0.75rem;
}

.mqv-logo {
	flex: none;
	line-height: 0;
}

.mqv-logo a {
	display: inline-block;
}

.mqv-logo img {
	height: auto;
	max-width: none;
}

/* ------------------------------------------------------- Main navigation */

.mqv-nav,
.mqv-nav__item {
	position: static;
}

.mqv-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mqv-nav__list {
	align-items: stretch;
	display: flex;
	gap: 0.25rem;
}

.mqv-nav__link {
	align-items: center;
	background: none;
	border: 0;
	color: var(--mqv-ink);
	cursor: pointer;
	display: flex;
	font: inherit;
	font-weight: 500;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0 0.85rem;
	text-decoration: none;
}

.mqv-nav__link:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

/* Current section and open panel: a black bar under the item (not colour alone). */
.mqv-nav__item.is-current-section > .mqv-nav__link,
.mqv-nav__subtoggle[aria-expanded="true"] {
	box-shadow: inset 0 -3px 0 var(--mqv-ink);
}

.mqv-nav__chevron {
	border-bottom: 2px solid currentColor;
	border-right: 2px solid currentColor;
	display: inline-block;
	height: 0.45em;
	margin-top: -0.25em;
	transform: rotate(45deg);
	transition: transform 0.15s ease;
	width: 0.45em;
}

.mqv-nav__subtoggle[aria-expanded="true"] .mqv-nav__chevron {
	margin-top: 0.2em;
	transform: rotate(-135deg);
}

.mqv-nav__panel {
	background: var(--mqv-terra-light);
	display: none;
	left: 0;
	position: absolute;
	right: 0;
	top: 100%;
}

.mqv-nav__subtoggle[aria-expanded="true"] + .mqv-nav__panel,
.mqv-nav.no-js .mqv-nav__item:hover > .mqv-nav__panel,
.mqv-nav.no-js .mqv-nav__item:focus-within > .mqv-nav__panel {
	display: block;
}

.mqv-nav__panel-inner {
	box-sizing: border-box;
	display: grid;
	gap: 1rem 3rem;
	grid-template-columns: minmax(12rem, 1fr) 2fr;
	margin: 0 auto;
	max-width: calc(var(--wp--style--global--wide-size) + var(--wp--style--root--padding-left) + var(--wp--style--root--padding-right));
	padding: 2.25rem var(--wp--style--root--padding-right) 2.75rem var(--wp--style--root--padding-left);
}

.mqv-nav__panel-title {
	color: var(--mqv-ink);
	font-size: var(--wp--preset--font-size--x-large);
	font-stretch: var(--mqv-semi);
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.15;
	text-decoration: none;
}

.mqv-nav__panel-title:hover {
	text-decoration: underline;
}

.mqv-nav__sublist {
	column-gap: 3rem;
	columns: 2 16rem;
}

.mqv-nav__sublist li {
	break-inside: avoid;
}

.mqv-nav__sublink {
	border-top: 1px solid rgb(0 0 0 / 0.2);
	color: var(--mqv-ink);
	display: block;
	min-height: 44px;
	padding: 0.7rem 0;
	text-decoration: none;
}

.mqv-nav__sublink:hover {
	text-decoration: underline;
}

.mqv-nav__sublink[aria-current="page"] {
	font-weight: 600;
}

.mqv-nav__toggle {
	align-items: center;
	background: none;
	border: 0;
	color: var(--mqv-ink);
	cursor: pointer;
	display: none;
	font: inherit;
	font-weight: 500;
	gap: 0.6rem;
	min-height: 48px;
	min-width: 48px;
	padding: 0 0.25rem;
}

.mqv-nav__toggle-icon,
.mqv-nav__toggle-icon::before,
.mqv-nav__toggle-icon::after {
	background: currentColor;
	display: block;
	height: 2px;
	position: relative;
	width: 1.375rem;
}

.mqv-nav__toggle-icon::before,
.mqv-nav__toggle-icon::after {
	content: "";
	position: absolute;
}

.mqv-nav__toggle-icon::before {
	top: -7px;
}

.mqv-nav__toggle-icon::after {
	top: 7px;
}

.mqv-nav__toggle[aria-expanded="true"] .mqv-nav__toggle-icon {
	background: transparent;
}

.mqv-nav__toggle[aria-expanded="true"] .mqv-nav__toggle-icon::before {
	top: 0;
	transform: rotate(45deg);
}

.mqv-nav__toggle[aria-expanded="true"] .mqv-nav__toggle-icon::after {
	top: 0;
	transform: rotate(-45deg);
}

@media (max-width: 1099px) {
	.mqv-nav:not(.no-js) .mqv-nav__toggle {
		display: flex;
	}

	.mqv-nav:not(.no-js) .mqv-nav__list {
		background: var(--mqv-paper);
		border-bottom: 1px solid var(--mqv-rule);
		box-sizing: border-box;
		display: none;
		left: 0;
		max-height: calc(100dvh - var(--mqv-header-height));
		overflow-y: auto;
		padding: 0.5rem var(--wp--style--root--padding-right) 1.5rem var(--wp--style--root--padding-left);
		position: absolute;
		right: 0;
		top: 100%;
	}

	.mqv-nav.is-open .mqv-nav__list {
		display: block;
	}

	.mqv-nav.no-js .mqv-nav__list {
		flex-wrap: wrap;
	}

	.mqv-nav__item {
		border-bottom: 1px solid var(--mqv-rule);
	}

	.mqv-nav__link {
		justify-content: space-between;
		min-height: 3.25rem;
		padding: 0;
		width: 100%;
	}

	.mqv-nav__item.is-current-section > .mqv-nav__link,
	.mqv-nav__subtoggle[aria-expanded="true"] {
		box-shadow: none;
		text-decoration: underline;
		text-decoration-thickness: 2px;
	}

	.mqv-nav__panel {
		background: none;
		position: static;
	}

	.mqv-nav__panel-inner {
		display: block;
		padding: 0 0 1rem 1rem;
	}

	.mqv-nav__panel-title {
		display: block;
		font-size: var(--wp--preset--font-size--medium);
		padding: 0.6rem 0;
	}

	.mqv-nav__sublist {
		columns: auto;
	}

	.mqv-nav__sublink {
		border: 0;
		padding: 0.6rem 0;
	}

	html.mqv-menu-open {
		overflow: hidden;
	}
}

@media (max-width: 480px) {
	.mqv-nav__toggle-label {
		clip-path: inset(50%);
		height: 1px;
		overflow: hidden;
		position: absolute;
		width: 1px;
	}
}

/* ------------------------------------------------------ Language switcher */

.mqv-lang ul,
.mqv-inline-nav ul {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mqv-lang li + li {
	border-left: 1px solid var(--mqv-rule);
}

.mqv-lang a,
.mqv-lang__current {
	font-weight: 500;
	padding: 0 0.7rem;
}

.mqv-lang a {
	color: var(--mqv-ink);
}

.mqv-lang__current {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}

.mqv-lang abbr {
	text-decoration: none;
}

.mqv-inline-nav ul {
	gap: 0 1.25rem;
}

.mqv-inline-nav a {
	color: inherit;
	font-size: var(--wp--preset--font-size--small);
}

/* ----------------------------------------------------------- Breadcrumbs */

.mqv-breadcrumbs ol {
	color: var(--mqv-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--wp--preset--font-size--small);
	gap: 0.25rem 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mqv-breadcrumbs li {
	align-items: center;
	display: flex;
}

.mqv-breadcrumbs li + li::before {
	border-right: 1.5px solid currentColor;
	border-top: 1.5px solid currentColor;
	content: "";
	height: 0.35em;
	margin: 0 0.7rem 0 0.5rem;
	transform: rotate(45deg);
	width: 0.35em;
}

.mqv-breadcrumbs a {
	color: var(--mqv-ink);
}

/* ----------------------------------------------------------- Home hero */

.mqv-hero {
	background: var(--wp--preset--gradient--primary-soft);
	isolation: isolate;
	margin-block-start: 0 !important;
	overflow: hidden;
	padding-block: clamp(3.5rem, 9vw, 8rem) clamp(3rem, 7vw, 6rem);
	position: relative;
}

/* The brand pattern, decorative: a background image, invisible to assistive tech. */
.mqv-hero::after {
	aspect-ratio: 431 / 317;
	background: url("../brand/pattern.svg") center / contain no-repeat;
	content: "";
	pointer-events: none;
	position: absolute;
	right: max(-6vw, -5rem);
	top: 50%;
	transform: translateY(-50%);
	width: min(58vw, 54rem);
	z-index: -1;
}

.mqv-hero__inner {
	max-width: 44rem;
}

.mqv-hero__title {
	font-size: clamp(2.75rem, 7vw, 5.75rem);
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.02;
	margin: 0 0 1.25rem;
}

.mqv-hero .is-style-mqv-lead {
	font-size: clamp(1.25rem, 2.1vw, 1.625rem);
}

.mqv-hero .wp-block-buttons {
	margin-top: 2.25rem;
}

@media (max-width: 781px) {
	.mqv-hero {
		padding-bottom: calc(52vw + 2rem);
	}

	.mqv-hero::after {
		bottom: 1rem;
		right: -8vw;
		top: auto;
		transform: none;
		width: 92vw;
	}
}

/* ---------------------------------------------------------- Home bands */

.mqv-band {
	padding-block: var(--wp--preset--spacing--60);
}

.mqv-band + .mqv-band {
	border-top: 1px solid var(--mqv-rule);
}

.mqv-band > .wp-block-heading:first-child {
	font-size: var(--wp--preset--font-size--x-large);
	margin-top: 0;
}

.mqv-band--members .wp-block-heading {
	color: var(--mqv-muted);
	font-size: var(--wp--preset--font-size--medium) !important;
	font-stretch: 100%;
	font-weight: 500;
	letter-spacing: 0;
}

.mqv-members {
	display: grid;
	gap: 0.75rem 2.5rem;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.mqv-members li {
	border-top: 1px solid var(--mqv-ink);
	font-size: var(--wp--preset--font-size--medium);
	font-stretch: var(--mqv-semi);
	font-weight: 400;
	line-height: 1.35;
	padding-top: 0.6rem;
}

.mqv-band--cta {
	background: var(--mqv-light-blue);
	border-radius: var(--mqv-radius);
	border-top: 0 !important;
	margin-block: var(--wp--preset--spacing--40);
	padding-inline: clamp(1.5rem, 4vw, 3.5rem);
}

.mqv-funding {
	color: var(--mqv-muted);
	font-size: var(--wp--preset--font-size--small);
	margin-block: var(--wp--preset--spacing--50);
}

/* ------------------------------------- Sitemap (footer + overview tiles) */

.mqv-sitemap ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mqv-sitemap__title {
	font-size: var(--wp--preset--font-size--medium);
	margin: 0 0 0.75rem;
}

.mqv-sitemap__title a,
.mqv-sitemap__list a {
	text-decoration: none;
}

.mqv-sitemap__title a:hover,
.mqv-sitemap__list a:hover {
	text-decoration: underline;
}

.mqv-sitemap__list a {
	display: block;
	min-height: 2.25rem;
	padding: 0.35rem 0;
}

.mqv-sitemap--cards {
	display: grid;
	gap: 3rem 2.5rem;
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
	margin-top: 1.5rem;
}

.mqv-sitemap--cards .mqv-sitemap__section {
	border-top: 2px solid var(--mqv-ink);
	padding-top: 1rem;
}

.mqv-sitemap--cards .mqv-sitemap__title {
	font-size: var(--wp--preset--font-size--x-large);
}

.mqv-sitemap--cards a {
	color: var(--mqv-ink);
}

.mqv-sitemap--cards .mqv-sitemap__list a {
	border-top: 1px solid var(--mqv-rule);
	min-height: 44px;
	padding: 0.6rem 0;
}

.mqv-sitemap--cards .mqv-sitemap__list li:first-child a {
	border-top: 0;
}

/* ----------------------------------------------- Grids and labelled rows */

.mqv-grid {
	gap: 2rem 2.5rem;
	margin-block: 2rem;
}

.mqv-grid__item {
	border-top: 1px solid var(--mqv-ink);
	padding-top: 0.9rem;
}

.mqv-grid__item > .wp-block-heading {
	font-size: var(--wp--preset--font-size--large);
	margin: 0 0 0.5rem;
}

.mqv-grid__item > p {
	margin: 0;
}

/* As in the brand guide (Purpose / Vision / Mission): label left, text right, hairline above. */
.mqv-rows {
	margin-block: 2rem;
}

.mqv-rows__row {
	border-top: 1px solid var(--mqv-rule);
	display: grid;
	gap: 0.5rem 2.5rem;
	grid-template-columns: minmax(10rem, 1fr) 2fr;
	padding-block: 1.25rem;
}

.mqv-rows__row > .wp-block-heading {
	font-size: var(--wp--preset--font-size--large);
	margin: 0;
}

.mqv-rows__row > p {
	margin: 0;
}

@media (max-width: 640px) {
	.mqv-rows__row {
		grid-template-columns: 1fr;
	}
}

/* Questions and answers */
.mqv-details {
	border-top: 1px solid var(--mqv-rule);
	padding-block: 0.5rem;
}

.mqv-details:last-of-type {
	border-bottom: 1px solid var(--mqv-rule);
}

.mqv-details summary {
	cursor: pointer;
	font-size: var(--wp--preset--font-size--large);
	font-stretch: var(--mqv-semi);
	font-weight: 500;
	letter-spacing: -0.015em;
	min-height: 44px;
	padding-block: 0.6rem;
}

.mqv-details[open] summary {
	margin-bottom: 0.25rem;
}

/* Post lists */
.mqv-posts .wp-block-post-template {
	gap: 2rem 2.5rem;
}

.mqv-posts .wp-block-post {
	border-top: 1px solid var(--mqv-ink);
	padding-top: 1rem;
}

.mqv-posts__date {
	color: var(--mqv-muted);
}

.mqv-posts__title {
	font-size: var(--wp--preset--font-size--large);
	margin-block: 0.4rem;
}

.mqv-posts__title a {
	color: var(--mqv-ink);
	text-decoration: none;
}

.mqv-posts__title a:hover {
	text-decoration: underline;
}

.mqv-posts__excerpt {
	color: var(--mqv-muted);
}

.mqv-posts__excerpt .wp-block-post-excerpt__more-text {
	display: none;
}

/* Sub-page lists on section pages */
.mqv-children {
	display: grid;
	gap: 0 2.5rem;
	grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
	list-style: none;
	margin-top: var(--wp--preset--spacing--50);
	padding: 0;
}

.mqv-children__item {
	border-top: 1px solid var(--mqv-ink);
	padding: 1rem 0 1.5rem;
}

.mqv-children__link {
	color: var(--mqv-ink);
	font-size: var(--wp--preset--font-size--large);
	font-stretch: var(--mqv-semi);
	font-weight: 500;
	letter-spacing: -0.015em;
	text-decoration: none;
}

.mqv-children__link:hover {
	text-decoration: underline;
}

.mqv-children__excerpt {
	color: var(--mqv-muted);
	margin: 0.4rem 0 0;
}

/* Easy Read / Leichte Sprache: larger type, short lines, generous spacing. */
.mqv-easy-read {
	font-size: 1.25rem;
	line-height: 1.75;
}

.mqv-easy-read p,
.mqv-easy-read li {
	max-width: 46ch;
}

/* ----------------------------------------------------------------- Footer */

.mqv-footer {
	isolation: isolate;
	overflow: hidden;
	position: relative;
}

.mqv-footer::after {
	aspect-ratio: 431 / 317;
	background: url("../brand/pattern-white.svg") center / contain no-repeat;
	bottom: -14rem;
	content: "";
	opacity: 0.18;
	pointer-events: none;
	position: absolute;
	right: -10rem;
	width: 46rem;
	z-index: -1;
}

.mqv-footer a {
	color: inherit;
}

.mqv-footer :where(a, button):focus-visible {
	outline-color: var(--mqv-paper);
}

.mqv-footer__top {
	display: grid;
	gap: 2.5rem 4rem;
	grid-template-columns: minmax(14rem, 1fr) 3fr;
	padding-bottom: var(--wp--preset--spacing--50);
}

.mqv-footer__contact {
	line-height: 1.8;
	margin-top: 1.5rem;
}

.mqv-social {
	margin-block: 1rem;
}

.mqv-social .wp-social-link a {
	min-height: 44px;
	min-width: 44px;
}

.mqv-sitemap--footer {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
}

.mqv-sitemap--footer .mqv-sitemap__list a {
	color: var(--wp--preset--color--accent-6);
	font-size: var(--wp--preset--font-size--small);
}

.mqv-sitemap--footer .mqv-sitemap__list a:hover {
	color: var(--mqv-paper);
}

.mqv-footer__bottom {
	border-top: 1px solid rgb(255 255 255 / 0.3);
	gap: 1rem 2rem;
	padding-top: var(--wp--preset--spacing--40);
}

.mqv-footer__bottom p {
	color: var(--wp--preset--color--accent-6);
	margin: 0;
	max-width: 60ch;
}

.mqv-footer .mqv-inline-nav a {
	align-items: center;
	display: inline-flex;
	min-height: 44px;
}

@media (max-width: 781px) {
	.mqv-footer__top {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------ User preferences */

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

@media (forced-colors: active) {
	.mqv-nav__item.is-current-section > .mqv-nav__link,
	.mqv-nav__subtoggle[aria-expanded="true"] {
		text-decoration: underline;
	}

	.mqv-hero::after,
	.mqv-footer::after {
		display: none;
	}

	.mqv-band--cta,
	.mqv-nav__panel {
		border: 1px solid CanvasText;
	}
}

@media print {
	.mqv-header__service,
	.mqv-nav,
	.mqv-hero::after,
	.mqv-footer::after,
	.mqv-social {
		display: none !important;
	}
}
