/*
 * MP Veranstaltungen – Ausgabe für Besucher.
 * Grundsatz: Schrift, Schriftgrößen und Farben kommen von der Website.
 * Dieses Stylesheet liefert nur das Gerüst (Abstände, Raster, Karten).
 * Anpassbar über Variablen:
 *   --mpe-accent      Akzentfarbe (sonst: Hauptfarbe des Themes)
 *   --mpe-on-accent   Textfarbe auf der Akzentfarbe
 *   --mpe-radius      Eckenrundung
 *   --mpe-ratio       Seitenverhältnis der Bilder
 *   --mpe-gap         Abstand zwischen den Karten
 *   --mpe-card-bg     Hintergrund der Karten
 *   --mpe-line        Linienfarbe
 */
.mpe {
	/* Akzentfarbe: Einstellung, sonst die Hauptfarbe von Avada, Elementor, Block-Themes, Astra, Kadence, GeneratePress. */
	--mpe-a: var(--mpe-accent, var(--button_gradient_top_color, var(--primary_color, var(--e-global-color-accent, var(--wp--preset--color--primary, var(--ast-global-color-0, var(--global-palette1, var(--accent, currentColor))))))));
	--mpe-a-solid: var(--mpe-accent, var(--button_gradient_top_color, var(--primary_color, var(--e-global-color-accent, var(--wp--preset--color--primary, var(--ast-global-color-0, var(--global-palette1, var(--accent, #2b2e33))))))));
	--mpe-on: var(--mpe-on-accent, #fff);
	--mpe-line: rgba(128, 128, 128, .3);
	--mpe-gap: 28px;
	box-sizing: border-box;
}
.mpe *, .mpe *::before, .mpe *::after { box-sizing: border-box; }

/* Lesbarkeit: Auf dunklen Seiten (oder wenn die Textfarbe des Themes nicht zum Hintergrund passt) greift das hier.
   Die Klassen setzt ein kleines Skript beim Laden, oder die Einstellung „Farbschema“. */
.mpe.mpe-on-dark { --mpe-line: rgba(255, 255, 255, .22); --mpe-card-bg: rgba(255, 255, 255, .06); }
.mpe.mpe-fix-color.mpe-on-dark { color: #f3f3f3; }
.mpe.mpe-fix-color.mpe-on-light { color: #1d1f23; }
.mpe.mpe-fix-color :where(h1, h2, h3, h4, h5, h6, p, li, dt, dd, label, span, strong, em, time, td, th, blockquote, figcaption):not(.mpe-badge, .mpe-badge *, .mpe-btn, .mpe-btn *, .mpe-cancelled, .mpe-cal-event, .mpe-cal-event *, .mpe-req, .mpe-field-error, .mpe-compact-date, .mpe-cats, .mpe-reg-free, .mpe-filter-btn) { color: inherit; }
.mpe .mpe-badge, .mpe .mpe-badge span { color: var(--mpe-on); }
.mpe.mpe-on-dark .mpe--shadow, .mpe.mpe-on-dark.mpe--shadow { --mpe-card-bg: rgba(255, 255, 255, .06); }

.mpe .mpe-title, .mpe .mpe-meta, .mpe .mpe-excerpt, .mpe .mpe-cats, .mpe .mpe-card-action, .mpe .mpe-more { margin: 0; padding: 0; }
.mpe .mpe-title { font-size: 1.25em; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.mpe .mpe-title a { color: inherit; text-decoration: none; }
.mpe .mpe-title a:hover, .mpe .mpe-title a:focus-visible { color: var(--mpe-a); }
.mpe .mpe-meta { font-size: .92em; opacity: .82; line-height: 1.4; }
.mpe .mpe-excerpt { font-size: .95em; }
.mpe .mpe-cats { font-size: .74em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mpe-a); line-height: 1.3; }
.mpe .mpe-more { margin-top: var(--mpe-gap); text-align: center; }
.mpe .mpe-img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; }
.mpe-empty p { margin: 0; opacity: .8; }

.mpe-cancelled { display: inline-block; padding: 2px 7px; border-radius: 3px; background: #b3261e; color: #fff; font-size: .62em; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; vertical-align: middle; }

/* Datum als kleines Kalenderblatt */
.mpe-badge { display: inline-flex; flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; min-width: 54px; padding: 8px; border-radius: calc(var(--mpe-radius, 8px) * .75); background: var(--mpe-a-solid); color: var(--mpe-on); line-height: 1; text-align: center; }
.mpe-badge-day { font-size: 1.35em; font-weight: 700; }
.mpe-badge-month { margin-top: 4px; font-size: .7em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* Buttons: Mit Klassen des Themes (Einstellungen) sehen sie aus wie alle Buttons der Website. */
/* Ohne passende Theme-Klassen: eigener Button. Die --mpe-btn-Werte liest frontend.js von den Buttons der Website ab. */
.mpe-btn:not(.mpe-btn--theme) { display: inline-block; padding: var(--mpe-btn-padding, .7em 1.4em); border: var(--mpe-btn-border, 1px solid transparent); border-radius: var(--mpe-btn-radius, var(--mpe-radius, 8px)); background: var(--mpe-btn-bg, var(--mpe-a-solid)); color: var(--mpe-btn-color, var(--mpe-on)); font: inherit; font-family: var(--mpe-btn-font, inherit); font-size: var(--mpe-btn-size, inherit); font-weight: var(--mpe-btn-weight, 600); letter-spacing: var(--mpe-btn-spacing, normal); line-height: var(--mpe-btn-line, 1.2); text-align: center; text-decoration: none; text-transform: var(--mpe-btn-case, none); cursor: pointer; transition: opacity .2s; }
.mpe-btn:not(.mpe-btn--theme):hover, .mpe-btn:not(.mpe-btn--theme):focus-visible { opacity: .85; color: var(--mpe-btn-color, var(--mpe-on)); }
.mpe .mpe-btn.mpe-btn--ghost:not(.mpe-btn--theme) { border-color: transparent; box-shadow: inset 0 0 0 2px currentColor; background: transparent; color: inherit; }
.mpe .mpe-btn.mpe-btn--theme.mpe-btn--ghost { border-color: transparent !important; background: transparent !important; background-image: none !important; box-shadow: inset 0 0 0 2px currentColor !important; color: inherit !important; }
.mpe .mpe-btn.mpe-btn--theme.mpe-btn--ghost .mpe-btn-text { color: inherit !important; }
.mpe .mpe-btn.mpe-btn--theme.mpe-btn--ghost:hover, .mpe .mpe-btn.mpe-btn--theme.mpe-btn--ghost:focus-visible { opacity: .7; }
.mpe-btn { display: inline-block; max-width: 100%; }
.mpe-when-date, .mpe-when-time { display: block; }
.mpe-btn[disabled] { opacity: .6; cursor: wait; }

/* Kategorie-Filter */
.mpe-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.mpe-filter-btn { padding: .45em 1.1em; border: 1px solid var(--mpe-line); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: .9em; line-height: 1.3; cursor: pointer; }
.mpe-filter-btn.is-active { border-color: transparent; background: var(--mpe-a-solid); color: var(--mpe-on); }
.mpe [data-mpe-cats].is-hidden { display: none; }

/* Grid */
/* Die Spaltenzahl ist eine Obergrenze: Ist der Platz auf der Seite schmaler, werden es von selbst weniger. */
.mpe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, max(var(--mpe-min, 250px), calc((100% - (var(--mpe-cols, 3) - 1) * var(--mpe-gap)) / var(--mpe-cols, 3)))), 1fr)); gap: var(--mpe-gap); }
.mpe-cols-1 { --mpe-cols: 1; }
.mpe-cols-2 { --mpe-cols: 2; }
.mpe-cols-3 { --mpe-cols: 3; }
.mpe-cols-4 { --mpe-cols: 4; }
.mpe-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--mpe-radius, 8px); background: var(--mpe-card-bg, transparent); }
.mpe--border .mpe-card { border: 1px solid var(--mpe-line); }
.mpe--shadow .mpe-card { background: var(--mpe-card-bg, #fff); box-shadow: 0 6px 24px rgba(0, 0, 0, .09); }
.mpe-card-media { position: relative; display: block; overflow: hidden; aspect-ratio: var(--mpe-ratio, 16/9); }
.mpe--flat .mpe-card { overflow: visible; }
.mpe--flat .mpe-card-media { border-radius: var(--mpe-radius, 8px); }
.mpe-card-media .mpe-img { transition: transform .45s ease; }
.mpe-card:hover .mpe-card-media .mpe-img { transform: scale(1.04); }
.mpe-card-media .mpe-badge { position: absolute; top: 14px; left: 14px; }
.mpe-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 22px 22px; }
.mpe--flat .mpe-card-body { padding: 16px 0 0; }
.mpe .mpe-card-action { margin-top: auto; padding-top: 10px; }

/* Liste */
.mpe-list { display: flex; flex-direction: column; }
.mpe-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 18px 0; border-bottom: 1px solid var(--mpe-line); }
.mpe--border .mpe-row, .mpe--shadow .mpe-row { margin-bottom: 14px; padding: 18px 20px; border: 1px solid var(--mpe-line); border-radius: var(--mpe-radius, 8px); background: var(--mpe-card-bg, transparent); }
.mpe--shadow .mpe-row { border-color: transparent; background: var(--mpe-card-bg, #fff); box-shadow: 0 4px 18px rgba(0, 0, 0, .08); }
.mpe-row-media { flex: 0 0 120px; overflow: hidden; border-radius: calc(var(--mpe-radius, 8px) * .75); aspect-ratio: 4/3; }
.mpe-row-main { display: flex; flex: 1 1 260px; flex-direction: column; gap: 4px; min-width: 0; }
.mpe-row-action { flex: 0 0 auto; }

/* Kompakt (Seitenleiste, Footer) */
.mpe .mpe-compact { margin: 0; padding: 0; list-style: none; }
.mpe .mpe-compact-item { margin: 0; padding: 0; border-bottom: 1px solid var(--mpe-line); list-style: none; }
.mpe .mpe-compact-item::before { content: none; }
.mpe-compact-item a { display: grid; grid-template-columns: minmax(6em, auto) 1fr; column-gap: 14px; padding: 10px 0; color: inherit; text-decoration: none; }
.mpe-compact-date { font-weight: 600; color: var(--mpe-a); white-space: nowrap; }
.mpe-compact-place { grid-column: 2; font-size: .85em; opacity: .75; }
.mpe-compact-item a:hover .mpe-compact-title { text-decoration: underline; }

/* Hero */
.mpe-hero { position: relative; display: flex; align-items: flex-end; overflow: hidden; min-height: min(70vh, 560px); border-radius: var(--mpe-radius, 8px); background: var(--mpe-a-solid); color: #fff; }
/* Hero im Vollbild: bricht aus dem Seitenrahmen aus. --mpe-vw setzt frontend.js (Bildschirmbreite ohne Scrollleiste). */
.mpe.mpe-hero--full { position: relative; left: calc(50% - var(--mpe-vw, 100vw) / 2); width: var(--mpe-vw, 100vw); max-width: none; margin-left: 0; margin-right: 0; border-radius: 0; }
.mpe-hero.mpe-hero--full, .mpe-hero--full .mpe-hero-slide { min-height: 100vh; min-height: 100svh; border-radius: 0; }
.mpe-hero--full .mpe-hero-inner, .mpe-hero--full.mpe-hero > .mpe-hero-inner { max-width: none; padding-left: max(clamp(24px, 5vw, 56px), calc((100% - var(--site_width, 1200px)) / 2)); padding-right: max(clamp(24px, 5vw, 56px), calc((100% - var(--site_width, 1200px)) / 2)); padding-bottom: clamp(56px, 9vh, 110px); }
.mpe-hero--full .mpe-hero-inner > * { max-width: 780px; }
.mpe-hero--full .mpe-hero--center .mpe-hero-inner > *, .mpe-hero--full.mpe-hero--center .mpe-hero-inner > * { margin-left: auto; margin-right: auto; }

/* Hero: mehrere Veranstaltungen nebeneinander */
.mpe-hero-row { display: flex; overflow: hidden; gap: 0; border-radius: var(--mpe-radius, 8px); }
.mpe-hero-panel { flex: 1 1 0; min-width: 0; border-radius: 0; }
.mpe-hero-panel + .mpe-hero-panel { border-left: 1px solid rgba(255, 255, 255, .18); }
.mpe-hero--full .mpe-hero-panel { min-height: 100vh; min-height: 100svh; }
.mpe .mpe-hero-row .mpe-hero-inner, .mpe.mpe-hero--full.mpe-hero-row .mpe-hero-inner { max-width: none; padding: clamp(22px, 3.2vw, 52px); }
.mpe .mpe-hero-row .mpe-hero-inner > * { max-width: 560px; }
.mpe .mpe-hero-row .mpe-hero-title { font-size: clamp(1.5em, 2.6vw, 2.5em); overflow-wrap: anywhere; hyphens: auto; }
.mpe-hero-row--3 .mpe-hero-text, .mpe-hero-row--4 .mpe-hero-text { display: none; }
.mpe-hero-panel .mpe-hero-img { transition: transform .6s ease; }
.mpe-hero-panel:hover .mpe-hero-img { transform: scale(1.03); }
@media (max-width: 781px) {
	.mpe-hero-row { flex-direction: column; }
	.mpe-hero-panel { flex: 0 0 auto; }
	.mpe-hero-panel + .mpe-hero-panel { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
	.mpe-hero--full .mpe-hero-panel { min-height: 72vh; min-height: 72svh; }
	.mpe .mpe-hero-row .mpe-hero-title { font-size: clamp(1.6em, 7vw, 2.2em); }
}
@media (prefers-reduced-motion: reduce) { .mpe-hero-panel .mpe-hero-img { transition: none; } }

/* Hero mit mehreren Veranstaltungen */
.mpe-hero-slider { position: relative; overflow: hidden; border-radius: var(--mpe-radius, 8px); }
.mpe-hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.mpe-hero-track::-webkit-scrollbar { display: none; }
.mpe-hero-slide { flex: 0 0 100%; border-radius: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.mpe-hero-slider .mpe-hero-inner { padding-bottom: clamp(56px, 8vw, 84px); }
.mpe .mpe-hero-nav { all: unset; position: absolute; top: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; transition: background .2s; }
.mpe .mpe-hero-nav span { margin-top: -4px; color: inherit; }
.mpe .mpe-hero-nav:hover, .mpe .mpe-hero-nav:focus-visible { background: rgba(0, 0, 0, .65); }
.mpe .mpe-hero-nav:focus-visible, .mpe .mpe-hero-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mpe .mpe-hero-prev { left: clamp(8px, 2vw, 24px); }
.mpe .mpe-hero-next { right: clamp(8px, 2vw, 24px); }
.mpe-hero-dots { position: absolute; right: 0; bottom: clamp(16px, 3vw, 28px); left: 0; z-index: 2; display: flex; justify-content: center; gap: 10px; }
.mpe .mpe-hero-dot { all: unset; box-sizing: border-box; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.mpe .mpe-hero-dot.is-active { background: #fff; }
@media (max-width: 640px) { .mpe .mpe-hero-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .mpe-hero-track { scroll-behavior: auto; } }

.mpe-hero--center { align-items: center; justify-content: center; text-align: center; }
.mpe .mpe-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.mpe-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .74), rgba(0, 0, 0, .28) 55%, rgba(0, 0, 0, .12)); }
.mpe-hero--noimg { color: var(--mpe-on); }
.mpe-hero--noimg::after { display: none; }
.mpe-hero-inner { position: relative; z-index: 1; width: 100%; max-width: 780px; padding: clamp(24px, 5vw, 56px); }
.mpe-hero--center .mpe-hero-inner { margin: 0 auto; }
.mpe .mpe-hero-kicker { margin: 0 0 .7em; font-size: .8em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .92; }
.mpe .mpe-hero-title { margin: 0 0 .35em; padding: 0; color: inherit; font-size: clamp(1.8em, 4.2vw, 3em); line-height: 1.1; }
.mpe-hero .mpe-meta { margin: 0 0 .8em; font-size: 1.05em; opacity: 1; }
.mpe .mpe-hero-text { max-width: 60ch; margin: 0 0 1.2em; }
.mpe-hero--center .mpe-hero-text { margin-left: auto; margin-right: auto; }
.mpe-hero .mpe-actions { margin: 0; }
.mpe-hero--center .mpe-actions { justify-content: center; }

/* Einzelseite: Kopf mit Titel und Bild, links der Text, rechts die Infobox */
.mpe-single { width: 100%; max-width: var(--mpe-single-width, var(--site_width, 1200px)); margin-left: auto; margin-right: auto; padding-top: var(--mpe-single-pad, clamp(24px, 4vw, 56px)); padding-bottom: var(--mpe-single-pad, clamp(24px, 4vw, 56px)); }
.mpe-single.mpe-edge { padding-left: clamp(16px, 4vw, 30px); padding-right: clamp(16px, 4vw, 30px); }
.mpe-single-head { margin: 0 0 clamp(28px, 4vw, 52px); }
.mpe .mpe-single-title { margin: 0 0 .35em; padding: 0; line-height: 1.12; overflow-wrap: anywhere; hyphens: auto; }
.mpe-single-head .mpe-cats { margin: 0 0 .8em; }
.mpe .mpe-single-when { margin: 0; padding: 0; font-size: 1.15em; font-weight: 600; line-height: 1.4; }
.mpe-single-place { display: block; font-weight: 400; opacity: .8; }
.mpe-single-head .mpe-actions { margin-top: 1.4em; }
.mpe .mpe-single-img { display: block; width: 100%; height: auto; max-width: 100%; }

.mpe-single--split .mpe-single-head { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 4vw, 56px); }
.mpe-single--split .mpe-single-head-text { flex: 1 1 380px; min-width: 0; }
.mpe-single--split .mpe-single-media { flex: 1 1 340px; max-width: 560px; overflow: hidden; border-radius: var(--mpe-radius, 8px); }
.mpe-single--split .mpe-single-img { max-height: 620px; object-fit: cover; object-position: center top; }

.mpe-single--banner .mpe-single-head { position: relative; display: flex; align-items: flex-end; overflow: hidden; min-height: clamp(300px, 42vw, 540px); border-radius: var(--mpe-radius, 8px); color: #fff; }
.mpe-single--banner .mpe-single-img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center 30%; }
.mpe-single--banner .mpe-single-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .3) 55%, rgba(0, 0, 0, .08)); }
.mpe-single--banner .mpe-single-head-text { position: relative; z-index: 1; width: 100%; max-width: 820px; padding: clamp(22px, 4vw, 48px); }
.mpe.mpe-single--banner .mpe-single-head :where(h1, p, span, time) { color: inherit; }
.mpe-single--banner .mpe-single-head .mpe-cats { color: #fff; opacity: .9; }

.mpe-single-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(28px, 4vw, 56px); }
.mpe-single-main { flex: 999 1 460px; min-width: 0; }
.mpe-single-main > :first-child { margin-top: 0; }
.mpe-single-side { flex: 1 1 300px; position: sticky; top: var(--mpe-sticky-top, 110px); }
.mpe-single-box .mpe-details { margin: 0; padding: 24px; border-radius: var(--mpe-radius, 8px); }
.mpe--border .mpe-single-box .mpe-details { border: 1px solid var(--mpe-line); }
.mpe--shadow .mpe-single-box .mpe-details { background: var(--mpe-card-bg, #fff); box-shadow: 0 6px 24px rgba(0, 0, 0, .09); }
.mpe--flat .mpe-single-box .mpe-details { padding: 0 0 0 clamp(0px, 2vw, 28px); border-left: 1px solid var(--mpe-line); }
.mpe .mpe-single-box .mpe-facts { grid-template-columns: 1fr; gap: 18px; }
.mpe .mpe-single-side .mpe-actions { flex-direction: column; align-items: stretch; }
.mpe .mpe-single-side .mpe-actions .mpe-btn { display: block; text-align: center; }
.mpe .mpe-single-side .mpe-more-dates ul { flex-direction: column; align-items: flex-start; }
.mpe-single-duo { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(28px, 4vw, 60px); }
.mpe-single-duo .mpe-single-media { flex: 1 1 320px; max-width: 520px; overflow: hidden; border-radius: var(--mpe-radius, 8px); position: sticky; top: var(--mpe-sticky-top, 110px); }
.mpe-single-duo .mpe-single-img { max-height: 720px; object-fit: cover; object-position: center top; }
.mpe-single-duo-main { flex: 1.25 1 380px; min-width: 0; }
.mpe-single-duo-main .mpe-single-box { margin-bottom: clamp(24px, 3vw, 40px); }
.mpe .mpe-single-duo-main .mpe-single-box .mpe-facts { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.mpe-single-head--bare.mpe-single-head::after { display: none; }
.mpe-single--banner .mpe-single-head--bare { min-height: clamp(240px, 36vw, 480px); }
/* Mit dem Avada Builder gebaute Texte bringen eigenen Seitenabstand mit: bündig zum Bild ausrichten. */
.mpe-single-main > .fusion-fullwidth, .mpe-single-main > .fusion-fullwidth > .fusion-builder-row { padding-left: 0 !important; padding-right: 0 !important; }
.mpe-single .mpe-reg { margin-top: clamp(32px, 4vw, 56px); }

/* Einzelseite: Infobox */
.mpe-details { margin: 0 0 32px; padding: 22px 24px; border-radius: var(--mpe-radius, 8px); }
.mpe--border.mpe-details, .mpe--border.mpe-reg { border: 1px solid var(--mpe-line); }
.mpe--shadow.mpe-details, .mpe--shadow.mpe-reg { background: var(--mpe-card-bg, #fff); box-shadow: 0 6px 24px rgba(0, 0, 0, .09); }
.mpe--flat.mpe-details, .mpe--flat.mpe-reg { padding: 0; }
.mpe .mpe-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 28px; margin: 0; padding: 0; }
.mpe .mpe-fact dt { margin: 0 0 2px; padding: 0; font-size: .74em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.mpe .mpe-fact dd { margin: 0; padding: 0; }
.mpe-route { white-space: nowrap; font-size: .9em; }
.mpe .mpe-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0 0; padding: 0; }
.mpe .mpe-notice { margin: 0 0 16px; padding: 10px 14px; border-left: 3px solid var(--mpe-a); background: rgba(128, 128, 128, .1); }
.mpe .mpe-notice--warn { border-left-color: #b3261e; }
.mpe-more-dates { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--mpe-line); }
.mpe .mpe-more-dates-title { margin: 0 0 6px; font-weight: 600; }
.mpe .mpe-more-dates ul { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 0; list-style: none; }
.mpe .mpe-more-dates li { margin: 0; padding: 0; list-style: none; }
.mpe .mpe-more-dates li::before { content: none; }
.mpe-more-dates a { display: inline-block; padding: 4px 12px; border: 1px solid var(--mpe-line); border-radius: 999px; color: inherit; font-size: .9em; text-decoration: none; }
.mpe-more-dates a:hover { border-color: var(--mpe-a); color: var(--mpe-a); }

/* Anmeldung */
.mpe-reg { margin: 40px 0 0; padding: 24px; border-radius: var(--mpe-radius, 8px); scroll-margin-top: 120px; }
.mpe .mpe-reg-title { margin: 0 0 12px; padding: 0; }
.mpe .mpe-reg-free { margin: 0 0 16px; font-weight: 600; color: var(--mpe-a); }
.mpe-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.mpe .mpe-field { margin: 0 0 14px; padding: 0; }
.mpe .mpe-field label { display: block; margin: 0 0 4px; font-size: .92em; font-weight: 600; }
.mpe .mpe-field input:not([type="checkbox"]), .mpe .mpe-field select, .mpe .mpe-field textarea { width: 100%; max-width: 100%; }
:where(.mpe-form) :where(input:not([type="checkbox"]), select, textarea) { padding: .6em .8em; border: 1px solid rgba(128, 128, 128, .5); border-radius: 4px; background: transparent; color: inherit; font: inherit; }
.mpe .mpe-req { color: #b3261e; }
.mpe .mpe-consent label { display: flex; align-items: flex-start; gap: 10px; font-size: .9em; font-weight: 400; }
.mpe .mpe-consent input { flex: 0 0 auto; width: auto; margin: .25em 0 0; }
.mpe .mpe-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mpe .mpe-field-error { display: block; margin-top: 4px; color: #b3261e; font-size: .85em; }
.mpe .mpe-form-msg { margin: 0 0 14px; padding: 12px 14px; border-left: 3px solid var(--mpe-a); background: rgba(128, 128, 128, .1); }
.mpe .mpe-form-msg:empty { display: none; }
.mpe .mpe-form-msg.is-error { border-left-color: #b3261e; }
.mpe .mpe-form-msg.is-ok { border-left-color: #1e7b34; font-weight: 600; }
.mpe .mpe-form-submit { margin: 0; }
.mpe-form.is-done > :not(.mpe-form-msg) { display: none; }

/* Monatskalender */
.mpe-cal { transition: opacity .15s; }
.mpe-cal.is-loading { opacity: .45; pointer-events: none; }
.mpe-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.mpe-cal-title { font-size: 1.2em; }
.mpe .mpe-cal-nav { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--mpe-line); border-radius: 50%; color: inherit; font-size: 1.5em; line-height: 1; text-decoration: none; }
.mpe .mpe-cal-nav:hover { border-color: var(--mpe-a); color: var(--mpe-a); }
.mpe .mpe-cal-table { width: 100%; margin: 0; border: 0; border-collapse: collapse; table-layout: fixed; }
.mpe .mpe-cal-table th { padding: 8px 6px; border: 0; background: none; color: inherit; font-size: .74em; font-weight: 600; letter-spacing: .08em; text-align: left; text-transform: uppercase; opacity: .7; }
.mpe .mpe-cal-table td { height: 98px; padding: 6px; border: 1px solid var(--mpe-line); background: none; vertical-align: top; text-align: left; }
.mpe .mpe-cal-table td.mpe-cal-off { background: rgba(128, 128, 128, .07); }
.mpe-cal-num { display: block; margin-bottom: 4px; font-size: .8em; opacity: .7; }
.is-today .mpe-cal-num { font-weight: 700; color: var(--mpe-a); opacity: 1; }
.mpe .mpe-cal-event { overflow: hidden; margin: 0 0 3px; padding: 3px 6px; border-radius: 4px; background: var(--mpe-a-solid); color: var(--mpe-on); font-size: .78em; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.mpe .mpe-cal-event:hover { opacity: .85; color: var(--mpe-on); }
.mpe-cal-time { display: block; font-weight: 700; }
.mpe .mpe-cal-list { display: none; }
.mpe .mpe-cal-none { padding: 10px 0; opacity: .75; }

@media (max-width: 782px) {
	.mpe-single-side { position: static; order: -1; }
	.mpe-single-duo .mpe-single-media { position: static; max-width: none; }
}
@media (max-width: 700px) {
	.mpe .mpe-cal-table { display: none; }
	.mpe .mpe-cal-list { display: block; }
}
@media (max-width: 640px) {
	.mpe-row-media { display: none; }
	.mpe-row-main { flex-basis: calc(100% - 80px); }
	.mpe-row-action { flex-basis: 100%; }
	.mpe-form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.mpe-card-media .mpe-img, .mpe-cal, .mpe-btn { transition: none; }
}
