/* ==========================================================================
   MPUNKT38 – Haupt-Stylesheet
   Aufbau: 1 Schriften · 2 Tokens · 3 Basis · 4 Header · 5 Hero · 6 Karten
           7 Seiten · 8 Footer · 9 Hilfen · 10 Dunkelmodus · 11 Bewegung
   ========================================================================== */

/* 1 Schriften (lokal, DSGVO-konform) ------------------------------------ */
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Oswald";
	src: url("../fonts/oswald-var.woff2") format("woff2");
	font-weight: 200 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Roboto Slab";
	src: url("../fonts/roboto-slab-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* 2 Tokens --------------------------------------------------------------- */
:root {
	--mp-brand: #14c691;
	--mp-brand-bright: #14e2a4;
	--mp-brand-deep: #0b7a58;
	--mp-link: #2fac66; /* Logo-Grün */
	--mp-link-hover: #1f8a50;
	--mp-ink: #23203f;
	--mp-muted: #716f87;
	--mp-bg: #ffffff;
	--mp-surface: #f1f1f1;
	--mp-line: #eaeaea;
	--mp-blue: #1469eb;
	--mp-blue-2: #4d8af0;
	--mp-sky: #6ec1e4;

	--mp-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mp-font-heading: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mp-font-slab: "Roboto Slab", Georgia, "Times New Roman", serif;
	--mp-font-logo: "Oswald", "Arial Narrow", sans-serif;

	--mp-gutter: clamp(1rem, 4vw, 2rem);
	--mp-header-h: 6.25rem;
	--mp-ease: cubic-bezier(0.165, 0.84, 0.44, 1);
	/* Grüner Schein am Übergang Hero → nächster Screen: Höhe + Stärke (Alpha). */
	--mp-glow-h: clamp(22rem, 48vw, 46rem);

	color-scheme: light;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--mp-header-h) + 0.5rem);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--mp-bg);
	color: var(--mp-ink);
	font-family: var(--mp-font-body);
	font-size: clamp(1rem, 0.3vw + 0.95rem, 1.0625rem);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--mp-font-heading); line-height: 1.15; letter-spacing: -0.02em; }

/* Der Header liegt fest über dem Inhalt. Normale Seiten beginnen darunter; der
   Hero zieht sich um genau diese Höhe zurück und startet so am oberen Rand,
   direkt unter dem Header – ohne Naht und ohne Lücke. */
.mp-main { padding-top: var(--mp-header-h); }
.mp-main > .mp-hero:first-child { margin-top: calc(var(--mp-header-h) * -1); }

.mp-btn {
	display: inline-block;
	padding: 1.05rem 2.2rem;
	border: 1px solid var(--mp-ink);
	border-radius: 0.25rem;
	background: transparent;
	color: var(--mp-ink);
	font: 600 0.875rem/1.2 var(--mp-font-body);
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--mp-ease);
}
.mp-btn:hover,
.mp-btn:focus-visible {
	border-color: var(--mp-brand);
	background: var(--mp-brand-bright);
	color: #14131f;
	transform: translateY(-2px);
}

:focus-visible { outline: 3px solid var(--mp-blue-2); outline-offset: 3px; }

/* 4 Header (sticky) ------------------------------------------------------ */
/* Fest am oberen Rand, im selben Grau wie der Hero: der Hero schiebt sich
   beim Scrollen unter den Header. */
.mp-header {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 1000;
	background: var(--mp-surface);
	transition: box-shadow 0.25s;
}
.admin-bar .mp-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mp-header { top: 46px; } }
.mp-header.is-stuck { box-shadow: 0 8px 28px -14px rgba(0, 0, 0, 0.35); }

.mp-header__in {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: start;
	min-height: var(--mp-header-h);
	max-width: 1210px;
	margin-inline: auto;
	padding-inline: var(--mp-gutter);
}
.mp-header__logo { justify-self: center; padding-block: 0.35rem; line-height: 0; }
.mp-header__img { display: block; width: clamp(4.25rem, 6vw, 5.5rem); height: auto; transition: width 0.25s var(--mp-ease); }
.is-stuck .mp-header__img { width: clamp(3.5rem, 5vw, 4.25rem); }
.mp-header__end { display: flex; align-items: flex-start; justify-self: end; gap: 0.5rem; }
.mp-header__mail {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	margin-top: 0.8rem;
	border-radius: 50%;
	background: #fff;
	color: var(--mp-brand);
	box-shadow: 0 2px 8px -3px rgba(0, 0, 0, 0.3);
	transition: background 0.2s, color 0.2s, transform 0.2s var(--mp-ease);
}
.mp-header__mail:hover,
.mp-header__mail:focus-visible { background: var(--mp-brand); color: #fff; transform: translateY(-1px); }

.mp-menu { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 0.25rem; margin: 0; padding: 0; list-style: none; }
.mp-menu a {
	display: block;
	padding: 0.95rem 0.8rem 0.5rem;
	border-top: 7.5px solid transparent;
	color: var(--mp-ink);
	font-size: 0.9375rem;
	text-decoration: none;
	transition: border-color 0.2s;
}
.mp-menu a:hover,
.mp-menu a:focus-visible,
.mp-menu .current-menu-item > a,
.mp-menu a[aria-current] { border-top-color: var(--mp-brand); }

/* Untermenü (Desktop ab 1025 px): zweite Zeile INNERHALB des Headers, direkt
   unter dem Hauptmenü. Sie beginnt unter dem Elternpunkt und reicht nach
   rechts höchstens bis zum E-Mail-Button. Die Header-Höhe bleibt unverändert. */
.mp-menu .sub-menu { display: none; }
.mp-menu > li.menu-item-has-children > a { cursor: pointer; }
@media (min-width: 1025px) {
	.mp-menu > li { position: static; }
	.mp-menu .sub-menu {
		position: absolute;
		top: var(--mp-sub-y, 3.45rem);
		right: 0;
		bottom: 0;
		left: 0;
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		gap: 0 0.25rem;
		margin: 0;
		padding: 0 0 0 var(--mp-sub-x, var(--mp-gutter));
		list-style: none;
		pointer-events: none;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0s, visibility 0s;
	}
	.mp-menu > li.is-sub-open > .sub-menu {
		opacity: 1;
		visibility: visible;
		transition: opacity 0.18s, visibility 0s;
	}
	.mp-menu .sub-menu a {
		padding: 0.35rem 0.7rem;
		border-top: 0;
		border-bottom: 3px solid transparent;
		font-size: 0.875rem;
		line-height: 1.2;
		white-space: nowrap;
		pointer-events: auto;
	}
	.mp-menu .sub-menu a:hover,
	.mp-menu .sub-menu a:focus-visible,
	.mp-menu .sub-menu .current-menu-item > a { border-bottom-color: var(--mp-brand); }
	/* Elternpunkt bleibt markiert, solange sein Untermenü offen ist. */
	.mp-menu > li.is-sub-open > a { border-top-color: var(--mp-brand); }
}

/* Untermenü Tablet & Handy (bis 1024 px): per Tippen. Dunkelgrauer Block mit
   weißer Schrift hebt sich vom hellen Menü ab. */
:root { --mp-sub-bg: #43484e; }
@media (max-width: 1024px) {
	.mp-menu > li.menu-item-has-children > a::after {
		content: "";
		display: inline-block;
		width: 0.4em;
		height: 0.4em;
		margin: -0.15em 0 0 0.55em;
		border: solid currentColor;
		border-width: 0 2px 2px 0;
		transform: rotate(45deg);
		transition: transform 0.2s var(--mp-ease);
		vertical-align: middle;
	}
	.mp-menu > li.is-sub-open > a::after { margin-top: 0.15em; transform: rotate(-135deg); }
	.mp-menu .sub-menu a {
		display: block;
		min-height: 0;
		padding: 0.75rem 1.25rem;
		border: 0;
		border-left: 4px solid transparent;
		color: #fff;
		font-size: 0.9375rem;
		line-height: 1.3;
		white-space: nowrap;
	}
	.mp-menu .sub-menu a:hover,
	.mp-menu .sub-menu a:focus-visible,
	.mp-menu .sub-menu .current-menu-item > a { background: rgba(255, 255, 255, 0.12); border-left-color: #fff; }
	.mp-menu .sub-menu li + li { border-top: 1px solid rgba(255, 255, 255, 0.12); }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.mp-menu > li { position: static; }
	.mp-menu > li.is-sub-open > a { border-top-color: var(--mp-brand); }
	.mp-menu .sub-menu {
		position: absolute;
		top: 100%;
		left: var(--mp-sub-x, auto);
		width: max-content;
		min-width: 14rem;
		margin: 0;
		padding: 0.25rem 0;
		list-style: none;
		background: var(--mp-sub-bg);
		border-radius: 0 0 0.5rem 0.5rem;
		box-shadow: 0 18px 28px -16px rgba(0, 0, 0, 0.45);
	}
	.mp-menu > li.is-sub-open > .sub-menu { display: block; }
}
@media (max-width: 767px) {
	.mp-menu > li.is-sub-open > a { border-left-color: var(--mp-brand); }
	.mp-menu > li.menu-item-has-children > a::after { margin-left: auto; }
	.mp-menu .sub-menu {
		margin: 0.125rem 0 0.5rem;
		padding: 0.25rem 0;
		list-style: none;
		background: var(--mp-sub-bg);
		border-radius: 0.5rem;
	}
	.mp-menu > li.is-sub-open > .sub-menu { display: block; }
	/* Zweispaltiges Menü: Untermenü über die ganze Breite. */
	.mp-menu:has(> li:nth-child(4)) > li { display: contents; }
	.mp-menu:has(> li:nth-child(4)) > li > .sub-menu { grid-column: 1 / -1; }
}

/* Burger-Button: nur auf dem Handy sichtbar. */
.mp-header__toggle { display: none; }

/* Tablet (bis 1024 px): Logo links, Menü rechts – immer einzeilig. */
@media (max-width: 1024px) {
	.mp-header__in { grid-template-columns: auto 1fr; }
	.mp-header__logo { justify-self: start; }
	.mp-header__spacer { display: none; }
	.mp-menu { flex-wrap: nowrap; }
	.mp-menu a { white-space: nowrap; }
}

/* Handy (bis 767 px): Logo links, Burger-Button rechts, Menü klappt auf. */
@media (max-width: 767px) {
	.mp-header__img { width: 3.75rem; }
	.is-stuck .mp-header__img { width: 3.25rem; }
	:root { --mp-header-h: 5rem; }

	.mp-header__in { align-items: center; }
	.mp-header__end { align-items: center; gap: 0.5rem; }
	.mp-header__mail { width: 2.75rem; height: 2.75rem; margin-top: 0; }
	.mp-header__toggle {
		display: grid;
		place-items: center;
		justify-self: end;
		width: 2.75rem;
		height: 2.75rem;
		padding: 0;
		border: 0;
		border-radius: 0.5rem;
		background: rgba(0, 0, 0, 0.06);
		color: var(--mp-ink);
		cursor: pointer;
	}
	.mp-header__toggle:hover { background: rgba(0, 0, 0, 0.1); }
	.mp-header__bars { position: relative; display: block; width: 1.375rem; height: 1rem; }
	.mp-header__bars span {
		position: absolute;
		left: 0;
		width: 100%;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
		transition: transform 0.25s var(--mp-ease), opacity 0.2s, top 0.25s var(--mp-ease);
	}
	.mp-header__bars span:nth-child(1) { top: 0; }
	.mp-header__bars span:nth-child(2) { top: 7px; }
	.mp-header__bars span:nth-child(3) { top: 14px; }
	.is-open .mp-header__bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
	.is-open .mp-header__bars span:nth-child(2) { opacity: 0; }
	.is-open .mp-header__bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

	.mp-header__nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		justify-self: stretch;
		width: auto;
		padding: 0.125rem var(--mp-gutter) 0.75rem;
		background: var(--mp-surface);
		box-shadow: 0 18px 28px -16px rgba(0, 0, 0, 0.35);
	}
	.is-open .mp-header__nav { display: block; }
	.mp-menu { flex-direction: column; align-items: stretch; gap: 0; }
	/* Ab 4 Punkten zweispaltig (Reihenfolge zeilenweise), bis 3 Punkte einspaltig. */
	.mp-menu:has(> li:nth-child(4)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0.5rem; }
	.mp-menu a {
		display: flex;
		align-items: center;
		min-height: 2.5rem;
		padding: 0.4rem 0.75rem;
		border-top: 0;
		border-left: 4px solid transparent;
		font-size: 0.9375rem;
		line-height: 1.3;
	}
	.mp-menu a:hover,
	.mp-menu a:focus-visible,
	.mp-menu .current-menu-item > a,
	.mp-menu a[aria-current] { border-left-color: var(--mp-brand); }
}

/* 5 Hero ----------------------------------------------------------------- */
/* Alles misst sich an --u (Maßeinheit der Komposition: 100 u = volle Breite am
   Desktop). --u rechnet mit der Hero-Breite (cqw) für alle Kinder, --uh mit der
   Fensterbreite (vw) für die Höhe des Heros selbst.
   Auf Tablet und Handy „zoomt“ die Komposition hinein: u wird größer, die graue
   Schale ist dann breiter als der Bildschirm, ihr Rand und die unteren Kanten der
   Kreise liegen außerhalb des Bildes und werden angeschnitten. */
.mp-hero {
	--u: max(1cqw, 0.62rem);
	--uh: max(1vw, 0.62rem);
	position: relative;
	container-type: inline-size;
	width: 100%;
	max-width: 100%;
	height: calc(var(--uh) * 40);
	/* Nur seitlich beschneiden (die Schale ist auf Handy breiter als der
	   Bildschirm). Nach unten darf Schatten überstehen, sonst entsteht am
	   Übergang eine harte Linie. */
	overflow-x: clip;
	overflow-y: visible;
	z-index: 2;
	background:
		radial-gradient(ellipse 52% var(--mp-glow-h) at 50% 100%,
			rgba(20, 226, 164, 0.34) 0%,
			rgba(20, 198, 145, 0.20) 28%,
			rgba(110, 193, 228, 0.10) 55%,
			rgba(110, 193, 228, 0) 80%),
		var(--mp-bg);
}
/* Tablet: 600–1100 px, stufenlos von 2,6 % (bei 600) auf 1 % (bei 1100). */
@media (min-width: 601px) and (max-width: 1100px) {
	.mp-hero {
		--u: max(1cqw, calc(21.1px - 0.92cqw));
		--uh: max(1vw, calc(21.1px - 0.92vw));
	}
}
/* Handy: starker Zoom, Karte ≈ 35 % der Breite. */
@media (max-width: 600px) {
	.mp-hero {
		--u: 2.6cqw;
		--uh: 2.6vw;
	}
}
/* Naht-Absicherung: ein graues „Schatten“-Feld über dem Hero füllt jeden Spalt
   zwischen Header und Hero im selben Grau. */
.mp-main > .mp-hero:first-child { box-shadow: 0 -14rem 0 0 var(--mp-surface); }

/* Die Schale ist mindestens 100 u breit, auch wenn der Bildschirm schmaler ist:
   Ihr Rand liegt dann außerhalb des Bildes, die Wölbung wirkt nie gestaucht. */
.mp-hero__bowl {
	position: absolute;
	top: 0;
	left: 50%;
	width: max(100%, calc(var(--u) * 100));
	translate: -50% 0;
	height: calc(var(--u) * 39);
	overflow: hidden;
	border-radius: 0 0 50% 50% / 0 0 calc(var(--u) * 24) calc(var(--u) * 24);
	background: var(--mp-surface);
	box-shadow: 0 18px 50px -24px rgba(35, 32, 63, 0.35);
}
/* Zweite, deckungsgleiche Schale vor der Karte: trägt Kreis 3 + 4, damit die
   Karte „zwischen Kreis 2 und 3 steckt“. */
.mp-hero__bowl--front {
	background: none;
	box-shadow: none;
	pointer-events: none;
}
/* Vier konzentrische Kreise: der Anker für die Profilkarte. Mittelpunkt liegt
   unterhalb des Heros, die Wölbung der Schale schneidet sie unten ab. */
.mp-hero__circle {
	position: absolute;
	left: 50%;
	top: calc(var(--u) * 57.8);
	aspect-ratio: 1;
	translate: -50% -50%;
	border-radius: 50%;
}
.mp-hero__circle--1 { width: calc(var(--u) * 61.6); background: #14e2a4; }
.mp-hero__circle--2 { width: calc(var(--u) * 56.8); background: #13d59b; }
.mp-hero__circle--3 { width: calc(var(--u) * 51.6); background: #14c691; }
.mp-hero__circle--4 { width: calc(var(--u) * 45.8); background: #12b183; }

/* Icon-Ring: gleicher Mittelpunkt wie die Kreise, dreht sich fortlaufend. */
.mp-hero__ring {
	position: absolute;
	left: 50%;
	top: calc(var(--u) * 57.8);
	width: calc(var(--u) * 76.6);
	aspect-ratio: 1;
	translate: -50% -50%;
	pointer-events: none;
	/* Umlaufzeit: hier einstellen (kleiner = schneller). */
	animation: mp-spin var(--mp-ring-speed, 80s) linear infinite;
	will-change: rotate;
}
.mp-hero__ring { --w: calc(var(--u) * 76.6); }
.mp-hero__ring > img { display: block; width: 100%; height: 100%; }
/* Kacheln auf dem Ring: je --a Grad gedreht, Oberkante zeigt nach außen. */
.mp-ring__tile {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: calc(var(--w) * 0.038);
	aspect-ratio: 1;
	margin: calc(var(--w) * -0.019) 0 0 calc(var(--w) * -0.019);
	padding: calc(var(--w) * 0.0065);
	border-radius: 22%;
	background: #fff;
	box-shadow: 0 calc(var(--w) * 0.0012) calc(var(--w) * 0.005) rgba(0, 0, 0, 0.2);
	transform: rotate(var(--a)) translateY(calc(var(--w) * -0.436));
}
.mp-ring__tile img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mp-hero.is-offscreen .mp-hero__ring { animation-play-state: paused; }

.mp-hero__card {
	position: absolute;
	left: 50%;
	top: calc(var(--u) * 13.5);
	/* Das Kartenbild ist hoch (1:1,9); sein unterer, leerer Teil verschwindet
	   hinter Kreis 3. Sichtbare Karte ≈ 13,7 u breit, Bild inkl. Schatten 15,4 u.
	   -44,6 % zentriert die Karte selbst (der Schatten liegt rechts daneben). */
	width: calc(var(--u) * 15.4);
	margin: 0;
	translate: -44.6% 0;
}
.mp-hero__card img { display: block; width: 100%; height: auto; }

.mp-hero__down {
	position: absolute;
	left: 50%;
	/* Mittelpunkt bei 38,4 u, aber nie so tief, dass der Button unten aus dem
	   Hero ragt (Handy: Button hat dort Mindestgröße 2,75 rem). */
	top: min(calc(var(--u) * 38.4), calc(var(--uh) * 40 - max(calc(var(--u) * 3.1), 2.75rem) / 2 - 0.75rem));
	display: grid;
	place-items: center;
	width: max(calc(var(--u) * 3.1), 2.75rem);
	aspect-ratio: 1;
	translate: -50% -50%;
	border-radius: 50%;
	background: linear-gradient(313deg, var(--mp-blue), var(--mp-blue-2));
	box-shadow: 0 10px 30px -6px rgba(20, 105, 235, 0.55);
	color: #fff;
	transition: transform 0.25s var(--mp-ease), box-shadow 0.25s;
}
.mp-hero__down:hover,
.mp-hero__down:focus-visible { transform: translateY(4px); box-shadow: 0 16px 36px -8px rgba(20, 105, 235, 0.65); }

.mp-anchor { display: block; height: 0; }

@keyframes mp-spin { to { rotate: 360deg; } }

/* 5b Screens (Startseite scrollt Screen für Screen) ---------------------- */
/* Nur auf der Startseite rastet das Scrollen am Beginn jedes Screens ein.
   Der Header ist fix; scroll-padding-top (oben) hält den Screen darunter. */
html:has(body.home) { scroll-snap-type: y mandatory; }
.mp-hero,
.mp-screen,
.mp-elementor-screens > .elementor > .e-con,
.mp-elementor-screens > .elementor > .e-div-block { scroll-snap-align: start; }
.mp-screen {
	display: grid;
	align-items: center;
	min-height: calc(100svh - var(--mp-header-h));
	padding-block: clamp(2.5rem, 6vh, 5rem);
}

/* Screen 2: Die drei Seiten der Medaille */
.mp-medal { position: relative; isolation: isolate; background: var(--mp-bg); }
/* Weicher, langer Übergang vom Hero: das Grün der Kreise läuft als Schein unter
   der Schale aus und verblasst in mehreren Stufen zu Weiß. Höhe und Stärke hier
   einstellen (--mp-glow-h, Alpha-Werte). */
.mp-medal::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	z-index: -1;
	height: var(--mp-glow-h);
	pointer-events: none;
	background: radial-gradient(ellipse 52% var(--mp-glow-h) at 50% 0%,
		rgba(20, 226, 164, 0.34) 0%,
		rgba(20, 198, 145, 0.20) 28%,
		rgba(110, 193, 228, 0.10) 55%,
		rgba(110, 193, 228, 0) 80%);
}
.mp-medal__in { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: var(--mp-gutter); text-align: center; }
.mp-medal__title { margin: 0 0 0.75rem; font-size: clamp(1.75rem, 2.5vw + 1rem, 3rem); }
.mp-medal__lead { max-width: 38rem; margin: 0 auto clamp(2rem, 6vh, 3.5rem); color: var(--mp-muted); }
.mp-medal__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	margin: 0;
	padding: 0;
	list-style: none;
}
.mp-medal__item { display: flex; flex-direction: column; align-items: center; }
.mp-medal__icon { width: clamp(5rem, 9vw, 8rem); height: auto; margin-bottom: 1.25rem; }
.mp-medal__name { margin: 0; font-size: clamp(1.2rem, 1vw + 1rem, 1.6rem); }
.mp-medal__sub { margin: 0.25rem 0 0; color: var(--mp-brand-deep); font-weight: 600; }
.mp-medal__tags { margin: 0.5rem 0 1.5rem; color: var(--mp-muted); font-size: 0.9375rem; }
.mp-medal__item .mp-btn { margin-top: auto; }

@media (max-width: 800px) {
	.mp-medal__grid { grid-template-columns: 1fr; gap: 2.25rem; }
	.mp-medal__icon { width: 5rem; margin-bottom: 0.75rem; }
	.mp-medal__tags { margin-bottom: 1rem; }
}
/* Sehr niedrige Fenster: nicht erzwingen, sonst wird Inhalt abgeschnitten. */
@media (max-height: 520px) {
	html:has(body.home) { scroll-snap-type: y proximity; }
}

/* 6 Karten (Wissen & Projekte) ------------------------------------------- */
.mp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
	gap: clamp(1.25rem, 3vw, 2.25rem);
}
.mp-card {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	border-radius: clamp(1.5rem, 4vw, 3.125rem);
	background: var(--mp-surface);
	box-shadow: 10px 20px 80px rgba(7, 65, 154, 0.25);
	isolation: isolate;
}
.mp-card__link { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.mp-card__media { position: absolute; inset: 0; }
.mp-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--mp-ease); }
.mp-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(313deg, var(--mp-blue) 0%, var(--mp-blue-2) 100%);
	opacity: 0;
	transition: opacity 0.7s var(--mp-ease);
}
.mp-card__body {
	position: absolute;
	inset: auto 0 0;
	z-index: 2;
	display: grid;
	gap: 0.5rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	background: linear-gradient(to top, rgba(20, 19, 31, 0.78), transparent);
}
.mp-card__title { margin: 0; font-size: clamp(1.15rem, 1vw + 0.9rem, 1.5rem); color: #fff; }
.mp-card__text { margin: 0; max-height: 0; overflow: hidden; opacity: 0; font-size: 0.9375rem; transition: max-height 0.7s var(--mp-ease), opacity 0.7s var(--mp-ease); }
.mp-card__more { font-size: 0.875rem; font-weight: 600; color: var(--mp-brand-bright); }
.mp-card__more::after { content: " \2192"; display: inline-block; transition: transform 0.25s var(--mp-ease); }

.mp-card:hover .mp-card__media img,
.mp-card:focus-within .mp-card__media img { transform: scale(1.05); }
.mp-card:hover .mp-card__media::after,
.mp-card:focus-within .mp-card__media::after { opacity: 0.85; }
.mp-card:hover .mp-card__text,
.mp-card:focus-within .mp-card__text { max-height: 8rem; opacity: 1; }
.mp-card:hover .mp-card__more::after { transform: translateX(4px); }
@media (hover: none) {
	.mp-card__text { max-height: 8rem; opacity: 1; }
}

/* 7 Seiten --------------------------------------------------------------- */
.mp-page,
.mp-archive { max-width: 62rem; margin: 0 auto; padding: clamp(2rem, 6vw, 5rem) var(--mp-gutter); }
.mp-archive { max-width: 1140px; }
.mp-page__head h1,
.mp-archive__head h1 { margin: 0 0 1.5rem; font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem); }
.mp-page__skills { margin: 0 0 0.5rem; color: var(--mp-brand-deep); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.mp-page__skills a { text-decoration: none; }
.mp-page__media { margin: 0 0 2rem; }
.mp-page__media img { border-radius: clamp(1rem, 3vw, 2rem); }
.mp-prose { max-width: 44rem; }
.mp-prose a { color: var(--mp-blue); }

/* Links in Texten und Seiten: Logo-Grün (nicht Menü, Buttons, Karten) */
:is(.mp-prose, .mp-page__body, .mp-page__content, .entry-content, .elementor) :is(p, li, h1, h2, h3, h4, span, td) a:not([class*="button"]):not(.mp-btn):not(.mp-card__link),
.mp-prose a,
.mp-prose .elementor a:not([class*="button"]),
.e-paragraph-base a,
.e-heading-base a {
	color: var(--mp-link);
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.2em;
	transition: color 0.2s;
}
:is(.mp-prose, .mp-page__body, .mp-page__content, .entry-content, .elementor) :is(p, li, h1, h2, h3, h4, span, td) a:not([class*="button"]):not(.mp-btn):not(.mp-card__link):hover,
.mp-prose a:hover,
.mp-prose .elementor a:not([class*="button"]):hover,
.e-paragraph-base a:hover,
.e-heading-base a:hover {
	color: var(--mp-link-hover);
}
/* Rechtstexte aus Elementor-Bausteinen (Überschriften + Absätze) */
.mp-prose .elementor :is(h2, h3, p) { display: block; }
.mp-prose .elementor h2 { margin: 2.75rem 0 0.75rem; font-family: var(--mp-font-heading); font-size: clamp(1.4rem, 1.2vw + 1.1rem, 1.8rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--mp-ink); }
.mp-prose .elementor h2:first-child { margin-top: 0; }
.mp-prose .elementor h3 { margin: 2rem 0 0.5rem; font-family: var(--mp-font-heading); font-size: 1.125rem; font-weight: 600; line-height: 1.3; color: var(--mp-ink); }
.mp-prose .elementor p { margin: 0 0 1rem; line-height: 1.7; overflow-wrap: anywhere; }
.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pagination .page-numbers { padding: 0.5rem 0.9rem; border: 1px solid var(--mp-line); border-radius: 0.25rem; text-decoration: none; }
.pagination .current { border-color: var(--mp-brand); background: var(--mp-brand-bright); color: #14131f; }

/* 8 Footer & Nach-oben-Button -------------------------------------------- */
.mp-footer { border-top: 1px solid var(--mp-line); background: var(--mp-surface); scroll-snap-align: end; }
/* Wie der Header: Logo mittig, links und rechts davon je ein Textfeld. */
.mp-footer__in {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 0 1.5rem;
	max-width: 1210px;
	margin-inline: auto;
	padding: 0.75rem var(--mp-gutter);
	font-family: var(--mp-font-body);
	font-size: 1rem;
	color: var(--mp-brand);
}
.mp-footer__logo { display: block; justify-self: center; line-height: 0; }
.mp-footer__img { display: block; width: clamp(4.25rem, 6vw, 5.5rem); height: auto; }
.mp-footer__side { margin: 0; }
.mp-footer__link { color: inherit; text-decoration: none; transition: color 0.2s; }
.mp-footer__link:hover,
.mp-footer__link:focus-visible { color: var(--mp-brand-deep); text-decoration: underline; text-underline-offset: 0.2em; }
.mp-footer__side--l { text-align: right; }
.mp-footer__side--r { text-align: left; }
.mp-footer__nav { grid-column: 1 / -1; justify-self: center; }
@media (max-width: 600px) {
	/* Handy: Logo oben (25 % kleiner), darunter zwei Zeilen – Umbruch vor „Alle“. */
	.mp-footer__in {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 0.25rem;
		padding: 0.75rem 0.75rem 2rem;
		font-size: 1rem;
	}
	.mp-footer__img { width: 3.1875rem; }
	.mp-footer__logo, .mp-footer__side--l, .mp-footer__side--r { grid-column: 1; }
	.mp-footer__logo { grid-row: 1; }
	.mp-footer__side--l { grid-row: 2; }
	.mp-footer__side--r { grid-row: 3; }
	.mp-footer__side--l, .mp-footer__side--r { text-align: center; white-space: nowrap; }
}

.mp-menu--footer a { padding: 0.4rem 0.6rem; border-top: 0; color: var(--mp-muted); }
.mp-menu--footer a:hover { color: var(--mp-brand-deep); }

.mp-totop {
	position: fixed;
	right: clamp(1rem, 3vw, 1.75rem);
	bottom: clamp(1rem, 3vw, 1.75rem);
	z-index: 900;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border: 0;
	border-radius: 50%;
	background: var(--mp-brand);
	color: #fff;
	box-shadow: 0 10px 28px -8px rgba(11, 122, 88, 0.6);
	cursor: pointer;
	opacity: 0;
	translate: 0 0.75rem;
	transition: opacity 0.3s, translate 0.3s var(--mp-ease), background-color 0.2s;
}
.mp-totop[hidden] { display: none; }
.mp-totop.is-visible { opacity: 1; translate: 0 0; }
.mp-totop:hover { background: var(--mp-brand-deep); }

/* 9 Hilfen & Seitenübergang ---------------------------------------------- */
.mp-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.mp-skip {
	position: fixed;
	left: 1rem;
	top: -4rem;
	z-index: 2000;
	padding: 0.75rem 1.25rem;
	border-radius: 0.25rem;
	background: var(--mp-ink);
	color: #fff;
	transition: top 0.2s;
}
.mp-skip:focus { top: 1rem; }

.mp-fx .mp-main { animation: mp-in 0.45s var(--mp-ease) 0.05s both; }
.mp-fx.is-leaving .mp-main { opacity: 0; transition: opacity 0.25s ease-in; }
@keyframes mp-in { from { opacity: 0; translate: 0 0.5rem; } }

/* 10 Dunkelmodus --------------------------------------------------------- */
@media not all {
	:root {
		--mp-bg: #14131f;
		--mp-surface: #1f1e2e;
		--mp-line: #2e2d42;
		--mp-ink: #f2f2f7;
		--mp-muted: #a9a7bd;
		--mp-brand-deep: #4fe0b6;
	}
	.mp-hero__bowl { box-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.7); }
	.mp-btn:hover, .mp-btn:focus-visible { color: #14131f; }
}

/* 11 Bewegung reduzieren ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
	.mp-hero__ring { animation: none; }
}

/* EKG-Anzeige (Seite Intensivpflege) -------------------------------------- */
.mp-ekg { margin: 0 0 clamp(2rem, 5vw, 3.5rem); }
.mp-ekg__screen { position: relative; padding: 0.75rem; border-radius: 1rem; background: #0b1511; }
.mp-ekg__canvas { display: block; width: 100%; height: clamp(150px, 26vw, 240px); }
.mp-ekg__readout {
	position: absolute;
	top: 1.25rem;
	right: 1.5rem;
	margin: 0;
	color: #3ddc84;
	font: 600 clamp(1.5rem, 3vw, 2.25rem)/1 var(--mp-font-heading);
	letter-spacing: -0.02em;
}
.mp-ekg__unit { font-size: 0.5em; font-weight: 500; opacity: 0.75; }
.mp-ekg__control { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.mp-ekg__label { font: 600 0.9375rem/1.2 var(--mp-font-body); color: var(--mp-ink); }
.mp-ekg__range { flex: 1; min-width: 0; accent-color: #1f9d5b; }
.mp-ekg__value { min-width: 5.5rem; text-align: right; font: 600 0.9375rem/1.2 var(--mp-font-body); color: var(--mp-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
	.mp-ekg__control { flex-wrap: wrap; }
	.mp-ekg__range { flex-basis: 100%; order: 3; }
}

/* ==========================================================================
   Timeline (Happy Addons „Horizontal Timeline“): kompakter auf Tablet/Mobil.
   Desktop bleibt unverändert, hier wird nur die Größe angepasst.
   ========================================================================== */
@media (max-width: 1024px) {
	.elementor-widget-ha-horizontal-timeline .ha-horizontal-timeline-block { padding-left: 14px !important; padding-right: 14px !important; }
	.elementor-widget-ha-horizontal-timeline .ha-horizontal-timeline-icon-box { height: auto !important; margin-bottom: 8px !important; }
	.elementor-widget-ha-horizontal-timeline .ha-horizontal-timeline-top-inner { height: 36px !important; }
	.elementor-widget-ha-horizontal-timeline .ha-horizontal-timeline-icon { width: 36px !important; height: 36px !important; font-size: 13px !important; }
	.elementor-widget-ha-horizontal-timeline .ha-horizontal-timeline-date { font-size: 15px !important; }
	.elementor-widget-ha-horizontal-timeline .ha-horizontal-timeline-inner { padding: 14px !important; }
	.elementor-widget-ha-horizontal-timeline .ha-horizontal-timeline-image { width: 100% !important; height: auto !important; margin-bottom: 12px !important; }
	.elementor-widget-ha-horizontal-timeline .ha-horizontal-timeline-image img { width: 100% !important; height: clamp(110px, 18vw, 140px) !important; object-fit: contain !important; }
	.elementor-widget-ha-horizontal-timeline .ha-horizontal-timeline-title { font-size: 15px !important; line-height: 1.3 !important; margin-bottom: 8px !important; }
	.elementor-widget-ha-horizontal-timeline .ha-horizontal-timeline-description,
	.elementor-widget-ha-horizontal-timeline .ha-horizontal-timeline-description p { font-size: 13px !important; line-height: 1.5 !important; }
	.elementor-widget-ha-horizontal-timeline .slick-arrow { width: 32px !important; height: 32px !important; }
}
@media (max-width: 600px) {
	.elementor-widget-ha-horizontal-timeline .ha-horizontal-timeline-block { padding-left: 8px !important; padding-right: 8px !important; }
	.elementor-widget-ha-horizontal-timeline .ha-horizontal-timeline-top-inner { height: 30px !important; }
	.elementor-widget-ha-horizontal-timeline .ha-horizontal-timeline-icon { width: 30px !important; height: 30px !important; font-size: 11px !important; }
	.elementor-widget-ha-horizontal-timeline .ha-horizontal-timeline-date { font-size: 14px !important; }
	.elementor-widget-ha-horizontal-timeline .ha-horizontal-timeline-inner { padding: 12px !important; }
	.elementor-widget-ha-horizontal-timeline .ha-horizontal-timeline-image img { height: 105px !important; }
	.elementor-widget-ha-horizontal-timeline .ha-horizontal-timeline-title { font-size: 14px !important; }
	.elementor-widget-ha-horizontal-timeline .ha-horizontal-timeline-description,
	.elementor-widget-ha-horizontal-timeline .ha-horizontal-timeline-description p { font-size: 12.5px !important; }
	.elementor-widget-ha-horizontal-timeline .slick-arrow { width: 28px !important; height: 28px !important; }
}

/* ==========================================================================
   TEST: Inhaltsseiten (Seiten/Beiträge mit .mp-page, nicht der Hero) beginnen
   direkt unter dem Header in Logo-Grün und laufen schnell nach Weiß aus.
   Zum Entfernen diesen Block löschen.
   ========================================================================== */
.mp-main:has(> .mp-page) {
	--mp-fade-h: 1.75rem; /* Länge des Verlaufs unterhalb des Headers */
	background-image: linear-gradient(
		to bottom,
		var(--mp-link) 0,
		var(--mp-link) var(--mp-header-h),
		rgba(47, 172, 102, 0.55) calc(var(--mp-header-h) + var(--mp-fade-h) * 0.3),
		rgba(47, 172, 102, 0.14) calc(var(--mp-header-h) + var(--mp-fade-h) * 0.7),
		#fff calc(var(--mp-header-h) + var(--mp-fade-h))
	);
	background-repeat: no-repeat;
}

/* Eyecatcher vor der Seitenüberschrift (Seite "Tracheotomie"):
   Bild steht direkt vor der Headline, Höhe = 2 × Schrifthöhe der Headline. */
.page-id-85 .mp-page__head h1::before {
  content: "";
  display: inline-block;
  height: 2em;
  width: 1.31em; /* Seitenverhältnis 392:600 */
  margin-right: 0.35em;
  vertical-align: middle;
  background: url("../img/tracheo-kopf.png") center / contain no-repeat;
}

/* Eyecatcher vor der Seitenüberschrift (Seite "Beatmung"), Höhe = 2 × Schrifthöhe */
.page-id-84 .mp-page__head h1::before {
  content: "";
  display: inline-block;
  height: 2em;
  width: 2.13em; /* Seitenverhältnis 144,77:136,12 */
  margin-right: 0.35em;
  vertical-align: middle;
  background: url("../img/beatmung.svg") center / contain no-repeat;
}

/* Eyecatcher vor der Seitenüberschrift (Seite "Schulungen"), Höhe = 2 × Schrifthöhe */
.page-id-132 .mp-page__head h1::before {
  content: "";
  display: inline-block;
  height: 2em;
  width: 2em; /* quadratisch */
  margin-right: 0.35em;
  vertical-align: middle;
  background: url("../img/schulungen.png") center / contain no-repeat;
}
