/* MV Ruhrpott 4.0 – Richtung 1 „Glück auf“. Alle Farben kommen aus der Palette. */

:root {
	--mv-bg: var(--wp--preset--color--grund);
	--mv-surface: var(--wp--preset--color--flaeche);
	--mv-text: var(--wp--preset--color--text);
	--mv-muted: var(--wp--preset--color--grau);
	--mv-line: var(--wp--preset--color--linie);
	--mv-accent: var(--wp--preset--color--akzent);
	--mv-accent-soft: var(--wp--preset--color--akzent-hell);
	--mv-on-accent: var(--wp--preset--color--auf-akzent);
	--mv-display: var(--wp--preset--font-family--anton);
}

/* ---------- Grundlagen ---------- */
.wp-site-blocks { position: relative; }
.wp-site-blocks > * + *,
.wp-block-post-content > .mv-section,
.wp-block-post-content > .mv-section + *,
.wp-block-post-content > .alignfull + .alignfull { margin-block-start: 0; }
.mv-section { padding-block: var(--wp--preset--spacing--60); position: relative; }
.mv-section--tight { padding-block: var(--wp--preset--spacing--50); }
.mv-section--line { border-top: 1px solid var(--mv-line); }

/* Tiefenmaßstab am linken Rand (nur große Bildschirme) – liegt HINTER allen Inhalten,
   farbige Bänder (Laufband, Fotos) decken ihn also ab */
@media (min-width: 1100px) {
	.wp-site-blocks { position: relative; isolation: isolate; }
	.wp-site-blocks::before {
		content: "";
		position: absolute;
		left: 18px;
		top: 0;
		bottom: 0;
		width: 12px;
		border-right: 1px solid var(--mv-line);
		background-image: linear-gradient(var(--mv-line) 1px, transparent 1px);
		background-size: 12px 24px;
		background-position: right top;
		pointer-events: none;
		z-index: -1;
	}
}

/* Akzentwort: kursiv gesetzter Text in Überschriften wird zur Akzentfarbe */
:where(h1, h2, h3, .mv-display, .mv-award-year) em { font-style: normal; color: var(--mv-accent); }

/* Schablonen-Schnitt: eine feine Linie in Hintergrundfarbe quer durch jede Zeile */
.mv-stencil {
	text-decoration-line: line-through;
	text-decoration-color: var(--mv-bg);
	text-decoration-thickness: 0.03em;
	text-decoration-skip-ink: none;
}
.mv-flat-box .mv-stencil { text-decoration: none; }

.mv-kicker {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mv-muted);
}
h1.mv-kicker, h2.mv-kicker {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.8125rem;
	line-height: 1.5;
}
.mv-kicker a { color: inherit; }
.mv-kicker--accent { color: var(--mv-accent-soft); }
.mv-kicker--line { display: flex; align-items: center; gap: 0.9rem; }
.mv-kicker--line::before { content: ""; width: 2.5rem; height: 2px; background: var(--mv-accent); flex: none; }
.mv-intro { font-size: 1.0625rem; line-height: 1.6; color: var(--mv-muted); max-width: 30rem; }
.mv-lead {
	font-family: var(--mv-display);
	font-size: clamp(1.5rem, 2.6vw, 2.5rem);
	line-height: 1.1;
	text-transform: uppercase;
	max-width: 36rem;
}
.mv-body { font-size: 1.0625rem; line-height: 1.75; color: var(--mv-muted); max-width: 42rem; }

/* Buttons */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 2px solid var(--mv-text);
	color: var(--mv-text);
	padding: calc(1.1rem - 2px) calc(1.6rem - 2px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--mv-text); color: var(--mv-bg); }

/* ---------- Header ---------- */
.mv-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--mv-bg) 92%, transparent);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--mv-line);
}
.admin-bar .mv-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mv-header { top: 0; position: relative; } }
.mv-header .wp-block-site-title { margin: 0; font-family: var(--mv-display); font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.02em; }
.mv-header .wp-block-site-title a { text-decoration: none; }
.mv-header .wp-block-site-logo img { max-height: 48px; width: auto; }
.mv-brand:has(.wp-block-site-logo img) .wp-block-site-title { display: none; }
.mv-header .wp-block-navigation { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.mv-header .wp-block-navigation a { text-decoration: none; padding: 0.75rem 0.45rem; }
.mv-header .wp-block-button__link { padding: 0.8rem 1.1rem; font-size: 0.8125rem; }
.mv-header .wp-block-navigation__submenu-container {
	background: var(--mv-bg) !important;
	color: var(--mv-text) !important;
	border: 1px solid var(--mv-line) !important;
	min-width: 17rem !important;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 500;
}
.mv-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--mv-bg) !important;
	color: var(--mv-text) !important;
	padding: 1.5rem;
}
.mv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-family: var(--mv-display); font-size: 2rem; letter-spacing: 0; }
@media (max-width: 600px) { .mv-header-cta { display: none !important; } }

/* ---------- Start-Hero ---------- */
.mv-hero { overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.mv-hero > * + * { margin-block-start: clamp(1.25rem, 3vw, 2.25rem) !important; }
.mv-hero > .mv-display { margin-block-start: clamp(2.5rem, 5vw, 5rem) !important; }
.mv-hero .mv-lead { max-width: 46rem; margin-left: 0 !important; }
.mv-hero-foot > * + * { margin-top: clamp(1.25rem, 3vw, 2.25rem) !important; }
.mv-display {
	font-family: var(--mv-display);
	font-size: clamp(3.5rem, 21vw, 19rem);
	line-height: 0.94;
	text-transform: uppercase;
	white-space: nowrap;
}
/* Tablet: „Über Tage“ bleibt zweispaltig */
@media (min-width: 600px) and (max-width: 781px) {
	.mv-about .wp-block-columns { flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; }
	.mv-about .wp-block-column:first-child { flex-basis: 38% !important; }
	.mv-about .wp-block-column:last-child { flex-basis: 62% !important; }
}
/* Handy */
@media (max-width: 599px) {
	.mv-u-img { max-width: 300px; }
}

/* ---------- Laufband ---------- */
.mv-ticker { background: var(--mv-accent); color: var(--mv-on-accent); overflow: hidden; padding-block: 0.9rem; }
.mv-ticker p {
	margin: 0;
	max-width: none !important;
	white-space: nowrap;
	overflow: hidden;
	font-family: var(--mv-display);
	font-size: clamp(1.25rem, 2.4vw, 2rem);
	text-transform: uppercase;
}
.mv-ticker-track {
	display: inline-flex;
	width: max-content;
	animation: mv-ticker 40s linear infinite;
	will-change: transform;
}
.mv-ticker-item { padding-right: 0.5em; }
.mv-ticker:hover .mv-ticker-track { animation-play-state: paused; }
.mv-dot { opacity: 0.55; }
@keyframes mv-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mv-ticker-track { animation-duration: 120s; } }


/* ---------- Emotionsband: Dortmunder U vor der Schrift ----------
   Ebenen: Foto (hinten) → Wort „Dortmund“ → freigestellter Turm (vorne) → Verlauf → Text.
   Alle Maße rechnen im Raster des Originalfotos (2560 × 1600 px). --s ist die Länge eines
   Foto-Pixels auf dem Bildschirm (wie object-fit: cover), damit Wort und Turm immer exakt
   übereinanderliegen – egal wie breit oder hoch der Bildschirm ist. */
.mv-emotion {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	min-height: clamp(600px, 56.25vw, 92svh);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-block: clamp(2.5rem, 6vw, 5rem) !important;
	border-top: 1px solid var(--mv-line);
	background: var(--mv-bg);
}
.mv-emotion > .mv-emotion-stage {
	position: absolute !important;
	inset: 0;
	margin: 0 !important;
	max-width: none !important;
	z-index: 0;
	container-type: size;
	--s: max(100cqw / 2560, 100cqh / 1600);
	--cx: 1270; /* Mitte des U-Turms im Foto */
	--base: 590; /* Grundlinie des Worts (knapp über dem Dach) */
	--cap: 340; /* Versalhöhe des Worts */
	--py: 0.4; /* senkrechte Bildposition (object-position) */
}
.mv-emotion-stage > * { margin: 0 !important; }
.mv-emotion-stage > figure { position: absolute !important; inset: 0; width: 100% !important; max-width: none !important; height: 100%; }
.mv-emotion-stage figure > div { width: 100% !important; height: 100% !important; } /* Editor-Hülle */
.mv-emotion-stage figure img { width: 100% !important; height: 100% !important; object-fit: cover; object-position: 50% 40%; display: block; }
.mv-emotion-img { z-index: 1; }
.mv-emotion-front { z-index: 4; pointer-events: none; }
.mv-emotion-word {
	position: absolute;
	z-index: 3;
	left: calc(var(--cx) * var(--s) - (2560 * var(--s) - 100cqw) * 0.5);
	translate: -50% 0;
	font-size: min(calc(var(--cap) * var(--s) / 0.859), 22.5cqw);
	top: calc(var(--base) * var(--s) - (1600 * var(--s) - 100cqh) * var(--py) - 0.9236em);
	font-family: var(--mv-display);
	line-height: 1 !important;
	letter-spacing: -0.005em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--mv-text);
	text-shadow: 0 0.04em 0.25em rgb(80 0 40 / 0.25);
	user-select: none;
}
/* Hochformat (Handy): Wort sitzt nur hinter dem U-Schild, damit es lesbar bleibt */
@container (orientation: portrait) {
	.mv-emotion-word { --base: 372; --cap: 190; }
}
.mv-emotion-stage::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 5;
	pointer-events: none;
	background:
		linear-gradient(180deg, transparent 52%, color-mix(in srgb, var(--mv-bg) 55%, transparent) 72%, var(--mv-bg) 100%),
		radial-gradient(120% 70% at 0% 100%, color-mix(in srgb, var(--mv-bg) 70%, transparent) 0%, transparent 60%);
}
.mv-emotion > .mv-emotion-inner { position: relative; z-index: 1; }
.mv-emotion-inner > * + * { margin-top: clamp(1rem, 2vw, 1.5rem) !important; }
.mv-emotion-title { font-family: var(--mv-display); font-size: clamp(2.75rem, 7vw, 6.5rem); line-height: 0.92; text-transform: uppercase; }
.mv-emotion-title em { font-style: normal; color: var(--mv-accent); }
.mv-emotion-text { font-size: var(--wp--preset--font-size--gross); max-width: 32rem; }
.mv-emotion .mv-kicker { color: var(--mv-text); }
/* Tiefe beim Scrollen: das Wort wandert langsamer als Foto und Turm */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.mv-emotion-word { animation: mv-wort linear both; animation-timeline: view(); animation-range: cover; }
		@keyframes mv-wort { from { transform: translateY(16%); } to { transform: translateY(-16%); } }
	}
}
@media (max-width: 781px) {
	.mv-emotion { min-height: min(170vw, 860px); }
}

/* Warmer Lichthof um das U-Schild (sitzt per Foto-Raster genau auf dem Schild) */
.mv-emotion-front::after {
	content: "";
	position: absolute;
	width: calc(520 * var(--s));
	height: calc(440 * var(--s));
	left: calc(1270 * var(--s) - (2560 * var(--s) - 100cqw) * 0.5);
	top: calc(250 * var(--s) - (1600 * var(--s) - 100cqh) * var(--py));
	translate: -50% -50%;
	background: radial-gradient(closest-side, rgb(255 205 130 / 0.55), rgb(255 150 120 / 0.18) 55%, transparent);
	mix-blend-mode: screen;
	pointer-events: none;
	opacity: .35;
}
.mv-emotion-front { --s: inherit; }

/* Lebendiges Bild: langsamer Kamera-Zoom, ziehendes Abendlicht, glühendes U, schimmernde Pfütze.
   Alles läuft ruhig in Schleife und ist aus, wenn das Gerät „Bewegung reduzieren“ eingestellt hat. */
.mv-emotion-stage::before {
	content: "";
	position: absolute;
	inset: -10% -30%;
	z-index: 2;
	pointer-events: none;
	background:
		radial-gradient(28% 22% at 30% 22%, rgb(255 140 170 / 0.35), transparent 70%),
		radial-gradient(22% 18% at 72% 30%, rgb(255 190 150 / 0.28), transparent 70%);
	mix-blend-mode: screen;
	opacity: 0;
}
.mv-emotion-img::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0; height: 34%;
	pointer-events: none;
	background: repeating-linear-gradient(180deg, rgb(255 255 255 / 0) 0 7px, rgb(255 170 210 / 0.09) 8px 9px, rgb(255 255 255 / 0) 10px 17px);
	background-size: 100% 34px;
	mask-image: linear-gradient(180deg, transparent, #000 35%, #000 70%, transparent);
	mix-blend-mode: screen;
	opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
	.mv-emotion-stage { animation: mv-kamera 26s ease-in-out infinite alternate; transform-origin: 50% 32%; will-change: transform; }
	@keyframes mv-kamera { from { transform: scale(1) translateY(0); } to { transform: scale(1.07) translateY(-1%); } }
	.mv-emotion-stage::before { animation: mv-licht 18s ease-in-out infinite alternate; }
	@keyframes mv-licht { 0% { transform: translateX(-12%); opacity: .35; } 50% { opacity: .85; } 100% { transform: translateX(14%); opacity: .45; } }
	.mv-emotion-front img { animation: mv-leds 5s ease-in-out infinite; }
	@keyframes mv-leds { 0%, 100% { filter: brightness(1) saturate(1); } 50% { filter: brightness(1.1) saturate(1.15); } }
	.mv-emotion-front::after { animation: mv-gluehen 5s ease-in-out infinite; }
	@keyframes mv-gluehen { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }
	.mv-emotion-img::after { animation: mv-wellen 7s linear infinite; opacity: 1; }
	@keyframes mv-wellen { from { background-position: 0 0; } to { background-position: 0 34px; } }
	/* Text gleitet beim Hineinscrollen herein */
	@supports (animation-timeline: view()) {
		.mv-emotion-inner > * { animation: mv-rein linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
		.mv-emotion-inner > *:nth-child(2) { animation-range: entry 10% entry 85%; }
		.mv-emotion-inner > *:nth-child(3) { animation-range: entry 20% entry 100%; }
		@keyframes mv-rein { from { opacity: 0; transform: translateY(2.5rem); } to { opacity: 1; transform: none; } }
	}
}

/* ---------- Abschnittskopf ---------- */
.mv-head { margin-bottom: clamp(1.5rem, 4vw, 3rem) !important; }
.mv-head .mv-intro { margin-left: auto; }
@media (max-width: 781px) { .mv-head .mv-intro { margin-left: 0; } }

/* ---------- Leistungs-Ebenen ---------- */
.mv-levels { border-top: 1px solid var(--mv-line); }
.mv-level {
	display: grid;
	grid-template-columns: 8rem minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 1rem 2.5rem;
	align-items: center;
	padding-block: clamp(1.4rem, 3vw, 2.2rem);
	border-bottom: 1px solid var(--mv-line);
	margin: 0 !important;
}
.mv-level > * { margin: 0 !important; }
.mv-depth { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mv-muted); line-height: 1.6; }
.mv-depth strong { color: var(--mv-accent-soft); font-weight: 600; }
.mv-level h3 { font-size: clamp(2rem, 4.2vw, 4.25rem); line-height: 0.92; }
.mv-level h3 a { text-decoration: none; }
.mv-level h3 a:hover { color: var(--mv-accent); }
.mv-level-body > * + * { margin-top: 0.6rem !important; }
.mv-level-text { color: var(--mv-muted); }
.mv-level-links { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; }
.mv-level-links a { text-decoration: none; border-bottom: 1px solid var(--mv-line); }
.mv-level-links a:hover { border-color: var(--mv-accent); }
@media (max-width: 900px) { .mv-level { grid-template-columns: 1fr; gap: 0.6rem; } }

/* ---------- Liste aller Leistungen ---------- */
.mv-rows { border-top: 1px solid var(--mv-line); }
.mv-row {
	display: grid;
	grid-template-columns: 3rem minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 0.4rem 2rem;
	align-items: baseline;
	padding-block: 1.2rem;
	border-bottom: 1px solid var(--mv-line);
	margin: 0 !important;
}
.mv-row > * { margin: 0 !important; }
.mv-no { font-size: 0.8125rem; font-weight: 600; color: var(--mv-accent-soft); }
.mv-row h3 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
.mv-row h3 a { text-decoration: none; }
.mv-row h3 a:hover { color: var(--mv-accent); }
.mv-row p:not(.mv-no) { color: var(--mv-muted); }
@media (max-width: 781px) { .mv-row { grid-template-columns: 1fr; } }

/* ---------- Dortmunder U ---------- */
.mv-u-img { margin: 0; }
.mv-u-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border: 1px solid var(--mv-line); display: block; background: #121212; }
.mv-u-img figcaption { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mv-muted); margin-top: 0.75rem; text-align: left; }
@media (max-width: 781px) { .mv-u-img { max-width: 360px; } }

/* ---------- Raster (Kunden, Vorteile, Zahlen) ---------- */
.mv-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	border-top: 1px solid var(--mv-line);
	border-left: 1px solid var(--mv-line);
	margin-bottom: 2rem !important;
}
.mv-grid > .mv-cell {
	margin: 0 !important;
	padding: 1.5rem 1.4rem 1.7rem;
	border-right: 1px solid var(--mv-line);
	border-bottom: 1px solid var(--mv-line);
}
.mv-cell > * + * { margin-top: 0.6rem !important; }
.mv-client { font-family: var(--mv-display); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1; text-transform: uppercase; }
.mv-num { font-family: var(--mv-display); font-size: 3rem; line-height: 1; color: var(--mv-accent); }
.mv-cell h3 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); }
.mv-grid--stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1.5rem !important; }
.mv-grid--stats > .mv-cell { padding: 1rem 0.9rem 1.1rem; }
.mv-stat { font-family: var(--mv-display); font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1; }

@media (max-width: 781px) {
	.mv-grid--clients { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
	.mv-grid--clients .mv-client { font-size: 1.2rem; }
	.mv-grid--clients > .mv-cell { padding: 1rem 0.9rem 1.1rem; }
}
.mv-stat { white-space: nowrap; }
@media (max-width: 599px) {
	.mv-grid--stats { grid-template-columns: 1fr; }
	.mv-grid--stats > .mv-cell { display: flex; align-items: baseline; gap: 1rem; padding: 0.8rem 1rem; }
	.mv-grid--stats > .mv-cell > * + * { margin-top: 0 !important; }
	.mv-grid--stats .mv-stat { min-width: 4.5rem; font-size: 2rem; }
}

/* ---------- Designflat- und Auszeichnungs-Box ---------- */
.mv-flat-box {
	border: 2px solid var(--mv-accent);
	padding: clamp(1.5rem, 4.5vw, 3.75rem);
	background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--mv-accent) 9%, transparent) 0 14px, transparent 14px 28px);
}
.mv-award-year { font-family: var(--mv-display); font-size: clamp(5rem, 13vw, 11rem); line-height: 0.85; color: var(--mv-accent); }

/* ---------- FAQ ---------- */
.mv-faq { border-bottom: 1px solid var(--mv-line); padding-block: 0; margin: 0 !important; }
.mv-faq:first-child { border-top: 1px solid var(--mv-line); }
.mv-faq summary { cursor: pointer; font-weight: 600; font-size: 1.125rem; line-height: 1.4; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.15rem; min-height: 44px; }
.mv-faq summary::-webkit-details-marker { display: none; }
.mv-faq summary::after { content: "+"; font-family: var(--mv-display); color: var(--mv-accent); font-size: 1.5rem; line-height: 1; transition: transform 0.2s; }
.mv-faq[open] summary::after { transform: rotate(45deg); }
.mv-faq p { color: var(--mv-muted); margin: 0 0 1.25rem; max-width: 42rem; }

/* ---------- Kontakt ---------- */
.mv-contact {
	border-top: 1px solid var(--mv-line);
	background: radial-gradient(ellipse at 10% 100%, color-mix(in srgb, var(--mv-accent) 22%, transparent) 0%, transparent 55%);
}
.mv-contact-title { font-size: clamp(4rem, 12vw, 10rem); line-height: 0.94; }
.mv-contact-links .wp-block-button__link { text-transform: none; letter-spacing: 0.02em; font-size: 1.125rem; min-width: min(20rem, 100%); text-align: left; }
.mv-contact-links { width: 100%; }

/* ---------- Unterseiten ---------- */
.mv-page-hero { padding-block: var(--wp--preset--spacing--50); }
.mv-page-title { font-size: clamp(3.5rem, 11vw, 10rem); line-height: 0.94; margin-block: 1.25rem 1.5rem; }
.mv-checklist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--mv-line); }
.mv-checklist li { padding: 0.95rem 0 0.95rem 1.8rem; border-bottom: 1px solid var(--mv-line); position: relative; }
.mv-checklist li::before { content: "+"; position: absolute; left: 0; font-family: var(--mv-display); color: var(--mv-accent); }
.mv-flaeche { background: var(--mv-surface); }
.mv-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.mv-card { margin: 0 !important; border: 1px solid var(--mv-line); padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.mv-card > * { margin: 0 !important; }
.mv-card .wp-block-buttons { margin-top: auto !important; }
.mv-card--hot { background: var(--mv-accent); border-color: var(--mv-accent); color: var(--mv-on-accent); }
.mv-card--hot .is-style-outline > .wp-block-button__link { color: var(--mv-on-accent); border-color: var(--mv-on-accent); }

/* ---------- Referenzen (Projekte) ---------- */
.mv-projects .wp-block-post-template { gap: 2.5rem 1.25rem; }
.mv-projects .wp-block-post-featured-image { margin: 0 0 1rem; border: 1px solid var(--mv-line); overflow: hidden; background: var(--mv-surface); }
.mv-projects .wp-block-post-featured-image img { transition: transform 0.4s ease; }
.mv-projects .wp-block-post-featured-image a:hover img { transform: scale(1.04); }
.mv-projects .wp-block-post-title { font-size: 2rem; margin: 0; }
.mv-projects .wp-block-post-title a { text-decoration: none; }
@media (max-width: 781px) { .mv-projects .wp-block-post-template { grid-template-columns: 1fr !important; } }
.mv-project-cover { margin-block: 2rem; border: 1px solid var(--mv-line); }
.mv-post { border-bottom: 1px solid var(--mv-line); padding-bottom: 2rem; }
.mv-post > * + * { margin-top: 0.75rem; }


/* ---------- Leistungsübersicht ---------- */
.mv-jumpbar { padding-block: 0 clamp(2rem, 4vw, 3rem); }
.mv-jumpbar > * + * { margin-top: 0.75rem !important; }
.mv-jump .wp-block-button__link { padding: 0.75rem 1.1rem !important; font-size: 0.8125rem; }
.mv-cards--services { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.mv-service-card { background: var(--mv-surface); transition: border-color 0.2s, transform 0.2s; }
.mv-service-card:hover { border-color: var(--mv-accent); transform: translateY(-3px); }
.mv-service-card h3 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); }
.mv-service-card h3 a { text-decoration: none; }
.mv-card-more { margin-top: auto !important; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.mv-card-more a { color: var(--mv-accent-soft); text-decoration: none; }
.mv-card-more a:hover { color: var(--mv-text); }
html { scroll-padding-top: 90px; }

/* ---------- Kontaktseite ---------- */
.mv-grid--contact { grid-template-columns: 1fr; }
.mv-contact-big { font-family: var(--mv-display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.mv-contact-big a, .mv-contact-mail a { text-decoration: none; }
.mv-contact-mail { font-size: 1.125rem; font-weight: 600; overflow-wrap: anywhere; }
.mv-grid--steps { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }

/* Formular */
.mv-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.mv-form p { margin: 0; }
.mv-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1rem; }
.mv-field { display: flex; flex-direction: column; gap: 0.4rem; }
.mv-field label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mv-muted); }
.mv-form input[type="text"], .mv-form input[type="email"], .mv-form input[type="tel"], .mv-form select, .mv-form textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 48px;
	padding: 0.8rem 0.9rem;
	font: inherit;
	font-size: 16px;
	color: var(--mv-text);
	background: var(--mv-surface);
	border: 1px solid var(--mv-line);
	border-radius: 0;
}
.mv-form textarea { resize: vertical; min-height: 9rem; }
.mv-form input:focus, .mv-form select:focus, .mv-form textarea:focus { outline: 2px solid var(--mv-accent); outline-offset: 1px; border-color: var(--mv-accent); }
.mv-form-send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.mv-form-send span { font-size: 0.8125rem; color: var(--mv-muted); }
.mv-form button {
	cursor: pointer;
	border: 0;
	min-height: 52px;
	padding: 1.1rem 1.6rem;
	background: var(--mv-accent);
	color: var(--mv-on-accent);
	font: inherit;
	font-weight: 700;
	font-size: 0.875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.mv-form button:hover { background: var(--mv-text); color: var(--mv-bg); }
.mv-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mv-form-msg { padding: 1rem 1.2rem; margin-top: 1.25rem; border: 1px solid var(--mv-line); }
.mv-form-msg--ok { border-color: var(--mv-accent); background: color-mix(in srgb, var(--mv-accent) 12%, transparent); }
.mv-form-msg--err { border-color: #E5484D; background: color-mix(in srgb, #E5484D 12%, transparent); }
@media (max-width: 599px) { .mv-form button { width: 100%; } }


/* ---------- Bild-Effekte (Editor → Bild → Stile) ---------- */
/* Schwarzweiß → Farbe */
.is-style-mv-farbe img, .is-style-mv-farbe .wp-block-cover__image-background, .mv-project-img img {
	filter: grayscale(1) contrast(1.08) brightness(0.9);
	transition: filter 0.5s ease, transform 0.6s ease;
}
.wp-block-image.is-style-mv-farbe, .wp-block-post-featured-image.is-style-mv-farbe, .is-style-mv-farbe .wp-block-image, .mv-project-img { overflow: hidden; }
.is-style-mv-farbe:hover img, .is-style-mv-farbe .wp-block-image:hover img, .mv-project-img:hover img,
.is-style-mv-farbe:hover .wp-block-cover__image-background { filter: none; transform: scale(1.04); }
/* Neon-Rahmen */
.wp-block-image.is-style-mv-neon, .wp-block-post-featured-image.is-style-mv-neon, .wp-block-cover.is-style-mv-neon, .is-style-mv-neon .wp-block-image {
	box-shadow: 10px 10px 0 var(--mv-accent);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	margin-right: 10px; margin-bottom: 10px;
}
.wp-block-image.is-style-mv-neon:hover, .wp-block-post-featured-image.is-style-mv-neon:hover, .wp-block-cover.is-style-mv-neon:hover, .is-style-mv-neon .wp-block-image:hover {
	box-shadow: 4px 4px 0 var(--mv-accent), 0 0 34px color-mix(in srgb, var(--mv-accent) 55%, transparent);
	transform: translate(6px, 6px);
}
/* Schablonen-Ecke */
.is-style-mv-schablone img, .wp-block-cover.is-style-mv-schablone {
	clip-path: polygon(0 0, calc(100% - 38px) 0, 100% 38px, 100% 100%, 38px 100%, 0 calc(100% - 38px));
}
/* Scanlinien mit Akzent-Schimmer */
.wp-block-image.is-style-mv-scan, .wp-block-post-featured-image.is-style-mv-scan, .is-style-mv-scan .wp-block-image { position: relative; }
.wp-block-image.is-style-mv-scan::after, .wp-block-post-featured-image.is-style-mv-scan::after, .is-style-mv-scan .wp-block-image::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0 2px, transparent 2px 5px),
		linear-gradient(135deg, color-mix(in srgb, var(--mv-accent) 35%, transparent), transparent 65%);
	transition: opacity 0.4s ease;
}
.wp-block-image.is-style-mv-scan:hover::after, .wp-block-post-featured-image.is-style-mv-scan:hover::after, .is-style-mv-scan .wp-block-image:hover::after { opacity: 0.2; }
@media (prefers-reduced-motion: reduce) { [class*="is-style-mv-"] img, .mv-project-img img { transition: none; } }

/* ---------- Referenzen: Projektraster mit Effekt ---------- */
.mv-project-img { position: relative; }
.mv-project-img a { display: block; position: relative; height: 100%; }
.mv-project-img a::after {
	content: "Projekt ansehen →";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 0.9rem 1rem;
	background: var(--mv-accent);
	color: var(--mv-on-accent);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transform: translateY(100%);
	transition: transform 0.3s ease;
}
.mv-project-img:hover a::after, .mv-project-img a:focus-visible::after { transform: translateY(0); }
@media (hover: none) { .mv-project-img a::after { transform: translateY(0); } .mv-project-img img { filter: none; } }

/* Galerie und Steckbrief */
.mv-gallery.wp-block-gallery { gap: 1.25rem !important; }
.mv-gallery .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; }
.mv-grid--facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mv-fact { font-family: var(--mv-display); font-size: 1.5rem; line-height: 1.05; text-transform: uppercase; }


/* ---------- Feinschliff 5.0: Lesbarkeit, Tippflächen, Rhythmus ---------- */
.mv-hero-text { font-size: var(--wp--preset--font-size--gross); line-height: 1.5; color: var(--mv-text); max-width: 40rem; }
.mv-after { margin-top: clamp(1.75rem, 3vw, 2.5rem) !important; }
.mv-form-link { margin-top: 1rem !important; color: var(--mv-muted); }
.mv-form-link a { display: inline-block; padding-block: 0.6rem; color: var(--mv-text); font-weight: 600; }
.mv-kicker a { display: inline; padding-block: 0.75rem; } /* große Tippfläche, bricht trotzdem um */
.mv-head .mv-intro a { display: inline-block; padding-block: 0.7rem; color: var(--mv-text); font-weight: 600; }
/* Ganze Leistungs-Karte klickbar */
.mv-service-card { position: relative; }
.mv-service-card h3 a::after { content: ""; position: absolute; inset: 0; }
.mv-service-card:focus-within { outline: 2px solid var(--mv-accent); outline-offset: 2px; }
.mv-card-more { color: var(--mv-accent-soft); }
/* Links unter den Leistungs-Ebenen */
.mv-level-links { line-height: 2.1; }
@media (max-width: 781px) {
	.mv-level-links { line-height: 1.4; font-size: 0; }
	.mv-level-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.85rem; margin: 0 0.4rem 0.4rem 0; border: 1px solid var(--mv-line); font-size: 0.8125rem; }
}
/* Footer- und Kontaktlinks mit ausreichender Tippfläche */
.mv-footer p a, .mv-contact-mail a, .mv-contact-big a { display: inline-block; max-width: 100%; padding-block: 0.7rem; }
.mv-footer p a { padding-block: 0.8rem; line-height: 1.2; }
.mv-footer p { line-height: 1.35; }
/* Menüpunkt „Kontakt“ nur im Handy-Menü, am Computer übernimmt der Button */
@media (min-width: 600px) {
	.mv-header .wp-block-navigation__container > .wp-block-navigation-item:last-child { display: none; }
	.mv-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:last-child { display: flex; }
}
.mv-header .wp-block-site-title a { display: inline-flex; align-items: center; min-height: 44px; }
/* Einheitliche Abstände zwischen Überschrift und Inhalt */
.mv-head { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem) !important; }
.mv-head h2 + * { margin-top: 0 !important; }

/* ---------- Footer ---------- */
.mv-footer { border-top: 1px solid var(--mv-line); padding-top: 3rem; padding-bottom: 2rem; font-size: 0.9375rem; color: var(--mv-muted); }
.mv-footer a { color: var(--mv-text); text-decoration: none; }
.mv-footer a:hover { color: var(--mv-accent-soft); }
.mv-footer-logo img { max-width: 240px; height: auto; }
.mv-footer .mv-kicker { margin-bottom: 0.5rem; }
.mv-footer-meta { margin-top: 2.5rem !important; padding-top: 1rem; border-top: 1px solid var(--mv-line); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 781px) {
	.wp-block-columns { align-items: stretch !important; }
	.mv-section { padding-block: 3.25rem; }
	.wp-block-columns { gap: 1.75rem !important; }
	.mv-grid--stats .mv-kicker { letter-spacing: 0.08em; }
	.mv-contact-links .wp-block-button { width: 100%; }
	.mv-contact-links .wp-block-button__link { width: 100%; box-sizing: border-box; }
}
@media (max-width: 599px) {
	.mv-contact-links .wp-block-button__link { font-size: 1rem; overflow-wrap: anywhere; padding-inline: 1rem; }
	.mv-level h3 { font-size: clamp(2rem, 11vw, 2.75rem); }
	.mv-flat-box { padding: 1.25rem; }
	.mv-flat-box h2 { font-size: clamp(2rem, 10vw, 2.75rem); }
}

/* Fokus sichtbar */
a:focus-visible, .wp-block-button__link:focus-visible, summary:focus-visible { outline: 2px solid var(--mv-accent); outline-offset: 3px; }

/* ---------- Pop-ups ---------- */
.mv-popup[hidden] { display: none !important; }
.mv-popup { position: fixed; z-index: 9999; --mv-pp-ease: cubic-bezier(.2, .8, .2, 1); }
.mv-popup--mitte { inset: 0; display: grid; place-items: center; padding: clamp(1rem, 4vw, 2rem); }
.mv-popup-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, #000 72%, transparent); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s ease; }
.mv-popup-box {
	position: relative;
	width: min(100%, 34rem);
	max-height: calc(100svh - 2rem);
	overflow: auto;
	overscroll-behavior: contain;
	background: var(--mv-surface, #151515);
	color: var(--mv-text);
	border: 1px solid var(--mv-line);
	border-top: 4px solid var(--mv-accent);
	box-shadow: 0 30px 80px rgb(0 0 0 / .55);
	outline: none;
	opacity: 0;
	transform: translateY(24px) scale(.97);
	transition: opacity .3s ease, transform .4s var(--mv-pp-ease);
}
.mv-popup.is-open .mv-popup-backdrop { opacity: 1; }
.mv-popup.is-open .mv-popup-box { opacity: 1; transform: none; }
.mv-popup-content { padding: clamp(1.5rem, 4vw, 2.25rem); }
.mv-popup-content > * { margin-block: 0 !important; }
.mv-popup-content > * + * { margin-top: 1rem !important; }
.mv-popup-content > .mv-kicker { margin-top: 0 !important; }
.mv-popup-content > .mv-popup-bild:first-child,
.mv-popup-content > .wp-block-image:first-child { margin: calc(-1 * clamp(1.5rem, 4vw, 2.25rem)) calc(-1 * clamp(1.5rem, 4vw, 2.25rem)) 1.5rem !important; max-width: none; }
.mv-popup-content > .wp-block-image:first-child img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.mv-popup-content .wp-block-image:first-child + * { margin-top: 0 !important; }
.mv-popup-title, .mv-popup-content h2 { font-family: var(--mv-display); text-transform: uppercase; font-size: clamp(2rem, 6vw, 3rem) !important; line-height: .95; }
.mv-popup-title em, .mv-popup-content h2 em { font-style: normal; color: var(--mv-accent); }
.mv-popup-content p { font-size: 1.0625rem; line-height: 1.55; }
.mv-popup-content .wp-block-buttons { margin-top: 1.5rem !important; }
.mv-popup-close {
	position: absolute; top: .75rem; right: .75rem; z-index: 2;
	width: 44px; height: 44px; display: grid; place-items: center;
	border: 0; border-radius: 50%; cursor: pointer;
	background: color-mix(in srgb, var(--mv-bg) 75%, transparent); color: var(--mv-text);
	backdrop-filter: blur(4px);
	transition: background .2s, color .2s, transform .2s;
}
.mv-popup-close:hover { background: var(--mv-accent); color: var(--wp--preset--color--auf-akzent, #0A0A0A); transform: rotate(90deg); }
.mv-popup-close:focus-visible { outline: 2px solid var(--mv-accent); outline-offset: 2px; }
html.mv-popup-offen { overflow: hidden; }

/* Slide-in unten rechts */
.mv-popup--ecke { right: clamp(.75rem, 2vw, 1.5rem); bottom: clamp(.75rem, 2vw, 1.5rem); width: min(calc(100vw - 1.5rem), 23rem); }
.mv-popup--ecke .mv-popup-box { width: 100%; transform: translateY(40px); }
.mv-popup--ecke .mv-popup-content { padding: 1.5rem; }
.mv-popup--ecke .mv-popup-content > .wp-block-image:first-child { margin: -1.5rem -1.5rem 1.25rem !important; }
.mv-popup--ecke .mv-popup-title, .mv-popup--ecke .mv-popup-content h2 { font-size: 1.75rem !important; }
.mv-popup--ecke .mv-popup-content p { font-size: 1rem; }

/* Leiste unten */
.mv-popup--leiste { left: 0; right: 0; bottom: 0; }
.mv-popup--leiste .mv-popup-box { width: 100%; max-height: 60svh; border-top-width: 3px; border-inline: 0; border-bottom: 0; transform: translateY(100%); }
.mv-popup--leiste .mv-popup-content { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.75rem; padding: 1rem 4.5rem 1rem clamp(1rem, 4vw, 3rem); max-width: 1440px; margin-inline: auto; }
.mv-popup--leiste .mv-popup-content > * { margin: 0 !important; }
.mv-popup--leiste .mv-popup-content > .wp-block-image { display: none; }
.mv-popup--leiste .mv-popup-title, .mv-popup--leiste .mv-popup-content h2 { font-size: 1.5rem !important; }
.mv-popup--leiste .mv-popup-content p { font-size: .9375rem; flex: 1 1 18rem; }
.mv-popup--leiste .mv-popup-content .mv-kicker { flex: 0 0 auto; }
.mv-popup--leiste .mv-popup-close { top: 50%; translate: 0 -50%; }
@media (max-width: 599px) {
	.mv-popup--leiste .mv-popup-content { padding-right: 3.75rem; }
	.mv-popup--leiste .mv-popup-content .wp-block-buttons { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.mv-popup-box, .mv-popup-backdrop { transition: none; transform: none !important; }
}
@media (max-width: 599px) {
	.mv-popup--ecke .mv-popup-content > .wp-block-image:first-child { display: none; }
	.mv-popup--ecke .mv-popup-content > .wp-block-image:first-child + * { margin-top: 0 !important; }
}

/* ---------- Datenschutz: Kontaktformular-Hinweis & Zwei-Klick-Einbettungen ---------- */
.mv-form-hinweis { font-size: 0.9375rem; line-height: 1.55; color: var(--mv-muted); max-width: 46rem; }
.mv-form-hinweis a { color: var(--mv-text); }
.wp-block-embed__wrapper:has(> .mv-embed)::before { display: none; }
.mv-embed { position: relative; width: 100%; background: var(--mv-surface); border: 1px solid var(--mv-line); color: var(--mv-text); overflow: hidden; }
.mv-embed--video { aspect-ratio: 16 / 9; }
.mv-embed:not(.mv-embed--video) { min-height: 16rem; }
.mv-embed::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 22px, color-mix(in srgb, var(--mv-accent) 7%, transparent) 22px 23px); pointer-events: none; }
.mv-embed.is-geladen::before { display: none; }
.mv-embed-hinweis { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; height: 100%; min-height: inherit; padding: clamp(1.25rem, 4vw, 2.5rem); text-align: center; }
.mv-embed-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--mv-accent); color: var(--wp--preset--color--auf-akzent, #0A0A0A); }
.mv-embed-text { margin: 0; max-width: 36rem; font-size: 0.875rem; line-height: 1.5; color: var(--mv-muted); }
.mv-embed-text a { color: var(--mv-text); }
.mv-embed.is-geladen iframe { display: block; width: 100%; height: 100%; border: 0; }
.mv-embed.is-geladen:not(.mv-embed--video) iframe { min-height: 16rem; }
@media (max-width: 520px) { .mv-embed--video { aspect-ratio: auto; min-height: 20rem; } .mv-embed--video.is-geladen { aspect-ratio: 16 / 9; min-height: 0; } }
.mv-embed-laden { appearance: none; border: 0; cursor: pointer; min-height: 44px; padding: 0.75rem 1.5rem; background: var(--mv-accent); color: var(--wp--preset--color--auf-akzent, #0A0A0A); font-family: inherit; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; transition: filter .2s; }
.mv-embed-laden:hover { filter: brightness(1.12); }
.mv-embed-laden:focus-visible { outline: 2px solid var(--mv-text); outline-offset: 3px; }

/* ---------- Start-Hero: „Glück auf.“ hinter dem Fördergerüst ----------
   Ebenen: Foto → Abdunklung → Schriftzug → freigestelltes Gerüst mit Sonne → Verläufe → Texte.
   Maße im Raster des Originalfotos (2576 × 1717 px), wie beim Emotionsband. */
.mv-hero--foto {
	/* Fotobereich bleibt in allen Farbvarianten dunkel */
	--mv-bg: #0A0A0A;
	--mv-text: #F2F2F2;
	color: var(--mv-text);
	position: relative;
	isolation: isolate;
	min-height: clamp(640px, calc(100svh - 4.5rem), 1100px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 5rem) !important;
	background: var(--mv-bg);
}
.mv-hero--foto > .mv-hero-stage {
	position: absolute !important;
	inset: 0;
	margin: 0 !important;
	max-width: none !important;
	z-index: 0;
	overflow: hidden;
	container-type: size;
	--s: max(100cqw / 2576, 100cqh / 1717);
	--px: 0.45;
	--py: 0.3;
	--lx: 1360; /* linke Kante des Schriftzugs (Foto-Pixel) */
	--base: 800; /* Grundlinie der ersten Zeile */
	--cap: 465; /* Versalhöhe */
}
.mv-hero-stage > * { margin: 0 !important; }
.mv-hero-stage > figure { position: absolute !important; inset: 0; width: 100% !important; max-width: none !important; height: 100%; }
.mv-hero-stage figure > div { width: 100% !important; height: 100% !important; }
.mv-hero-stage figure img { width: 100% !important; height: 100% !important; object-fit: cover; object-position: 45% 30%; display: block; }
.mv-hero-img { z-index: 1; }
.mv-hero-stage::before { /* Himmel abdunkeln, damit die Schrift leuchtet */
	content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
	background: linear-gradient(180deg, rgb(4 8 22 / .55), rgb(4 8 22 / .38) 55%, rgb(4 8 22 / .55));
}
.mv-hero-word {
	position: absolute;
	z-index: 3;
	/* linke Kante des Schriftzugs, knapp im Gerüst – Zeilenhöhe 0.9 */
	--left: calc(var(--lx) * var(--s) - (2576 * var(--s) - 100cqw) * var(--px));
	left: var(--left);
	font-size: min(calc(var(--cap) * var(--s) / 0.859), calc((100cqw - var(--left) - 3cqw) / 2.32)) !important;
	top: calc(var(--base) * var(--s) - (1717 * var(--s) - 100cqh) * var(--py) - 0.8738em);
	line-height: 0.9 !important;
	white-space: nowrap;
	text-align: right; /* „AUF.“ rechtsbündig – frei vom Gerüst */
	color: var(--mv-text);
	text-shadow: 0 0.03em 0.3em rgb(0 0 0 / .35);
	user-select: none;
}
.mv-hero-front { z-index: 4; pointer-events: none; }
.mv-hero-stage::after {
	content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--mv-bg) 70%, transparent) 0%, transparent 22%, transparent 58%, color-mix(in srgb, var(--mv-bg) 80%, transparent) 84%, var(--mv-bg) 100%),
		radial-gradient(90% 60% at 0% 100%, color-mix(in srgb, var(--mv-bg) 75%, transparent), transparent 70%);
}
/* Hochformat: Schriftzug mittig, Foto auf das Gerüst zentriert */
@container (orientation: portrait) {
	/* Handy: Gerüst füllt das Bild – Schriftzug zentriert davor, Sonne bleibt davor */
	.mv-hero-word { --left: 50%; translate: -50% 0; font-size: 36cqw !important; text-align: center; top: 36%; z-index: 4; }
	.mv-hero-front { z-index: 3; }
}
.mv-hero--foto > :not(.mv-hero-stage) { position: relative; z-index: 1; }
.mv-hero--foto .mv-kicker { color: var(--mv-text); max-width: 34rem; margin-left: 0 !important; }
.mv-hero--foto .mv-lead { color: var(--mv-text); text-shadow: 0 1px 12px rgb(0 0 0 / .5); }
@media (prefers-reduced-motion: no-preference) {
	.mv-hero-stage { animation: mv-kamera 30s ease-in-out infinite alternate; transform-origin: 48% 40%; }
	.mv-hero-word { animation: mv-hero-rein 1.4s cubic-bezier(.2,.8,.2,1) .15s both; }
	@keyframes mv-hero-rein { from { opacity: 0; transform: translateY(18%); } to { opacity: 1; transform: none; } }
	.mv-hero-front img { animation: mv-sonne 6s ease-in-out infinite; }
	@keyframes mv-sonne { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.12); } }
}

/* ---------- Umbrüche: lange deutsche Wörter & enge Spalten ---------- */
h1, h2, h3, h4, h5, h6, .mv-kicker, .mv-display, .mv-contact-title, .mv-fact, .mv-client {
	overflow-wrap: break-word;
	-webkit-hyphens: auto;
	hyphens: auto;
	hyphenate-limit-chars: 10 4 4;
}
.mv-display, .mv-hero-word, .mv-emotion-word { -webkit-hyphens: manual; hyphens: manual; }
/* Leistungskarten: Titel passt sich der Kartenbreite an (FAHRZEUGBESCHRIFTUNG = ca. 9 Schriftbreiten) */
.mv-card { min-width: 0; container-type: inline-size; }
.mv-service-card h3 { font-size: min(clamp(1.75rem, 2.4vw, 2.25rem), 10.6cqi); }
/* Kicker mit Linie: als Fließtext, damit lange Brotkrumen umbrechen */
.mv-kicker--line { display: block; }
.mv-kicker--line::before { display: inline-block; vertical-align: middle; margin-right: 0.9rem; transform: translateY(-0.15em); }
/* Kontakt: Telefon und E-Mail umbrechen statt herausragen */
.mv-contact-links .wp-block-button { min-width: min(20rem, 100%); max-width: 100%; }
.mv-contact-links .wp-block-button__link { width: 100%; white-space: normal; overflow-wrap: anywhere; max-width: 100%; box-sizing: border-box; }
a[href^="mailto:"], a[href^="tel:"] { overflow-wrap: anywhere; }
.mv-contact-title { font-size: clamp(3rem, 9vw, 8rem); }
/* Zahlen & Jahreszahl in schmalen Spalten */
.mv-stat { font-size: clamp(1.75rem, 3.2vw, 3.25rem); }
.mv-award-year { font-size: clamp(4rem, 10vw, 11rem); }
.mv-grid--stats > * { min-width: 0; }

/* ---------- Raster-Schutz für Listen-Zeilen ----------
   Jede Zeile in „Leistungs-Ebenen“ (.mv-levels) und „Alle Leistungen“ (.mv-rows) sitzt im selben Raster –
   egal ob sie dupliziert, als Gruppe, Zeile oder Stapel eingefügt oder ihr Layout im Editor geändert wurde.
   Spalte 1 = erstes Element, Spalte 2 = zweites, alles Weitere stapelt sich in Spalte 3. */
.mv-levels > :where(:not(.block-list-appender)),
.mv-rows > :where(:not(.block-list-appender)) {
	display: grid !important;
	flex-direction: initial !important;
	flex-wrap: initial !important;
	justify-content: initial !important;
	max-width: none !important;
	width: auto !important;
	margin: 0 !important;
	border-bottom: 1px solid var(--mv-line);
	grid-auto-flow: row;
}
.mv-levels > * {
	grid-template-columns: 8rem minmax(0, 1.15fr) minmax(0, 1fr) !important;
	column-gap: 2.5rem !important;
	row-gap: 0 !important; /* leere Hilfszeilen dürfen keinen Abstand erzeugen */
	align-items: center !important;
	padding: clamp(1.4rem, 3vw, 2.2rem) 0 !important;
}
.mv-rows > * {
	grid-template-columns: 3rem minmax(0, 1.2fr) minmax(0, 1fr) !important;
	column-gap: 2rem !important;
	row-gap: 0 !important;
	align-items: baseline !important;
	padding: 1.2rem 0 !important;
}
:is(.mv-levels, .mv-rows) > * > * {
	margin: 0 !important;
	max-width: none !important;
	min-width: 0;
	width: auto !important;
	flex: none !important;
}
:is(.mv-levels, .mv-rows) > * > :nth-child(1) { grid-column: 1; grid-row: 1 / span 6; }
:is(.mv-levels, .mv-rows) > * > :nth-child(2) { grid-column: 2; grid-row: 1 / span 6; }
:is(.mv-levels, .mv-rows) > * > :nth-child(n+3) { grid-column: 3; }
:is(.mv-levels, .mv-rows) > * > :nth-child(n+4) { margin-top: 0.6rem !important; }
@media (max-width: 900px) {
	.mv-levels > * { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 781px) {
	.mv-rows > * { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 900px) {
	.mv-levels > * > *, .mv-levels > * > :nth-child(n) { grid-column: 1 !important; grid-row: auto !important; }
	.mv-levels > * > * + * { margin-top: 0.6rem !important; }
}
@media (max-width: 781px) {
	.mv-rows > * > *, .mv-rows > * > :nth-child(n) { grid-column: 1 !important; grid-row: auto !important; }
	.mv-rows > * > * + * { margin-top: 0.4rem !important; }
}
/* Gleiche Schrift auch für Zeilen ohne Klasse (z. B. als Zeile-Block eingefügt) */
.mv-levels > * h3 { font-size: clamp(2rem, 4.2vw, 4.25rem); line-height: 0.92; }
.mv-rows > * h3 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
:is(.mv-levels, .mv-rows) > * h3 a { text-decoration: none; }
:is(.mv-levels, .mv-rows) > * h3 a:hover { color: var(--mv-accent); }
@media (max-width: 599px) { .mv-levels > * h3 { font-size: clamp(2rem, 11vw, 2.75rem); } }
/* Auch Ebenen-Zeilen, die versehentlich AUSSERHALB der Liste gelandet sind (erkennbar an der Tiefen-Angabe),
   bekommen dasselbe Raster und dieselbe Breite wie die Liste. */
.wp-block-group:has(> .mv-depth:first-child) {
	display: grid !important;
	grid-template-columns: 8rem minmax(0, 1.15fr) minmax(0, 1fr) !important;
	column-gap: 2.5rem !important;
	row-gap: 0 !important;
	align-items: center !important;
	flex-direction: initial !important;
	flex-wrap: initial !important;
	margin-block: 0 !important;
	padding: clamp(1.4rem, 3vw, 2.2rem) 0 !important;
	border-bottom: 1px solid var(--mv-line);
}
.wp-block-group:has(> .mv-depth:first-child) > * { margin: 0 !important; max-width: none !important; min-width: 0; width: auto !important; flex: none !important; }
.wp-block-group:has(> .mv-depth:first-child) > :nth-child(1) { grid-column: 1; grid-row: 1 / span 6; }
.wp-block-group:has(> .mv-depth:first-child) > :nth-child(2) { grid-column: 2; grid-row: 1 / span 6; }
.wp-block-group:has(> .mv-depth:first-child) > :nth-child(n+3) { grid-column: 3; }
.wp-block-group:has(> .mv-depth:first-child) > :nth-child(n+4) { margin-top: 0.6rem !important; }
.wp-block-group:has(> .mv-depth:first-child) h3 { font-size: clamp(2rem, 4.2vw, 4.25rem); line-height: 0.92; }
.wp-block-group:has(> .mv-depth:first-child) h3 a { text-decoration: none; }
@media (max-width: 900px) {
	.wp-block-group:has(> .mv-depth:first-child) { grid-template-columns: minmax(0, 1fr) !important; }
	.wp-block-group:has(> .mv-depth:first-child) > * { grid-column: 1 !important; grid-row: auto !important; }
	.wp-block-group:has(> .mv-depth:first-child) > * + * { margin-top: 0.6rem !important; }
}
@media (max-width: 599px) { .wp-block-group:has(> .mv-depth:first-child) h3 { font-size: clamp(2rem, 11vw, 2.75rem); } }

/* Kicker/Brotkrumen über großen Überschriften klickbar halten: Die riesige Anton-Schrift ragt mit
   ihrem unsichtbaren Schriftkasten nach oben über die Zeile davor und würde Klicks abfangen. */
.mv-kicker { position: relative; z-index: 2; }
