/* Mahlower See pflegen: Sichtbarkeitsklassen und Widgets */

/* Sichtbarkeit (nicht im Elementor-Editor) */
body.mp-saison-fruehling:not(.elementor-editor-active) .mp-nur-sommer,
body.mp-saison-fruehling:not(.elementor-editor-active) .mp-nur-herbst,
body.mp-saison-fruehling:not(.elementor-editor-active) .mp-nur-winter,
body.mp-saison-sommer:not(.elementor-editor-active) .mp-nur-fruehling,
body.mp-saison-sommer:not(.elementor-editor-active) .mp-nur-herbst,
body.mp-saison-sommer:not(.elementor-editor-active) .mp-nur-winter,
body.mp-saison-herbst:not(.elementor-editor-active) .mp-nur-fruehling,
body.mp-saison-herbst:not(.elementor-editor-active) .mp-nur-sommer,
body.mp-saison-herbst:not(.elementor-editor-active) .mp-nur-winter,
body.mp-saison-winter:not(.elementor-editor-active) .mp-nur-fruehling,
body.mp-saison-winter:not(.elementor-editor-active) .mp-nur-sommer,
body.mp-saison-winter:not(.elementor-editor-active) .mp-nur-herbst { display: none !important; }
body.mp-saison-sommer:not(.elementor-editor-active) .mp-nicht-sommer { display: none !important; }
body:not(.mp-hat-ferienhinweis):not(.elementor-editor-active) .mp-nur-ferienhinweis { display: none !important; }
body:not(.mp-hat-saisonkarte):not(.elementor-editor-active) .mp-nur-saisonkarte { display: none !important; }
body:not(.mp-hat-termine):not(.elementor-editor-active) .mp-nur-termine { display: none !important; }
body.mp-hat-termine:not(.elementor-editor-active) .mp-nur-ohne-termine { display: none !important; }
body:not(.mp-hat-hinweis):not(.elementor-editor-active) .mp-nur-hinweis { display: none !important; }
body:not(.mp-hat-weihnachten):not(.elementor-editor-active) .mp-nur-weihnachten { display: none !important; }
body:not(.mp-hat-gaense):not(.elementor-editor-active) .mp-nur-gaense { display: none !important; }
body.mp-hat-hinweis:not(.elementor-editor-active) .mp-nur-ohne-hinweis { display: none !important; }

.mp-leer { margin: 0; padding: 16px; border: 1px dashed #9aa; color: #567; font-size: 14px; }

/* Farben und Maße, überschreibbar über die Widget-Einstellungen */
.elementor-widget-mp_oeffnungszeiten, .elementor-widget-mp_seebad_tafel, .elementor-widget-mp_speisekarte {
	--mp-tinte: #11303F;
	--mp-tinte-2: #3A5565;
	--mp-linie: #B9CCD6;
	--mp-blau: #1D5792;
	--mp-blau-d: #143F6C;
	--mp-blau-l: #9CBFDC;
	--mp-tafel: #0E2A3B;
	--mp-led: #FFC857;
	--mp-wasser: #8FD3F4;
	--mp-papier: #FFFFFF;
	--mp-heute: #FFF4D6;
	--mp-kachel: #E5EDF1;
}

/* Seebad-Tafel */
.mp-tafel { background: var(--mp-tafel); color: #fff; border-radius: 18px; padding: 18px 22px 12px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 0 8px; box-shadow: 0 16px 40px rgba(14, 42, 59, .32); }
.mp-tf-zelle { padding: 4px 18px; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid rgba(255, 255, 255, .14); }
.mp-tf-temps { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; padding-right: 10px; }
.mp-tf-temps .mp-tf-zelle { border-left: 0; }
.mp-tf-temps .mp-tf-luft { padding-left: 0; }
.mp-tf-temps .mp-tf-wasser { border-left: 2px solid rgba(255, 255, 255, .14); }
.mp-tf-label { font-size: 14px; font-weight: 600; color: #B9D0DD; letter-spacing: .04em; }
.mp-tf-ziffer { display: inline-flex; align-items: baseline; gap: 6px; color: var(--mp-led); font-stretch: 62%; font-weight: 700; line-height: 1; }
.mp-tf-ziffer b { font-size: 60px; font-weight: 700; letter-spacing: .01em; }
.mp-tf-ziffer i { font-style: normal; font-size: 28px; }
.mp-tf-ziffer em { font-style: normal; font-size: 22px; font-stretch: 85%; color: var(--mp-wasser); }
.mp-tf-wasser .mp-tf-ziffer { color: var(--mp-wasser); }
.mp-tf-text { font-size: 24px; line-height: 1.2; font-weight: 700; color: var(--mp-led); text-wrap: balance; }
.mp-tf-hinweis { font-size: 15px; line-height: 1.35; color: #D3E3EC; }
.mp-quelle { margin: 0; font-size: 13px; }
.mp-tf-quelle { grid-column: 1 / -1; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .14); color: #B9D0DD; }
.mp-skala { grid-column: 1 / -1; position: relative; height: 46px; margin: 10px 4px 0 0; }
.mp-skala-linie { position: absolute; left: 0; right: 0; top: 18px; height: 12px; background:
	linear-gradient(rgba(255, 255, 255, .7), rgba(255, 255, 255, .7)) top / 100% 2px no-repeat,
	repeating-linear-gradient(90deg, rgba(255, 255, 255, .7) 0 1px, transparent 1px calc(100% / 40)) top / 100% 7px no-repeat,
	repeating-linear-gradient(90deg, rgba(255, 255, 255, .9) 0 2px, transparent 2px calc(100% / 8)) top / 100% 12px no-repeat; }
.mp-skala-zahlen { position: absolute; left: 0; right: 0; top: 30px; font-size: 12px; color: #B9D0DD; }
.mp-skala-zahlen span { position: absolute; transform: translateX(-50%); }
.mp-marker { position: absolute; top: 2px; width: 0; height: 0; }
.mp-marker::after { content: ""; position: absolute; left: -7px; top: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; }
.mp-marker-luft::after { border-top: 12px solid var(--mp-led); }
.mp-marker-wasser::after { border-top: 12px solid var(--mp-wasser); }

/* Kachel */
.mp-kachel { display: inline-block; background: var(--mp-kachel); color: var(--mp-tinte); border-radius: 18px; padding: 12px 18px; }
.mp-kachel-werte { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-weight: 700; font-size: 18px; }
.mp-k-status { margin: 4px 0 0; font-size: 15px; }
.mp-kachel .mp-quelle { margin-top: 4px; color: var(--mp-tinte-2); }

/* Öffnungszeiten Woche */
.mp-status-gross { margin: 0 0 16px; display: grid; gap: 4px; }
.mp-sb-zeile { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.12; font-weight: 750; letter-spacing: -.01em; }
.mp-sb-kueche { color: var(--mp-blau-d); }
.mp-ferienhinweis { margin: 0 0 16px; padding: 12px 16px; border-left: 5px solid var(--mp-led); background: var(--mp-heute); border-radius: 0 10px 10px 0; }
.mp-woche { background: var(--mp-papier); color: var(--mp-tinte); border-radius: 18px; padding: 20px 22px 18px; border: 1px solid var(--mp-linie); }
.mp-achse { position: relative; height: 22px; margin: 0 272px 4px 152px; font-size: 13px; color: var(--mp-tinte-2); }
.mp-achse span { position: absolute; transform: translateX(-50%); }
.mp-woche-liste { list-style: none; margin: 0; padding: 0; }
.mp-zeile { display: grid; grid-template-columns: 130px 1fr 250px; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; position: relative; }
.mp-tag { font-weight: 700; font-size: 17px; }
.mp-heute-marke { margin-left: 8px; font-size: 12px; font-weight: 700; background: var(--mp-tinte); color: #fff; padding: 2px 8px; border-radius: 999px; vertical-align: 2px; }
.mp-zeiten { display: grid; line-height: 1.25; font-size: 16px; }
.mp-zeiten b { font-size: 18px; font-weight: 700; }
.mp-zeiten span { font-weight: 600; color: var(--mp-blau-d); }
.mp-spur { position: relative; height: 22px; background:
	repeating-linear-gradient(90deg, var(--mp-linie) 0 1px, transparent 1px calc(100% / 12)) bottom / 100% 8px no-repeat,
	linear-gradient(var(--mp-linie), var(--mp-linie)) bottom / 100% 2px no-repeat; }
.mp-seg { position: absolute; top: 3px; height: 14px; border-radius: 3px; }
.mp-seg-k { left: calc(var(--a) * 1%); width: calc((var(--b) - var(--a)) * 1%); background: var(--mp-blau); }
.mp-seg-o { left: calc(var(--b) * 1%); width: calc((var(--c) - var(--b)) * 1%); background: var(--mp-blau-l); }
.mp-seg { transform-origin: left center; }
/* Balken wachsen beim ersten Sichtbarwerden (Klasse mp-anim kommt erst per Skript, ohne Skript bleibt alles sichtbar) */
@media (prefers-reduced-motion: no-preference) {
	.mp-anim .mp-woche .mp-seg { transform: scaleX(0); }
	.mp-anim .mp-woche.mp-in .mp-seg { transform: scaleX(1); transition: transform 800ms cubic-bezier(.23, 1, .32, 1); transition-delay: calc(var(--mp-i, 0) * 70ms); }
	.mp-anim .mp-woche.mp-in .mp-seg-o { transition-delay: calc(var(--mp-i, 0) * 70ms + 150ms); }
}

/* Hinweis für heute */
.mp-hinweis { margin: 0; padding: 14px 20px; border-radius: 14px; background: var(--mp-heute); box-shadow: inset 5px 0 0 var(--mp-led); color: var(--mp-tinte); font-size: 17px; line-height: 1.4; font-weight: 600; }
.mp-zeile-zu .mp-spur { opacity: .8; }
.mp-zeile-zu .mp-zeiten b { color: var(--mp-tinte-2); }
.mp-zeile.ist-heute { background: var(--mp-heute); box-shadow: inset 5px 0 0 var(--mp-led); }
.mp-woche-legende { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding-left: 12px; font-size: 14px; color: var(--mp-tinte-2); }
.mp-lg { display: inline-block; width: 22px; height: 12px; border-radius: 3px; }
.mp-lg-o { background: var(--mp-blau-l); }
.mp-lg-k { background: var(--mp-blau); }

/* Karte (Kartenstil laut Entwurf: Pegel-Linie unter Kategorie, Punktlinie, Preis rechts, Kennzeichen hochgestellt) */
.mp-karte { color: var(--mp-tinte); max-width: 980px; margin-inline: auto; }
.mp-karte-saison { background: var(--mp-papier); border: 1px solid var(--mp-linie); border-radius: 18px; padding: clamp(22px, 4vw, 40px); position: relative; }
.mp-karte-saison::before { content: ""; position: absolute; left: clamp(22px, 4vw, 40px); top: 0; width: 72px; height: 6px; background: var(--mp-led); border-radius: 0 0 4px 4px; }
.mp-karte-kopf { margin-bottom: 16px; }
.mp-dach { margin: 0 0 4px; font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--mp-blau-d); }
.mp-karte-titel { margin: 0 0 4px; }
.mp-unter { margin: 12px 0 8px; color: var(--mp-tinte-2); font-size: 18px; }
.mp-kat { margin-top: 28px; }
.mp-kat:first-of-type { margin-top: 12px; }
.mp-kat-name { margin: 0 0 4px; padding-bottom: 8px; border-bottom: 2px solid var(--mp-blau); font-size: 22px; font-weight: 750; }
.mp-gerichte { list-style: none; margin: 0; padding: 0; }
.mp-gericht { padding: 12px 0; margin: 0; }
.mp-gericht + .mp-gericht { border-top: 1px solid var(--mp-kachel); }
.mp-g-zeile { display: flex; align-items: baseline; gap: 10px; }
.mp-g-name { font-weight: 700; font-size: 18px; }
.mp-g-kz { display: inline-flex; gap: 3px; font-size: 0; line-height: 1; align-self: flex-start; position: relative; top: .1em; }
.mp-flag { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; font-size: 12px; font-weight: 700; line-height: 1; color: var(--mp-tinte-2); background: var(--mp-kachel); border-radius: 6px; }
.mp-veg { font-size: 11px; font-weight: 700; border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; color: #2e7d32; }
.mp-g-punkte { flex: 1; min-width: 24px; align-self: end; height: 6px; margin-bottom: 7px;
	background: linear-gradient(var(--mp-linie), var(--mp-linie)) bottom / 100% 1px no-repeat, repeating-linear-gradient(90deg, var(--mp-blau-l) 0 1px, transparent 1px 8px) top / 100% 5px no-repeat; }
.mp-g-preis { font-weight: 750; font-size: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.mp-g-beschr { margin: 2px 0 0; color: var(--mp-tinte-2); font-size: 16px; max-width: 40em; }
.mp-karte-fuss { margin-top: 48px; padding-top: 22px; border-top: 2px solid var(--mp-linie); display: grid; gap: 16px; justify-items: start; }
.mp-karte-fuss p { margin: 0; font-size: 14px; color: var(--mp-tinte-2); }
.mp-karte-fuss .mp-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.mp-lg-text { margin-right: 10px; }
.mp-karte-saison .mp-karte-fuss { margin-top: 28px; }
.mp-pdf { display: inline-block; padding: 12px 24px; border-radius: 999px; background: var(--mp-blau); color: #fff; text-decoration: none; font-weight: 600; }
.mp-pdf:hover { background: var(--mp-blau-d); color: #fff; }
.mp-karte-leer { padding: 28px clamp(18px, 4vw, 36px); background: var(--mp-kachel); border-radius: 18px; text-align: center; }
.mp-karte-leer p { margin: 0; font-size: 18px; }
.mp-karte-leer a { font-weight: 700; color: var(--mp-blau-d); }

@media (max-width: 1024px) {
	.mp-tafel { grid-template-columns: 1fr 1fr; }
	.mp-tf-temps { grid-column: 1 / -1; }
	.mp-tf-bad { border-left: 0; padding-left: 0; }
	.mp-achse { margin: 0 12px 4px; }
	.mp-zeile { grid-template-columns: 110px 1fr 200px; }
}
@media (max-width: 767px) {
	.mp-tafel { grid-template-columns: 1fr; padding: 12px 14px 8px; border-radius: 16px; }
	.mp-tf-zelle { border-left: 0; padding: 8px 6px; }
	.mp-tf-ziffer b { font-size: 48px; }
	.mp-woche { padding: 14px 12px; }
	.mp-zeile { grid-template-columns: 1fr; gap: 6px; padding: 12px; }
	.mp-zeile .mp-tag { order: 1; }
	.mp-zeile .mp-zeiten { order: 2; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; }
	.mp-zeile .mp-spur { order: 3; }
	.mp-zeile-zu .mp-spur { display: none; }
	.mp-g-name, .mp-g-preis { font-size: 16.5px; }
	.mp-g-zeile { gap: 8px; }
	.mp-g-punkte { min-width: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
	.mp-tafel { animation: mp-tafel-ein 600ms cubic-bezier(.23, 1, .32, 1) both; }
}
@keyframes mp-tafel-ein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ===== Kopf (mp-kopf) =====
   Standard: dunkler Kopf, feststehend (Wrapper sticky, funktioniert auch ohne Elementor-Sticky).
   Mit Startbild (body.mp-hat-startbild): durchsichtig, absolut über dem Bild, nach 80 px fest und dunkel. */
:root { --mp-kopf-dunkel: #0A1F2E; --mp-adminbar: 0px; }
body.admin-bar { --mp-adminbar: 32px; }
@media (max-width: 782px) { body.admin-bar { --mp-adminbar: 46px; } }
@media (max-width: 600px) { body.admin-bar { --mp-adminbar: 0px; } }

.elementor-location-header:has(.mp-kopf) { position: sticky; top: var(--mp-adminbar); z-index: 9990; }
body.mp-hat-startbild .elementor-location-header:has(.mp-kopf) { position: static; }
.mp-kopf { transition: background-color .3s ease, box-shadow .3s ease; }
.mp-kopf .elementor-nav-menu--dropdown { z-index: 9995; }

body.mp-hat-startbild .mp-kopf.e-con,
body.mp-hat-startbild .mp-kopf {
	position: absolute !important; top: var(--mp-adminbar) !important; left: 0; right: 0; width: 100%; max-width: 100%;
	background: transparent !important; box-shadow: none !important; z-index: 9990;
	margin: 0; inset-inline: 0;
}
body.mp-hat-startbild .mp-kopf.is-stuck {
	position: fixed !important; background: var(--mp-kopf-dunkel) !important;
	box-shadow: 0 2px 16px rgba(10, 31, 46, .25) !important;
}
body.mp-hat-startbild .mp-kopf,
body.mp-hat-startbild .mp-kopf a,
body.mp-hat-startbild .mp-kopf .elementor-item { color: #fff; }
/* Elementor-Sticky darf den Kopf nicht zusätzlich verschieben */
body.mp-hat-startbild .elementor-sticky__spacer { display: none !important; }
/* Handy: offenes Menü liegt über allem und der Kopf ist dahinter dunkel */
body.mp-hat-startbild .mp-kopf:has(.elementor-menu-toggle.elementor-active) { background: var(--mp-kopf-dunkel) !important; }
.mp-kopf .elementor-menu-toggle { position: relative; z-index: 9996; }
@media (prefers-reduced-motion: reduce) { .mp-kopf { transition: none; } }

/* ===== Gleichmäßige Raster =====
   Bilder in Containern mit mp-raster-bild-* bekommen festes Seitenverhältnis, object-fit: cover. */
.mp-raster-bild-43 { --mp-bild-verh: 4 / 3; }
.mp-raster-bild-32 { --mp-bild-verh: 3 / 2; }
.mp-raster-bild-11 { --mp-bild-verh: 1 / 1; }
.mp-raster-bild-169 { --mp-bild-verh: 16 / 9; }
.mp-raster-bild-34 { --mp-bild-verh: 3 / 4; }
:is(.mp-raster-bild-43, .mp-raster-bild-32, .mp-raster-bild-11, .mp-raster-bild-169, .mp-raster-bild-34) :is(.elementor-widget-image, .elementor-widget-container) { width: 100%; }
:is(.mp-raster-bild-43, .mp-raster-bild-32, .mp-raster-bild-11, .mp-raster-bild-169, .mp-raster-bild-34) .elementor-widget-image img,
.elementor-widget-image:is(.mp-raster-bild-43, .mp-raster-bild-32, .mp-raster-bild-11, .mp-raster-bild-169, .mp-raster-bild-34) img,
:is(.mp-raster-bild-43, .mp-raster-bild-32, .mp-raster-bild-11, .mp-raster-bild-169, .mp-raster-bild-34) > img {
	display: block; width: 100% !important; height: auto !important; max-width: 100%;
	aspect-ratio: var(--mp-bild-verh); object-fit: cover; object-position: var(--mp-fokus, 50% 50%);
}
/* Bildcontainer mit Hintergrundbild: Verhältnis auf dem Container selbst */
.e-con:is(.mp-raster-bild-43, .mp-raster-bild-32, .mp-raster-bild-11, .mp-raster-bild-169, .mp-raster-bild-34).mp-raster-flaeche { aspect-ratio: var(--mp-bild-verh); background-size: cover; background-position: var(--mp-fokus, 50% 50%); }
.mp-fokus-oben { --mp-fokus: 50% 20%; }
.mp-fokus-unten { --mp-fokus: 50% 80%; }
.mp-fokus-links { --mp-fokus: 25% 50%; }
.mp-fokus-rechts { --mp-fokus: 75% 50%; }

/* Gleich hohe Karten, letzter Knopf unten bündig.
   Auf den Eltern-Container (Reihe) mp-karten-gleich setzen. */
.mp-karten-gleich { align-items: stretch !important; }
.mp-karten-gleich > .e-con, .mp-karten-gleich > .elementor-element { height: auto; align-self: stretch; }
.mp-karten-gleich > .e-con { display: flex; flex-direction: column; }
.mp-karten-gleich > .e-con > .elementor-widget-button:last-child,
.mp-karten-gleich > .e-con > .mp-knopf-unten { margin-top: auto; }
.mp-karten-gleich > .e-con > .e-con:last-child:has(.elementor-widget-button) { margin-top: auto; }
/* Text füllt den freien Platz, damit der Knopf unten sitzt */
.mp-karten-gleich > .e-con > .elementor-widget-text-editor:last-of-type { flex-grow: 0; }
/* Auch für Loop-Grid und Grid-Container: Karten gleich hoch */
.mp-karten-gleich.e-grid, .mp-karten-gleich.e-con.e-grid { align-items: stretch !important; }
.mp-karten-gleich.e-grid > .e-con { height: 100%; }

/* ===== Betriebsferien-Zeile unter der Woche ===== */
body:not(.mp-hat-ferien-geplant):not(.elementor-editor-active) .mp-nur-ferien-geplant { display: none !important; }
.mp-ferien-zeile { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--mp-kachel); color: var(--mp-tinte); font-size: 16px; font-weight: 600; line-height: 1.35; }
.mp-ferien-symbol { flex: none; color: var(--mp-blau-d); }
.mp-ferien-zeile.mp-ferien-hervor { background: #FFF1CF; color: #5B3A00; box-shadow: inset 5px 0 0 #E0A21F; }
.mp-ferien-zeile.mp-ferien-hervor .mp-ferien-symbol { color: #B87A00; }

/* ===== Abzeichen Badegewässerqualität (Nachbau des EU-Piktogramms) ===== */
.mp-bq { --mp-bq-farbe: #0B3F94; display: flex; align-items: center; gap: 12px; width: 250px; max-width: 100%; margin: 0; box-sizing: border-box; padding: 9px 12px 9px 9px; color: var(--mp-bq-farbe); font-family: inherit; }
.mp-bq-weiss { background: #fff; border: 1px solid #C9D3DA; }
.mp-bq-hell { --mp-bq-farbe: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .45); }
.mp-bq-bild { flex: none; width: 34%; height: auto; display: block; }
.mp-bq-rahmen { stroke: var(--mp-bq-farbe); }
.mp-bq-stern, .mp-bq-fuell, .mp-bq-strich { fill: var(--mp-bq-farbe); }
.mp-bq-linie { stroke: var(--mp-bq-farbe); }
.mp-bq-stern { transform-box: fill-box; transform-origin: center; }
.mp-bq-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mp-bq-titel { font-weight: 700; font-size: 12.5px; line-height: 1.2; }
.mp-bq-legende { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.mp-bq-legende li { display: flex; align-items: center; gap: 6px; font-size: 11.5px; line-height: 1.25; font-weight: 400; }
.mp-bq-legende li.ist-stufe { font-weight: 700; }
.mp-bq-sterne { display: inline-flex; width: 50px; flex: none; gap: 0; }
.mp-bq-sterne svg { width: 16px; height: 16px; flex: none; }
.mp-bq-wellen { transform-box: fill-box; }

/* ===== EU-Förderhinweis ===== */
.mp-eu { display: flex; align-items: center; gap: 14px; width: 360px; max-width: 100%; margin: 0; color: #11303F; font-family: "Archivo", system-ui, sans-serif; }
.mp-eu-flagge { flex: none; width: 34%; height: auto; display: block; }
.mp-eu-stern { transform-box: fill-box; transform-origin: center; }
.mp-eu-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.22; }
.mp-eu-z1 { font-size: 17px; font-weight: 400; letter-spacing: .01em; }
.mp-eu-z2 { font-size: 12px; font-weight: 700; }
.mp-eu-z3 { font-size: 12px; font-weight: 400; }
@media (max-width: 767px) { .mp-eu { width: 100%; max-width: 340px; } }

/* ===== Animationen beim ersten Sichtbarwerden (Klasse mp-anim kommt per Skript, ohne Skript voll sichtbar) ===== */
@media (prefers-reduced-motion: no-preference) {
	.mp-anim .mp-bq .mp-bq-stern { opacity: 0; transform: scale(.4); }
	.mp-anim .mp-bq.mp-in .mp-bq-stern { opacity: 1; transform: none; transition: opacity 300ms ease-out, transform 360ms cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--mp-i, 0) * 120ms); }
	.mp-anim .mp-bq.mp-in .mp-bq-wellen { animation: mp-wellen 2.4s ease-in-out 1 both; }
	.mp-anim .mp-eu .mp-eu-stern { opacity: 0; transform: scale(.6); }
	.mp-anim .mp-eu.mp-in .mp-eu-stern { opacity: 1; transform: none; transition: opacity 260ms ease-out, transform 320ms cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--mp-i, 0) * 60ms); }
}
@keyframes mp-wellen { 0% { transform: translateX(0); } 35% { transform: translateX(-5px); } 70% { transform: translateX(3px); } 100% { transform: translateX(0); } }

/* ===== Handy: Seebad-Tafel zweispaltig, Küchenzeile, Stundenachse ===== */
.mp-tf-rest .mp-tf-hinweis { font-size: 20px; font-weight: 700; color: #fff; line-height: 1.25; }
@media (max-width: 767px) {
	.mp-tafel { grid-template-columns: 1fr 1fr; }
	.mp-tafel .mp-tf-temps { grid-column: 1 / -1; }
	.mp-tafel .mp-tf-zelle.mp-tf-bad, .mp-tafel .mp-tf-zelle.mp-tf-rest { padding: 8px 6px; }
	.mp-tafel .mp-tf-zelle.mp-tf-rest { border-left: 2px solid rgba(255, 255, 255, .14); padding-left: 12px; }
	.mp-tf-bad .mp-tf-hinweis { display: none; }
	.mp-tf-text { font-size: 19px; }
	.mp-tf-rest .mp-tf-hinweis { font-size: 15px; }
	.mp-woche .mp-achse { display: block; margin: 0 12px 4px; }
}

/* ===== Seitenkopf: langsamer Zoom der Bildebene (mp-kenburns) und Linie zeichnet sich (mp-zeichnen) ===== */
.mp-kenburns .elementor-background-slideshow { overflow: hidden; }
.mp-kenburns .elementor-background-slideshow__slide__image { animation: mp-kenburns 24s cubic-bezier(.33, 0, .2, 1) both; transform-origin: 50% 45%; will-change: transform; }
@keyframes mp-kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
.mp-zeichnen { transform-origin: left center; animation: mp-zeichnen 1.1s cubic-bezier(.23, 1, .32, 1) .45s both; }
@keyframes mp-zeichnen { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
	.mp-kenburns .elementor-background-slideshow__slide__image, .mp-zeichnen { animation: none; will-change: auto; }
}

/* Beschriftungen der Abzeichen nicht kursiv (Theme setzt figcaption kursiv) */
.mp-bq figcaption, .mp-eu figcaption { font-style: normal; }

.mp-ferien-zusatz { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; line-height: 1.35; }
.mp-weihnachten-tage { list-style: none; margin: 0; padding: 0; }
.mp-weihnachten-tage li { padding: 3px 0; }
.mp-w-tag { font-weight: 600; }

/* Seebad-Tafel mit nur einem Wert (Luft oder Wasser): volle Breite, ohne Trennlinie */
.mp-tf-temps.mp-tf-eins { grid-template-columns: 1fr; }
.mp-tf-temps.mp-tf-eins .mp-tf-wasser { border-left: 0; padding-left: 0; }

/* Termin-Kacheln der Startseite (Widget mp_termine). Raster: 1 Spalte, ab 768 px 2, ab 1100 px 3. Die Spaltenzahl ist fest (kein auto-fit), damit wenige Kacheln nicht aufgezogen werden. */
.mp-termine { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.mp-termine li { margin: 0; padding: 0; }
.mp-t-kachel { display: grid; grid-template-columns: 116px minmax(0, 1fr); height: 100%; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: var(--mp-schatten, 0 2px 6px rgba(17, 48, 63, .06), 0 10px 24px rgba(17, 48, 63, .07)); color: var(--mp-ink, #11303F); text-decoration: none; transition: box-shadow 200ms ease; }
.mp-t-kachel:hover { box-shadow: 0 2px 6px rgba(17, 48, 63, .1), 0 16px 32px rgba(17, 48, 63, .14); }
.mp-t-kachel img { display: block; width: 100%; height: 100%; min-height: 116px; object-fit: cover; object-position: top; }
.mp-t-innen { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 14px 14px 16px; }
.mp-t-kachel:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.mp-t-datum { background: #FBF7EE; border: 1px solid #E7DCC2; border-radius: 12px; text-align: center; padding: 6px 0 7px; line-height: 1; }
.mp-t-datum b { display: block; font-size: 22px; color: #173D2E; }
.mp-t-datum small { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #B8954F; }
.mp-t-text h3 { margin: 0; font-size: 19px; line-height: 1.2; color: inherit; }
.mp-t-text span { display: block; margin-top: 4px; font-size: 15px; color: var(--mp-ink2, #3A5565); }
.mp-t-text .mp-t-offen { font-weight: 700; color: var(--mp-blue, #1D5792); }
@media (min-width: 768px) {
	.mp-termine { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
	.mp-t-kachel, .mp-t-kachel:not(:has(img)) { display: flex; flex-direction: column; }
	.mp-t-kachel img { height: auto; min-height: 0; aspect-ratio: 3 / 2; }
	.mp-t-innen { padding: 18px 20px 22px; }
}
@media (min-width: 1100px) {
	.mp-termine { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Weihnachtskarte der Startseite (Widget mp_weihnacht_karte) */
.mp-wk { position: relative; overflow: hidden; border-radius: 18px; background: var(--mp-creme, #FBF7EE); box-shadow: 0 2px 6px rgba(23, 61, 46, .08), 0 14px 30px rgba(23, 61, 46, .12); color: var(--mp-ink, #11303F); }
.mp-wk::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, #173D2E, #B8954F); }
.mp-wk-innen { padding: 26px 22px 24px; }
.mp-wk-pille { display: inline-block; margin-bottom: 12px; padding: 5px 14px; border-radius: 99px; background: #F1E6CC; color: #8E2430; font-size: 14px; font-weight: 700; line-height: 1.6; }
.mp-wk .mp-wk-text h3 { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.12; letter-spacing: -.01em; color: inherit; }
.mp-wk-lineal { display: block; width: 108px; height: 12px; margin: 12px 0 6px; color: #B8954F; background: linear-gradient(currentColor, currentColor) left bottom / 100% 2px no-repeat, repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 10px) left bottom / 100% 8px no-repeat; }
.mp-wk-liste { list-style: none; margin: 6px 0 20px; padding: 0; }
.mp-wk-tag { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 0; padding: 13px 0; border-bottom: 1px solid #E7DCC2; }
.mp-wk-tag:last-child { border-bottom: 0; }
.mp-wk-datum { background: #fff; border: 1px solid #E7DCC2; border-radius: 12px; text-align: center; padding: 6px 0 7px; line-height: 1; }
.mp-wk-datum b { display: block; font-size: 22px; color: #173D2E; }
.mp-wk-datum small { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #B8954F; }
.mp-wk-name b { display: block; font-size: 16px; line-height: 1.6; }
.mp-wk-name span { font-size: 14px; color: var(--mp-ink2, #3A5565); }
.mp-wk-zeit { font-size: 17px; font-weight: 800; white-space: nowrap; color: #173D2E; }
.mp-wk-aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.mp-wk a.mp-wk-knopf { display: inline-flex; line-height: 1.6; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 99px; background: #173D2E; color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; }
.mp-wk a.mp-wk-knopf svg { flex: none; width: 18px; height: 18px; }
.mp-wk a.mp-wk-link { display: inline-flex; line-height: 1.6; align-items: center; gap: 8px; padding-bottom: 3px; border-bottom: 2px solid #B8954F; color: #173D2E; font-weight: 700; text-decoration: none; }
@media (min-width: 900px) {
	.mp-wk-innen { display: grid; grid-template-columns: 1fr 1.25fr; grid-template-rows: auto auto; gap: 18px 40px; align-items: center; padding: 34px 38px; }
	.mp-wk-text { grid-row: 1; }
	.mp-wk-liste { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
	.mp-wk-tag { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px 12px; text-align: center; border: 1px solid #E7DCC2; border-radius: 14px; background: #fff; }
	.mp-wk-tag:last-child { border-bottom: 1px solid #E7DCC2; }
	.mp-wk-datum { border: 0; padding: 0; background: none; }
	.mp-wk-datum b { font-size: 30px; }
	.mp-wk-aktion { grid-column: 1; grid-row: 2; align-self: start; }
}

/* Fehlt der Abschnitt „Aktuelles und Termine“, grenzt die Schräge von „Zu Gast am Mahlower See“ an den Abschnitt davor (Grundfarbe statt Tönung). */
body.mp-ohne-termine:not(.elementor-editor-active) #saeulen { --mp-von: #F6F9FA; }

/* Bleibt auf der Seite „Weihnachten“ nur eine der beiden Karten stehen (Gänseessen ohne laufende Veranstaltung), nimmt sie die ganze Breite. */
.mp-karten-gleich > :only-child { grid-column: 1 / -1; }
.mp-wk a.mp-wk-knopf:hover, .mp-wk a.mp-wk-knopf:focus-visible { background: #1F4D3A; color: #fff; }
.mp-wk a.mp-wk-link:hover, .mp-wk a.mp-wk-link:focus-visible { color: #1F4D3A; }
