/*
Theme Name: EM-Sachverständiger
Theme URI: https://em-sachverstaendiger.de/
Author: amitry agency
Description: Block-Theme für EM-Sachverständiger – Kfz-Prüfstelle in Köln mit Stützpunkten in Halver und Lüdenscheid. HU-Plakette als 3D-Objekt, HU-Check, Prüfprotokoll, Zählwerk, 3D-Karte der Standorte, Kölner Skyline als 3D-Modell, Team mit vCard, Einrichtungs-Assistent. Ohne externe Dienste.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: emsv
Tags: block-theme, full-site-editing, one-column, custom-colors, editor-style
*/

/* ==========================================================================
   1. Werte
   ========================================================================== */

:root {
	--em-papier: var(--wp--preset--color--papier, #f6f6f3);
	--em-weiss: var(--wp--preset--color--weiss, #fff);
	--em-tinte: var(--wp--preset--color--tinte, #0f1216);
	--em-grau: var(--wp--preset--color--grau, #5c636b);
	--em-signal: var(--wp--preset--color--signal, #1d4ed8);
	--em-signal-hauch: color-mix(in srgb, var(--em-signal) 7%, transparent);
	--em-linie: rgba(15, 18, 22, 0.14);
	--em-linie-hell: rgba(255, 255, 255, 0.16);
	--em-display: var(--wp--preset--font-family--display, "Barlow Condensed", "Arial Narrow", sans-serif);
	--em-text: var(--wp--preset--font-family--text, Barlow, system-ui, sans-serif);
	--em-mono: var(--wp--preset--font-family--mono, "IBM Plex Mono", ui-monospace, monospace);
	--em-rand: clamp(20px, 4vw, 56px);
	--em-kopf-h: 78px;
	--em-breit: 1280px;
	--em-ease: cubic-bezier(0.2, 0.7, 0.1, 1);
	--em-ease-maske: cubic-bezier(0.65, 0, 0.25, 1);
	--em-ease-dreh: cubic-bezier(0.2, 1.18, 0.32, 1);
	--em-ok: #1f7a4d;
	--em-bald: #a16207;
	--em-warn: #c2410c;
	--em-kritisch: #b91c1c;
	--em-pfeil-extern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 11.5 11.5 4.5M6 4.5h5.5V10' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='square'/%3E%3C/svg%3E");
	--em-pfeil-rechts: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9.5M8.5 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='square'/%3E%3C/svg%3E");
	--em-pfeil-runter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v9.5M4 8.5l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='square'/%3E%3C/svg%3E");
	--em-icon-telefon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.2 1.8 6.9 5 5.6 6.4c.7 1.6 2 2.9 3.6 3.6L10.6 8.7l3.2 1.7-.5 2.6c-.1.6-.7 1.1-1.3 1C6.4 13.5 2.1 9.2 1.6 3.6c-.1-.6.4-1.2 1-1.3z' fill='%23000'/%3E%3C/svg%3E");
	--em-icon-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2v8.5M4.5 7.5 8 11l3.5-3.5M2.5 14h11' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='square'/%3E%3C/svg%3E");
}

@media (max-width: 599px) {
	:root {
		--em-kopf-h: 64px;
	}
}

/* ==========================================================================
   2. Grundlagen
   ========================================================================== */

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--em-kopf-h) + 16px);
}

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

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
	font-feature-settings: "tnum" 1;
}

::selection {
	background: var(--em-signal);
	color: var(--em-weiss);
}

:where(a, button, summary, input, select, textarea):focus-visible {
	outline: 2px solid var(--em-signal);
	outline-offset: 3px;
}

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

img {
	height: auto;
}

h1,
h2,
h3 {
	overflow-wrap: break-word;
	hyphens: manual;
}

.em-sprung {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 100;
	background: var(--em-tinte);
	color: var(--em-weiss);
	font: 600 14px/1 var(--em-text);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 14px 18px;
	text-decoration: none;
}

.em-sprung:focus {
	top: 12px;
	color: var(--em-weiss);
}

.em-main {
	padding-top: var(--em-kopf-h);
	min-height: 60vh;
}

.em-main > .wp-block-post-content > *,
.wp-site-blocks > * {
	margin-block: 0;
}

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

/* ==========================================================================
   3. Typografie-Bausteine
   ========================================================================== */

.em-label,
p.em-label {
	display: block;
	font-family: var(--em-mono);
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--em-grau);
	margin: 0;
}

.em-label .em-nr,
.em-nr {
	color: var(--em-tinte);
}

.em-gross,
p.em-gross {
	font-size: clamp(18px, 1.5vw, 22px);
	line-height: 1.5;
	color: #262b31;
	max-width: 48ch;
}

.em-signal,
.has-signal-color {
	color: var(--em-signal) !important;
}

.em-platzhalter {
	display: inline-block;
	border: 1px dashed currentColor;
	border-radius: 3px;
	padding: 0.05em 0.45em;
	font-family: var(--em-mono);
	font-size: 0.78em;
	font-weight: 400;
	letter-spacing: 0.02em;
	line-height: 1.45;
	text-transform: none;
	color: var(--em-grau);
	white-space: normal;
}

.em-text {
	font-size: 17px;
	line-height: 1.7;
}

/* Lesespalte links unter dem Seitentitel – wie ein Protokoll, nicht mittig. */
.em-main .wp-block-post-content.em-text {
	max-width: var(--wp--style--global--wide-size, 1280px) !important;
}

.em-main .em-text > :not(.alignwide):not(.alignfull) {
	max-width: 780px !important;
	margin-left: 0 !important;
	margin-right: auto !important;
}

.em-text :where(h2) {
	font-size: clamp(26px, 3vw, 36px);
	margin-top: 2.2em;
	margin-bottom: 0.5em;
	hyphens: auto;
}

.em-text :where(p, li) {
	max-width: 72ch;
	margin-left: 0;
}

.em-hinweis {
	border-left: 3px solid var(--em-signal);
	padding: 4px 0 4px 18px;
	font-size: 15px;
}

/* ==========================================================================
   4. Knöpfe
   ========================================================================== */

.wp-element-button,
.wp-block-button__link,
.em-knopf {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease, translate 0.3s var(--em-ease);
}

/* Gefüllt: dunkler Lack mit Lichtkante – beim Darüberfahren Signalfarbe mit Leuchten */
.wp-block-button__link,
.em-knopf--voll {
	background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.02) 52%, rgba(0, 0, 0, 0.1) 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.2),
		0 1px 2px rgba(15, 18, 22, 0.25),
		0 10px 22px -12px rgba(15, 18, 22, 0.65);
}

.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
.em-knopf--voll:hover,
.em-knopf--voll:focus-visible {
	translate: 0 -1px;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.28),
		0 2px 3px rgba(15, 18, 22, 0.18),
		0 14px 28px -12px color-mix(in srgb, var(--em-signal) 75%, transparent);
}

.wp-block-button__link:active,
.em-knopf:active {
	translate: 0 1px;
	box-shadow: inset 0 2px 5px rgba(15, 18, 22, 0.25);
}

/* Umriss-Variante: helle, erhabene Taste */
.em-knopf {
	border: 1px solid rgba(15, 18, 22, 0.16);
	border-radius: 9px;
	padding: 16px 22px 15px;
	font: 600 15px/1 var(--em-text);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--em-tinte);
	background: linear-gradient(180deg, #fff 0%, #f2f3f1 100%);
	box-shadow:
		inset 0 1px 0 #fff,
		0 1px 2px rgba(15, 18, 22, 0.07),
		0 8px 18px -12px rgba(15, 18, 22, 0.38);
	cursor: pointer;
}

.em-knopf:hover,
.em-knopf:focus-visible {
	translate: 0 -1px;
	border-color: rgba(15, 18, 22, 0.32);
	color: var(--em-tinte);
	box-shadow:
		inset 0 1px 0 #fff,
		0 2px 3px rgba(15, 18, 22, 0.08),
		0 14px 26px -12px rgba(15, 18, 22, 0.42);
}

.em-knopf--voll {
	background-color: var(--em-tinte);
	background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.02) 52%, rgba(0, 0, 0, 0.1) 100%);
	border-color: #07090b;
	color: var(--em-weiss);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.2),
		0 1px 2px rgba(15, 18, 22, 0.25),
		0 10px 22px -12px rgba(15, 18, 22, 0.65);
}

.em-knopf--voll:hover,
.em-knopf--voll:focus-visible {
	background-color: var(--em-signal);
	border-color: color-mix(in srgb, var(--em-signal) 70%, #000);
	color: var(--em-weiss);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.28),
		0 2px 3px rgba(15, 18, 22, 0.18),
		0 14px 28px -12px color-mix(in srgb, var(--em-signal) 75%, transparent);
}

.em-knopf--klein {
	padding: 12px 16px 11px;
	font-size: 13px;
	border-radius: 8px;
}

.wp-block-button.is-style-linie .wp-block-button__link {
	background-color: transparent;
	background-image: linear-gradient(180deg, #fff 0%, #f2f3f1 100%);
	border-color: rgba(15, 18, 22, 0.16);
	color: var(--em-tinte);
	box-shadow:
		inset 0 1px 0 #fff,
		0 1px 2px rgba(15, 18, 22, 0.07),
		0 8px 18px -12px rgba(15, 18, 22, 0.38);
}

.wp-block-button.is-style-linie .wp-block-button__link:hover {
	background-color: transparent;
	border-color: rgba(15, 18, 22, 0.32);
	color: var(--em-tinte);
	box-shadow:
		inset 0 1px 0 #fff,
		0 2px 3px rgba(15, 18, 22, 0.08),
		0 14px 26px -12px rgba(15, 18, 22, 0.42);
}

.has-pfeil-extern .wp-block-button__link::after,
.has-pfeil-rechts .wp-block-button__link::after,
.has-pfeil-runter .wp-block-button__link::after,
.has-icon-telefon .wp-block-button__link::before,
.em-pfeil::after,
.em-icon-telefon::before,
.em-icon-download::before {
	content: "";
	width: 15px;
	height: 15px;
	flex: none;
	background: currentColor;
	-webkit-mask: var(--em-icon, var(--em-pfeil-rechts)) center / contain no-repeat;
	mask: var(--em-icon, var(--em-pfeil-rechts)) center / contain no-repeat;
	transition: translate 0.25s var(--em-ease);
}

.has-pfeil-extern,
.em-pfeil--extern {
	--em-icon: var(--em-pfeil-extern);
}

.has-pfeil-runter,
.em-pfeil--runter {
	--em-icon: var(--em-pfeil-runter);
}

.has-icon-telefon .wp-block-button__link::before,
.em-icon-telefon::before {
	-webkit-mask-image: var(--em-icon-telefon);
	mask-image: var(--em-icon-telefon);
}

.em-icon-download::before {
	-webkit-mask-image: var(--em-icon-download);
	mask-image: var(--em-icon-download);
}

.has-pfeil-rechts .wp-block-button__link:hover::after,
.em-pfeil--rechts:hover::after {
	translate: 4px 0;
}

.has-pfeil-runter .wp-block-button__link:hover::after,
.em-pfeil--runter:hover::after {
	translate: 0 3px;
}

.has-pfeil-extern .wp-block-button__link:hover::after,
.em-pfeil--extern:hover::after {
	translate: 2px -2px;
}

.em-link {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
	transition: color 0.2s;
}

.em-link:hover {
	color: var(--em-signal);
}

/* ==========================================================================
   5. Kopf und Menü
   ========================================================================== */

.em-kopf-teil {
	position: fixed;
	inset: 0 0 auto;
	z-index: 60;
	background: color-mix(in srgb, var(--em-papier) 0%, transparent);
	border-bottom: 1px solid transparent;
	transition: translate 0.5s var(--em-ease), background-color 0.35s ease, border-color 0.35s ease;
	view-transition-name: em-kopf;
}

.admin-bar .em-kopf-teil {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .em-kopf-teil {
		top: 46px;
	}
}

.em-kopf-teil.is-gescrollt,
.em-menue-offen .em-kopf-teil {
	background: color-mix(in srgb, var(--em-papier) 80%, transparent);
	-webkit-backdrop-filter: saturate(1.5) blur(16px);
	backdrop-filter: saturate(1.5) blur(16px);
	border-bottom-color: rgba(15, 18, 22, 0.06);
	box-shadow: 0 10px 30px -22px rgba(15, 18, 22, 0.45);
}

.em-menue-offen .em-kopf-teil {
	background: var(--em-papier);
}

.em-kopf-teil.is-versteckt {
	translate: 0 -105%;
}

.em-kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: var(--em-kopf-h);
	padding: 0 var(--em-rand);
	max-width: calc(var(--em-breit) + 2 * var(--em-rand));
	margin-inline: auto;
}

.em-kopf > * {
	margin: 0 !important;
}

/* Wortmarke (bis das Logo im Assistenten hochgeladen ist) */
.em-logo {
	line-height: 0;
}

.em-logo a {
	display: inline-block;
	color: inherit;
	text-decoration: none;
}

.em-wortmarke {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--em-tinte);
	line-height: 1;
}

.em-wortmarke__em {
	display: inline-grid;
	place-items: center;
	background: linear-gradient(180deg, #2b3139 0%, #0f1216 60%, #07090b 100%);
	border-radius: 5px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.5), 0 3px 8px -3px rgba(15, 18, 22, 0.5);
	color: var(--em-weiss);
	font: 800 24px/1 var(--em-display);
	letter-spacing: 0.02em;
	padding: 7px 7px 5px 8px;
}

.em-wortmarke__text {
	display: grid;
	gap: 3px;
	font: 800 22px/0.9 var(--em-display);
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.em-wortmarke__text small {
	font: 500 10px/1 var(--em-mono);
	letter-spacing: 0.1em;
	color: var(--em-grau);
}

.em-logo-bild img {
	display: block;
	height: 44px;
	width: auto;
}

.em-logo--fuss .em-wortmarke,
.em-logo--fuss .em-wortmarke__text small {
	color: var(--em-weiss);
}

.em-logo--fuss .em-wortmarke__em {
	background: linear-gradient(180deg, #fff 0%, #e8e9e8 100%);
	color: var(--em-tinte);
	box-shadow: inset 0 -2px 0 rgba(15, 18, 22, 0.12), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}

.em-logo--fuss .em-wortmarke {
	gap: clamp(10px, 1.4vw, 18px);
}

.em-logo--fuss .em-wortmarke__em {
	font-size: clamp(34px, 7vw, 96px);
	padding: 0.12em 0.12em 0.06em 0.14em;
}

.em-logo--fuss .em-wortmarke__text {
	font-size: clamp(28px, 6vw, 84px);
	gap: 0.12em;
}

.em-logo--fuss .em-wortmarke__text small {
	font-size: 12px;
}

.em-logo--fuss .em-logo-bild img {
	height: clamp(60px, 8vw, 110px);
}

.em-menue {
	display: flex;
	align-items: center;
	gap: clamp(14px, 2vw, 28px);
}

.em-menue__desktop {
	display: flex;
	align-items: center;
	gap: clamp(18px, 2.2vw, 32px);
}

.em-menue__liste {
	display: flex;
	gap: clamp(16px, 2vw, 30px);
	list-style: none;
	margin: 0;
	padding: 0;
}

.em-menue__liste a {
	position: relative;
	font: 600 14px/1 var(--em-text);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--em-tinte);
	text-decoration: none;
	padding: 8px 0;
}

.em-menue__liste a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--em-signal);
	transform: scaleX(0);
	transform-origin: 100% 50%;
	transition: transform 0.35s var(--em-ease);
}

.em-menue__liste a:hover::after,
.em-menue__liste a[aria-current="page"]::after {
	transform: scaleX(1);
	transform-origin: 0 50%;
}

.em-menue .em-knopf {
	padding: 12px 16px 11px;
	font-size: 14px;
}

.em-menue__anruf-kurz {
	display: none;
}

.em-menue__anruf-kurz,
.em-menue__knopf {
	box-sizing: border-box;
	height: 42px;
}

.em-menue__mobil {
	display: none;
}

@media (max-width: 599px) {
	.em-kopf {
		gap: 12px;
	}

	.em-wortmarke--kopf .em-wortmarke__em {
		font-size: 20px;
		padding: 6px 6px 4px 7px;
	}

	.em-wortmarke--kopf .em-wortmarke__text {
		font-size: 18px;
	}

	.em-wortmarke--kopf .em-wortmarke__text small {
		display: none;
	}

	.em-menue {
		gap: 8px;
	}
}

/* Sehr schmal: Menü-Knopf nur mit Strichen (Beschriftung bleibt für Screenreader). */
@media (max-width: 400px) {
	.em-menue__knopf-auf,
	.em-menue__knopf-zu {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.em-menue__knopf {
		padding: 12px 12px 11px;
	}
}

.em-menue__knopf {
	list-style: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 1px solid rgba(15, 18, 22, 0.16);
	border-radius: 9px;
	padding: 11px 14px 10px;
	font: 600 13px/1 var(--em-text);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--em-tinte);
	cursor: pointer;
	user-select: none;
	position: relative;
	z-index: 2;
	background: linear-gradient(180deg, #fff 0%, #f2f3f1 100%);
	box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(15, 18, 22, 0.07), 0 8px 18px -12px rgba(15, 18, 22, 0.38);
}

.em-menue__knopf::-webkit-details-marker {
	display: none;
}

.em-menue__striche {
	display: inline-grid;
	gap: 4px;
	width: 16px;
}

.em-menue__striche::before,
.em-menue__striche::after {
	content: "";
	height: 2px;
	background: currentColor;
	transition: rotate 0.35s var(--em-ease), translate 0.35s var(--em-ease);
}

.em-menue__mobil[open] .em-menue__striche::before {
	translate: 0 3px;
	rotate: 45deg;
}

.em-menue__mobil[open] .em-menue__striche::after {
	translate: 0 -3px;
	rotate: -45deg;
}

.em-menue__knopf-zu,
.em-menue__mobil[open] .em-menue__knopf-auf {
	display: none;
}

.em-menue__mobil[open] .em-menue__knopf-zu {
	display: inline;
}

.em-menue__mobil:not([open]) .em-menue__flaeche {
	display: none;
}

.em-menue__flaeche {
	position: fixed;
	inset: var(--em-kopf-h) 0 0;
	background: var(--em-tinte);
	color: var(--em-weiss);
	padding: clamp(24px, 5vh, 48px) var(--em-rand) 32px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow-y: auto;
}

.admin-bar .em-menue__flaeche {
	top: calc(var(--em-kopf-h) + 46px);
}

.em-menue__gross {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: em-menue;
}

.em-menue__gross li {
	overflow: hidden;
	border-bottom: 1px solid var(--em-linie-hell);
	counter-increment: em-menue;
}

.em-menue__gross a {
	display: flex;
	align-items: baseline;
	gap: 16px;
	padding: 12px 0 6px;
	font: 800 clamp(44px, 12vw, 84px)/0.95 var(--em-display);
	text-transform: uppercase;
	color: var(--em-weiss);
	text-decoration: none;
}

.em-menue__gross a::before {
	content: "0" counter(em-menue);
	font: 500 12px/1 var(--em-mono);
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.55);
	translate: 0 -0.4em;
}

.em-menue__unten {
	display: grid;
	gap: 16px;
	padding-top: 28px;
	font: 500 13px/1.6 var(--em-mono);
	letter-spacing: 0.04em;
}

.em-menue__unten p {
	margin: 0;
}

.em-menue__unten .em-knopf {
	justify-self: start;
	border-color: var(--em-weiss);
	color: var(--em-weiss);
}

@media (prefers-reduced-motion: no-preference) {
	.em-menue__mobil[open] .em-menue__flaeche {
		animation: em-flaeche 0.5s var(--em-ease-maske) both;
	}

	.em-menue__mobil[open] .em-menue__gross a {
		animation: em-hoch 0.75s var(--em-ease) both;
		animation-delay: calc(0.12s + var(--i, 0) * 0.06s);
	}
}

@keyframes em-flaeche {
	from {
		clip-path: inset(0 0 100% 0);
	}
	to {
		clip-path: inset(0 0 0 0);
	}
}

@keyframes em-hoch {
	from {
		translate: 0 105%;
	}
	to {
		translate: 0 0;
	}
}

@media (max-width: 1099px) {
	.em-menue__liste {
		gap: 16px;
	}

	.em-menue__liste li:nth-child(2) {
		display: none;
	}
}

@media (max-width: 899px) {
	.em-menue__desktop {
		display: none;
	}

	.em-menue__mobil {
		display: block;
	}

	.em-menue__anruf-kurz {
		display: inline-flex;
		padding: 11px 13px 10px;
	}

	.em-menue__anruf-kurz span {
		display: none;
	}
}

.em-menue-offen,
.em-menue-offen body {
	overflow: hidden;
}

/* Fuß-Varianten */
.em-menue--fuss {
	display: block;
}

.em-menue__fusslinks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.em-menue__fusslinks a,
.em-fuss__unten a {
	color: var(--em-weiss);
	text-decoration: none;
	font: 600 15px/1.3 var(--em-text);
}

.em-menue__fusslinks a:hover,
.em-fuss__unten a:hover {
	color: color-mix(in srgb, var(--em-signal) 55%, white);
}

/* ==========================================================================
   6. Studiolicht im Hero (weicher Lichtkegel hinter der Plakette)
   ========================================================================== */

.em-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(42% 62% at 76% 46%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 72%);
}

@media (max-width: 899px) {
	.em-hero::before {
		background: radial-gradient(70% 34% at 30% 18%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 72%);
	}
}

/* ==========================================================================
   7. Hero
   ========================================================================== */

.em-hero {
	position: relative;
	padding: clamp(40px, 6vw, 96px) var(--em-rand) clamp(56px, 7vw, 112px);
	overflow: clip;
}

.em-hero > .em-hero__raster {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
	gap: clamp(32px, 4.4vw, 72px);
	align-items: center;
	max-width: var(--em-breit);
	margin: 0 auto !important;
}

.em-hero__raster > * {
	margin: 0 !important;
	min-width: 0;
}

.em-hero__text {
	display: grid;
	gap: 26px;
}

.em-hero__text > * {
	margin: 0 !important;
}

.em-hero__titel,
h1.em-hero__titel {
	font-size: clamp(44px, 8.4vw, 128px);
	line-height: 0.86;
	letter-spacing: -0.006em;
}

.em-infos__knoepfe {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.em-infos--hero {
	display: grid;
	gap: 26px;
}

.em-hero__seite {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 18px;
}

.em-hero__seite > * {
	margin: 0 !important;
}

.em-hero__seite .em-plakette-block {
	width: min(100%, 420px);
}

.em-fakten {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 2px solid var(--em-tinte);
	margin-top: 8px !important;
}

.em-fakten > div {
	padding: 14px 16px 0 0;
	border-right: 1px solid var(--em-linie);
	display: grid;
	gap: 6px;
}

.em-fakten > div + div {
	padding-left: 16px;
}

.em-fakten > div:last-child {
	border-right: 0;
}

.em-fakten dt {
	font: 500 11.5px/1.3 var(--em-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--em-grau);
}

.em-fakten dd {
	margin: 0;
	font: 600 16px/1.35 var(--em-text);
}

@media (max-width: 899px) {
	.em-hero > .em-hero__raster {
		grid-template-columns: 1fr;
	}

	.em-hero__seite {
		order: -1;
		justify-items: start;
	}

	.em-hero__seite .em-plakette-block {
		width: min(56vw, 250px);
	}

	.em-fakten {
		grid-template-columns: 1fr;
	}

	.em-fakten > div,
	.em-fakten > div + div {
		padding: 12px 0;
		border-right: 0;
		border-bottom: 1px solid var(--em-linie);
	}
}

/* Zeilenweise einblenden (Maske je Zeile) */
.em-zeile {
	display: block;
}

@media (prefers-reduced-motion: no-preference) {
	.em-js .em-zeilen:not(.is-geteilt) {
		opacity: 0;
	}

	/* Maske je Zeile – oben etwas Luft, damit Umlaute nicht abgeschnitten werden. */
	.em-js .em-zeilen .em-zeile {
		overflow: clip;
		padding-block: 0.14em 0.04em;
		margin-block: -0.14em -0.04em;
	}

	.em-js .em-zeilen .em-zeile > span {
		display: block;
		translate: 0 135%;
		transition: translate 1.05s var(--em-ease);
		transition-delay: calc(0.12s + var(--i, 0) * 0.09s);
	}

	.em-js .em-zeilen.is-sichtbar .em-zeile > span {
		translate: 0 0;
	}
}

/* ==========================================================================
   8. Plakette als 3D-Objekt
   Druckbild (SVG) vorn, Kante aus gestapelten Schichten, Licht und Glanz
   als Überlagerungen, weicher Schatten. Zeiger und Scrollen neigen sie.
   ========================================================================== */

.em-plakette-block {
	position: relative;
	margin: 0;
}

.em-plakette-rahmen {
	position: relative;
}

.em-p3d {
	--em-tx: 0;
	--em-ty: 0;
	--em-rx: 15deg;
	--em-ry: -21deg;
	--em-rz: 0deg;
	--em-schicht: clamp(0.8px, 0.32vw, 1.55px);
	--em-p-kante: color-mix(in srgb, var(--em-p-farbe) 76%, #fff);
	--em-p-kante-tief: color-mix(in srgb, var(--em-p-farbe) 46%, #0b0d10);
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1;
	perspective: 1300px;
	perspective-origin: 50% 32%;
}

.em-p3d__koerper {
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
	transform: rotateX(calc(var(--em-rx) - var(--em-ty) * 10deg + var(--em-sy, 0) * 14deg)) rotateY(calc(var(--em-ry) + var(--em-tx) * 14deg)) rotateZ(var(--em-rz));
}

.em-p3d__kante,
.em-p3d__kante i,
.em-p3d__front,
.em-p3d__textur,
.em-p3d__licht,
.em-p3d__fase,
.em-p3d__glanz {
	position: absolute;
	inset: 0;
	border-radius: 50%;
}

.em-p3d__kante {
	transform-style: preserve-3d;
}

/* Gestapelte Scheiben ergeben die Kante: oben Druckfarbe, darunter heller Folienkern. */
.em-p3d__kante i {
	background: linear-gradient(162deg, #fbfbf8 8%, #d9dad6 58%, #a9aba7 100%);
	transform: translateZ(calc(var(--k) * var(--em-schicht) * -1));
}

.em-p3d__kante i:first-child {
	background: linear-gradient(162deg, var(--em-p-kante) 8%, var(--em-p-kante-tief) 100%);
	transition: background 0.7s ease;
}

.em-p3d__kante i:last-child {
	background: #8d908c;
	box-shadow: 0 0 0 0.5px rgba(15, 18, 22, 0.35);
}

.em-p3d__front {
	overflow: hidden;
	transform: translateZ(0.5px);
	background: var(--em-p-farbe);
	transition: background-color 0.7s ease;
}

.em-p3d__front > svg {
	display: block;
	width: 100%;
	height: 100%;
}

.em-p3d__textur,
.em-p3d__licht,
.em-p3d__fase,
.em-p3d__glanz {
	pointer-events: none;
}

/* Feine Körnung wie bedruckte Folie */
.em-p3d__textur {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23k)'/%3E%3C/svg%3E");
	background-size: 160px;
	mix-blend-mode: overlay;
	opacity: 0.2;
}

/* Licht von links oben, Randabdunklung */
.em-p3d__licht {
	background:
		radial-gradient(80% 80% at calc(28% + var(--em-tx) * 10%) calc(20% + var(--em-ty) * 10%), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 62%),
		radial-gradient(closest-side, rgba(0, 0, 0, 0) 72%, rgba(0, 0, 0, 0.5) 100%);
	mix-blend-mode: soft-light;
}

/* Gebrochene Stanzkante */
.em-p3d__fase {
	box-shadow:
		inset 0 2px 1.5px -0.5px rgba(255, 255, 255, 0.8),
		inset 0 -3px 4px -1px rgba(0, 0, 0, 0.34),
		inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}

/* Spiegelung der Softbox oben links und schmaler Glanzstreifen – beide wandern mit dem Zeiger */
.em-p3d__glanz {
	background:
		radial-gradient(46% 30% at calc(30% - var(--em-tx) * 9%) calc(15% - var(--em-ty) * 7%), rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 100%),
		linear-gradient(122deg, rgba(255, 255, 255, 0) 41%, rgba(255, 255, 255, 0.2) 46%, rgba(255, 255, 255, 0) 50%);
	background-size: 100% 100%, 300% 300%;
	background-position: 0 0, calc(30% - var(--em-tx) * 40%) calc(30% - var(--em-ty) * 40%);
	background-repeat: no-repeat;
	mix-blend-mode: screen;
}

.em-p3d__schatten {
	position: absolute;
	inset: 8% 2% -4% 12%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(15, 18, 22, 0.36), rgba(15, 18, 22, 0.14) 58%, rgba(15, 18, 22, 0) 100%);
	filter: blur(12px);
	transform: translate(calc(6% - var(--em-tx) * 7%), calc(9% - var(--em-ty) * 6%)) scale(0.92, 0.86);
}

/* Druckbild */
.em-plakette {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.em-plakette__scheibe {
	fill: var(--em-p-farbe, #2271b3);
	transition: fill 0.7s ease;
}

.em-plakette__sicherheit {
	fill: none;
	stroke: rgba(15, 18, 22, 0.17);
	stroke-width: 0.45;
}

.em-plakette__sicherheit .em-plakette__rosette {
	stroke: rgba(255, 255, 255, 0.16);
	stroke-width: 0.24;
}

.em-plakette__innen {
	fill: none;
	stroke: #121418;
	stroke-width: 1.3;
}

.em-plakette text {
	font-family: var(--em-display);
	font-weight: 700;
	font-size: 21px;
	fill: #121418;
}

.em-plakette .em-plakette__jahr {
	font-weight: 800;
	font-size: 62px;
	letter-spacing: 1px;
}

.em-plakette .em-plakette__mikro {
	font-family: var(--em-mono);
	font-weight: 500;
	font-size: 3.1px;
	letter-spacing: 0.5px;
	fill: rgba(15, 18, 22, 0.5);
}

.em-plakette rect {
	fill: #121418;
}

.em-plakette__schnitte path {
	fill: none;
	stroke: rgba(255, 255, 255, 0.6);
	stroke-width: 0.7;
}

.em-plakette__dreh {
	transform: rotate(var(--em-p-ziel, 0deg));
	transition: transform 1.25s var(--em-ease-dreh);
}

.em-plakette__scroll {
	transform: rotate(var(--em-p-scroll, 0deg));
}

.em-plakette__mitte {
	transition: opacity 0.25s ease;
}

.em-plakette.is-wechsel .em-plakette__mitte {
	opacity: 0;
}

/* Kleinere Neigung, wo die Plakette gelesen werden soll */
.em-p3d--check {
	--em-rx: 10deg;
	--em-ry: -15deg;
}

@media (prefers-reduced-motion: no-preference) {
	/* Einschweben aus der Tiefe, dabei dreht sich der Monatsring auf den Monat. */
	.em-js .em-plakette--drehen:not(.is-gedreht) {
		opacity: 0;
	}

	.em-js .em-plakette--drehen:not(.is-gedreht) .em-p3d__koerper {
		transform: rotateX(64deg) rotateY(-52deg) rotateZ(-26deg) translateZ(-180px);
	}

	.em-js .em-plakette--drehen.is-gedreht {
		transition: opacity 0.9s ease;
	}

	.em-js .em-plakette--drehen.is-gedreht:not(.is-bereit) .em-p3d__koerper {
		transition: transform 2.3s cubic-bezier(0.16, 0.84, 0.24, 1);
	}

	.em-js .em-plakette--drehen:not(.is-gedreht) .em-plakette__dreh {
		transform: rotate(calc(var(--em-p-ziel, 0deg) - 720deg));
	}

	.em-js .em-plakette--drehen.is-gedreht .em-plakette__dreh {
		transition: transform 2.8s var(--em-ease-dreh);
	}

	.em-js .em-plakette--drehen:not(.is-gedreht) .em-plakette__mitte {
		opacity: 0;
	}

	.em-js .em-plakette--drehen.is-gedreht .em-plakette__mitte {
		transition: opacity 0.6s ease 1.6s;
	}

	/* Danach schwebt sie ruhig. */
	.em-js .em-p3d.is-bereit .em-p3d__koerper {
		animation: em-schweben 7s ease-in-out infinite;
	}

	.em-js .em-p3d.is-bereit .em-p3d__schatten {
		animation: em-schatten 7s ease-in-out infinite;
	}
}

@keyframes em-schweben {
	50% {
		translate: 0 -2.4%;
	}
}

@keyframes em-schatten {
	50% {
		opacity: 0.72;
		scale: 0.95;
	}
}

@media (prefers-reduced-motion: reduce) {
	.em-plakette__dreh,
	.em-plakette__scheibe,
	.em-p3d__front {
		transition: none;
	}
}

/* Prüfanhänger mit Öse */
.em-plakette__stempel {
	position: absolute;
	right: -3%;
	bottom: 4%;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 11px 18px 11px 12px;
	border-radius: 9px;
	background: linear-gradient(180deg, #fff 0%, #f4f5f3 100%);
	box-shadow:
		inset 0 1px 0 #fff,
		0 0 0 1px rgba(15, 18, 22, 0.07),
		0 2px 3px rgba(15, 18, 22, 0.07),
		0 12px 24px -8px rgba(15, 18, 22, 0.26),
		0 28px 44px -22px rgba(15, 18, 22, 0.32);
	font: 500 11px/1.35 var(--em-mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--em-grau);
	rotate: -5deg;
	z-index: 2;
}

.em-plakette__zeilen b {
	display: block;
	font: 700 13px/1.3 var(--em-text);
	letter-spacing: 0.07em;
	color: var(--em-tinte);
}

.em-plakette__loch {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--em-papier);
	box-shadow:
		inset 0 1.5px 2px rgba(15, 18, 22, 0.45),
		0 0 0 3px #e3e5e2,
		0 0 0 3.5px rgba(15, 18, 22, 0.12),
		0 1px 0 4px rgba(255, 255, 255, 0.9);
}

.em-plakette__marke {
	flex: none;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: #fff;
	background:
		radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 52%),
		linear-gradient(170deg, color-mix(in srgb, var(--em-signal) 78%, #fff), color-mix(in srgb, var(--em-signal) 82%, #000));
	box-shadow:
		inset 0 1px 1px rgba(255, 255, 255, 0.6),
		inset 0 -2px 3px rgba(0, 0, 0, 0.25),
		0 3px 6px -1px color-mix(in srgb, var(--em-signal) 45%, transparent);
}

.em-plakette__marke svg {
	width: 15px;
	height: 15px;
	filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.25));
}

@media (max-width: 899px) {
	.em-plakette__stempel {
		right: auto;
		left: 58%;
		white-space: nowrap;
	}
}

@media (max-width: 479px) {
	.em-plakette__stempel {
		left: 46%;
		gap: 9px;
		padding: 8px 12px 8px 9px;
		font-size: 9.5px;
	}

	.em-plakette__zeilen b {
		font-size: 11.5px;
	}

	.em-plakette__marke {
		width: 24px;
		height: 24px;
	}

	.em-plakette__marke svg {
		width: 12px;
		height: 12px;
	}
}

/* Der Anhänger landet auf der Plakette, sobald sie ausgedreht hat. */
@media (prefers-reduced-motion: no-preference) {
	.em-js .em-plakette-rahmen:not(.is-gedreht) .em-plakette__stempel {
		opacity: 0;
	}

	.em-js .em-plakette-rahmen.is-gedreht .em-plakette__stempel {
		animation: em-stempel 0.7s cubic-bezier(0.3, 0, 0.2, 1) 2.3s both;
	}

	.em-js .em-plakette-rahmen.is-gedreht .em-p3d {
		animation: em-ruck 0.4s ease-out 2.7s;
	}
}

@keyframes em-stempel {
	0% {
		opacity: 0;
		scale: 1.45;
		rotate: -15deg;
		translate: 18px -26px;
		filter: blur(2px);
	}
	60% {
		opacity: 1;
		scale: 0.97;
		rotate: -4deg;
		translate: 0 0;
		filter: blur(0);
	}
	100% {
		opacity: 1;
		scale: 1;
		rotate: -5deg;
		translate: 0 0;
	}
}

@keyframes em-ruck {
	40% {
		scale: 0.985;
	}
}

.em-plakette__unterzeile {
	margin: 18px 0 0;
	text-align: center;
	font: 500 12px/1.5 var(--em-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--em-grau);
}

/* ==========================================================================
   9. Laufband im Kennzeichen-Stil
   ========================================================================== */

.em-laufband {
	position: relative;
	margin-block: 0;
}

.em-laufband__band {
	position: relative;
	overflow: hidden;
	padding: clamp(14px, 1.6vw, 20px) 0 clamp(10px, 1.2vw, 14px);
	/* Reflexfolie: heller Verlauf, feines Prismenraster, Lichtkante unter dem Prägerand */
	background:
		radial-gradient(rgba(15, 18, 22, 0.045) 0.6px, transparent 0.9px) 0 0 / 4px 4px,
		linear-gradient(180deg, #fefefc 0%, #f3f4f1 52%, #e6e7e3 100%);
	box-shadow:
		inset 0 3px 0 #16191d,
		inset 0 4px 0 rgba(255, 255, 255, 0.95),
		inset 0 7px 6px -4px rgba(15, 18, 22, 0.12),
		inset 0 -3px 0 #16191d,
		inset 0 -4px 0 rgba(15, 18, 22, 0.1),
		0 22px 34px -22px rgba(15, 18, 22, 0.45);
}

/* Blaues Feld wie am Kennzeichen: Sternenkranz und „D“ */
.em-laufband__eu {
	position: absolute;
	inset: 3px auto 3px 0;
	z-index: 2;
	width: clamp(36px, 3.6vw, 58px);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: clamp(7px, 0.9vw, 13px);
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%23ffcc00' d='M20.00 6.90L20.49 8.32L22.00 8.35L20.80 9.26L21.23 10.70L20.00 9.84L18.77 10.70L19.20 9.26L18.00 8.35L19.51 8.32ZM25.50 8.37L25.99 9.79L27.50 9.82L26.30 10.73L26.73 12.17L25.50 11.31L24.27 12.17L24.70 10.73L23.50 9.82L25.01 9.79ZM29.53 12.40L30.02 13.82L31.52 13.85L30.33 14.76L30.76 16.20L29.53 15.34L28.29 16.20L28.73 14.76L27.53 13.85L29.03 13.82ZM31.00 17.90L31.49 19.32L33.00 19.35L31.80 20.26L32.23 21.70L31.00 20.84L29.77 21.70L30.20 20.26L29.00 19.35L30.51 19.32ZM29.53 23.40L30.02 24.82L31.52 24.85L30.33 25.76L30.76 27.20L29.53 26.34L28.29 27.20L28.73 25.76L27.53 24.85L29.03 24.82ZM25.50 27.43L25.99 28.85L27.50 28.88L26.30 29.79L26.73 31.23L25.50 30.37L24.27 31.23L24.70 29.79L23.50 28.88L25.01 28.85ZM20.00 28.90L20.49 30.32L22.00 30.35L20.80 31.26L21.23 32.70L20.00 31.84L18.77 32.70L19.20 31.26L18.00 30.35L19.51 30.32ZM14.50 27.43L14.99 28.85L16.50 28.88L15.30 29.79L15.73 31.23L14.50 30.37L13.27 31.23L13.70 29.79L12.50 28.88L14.01 28.85ZM10.47 23.40L10.97 24.82L12.47 24.85L11.27 25.76L11.71 27.20L10.47 26.34L9.24 27.20L9.67 25.76L8.48 24.85L9.98 24.82ZM9.00 17.90L9.49 19.32L11.00 19.35L9.80 20.26L10.23 21.70L9.00 20.84L7.77 21.70L8.20 20.26L7.00 19.35L8.51 19.32ZM10.47 12.40L10.97 13.82L12.47 13.85L11.27 14.76L11.71 16.20L10.47 15.34L9.24 16.20L9.67 14.76L8.48 13.85L9.98 13.82ZM14.50 8.37L14.99 9.79L16.50 9.82L15.30 10.73L15.73 12.17L14.50 11.31L13.27 12.17L13.70 10.73L12.50 9.82L14.01 9.79Z'/%3E%3C/svg%3E") 50% 22% / 78% auto no-repeat,
		linear-gradient(180deg, #1a48b8 0%, #003399 45%, #002a80 100%);
	box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2), 6px 0 12px -6px rgba(15, 18, 22, 0.35);
	color: #fff;
	font: 600 clamp(15px, 1.5vw, 22px)/1 var(--em-text);
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.em-laufband__spur {
	display: flex;
	width: max-content;
	will-change: transform;
}

/* Geprägte Schrift: oben heller, unten dunkler, mit Schlagschatten auf der Folie */
.em-laufband__gruppe {
	display: flex;
	align-items: center;
	flex: none;
	gap: clamp(20px, 2.6vw, 40px);
	padding-right: clamp(20px, 2.6vw, 40px);
	font: 800 clamp(38px, 6vw, 92px)/1 var(--em-display);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	white-space: nowrap;
	color: var(--em-tinte);
}

.em-laufband__gruppe > span:not(.em-laufband__punkt) {
	color: transparent;
	background: linear-gradient(180deg, #4a5059 0%, #1b1f24 26%, #0c0e11 62%, #000 100%);
	-webkit-background-clip: text;
	background-clip: text;
	filter: drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.95)) drop-shadow(0 2px 1.5px rgba(15, 18, 22, 0.32)) drop-shadow(0 5px 6px rgba(15, 18, 22, 0.12));
	padding-block: 0.06em;
}

/* Punkte als kleine Plaketten */
.em-laufband__punkt {
	flex: none;
	width: 0.36em;
	height: 0.36em;
	border-radius: 50%;
	background:
		radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 46%),
		radial-gradient(closest-side, rgba(0, 0, 0, 0) 64%, rgba(0, 0, 0, 0.28) 100%),
		var(--em-p, var(--em-signal));
	box-shadow:
		inset 0 0 0 1px rgba(0, 0, 0, 0.16),
		0 1px 0 rgba(255, 255, 255, 0.9),
		0 3px 5px -1px rgba(15, 18, 22, 0.35);
}

@media (prefers-reduced-motion: no-preference) {
	.em-laufband__spur {
		animation: em-laufen 42s linear infinite;
	}

	.em-laufband.is-js .em-laufband__spur {
		animation: none;
	}
}

@keyframes em-laufen {
	to {
		transform: translate3d(-50%, 0, 0);
	}
}

/* Kölner Skyline – 3D-Modell in zwei Ebenen, wächst beim Einblenden aus dem Band. */
.em-skyline {
	display: block;
	margin: 0;
	line-height: 0;
	pointer-events: none;
	overflow: hidden;
	--em-sx: 0;
}

/* Die Bühne hat das Seitenverhältnis der Bilder; auf schmalen Schirmen bleibt sie 96 px hoch
   und wird mittig beschnitten – so sitzt das Warnlicht immer an der richtigen Stelle. */
.em-skyline__buehne {
	position: relative;
	width: max(100%, 565px);
	aspect-ratio: 1600 / 272;
	margin-left: 50%;
	translate: -50% 0;
}

.em-skyline__ebene {
	position: absolute;
	inset: 0;
}

.em-skyline__ebene--hinten {
	translate: calc(var(--em-sx) * -6px) 0;
}

.em-skyline__ebene--vorne {
	translate: calc(var(--em-sx) * -16px) 0;
}

.em-skyline__bild {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
}

.em-skyline__licht {
	position: absolute;
	width: 0.9%;
	aspect-ratio: 1;
	border-radius: 50%;
	translate: -50% -50%;
	background: radial-gradient(circle, #ff6a55 0 18%, rgba(255, 52, 32, 0.55) 34%, rgba(255, 52, 32, 0) 70%);
	mix-blend-mode: screen;
}

.em-skyline--dunkel .em-skyline__bild {
	filter: brightness(0.9) contrast(1.05);
}

/* Auf dem Band: Hero etwas enger, damit die Stadt direkt unter den Kurzinfos steht. */
.em-hero:has(+ .em-laufband--skyline) {
	padding-bottom: clamp(16px, 2.4vw, 40px);
}

.em-laufband__skyline {
	margin-bottom: -1px;
	position: relative;
	z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
	.em-js .em-skyline .em-skyline__bild {
		translate: 0 104%;
		transition: translate 1.7s cubic-bezier(0.2, 0.8, 0.2, 1);
	}

	.em-js .em-skyline .em-skyline__ebene--vorne .em-skyline__bild {
		transition-delay: 0.28s;
	}

	.em-js .em-skyline.is-sichtbar .em-skyline__bild {
		translate: 0 0;
	}

	.em-js .em-skyline .em-skyline__licht {
		opacity: 0;
	}

	.em-js .em-skyline.is-sichtbar .em-skyline__licht {
		animation: em-blinken 2.4s steps(1, end) 2s infinite;
	}
}

@keyframes em-blinken {
	0% {
		opacity: 1;
	}
	55% {
		opacity: 0.12;
	}
}

/* ==========================================================================
   10. Abschnittsköpfe
   ========================================================================== */

.em-kopfzeile {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px;
	align-items: end;
	padding-bottom: clamp(24px, 3vw, 40px);
	margin-bottom: 0 !important;
}

.em-kopfzeile > * {
	margin: 0 !important;
}

.em-kopfzeile__titel {
	display: grid;
	gap: 18px;
}

.em-kopfzeile__titel > * {
	margin: 0 !important;
}

.em-kopfzeile .wp-block-heading {
	font-size: clamp(44px, 7vw, 108px);
	line-height: 0.88;
}

.em-kopfzeile p:not(.em-label) {
	max-width: 46ch;
	justify-self: end;
	color: #262b31;
}

@media (max-width: 899px) {
	.em-kopfzeile {
		grid-template-columns: 1fr;
	}

	.em-kopfzeile p:not(.em-label) {
		justify-self: start;
	}
}

.em-abschnitt-raum {
	padding-block: clamp(72px, 10vw, 160px) 0;
}

/* ==========================================================================
   11. Leistungen als Prüfprotokoll
   ========================================================================== */

.em-protokoll {
	border-top: 2px solid var(--em-tinte);
}

.em-leistungen-abschnitt > .wp-block-buttons {
	margin-top: 32px !important;
}

.em-protokoll__zeile {
	position: relative;
	display: grid;
	grid-template-columns: 64px minmax(0, 1.25fr) minmax(0, 1fr) 190px 46px;
	gap: clamp(16px, 2.4vw, 32px);
	align-items: center;
	padding: clamp(22px, 2.6vw, 34px) 16px;
	margin-inline: -16px;
	border-bottom: 1px solid var(--em-linie);
	border-radius: 0;
	transition: background-color 0.35s ease, box-shadow 0.35s ease, border-radius 0.35s ease, translate 0.35s var(--em-ease);
}

.em-protokoll__zeile:hover {
	background: linear-gradient(180deg, #fff 0%, #fbfbfa 100%);
	border-radius: 14px;
	border-bottom-color: transparent;
	box-shadow: 0 1px 0 rgba(15, 18, 22, 0.04), 0 22px 44px -26px rgba(15, 18, 22, 0.4);
	z-index: 1;
}

.em-protokoll__nr {
	font: 500 13px/1 var(--em-mono);
	letter-spacing: 0.06em;
	color: var(--em-grau);
	padding-left: 4px;
}

.em-protokoll__titel {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	margin: 0;
	font: 800 clamp(30px, 3.2vw, 50px)/0.92 var(--em-display);
	text-transform: uppercase;
}

@media (min-width: 900px) and (max-width: 1199px) {
	.em-protokoll__zeile {
		grid-template-columns: 52px minmax(0, 1.35fr) minmax(0, 1fr) 150px 40px;
	}
}

.em-protokoll__titel a {
	color: inherit;
	text-decoration: none;
}

.em-protokoll__titel a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.em-kuerzel {
	display: inline-block;
	border-radius: 5px;
	background: linear-gradient(180deg, #fff 0%, #eceeeb 100%);
	box-shadow: inset 0 0 0 1px rgba(15, 18, 22, 0.2), inset 0 1px 0 #fff, 0 1px 2px rgba(15, 18, 22, 0.12);
	padding: 5px 7px 4px;
	font: 500 12px/1 var(--em-mono);
	letter-spacing: 0.06em;
	translate: 0 -0.5em;
}

.em-protokoll__text {
	margin: 0;
	color: #262b31;
}

.em-protokoll__meta {
	font: 500 12px/1.45 var(--em-mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--em-grau);
}

/* Prüfhaken: gewölbter Knopf in Signalfarbe */
.em-haken {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	color: #fff;
	background:
		radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 50%),
		radial-gradient(closest-side, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.22) 100%),
		linear-gradient(170deg, color-mix(in srgb, var(--em-signal) 80%, #fff) 0%, var(--em-signal) 48%, color-mix(in srgb, var(--em-signal) 78%, #000) 100%);
	box-shadow:
		inset 0 1px 1px rgba(255, 255, 255, 0.55),
		inset 0 -2px 3px rgba(0, 0, 0, 0.22),
		0 2px 3px rgba(15, 18, 22, 0.14),
		0 8px 18px -6px color-mix(in srgb, var(--em-signal) 55%, transparent);
}

.em-haken svg {
	width: 56%;
	height: 56%;
	overflow: visible;
	filter: drop-shadow(0 1px 0.5px rgba(0, 0, 0, 0.3));
}

.em-haken path {
	fill: none;
	stroke: currentColor;
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (prefers-reduced-motion: no-preference) {
	.em-js .em-zeichnen .em-haken {
		scale: 0.4;
		opacity: 0;
		transition: scale 0.7s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.4s ease;
		transition-delay: calc(0.2s + var(--i, 0) * 0.14s);
	}

	.em-js .em-zeichnen .em-haken path {
		stroke-dasharray: 18;
		stroke-dashoffset: 18;
		transition: stroke-dashoffset 0.45s var(--em-ease);
		transition-delay: calc(0.55s + var(--i, 0) * 0.14s);
	}

	.em-js .em-zeichnen.is-sichtbar .em-haken {
		scale: 1;
		opacity: 1;
	}

	.em-js .em-zeichnen.is-sichtbar .em-haken path {
		stroke-dashoffset: 0;
	}

	.em-js .em-protokoll__zeile {
		opacity: 0;
		translate: 0 18px;
		transition: opacity 0.8s var(--em-ease), translate 0.8s var(--em-ease), background-color 0.35s ease, box-shadow 0.35s ease, border-radius 0.35s ease;
		transition-delay: calc(var(--i, 0) * 0.1s), calc(var(--i, 0) * 0.1s), 0s, 0s, 0s;
	}

	.em-js .is-sichtbar .em-protokoll__zeile {
		opacity: 1;
		translate: 0 0;
	}
}

@media (max-width: 899px) {
	.em-protokoll__zeile {
		grid-template-columns: 44px minmax(0, 1fr);
		grid-template-areas: "nr titel" "haken text" ". meta";
		row-gap: 10px;
		align-items: start;
		padding-inline: 12px;
		margin-inline: -12px;
	}

	.em-protokoll__titel {
		flex-wrap: wrap;
		row-gap: 8px;
		font-size: clamp(26px, 7.4vw, 44px);
	}

	.em-protokoll__nr {
		grid-area: nr;
		padding-top: 8px;
	}

	.em-protokoll__titel {
		grid-area: titel;
	}

	.em-protokoll__text {
		grid-area: text;
	}

	.em-protokoll__meta {
		grid-area: meta;
	}

	.em-protokoll__zeile .em-haken {
		grid-area: haken;
		width: 34px;
		height: 34px;
	}
}

/* Detailansicht (Seite Leistungen) */
.em-leistung {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: clamp(32px, 6vw, 96px);
	padding-block: clamp(48px, 7vw, 104px);
	border-top: 2px solid var(--em-tinte);
}

.em-leistung__seite {
	position: sticky;
	top: calc(var(--em-kopf-h) + 32px);
	align-self: start;
	display: grid;
	gap: 14px;
}

/* Kürzel als massive, gefräste Buchstaben mit Tiefe */
.em-leistung__kuerzel {
	--em-k1: color-mix(in srgb, var(--em-signal) 72%, #000);
	--em-k2: color-mix(in srgb, var(--em-signal) 58%, #000);
	font: 800 clamp(96px, 14vw, 200px)/0.8 var(--em-display);
	color: var(--em-signal);
	letter-spacing: 0.01em;
	padding-bottom: 0.08em;
	text-shadow:
		0 -1px 0 color-mix(in srgb, var(--em-signal) 60%, #fff),
		1px 1px 0 var(--em-k1),
		2px 2px 0 var(--em-k1),
		3px 3px 0 var(--em-k1),
		4px 4px 0 var(--em-k2),
		5px 5px 0 var(--em-k2),
		6px 6px 0 var(--em-k2),
		7px 7px 0 var(--em-k2),
		10px 14px 18px rgba(15, 18, 22, 0.28),
		18px 28px 40px rgba(15, 18, 22, 0.16);
}

.em-leistung__inhalt > * + * {
	margin-top: 22px;
}

.em-leistung__inhalt h2 {
	font-size: clamp(40px, 5.4vw, 80px);
}

.em-checkliste {
	list-style: none;
	margin: 30px 0 0;
	padding: 0;
	border-top: 1px solid var(--em-linie);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 32px;
}

.em-checkliste li {
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 12px;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--em-linie);
	font: 500 17px/1.35 var(--em-text);
}

.em-checkliste .em-haken {
	width: 26px;
	height: 26px;
}

@media (max-width: 899px) {
	.em-leistung {
		grid-template-columns: 1fr;
	}

	.em-leistung__seite {
		position: static;
	}

	.em-checkliste {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   12. HU-Check
   ========================================================================== */

.em-check {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
	background:
		radial-gradient(60% 80% at 22% 50%, #fff 0%, rgba(255, 255, 255, 0) 70%),
		linear-gradient(180deg, #fdfdfc 0%, #f7f7f5 100%);
	border: 1px solid rgba(15, 18, 22, 0.08);
	border-radius: clamp(14px, 1.6vw, 22px);
	box-shadow:
		inset 0 1px 0 #fff,
		0 1px 2px rgba(15, 18, 22, 0.04),
		0 30px 70px -40px rgba(15, 18, 22, 0.38);
	padding: clamp(24px, 4.4vw, 72px);
	position: relative;
	overflow: clip;
}

/* Prüflampe: weicher Lichtkegel unter dem Mauszeiger. */
.em-check::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(420px circle at var(--em-mx, 50%) var(--em-my, 50%), color-mix(in srgb, var(--em-signal) 9%, transparent), transparent 70%);
	opacity: 0;
	transition: opacity 0.4s ease;
}

.em-check.is-lampe::before {
	opacity: 1;
}

.em-check > * {
	position: relative;
}

.em-check__plakette {
	width: min(100%, 400px);
	justify-self: center;
	margin: 0;
}

.em-check__intro {
	color: #262b31;
	max-width: 54ch;
}

.em-check__inhalt {
	display: grid;
	gap: 22px;
}

.em-check__inhalt > * {
	margin: 0;
}

.em-check__titel {
	font-size: clamp(40px, 5vw, 76px) !important;
}

.em-check__felder {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.em-feld {
	display: grid;
	gap: 8px;
}

.em-feld > span,
.em-check__farben legend {
	font: 500 11.5px/1.3 var(--em-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--em-grau);
}

.em-feld select,
.em-formular :where(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
	box-sizing: border-box;
	width: 100%;
	appearance: none;
	border: 1px solid rgba(15, 18, 22, 0.14);
	border-radius: 10px;
	background-color: #f3f4f2;
	background-image: linear-gradient(180deg, rgba(15, 18, 22, 0.035) 0%, rgba(255, 255, 255, 0) 40%);
	box-shadow: inset 0 1px 2px rgba(15, 18, 22, 0.1), 0 1px 0 #fff;
	padding: 13px 14px 12px;
	font: 600 19px/1.3 var(--em-text);
	color: var(--em-tinte);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.em-feld select:hover,
.em-formular :where(input, select, textarea):hover {
	border-color: rgba(15, 18, 22, 0.28);
}

.em-feld select {
	background-image: var(--em-pfeil-runter), linear-gradient(180deg, rgba(15, 18, 22, 0.035) 0%, rgba(255, 255, 255, 0) 40%);
	background-repeat: no-repeat;
	background-position: right 14px center, 0 0;
	background-size: 15px, auto;
	padding-right: 40px;
	cursor: pointer;
}

.em-check__form {
	display: grid;
	gap: 20px;
}

/* Farbwahl braucht JavaScript – ohne JS bleiben die Auswahlfelder und „Fälligkeit prüfen“. */
.em-check__farben {
	border: 0;
	margin: 0;
	padding: 0;
	display: none;
	gap: 10px;
	min-width: 0;
}

.em-js .em-check__farben {
	display: grid;
}

.em-check__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.em-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid rgba(15, 18, 22, 0.12);
	border-radius: 999px;
	background: linear-gradient(180deg, #fff 0%, #f2f3f1 100%);
	box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(15, 18, 22, 0.07), 0 5px 12px -8px rgba(15, 18, 22, 0.35);
	padding: 7px 14px 6px 7px;
	font: 500 12px/1 var(--em-mono);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--em-tinte);
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, translate 0.2s var(--em-ease), background 0.2s ease;
}

.em-chip i {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 48%),
		radial-gradient(closest-side, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 0.25) 100%),
		var(--c);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14), 0 1px 2px rgba(15, 18, 22, 0.3);
}

.em-chip small {
	font-size: 10.5px;
	color: var(--em-grau);
}

.em-chip:hover {
	translate: 0 -1px;
	border-color: rgba(15, 18, 22, 0.26);
	box-shadow: inset 0 1px 0 #fff, 0 2px 3px rgba(15, 18, 22, 0.08), 0 10px 18px -10px rgba(15, 18, 22, 0.4);
}

.em-chip[aria-pressed="true"] {
	translate: 0 1px;
	border-color: rgba(15, 18, 22, 0.3);
	background: linear-gradient(180deg, #e9ebe8 0%, #f3f4f2 100%);
	box-shadow: inset 0 2px 4px rgba(15, 18, 22, 0.16), 0 1px 0 #fff;
}

.em-check__ergebnis {
	border-top: 1px solid rgba(15, 18, 22, 0.14);
	padding-top: 18px;
	display: grid;
	gap: 8px;
}

.em-check__status {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font: 800 clamp(28px, 3vw, 40px)/1 var(--em-display);
	text-transform: uppercase;
}

.em-check__status::before {
	content: "";
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 45%),
		var(--em-stufe, var(--em-signal));
	box-shadow:
		inset 0 -1px 2px rgba(0, 0, 0, 0.3),
		0 0 0 3px color-mix(in srgb, var(--em-stufe, var(--em-signal)) 16%, transparent),
		0 0 14px 2px color-mix(in srgb, var(--em-stufe, var(--em-signal)) 45%, transparent);
	flex: none;
	transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.em-check__ergebnis[data-stufe="leer"],
.em-check__ergebnis[data-stufe="weit"] {
	--em-stufe: #b9bfc6;
}

.em-check__ergebnis[data-stufe="ok"] {
	--em-stufe: var(--em-ok);
}

.em-check__ergebnis[data-stufe="bald"] {
	--em-stufe: var(--em-bald);
}

.em-check__ergebnis[data-stufe="jetzt"] {
	--em-stufe: var(--em-signal);
}

.em-check__ergebnis[data-stufe="ueber"] {
	--em-stufe: var(--em-warn);
}

.em-check__ergebnis[data-stufe="kritisch"] {
	--em-stufe: var(--em-kritisch);
}

.em-check__text {
	margin: 0;
	color: #262b31;
	max-width: 52ch;
}

.em-check__fuss {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
}

.em-check__klein {
	font: 400 12px/1.5 var(--em-mono);
	color: var(--em-grau);
	margin: 0;
}

.em-check__pruefen {
	justify-self: start;
}

.em-js .em-check__pruefen {
	display: none;
}

@media (prefers-reduced-motion: no-preference) {
	.em-check__ergebnis.is-neu > * {
		animation: em-rein 0.5s var(--em-ease) both;
	}

	.em-check__ergebnis.is-neu > *:nth-child(2) {
		animation-delay: 0.06s;
	}
}

@keyframes em-rein {
	from {
		opacity: 0;
		translate: 0 8px;
	}
}

@media (max-width: 479px) {
	.em-check__felder {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 899px) {
	.em-check {
		grid-template-columns: 1fr;
	}

	.em-check__plakette {
		width: min(70vw, 300px);
	}
}

/* ==========================================================================
   13. Kilometerzähler
   ========================================================================== */

.em-zaehler {
	display: grid;
	grid-template-columns: repeat(var(--em-spalten, 3), minmax(0, 1fr));
	border-top: 2px solid var(--em-tinte);
}

.em-zaehler__eintrag {
	padding: 22px 24px 0 0;
	border-right: 1px solid var(--em-linie);
	display: grid;
	gap: 12px;
	align-content: start;
}

.em-zaehler__eintrag + .em-zaehler__eintrag {
	padding-left: 24px;
}

.em-zaehler__eintrag:last-child {
	border-right: 0;
}

/* Mechanisches Zählwerk: Walzen hinter Glas in einem dunklen Gehäuse */
.em-zaehler__zahl {
	margin: 0;
	font: 800 clamp(64px, 8.4vw, 128px)/1 var(--em-display);
	letter-spacing: 0;
	color: #121418;
	font-variant-numeric: tabular-nums;
}

.em-zaehler__ziffern {
	position: relative;
	display: inline-flex;
	gap: 0.06em;
	padding: 0.09em;
	border-radius: 0.14em;
	background: linear-gradient(180deg, #353b44 0%, #161a1f 46%, #0a0c0e 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.16),
		inset 0 -1px 0 rgba(0, 0, 0, 0.7),
		0 2px 4px rgba(15, 18, 22, 0.22),
		0 26px 44px -26px rgba(15, 18, 22, 0.6);
	line-height: 1;
}

/* Ohne JavaScript: eine Walze mit der ganzen Zahl */
.em-zaehler__ziffern:not(.is-walze) {
	padding: 0.09em 0.09em;
}

.em-zaehler__ziffern:not(.is-walze)::before {
	content: "";
}

.em-zaehler__ziffern:not(.is-walze),
.em-ziffer {
	--em-walze: linear-gradient(180deg, #9ea4ab 0%, #e4e7ea 14%, #fbfbfb 38%, #ffffff 50%, #f4f5f6 64%, #d9dde1 86%, #8d939a 100%);
}

.em-zaehler__ziffern:not(.is-walze) {
	background:
		var(--em-walze) padding-box content-box,
		linear-gradient(180deg, #353b44 0%, #161a1f 46%, #0a0c0e 100%);
	color: inherit;
}

.em-ziffer {
	position: relative;
	display: inline-block;
	width: 0.6em;
	height: 1em;
	overflow: hidden;
	border-radius: 0.06em;
	background: var(--em-walze);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
	text-align: center;
}

/* Wölbung und Glas über der Walze */
.em-ziffer::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 76%, rgba(0, 0, 0, 0.5) 100%),
		linear-gradient(112deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.38) 42%, rgba(255, 255, 255, 0) 56%);
}

.em-ziffer--fest {
	width: auto;
	padding-inline: 0.06em;
	background: none;
	box-shadow: none;
	color: #fff;
}

.em-ziffer--fest::after {
	display: none;
}

.em-zaehler__ziffern.is-walze {
	display: inline-flex;
	line-height: 1;
}

.em-zaehler__eintrag:nth-child(2) .em-zaehler__zahl {
	color: var(--em-signal);
}

.em-ziffer__band {
	display: flex;
	flex-direction: column;
	translate: 0 0;
	transition: translate 2.4s cubic-bezier(0.25, 0.9, 0.25, 1);
	transition-delay: calc(0.15s + var(--i, 0) * 0.16s);
}

/* Jede Ziffer ist genau eine Walzenhöhe hoch (1em des Fensters), die Schrift etwas kleiner. */
.em-ziffer__band span {
	display: block;
	height: 1.25em;
	font-size: 0.8em;
	line-height: 1.3em;
}

.em-zaehler__eintrag {
	gap: 18px !important;
}

.em-zaehler__label {
	font: 500 12.5px/1.45 var(--em-mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--em-grau);
	max-width: 26ch;
}

@media (max-width: 699px) {
	.em-zaehler {
		grid-template-columns: 1fr;
	}

	.em-zaehler__eintrag,
	.em-zaehler__eintrag + .em-zaehler__eintrag {
		padding: 18px 0;
		border-right: 0;
		border-bottom: 1px solid var(--em-linie);
		grid-template-columns: auto 1fr;
		align-items: end;
		gap: 18px;
	}
}

/* ==========================================================================
   14. Standorte mit Route
   ========================================================================== */

.em-standorte {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: start;
	border-top: 2px solid var(--em-tinte);
}

.em-standorte--ohne-karte {
	grid-template-columns: 1fr;
}

.em-orte {
	display: grid;
}

@media (prefers-reduced-motion: no-preference) {
	.em-js .em-orte .em-ort {
		opacity: 0;
		translate: 0 16px;
		transition: opacity 0.8s var(--em-ease), translate 0.8s var(--em-ease);
		transition-delay: calc(var(--i, 0) * 0.12s);
	}

	.em-js .em-orte.is-sichtbar .em-ort {
		opacity: 1;
		translate: 0 0;
	}
}

.em-ort {
	display: grid;
	gap: 10px;
	padding: 26px 0;
	border-bottom: 1px solid var(--em-linie);
}

.em-ort__kopf {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
}

.em-ort__titel {
	margin: 0;
	font: 800 clamp(40px, 4.4vw, 68px)/0.9 var(--em-display);
	text-transform: uppercase;
}

.em-ort__adresse {
	margin: 0;
	font: 500 17px/1.45 var(--em-text);
}

.em-ort__adresse small {
	display: block;
	font: 500 12px/1.4 var(--em-mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--em-grau);
}

.em-zeiten {
	margin: 6px 0 0;
	display: grid;
	max-width: 420px;
}

.em-zeiten > div {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	padding: 9px 0 8px;
	border-bottom: 1px dashed var(--em-linie);
	font: 500 14px/1.3 var(--em-mono);
}

.em-zeiten dt,
.em-zeiten dd {
	margin: 0;
}

.em-zeiten dd {
	text-align: right;
}

.em-ort__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
}

.em-ort__hinweis,
.em-ort__heute {
	margin: 0;
	font: 500 12.5px/1.45 var(--em-mono);
	letter-spacing: 0.04em;
	color: var(--em-grau);
}

.em-heute {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--em-tinte);
}

.em-ort__heute .em-heute::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #b9bfc6;
	flex: none;
}

.em-ort__heute .em-heute[data-status="offen"]::before {
	background: var(--em-ok);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--em-ok) 18%, transparent);
}

/* Karte als geneigte Platte: Raster, Route und Maßstab liegen darauf, Nadeln stehen und
   ihre Schilder schauen immer zum Betrachter. Ohne JavaScript steht sie fertig da. */
@property --em-kippen {
	syntax: "<angle>";
	inherits: true;
	initial-value: 46deg;
}

@property --em-drehen {
	syntax: "<angle>";
	inherits: true;
	initial-value: -7deg;
}

.em-karte {
	--em-kippen: 46deg;
	--em-drehen: -7deg;
	--em-pin-s: 1;
	position: sticky;
	top: calc(var(--em-kopf-h) + 32px);
	margin: 26px 0 0;
}

/* Die Bühne schneidet ab, damit die stehenden Ebenen die Seite nicht verbreitern. */
.em-karte__buehne {
	padding: 9% 7% 15%;
	margin: -4% 0 -11%;
	overflow: clip;
	overflow-clip-margin: 18px;
}

/* Platte und Nadeln liegen in zwei eigenen 3D-Ebenen mit derselben Perspektive:
   die Nadeln werden so immer über der Platte gemalt – in jedem Browser. */
.em-karte__ebenen {
	position: relative;
	perspective: 1500px;
	perspective-origin: 50% 0%;
}

.em-karte__platte,
.em-karte__nadeln {
	transform: rotateX(var(--em-kippen)) rotateZ(var(--em-drehen));
}

.em-karte__nadeln {
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
	pointer-events: none;
}

.em-karte__platte {
	position: relative;
	aspect-ratio: 600 / 480;
	border-radius: 18px;
	background:
		radial-gradient(70% 60% at 30% 20%, #fff 0%, rgba(255, 255, 255, 0) 70%),
		linear-gradient(160deg, #fbfbfa 0%, #f1f2f0 55%, #e6e8e5 100%);
	box-shadow:
		inset 0 0 0 1px rgba(15, 18, 22, 0.06),
		inset 0 2px 0 rgba(255, 255, 255, 0.9),
		0 2px 0 #d5d8d4,
		0 4px 0 #c9cdc8,
		0 6px 0 #bfc3be,
		0 26px 34px -14px rgba(15, 18, 22, 0.3),
		0 48px 50px -30px rgba(15, 18, 22, 0.28);
}

.em-karte__boden {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.em-karte__raster circle {
	fill: rgba(15, 18, 22, 0.16);
}

.em-karte__fuss {
	fill: rgba(15, 18, 22, 0.22);
	filter: blur(2.5px);
}

.em-karte__route-kante,
.em-karte__route,
.em-karte__route-licht {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.em-karte__route-kante {
	stroke: color-mix(in srgb, var(--em-signal) 70%, #000);
	stroke-width: 7;
	opacity: 0.9;
}

.em-karte__route {
	stroke: var(--em-signal);
	stroke-width: 5;
}

.em-karte__route-licht {
	stroke: rgba(255, 255, 255, 0.55);
	stroke-width: 1.3;
	transform: translate(-0.6px, -1px);
}

/* Maske, mit der die Route „gelegt“ wird (ohne JS: voll sichtbar). */
.em-karte__route-maske {
	fill: none;
	stroke: #fff;
	stroke-width: 18;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.em-karte__km,
.em-karte__skala text,
.em-karte__nord text {
	font-family: var(--em-mono);
	font-size: 11.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	fill: #4b5259;
}

.em-karte__skala rect {
	fill: #fff;
	stroke: #121418;
	stroke-width: 1.2;
}

.em-karte__skala .em-karte__skala-halb {
	fill: #121418;
}

.em-karte__nord circle {
	fill: #fff;
	stroke: rgba(15, 18, 22, 0.16);
	filter: drop-shadow(0 2px 2px rgba(15, 18, 22, 0.18));
}

.em-karte__nord path {
	fill: #121418;
}

/* Nadeln */
.em-karte__pin {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: 0;
	height: 0;
	transform-style: preserve-3d;
}

/* Die stehende Ebene braucht eine echte Fläche, sonst sortiert der Browser sie hinter die Platte. */
.em-karte__stehend {
	--em-l: 80px;
	--em-r: 80px;
	scale: var(--em-pin-s, 1) var(--em-pin-s, 1) var(--em-pin-s, 1);
	position: absolute;
	left: calc(var(--em-l) * -1);
	bottom: 0;
	width: calc(var(--em-l) + var(--em-r));
	height: 150px;
	transform-origin: var(--em-l) 100%;
	transform: rotateZ(calc(var(--em-drehen) * -1)) rotateX(calc(var(--em-kippen) * -1));
	pointer-events: none;
}

.em-karte__pin--rechts .em-karte__stehend {
	--em-l: 20px;
	--em-r: 190px;
}

.em-karte__pin--links .em-karte__stehend {
	--em-l: 190px;
	--em-r: 20px;
}

.em-karte__nadel {
	position: absolute;
	left: calc(var(--em-l) - 1.25px);
	bottom: 0;
	width: 2.5px;
	height: 42px;
	border-radius: 2px;
	background: linear-gradient(90deg, #6d737a, #f2f3f4 45%, #8b9197);
}

.em-karte__kopf {
	position: absolute;
	left: calc(var(--em-l) - 11px);
	bottom: 38px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 34% 28%, #fff 0%, rgba(255, 255, 255, 0) 42%),
		radial-gradient(closest-side, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.28) 100%),
		#f4f5f3;
	box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.18), 0 3px 6px -2px rgba(15, 18, 22, 0.4);
}

.em-karte__pin--haupt .em-karte__kopf {
	left: calc(var(--em-l) - 14px);
	bottom: 38px;
	width: 28px;
	height: 28px;
	background:
		radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 42%),
		radial-gradient(closest-side, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.3) 100%),
		var(--em-signal);
	box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.2), 0 4px 10px -2px color-mix(in srgb, var(--em-signal) 60%, transparent);
}

.em-karte__schild {
	position: absolute;
	bottom: 72px;
	left: var(--em-l);
	translate: -50% 0;
	display: grid;
	gap: 3px;
	padding: 9px 12px 8px;
	border-radius: 9px;
	background: linear-gradient(180deg, #fff 0%, #f6f7f5 100%);
	box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(15, 18, 22, 0.07), 0 12px 24px -12px rgba(15, 18, 22, 0.45);
	white-space: nowrap;
}

.em-karte__schild b {
	font: 800 21px/0.95 var(--em-display);
	text-transform: uppercase;
	color: var(--em-tinte);
}

.em-karte__schild small {
	font: 500 10px/1.2 var(--em-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--em-grau);
}

.em-karte__pin--rechts .em-karte__schild {
	bottom: 30px;
	left: calc(var(--em-l) + 24px);
	translate: 0 0;
}

.em-karte__pin--links .em-karte__schild {
	bottom: 30px;
	left: auto;
	right: calc(var(--em-r) + 24px);
	translate: 0 0;
}

.em-karte__pin--haupt.em-karte__pin--rechts .em-karte__schild {
	left: calc(var(--em-l) + 28px);
}

@media (max-width: 599px) {
	.em-karte {
		--em-pin-s: 0.66;
	}

	.em-karte__buehne {
		padding-top: 17%;
	}
}

@media (max-width: 399px) {
	.em-karte {
		--em-pin-s: 0.6;
	}
}

.em-karte figcaption {
	padding: 14px 4px 0;
	font: 400 11.5px/1.4 var(--em-mono);
	color: var(--em-grau);
}

@media (prefers-reduced-motion: no-preference) {
	/* Erst liegt die Karte flach wie früher, dann kippt sie in die Tiefe. */
	.em-js .em-karte:not(.is-sichtbar) {
		--em-kippen: 0deg;
		--em-drehen: 0deg;
	}

	.em-js .em-karte.is-sichtbar {
		transition: --em-kippen 1.6s cubic-bezier(0.3, 0.7, 0.2, 1), --em-drehen 1.6s cubic-bezier(0.3, 0.7, 0.2, 1);
	}

	.em-js .em-karte.is-bereit {
		transition: none;
	}

	.em-js .em-karte .em-karte__route-maske {
		stroke-dasharray: var(--em-laenge, 900);
		stroke-dashoffset: var(--em-laenge, 900);
		transition: stroke-dashoffset 2s var(--em-ease-maske) 1.1s;
	}

	.em-js .em-karte.is-sichtbar .em-karte__route-maske {
		stroke-dashoffset: 0;
	}

	.em-js .em-karte .em-karte__stehend > * {
		opacity: 0;
		translate: 0 -70px;
		transition: opacity 0.35s ease, translate 0.8s cubic-bezier(0.3, 1.35, 0.5, 1);
		transition-delay: calc(1.2s + var(--i, 0) * 0.35s);
	}

	.em-js .em-karte .em-karte__stehend > .em-karte__schild {
		transition-delay: calc(1.45s + var(--i, 0) * 0.35s);
	}

	.em-js .em-karte.is-sichtbar .em-karte__stehend > * {
		opacity: 1;
		translate: 0 0;
	}

	.em-js .em-karte.is-sichtbar .em-karte__pin--oben .em-karte__schild,
	.em-js .em-karte:not(.is-sichtbar) .em-karte__pin--oben .em-karte__schild {
		translate: -50% 0;
	}

	.em-js .em-karte:not(.is-sichtbar) .em-karte__pin--oben .em-karte__schild {
		translate: -50% -70px;
	}

	.em-js .em-karte .em-karte__fuss {
		opacity: 0;
		transition: opacity 0.6s ease;
		transition-delay: calc(1.5s + var(--i, 0) * 0.35s);
	}

	.em-js .em-karte.is-sichtbar .em-karte__fuss {
		opacity: 1;
	}
}

@media (max-width: 899px) {
	.em-standorte {
		grid-template-columns: 1fr;
	}

	.em-karte {
		position: static;
		order: -1;
	}
}

/* ==========================================================================
   15. Team
   ========================================================================== */

.em-team {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 28px);
	border-top: 2px solid var(--em-tinte);
	padding-top: clamp(24px, 3vw, 40px);
}

.em-person {
	display: grid;
	gap: 12px;
	align-content: start;
	margin: 0;
}

/* Bildkarte: Studiohintergrund, weiche Kante, neigt sich zum Zeiger */
.em-person__bild {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: 14px;
	overflow: hidden;
	background: #e7e9eb;
	box-shadow:
		inset 0 0 0 1px rgba(15, 18, 22, 0.06),
		0 1px 2px rgba(15, 18, 22, 0.06),
		0 24px 44px -28px rgba(15, 18, 22, 0.5);
	transform: perspective(900px) rotateX(calc(var(--em-ky, 0) * -7deg)) rotateY(calc(var(--em-kx, 0) * 9deg));
	transition: transform 0.6s var(--em-ease), box-shadow 0.6s var(--em-ease), translate 0.6s var(--em-ease);
}

.em-person__bild.is-geneigt {
	transition: transform 0.12s linear, box-shadow 0.6s var(--em-ease), translate 0.6s var(--em-ease);
	translate: 0 -4px;
	box-shadow:
		inset 0 0 0 1px rgba(15, 18, 22, 0.06),
		0 2px 4px rgba(15, 18, 22, 0.06),
		0 34px 54px -30px rgba(15, 18, 22, 0.55);
}

.em-person__bild img,
.em-person__flaeche {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.em-person__flaeche {
	display: grid;
	place-items: center;
	align-content: center;
	background:
		radial-gradient(95% 70% at 50% 28%, #fdfdfd 0%, #eef0f1 52%, #d8dbdf 100%);
	color: var(--em-grau);
}

/* Initialen wie in eine helle Platte eingeprägt */
.em-person__initialen {
	font: 800 clamp(56px, 6vw, 92px)/1 var(--em-display);
	letter-spacing: 0.02em;
	color: transparent;
	background: linear-gradient(180deg, #c3c8ce 0%, #a1a8b0 55%, #8a929b 100%);
	-webkit-background-clip: text;
	background-clip: text;
	filter: drop-shadow(0 1.5px 0 rgba(255, 255, 255, 0.95)) drop-shadow(0 -1px 0 rgba(15, 18, 22, 0.32));
	translate: 0 -6%;
}

.em-person__flaeche .em-person__katze {
	position: absolute;
	inset: auto 0 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: 50% 100%;
}

.em-person__flaeche .em-platzhalter {
	position: absolute;
	left: 50%;
	bottom: 12px;
	translate: -50% 0;
	white-space: nowrap;
	border: 1px solid rgba(15, 18, 22, 0.1);
	border-radius: 999px;
	padding: 4px 11px 3px;
	background: rgba(255, 255, 255, 0.72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: 0 4px 10px -6px rgba(15, 18, 22, 0.35);
	font-size: 11px;
	z-index: 1;
}

.em-person__glanz {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: radial-gradient(70% 55% at calc(50% + var(--em-kx, 0) * 45%) calc(18% + var(--em-ky, 0) * 35%), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 72%);
	mix-blend-mode: soft-light;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.em-person__bild.is-geneigt .em-person__glanz {
	opacity: 1;
}

.em-person figcaption {
	display: grid;
	gap: 8px;
}

@media (prefers-reduced-motion: no-preference) {
	.em-js .em-team .em-person figcaption {
		opacity: 0;
		translate: 0 10px;
		transition: opacity 0.7s var(--em-ease), translate 0.7s var(--em-ease);
		transition-delay: calc(0.5s + var(--i, 0) * 0.12s);
	}

	.em-js .em-team.is-sichtbar .em-person figcaption {
		opacity: 1;
		translate: 0 0;
	}
}

.em-person__name {
	margin: 0;
	font: 800 clamp(24px, 2.2vw, 30px)/0.95 var(--em-display);
	text-transform: uppercase;
}

.em-person__rolle {
	margin: 0;
	font: 500 12px/1.4 var(--em-mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--em-grau);
}

.em-person__vcard {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font: 600 13px/1 var(--em-text);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--em-signal);
	text-decoration: none;
	border-bottom: 1.5px solid currentColor;
	padding-bottom: 3px;
}

@media (max-width: 1099px) {
	.em-team {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.em-team {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Prüflicht: Maske auf dem Kind, Scan-Linie läuft mit */
.em-scan {
	position: relative;
}

@media (prefers-reduced-motion: no-preference) {
	.em-js .em-scan .em-scan__ziel {
		clip-path: inset(0 0 100% 0);
		transition: clip-path 1.3s var(--em-ease-maske);
		transition-delay: calc(var(--i, 0) * 0.12s);
	}

	.em-js .em-scan.is-sichtbar .em-scan__ziel {
		clip-path: inset(0 0 0 0);
	}

	.em-js .em-scan::after {
		content: "";
		position: absolute;
		left: -1px;
		right: -1px;
		top: 0;
		height: 2px;
		background: var(--em-signal);
		opacity: 0;
		z-index: 2;
		pointer-events: none;
	}

	.em-js .em-scan.is-sichtbar::after {
		animation: em-scan 1.3s var(--em-ease-maske) both;
		animation-delay: calc(var(--i, 0) * 0.12s);
	}
}

@keyframes em-scan {
	0% {
		top: 0;
		opacity: 1;
	}
	92% {
		top: calc(100% - 2px);
		opacity: 1;
	}
	100% {
		top: calc(100% - 2px);
		opacity: 0;
	}
}

/* ==========================================================================
   16. Kontakt-Band, Formular, Fuß
   ========================================================================== */

.em-cta {
	position: relative;
	overflow: clip;
	background: var(--em-tinte);
	color: var(--em-weiss);
	padding: clamp(64px, 9vw, 140px) var(--em-rand);
	margin-top: clamp(80px, 10vw, 160px) !important;
}

.em-cta__innen {
	position: relative;
	z-index: 1;
	max-width: var(--em-breit);
	margin: 0 auto;
	display: grid;
	gap: 22px;
}

.em-cta__innen > * {
	margin: 0;
}

.em-cta .em-label {
	color: rgba(255, 255, 255, 0.6);
}

.em-cta__titel {
	font: 800 clamp(44px, 6vw, 92px)/0.9 var(--em-display);
	text-transform: uppercase;
	color: var(--em-weiss);
}

.em-cta__nummer {
	display: inline-block;
	font: 800 clamp(52px, 10vw, 168px)/0.9 var(--em-display);
	letter-spacing: -0.005em;
	color: var(--em-weiss);
	text-decoration: none;
	transition: color 0.25s;
}

.em-cta__nummer:hover {
	color: color-mix(in srgb, var(--em-signal) 60%, white);
}

.em-cta__links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.em-cta .em-knopf {
	border-color: rgba(255, 255, 255, 0.24);
	color: var(--em-weiss);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 24px -14px rgba(0, 0, 0, 0.8);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.em-cta .em-knopf:hover {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%);
	border-color: rgba(255, 255, 255, 0.45);
	color: var(--em-weiss);
}

.em-cta__deko {
	position: absolute;
	right: -7vw;
	top: 50%;
	width: min(44vw, 620px);
	translate: 0 -50%;
	pointer-events: none;
}

.em-cta__deko .em-p3d {
	--em-rx: 20deg;
	--em-ry: -38deg;
	--em-rz: -10deg;
}

/* Im Dunkeln: wenig Fülllicht, harte Lichtkante, Schatten als dunkler Hof */
.em-p3d--nacht .em-p3d__front {
	filter: brightness(0.62) saturate(0.95);
}

.em-p3d--nacht .em-p3d__licht {
	background:
		radial-gradient(75% 75% at 18% 12%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 55%),
		radial-gradient(closest-side, rgba(0, 0, 0, 0) 66%, rgba(0, 0, 0, 0.6) 100%);
}

.em-p3d--nacht .em-p3d__kante i {
	background: linear-gradient(162deg, #8a8c88 8%, #3b3e41 60%, #1c1f22 100%);
}

.em-p3d--nacht .em-p3d__kante i:first-child {
	background: linear-gradient(162deg, var(--em-p-kante) 8%, var(--em-p-kante-tief) 100%);
}

.em-p3d--nacht .em-p3d__schatten {
	background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
	filter: blur(22px);
}

@media (max-width: 899px) {
	.em-cta__deko {
		width: 74vw;
		right: -30vw;
		top: auto;
		bottom: -26vw;
		translate: none;
		opacity: 0.5;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.em-cta__deko .em-plakette__dreh {
		animation: em-langsam 90s linear infinite;
	}
}

@keyframes em-langsam {
	to {
		transform: rotate(calc(var(--em-p-ziel, 0deg) + 360deg));
	}
}

.em-infos {
	display: grid;
	gap: 22px;
}

.em-infos--gross {
	gap: 0;
}

.em-infos--gross > .em-infos__block:first-child {
	padding-top: 0;
}

.em-infos__block {
	display: grid;
	gap: 10px;
	padding: 22px 0;
	border-bottom: 1px solid var(--em-linie);
}

.em-infos__block > * {
	margin: 0;
}

.em-info__mail {
	font: 600 20px/1.3 var(--em-text);
}

.em-info__nummer {
	font: 800 clamp(40px, 5vw, 72px)/0.95 var(--em-display);
	color: var(--em-tinte);
	text-decoration: none;
}

.em-info__nummer:hover {
	color: var(--em-signal);
}

.em-kontakt-raster {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(40px, 7vw, 120px);
	align-items: start;
	padding-block: clamp(24px, 4vw, 56px) clamp(40px, 6vw, 96px);
}

.em-kontakt-raster > * {
	margin: 0 !important;
}

@media (max-width: 899px) {
	.em-kontakt-raster {
		grid-template-columns: 1fr;
	}
}

.em-kontakt__formular {
	display: grid;
	gap: 18px;
	align-content: start;
}

.em-kontakt__formular > * {
	margin: 0 !important;
}

.em-formular {
	display: grid;
	gap: 24px;
	margin-top: 10px;
}

.em-formular__reihe {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}

.em-formular__feld {
	display: grid;
	gap: 8px;
}

.em-formular__feld label,
.em-formular__zustimmung {
	font: 500 11.5px/1.4 var(--em-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--em-grau);
}

.em-formular :where(input, select, textarea) {
	font-size: 18px !important;
	font-weight: 500 !important;
}

.em-formular textarea {
	min-height: 150px;
	resize: vertical;
}

.em-formular :where(input, select, textarea):focus {
	outline: none;
	border-color: var(--em-signal);
	background-color: #fff;
	box-shadow: inset 0 1px 2px rgba(15, 18, 22, 0.06), 0 0 0 4px color-mix(in srgb, var(--em-signal) 16%, transparent);
}

.em-formular :where(input, select, textarea):focus-visible {
	outline: 2px solid var(--em-signal);
	outline-offset: 4px;
}

.em-formular select {
	background-image: var(--em-pfeil-runter), linear-gradient(180deg, rgba(15, 18, 22, 0.035) 0%, rgba(255, 255, 255, 0) 40%);
	background-repeat: no-repeat;
	background-position: right 14px center, 0 0;
	background-size: 15px, auto;
	padding-right: 40px;
}

.em-formular__zustimmung {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 12px;
	align-items: start;
	text-transform: none;
	letter-spacing: 0;
	font: 400 14px/1.5 var(--em-text);
	color: #262b31;
}

.em-formular__zustimmung input {
	width: 18px;
	height: 18px;
	margin: 3px 0 0;
	accent-color: var(--em-signal);
}

.em-formular__honig {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.em-formular__status {
	font: 500 14px/1.5 var(--em-text);
	padding: 14px 16px;
	border: 1.5px solid var(--em-tinte);
	margin: 0;
}

.em-formular__status:empty {
	display: none;
}

.em-formular__status.is-ok {
	background: var(--em-tinte);
	color: var(--em-weiss);
}

.em-formular button[type="submit"] {
	justify-self: start;
}

.em-formular button[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.em-fuss-teil {
	background: var(--em-tinte);
	color: var(--em-weiss);
	border-top: 1px solid var(--em-linie-hell);
}

.em-fuss {
	padding: clamp(56px, 7vw, 104px) var(--em-rand) 28px;
	max-width: calc(var(--em-breit) + 2 * var(--em-rand));
	margin: 0 auto;
	display: grid;
	gap: clamp(40px, 5vw, 72px);
}

.em-fuss > * {
	margin: 0 !important;
}

.em-fuss__raster {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(24px, 4vw, 56px);
	border-top: 1px solid var(--em-linie-hell);
	padding-top: 28px;
}

.em-fuss__raster > * {
	margin: 0 !important;
}

/* Die Kontakt-Infos liefern drei Spalten – sie sollen direkt im Raster stehen. */
.em-fuss__raster > .em-infos--fuss {
	display: contents;
}

.em-fuss__spalte {
	display: grid;
	gap: 10px;
	align-content: start;
}

.em-fuss__spalte > * {
	margin: 0;
}

.em-fuss__spalte .em-label {
	margin-bottom: 4px !important;
}

.em-fuss__ort + .em-fuss__ort {
	margin-top: 14px;
}

.em-fuss__ort-titel {
	margin: 0 0 4px;
	font: 800 24px/1 var(--em-display);
	text-transform: uppercase;
}

.em-fuss__kontakt {
	font: 500 16px/1.7 var(--em-text);
}

.em-fuss__tel {
	display: inline-block;
	font: 800 30px/1.1 var(--em-display);
	color: var(--em-weiss);
	text-decoration: none;
}

.em-fuss__tel:hover {
	color: color-mix(in srgb, var(--em-signal) 55%, white);
}

.em-fuss .em-link {
	color: var(--em-weiss);
}

.em-fuss .em-knopf {
	border-color: rgba(255, 255, 255, 0.24);
	color: var(--em-weiss);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 24px -14px rgba(0, 0, 0, 0.8);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.em-fuss .em-knopf:hover {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%);
	border-color: rgba(255, 255, 255, 0.45);
	color: var(--em-weiss);
}

.em-fuss .em-ort__hinweis,
.em-fuss .em-platzhalter {
	color: rgba(255, 255, 255, 0.65);
}

.em-fuss .em-label {
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 14px;
}

.em-fuss .em-ort__adresse,
.em-fuss .em-zeiten > div {
	color: var(--em-weiss);
	border-color: var(--em-linie-hell);
}

.em-fuss .em-ort__adresse small {
	color: rgba(255, 255, 255, 0.55);
}

.em-fuss__unten {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	border-top: 1px solid var(--em-linie-hell);
	padding-top: 20px;
	font: 400 12px/1.6 var(--em-mono);
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.7);
}

.em-fuss__unten a {
	font: inherit;
	color: var(--em-weiss);
}

@media (max-width: 899px) {
	.em-fuss__raster {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.em-fuss__raster {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   17. Seitenkopf, Blog, 404
   ========================================================================== */

.em-seitenkopf {
	position: relative;
	padding-top: clamp(40px, 7vw, 112px);
	padding-bottom: clamp(28px, 3vw, 48px);
	display: grid;
	gap: 18px;
	border-bottom: 2px solid var(--em-tinte);
}

.em-seitenkopf > * {
	margin-block: 0 !important;
}

.em-seitentitel,
h1.wp-block-post-title.em-seitentitel {
	font-size: clamp(52px, 11vw, 168px);
	line-height: 0.86;
	hyphens: auto;
}

.em-liste .wp-block-post {
	border-top: 1px solid var(--em-linie);
	padding-block: 28px;
	margin: 0;
}

.em-liste .wp-block-post-title {
	font-size: clamp(30px, 4vw, 52px);
	margin: 6px 0 12px;
}

.em-liste .wp-block-post-title a {
	text-decoration: none;
	color: var(--em-tinte);
}

.em-liste .wp-block-post-date {
	font: 500 12px/1.4 var(--em-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--em-grau);
}

.wp-block-query-pagination {
	font: 500 13px/1 var(--em-mono);
	padding-block: 32px;
}

.em-404 {
	padding-block: clamp(40px, 8vw, 120px);
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
}

.em-404 > * {
	margin: 0 !important;
}

.em-404__text {
	display: grid;
	gap: 22px;
}

.em-404 .em-seitentitel {
	font-size: clamp(44px, 7vw, 108px);
	hyphens: manual;
}

.em-404__text > * {
	margin: 0 !important;
}

@media (max-width: 899px) {
	.em-404 {
		grid-template-columns: 1fr;
	}

	.em-404 .em-plakette-block {
		width: min(56vw, 240px);
	}
}

.em-leistungen-seite .em-leistung:first-child {
	border-top: 0;
}

/* ==========================================================================
   18. Bewegung: Einblenden und Parallax
   Grundregel: Ohne JavaScript und bei „Bewegung reduzieren“ ist alles sofort sichtbar.
   ========================================================================== */

.em-parallax {
	translate: 0 var(--em-py, 0px);
}

@media (prefers-reduced-motion: no-preference) {
	.em-js .em-reveal {
		opacity: 0;
		translate: 0 22px;
		transition: opacity 0.9s var(--em-ease), translate 0.9s var(--em-ease);
		transition-delay: calc(var(--i, 0) * 80ms);
	}

	.em-js .em-reveal.is-sichtbar {
		opacity: 1;
		translate: 0 0;
	}

	.em-js .em-reveal.em-parallax.is-sichtbar {
		translate: 0 var(--em-py, 0px);
		transition: opacity 0.9s var(--em-ease);
	}

	/* Hero: Label, Titelzeilen, Text und Knöpfe nacheinander. */
	.em-js .em-hero__text > .em-reveal:nth-child(3) {
		transition-delay: 0.5s;
	}

	.em-js .em-hero__text > .em-reveal:nth-child(4) {
		transition-delay: 0.65s;
	}

	.em-js .em-kopfzeile > .em-reveal {
		transition-delay: 0.3s;
	}
}

/* Seitenwechsel ohne Ruckeln (Chrome, Edge, Safari 18) */
@media (prefers-reduced-motion: no-preference) {
	@view-transition {
		navigation: auto;
	}

	::view-transition-old(root) {
		animation: em-vt-raus 0.3s var(--em-ease) both;
	}

	::view-transition-new(root) {
		animation: em-vt-rein 0.55s var(--em-ease) both;
	}
}

@keyframes em-vt-raus {
	to {
		opacity: 0;
		translate: 0 -10px;
	}
}

@keyframes em-vt-rein {
	from {
		opacity: 0;
		translate: 0 18px;
	}
}

@media print {
	.em-kopf-teil,
	.em-cta__deko {
		display: none !important;
	}

	.em-main {
		padding-top: 0;
	}
}

/* ==========================================================================
   19. Editor
   ========================================================================== */

.editor-styles-wrapper .em-kopf-teil {
	position: relative;
}

.editor-styles-wrapper .em-main {
	padding-top: 0;
}

.editor-styles-wrapper .em-karte,
.editor-styles-wrapper .em-leistung__seite {
	position: relative;
	top: 0;
}

/* ==========================================================================
   20. Suche
   ========================================================================== */

.wp-block-search {
	max-width: 640px;
}

.wp-block-search__inside-wrapper {
	border: 0 !important;
	border-bottom: 2px solid var(--em-tinte) !important;
	padding: 0 !important;
	background: transparent;
	align-items: center;
}

.wp-block-search__input {
	border: 0 !important;
	background: transparent !important;
	padding: 12px 0 !important;
	font: 600 20px/1.3 var(--em-text) !important;
	color: var(--em-tinte);
}

.wp-block-search__input:focus {
	outline: none;
}

.wp-block-search__inside-wrapper:focus-within {
	border-bottom-color: var(--em-signal) !important;
}

.wp-block-search__button {
	margin: 0 0 8px 12px !important;
	padding: 12px 16px 11px !important;
	font-size: 13px !important;
}
