/* MoveoMed Blog */

.mb {
	--mb-blau: #00739f;
	--mb-blau-dunkel: #0f3550;
	--mb-hell: #f2f9fb;
	--mb-linie: #d9e6ec;
	--mb-text: #252525;
	--mb-leise: #56646b;
	--mb-verlauf: linear-gradient(135deg, #299dc8 0%, #219b8c 100%);
	--mb-radius: 10px;
	--mb-schatten: 0 1px 3px rgb(15 53 80 / .12), 0 6px 20px rgb(15 53 80 / .08);
	--mb-titelschrift: "Montserrat", "montserratmedium", sans-serif;
	--mb-kleinschrift: "Lexend", "lexendregular", "Lato", sans-serif;
	color: var(--mb-text);
	font-family: "Lato", "latoregular", system-ui, sans-serif;
}

.mb *, .mb *::before, .mb *::after { box-sizing: border-box; }
.mb svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mb svg .mb-fuellung { fill: currentColor; stroke: none; }
.mb [hidden] { display: none !important; }
.mb-nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mb :focus-visible:not(.mb-dialog .mb-seiten) { outline: 3px solid #f0a500; outline-offset: 2px; }

mb-uebersicht, mb-karussell, mb-galerie, mb-video { display: block; }

/* ------------------------------------------------------------ Übersicht */

.mb-leiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
.mb-themen { display: flex; flex-wrap: wrap; gap: 8px; }
.mb-thema { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 16px; border: 1px solid var(--mb-linie); border-radius: 999px; background: #fff; color: var(--mb-blau-dunkel); font: 400 15px/1.2 var(--mb-kleinschrift); text-decoration: none; transition: background .15s, border-color .15s; }
.mb-thema:hover { border-color: var(--mb-blau); color: var(--mb-blau); text-decoration: none; }
.mb-thema[aria-current] { background: var(--mb-blau); border-color: var(--mb-blau); color: #fff; }
.mb-zahl { font-size: 12px; opacity: .75; }
.mb-suche { display: flex; flex: 0 1 280px; min-width: 200px; margin: 0; border: 1px solid #8aa5b1; border-radius: 999px; background: #fff; overflow: hidden; }
.mb-suche:focus-within { border-color: var(--mb-blau); box-shadow: 0 0 0 3px rgb(0 115 159 / .18); }
.mb .mb-suche input[type="search"] { flex: 1; min-width: 0; height: 40px; margin: 0; padding: 0 4px 0 18px !important; border: 0 !important; background: none; box-shadow: none; outline: 0; font-size: 15px; color: inherit; }
.mb .mb-suche button { display: grid; place-items: center; width: 46px; margin: 0; padding: 0; border: 0; background: none; color: var(--mb-blau); cursor: pointer; }
.mb-hinweis { padding: 12px 16px; border-radius: var(--mb-radius); background: var(--mb-hell); }
.mb-leer { padding: 48px 0; text-align: center; color: var(--mb-leise); }

.mb-uebersicht[aria-busy="true"] { opacity: .5; transition: opacity .2s .1s; pointer-events: none; }
.mb-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(270px, (100% - (var(--mb-spalten, 3) - 1) * 28px) / var(--mb-spalten, 3)), 1fr)); gap: 28px; }

.mb-karte { position: relative; display: flex; flex-direction: column; border-radius: var(--mb-radius); background: #fff; box-shadow: var(--mb-schatten); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.mb-karte:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(15 53 80 / .12), 0 14px 32px rgb(15 53 80 / .14); }
.mb-karte:focus-within { outline: 3px solid #f0a500; outline-offset: 2px; }
.mb-karte-bild { position: relative; aspect-ratio: 16 / 9; background: var(--mb-hell); overflow: hidden; }
.mb-karte-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mb-karte-bild--leer, .mb-karte-bild--hoch { background: var(--mb-verlauf); }
.mb-karte-bild--leer::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgb(255 255 255 / .25), transparent 55%); }
.mb .mb-platzhalter { position: absolute; inset: 0; width: 72px; height: 72px; margin: auto; color: #fff; stroke-width: 1.2; opacity: .9; }
/* Hochformat (Karussell-Seiten): als Blatt mit weiteren Seiten dahinter */
.mb-karte-bild--hoch { display: grid; place-items: start center; padding-top: 22px; }
.mb-karte-bild--hoch img { width: auto; height: auto; max-width: 56%; border-radius: 6px 6px 0 0; box-shadow: 0 8px 24px rgb(15 53 80 / .35); }
.mb-karte--karussell .mb-karte-bild--hoch img { box-shadow: 14px 8px 0 -4px rgb(255 255 255 / .55), 26px 16px 0 -8px rgb(255 255 255 / .3), 0 8px 24px rgb(15 53 80 / .35); }
.mb-marke { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: 999px; background: rgb(15 53 80 / .88); color: #fff; font: 400 13px/1.2 var(--mb-kleinschrift); }
.mb-karte-text { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.mb .mb-karte-text p { margin: 0; }
.mb .mb-karte-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--mb-leise); font-size: 14px; }
.mb-kategorie { color: var(--mb-blau); font: 400 13px/1.3 var(--mb-kleinschrift); text-decoration: none; }
.mb .mb-karte-titel { margin: 8px 0 8px; font: 500 20px/1.3 var(--mb-titelschrift); hyphens: auto; overflow-wrap: break-word; }
.mb-karte-titel a { color: var(--mb-blau-dunkel); text-decoration: none; outline: 0; }
.mb-karte-titel a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.mb-karte:hover .mb-karte-titel a { color: var(--mb-blau); }
.mb .mb-karte-teaser { flex: 1; font-size: 16px; line-height: 1.5; }
.mb .mb-karte-text p.mb-karte-fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 14px; }
.mb-weiter { display: inline-flex; align-items: center; gap: 6px; color: var(--mb-blau); font: 400 15px/1 var(--mb-kleinschrift); }
.mb-weiter svg { transition: transform .2s; }
.mb-karte:hover .mb-weiter svg { transform: translateX(3px); }
.mb-zeit { color: var(--mb-leise); }

.mb-karte--gross { margin-bottom: 28px; }
@media (min-width: 800px) {
	.mb-karte--gross { display: grid; grid-template-columns: 1.15fr 1fr; }
	.mb-karte--gross .mb-karte-bild { aspect-ratio: auto; min-height: 340px; }
	.mb-karte--gross .mb-karte-bild img { position: absolute; inset: 0; }
	.mb-karte--gross .mb-karte-bild--hoch img { position: static; max-width: 60%; max-height: 420px; }
	.mb-karte--gross .mb-karte-text { justify-content: center; padding: 36px 40px; }
	.mb-karte--gross .mb-karte-teaser { flex: 0 1 auto; font-size: 18px; }
	.mb .mb-karte--gross .mb-karte-titel { margin: 12px 0; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.22; }
}

.mb-blaettern { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.mb-blaettern > * { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 8px; color: var(--mb-blau); font: 400 15px/1 var(--mb-kleinschrift); text-decoration: none; }
.mb-blaettern a:hover { background: var(--mb-hell); }
.mb-blaettern [aria-current] { background: var(--mb-blau); color: #fff; }

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

/* Farbiger Kopf über die ganze Fensterbreite, darauf das weiße Blatt. Beides so breit wie die übrigen Seiten. */
.mb-beitrag { --mb-rand: clamp(20px, 4vw, 56px); padding: 0 0 64px; }
#sp-main-body:has(.mb-beitrag) { padding-top: 0; background: #eef4f7; }
/* Der Pfad steht im Kopf, die Zeile „Aktuelle Seite“ würde ihn nur wiederholen */
body:has(.mb-beitrag) #sp-breadcrumbs { display: none; }

.mb-kopf { position: relative; isolation: isolate; padding: clamp(32px, 4.5vw, 64px) var(--mb-rand) 148px; color: #fff; }
.mb-kopf::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 500' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' fill-opacity='.07' d='M0 330C220 250 380 420 640 330S1010 170 1200 250V500H0Z'/%3E%3Cpath fill='%23fff' fill-opacity='.06' d='M0 420C260 330 430 480 700 400S1060 270 1200 340V500H0Z'/%3E%3C/svg%3E") 0 100% / 100% 100% no-repeat, linear-gradient(115deg, #0b5f86 0%, #00739f 38%, #147a6e 100%); }
.mb-kopf--bild::before { background: linear-gradient(115deg, rgb(8 84 120 / .9) 0%, rgb(0 108 150 / .84) 38%, rgb(17 112 101 / .84) 100%), var(--mb-kopfbild) 50% 50% / cover no-repeat; }
/* Trennzeichen stehen links in einem Streifen, der abgeschnitten wird: So beginnt keine umgebrochene Zeile damit */
.mb-pfad, .mb .mb-angaben { margin-left: -24px; clip-path: inset(0 0 0 24px); }
.mb-pfad { display: flex; flex-wrap: wrap; align-items: center; font: 400 15px/1.3 var(--mb-kleinschrift); }
.mb-pfad > * { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: #fff; text-decoration: none; }
.mb-pfad > *::before { content: "/"; width: 24px; margin-right: -8px; text-align: center; opacity: .6; }
.mb-pfad a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.mb .mb-kopf h1 { max-width: 1000px; margin: 14px 0 18px; color: #fff; font: 500 clamp(28px, 4.2vw, 46px)/1.18 var(--mb-titelschrift); text-align: left; hyphens: auto; overflow-wrap: break-word; text-wrap: balance; }
.mb .mb-angaben { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin-block: 0; color: rgb(255 255 255 / .92); font-size: 16px; }
.mb .mb-angaben > *::before { content: "·"; display: inline-block; width: 24px; text-align: center; opacity: .7; }
/* Stärker als a:focus und a:active im Template, dessen CSS auf der Live-Seite nach diesem lädt */
.mb .mb-kopf a, .mb .mb-kopf a:is(:hover, :focus, :active) { color: #fff; }

.mb-blatt { position: relative; margin-top: -100px; padding: var(--mb-rand); border-radius: 14px; background: #fff; box-shadow: 0 2px 6px rgb(15 53 80 / .08), 0 24px 60px rgb(15 53 80 / .12); }
.mb-medium { margin-bottom: 32px; }
/* Breites Bild oder Video schließt oben bündig mit dem Blatt ab und ragt so in den Kopf */
.mb-medium:has(> .mb-titelbild:not(.mb-titelbild--neben)), .mb-medium:has(> .mb-video > :is(video, .mb-rahmen:not(.mb-rahmen--hoch))) { margin: calc(var(--mb-rand) * -1) calc(var(--mb-rand) * -1) var(--mb-rand); }
.mb-medium > .mb-titelbild:not(.mb-titelbild--neben) img, .mb-medium > .mb-video > video, .mb-medium > .mb-video > .mb-rahmen:not(.mb-rahmen--hoch) { border-radius: 14px 14px 0 0; }
.mb-medium > .mb-titelbild:not(.mb-titelbild--neben) img { max-height: 72svh; object-fit: cover; }
.mb-medium:has(> .mb-titelbild:not(.mb-titelbild--neben)) figcaption, .mb-medium > .mb-video > figcaption { margin-inline: var(--mb-rand); }
.mb-beitrag--gebaut .mb-titelbild--neben { max-width: 600px; }
.mb-medium .mb-rahmen:not(.mb-rahmen--hoch) { max-height: 80svh; width: 100%; }
.mb-medium .mb-karussell--quer { max-width: none; margin-inline: 0; }
.mb-medium .mb-karussell--quer .mb-seite { max-height: calc(100svh - 180px); }

.mb-leiste-rechts { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--mb-linie); }
.mb .mb-leiste-rechts h2 { margin: 0 0 20px; color: var(--mb-blau-dunkel); font: 500 20px/1.3 var(--mb-titelschrift); text-align: left; }
.mb-klein { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: start; }
.mb-klein + .mb-klein { margin-top: 20px; }
.mb-klein .mb-karte-bild { aspect-ratio: 4 / 3; border-radius: 8px; }
.mb-klein .mb-karte-bild--hoch { padding-top: 10px; }
.mb .mb-klein .mb-platzhalter { width: 36px; height: 36px; }
.mb .mb-klein h3 { margin: 0 0 4px; font: 400 16px/1.35 var(--mb-kleinschrift); hyphens: auto; overflow-wrap: break-word; }
.mb-klein h3 a { color: var(--mb-blau-dunkel); text-decoration: none; }
.mb-klein h3 a::after { content: ""; position: absolute; inset: 0; }
.mb-klein:hover h3 a { color: var(--mb-blau); text-decoration: underline; text-underline-offset: 3px; }
.mb-klein time { color: var(--mb-leise); font-size: 14px; }

/* Hochformat und kleine Bilder stehen neben dem Text und laufen beim Lesen mit (--mb-h setzt blog.js) */
@media (min-width: 992px) {
	.mb-beitrag--neben .mb-inhalt { display: grid; grid-template-columns: minmax(0, 1fr) min(44%, 500px); gap: 0 56px; }
	.mb-beitrag--neben .mb-medium { grid-area: 1 / 2; }
	.mb-beitrag--neben .mb-spalte { grid-area: 1 / 1; }
	.mb-beitrag--neben:has(.mb-medium .mb-karussell--quer) .mb-inhalt { display: block; }
	.mb-beitrag--neben .mb-medium,
	.mb-beitrag--gebaut .mb-text .sppb-row:has(> .sppb-row-column:nth-child(2)) > .sppb-row-column > .sppb-column > .sppb-column-addons { position: sticky; top: min(104px, calc(100svh - var(--mb-h, 0px) - 24px)); align-self: flex-start; height: auto; }
	.mb-beitrag--neben .mb-medium .mb-karussell:not(.mb-karussell--quer) { max-width: min(100%, max(340px, (100svh - 200px) * var(--mb-format))); margin-inline: auto 0; }
}
@media (min-width: 1200px) {
	.mb-beitrag--leiste .mb-inhalt { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0 64px; }
	.mb-beitrag--leiste .mb-medium { grid-column: 1 / -1; }
	.mb-beitrag--leiste .mb-leiste-rechts { margin-top: 0; padding: 0 0 0 32px; border: 0; border-left: 1px solid var(--mb-linie); }
	.mb-beitrag--leiste .mb-leiste-rechts { position: sticky; top: min(104px, calc(100svh - var(--mb-h, 0px) - 24px)); align-self: flex-start; }
}
@media (max-width: 575px) {
	.mb-blatt { margin-inline: -5px; }
	.mb-kopf { padding-inline: 10px; }
}
/* Der Rahmen von Helix versteckt Überstände mit overflow: hidden, darin kann nichts mitlaufen */
.body-innerwrapper:has(.mb-beitrag) { overflow: visible; overflow-x: clip; }
.mb-titelbild { margin: 0; }
.mb-titelbild img { display: block; width: 100%; height: auto; border-radius: var(--mb-radius); }
.mb figcaption { margin-top: 8px; color: var(--mb-leise); font-size: 14px; }
.mb-text { margin-bottom: 32px; font-size: 18px; line-height: 1.65; }
.mb-text p { margin: 0 0 1.1em; }
.mb-text h2, .mb-text h3, .mb-text h4 { margin: 1.6em 0 .6em; color: var(--mb-blau-dunkel); font-family: var(--mb-titelschrift); font-weight: 500; line-height: 1.25; text-align: left; }
.mb-text h2 { font-size: 28px; }
.mb-text h3 { font-size: 22px; }
.mb-text h4 { font-size: 19px; }
.mb-text img { max-width: 100%; height: auto; border-radius: 6px; }
.mb-text a:not([class]) { color: var(--mb-blau); text-decoration: underline; text-underline-offset: 3px; }
.mb-text blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid #a6c35f; font-size: 1.1em; }
.mb-text table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.mb-text th, .mb-text td { padding: 8px 12px; border: 1px solid var(--mb-linie); text-align: left; }
.mb-text > .mb-karussell, .mb-text > .mb-video, .mb-text > .mb-galerie { margin-block: 32px; }
/* Aus der alten Beitragsansicht eingefügte Reste */
.mb-text .article-ratings-social-share, .mb-text .social-share-block, .mb-text .article-social-share, .mb-text .social-share-icon { display: block !important; float: none !important; margin: 0; padding: 0; }
/* Mit SP Page Builder gebaut */
.mb-beitrag--gebaut .mb-text .sppb-row-container { max-width: none !important; margin-inline: 0 !important; padding-inline: 0 !important; }
.mb-beitrag--gebaut .mb-text .page-content > .sppb-section:first-child { padding-top: 0 !important; }
.mb-beitrag--gebaut .mb-text .page-content > .sppb-section:last-child { padding-bottom: 0 !important; }
/* Ältere Beiträge gleichen mit negativem Rand die Einrückung der alten Beitragsansicht aus */
.mb-beitrag--gebaut .mb-text .sppb-row > .sppb-row-column:first-child { margin-left: 0 !important; }
.mb-beitrag--gebaut .mb-text .sppb-row > .sppb-row-column:last-child { margin-right: 0 !important; }
/* Noch nicht geladene Bilder nehmen sonst ihre volle Breite ein und ragen auf dem Handy heraus */
.mb-text .sppb-addon-single-image, .mb-text .sppb-addon-single-image .sppb-addon-content, .mb-text .sppb-addon-single-image-container { min-width: 0; max-width: 100%; }
.mb-text .sppb-addon-single-image-container img { max-width: 100% !important; }
.mb-beitrag--gebaut .mb-text .sppb-addon-content > p:last-child { margin-bottom: 0; }

.mb-abschluss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 24px; border-top: 1px solid var(--mb-linie); }
.mb-abschluss .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mb-abschluss .tags a, .mb-abschluss .tags .btn { display: inline-block; padding: 5px 14px; border: 0; border-radius: 999px; background: var(--mb-hell); color: var(--mb-blau-dunkel); font: 400 14px/1.4 var(--mb-kleinschrift); text-decoration: none; }
.mb-teilen { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-left: auto; color: var(--mb-leise); font-size: 15px; }
.mb-teilen > span { margin-right: 6px; }
mb-kopieren { display: inline-flex; align-items: center; gap: 8px; }
.mb .mb-knopf { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--mb-blau); cursor: pointer; transition: background .15s; }
.mb .mb-knopf:hover { background: var(--mb-hell); color: var(--mb-blau-dunkel); }

.mb-kontakt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: 40px; padding: clamp(24px, 4vw, 40px); border-radius: var(--mb-radius); background: linear-gradient(135deg, #00739f 0%, #147a6e 100%); color: #fff; }
.mb-kontakt > div { flex: 1 1 320px; }
.mb .mb-kontakt h2 { margin: 0 0 6px; color: #fff; font: 500 26px/1.25 var(--mb-titelschrift); text-align: left; }
.mb .mb-kontakt p { margin: 0; font-size: 17px; }
.mb .mb-taste { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 24px; border-radius: 5px; background: #fff; color: var(--mb-blau); font: 400 17px/1.2 var(--mb-kleinschrift); text-decoration: none; }
.mb .mb-taste:hover { background: var(--mb-hell); color: var(--mb-blau-dunkel); }
.mb-weitere { margin-top: 56px; }
.mb .mb-weitere > h2 { margin: 0 0 24px; color: var(--mb-blau-dunkel); font: 500 28px/1.25 var(--mb-titelschrift); text-align: left; }

/* ------------------------------------------------------------ Karussell */

.mb-karussell { max-width: min(620px, max(340px, (100svh - 180px) * var(--mb-format))); margin-inline: auto; border: 1px solid var(--mb-linie); border-radius: var(--mb-radius); background: #fff; overflow: hidden; }
.mb-karussell--quer { max-width: min(920px, max(340px, (100svh - 180px) * var(--mb-format))); }
.mb-buehne { position: relative; background: #e9f1f4; }
.mb .mb-seiten { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; outline-offset: -3px; }
.mb-seiten::-webkit-scrollbar { display: none; }
.mb .mb-seite { display: grid; place-items: center; flex: 0 0 100%; min-width: 0; margin: 0; aspect-ratio: var(--mb-format); scroll-snap-align: center; scroll-snap-stop: always; list-style: none; }
.mb .mb-seite::before, .mb .mb-seite::marker { content: none; }
.mb-seite img, .mb-seite canvas { display: block; width: 100%; height: 100%; max-width: none; border-radius: 0; object-fit: contain; }
.mb-laedt { position: relative; }
.mb-laedt::after { content: ""; width: 44px; height: 44px; border: 4px solid rgb(0 115 159 / .2); border-top-color: var(--mb-blau); border-radius: 50%; animation: mb-drehen 1s linear infinite; }
@keyframes mb-drehen { to { transform: rotate(360deg); } }
.mb .mb-pfeil { position: absolute; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; margin: -24px 0 0; padding: 0; border: 0; border-radius: 50%; background: rgb(15 53 80 / .82); color: #fff; font-size: 18px; cursor: pointer; opacity: 0; transition: opacity .2s, background .15s; }
.mb-karussell:hover .mb-pfeil, .mb-karussell:focus-within .mb-pfeil { opacity: 1; }
.mb .mb-pfeil:hover { background: var(--mb-blau); }
.mb-pfeil--zurueck { left: 12px; }
.mb-pfeil--weiter { right: 12px; }
/* Solange nichts geblättert wurde, bleibt der Weiter-Pfeil als Hinweis sichtbar */
.mb-karussell:not(.mb-bewegt) .mb-pfeil--weiter { opacity: 1; }
@media (hover: none) { .mb-karussell.mb-bewegt .mb-pfeil { opacity: 0; } }
.mb-fortschritt { height: 4px; background: var(--mb-linie); }
.mb-fortschritt i { display: block; height: 100%; background: var(--mb-blau); transition: width .25s; }
.mb-fuss { display: flex; align-items: center; gap: 4px; min-height: 52px; padding: 4px 8px 4px 18px; }
.mb-titel { flex: 1; min-width: 0; color: var(--mb-blau-dunkel); font: 400 15px/1.3 var(--mb-kleinschrift); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-stand { padding: 0 10px; color: var(--mb-leise); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mb-vollbild .mb-zu { display: none; }

.mb-dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: #0b1a24; color: #fff; overflow: hidden; }
.mb-dialog::backdrop { background: #0b1a24; }
.mb-dialog .mb-karussell { display: flex; flex-direction: column; width: 100%; max-width: none; height: 100%; border: 0; border-radius: 0; background: none; }
.mb-dialog .mb-buehne { flex: 1; min-height: 0; background: none; }
.mb-dialog .mb-seiten { height: 100%; outline: 0; }
.mb-dialog .mb-seite { height: 100%; aspect-ratio: auto; padding: 12px; min-height: 0; }
.mb-dialog .mb-seite img, .mb-dialog .mb-seite canvas { min-height: 0; max-height: 100%; width: 100%; height: 100%; }
.mb-dialog .mb-pfeil { opacity: 1; background: rgb(255 255 255 / .16); }
.mb-dialog .mb-fortschritt { background: rgb(255 255 255 / .2); }
.mb-dialog .mb-fortschritt i { background: #6cc7e8; }
.mb-dialog .mb-titel, .mb-dialog .mb-stand, .mb-dialog .mb-knopf { color: #fff; }
.mb-dialog .mb-knopf:hover { background: rgb(255 255 255 / .16); color: #fff; }
.mb-dialog .mb-vollbild .mb-zu { display: inline; }
.mb-dialog .mb-vollbild .mb-auf { display: none; }

/* ------------------------------------------------------------ Video */

.mb-video { margin: 0; }
.mb-video video { display: block; width: 100%; max-height: 80vh; border-radius: var(--mb-radius); background: #0b1a24; }
.mb-rahmen { position: relative; aspect-ratio: 16 / 9; border-radius: var(--mb-radius); background: linear-gradient(135deg, #0f3550, #00739f); overflow: hidden; }
.mb-rahmen--hoch { aspect-ratio: 9 / 16; max-width: 400px; margin-inline: auto; }
.mb-rahmen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.mb-rahmen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mb-freigabe { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 16px; background: rgb(11 26 36 / .62); color: #fff; text-align: center; }
.mb .mb-abspielen { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; margin: 0; padding: 10px 24px 10px 18px; border: 0; border-radius: 999px; background: #fff; color: var(--mb-blau); font: 400 17px/1.2 var(--mb-kleinschrift); cursor: pointer; }
.mb .mb-abspielen:hover { background: var(--mb-hell); color: var(--mb-blau-dunkel); }
.mb .mb-freigabe p { max-width: 520px; margin: 0; font-size: 14px; line-height: 1.45; }
.mb .mb-freigabe a { color: #fff; text-decoration: underline; }
@media (max-width: 520px) { .mb-rahmen:not(.mb-rahmen--hoch) { aspect-ratio: auto; min-height: 250px; } }

/* ------------------------------------------------------------ Galerie */

.mb .mb-bilder { margin: 0; padding: 0; list-style: none; }
.mb .mb-bilder li { margin: 0; padding: 0; list-style: none; }
.mb .mb-bilder li::before { content: none; }
.mb-bilder a { display: block; height: 100%; border-radius: 6px; overflow: hidden; cursor: zoom-in; }
.mb-bilder img { display: block; width: 100%; height: 100%; max-width: none; border-radius: 0; object-fit: cover; transition: transform .3s; }
.mb-bilder a:hover img { transform: scale(1.03); }
/* Das Raster geht immer ohne Lücke auf: schmal zwei Spalten, breit vier (data-rest = Anzahl modulo 4) */
.mb-galerie--raster { container-type: inline-size; }
.mb-galerie--raster .mb-bilder { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(140px, 34cqw, 260px); gap: 10px; }
.mb-galerie--raster[data-anzahl="1"] .mb-bilder { display: block; }
.mb-galerie--raster[data-anzahl="1"] img { height: auto; }
.mb-galerie--raster:is([data-rest="1"], [data-rest="3"]) li:first-child { grid-area: span 2 / span 2; }
@container (min-width: 760px) {
	.mb-galerie--raster .mb-bilder { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 18cqw, 240px); }
	.mb-galerie--raster[data-anzahl="2"] .mb-bilder { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(220px, 32cqw, 420px); }
	.mb-galerie--raster:is([data-anzahl="3"], [data-anzahl="6"]) .mb-bilder { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(150px, 20cqw, 270px); }
	.mb-galerie--raster[data-rest="3"]:not([data-anzahl="3"]) li:first-child { grid-area: span 1 / span 1; }
	.mb-galerie--raster[data-rest="3"]:not([data-anzahl="3"]) li:last-child { grid-column: span 2; }
	.mb-galerie--raster[data-rest="2"]:not([data-anzahl="2"], [data-anzahl="6"]) li:nth-last-child(-n + 2) { grid-column: span 2; }
}
.mb-galerie--slider .mb-bilder { display: flex; gap: 12px; padding-bottom: 10px; overflow-x: auto; scroll-snap-type: x proximity; }
.mb-galerie--slider li { flex: none; height: clamp(220px, 34vw, 380px); scroll-snap-align: start; }
.mb-galerie--slider img { width: auto; max-width: 86vw; }

.mb-lupe { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.mb-lupe:not([open]) { display: none; }
.mb-lupe figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; min-height: 0; margin: 0; padding: 16px; text-align: center; }
.mb-lupe figure img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.mb-lupe figcaption { margin: 10px 60px 0; color: #fff; font-size: 16px; }
.mb-lupe .mb-pfeil { opacity: 1; background: rgb(11 26 36 / .7); }
.mb-lupe .mb-schliessen { position: absolute; top: 12px; right: 12px; background: rgb(255 255 255 / .16); color: #fff; }

@media (prefers-reduced-motion: reduce) {
	.mb *, .mb *::before, .mb *::after { transition: none !important; animation-duration: 3s !important; scroll-behavior: auto !important; }
}

@media print {
	.mb-teilen, .mb-kontakt, .mb-weitere, .mb-leiste-rechts, .mb-pfad, .mb-pfeil, .mb-leiste { display: none !important; }
	.mb .mb-seiten { display: block; }
	.mb-medium, .mb .sppb-column-addons { position: static !important; }
	.mb-kopf, .mb .mb-kopf h1, .mb .mb-angaben { padding: 0; color: #000; }
	.mb-kopf::before { content: none; }
	.mb-blatt { margin-top: 16px; padding: 0; box-shadow: none; }
}
