/**
 * Webauftritt des Alterswohn- und Pflegeheims Magda.
 *
 * Dieselbe Formensprache wie der Bildschirm im Eingang (Magda Signage):
 * Foto-Bühnen mit dunklem Verlauf, Saira in gesperrten Versalien für
 * Beschriftungen, grosse Uhrzeit, Tagesband mit Punkten, Kacheln mit
 * Symbolkreis, Karten mit farbiger Seitenlinie – und die beiden Bögen aus
 * dem Magda-Logo als leises Motiv.
 *
 * Farben: Magda-Blau #0067b1 aus dem Logo. Für Text auf Blau und blaue
 * Schrift wird die abgedunkelte Stufe #00528f verwendet (über 7:1 auf
 * Weiss). Die warme Akzentfarbe (Abendlicht über dem See) erscheint nur als
 * Markierung und Fokusrahmen; als Schrift wird sie auf #8a4210 abgedunkelt.
 *
 * Fliesstext 18 px aufwärts, Trefferflächen mindestens 48 px:
 * die Seite richtet sich an ältere Menschen und ihre Angehörigen.
 *
 * @package Magda_Website
 */

:root {
	--mw-blue: #0067b1;
	--mw-blue-text: #00528f;
	--mw-navy: #0a3358;
	--mw-navy-deep: #061c33;
	--mw-ink: #231f20;
	--mw-text: #3b3738;
	--mw-muted: #5f5a5b;
	--mw-gray: #a7a9ac;
	--mw-line: #e1e7ee;
	--mw-surface: #f3f5f8;
	--mw-tint: #e6f0f9;
	--mw-accent: #d9772b;
	--mw-accent-text: #8a4210;
	--mw-error: #b3261e;
	--mw-white: #ffffff;

	--mw-font: "Poppins", "Helvetica Neue", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
	--mw-display: "Saira", "Poppins", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;

	--mw-radius: 20px;
	--mw-radius-small: 12px;
	--mw-shadow: 0 1px 2px rgba(35, 31, 32, 0.04), 0 10px 28px rgba(10, 51, 88, 0.07);
	--mw-shadow-strong: 0 1px 3px rgba(35, 31, 32, 0.05), 0 18px 40px rgba(10, 51, 88, 0.11);
	--mw-shadow-hover: 0 2px 6px rgba(35, 31, 32, 0.06), 0 24px 48px rgba(10, 51, 88, 0.14);

	/* Eine Bewegungssprache für alles: rasch los, weich auslaufend. */
	--mw-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--mw-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--mw-fast: 0.2s;
	--mw-medium: 0.35s;
	--mw-slow: 0.7s;
	--mw-gutter: clamp(20px, 4vw, 48px);
	--mw-section: clamp(56px, 8vw, 112px);
	--mw-header: 88px;
}

/* --------------------------------------------------------------------------
 * Grundlage
 * ----------------------------------------------------------------------- */

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--mw-header) + 16px);
}

body.magda-web {
	background: var(--mw-white);
	color: var(--mw-text);
	font-family: var(--mw-font);
	font-size: clamp(17px, 1.05vw + 12px, 19px);
	line-height: 1.65;
	margin: 0;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

.magda-web img {
	display: block;
	height: auto;
	max-width: 100%;
}

.magda-web a {
	color: var(--mw-blue-text);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.magda-web a:hover {
	color: var(--mw-blue);
}

.magda-web h1,
.magda-web h2,
.magda-web h3,
.magda-web h4 {
	color: var(--mw-ink);
	font-family: var(--mw-display);
	font-weight: 600;
	line-height: 1.12;
	margin: 0 0 0.5em;
}

.magda-web p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

/* Poppins liegt in 400 und 600 vor; fett ist hier 600. */
.magda-web strong,
.magda-web b {
	font-weight: 600;
}

.magda-web ul,
.magda-web ol {
	margin: 0;
	padding: 0;
}

.magda-web figure {
	margin: 0;
}

.magda-web :focus-visible {
	border-radius: 6px;
	outline: 3px solid var(--mw-accent);
	outline-offset: 3px;
}

.mw-main:focus {
	outline: none;
}

.mw-container {
	margin-inline: auto;
	width: min(1240px, 100% - 2 * var(--mw-gutter));
}

.mw-visually-hidden {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.mw-skip {
	background: var(--mw-navy);
	border-radius: 0 0 12px 12px;
	color: var(--mw-white);
	font-weight: 600;
	left: 24px;
	padding: 0.8em 1.2em;
	position: absolute;
	top: -200px;
	z-index: 1000;
}

.mw-skip:focus {
	color: var(--mw-white);
	top: 0;
}

.mw-icon {
	flex: none;
	height: 1.15em;
	width: 1.15em;
}

.mw-muted {
	color: var(--mw-muted);
}

/* --------------------------------------------------------------------------
 * Beschriftungen, Knöpfe, Marken
 * ----------------------------------------------------------------------- */

.mw-label {
	align-items: center;
	color: var(--mw-muted);
	display: inline-flex;
	font-family: var(--mw-display);
	font-size: 0.86rem;
	font-weight: 600;
	gap: 0.5em;
	letter-spacing: 0.18em;
	line-height: 1.4;
	margin: 0 0 0.9em;
	text-transform: uppercase;
}

.magda-web h3.mw-label {
	color: var(--mw-blue-text);
	font-size: 0.86rem;
}

.mw-label--accent,
.mw-label--accent a {
	color: var(--mw-blue-text);
	text-decoration: none;
}

.mw-label--light {
	color: rgba(255, 255, 255, 0.9);
}

/* Ein kurzer Strich in der Akzentfarbe vor Abschnittsbeschriftungen –
   derselbe Takt wie die Beschriftungen am Bildschirm. */
p.mw-label--accent::before,
p.mw-label--light::before {
	background: var(--mw-accent);
	border-radius: 2px;
	content: "";
	flex: none;
	height: 2px;
	width: 26px;
}

p.mw-label--accent:has(> svg)::before {
	content: none;
}

.mw-btn {
	align-items: center;
	border: 2px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	font-family: var(--mw-font);
	font-size: 1rem;
	font-weight: 600;
	gap: 0.55em;
	justify-content: center;
	line-height: 1.25;
	min-height: 52px;
	padding: 0.75em 1.5em;
	text-decoration: none;
	transition:
		background-color var(--mw-fast) var(--mw-ease),
		color var(--mw-fast) var(--mw-ease),
		border-color var(--mw-fast) var(--mw-ease),
		transform var(--mw-medium) var(--mw-ease-out),
		box-shadow var(--mw-medium) var(--mw-ease);
}

.mw-btn:hover {
	transform: translateY(-2px);
}

.mw-btn:active {
	transform: translateY(0) scale(0.98);
	transition-duration: 0.08s;
}

.magda-web .mw-btn--primary {
	background: var(--mw-blue-text);
	color: var(--mw-white);
}

.magda-web .mw-btn--primary:hover {
	background: var(--mw-navy);
	color: var(--mw-white);
}

.magda-web .mw-btn--light {
	background: var(--mw-white);
	color: var(--mw-blue-text);
}

.magda-web .mw-btn--light:hover {
	background: var(--mw-tint);
	color: var(--mw-navy);
}

.magda-web .mw-btn--outline-light {
	border-color: rgba(255, 255, 255, 0.75);
	color: var(--mw-white);
}

.magda-web .mw-btn--outline-light:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: var(--mw-white);
	color: var(--mw-white);
}

.magda-web .mw-btn--ghost {
	background: var(--mw-tint);
	color: var(--mw-blue-text);
}

.magda-web .mw-btn--ghost:hover {
	background: #d6e6f5;
	color: var(--mw-navy);
}

.mw-btn--small {
	font-size: 0.92rem;
	min-height: 44px;
	padding: 0.5em 1.1em;
}

.mw-btn--large {
	font-size: 1.1rem;
	min-height: 60px;
	padding: 0.9em 2em;
}

.mw-more {
	align-items: center;
	display: inline-flex;
	font-weight: 600;
	gap: 0.4em;
	text-decoration: none;
}

.mw-more .mw-icon {
	transition: transform 0.2s ease;
}

.mw-more:hover .mw-icon {
	transform: translateX(4px);
}

.mw-chip {
	background: var(--mw-blue-text);
	border-radius: 999px;
	color: var(--mw-white);
	display: inline-block;
	font-family: var(--mw-font);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.4;
	padding: 0.18em 0.75em;
	text-transform: none;
	vertical-align: middle;
}

.mw-chip--accent {
	background: var(--mw-accent-text);
}

.mw-chip--quiet {
	background: var(--mw-line);
	color: var(--mw-text);
}

.mw-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.mw-status {
	align-items: center;
	background: var(--mw-white);
	border-left: 5px solid var(--mw-accent);
	border-radius: var(--mw-radius-small);
	box-shadow: var(--mw-shadow);
	color: var(--mw-ink);
	display: inline-flex;
	font-weight: 600;
	gap: 0.6em;
	margin: 0.5em 0 0;
	padding: 0.7em 1.1em;
}

.mw-status .mw-icon {
	color: var(--mw-accent-text);
}

.mw-status--dark {
	background: var(--mw-surface);
	box-shadow: none;
}

.mw-card {
	background: var(--mw-white);
	border-radius: var(--mw-radius);
	box-shadow: var(--mw-shadow);
}

/* --------------------------------------------------------------------------
 * Kopf
 * ----------------------------------------------------------------------- */

.mw-topbar {
	background: var(--mw-navy);
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.88rem;
}

.mw-topbar__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 28px;
	justify-content: flex-end;
	padding-block: 8px;
}

.mw-topbar__item {
	align-items: center;
	color: inherit;
	display: inline-flex;
	gap: 0.45em;
}

.magda-web .mw-topbar a {
	color: inherit;
	text-decoration: none;
}

.magda-web .mw-topbar a:hover {
	color: var(--mw-white);
	text-decoration: underline;
}

.mw-topbar__item--address {
	margin-right: auto;
}

.mw-header {
	backdrop-filter: saturate(1.4) blur(12px);
	background: rgba(255, 255, 255, 0.92);
	border-bottom: 1px solid transparent;
	position: sticky;
	top: 0;
	transition: box-shadow var(--mw-medium) var(--mw-ease), border-color var(--mw-medium) var(--mw-ease), background-color var(--mw-medium) var(--mw-ease);
	z-index: 100;
}

.admin-bar .mw-header {
	top: 32px;
}

.mw-header.is-scrolled {
	background: rgba(255, 255, 255, 0.86);
	border-color: rgba(225, 231, 238, 0.8);
	box-shadow: 0 8px 24px rgba(10, 51, 88, 0.06);
}

.mw-header__inner {
	align-items: center;
	display: flex;
	gap: 24px;
	min-height: var(--mw-header);
	transition: min-height var(--mw-medium) var(--mw-ease);
}

/* Beim Scrollen wird der Kopf schmaler – das Logo schrumpft mit, ohne das
   Layout neu zu berechnen. */
.mw-header.is-scrolled .mw-header__inner {
	min-height: calc(var(--mw-header) - 16px);
}

.mw-brand__logo {
	transform-origin: left center;
	transition: transform var(--mw-medium) var(--mw-ease);
}

.mw-header.is-scrolled .mw-brand__logo {
	transform: scale(0.86);
}

.mw-brand {
	display: block;
	flex: none;
}

/* Feste Breite: im schrumpfenden Flex-Element fiele ein Logo mit
   prozentualer Maximalbreite sonst auf null zusammen. */
.magda-web .mw-brand__logo {
	height: auto;
	max-width: none;
	width: 208px;
}

.mw-burger {
	align-items: center;
	background: var(--mw-tint);
	border: 0;
	border-radius: 999px;
	color: var(--mw-blue-text);
	cursor: pointer;
	display: none;
	font: 600 1rem var(--mw-font);
	gap: 0.5em;
	margin-left: auto;
	min-height: 52px;
	padding: 0.6em 1.2em;
}

.mw-burger__close {
	display: none;
}

.mw-burger[aria-expanded="true"] .mw-burger__close {
	display: inline-flex;
}

.mw-burger[aria-expanded="true"] .mw-burger__open {
	display: none;
}

.mw-nav {
	align-items: center;
	display: flex;
	gap: 20px;
	margin-left: auto;
}

.mw-nav__list {
	align-items: center;
	display: flex;
	gap: 2px;
	list-style: none;
}

.mw-nav__item {
	align-items: center;
	display: flex;
	position: relative;
}

.magda-web .mw-nav__link {
	border-radius: 999px;
	color: var(--mw-ink);
	font-size: 0.98rem;
	font-weight: 400;
	padding: 0.55em 0.8em;
	text-decoration: none;
	transition: background-color var(--mw-fast) var(--mw-ease), color var(--mw-fast) var(--mw-ease);
}

.magda-web .mw-nav__link:hover {
	background: var(--mw-tint);
	color: var(--mw-blue-text);
}

.magda-web .mw-nav__item.is-current > .mw-nav__link {
	background: var(--mw-blue-text);
	color: var(--mw-white);
}

.mw-nav__item--parent > .mw-nav__link {
	padding-right: 0.35em;
}

.mw-nav__toggle {
	align-items: center;
	background: none;
	border: 0;
	border-radius: 999px;
	color: var(--mw-muted);
	cursor: pointer;
	display: inline-flex;
	height: 36px;
	justify-content: center;
	padding: 0;
	width: 30px;
}

.mw-nav__toggle .mw-icon {
	height: 18px;
	transition: transform 0.2s ease;
	width: 18px;
}

.mw-nav__item.is-open .mw-nav__toggle .mw-icon {
	transform: rotate(180deg);
}

.mw-nav__sub {
	background: var(--mw-white);
	border-radius: 16px;
	box-shadow: var(--mw-shadow-strong);
	left: 0;
	list-style: none;
	min-width: 260px;
	opacity: 0;
	padding: 10px;
	pointer-events: none;
	position: absolute;
	top: calc(100% + 6px);
	transform: translateY(8px);
	transition: opacity var(--mw-fast) var(--mw-ease), transform var(--mw-medium) var(--mw-ease-out), visibility 0s linear var(--mw-fast);
	visibility: hidden;
	z-index: 10;
}

.mw-nav__sub::before {
	content: "";
	height: 12px;
	left: 0;
	position: absolute;
	right: 0;
	top: -12px;
}

.mw-nav__item--parent:hover > .mw-nav__sub,
.mw-nav__item--parent:focus-within > .mw-nav__sub,
.mw-nav__item.is-open > .mw-nav__sub {
	opacity: 1;
	pointer-events: auto;
	transform: none;
	transition-delay: 0s;
	visibility: visible;
}

.magda-web .mw-nav__sub a {
	border-radius: 10px;
	color: var(--mw-ink);
	display: block;
	font-size: 0.96rem;
	padding: 0.6em 0.9em;
	text-decoration: none;
}

.magda-web .mw-nav__sub a:hover {
	background: var(--mw-tint);
	color: var(--mw-blue-text);
}

.mw-nav__call {
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
 * Startseite: Foto-Bühne
 * ----------------------------------------------------------------------- */

.mw-hero {
	background: linear-gradient(155deg, var(--mw-blue-text), var(--mw-navy) 80%);
	/* Ein weicher Bogen als unterer Abschluss – wie die Bögen im Logo. */
	border-radius: 0 0 50% 50% / 0 0 clamp(28px, 4vw, 64px) clamp(28px, 4vw, 64px);
	color: var(--mw-white);
	display: flex;
	isolation: isolate;
	min-height: clamp(560px, calc(100svh - 150px), 900px);
	overflow: hidden;
	position: relative;
}

.mw-hero__media {
	inset: 0;
	position: absolute;
	z-index: -3;
}

.mw-hero__img {
	height: 100% !important;
	object-fit: cover;
	width: 100%;
}

.mw-hero__scrim {
	background:
		linear-gradient(to bottom, rgba(4, 12, 24, 0.45), rgba(4, 12, 24, 0) 28%),
		linear-gradient(to top, rgba(4, 12, 24, 0.9), rgba(4, 12, 24, 0.45) 45%, rgba(4, 12, 24, 0.06) 72%);
	inset: 0;
	position: absolute;
	z-index: -2;
}

.mw-hero__mark,
.mw-pagehead__mark,
.mw-footer__mark {
	aspect-ratio: 71.5 / 20.4;
	background: url("../img/magda-mark.svg") no-repeat center bottom / contain;
	pointer-events: none;
	position: absolute;
}

.mw-hero__mark {
	bottom: -2%;
	opacity: 0.14;
	right: -6%;
	width: min(820px, 62vw);
	z-index: -1;
}

.mw-hero__inner {
	align-items: end;
	display: grid;
	gap: 40px;
	grid-template-columns: minmax(0, 1fr) auto;
	padding-block: clamp(96px, 14vh, 160px) clamp(96px, 12vh, 140px);
}

.mw-hero__text {
	max-width: 920px;
}

.magda-web .mw-hero__title {
	color: var(--mw-white);
	font-size: clamp(2.6rem, 5.4vw, 4.8rem);
	letter-spacing: -0.01em;
	line-height: 1.02;
	margin-bottom: 0.35em;
	text-wrap: balance;
}

.mw-hero__lead {
	font-size: clamp(1.1rem, 1.5vw, 1.35rem);
	line-height: 1.55;
	max-width: 40em;
	opacity: 0.96;
}

.mw-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 1.6em;
}

/* Die Uhr wie auf dem Bildschirm im Eingang. */
.mw-now {
	backdrop-filter: blur(10px);
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 24px;
	color: var(--mw-white);
	min-width: 280px;
	padding: 22px 30px 24px;
}

.mw-now p {
	margin: 0;
}

.mw-now__time {
	font-family: var(--mw-display);
	font-size: clamp(3.4rem, 5.5vw, 5.4rem);
	font-variant-numeric: tabular-nums;
	font-weight: 300;
	line-height: 1;
}

.mw-now__date {
	font-size: 1.02rem;
	margin-top: 0.35em !important;
}

.mw-now__weather {
	align-items: baseline;
	display: flex;
	font-family: var(--mw-display);
	font-size: 1.6rem;
	font-weight: 400;
	gap: 0.5em;
	margin-top: 0.35em !important;
}

.mw-now__place {
	font-family: var(--mw-font);
	font-size: 0.95rem;
	opacity: 0.9;
}

.mw-notice {
	align-items: center;
	background: #fff5eb;
	border: 1px solid #f4dcc4;
	border-radius: var(--mw-radius);
	color: var(--mw-ink);
	display: flex;
	gap: 14px;
	margin-top: 24px;
	padding: 18px clamp(18px, 3vw, 28px);
}

.mw-notice .mw-icon {
	color: var(--mw-accent-text);
	height: 28px;
	width: 28px;
}

.mw-notice p {
	font-weight: 600;
	margin: 0;
}

/* --------------------------------------------------------------------------
 * Abschnitte
 * ----------------------------------------------------------------------- */

.mw-section {
	padding-block: var(--mw-section);
	position: relative;
}

.mw-section--tint {
	background: var(--mw-surface);
}

.mw-section__head {
	margin-bottom: clamp(28px, 4vw, 48px);
	max-width: 820px;
}

.mw-section__head--row {
	align-items: end;
	display: flex;
	flex-wrap: wrap;
	gap: 16px 40px;
	justify-content: space-between;
	max-width: none;
}

.magda-web .mw-section__title {
	font-size: clamp(1.9rem, 3.4vw, 2.9rem);
	text-wrap: balance;
}

.magda-web .mw-subtitle {
	font-size: 1.45rem;
	margin-top: 1.6em;
}

/* Kacheln wie in der Übersicht des Bildschirms. */
.mw-quick {
	padding-top: 0;
}

.mw-tiles {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	list-style: none;
	margin-top: -72px;
	position: relative;
	z-index: 2;
}

.magda-web .mw-tile {
	background: var(--mw-white);
	border-bottom: 4px solid transparent;
	border-radius: var(--mw-radius);
	box-shadow: var(--mw-shadow-strong);
	color: var(--mw-text);
	display: grid;
	gap: 8px;
	height: 100%;
	padding: 26px 26px 24px;
	text-decoration: none;
	transition: transform var(--mw-medium) var(--mw-ease-out), border-color var(--mw-medium) var(--mw-ease), box-shadow var(--mw-medium) var(--mw-ease);
}

.magda-web .mw-tile:hover {
	border-color: var(--mw-accent);
	box-shadow: var(--mw-shadow-hover);
	color: var(--mw-text);
	transform: translateY(-4px);
}

.mw-tile .mw-tile__icon {
	transition: background-color var(--mw-medium) var(--mw-ease), color var(--mw-medium) var(--mw-ease), transform var(--mw-medium) var(--mw-ease-out);
}

.magda-web .mw-tile:hover .mw-tile__icon {
	background: var(--mw-blue-text);
	color: var(--mw-white);
	transform: scale(1.06);
}

.mw-tile__icon {
	align-items: center;
	background: var(--mw-tint);
	border-radius: 50%;
	color: var(--mw-blue-text);
	display: inline-flex;
	height: 58px;
	justify-content: center;
	margin-bottom: 6px;
	width: 58px;
}

.mw-tile__icon .mw-icon {
	height: 28px;
	width: 28px;
}

.mw-tile__title {
	align-items: center;
	color: var(--mw-ink);
	display: flex;
	flex-wrap: wrap;
	font-family: var(--mw-display);
	font-size: 1.32rem;
	font-weight: 600;
	gap: 0.4em;
	line-height: 1.2;
}

.mw-tile__text {
	color: var(--mw-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

/* --------------------------------------------------------------------------
 * Heute im Magda: Tagesband, Menü, Aktivierungen
 * ----------------------------------------------------------------------- */

.mw-today {
	padding-top: calc(var(--mw-section) * 0.6);
}

/* «.magda-web» im Selektor: die Grundregel für Listen setzt Rand und
   Innenabstand sonst wieder auf null. */
.magda-web .mw-daybar {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	list-style: none;
	margin: 16px 0 40px;
	padding: 52px 0 0;
	position: relative;
}

.mw-daybar::before {
	background: var(--mw-line);
	border-radius: 3px;
	content: "";
	height: 4px;
	left: 0;
	position: absolute;
	right: 0;
	top: 18px;
}

.mw-daybar__item {
	display: grid;
	justify-items: center;
	position: relative;
	text-align: center;
}

.mw-daybar__item::before {
	background: var(--mw-blue);
	border: 4px solid var(--mw-white);
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--mw-line);
	content: "";
	height: 22px;
	position: absolute;
	top: -43px;
	width: 22px;
}

.mw-daybar__item.is-past::before {
	background: var(--mw-gray);
}

.mw-daybar__item.is-current::before {
	background: var(--mw-accent);
	box-shadow: 0 0 0 6px rgba(217, 119, 43, 0.25);
}

.mw-daybar__item.is-current::after {
	background: var(--mw-accent-text);
	border-radius: 999px;
	color: var(--mw-white);
	content: "jetzt";
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.1em 0.7em;
	position: absolute;
	top: -76px;
}

.mw-daybar__time {
	color: var(--mw-ink);
	font-family: var(--mw-display);
	font-size: 1.35rem;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.mw-daybar__label {
	color: var(--mw-muted);
}

.mw-daybar__item.is-current .mw-daybar__time,
.mw-daybar__item.is-current .mw-daybar__label {
	color: var(--mw-accent-text);
	font-weight: 600;
}

.mw-today__grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mw-today__grid .mw-card {
	display: flex;
	flex-direction: column;
	padding: clamp(24px, 3vw, 36px);
}

/* Der Verweis auf das PDF steht am unteren Rand – auch in der kürzeren Karte. */
.magda-web .mw-today__foot {
	margin: auto 0 0;
	padding-top: 22px;
}

.mw-courses {
	display: grid;
	gap: 14px;
	margin: 0;
}

.mw-courses__row {
	border-top: 1px solid var(--mw-line);
	display: grid;
	gap: 4px 18px;
	grid-template-columns: 150px minmax(0, 1fr);
	padding-top: 14px;
}

.mw-courses dt {
	color: var(--mw-blue-text);
	font-family: var(--mw-display);
	font-weight: 600;
}

.mw-courses dd {
	margin: 0;
}

.mw-agenda {
	display: grid;
	gap: 18px;
	list-style: none;
}

.mw-agenda__item {
	border-left: 4px solid var(--mw-tint);
	padding-left: 18px;
}

.mw-agenda__item p {
	margin: 0;
}

.mw-agenda__when {
	color: var(--mw-blue-text);
	font-family: var(--mw-display);
	font-weight: 600;
}

.mw-agenda__title {
	color: var(--mw-ink);
	font-size: 1.1rem;
	font-weight: 600;
}

.mw-agenda__place {
	color: var(--mw-muted);
	font-size: 0.95rem;
}

.mw-agenda .mw-chip {
	margin-top: 6px;
}

.mw-today__more {
	margin: 28px 0 0;
}

/* --------------------------------------------------------------------------
 * Aktuelles
 * ----------------------------------------------------------------------- */

.mw-news {
	display: grid;
	gap: 24px;
	/* Wie eine Zeitungsseite: die Schlagzeile belegt zwei der drei Spalten über
	   zwei Zeilen, die weiteren Beiträge stapeln sich rechts daneben. */
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mw-newscard {
	background: var(--mw-white);
	border-radius: var(--mw-radius);
	box-shadow: var(--mw-shadow);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: box-shadow var(--mw-medium) var(--mw-ease), transform var(--mw-medium) var(--mw-ease-out);
}

.mw-newscard:hover {
	box-shadow: var(--mw-shadow-hover);
	transform: translateY(-3px);
}

.mw-newscard__media {
	aspect-ratio: 16 / 10;
	background: var(--mw-tint);
	display: block;
	overflow: hidden;
	position: relative;
}

.mw-newscard__media img {
	height: 100%;
	object-fit: cover;
	transition: transform var(--mw-slow) var(--mw-ease-out);
	width: 100%;
}

.mw-newscard:hover .mw-newscard__media img {
	transform: scale(1.04);
}

.mw-newscard__placeholder {
	background: url("../img/magda-mark.svg") no-repeat center / 60%, linear-gradient(155deg, var(--mw-blue-text), var(--mw-navy));
	display: block;
	inset: 0;
	opacity: 0.9;
	position: absolute;
}

.mw-newscard__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px 26px 26px;
}

.mw-newscard__date {
	color: var(--mw-muted);
	font-family: var(--mw-display);
	font-size: 0.86rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	margin-bottom: 0.6em !important;
	text-transform: uppercase;
}

.magda-web .mw-newscard__title {
	font-size: 1.4rem;
}

.magda-web .mw-newscard__title a {
	color: var(--mw-ink);
	text-decoration: none;
}

.magda-web .mw-newscard__title a:hover {
	color: var(--mw-blue-text);
}

.mw-newscard__excerpt {
	color: var(--mw-text);
}

.mw-newscard .mw-more {
	margin-top: auto;
}

/* Die neueste Meldung wird zur Schlagzeile – wie auf dem Bildschirm. */
.mw-newscard--large {
	grid-column: span 2;
	grid-row: span 2;
}

.mw-newscard--large:only-child {
	grid-column: 1 / -1;
	grid-row: auto;
}

.mw-newscard--large .mw-newscard__media {
	aspect-ratio: 3 / 2;
}

.mw-newscard--large .mw-newscard__body {
	padding: clamp(28px, 3vw, 40px);
}

.mw-newscard--large .mw-newscard__excerpt {
	font-size: 1.08rem;
	max-width: 42em;
}

.magda-web .mw-newscard--large .mw-newscard__title {
	font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.mw-pagination {
	margin-top: 48px;
}

.mw-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	list-style: none;
}

.mw-pagination a,
.mw-pagination span {
	align-items: center;
	background: var(--mw-white);
	border: 1px solid var(--mw-line);
	border-radius: 999px;
	display: inline-flex;
	justify-content: center;
	min-height: 48px;
	min-width: 48px;
	padding: 0 1em;
	text-decoration: none;
}

.mw-pagination .current {
	background: var(--mw-blue-text);
	border-color: var(--mw-blue-text);
	color: var(--mw-white);
}

/* --------------------------------------------------------------------------
 * Text und Bild nebeneinander, Kennzahlen, Qualität, Besuch
 * ----------------------------------------------------------------------- */

.mw-split {
	align-items: center;
	display: grid;
	gap: clamp(32px, 6vw, 80px);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mw-split + .mw-container {
	margin-top: clamp(48px, 6vw, 80px);
}

.mw-split--reverse .mw-split__media {
	order: 2;
}

.mw-split__media {
	aspect-ratio: 4 / 3;
	border-radius: 24px;
	box-shadow: var(--mw-shadow);
	overflow: hidden;
}

.mw-split__media img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.mw-split__media--portrait {
	aspect-ratio: 3 / 4;
	justify-self: center;
	max-width: 420px;
	width: 100%;
}

.mw-facts {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
}

.mw-facts__item {
	border-top: 4px solid var(--mw-blue);
	display: grid;
	gap: 4px;
	padding-top: 18px;
}

.mw-facts__value {
	color: var(--mw-blue-text);
	font-family: var(--mw-display);
	font-size: clamp(3rem, 6vw, 4.8rem);
	font-weight: 300;
	line-height: 1;
}

.mw-facts__label {
	color: var(--mw-muted);
}

.mw-quality {
	background: var(--mw-surface);
}

.mw-quality__inner {
	align-items: center;
	display: grid;
	gap: clamp(28px, 5vw, 64px);
	grid-template-columns: auto minmax(0, 1fr);
}

.mw-quality__badge {
	background: var(--mw-white);
	border-radius: var(--mw-radius);
	box-shadow: var(--mw-shadow);
	display: block;
	padding: 18px;
	width: min(260px, 60vw);
}

.mw-visit {
	background:
		radial-gradient(60% 50% at 85% 10%, rgba(255, 255, 255, 0.12), transparent 70%),
		linear-gradient(158deg, var(--mw-blue-text), var(--mw-navy-deep) 82%);
	color: var(--mw-white);
	overflow: hidden;
}

.mw-visit::after {
	aspect-ratio: 71.5 / 20.4;
	background: url("../img/magda-mark.svg") no-repeat center bottom / contain;
	bottom: -2px;
	content: "";
	left: -8%;
	opacity: 0.1;
	pointer-events: none;
	position: absolute;
	width: min(760px, 70vw);
}

.mw-visit__inner {
	align-items: center;
	display: grid;
	gap: clamp(32px, 6vw, 80px);
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	position: relative;
	z-index: 1;
}

.magda-web .mw-visit .mw-section__title {
	color: var(--mw-white);
}

.mw-visit__address {
	align-items: center;
	display: flex;
	font-size: 1.1rem;
	font-weight: 600;
	gap: 0.6em;
}

.mw-visit__media {
	aspect-ratio: 4 / 3;
	border-radius: 24px;
	overflow: hidden;
}

.mw-visit__media img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

/* --------------------------------------------------------------------------
 * Seitenkopf der Unterseiten
 * ----------------------------------------------------------------------- */

.mw-pagehead {
	background: var(--mw-surface);
	display: grid;
	grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
	min-height: clamp(360px, 48vh, 520px);
}

.mw-pagehead__stage {
	background: linear-gradient(155deg, var(--mw-blue-text), var(--mw-navy) 80%);
	overflow: hidden;
	position: relative;
}

.mw-pagehead__img {
	height: 100% !important;
	inset: 0;
	object-fit: cover;
	position: absolute;
	width: 100%;
}

.mw-pagehead__mark {
	bottom: 0;
	opacity: 0.2;
	right: -12%;
	width: 90%;
}

.mw-pagehead__text {
	align-self: center;
	max-width: 900px;
	padding: clamp(40px, 6vw, 88px) clamp(28px, 6vw, 96px);
}

.magda-web .mw-pagehead__title {
	font-size: clamp(2.4rem, 5vw, 4.2rem);
	letter-spacing: -0.01em;
	line-height: 1.04;
	text-wrap: balance;
}

.mw-pagehead__lead {
	font-size: clamp(1.08rem, 1.4vw, 1.3rem);
	max-width: 38em;
}

.mw-pagehead--plain {
	grid-template-columns: minmax(0, 1fr);
	overflow: hidden;
	position: relative;
}

.mw-pagehead--plain::after {
	aspect-ratio: 71.5 / 20.4;
	background: url("../img/magda-mark-color.svg") no-repeat center bottom / contain;
	bottom: 0;
	content: "";
	opacity: 0.12;
	pointer-events: none;
	position: absolute;
	right: -4%;
	width: min(760px, 60vw);
}

.mw-pagehead--plain .mw-pagehead__text {
	margin-inline: auto;
	max-width: none;
	padding-inline: 0;
	width: min(1240px, 100% - 2 * var(--mw-gutter));
}

/* --------------------------------------------------------------------------
 * Über uns
 * ----------------------------------------------------------------------- */

/* Zeitstrahl: das Tagesband des Bildschirms, über hundert Jahre gezogen. */
.mw-timeline {
	counter-reset: none;
	display: grid;
	gap: 24px;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	list-style: none;
	margin-bottom: clamp(40px, 6vw, 72px);
	padding-top: 40px;
	position: relative;
}

.mw-timeline::before {
	background: linear-gradient(90deg, var(--mw-gray), var(--mw-blue));
	border-radius: 3px;
	content: "";
	height: 4px;
	left: 0;
	position: absolute;
	right: 0;
	top: 12px;
}

.mw-timeline__item {
	position: relative;
}

.mw-timeline__item::before {
	background: var(--mw-blue);
	border: 4px solid var(--mw-white);
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--mw-line);
	content: "";
	height: 24px;
	left: 0;
	position: absolute;
	top: -39px;
	width: 24px;
}

.mw-timeline__item:last-child::before {
	background: var(--mw-accent);
}

.mw-timeline__year {
	color: var(--mw-blue-text);
	display: block;
	font-family: var(--mw-display);
	font-size: 2rem;
	font-weight: 600;
	line-height: 1.2;
	margin-bottom: 6px;
}

.mw-timeline__text {
	color: var(--mw-text);
	font-size: 0.98rem;
	margin: 0;
}

.mw-prose {
	max-width: 72ch;
}

.mw-prose--columns {
	max-width: none;
}

@media (min-width: 1000px) {
	.mw-prose--columns {
		column-gap: 64px;
		columns: 2;
	}

	.mw-prose--columns p {
		break-inside: avoid;
	}
}

.mw-people {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	list-style: none;
}

.mw-person {
	align-items: center;
	display: flex;
	flex-direction: column;
	padding: 32px 24px 28px;
	text-align: center;
}

/* Der E-Mail-Knopf steht in allen Karten auf derselben Höhe. */
.mw-person .mw-btn {
	margin-top: auto;
}

.mw-person p {
	margin: 0;
}

.mw-person__initials {
	align-items: center;
	background: var(--mw-tint);
	border-radius: 50%;
	color: var(--mw-blue-text);
	display: flex;
	font-family: var(--mw-display);
	font-size: 1.6rem;
	font-weight: 600;
	height: 80px;
	justify-content: center;
	margin-bottom: 16px;
	width: 80px;
}

.mw-person__name {
	color: var(--mw-ink);
	font-family: var(--mw-display);
	font-size: 1.3rem;
	font-weight: 600;
}

.mw-person__role {
	color: var(--mw-muted);
	padding-bottom: 18px;
}

.mw-board {
	display: grid;
	margin: 0 0 28px;
}

.mw-board__row {
	border-bottom: 1px solid var(--mw-line);
	display: grid;
	gap: 4px 24px;
	grid-template-columns: 180px minmax(0, 1fr);
	padding-block: 12px;
}

.mw-board dt {
	color: var(--mw-blue-text);
	font-family: var(--mw-display);
	font-weight: 600;
}

.mw-board dd {
	margin: 0;
}

.mw-contacts {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	list-style: none;
}

.mw-contact {
	border-left: 6px solid var(--mw-blue);
	padding: 24px 26px;
}

.mw-contact p {
	margin: 0 0 0.4em;
}

.mw-contact__title {
	color: var(--mw-ink);
	font-family: var(--mw-display);
	font-size: 1.2rem;
	font-weight: 600;
}

.mw-contact__phone {
	align-items: center;
	display: inline-flex;
	font-weight: 600;
	gap: 0.4em;
	text-decoration: none;
}

/* --------------------------------------------------------------------------
 * Angebot
 * ----------------------------------------------------------------------- */

/* Ein Absatz nach der Liste hängt nicht an deren letztem Punkt. */
.mw-checklist + p {
	margin-top: 1.1em;
}

.mw-checklist {
	display: grid;
	gap: 12px;
	list-style: none;
	margin-bottom: 1.4em;
}

.mw-checklist li {
	align-items: center;
	display: flex;
	font-weight: 400;
	gap: 14px;
}

.mw-checklist .mw-icon {
	background: var(--mw-tint);
	border-radius: 50%;
	color: var(--mw-blue-text);
	height: 34px;
	padding: 7px;
	width: 34px;
}

.mw-houses {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
}

.mw-house {
	overflow: hidden;
}

.mw-house__media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.mw-house__media img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.mw-house__body {
	padding: 26px 30px 30px;
}

.magda-web .mw-house__name {
	font-size: 1.8rem;
}

.mw-houses__note {
	margin-top: 20px;
}

.mw-gallery {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	list-style: none;
}

.mw-gallery__link {
	aspect-ratio: 4 / 3;
	border-radius: 16px;
	display: block;
	overflow: hidden;
	position: relative;
}

.mw-gallery__link img {
	height: 100%;
	object-fit: cover;
	transition: transform var(--mw-slow) var(--mw-ease-out);
	width: 100%;
}

.mw-gallery__link:hover img {
	transform: scale(1.05);
}

.mw-gallery__caption {
	background: linear-gradient(to top, rgba(4, 12, 24, 0.82), rgba(4, 12, 24, 0));
	bottom: 0;
	color: var(--mw-white);
	font-size: 0.88rem;
	font-weight: 400;
	left: 0;
	line-height: 1.35;
	padding: 28px 14px 12px;
	position: absolute;
	right: 0;
}

/* Grossansicht: blendet weich auf, die Bilder wechseln mit einer kurzen
   Bewegung in Blätterrichtung; auf Touch-Geräten lässt sich wischen. */
.mw-lightbox {
	align-items: center;
	background: rgba(4, 12, 24, 0.94);
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 0;
	padding: 72px 88px;
	position: fixed;
	touch-action: pan-y pinch-zoom;
	transition: opacity var(--mw-medium) var(--mw-ease), visibility 0s linear var(--mw-medium);
	visibility: hidden;
	z-index: 1000;
}

.mw-lightbox.is-open {
	opacity: 1;
	transition-delay: 0s;
	visibility: visible;
}

.mw-lightbox__figure {
	display: grid;
	gap: 14px;
	justify-items: center;
	margin: 0;
	max-height: 100%;
	transform: scale(0.96);
	transition: transform var(--mw-medium) var(--mw-ease-out);
}

.mw-lightbox.is-open .mw-lightbox__figure {
	transform: none;
}

.mw-lightbox__img {
	border-radius: 12px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
	max-height: calc(100vh - 200px);
	object-fit: contain;
	transition: opacity var(--mw-fast) var(--mw-ease), transform var(--mw-medium) var(--mw-ease-out);
	width: auto;
}

.mw-lightbox__img.is-leaving {
	opacity: 0;
}

.mw-lightbox__img.from-right {
	opacity: 0;
	transform: translateX(28px);
	transition: none;
}

.mw-lightbox__img.from-left {
	opacity: 0;
	transform: translateX(-28px);
	transition: none;
}

.mw-lightbox__caption {
	color: var(--mw-white);
	font-size: 1.05rem;
	text-align: center;
}

.mw-lightbox__count {
	color: rgba(255, 255, 255, 0.78);
	font-family: var(--mw-display);
	font-size: 0.9rem;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	left: 50%;
	letter-spacing: 0.14em;
	position: absolute;
	top: 34px;
	translate: -50% 0;
}

.mw-lightbox__button {
	align-items: center;
	background: var(--mw-white);
	border: 0;
	border-radius: 50%;
	color: var(--mw-blue-text);
	cursor: pointer;
	display: inline-flex;
	height: 56px;
	justify-content: center;
	position: absolute;
	transition: scale var(--mw-fast) var(--mw-ease-out), background-color var(--mw-fast) var(--mw-ease);
	width: 56px;
}

.mw-lightbox__button:hover {
	background: var(--mw-tint);
	scale: 1.06;
}

.mw-lightbox__button .mw-icon {
	height: 26px;
	width: 26px;
}

.mw-lightbox__close {
	right: 20px;
	top: 20px;
}

.mw-lightbox__prev {
	left: 16px;
	top: 50%;
	translate: 0 -50%;
}

.mw-lightbox__next {
	right: 16px;
	top: 50%;
	translate: 0 -50%;
}

/* --------------------------------------------------------------------------
 * Dokumente, Links, Stellen, Kontakt
 * ----------------------------------------------------------------------- */

.mw-docs-layout {
	align-items: start;
	display: grid;
	gap: clamp(32px, 5vw, 64px);
	grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
}

.mw-docs {
	display: grid;
	gap: 12px;
	list-style: none;
}

.magda-web .mw-doc {
	align-items: center;
	background: var(--mw-white);
	border: 1px solid var(--mw-line);
	border-radius: 16px;
	color: var(--mw-text);
	display: flex;
	gap: 18px;
	min-height: 72px;
	padding: 14px 20px;
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.magda-web .mw-doc:hover {
	border-color: var(--mw-blue);
	box-shadow: var(--mw-shadow);
	color: var(--mw-text);
}

.mw-doc__icon {
	align-items: center;
	background: var(--mw-tint);
	border-radius: 12px;
	color: var(--mw-blue-text);
	display: inline-flex;
	flex: none;
	height: 48px;
	justify-content: center;
	width: 48px;
}

.mw-doc__text {
	display: grid;
	flex: 1;
}

.mw-doc__title {
	color: var(--mw-ink);
	font-weight: 600;
}

.mw-doc__hint {
	color: var(--mw-muted);
	font-size: 0.92rem;
}

.mw-doc__type {
	color: var(--mw-blue-text);
	font-family: var(--mw-display);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.14em;
}

.mw-docs--compact .mw-doc {
	min-height: 60px;
	padding: 10px 14px;
}

.mw-cta {
	border-top: 6px solid var(--mw-blue);
	padding: clamp(26px, 3vw, 38px);
	position: sticky;
	top: calc(var(--mw-header) + 24px);
}

.magda-web .mw-cta__title {
	font-size: 1.6rem;
}

.mw-linkcards {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	list-style: none;
}

.magda-web .mw-linkcard {
	color: var(--mw-text);
	display: grid;
	gap: 8px;
	height: 100%;
	padding: 24px 26px;
	text-decoration: none;
	transition: transform 0.2s ease;
}

.magda-web .mw-linkcard:hover {
	color: var(--mw-text);
	transform: translateY(-3px);
}

.mw-linkcard__title {
	align-items: center;
	color: var(--mw-blue-text);
	display: flex;
	font-family: var(--mw-display);
	font-size: 1.2rem;
	font-weight: 600;
	gap: 0.4em;
	line-height: 1.25;
}

.mw-linkcard__text {
	color: var(--mw-muted);
	font-size: 0.95rem;
}

.mw-jobs {
	display: grid;
	gap: 16px;
	list-style: none;
}

.mw-job {
	border-left: 6px solid var(--mw-line);
	padding: 24px 30px;
}

.mw-job.is-open {
	border-left-color: var(--mw-accent);
}

.mw-job__head {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	justify-content: space-between;
}

.magda-web .mw-job__title {
	font-size: 1.5rem;
	margin: 0;
}

.mw-job__text {
	margin: 12px 0 0 !important;
}

.mw-contactgrid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	list-style: none;
}

.mw-contactcard {
	align-content: start;
	display: grid;
	gap: 6px;
	justify-items: start;
	padding: 28px;
}

.mw-contactcard .mw-label {
	margin: 10px 0 0;
}

.mw-contactcard__main {
	color: var(--mw-ink);
	font-size: 1.08rem;
}

/* --------------------------------------------------------------------------
 * Formular
 * ----------------------------------------------------------------------- */

.mw-form-layout {
	align-items: start;
	display: grid;
	gap: clamp(32px, 5vw, 56px);
	grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
}

.mw-form-aside {
	display: grid;
	gap: 20px;
	position: sticky;
	top: calc(var(--mw-header) + 24px);
}

.mw-aside-card {
	padding: 26px;
}

.mw-form__group {
	background: var(--mw-white);
	border: 1px solid var(--mw-line);
	border-radius: var(--mw-radius);
	margin: 0 0 24px;
	padding: 28px clamp(20px, 3vw, 36px) 32px;
}

.mw-form__legend {
	color: var(--mw-ink);
	float: left;
	font-family: var(--mw-display);
	font-size: 1.45rem;
	font-weight: 600;
	margin-bottom: 18px;
	padding: 0;
	width: 100%;
}

.mw-form__hint {
	clear: both;
	color: var(--mw-accent-text);
	font-weight: 600;
	margin-top: -6px;
}

.mw-form__grid {
	clear: both;
	display: grid;
	gap: 20px 24px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mw-field--wide {
	grid-column: 1 / -1;
}

.mw-field__label {
	color: var(--mw-ink);
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.mw-form input[type="text"],
.mw-form input[type="email"],
.mw-form input[type="tel"],
.mw-form input[type="date"],
.mw-form textarea {
	background: #fbfcfe;
	border: 2px solid #c6d0da;
	border-radius: var(--mw-radius-small);
	color: var(--mw-ink);
	font: inherit;
	min-height: 54px;
	padding: 0.7em 0.9em;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	width: 100%;
}

.mw-form textarea {
	min-height: 110px;
	resize: vertical;
}

.mw-form input:focus,
.mw-form textarea:focus {
	border-color: var(--mw-blue);
	box-shadow: 0 0 0 4px rgba(0, 103, 177, 0.18);
	outline: none;
}

.mw-choices {
	border: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
}

.mw-choices .mw-field__label {
	float: left;
	width: 100%;
}

.mw-choice {
	align-items: center;
	background: #fbfcfe;
	border: 2px solid #c6d0da;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	gap: 10px;
	min-height: 52px;
	padding: 0.4em 1.2em 0.4em 0.9em;
}

.mw-choice:has(input:checked) {
	background: var(--mw-tint);
	border-color: var(--mw-blue);
	color: var(--mw-blue-text);
	font-weight: 600;
}

.mw-choice input,
.mw-confirm input {
	accent-color: var(--mw-blue);
	height: 22px;
	margin: 0;
	width: 22px;
}

.mw-confirm {
	align-items: flex-start;
	cursor: pointer;
	display: flex;
	gap: 14px;
}

.mw-confirm input {
	flex: none;
	margin-top: 3px;
}

.mw-required {
	color: var(--mw-error);
}

.mw-field.has-error input,
.mw-field.has-error textarea,
.mw-field.has-error .mw-choice {
	border-color: var(--mw-error);
}

.mw-field__error {
	color: var(--mw-error);
	font-size: 0.92rem;
	font-weight: 600;
	margin: 6px 0 0 !important;
}

.mw-form__alert {
	background: #fdecea;
	border-left: 6px solid var(--mw-error);
	border-radius: var(--mw-radius-small);
	color: #6c1410;
	margin-bottom: 24px;
	padding: 16px 20px;
}

.mw-form__alert p {
	margin: 0;
}

.mw-form__trap {
	height: 1px;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.mw-form__privacy {
	color: var(--mw-muted);
	font-size: 0.95rem;
}

.mw-success {
	padding: clamp(32px, 5vw, 56px);
	text-align: center;
}

.mw-success__icon {
	background: var(--mw-tint);
	border-radius: 50%;
	color: var(--mw-blue-text);
	height: 84px;
	margin: 0 auto 18px;
	padding: 18px;
	width: 84px;
}

/* --------------------------------------------------------------------------
 * Beitrag
 * ----------------------------------------------------------------------- */

.mw-article {
	padding-bottom: var(--mw-section);
}

.mw-article__head {
	max-width: 900px;
	padding-top: clamp(48px, 7vw, 96px);
}

.magda-web .mw-article__title {
	font-size: clamp(2.2rem, 4.6vw, 3.8rem);
	letter-spacing: -0.01em;
	line-height: 1.06;
	text-wrap: balance;
}

.mw-article__media {
	margin-block: 24px 48px;
}

.mw-article__media img {
	border-radius: 24px;
	max-height: 72vh;
	object-fit: cover;
	width: 100%;
}

.mw-article__body {
	max-width: 760px;
}

.mw-prose h2 {
	font-size: 1.9rem;
	margin-top: 1.6em;
}

.mw-prose h3 {
	font-size: 1.4rem;
	margin-top: 1.4em;
}

.mw-prose ul,
.mw-prose ol {
	margin: 0 0 1.2em;
	padding-left: 1.3em;
}

.mw-prose li {
	margin-bottom: 0.4em;
}

.mw-prose img {
	border-radius: 16px;
}

.mw-prose figure {
	margin: 1.6em 0;
}

.mw-prose figcaption {
	color: var(--mw-muted);
	font-size: 0.92rem;
	margin-top: 8px;
}

.mw-prose blockquote {
	border-left: 5px solid var(--mw-accent);
	font-size: 1.15rem;
	margin: 1.6em 0;
	padding: 0.2em 0 0.2em 1.2em;
}

.mw-prose table {
	border-collapse: collapse;
	margin: 1.6em 0;
	width: 100%;
}

.mw-prose th,
.mw-prose td {
	border-bottom: 1px solid var(--mw-line);
	padding: 10px 12px;
	text-align: left;
}

.mw-prose .wp-block-gallery,
.mw-prose .gallery {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.mw-article__nav {
	border-top: 1px solid var(--mw-line);
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: space-between;
	margin-top: 56px;
	max-width: 760px;
	padding-top: 28px;
}

.magda-web .mw-article__link {
	align-items: center;
	display: inline-flex;
	font-weight: 600;
	gap: 12px;
	max-width: 48%;
	text-decoration: none;
}

.mw-article__link--next {
	margin-left: auto;
	text-align: right;
}

/* --------------------------------------------------------------------------
 * Fuss
 * ----------------------------------------------------------------------- */

.mw-footer {
	background: linear-gradient(160deg, var(--mw-navy), var(--mw-navy-deep) 70%);
	color: rgba(255, 255, 255, 0.9);
	overflow: hidden;
	padding-block: clamp(56px, 7vw, 88px) 28px;
	position: relative;
}

.mw-footer__mark {
	opacity: 0.08;
	right: -4%;
	top: 24px;
	width: min(640px, 55vw);
}

.mw-footer__top {
	display: grid;
	gap: 40px;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.1fr);
	position: relative;
}

.mw-footer__brand img {
	margin-bottom: 20px;
	width: min(300px, 100%);
}

.mw-footer__claim {
	max-width: 30em;
}

.magda-web .mw-footer__title {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.86rem;
	letter-spacing: 0.18em;
	margin-bottom: 1em;
	text-transform: uppercase;
}

.magda-web .mw-footer a {
	color: var(--mw-white);
}

.mw-nowrap {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.mw-footer__bottom {
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.92rem;
	gap: 12px 28px;
	justify-content: space-between;
	margin-top: 48px;
	padding-top: 24px;
	position: relative;
}

.mw-footer__bottom p {
	margin: 0;
}

.mw-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	list-style: none;
}

/* --------------------------------------------------------------------------
 * Vorschau-Hinweis
 * ----------------------------------------------------------------------- */

.mw-preview-bar {
	align-items: center;
	background: var(--mw-accent-text);
	border-radius: 16px;
	bottom: 20px;
	box-shadow: var(--mw-shadow-strong);
	color: var(--mw-white);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.92rem;
	gap: 8px 20px;
	left: 50%;
	max-width: calc(100% - 32px);
	padding: 10px 22px;
	position: fixed;
	transform: translateX(-50%);
	z-index: 900;
}

.magda-web .mw-preview-bar a {
	color: var(--mw-white);
	font-weight: 600;
}

/* --------------------------------------------------------------------------
 * Bewegung
 *
 * Nur Deckkraft und Transformationen – das rechnet die Grafikkarte, der
 * Text bleibt dabei ruhig. Alles liegt hinter prefers-reduced-motion: wer
 * weniger Bewegung eingestellt hat, sieht die Inhalte sofort und still.
 * ----------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
	/* Einblenden beim Scrollen, in Rastern gestaffelt (Verzögerung aus JS). */
	.mw-js .mw-reveal {
		opacity: 0;
		transform: translateY(18px);
		transition: opacity var(--mw-slow) var(--mw-ease), transform 0.9s var(--mw-ease-out);
		transition-delay: var(--mw-delay, 0s);
	}

	.mw-js .mw-reveal.is-visible {
		opacity: 1;
		transform: none;
	}

	/* Das Titelbild setzt sich beim Laden sanft. */
	.mw-hero__img {
		animation: mw-settle 16s var(--mw-ease-out) both;
	}

	@keyframes mw-settle {
		from {
			transform: scale(1.06);
		}

		to {
			transform: scale(1);
		}
	}

	/* Titel, Text und Knöpfe bauen sich nacheinander auf – wie die
	   Inhaltsbühne am Bildschirm. */
	.mw-hero__text > *,
	.mw-pagehead__text > * {
		animation: mw-rise 0.9s var(--mw-ease-out) both;
	}

	.mw-hero__text > :nth-child(2),
	.mw-pagehead__text > :nth-child(2) {
		animation-delay: 0.08s;
	}

	.mw-hero__text > :nth-child(3),
	.mw-pagehead__text > :nth-child(3) {
		animation-delay: 0.16s;
	}

	.mw-hero__text > :nth-child(n + 4),
	.mw-pagehead__text > :nth-child(n + 4) {
		animation-delay: 0.24s;
	}

	.mw-now {
		animation: mw-rise 0.9s var(--mw-ease-out) 0.3s both;
	}

	@keyframes mw-rise {
		from {
			opacity: 0;
			transform: translateY(16px);
		}
	}

	/*
	 * Beim Hinausscrollen gleitet das Titelbild langsamer als die Seite und
	 * der Text blendet aus – rein in CSS, ohne Skript und ohne Ruckeln.
	 * Browser ohne scroll-gesteuerte Animationen zeigen das Bild still.
	 */
	@supports (animation-timeline: view()) {
		.mw-hero {
			view-timeline-name: --mw-hero;
		}

		.mw-hero__media {
			animation: mw-hero-drift linear both;
			animation-range: exit 0% exit 100%;
			animation-timeline: --mw-hero;
		}

		.mw-hero__inner {
			animation: mw-hero-fade linear both;
			animation-range: exit 0% exit 70%;
			animation-timeline: --mw-hero;
		}

		@keyframes mw-hero-drift {
			to {
				transform: translateY(18%);
			}
		}

		@keyframes mw-hero-fade {
			to {
				opacity: 0;
				transform: translateY(-40px);
			}
		}
	}

	/*
	 * Seitenwechsel ohne weissen Blitz: der Kopf bleibt stehen, der Inhalt
	 * blendet über. Browser ohne View Transitions laden wie gewohnt.
	 */
	@view-transition {
		navigation: auto;
	}

	.mw-topbar {
		view-transition-name: mw-topbar;
	}

	.mw-header {
		view-transition-name: mw-header;
	}

	::view-transition-old(root) {
		animation: mw-vt-out 0.18s var(--mw-ease) both;
	}

	::view-transition-new(root) {
		animation: mw-vt-in 0.45s var(--mw-ease-out) both;
	}

	@keyframes mw-vt-out {
		to {
			opacity: 0;
		}
	}

	@keyframes mw-vt-in {
		from {
			opacity: 0;
			transform: translateY(12px);
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.magda-web *,
	.magda-web *::before,
	.magda-web *::after {
		transition-duration: 0.01ms !important;
	}
}

/* --------------------------------------------------------------------------
 * Schmalere Bildschirme
 * ----------------------------------------------------------------------- */

@media (max-width: 1180px) {
	.mw-nav__call span {
		display: none;
	}

	.mw-nav__call {
		min-width: 52px;
		padding-inline: 0.9em;
	}
}

@media (max-width: 1080px) {
	:root {
		--mw-header: 76px;
	}

	.magda-web .mw-brand__logo {
		width: 178px;
	}

	.mw-js .mw-burger {
		display: inline-flex;
	}

	/* Ohne JavaScript bleibt die Navigation offen unter dem Logo. */
	.mw-header__inner {
		flex-wrap: wrap;
	}

	.mw-nav {
		align-items: stretch;
		flex-direction: column;
		gap: 16px;
		margin-left: 0;
		padding-bottom: 20px;
		width: 100%;
	}

	/* Das Menü gleitet herein statt aufzuspringen. */
	.mw-js .mw-nav {
		background: var(--mw-white);
		border-top: 1px solid var(--mw-line);
		box-shadow: 0 24px 40px rgba(10, 51, 88, 0.12);
		left: 0;
		max-height: calc(100vh - var(--mw-header));
		opacity: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 16px var(--mw-gutter) 28px;
		position: absolute;
		right: 0;
		top: 100%;
		transform: translateY(-12px);
		transition: opacity var(--mw-fast) var(--mw-ease), transform var(--mw-medium) var(--mw-ease-out), visibility 0s linear var(--mw-medium);
		visibility: hidden;
	}

	.mw-js .mw-nav.is-open {
		opacity: 1;
		transform: none;
		transition-delay: 0s;
		visibility: visible;
	}

	.mw-nav__list {
		align-items: stretch;
		flex-direction: column;
		gap: 4px;
	}

	.mw-nav__item {
		flex-wrap: wrap;
	}

	.magda-web .mw-nav__link {
		flex: 1;
		font-size: 1.1rem;
		padding: 0.75em 1em;
	}

	.mw-nav__toggle {
		height: 52px;
		width: 52px;
	}

	/* Untermenüs öffnen sich mit einer weichen Höhenbewegung. */
	.mw-nav__sub {
		box-shadow: none;
		max-height: 0;
		min-width: 0;
		opacity: 0;
		overflow: hidden;
		padding: 0 0 0 12px;
		pointer-events: auto;
		position: static;
		transform: none;
		transition: max-height var(--mw-medium) var(--mw-ease), opacity var(--mw-medium) var(--mw-ease), padding var(--mw-medium) var(--mw-ease);
		visibility: visible;
		width: 100%;
	}

	.mw-nav__item--parent:hover > .mw-nav__sub,
	.mw-nav__item--parent:focus-within > .mw-nav__sub {
		max-height: 0;
		opacity: 0;
	}

	.mw-nav__item.is-open > .mw-nav__sub,
	.mw-nav__item--parent > .mw-nav__sub:focus-within,
	.mw-no-js .mw-nav__sub {
		max-height: 420px;
		opacity: 1;
		padding-bottom: 8px;
	}

	.mw-nav__call span {
		display: inline;
	}

	.mw-hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.mw-now {
		justify-self: start;
	}

	.mw-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mw-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mw-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 900px) {
	.mw-split,
	.mw-visit__inner,
	.mw-today__grid,
	.mw-houses,
	.mw-docs-layout,
	.mw-form-layout,
	.mw-quality__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.mw-split--reverse .mw-split__media {
		order: 0;
	}

	.mw-cta,
	.mw-form-aside {
		position: static;
	}

	.mw-news {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mw-newscard--large {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.mw-newscard--large .mw-newscard__media {
		aspect-ratio: 16 / 10;
	}

	.mw-pagehead {
		grid-template-columns: minmax(0, 1fr);
	}

	.mw-pagehead__stage {
		min-height: 260px;
	}

	.mw-pagehead__text {
		padding: 36px var(--mw-gutter) 44px;
	}

	/* Zeitstrahl senkrecht. */
	.mw-timeline {
		gap: 26px;
		grid-auto-flow: row;
		padding: 0 0 0 44px;
	}

	.mw-timeline::before {
		background: linear-gradient(180deg, var(--mw-gray), var(--mw-blue));
		bottom: 0;
		height: auto;
		left: 10px;
		right: auto;
		top: 0;
		width: 4px;
	}

	.mw-timeline__item::before {
		left: -44px;
		top: 8px;
	}

	/* Das Band bleibt eine Zeile und lässt sich seitlich schieben; das Skript
	   rückt den aktuellen Punkt ins Bild. */
	.magda-web .mw-daybar {
		display: flex;
		gap: 10px;
		margin: 0 calc(-1 * var(--mw-gutter)) 32px;
		overflow-x: auto;
		padding: 4px var(--mw-gutter) 10px;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}

	.mw-daybar::-webkit-scrollbar {
		display: none;
	}

	.mw-daybar::before,
	.mw-daybar__item::before,
	.mw-daybar__item.is-current::after {
		display: none;
	}

	.mw-daybar__item {
		background: var(--mw-white);
		border: 1px solid var(--mw-line);
		border-radius: 14px;
		flex: 0 0 auto;
		min-width: 7.5em;
		padding: 12px 18px;
		scroll-snap-align: center;
	}

	.mw-daybar__item.is-current {
		border-color: var(--mw-accent);
		box-shadow: 0 0 0 3px rgba(217, 119, 43, 0.2);
	}

	.mw-daybar__item.is-past {
		opacity: 0.7;
	}
}

@media (max-width: 640px) {
	.mw-topbar__item--address,
	.mw-topbar__item--mail {
		display: none;
	}

	.mw-topbar__inner {
		justify-content: center;
	}

	.mw-tiles,
	.mw-news,
	.mw-facts,
	.mw-form__grid,
	.mw-footer__top {
		grid-template-columns: minmax(0, 1fr);
	}

	.mw-tiles {
		margin-top: -48px;
	}

	.mw-courses__row,
	.mw-board__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.mw-now {
		min-width: 0;
		width: 100%;
	}

	.mw-hero__actions .mw-btn {
		width: 100%;
	}

	.mw-lightbox {
		padding: 72px 12px 96px;
	}

	.mw-lightbox__prev,
	.mw-lightbox__next {
		bottom: 20px;
		top: auto;
		transform: none;
	}

	.mw-article__link {
		max-width: 100%;
	}

	.mw-preview-bar {
		bottom: 12px;
		font-size: 0.82rem;
		left: 12px;
		max-width: none;
		right: 12px;
		transform: none;
	}
}

@media print {
	.mw-reveal {
		opacity: 1 !important;
		transform: none !important;
	}

	.mw-topbar,
	.mw-header,
	.mw-footer,
	.mw-preview-bar,
	.mw-hero__mark,
	.mw-form-aside {
		display: none !important;
	}

	.mw-hero {
		background: none;
		color: var(--mw-ink);
		min-height: 0;
	}

	.mw-hero__media,
	.mw-hero__scrim {
		display: none;
	}

	.magda-web .mw-hero__title {
		color: var(--mw-ink);
	}
}
