.mle-calendar{--mle-primary:#103b2a;--mle-accent:#d7c09b;--mle-bg:#f8f7f3;--mle-text:#181b19;--mle-muted:#68716c;--mle-line:#dfe3df;color:var(--mle-text);background:var(--mle-bg);font-family:Arial,sans-serif;box-shadow:0 18px 55px rgba(19,32,25,.12);overflow:hidden}.mle-calendar *{box-sizing:border-box}.mle-toolbar{display:flex;align-items:center;gap:18px;padding:24px 38px 16px}.mle-year-arrow{width:44px;height:44px;background:#fff;border:1px solid var(--mle-line);font-size:30px;color:var(--mle-primary);cursor:pointer}.mle-year-wrap{display:flex;align-items:baseline;gap:10px;margin-right:auto}.mle-year-label{text-transform:uppercase;letter-spacing:2px;font-size:10px;color:var(--mle-muted)}.mle-year{font-family:Georgia,serif;font-size:32px}.mle-search{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--mle-line);padding:0 13px;height:42px}.mle-search input{border:0!important;background:transparent!important;box-shadow:none!important;width:190px;padding:0!important}.mle-months{display:grid;grid-template-columns:repeat(12,1fr);padding:0 38px 20px;gap:4px}.mle-months button{border:0;border-bottom:2px solid transparent;background:transparent;padding:11px 2px;color:var(--mle-muted);font-size:12px;letter-spacing:.6px;cursor:pointer}.mle-months button:hover,.mle-months button.is-active{color:var(--mle-primary);border-bottom-color:var(--mle-primary);font-weight:700}.mle-desktop-view{padding:0 38px 40px}.mle-weekdays,.mle-grid{display:grid;grid-template-columns:repeat(7,1fr)}.mle-weekdays{border:1px solid var(--mle-line);border-bottom:0;background:#f3f4f2}.mle-weekdays span{text-align:center;padding:11px;font-size:11px}.mle-grid{border-top:1px solid var(--mle-line);border-left:1px solid var(--mle-line)}.mle-day{min-height:112px;padding:9px;border-right:1px solid var(--mle-line);border-bottom:1px solid var(--mle-line);background:rgba(255,255,255,.52)}.mle-day.is-blank{background:rgba(245,245,242,.55)}.mle-day-number{display:block;font-size:12px;margin-bottom:7px}.mle-event-chip{display:block;width:100%;border:0;border-left:3px solid var(--mle-primary);background:var(--event-color,#dcebd7);padding:7px;text-align:left;color:#142019;cursor:pointer;margin:3px 0}.mle-event-chip b,.mle-event-chip small{display:block;font-size:11px;line-height:1.35}.mle-event-chip.is-featured{box-shadow:0 3px 10px rgba(16,59,42,.18)}.mle-empty{text-align:center;color:var(--mle-muted);padding:25px}.mle-mobile-list{display:none}.mle-modal[hidden]{display:none}.mle-modal{position:fixed;z-index:999999;inset:0;display:grid;place-items:center;padding:25px}.mle-backdrop{position:absolute;inset:0;background:rgba(9,20,14,.72);backdrop-filter:blur(3px)}.mle-dialog{position:relative;z-index:1;background:#fff;width:min(var(--mle-popup),94vw);max-height:92vh;overflow:auto;box-shadow:0 30px 90px rgba(0,0,0,.35)}.mle-close{position:absolute;z-index:2;right:16px;top:16px;width:42px;height:42px;border-radius:50%;border:1px solid rgba(0,0,0,.15);background:#fff;font-size:28px;line-height:1;cursor:pointer}.mle-modal-image img{width:100%;height:310px;object-fit:cover;display:block}.mle-modal-body{padding:28px 34px 34px}.mle-modal-date{margin:0 0 8px;color:var(--mle-muted);text-transform:capitalize}.mle-modal-body h3{font-family:Georgia,serif;font-size:34px;line-height:1.1;margin:0 0 18px;color:var(--mle-text)}.mle-facts{margin:15px 0}.mle-facts p{display:flex;gap:12px;margin:8px 0}.mle-description{margin:20px 0;line-height:1.65}.mle-cta{display:block;background:var(--mle-primary);color:#fff!important;text-align:center;padding:15px 20px;margin-top:20px;letter-spacing:1.5px;font-size:12px;text-decoration:none}.mle-more{display:block;text-align:center;color:var(--mle-primary)!important;margin-top:15px}.mle-modal-open{overflow:hidden}
@media(max-width:900px){.mle-toolbar{padding:20px}.mle-months{padding:0 20px 15px;overflow-x:auto;display:flex}.mle-months button{min-width:58px}.mle-search{display:none}.mle-desktop-view{display:none}.mle-mobile-list{display:block;padding:0 20px 25px}.mle-list-item{display:flex;align-items:center;gap:12px;width:100%;padding:11px 0;border:0;border-bottom:1px solid var(--mle-line);background:transparent;text-align:left;cursor:pointer}.mle-date-tile{width:48px;min-width:48px;height:52px;background:#e5efdf;display:flex;flex-direction:column;align-items:center;justify-content:center}.mle-date-tile b{font-size:18px}.mle-date-tile small{font-size:9px}.mle-list-item img{width:54px;height:48px;object-fit:cover}.mle-list-copy{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}.mle-list-copy b{font-size:13px}.mle-list-copy small{font-size:10px;color:var(--mle-muted)}.mle-list-item i{font-size:22px;font-style:normal}.mle-mobile-empty{color:var(--mle-muted);text-align:center;padding:25px}.mle-modal{padding:12px}.mle-modal-image img{height:230px}.mle-modal-body{padding:23px}.mle-modal-body h3{font-size:28px}}
@media(max-width:520px){.mle-toolbar{gap:10px;padding:16px}.mle-year-arrow{width:38px;height:38px}.mle-year-wrap{margin:0 auto}.mle-year-label{display:none}.mle-year{font-size:23px}.mle-months{padding:0 16px 12px}.mle-mobile-list{padding:0 16px 22px}.mle-dialog{width:96vw}.mle-modal-image img{height:190px}}

/* Das Eventbild wird immer vollständig im Seitenverhältnis 16:9 angezeigt. */
.mle-modal-image{width:100%;aspect-ratio:16/9;background:#111;overflow:hidden}
.mle-modal-image img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:900px){.mle-modal-image img{height:100%}}
@media(max-width:520px){.mle-modal-image img{height:100%}}

/* Kompaktes Popup: vollständiges Bild ohne Seitenbalken und ohne horizontalen Scrollbalken. */
.mle-dialog{width:min(var(--mle-popup),640px,92vw);max-height:82vh;overflow-x:hidden}
.mle-modal-image{width:100%;aspect-ratio:auto;background:transparent;overflow:hidden}
.mle-modal-image img{display:block;width:100%;height:auto;max-height:none;object-fit:initial}
.mle-modal-body{padding:22px 28px 26px}
.mle-modal-body h3{font-size:30px;margin-bottom:14px}
.mle-facts{margin:12px 0}
.mle-facts p{margin:6px 0}
.mle-description{margin:15px 0;line-height:1.55}
.mle-cta{margin-top:15px;padding:13px 18px}
.mle-more{margin-top:12px}
@media(max-width:520px){.mle-dialog{width:94vw;max-height:86vh}.mle-modal-body{padding:20px}.mle-modal-body h3{font-size:27px}}

/* Ohne Beitragstext bleibt alles sichtbar; nur zusätzlicher Text aktiviert Scrollen. */
.mle-modal{place-items:center}
.mle-dialog{width:min(var(--mle-popup),560px,92vw);max-height:min(var(--mle-popup-height,640px),calc(100vh - 80px));overflow-x:hidden;overflow-y:auto;transform:translateY(var(--mle-offset-y,0px))}
.mle-dialog.has-description{height:min(var(--mle-popup-height,640px),calc(100vh - 80px));max-height:min(var(--mle-popup-height,640px),calc(100vh - 80px));overflow-y:auto}
.mle-modal-body{padding:18px 22px 20px}
.mle-modal-date{margin-bottom:5px;font-size:14px}
.mle-modal-body h3{font-size:27px;line-height:1.08;margin-bottom:10px}
.mle-facts{margin:8px 0}
.mle-facts p{margin:4px 0;font-size:14px}
.mle-cta{margin-top:11px;padding:11px 16px}
.mle-more{margin-top:9px;font-size:14px}
@media(max-width:520px){.mle-dialog{width:92vw;max-height:min(var(--mle-popup-height,640px),calc(100dvh - 36px));overflow-y:auto}.mle-dialog.has-description{height:min(var(--mle-popup-height,640px),calc(100dvh - 36px));max-height:min(var(--mle-popup-height,640px),calc(100dvh - 36px));overflow-y:auto}.mle-modal-body{padding:16px 18px 18px}.mle-modal-body h3{font-size:25px}}

/* Eventbild als dezente Vorschau hinter dem Text im Desktop-Kalender. */
.mle-event-chip{position:relative;isolation:isolate;overflow:hidden;min-height:52px}
.mle-chip-image{position:absolute;z-index:0;inset:0;width:100%;height:100%;object-fit:cover;opacity:.48}
.mle-event-chip::after{content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.88),rgba(255,255,255,.55))}
.mle-chip-content{position:relative;z-index:2;display:block}
.mle-chip-content b,.mle-chip-content small{display:block}

/* Smartphone: nur Jahresauswahl und alle Termine des gewählten Jahres als Liste. */
@media(max-width:900px){.mle-months{display:none}.mle-toolbar{padding-bottom:16px}.mle-date-tile{height:58px}.mle-date-tile em{font-size:9px;line-height:1.1;font-style:normal;color:var(--mle-muted)}}

/* Das Beitragsbild füllt ausschließlich das belegte Tagesfeld. */
.mle-day{position:relative;isolation:isolate;overflow:hidden}
.mle-day-bg{position:absolute;z-index:0;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.mle-day.has-event-image{background:#111}
.mle-day.has-event-image::after{content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.06),rgba(0,0,0,.20));pointer-events:none}
.mle-day-number{position:relative;z-index:3}
.mle-day.has-event-image .mle-day-number{display:flex;width:27px;height:27px;margin:-2px 0 8px -2px;border-radius:50%;align-items:center;justify-content:center;background:#fff;color:#111;font-weight:700;box-shadow:0 2px 7px rgba(0,0,0,.22)}
.mle-day-events{position:relative;z-index:3}
.mle-day .mle-event-chip{position:relative;isolation:auto;min-height:0;padding:7px 8px;border-left:3px solid var(--mle-primary);background:#fff;color:#111;box-shadow:0 2px 8px rgba(0,0,0,.20)}
.mle-day .mle-event-chip::after{display:none}
.mle-day .mle-chip-content{position:relative;z-index:auto}

/* Frei einstellbares Design des Anmeldebuttons im Popup. */
.mle-modal .mle-cta{background:var(--mle-cta-bg,#103b2a);color:var(--mle-cta-text,#fff)!important;font-family:var(--mle-cta-font,Arial,sans-serif)!important;font-size:var(--mle-cta-size,12px)!important}

/* Popup außerhalb aller Divi-Stapelkontexte immer auf der obersten Ebene. */
body>.mle-modal{z-index:2147483647!important}
body>.mle-modal,body>.mle-modal *{box-sizing:border-box}

/* Der Kalender beginnt mit dem Startjahr der neuen Website. */
.mle-year-arrow:disabled{opacity:.3;cursor:not-allowed}

/* Goldener Sheriffstern für Termine mit aktivierter Hervorhebung. */
.mle-day .mle-event-chip.is-featured{overflow:visible;box-shadow:0 0 0 1px rgba(211,158,25,.72),0 3px 10px rgba(0,0,0,.24)}
.mle-featured-star{position:absolute;z-index:5;top:-11px;right:5px;display:grid;width:31px;height:31px;place-items:center;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 94%,50% 72%,21% 94%,32% 57%,2% 35%,39% 35%);background:linear-gradient(145deg,#fff0a1 5%,#e7b52e 45%,#b87905 100%);color:#664000;font-size:11px;line-height:1;text-shadow:0 1px rgba(255,255,255,.65);filter:drop-shadow(0 2px 2px rgba(0,0,0,.38));pointer-events:none}
@media(max-width:900px){.mle-list-item{position:relative}.mle-list-item.is-featured{padding-right:2px}.mle-list-item .mle-featured-star{position:relative;top:auto;right:auto;flex:0 0 28px;width:28px;height:28px;margin-left:4px;font-size:10px}.mle-list-item.is-featured .mle-date-tile{box-shadow:0 0 0 1px rgba(211,158,25,.65)}}
