/* LGMW Multisite Öffentliche Verwaltung – Frontend
   Alle Farben über Variablen anpassbar, z. B. im Elementor-Kit:
   .lgmw-ov { --lgmw-primary: #52738e; } */

.lgmw-ov {
	--lgmw-ink: #1c2b38;
	--lgmw-muted: #4f6070;
	--lgmw-primary: #52738e;
	--lgmw-primary-dark: #3d5a73;
	--lgmw-surface: #f3f6f9;
	--lgmw-line: #d5dee6;
	--lgmw-accent: #a8895f;
	--lgmw-accent-soft: #f8f4ee;
	--lgmw-radius: 10px;
	color: var(--lgmw-ink);
}
.lgmw-ov *, .lgmw-ov *::before, .lgmw-ov *::after { box-sizing: border-box; }
.lgmw-ov h3 { margin: 0; }
.lgmw-ov a { color: var(--lgmw-primary-dark); }
.lgmw-ov a:focus-visible, .lgmw-ov button:focus-visible, .lgmw-ov input:focus-visible, .lgmw-ov select:focus-visible, .lgmw-ov textarea:focus-visible { outline: 3px solid var(--lgmw-accent); outline-offset: 2px; }
.lgmw-ov-eyebrow { display: block; font-size: .78em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lgmw-accent); margin-bottom: 2px; }
.lgmw-ov-meta { color: var(--lgmw-muted); font-size: .88em; margin: 2px 0 0; }
.lgmw-ov-empty-front { color: var(--lgmw-muted); font-style: italic; }
.lgmw-ov [hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Raster & Personen */
.lgmw-ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; margin: 0 0 28px; }
.lgmw-ov-grouphead { font-size: 1.25em; margin: 28px 0 12px !important; padding-bottom: 6px; border-bottom: 2px solid var(--lgmw-accent); display: flex; justify-content: space-between; align-items: baseline; }
.lgmw-ov-grouphead span { font-size: .7em; color: var(--lgmw-muted); font-weight: 400; }
.lgmw-ov-groupdesc { color: var(--lgmw-muted); margin: -4px 0 12px; }
.lgmw-ov-person { display: flex; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--lgmw-line); border-radius: var(--lgmw-radius); }
.lgmw-ov-person__img { flex: none; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.lgmw-ov-person__img--empty { display: grid; place-items: center; background: var(--lgmw-surface); color: var(--lgmw-primary); font-weight: 700; font-size: 1.3em; }
.lgmw-ov-person__body { min-width: 0; }
.lgmw-ov-person h3 { font-size: 1.08em; line-height: 1.3; }
.lgmw-ov-person--party { box-shadow: inset 4px 0 0 var(--lgmw-party, transparent); }
.lgmw-ov-person--large { grid-column: 1 / -1; padding: 22px; background: var(--lgmw-accent-soft); border-color: #efe7da; }
.lgmw-ov-person--large .lgmw-ov-person__img { width: 140px; height: 140px; }
.lgmw-ov-person--large h3 { font-size: 1.4em; }
.lgmw-ov-person__text { margin-top: 8px; }
.lgmw-ov-mayors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.lgmw-ov-tasks { margin: 8px 0 0; padding-left: 1.1em; font-size: .92em; }
.lgmw-ov-contact { list-style: none; margin: 10px 0 0; padding: 0; font-size: .93em; display: grid; gap: 3px; }
.lgmw-ov-contact li { padding-left: 1.5em; position: relative; overflow-wrap: anywhere; }
.lgmw-ov-contact li::before { position: absolute; left: 0; top: 0; width: 1.2em; text-align: center; color: var(--lgmw-primary); }
.lgmw-ov-contact__tel::before { content: "☎"; }
.lgmw-ov-contact__fax::before { content: "⎙"; }
.lgmw-ov-contact__mail::before { content: "✉"; }
.lgmw-ov-contact__room::before { content: "⌂"; }
.lgmw-ov-contact__time::before { content: "◷"; }
@media (max-width: 480px) { .lgmw-ov-person { flex-direction: column; } }

/* Tabellen */
.lgmw-ov-ftable { width: 100%; border-collapse: collapse; font-size: .95em; margin: 0 0 24px; }
.lgmw-ov-ftable th, .lgmw-ov-ftable td { padding: 10px 12px; border-bottom: 1px solid var(--lgmw-line); text-align: left; }
.lgmw-ov-ftable thead th { background: var(--lgmw-surface); }
@media (max-width: 640px) {
	.lgmw-ov-ftable thead { display: none; }
	.lgmw-ov-ftable tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--lgmw-line); }
	.lgmw-ov-ftable td { display: block; border: 0; padding: 2px 0; }
}

/* Mitteilungsblatt */
.lgmw-ov-year { border: 1px solid var(--lgmw-line); border-radius: var(--lgmw-radius); margin-bottom: 10px; background: #fff; }
.lgmw-ov-year summary { cursor: pointer; padding: 12px 16px; font-weight: 700; font-size: 1.1em; display: flex; justify-content: space-between; }
.lgmw-ov-year summary span { font-weight: 400; color: var(--lgmw-muted); font-size: .85em; }
.lgmw-ov-filelist { list-style: none; margin: 0; padding: 0 16px 12px; }
.lgmw-ov-filelist li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--lgmw-surface); }
.lgmw-ov-filelist small { flex-basis: 100%; color: var(--lgmw-muted); padding-left: 64px; }
.lgmw-ov-date { width: 52px; color: var(--lgmw-muted); font-variant-numeric: tabular-nums; }
.lgmw-ov-file { font-weight: 600; text-decoration: none; }
.lgmw-ov-file .lgmw-ov-meta { display: inline; margin-left: 8px; font-weight: 400; }
.lgmw-ov-file:hover { text-decoration: underline; }
.lgmw-ov-mtb-current { padding: 20px; border-radius: var(--lgmw-radius); background: var(--lgmw-primary); color: #fff; }
.lgmw-ov-mtb-current .lgmw-ov-eyebrow { color: #efe7da; }
.lgmw-ov-mtb-current__link { display: block; color: #fff !important; font-size: 1.3em; font-weight: 700; text-decoration: none; }
.lgmw-ov-mtb-current__link .lgmw-ov-meta { display: block; color: #e2e9ef; font-size: .65em; font-weight: 400; }
.lgmw-ov-mtb-current p { margin: 10px 0 0; color: #e2e9ef; font-size: .92em; }

/* Suche */
.lgmw-ov-search { display: block; margin-bottom: 16px; }
.lgmw-ov-search input { width: 100%; padding: 12px 14px; font-size: 1.05em; border: 2px solid var(--lgmw-line); border-radius: var(--lgmw-radius); background: #fff; }
.lgmw-ov-search input:focus { border-color: var(--lgmw-primary); }

/* Formulare */
.lgmw-ov-forms__group { margin-bottom: 24px; }
.lgmw-ov-forms__group h3 { font-size: 1.1em; margin-bottom: 8px !important; }
.lgmw-ov-forms ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lgmw-ov-form a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #fff; border: 1px solid var(--lgmw-line); border-radius: var(--lgmw-radius); text-decoration: none; color: var(--lgmw-ink); transition: border-color .15s; }
.lgmw-ov-form a:hover { border-color: var(--lgmw-primary); }
.lgmw-ov-form__icon { flex: none; width: 38px; height: 38px; border-radius: 8px; background: var(--lgmw-surface); position: relative; }
.lgmw-ov-form__icon::after { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--lgmw-primary); }
.lgmw-ov-form__icon--datei::after { content: "PDF"; }
.lgmw-ov-form__icon--online::after { content: "✎"; font-size: 18px; }
.lgmw-ov-form__icon--extern::after { content: "↗"; font-size: 18px; }
.lgmw-ov-form__icon--seite::after { content: "i"; font-size: 18px; font-family: Georgia, serif; font-style: italic; }
.lgmw-ov-form__icon--online { background: var(--lgmw-accent-soft); }
.lgmw-ov-form__body { flex: 1; min-width: 0; }
.lgmw-ov-form__body small { display: block; color: var(--lgmw-muted); }
.lgmw-ov-form__type { flex: none; text-align: right; font-size: .85em; font-weight: 600; color: var(--lgmw-primary-dark); }
.lgmw-ov-form__type small { display: block; font-weight: 400; color: var(--lgmw-muted); }
@media (max-width: 560px) { .lgmw-ov-form__type { display: none; } }
.lgmw-ov-iframe { width: 100%; min-height: 720px; border: 1px solid var(--lgmw-line); border-radius: var(--lgmw-radius); }

/* Online-Formular */
.lgmw-ov-onlineform { display: grid; gap: 14px; max-width: 720px; }
.lgmw-ov-ff label { display: block; font-weight: 600; margin-bottom: 4px; }
.lgmw-ov-ff input:not([type=checkbox]), .lgmw-ov-ff select, .lgmw-ov-ff textarea { width: 100%; padding: 10px 12px; font: inherit; border: 1px solid #8aa3b8; border-radius: 6px; background: #fff; }
.lgmw-ov-ff__check { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; }
.lgmw-ov-ff__check input { margin-top: .3em; }
.lgmw-ov-req-note { color: var(--lgmw-muted); font-size: .9em; margin: 0; }
.lgmw-ov-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lgmw-ov-btn { justify-self: start; padding: 12px 26px; border: 0; border-radius: 6px; background: var(--lgmw-primary); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.lgmw-ov-btn:hover { background: var(--lgmw-primary-dark); }
.lgmw-ov-alert { padding: 14px 16px; border-radius: var(--lgmw-radius); }
.lgmw-ov-alert--ok { background: #e3f1e5; color: #1e4d25; border: 1px solid #b9dcbf; }

/* Sitzungen */
.lgmw-ov-sessions ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lgmw-ov-session { display: flex; gap: 16px; padding: 16px; background: #fff; border: 1px solid var(--lgmw-line); border-radius: var(--lgmw-radius); }
.lgmw-ov-session__date { flex: none; width: 74px; text-align: center; padding: 8px 4px; border-radius: 8px; background: var(--lgmw-surface); color: var(--lgmw-muted); font-size: .8em; line-height: 1.2; }
.lgmw-ov-session__date span { display: block; font-size: 2em; font-weight: 700; color: var(--lgmw-primary); }
.lgmw-ov-session h3 { font-size: 1.1em; }
.lgmw-ov-session__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; }

/* A–Z */
.lgmw-ov-az__letters { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.lgmw-ov-az__letters a { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 6px; background: var(--lgmw-surface); text-decoration: none; font-weight: 700; }
.lgmw-ov-az__letters a:hover { background: var(--lgmw-primary); color: #fff; }
.lgmw-ov-az__group { margin-bottom: 18px; scroll-margin-top: 120px; }
.lgmw-ov-az__group h3 { font-size: 1.4em; color: var(--lgmw-accent); }
.lgmw-ov-az__group dl { margin: 6px 0 0; }
.lgmw-ov-az__item { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr; gap: 4px 16px; padding: 8px 0; border-bottom: 1px solid var(--lgmw-surface); }
.lgmw-ov-az__item dt { font-weight: 600; }
.lgmw-ov-az__item dd { margin: 0; display: grid; gap: 2px; }
.lgmw-ov-az__item dd a { white-space: nowrap; } /* seit 1.19.63: Telefon/„Nachricht schreiben“ brechen nur als Ganzes um */
@media (max-width: 560px) { .lgmw-ov-az__item { grid-template-columns: 1fr; } }

/* Einbettungsseite (iframe) */
.lgmw-ov-embed { margin: 0; padding: 20px 16px; font-family: "Open Sans", "Segoe UI", system-ui, sans-serif; color: #1c2b38; background: #fff; line-height: 1.55; }
.lgmw-ov-embed main { max-width: 720px; margin: 0 auto; }
.lgmw-ov-embed h1 { font-size: 1.5em; margin: 0 0 8px; }
.lgmw-ov-embed__by { margin-top: 24px; font-size: .8em; color: #4f6070; }

/* Meldungen ([lgmw_meldungen]) – Karte mit Knick-Bildschnitt und Fahne */
.lgmw-ov-news { display: grid; grid-template-columns: repeat(var(--lgmw-news-cols, 2), minmax(0, 1fr)); gap: 26px 20px; }
.lgmw-ov-ncard { display: grid; gap: 8px; align-content: start; text-decoration: none; color: var(--lgmw-ink) !important; }
.lgmw-ov-ncard__img { position: relative; display: block; aspect-ratio: 2 / 1; margin-bottom: 4px; }
.lgmw-ov-ncard__img img, .lgmw-ov-ncard__ph { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; display: block;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), 13% 100%, 0 calc(100% - 9px)); transition: filter .2s; }
.lgmw-ov-ncard__ph { background: #f3f6f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 600' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='rgba(138,163,184,0.5)' stroke-width='1.2' vector-effect='non-scaling-stroke'%3E%3Cpolyline points='0,120 130,150 1000,20'/%3E%3Cpolyline points='0,200 130,230 1000,100'/%3E%3Cpolyline points='0,280 130,310 1000,180'/%3E%3Cpolyline points='0,360 130,390 1000,260'/%3E%3Cpolyline points='0,440 130,470 1000,340'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100%; }
.lgmw-ov-ncard__fahne { position: absolute; left: 12px; top: 0; z-index: 1; background: var(--lgmw-primary); color: #fff; font: 700 12px/1.1 var(--k-display, inherit);
	padding: 8px 11px 14px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), 30% 100%, 0 calc(100% - 4px)); }
.lgmw-ov-ncard__img--symbol { background: #f3f6f9; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), 13% 100%, 0 calc(100% - 9px)); }
.lgmw-ov-ncard__img--symbol img { inset: 0 0 12px; margin: auto; width: 100% !important; height: clamp(40px, 30%, 64px) !important; object-fit: contain; clip-path: none; }
.lgmw-ov-ncard:hover .lgmw-ov-ncard__img--symbol { background: #e2e9ef; }
.lgmw-ov-ncard__meta { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--lgmw-accent); }
.lgmw-ov .lgmw-ov-ncard__title { font: 600 18px/1.25 var(--k-display, inherit); color: var(--lgmw-ink); margin: 0; }
.lgmw-ov-ncard__text { font-size: 14px; line-height: 1.5; color: var(--lgmw-muted); margin: 0; }
.lgmw-ov-ncard:hover .lgmw-ov-ncard__title { color: var(--lgmw-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.lgmw-ov-ncard:hover .lgmw-ov-ncard__img img { filter: brightness(1.06); }
@media (max-width: 600px) { .lgmw-ov-news { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .lgmw-ov-ncard__img img { transition: none; } }
/* Wohn- & Gewerbegrund ([lgmw_baugrund]) */
.lgmw-ov-plot { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--lgmw-line); border-radius: var(--lgmw-radius); overflow: hidden; }
.lgmw-ov-plot__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.lgmw-ov-plot__body { padding: 16px; display: grid; gap: 10px; align-content: start; flex: 1; }
.lgmw-ov-plot h3 { font-size: 1.08em; line-height: 1.3; }
.lgmw-ov-plot__facts { margin: 0; display: grid; gap: 4px; font-size: .95em; }
.lgmw-ov-plot__facts div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--lgmw-surface); }
.lgmw-ov-plot__facts dt { color: var(--lgmw-muted); }
.lgmw-ov-plot__facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.lgmw-ov-plot--reserviert { opacity: .8; }
.lgmw-ov-badge { justify-self: start; display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8em; font-weight: 700; background: var(--lgmw-surface); color: var(--lgmw-primary-dark); }
.lgmw-ov-badge--warn { background: #fdf3e1; color: #8a5a00; }
.lgmw-ov-btn--ghost { display: inline-block; padding: 9px 16px; background: #fff; color: var(--lgmw-primary) !important; border: 2px solid var(--lgmw-primary); text-decoration: none; font-weight: 600; }
.lgmw-ov-btn--ghost:hover { background: var(--lgmw-primary); color: #fff !important; }

/* Einrichtungen & Vereine ([lgmw_einrichtungen]) */
.lgmw-ov-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.lgmw-ov-chips button { font: inherit; font-size: .9em; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--lgmw-line); background: #fff; color: var(--lgmw-ink); cursor: pointer; }
.lgmw-ov-chips button:hover { border-color: var(--lgmw-primary); }
.lgmw-ov-chips button.is-active { background: var(--lgmw-primary); border-color: var(--lgmw-primary); color: #fff; }
.lgmw-ov-org { display: grid; gap: 10px; align-content: start; padding: 16px; background: #fff; border: 1px solid var(--lgmw-line); border-radius: var(--lgmw-radius); }
.lgmw-ov-org__head { display: flex; gap: 12px; align-items: center; }
.lgmw-ov-org__logo { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 8px; background: #fff; border: 1px solid var(--lgmw-surface); overflow: hidden; }
.lgmw-ov-org__logo img { max-width: 100%; max-height: 100%; width: auto !important; height: auto !important; object-fit: contain; }
.lgmw-ov-org__logo--empty { background: var(--lgmw-surface); color: var(--lgmw-primary); font-weight: 700; font-size: 1.3em; }
.lgmw-ov-org h3 { font-size: 1.05em; line-height: 1.3; }
.lgmw-ov-org .lgmw-ov-contact { margin: 0; }
.lgmw-ov-org__links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: .92em; font-weight: 600; }
.lgmw-ov-org__links a { text-decoration: none; }
.lgmw-ov-org__links a:hover { text-decoration: underline; }
.lgmw-ov-org__more summary { cursor: pointer; font-size: .92em; font-weight: 600; color: var(--lgmw-primary-dark); }
.lgmw-ov-org__more > div { margin-top: 8px; font-size: .93em; }
.lgmw-ov-org__more h2 { font-size: 1em; margin: 10px 0 4px; }
.lgmw-ov-org__more p { margin: 0 0 6px; }

/* Infoseite: Buttons zu externen Formularen oder Dateien */
.lgmw-ov-formbtns { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; margin: 24px 0 8px; }
.lgmw-ov-formbtn { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--lgmw-line); border-left: 4px solid var(--lgmw-primary); border-radius: var(--lgmw-radius); text-decoration: none !important; color: var(--lgmw-ink) !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.lgmw-ov-formbtn:hover, .lgmw-ov-formbtn:focus-visible { border-color: var(--lgmw-primary); box-shadow: 0 6px 18px rgba(10, 32, 51, .1); transform: translateY(-1px); }
.lgmw-ov-formbtn__icon { flex: none; width: 40px; height: 40px; border-radius: 8px; background: var(--lgmw-surface) center / 20px 20px no-repeat; }
.lgmw-ov-formbtn--link .lgmw-ov-formbtn__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352738e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6M15 3h6v6M10 14 21 3'/%3E%3C/svg%3E"); }
.lgmw-ov-formbtn--datei .lgmw-ov-formbtn__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352738e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M9 14h6M9 17h4'/%3E%3C/svg%3E"); }
.lgmw-ov-formbtn__body { display: flex; flex-direction: column; min-width: 0; }
.lgmw-ov-formbtn__body strong { font-weight: 700; color: var(--lgmw-primary-dark, var(--lgmw-ink)); line-height: 1.3; }
.lgmw-ov-formbtn__body small { color: var(--lgmw-muted); font-size: 13px; }
/* =====================================================================
   Eigene Online-Formulare (Aufbau wie LGMW Formularportal, Präfix ovf-)
   ===================================================================== */
.ovf {
	--ovf-primary: var(--lgmw-primary-dark, #3d5a73);
	--ovf-secondary: var(--lgmw-primary, #52738e);
	--ovf-text: var(--lgmw-ink, #1c2b38);
	--ovf-accent: #c5d3df;
	--ovf-light: #f3f6f9;
	--ovf-white: #fff;
	--ovf-radius: 10px;
	--ovf-shadow: 0 1px 2px rgba(10, 32, 51, .06), 0 6px 20px rgba(10, 32, 51, .08);
	--ovf-shadow-hover: 0 6px 22px rgba(10, 32, 51, .16);
	--ovf-error: #b42318;
}
.ovf { color: var(--ovf-text); font-family: var(--ovf-font, inherit); line-height: 1.6; box-sizing: border-box; }
.ovf *, .ovf *::before, .ovf *::after { box-sizing: inherit; }
.ovf-ico { flex: none; vertical-align: -3px; }
.ovf [hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.ovf-btn {
	display: inline-flex; align-items: center; gap: 8px; justify-content: center;
	background: var(--ovf-secondary); color: var(--ovf-white) !important; border: 2px solid var(--ovf-secondary);
	border-radius: var(--ovf-radius); padding: 10px 20px; font: inherit; font-weight: 600; font-size: 16px; line-height: 1.3;
	text-decoration: none !important; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.ovf-btn:hover, .ovf-btn:focus-visible { background: var(--ovf-primary); border-color: var(--ovf-primary); }
.ovf-btn:focus-visible { outline: 3px solid var(--ovf-accent); outline-offset: 2px; }
.ovf-btn--ghost { background: transparent; color: var(--ovf-secondary) !important; }
.ovf-btn--ghost:hover { background: var(--ovf-light); color: var(--ovf-primary) !important; border-color: var(--ovf-primary); }
.ovf-btn .ovf-ico { transition: transform .2s; }
.ovf-next:hover .ovf-ico { transform: translateX(3px); }

/* ---------- Formular ---------- */
.ovf-form { background: var(--ovf-white); border-radius: var(--ovf-radius); box-shadow: var(--ovf-shadow); padding: clamp(20px, 4vw, 40px); scroll-margin-top: 120px; }
.ovf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ovf-progress { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.ovf-progress li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 13px; color: var(--ovf-secondary); margin: 0; }
.ovf-progress li::before { content: ""; position: absolute; top: 17px; right: 50%; width: 100%; height: 3px; background: var(--ovf-accent); z-index: 0; }
.ovf-progress li:first-child::before { display: none; }
.ovf-progress li span { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--ovf-white); border: 3px solid var(--ovf-accent); color: var(--ovf-secondary); transition: all .25s; }
.ovf-progress li em { font-style: normal; font-weight: 600; }
.ovf-progress li.is-done::before, .ovf-progress li.is-active::before { background: var(--ovf-secondary); }
.ovf-progress li.is-done span { background: var(--ovf-secondary); border-color: var(--ovf-secondary); color: #fff; }
.ovf-progress li.is-active span { background: var(--ovf-primary); border-color: var(--ovf-primary); color: #fff; box-shadow: 0 0 0 5px var(--ovf-light); }
.ovf-progress li.is-active em { color: var(--ovf-primary); }
@media (max-width: 600px) { .ovf-progress li em { display: none; } }

.ovf-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.ovf-form.is-enhanced .ovf-step:not(.is-active) { display: none; }
.ovf-step legend { font-size: 22px; font-weight: 700; color: var(--ovf-primary); margin: 0 0 18px; padding: 0; }
.ovf-form:not(.is-enhanced) .ovf-step + .ovf-step { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--ovf-accent); }

.ovf-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px 20px; }
.ovf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ovf-w3 { grid-column: span 3; } .ovf-w4 { grid-column: span 4; } .ovf-w6 { grid-column: span 6; } .ovf-w8 { grid-column: span 8; } .ovf-w12 { grid-column: span 12; }
@media (max-width: 900px) { .ovf-w3 { grid-column: span 6; } .ovf-w4 { grid-column: span 6; } .ovf-w8 { grid-column: span 12; } }
@media (max-width: 600px) { .ovf-grid > * { grid-column: span 12 !important; } }

.ovf-field > label, .ovf-label { font-size: 14px; font-weight: 600; color: var(--ovf-primary); }
.ovf abbr { text-decoration: none; color: var(--ovf-secondary); border: 0; }
.ovf-form input[type=text], .ovf-form input[type=email], .ovf-form input[type=tel], .ovf-form input[type=date], .ovf-form input[type=time], .ovf-form input[type=number], .ovf-form select, .ovf-form textarea {
	width: 100%; font: inherit; font-size: 16px; color: var(--ovf-text); background: #fff;
	border: 1.5px solid #b9cde0; border-radius: 10px; padding: 11px 14px; min-height: 46px; transition: border-color .2s, box-shadow .2s; box-shadow: none; margin: 0;
}
.ovf-form textarea { min-height: 0; resize: vertical; }
.ovf-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2354728C' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.ovf-form input:focus, .ovf-form select:focus, .ovf-form textarea:focus { outline: none; border-color: var(--ovf-secondary); box-shadow: 0 0 0 4px var(--ovf-light); }
.ovf-form .is-invalid input, .ovf-form .is-invalid select, .ovf-form .is-invalid textarea, .ovf-form .is-invalid .ovf-drop { border-color: var(--ovf-error); }
.ovf-err { color: var(--ovf-error); font-size: 13px; }
.ovf-help { font-size: 13px; color: var(--ovf-secondary); }
.ovf-form ::placeholder { color: #8aa0b4; }

.ovf-radios { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ovf-radios--stack { flex-direction: column; gap: 8px; }
.ovf-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; font-weight: 400; color: var(--ovf-text); }
.ovf-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ovf-secondary); flex: none; }
.ovf-check a { color: var(--ovf-secondary); }

.ovf-info { background: var(--ovf-light); border-radius: 10px; padding: 14px 18px; font-size: 14px; border-left: 4px solid var(--ovf-secondary); }
.ovf-info strong { color: var(--ovf-primary); }
.ovf-info p { margin: 4px 0 0; }
.ovf-hint { font-size: 14px; color: var(--ovf-secondary); margin: -6px 0 18px; }
.ovf-subhead { font-size: 17px; color: var(--ovf-primary); margin: 10px 0 0; padding-bottom: 6px; border-bottom: 2px solid var(--ovf-accent); }

/* Upload */
.ovf-drop { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 16px 18px; border: 2px dashed #b9cde0; border-radius: 12px; background: #f9fcff; cursor: pointer; transition: border-color .2s, background .2s; min-height: 78px; font-weight: 400; }
.ovf-drop:hover, .ovf-drop.is-over { border-color: var(--ovf-secondary); background: var(--ovf-light); }
.ovf-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ovf-drop:focus-within { border-color: var(--ovf-secondary); box-shadow: 0 0 0 4px var(--ovf-light); }
.ovf-drop__icon { color: var(--ovf-secondary); width: 40px; height: 40px; border-radius: 50%; background: var(--ovf-white); display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.ovf-drop__text { font-size: 14px; font-weight: 600; color: var(--ovf-primary); display: flex; flex-direction: column; }
.ovf-drop__text small { font-weight: 400; color: var(--ovf-secondary); font-size: 12px; }
.ovf-drop__files { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.ovf-drop__files:empty { display: none; }
.ovf-drop__files span { display: flex; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--ovf-accent); border-radius: 8px; padding: 5px 10px; color: var(--ovf-primary); overflow: hidden; }
.ovf-drop__files span b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ovf-drop__files span i { font-style: normal; color: var(--ovf-secondary); flex: none; }
.ovf-drop.has-files { border-style: solid; border-color: var(--ovf-secondary); }

.ovf-consent { margin-top: 26px; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 12px; background: var(--ovf-light); }
.ovf-consent.is-invalid { box-shadow: inset 0 0 0 2px var(--ovf-error); }

.ovf-nav { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--ovf-accent); }
.ovf-nav__count { margin-right: auto; font-size: 14px; color: var(--ovf-secondary); }
.ovf-form.is-enhanced .ovf-submit { display: none; }
.ovf-form.is-enhanced.is-last .ovf-submit { display: inline-flex; }
.ovf-form.is-enhanced.is-last .ovf-next { display: none; }
.ovf-submit[disabled] { opacity: .7; cursor: progress; }
.ovf-submit.is-loading::after { content: ""; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: ovf-spin .8s linear infinite; }
@keyframes ovf-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) { .ovf-nav { flex-wrap: wrap; } .ovf-nav__count { width: 100%; order: -1; } .ovf-nav .ovf-btn { flex: 1; } }

.ovf-alert { white-space: pre-line; background: #fef3f2; color: var(--ovf-error); border: 1px solid #fecdca; border-radius: 10px; padding: 14px 18px; margin: 0 0 22px; font-size: 15px; }
.ovf-notice { padding: 20px 24px; border-radius: var(--ovf-radius); background: var(--ovf-light); border-left: 5px solid var(--ovf-secondary); margin: 0 0 20px; }
.ovf-notice a { color: var(--ovf-secondary); }
.ovf-notice--warn { background: #fff7ed; border-left-color: #e8590c; padding: 12px 18px; font-size: 14px; }

.ovf-thanks { text-align: center; padding: clamp(28px, 5vw, 56px) 24px; background: var(--ovf-white); border-radius: var(--ovf-radius); box-shadow: var(--ovf-shadow); outline: none; }
.ovf-thanks__icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--ovf-secondary); color: #fff; box-shadow: 0 0 0 10px var(--ovf-light); animation: ovf-pop .5s ease-out; }
.ovf-thanks h3 { font-size: 26px; color: var(--ovf-primary); margin: 10px 0 10px; }
.ovf-thanks p { max-width: 560px; margin: 0 auto 14px; }
.ovf-thanks__number b { color: var(--ovf-primary); }
@keyframes ovf-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) { .ovf * { transition: none !important; animation: none !important; } }
/* =====================================================================
   Theme-Schutz: Themes wie Hello Biz gestalten button/[type=button], abbr,
   label und table global – hier mit höherer Spezifität zurücksetzen.
   ===================================================================== */
.ovf .ovf-btn, .ovf button.ovf-btn, .ovf a.ovf-btn {
	background-color: var(--ovf-secondary) !important; color: #fff !important; border: 2px solid var(--ovf-secondary) !important;
	border-radius: var(--ovf-radius) !important; padding: 10px 20px !important; font-size: 16px !important; font-weight: 600 !important; line-height: 1.3 !important;
	text-transform: none !important; letter-spacing: normal !important; box-shadow: none; width: auto; min-height: 0;
}
.ovf .ovf-btn:hover, .ovf .ovf-btn:focus-visible { background-color: var(--ovf-primary) !important; border-color: var(--ovf-primary) !important; color: #fff !important; }
.ovf .ovf-btn.ovf-btn--ghost { background-color: transparent !important; color: var(--ovf-secondary) !important; border-color: var(--ovf-secondary) !important; }
.ovf .ovf-btn.ovf-btn--ghost:hover, .ovf .ovf-btn.ovf-btn--ghost:focus-visible { background-color: var(--ovf-light) !important; color: var(--ovf-primary) !important; border-color: var(--ovf-primary) !important; }
.ovf .ovf-btn[disabled] { opacity: .6; cursor: default; }
.ovf abbr, .ovf abbr[title] { text-decoration: none !important; border: 0 !important; cursor: help; }
.ovf label { line-height: 1.4; }
.ovf .ovf-check { display: flex; }
.ovf .ovf-field > label:not(.ovf-check):not(.ovf-drop) { display: block; }
.ovf .ovf-drop { display: grid; }
.ovf fieldset { padding: 0; margin: 0; border: 0; }
.ovf legend { display: block; }
.ovf h2, .ovf h3, .ovf h4 { font-family: inherit; }
.ovf .ovf-form input[type=text], .ovf .ovf-form input[type=email], .ovf .ovf-form input[type=tel], .ovf .ovf-form input[type=date], .ovf .ovf-form input[type=time], .ovf .ovf-form input[type=number], .ovf .ovf-form select, .ovf .ovf-form textarea { border: 1.5px solid #b9cde0; border-radius: 10px; }
.ovf table td, .ovf table th { border: 0; line-height: 1.4; }
.ovf table tbody > tr:nth-child(odd) > td, .ovf table tbody tr:hover > td { background-color: transparent; }
.ovf table { margin: 0; font-size: inherit; }
.ovf a.ovf-link, .ovf .ovf-notice a, .ovf .ovf-check a { color: var(--ovf-secondary); }
/* Sitzverteilung [lgmw_sitzverteilung] */
.lgmw-ov-seats { margin: 0; display: grid; gap: 18px; max-width: 460px; }
.lgmw-ov-seats__chart { display: block; width: 100%; height: auto; }
.lgmw-ov-seats__total { font-size: 30px; font-weight: 700; fill: var(--lgmw-ink); }
.lgmw-ov-seats__unit { font-size: 7.5px; font-weight: 600; fill: var(--lgmw-muted); letter-spacing: .14em; text-transform: uppercase; }
.lgmw-ov-seats figcaption { font-style: normal; }
.lgmw-ov-seats__legend { list-style: none; margin: 0; padding: 0; display: grid; }
.lgmw-ov-seats__legend > li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--lgmw-line); }
.lgmw-ov-seats__legend > li:first-child { border-top: 1px solid var(--lgmw-line); }
.lgmw-ov-seats__dot { width: 10px; height: 10px; border-radius: 3px; }
.lgmw-ov-seats__n { font-weight: 700; font-variant-numeric: tabular-nums; }
.lgmw-ov-seats .lgmw-ov-meta { margin: 0; font-size: .9em; }
.lgmw-ov-seats__text { display: grid; gap: 12px; }
.lgmw-ov-seats__members { grid-column: 2 / -1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .9em; color: var(--lgmw-muted); }
.lgmw-ov-seats__members li { margin: 0; padding: 0; border: 0; }
/* Balken: Zahl als Text, Balken fest hoch */
.lgmw-ov-seats__bartotal { margin: 0 0 8px; display: flex; align-items: baseline; gap: 8px; line-height: 1; }
.lgmw-ov-seats__bartotal .lgmw-ov-seats__total { font-size: 2.4em; color: var(--lgmw-ink); }
.lgmw-ov-seats__bartotal .lgmw-ov-seats__unit { font-size: .8em; color: var(--lgmw-muted); }
.lgmw-ov-seats__chart.lgmw-ov-seats__bar { height: 18px; border-radius: 4px; }
/* Anordnungen */
.lgmw-ov-seats--voll { max-width: none; }
/* Grafik wächst bei voller Breite/nebeneinander nicht mit (Standard 420 px, Widget „Breite der Grafik“ setzt --lgmw-seats-grafik) */
.lgmw-ov-seats--voll:not(.lgmw-ov-seats--balken):not(.lgmw-ov-seats--nebeneinander) > .lgmw-ov-seats__grafik { width: 100%; max-width: var(--lgmw-seats-grafik, 420px); }
.lgmw-ov-seats--voll:not(.lgmw-ov-seats--balken) .lgmw-ov-seats__grafik .lgmw-ov-seats__chart, .lgmw-ov-seats--nebeneinander .lgmw-ov-seats__grafik .lgmw-ov-seats__chart { width: 100%; }
.lgmw-ov-seats--nebeneinander { max-width: 960px; grid-template-columns: minmax(0, var(--lgmw-seats-grafik, 420px)) minmax(0, 1fr); align-items: center; column-gap: 40px; }
.lgmw-ov-seats--nebeneinander.lgmw-ov-seats--grafik-rechts { grid-template-columns: minmax(0, 1fr) minmax(0, var(--lgmw-seats-grafik, 420px)); }
.lgmw-ov-seats--nebeneinander.lgmw-ov-seats--voll { max-width: none; }
.lgmw-ov-seats--nebeneinander > .lgmw-ov-grouphead { grid-column: 1 / -1; }
.lgmw-ov-seats--grafik-rechts > .lgmw-ov-seats__grafik { order: 2; }
@media (max-width: 640px) {
	.lgmw-ov-seats--nebeneinander, .lgmw-ov-seats--nebeneinander.lgmw-ov-seats--grafik-rechts { grid-template-columns: 1fr; }
	.lgmw-ov-seats--grafik-rechts > .lgmw-ov-seats__grafik { order: 0; }
}
/* Legende als Kacheln */
.lgmw-ov-seats--legende-kacheln .lgmw-ov-seats__legend { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.lgmw-ov-seats--legende-kacheln .lgmw-ov-seats__legend > li,
.lgmw-ov-seats--legende-kacheln .lgmw-ov-seats__legend > li:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border: 1px solid var(--lgmw-line); border-top: 4px solid var(--lgmw-seat, var(--lgmw-line)); border-radius: 8px; }
.lgmw-ov-seats--legende-kacheln .lgmw-ov-seats__dot { display: none; }
.lgmw-ov-seats--legende-kacheln .lgmw-ov-seats__n { order: -1; font-size: 1.9em; line-height: 1.1; }
.lgmw-ov-seats--legende-kacheln .lgmw-ov-seats__members { display: grid; gap: 2px; margin-top: 4px; }

/* Zeitleiste [lgmw_gremium … darstellung="zeitleiste"] */
.lgmw-ov-timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.lgmw-ov-timeline__item { position: relative; display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 8px 28px; align-items: center; padding: 14px 0 14px 26px; border-bottom: 1px solid var(--lgmw-line); }
.lgmw-ov-timeline__item::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 2px; background: var(--lgmw-line); }
.lgmw-ov-timeline__item::after { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px var(--lgmw-primary); }
.lgmw-ov-timeline__item:first-child::before { top: 50%; }
.lgmw-ov-timeline__item:last-child::before { bottom: 50%; }
.lgmw-ov-timeline__time { font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.4; color: var(--lgmw-ink); }
.lgmw-ov-timeline__person { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lgmw-ov-timeline__img { flex: none; width: 48px !important; height: 48px !important; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: var(--lgmw-surface); }
.lgmw-ov-timeline__img--empty { display: grid; place-items: center; color: var(--lgmw-muted); font-weight: 700; }
.lgmw-ov-timeline h3 { margin: 0; font-size: 1.05em; line-height: 1.3; }
.lgmw-ov-timeline .lgmw-ov-meta { margin: 2px 0 0; }
@media (max-width: 600px) { .lgmw-ov-timeline__item { grid-template-columns: 1fr; } }
.lgmw-ov-timeline__zoom { flex: none; display: block; border-radius: 50%; line-height: 0; }
.lgmw-ov-timeline__zoom img { cursor: zoom-in; transition: transform .2s; }
.lgmw-ov-timeline__zoom:hover img, .lgmw-ov-timeline__zoom:focus-visible img { transform: scale(1.08); }
.lgmw-ov-timeline__zoom:focus-visible { outline: 3px solid var(--lgmw-primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .lgmw-ov-timeline__zoom img { transition: none; } }

/* Widget „LGMW Kalender“: nur der Aufbau – Farben, Schriften und Rahmen kommen aus den Stil-Optionen. */
.lgmw-kal { container-type: inline-size; }
.lgmw-kal__kopf { display: flex; align-items: center; gap: .5em; margin-bottom: .75em; }
.lgmw-kal__titel { flex: 1; }
.lgmw-kal__nav[hidden], .lgmw-kal__monat[hidden] { display: none; }
.lgmw-kal__nav:disabled { opacity: .4; cursor: default; }
.lgmw-kal__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lgmw-kal__raster { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0; }
.lgmw-kal__raster th abbr[title] { text-decoration: none; }
.lgmw-kal__raster td { height: 6em; vertical-align: top; }
.lgmw-kal__zahl { display: block; }
.lgmw-kal__termine, .lgmw-kal__liste { list-style: none; margin: 0; padding: 0; }
.lgmw-kal__termin { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgmw-kal__termin--abgesagt { text-decoration: line-through; }
.lgmw-kal__liste, .lgmw-kal__leer { display: none; }
.lgmw-kal__liste .lgmw-kal__termin { white-space: normal; }
.lgmw-kal__datum, .lgmw-kal__name, .lgmw-kal__ort { display: block; }
.lgmw-kal__name { font-weight: 600; }
@container (max-width: 640px) {
	.lgmw-kal__raster td { height: 3em; text-align: center; }
	.lgmw-kal__termine { display: none; }
	.lgmw-kal__tag--termine .lgmw-kal__zahl::after { content: ""; display: block; width: .4em; height: .4em; margin: .15em auto 0; border-radius: 50%; background: currentColor; }
	.lgmw-kal__liste, .lgmw-kal__leer { display: block; margin-top: 1em; }
}


/* Kalender-Abo (Widget „LGMW Kalender-Abo“, seit 1.18.14) – Farben über die Stil-Optionen des Widgets */
/* Kalender-Abo: doppelte Klasse, damit Theme-Reset (button, [type=button]) und Kit-Knopfstile nicht durchschlagen */
.lgmw-abo { --abo-c: var(--e-global-color-primary, #3d5a73); position: relative; display: inline-block; max-width: 100%; font-size: 1rem; }
.lgmw-abo.lgmw-abo--offen { display: block; }
.lgmw-abo .lgmw-abo__btn, .lgmw-abo .lgmw-abo__btn:hover, .lgmw-abo .lgmw-abo__btn:focus, .lgmw-abo .lgmw-abo__btn:active { display: inline-flex; align-items: center; gap: .55em; width: auto; min-height: 0; margin: 0; padding: .7em 1.15em; border: 0; border-radius: 999px; background: var(--abo-c); color: #fff; box-shadow: none; font: inherit; font-weight: 600; line-height: 1.2; letter-spacing: normal; text-transform: none; text-decoration: none; text-align: left; white-space: normal; cursor: pointer; transition: filter .15s, transform .15s; }
.lgmw-abo .lgmw-abo__btn:hover { filter: brightness(1.08); }
.lgmw-abo .lgmw-abo__btn:active { transform: translateY(1px); }
.lgmw-abo .lgmw-abo__btn:focus { outline: none; }
.lgmw-abo .lgmw-abo__btn:focus-visible, .lgmw-abo .lgmw-abo__item:focus-visible { outline: 3px solid color-mix(in srgb, var(--abo-c) 45%, transparent); outline-offset: 2px; }
.lgmw-abo .lgmw-abo__pfeil { transition: transform .2s; }
.lgmw-abo .lgmw-abo__btn[aria-expanded="true"] .lgmw-abo__pfeil { transform: rotate(180deg); }
.lgmw-abo .lgmw-abo__ico, .lgmw-abo .lgmw-abo__pfeil { flex: none; display: block; }
.lgmw-abo .lgmw-abo__menu { position: absolute; z-index: 50; top: calc(100% + 8px); left: 0; width: max-content; min-width: 100%; max-width: min(24rem, 92vw); margin: 0; padding: 8px; border: 0; border-radius: 14px; background: #fff; color: #1c2b38; box-shadow: 0 12px 32px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .08); animation: lgmw-abo-in .16s ease-out; }
.lgmw-abo .lgmw-abo__menu[hidden] { display: none; }
.lgmw-abo.lgmw-abo--offen .lgmw-abo__menu { position: static; width: auto; max-width: none; box-shadow: none; border: 1px solid #d5dee6; animation: none; }
@keyframes lgmw-abo-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lgmw-abo .lgmw-abo__menu ul { list-style: none; margin: 0; padding: 0; }
.lgmw-abo .lgmw-abo__menu li { margin: 0; padding: 0; list-style: none; }
.lgmw-abo .lgmw-abo__menu li::before, .lgmw-abo .lgmw-abo__menu li::marker { content: none; }
.lgmw-abo .lgmw-abo__item, .lgmw-abo .lgmw-abo__item:visited, .lgmw-abo .lgmw-abo__item:focus, .lgmw-abo .lgmw-abo__item:active { display: flex; align-items: center; gap: .7em; width: 100%; min-height: 0; margin: 0; padding: .65em .8em; border: 0; border-radius: 10px; background: none; color: inherit; box-shadow: none; font: inherit; font-weight: 400; line-height: 1.35; letter-spacing: normal; text-transform: none; text-align: left; text-decoration: none; white-space: normal; cursor: pointer; transition: background-color .12s; }
.lgmw-abo .lgmw-abo__item:hover { background: color-mix(in srgb, var(--abo-c) 9%, transparent); color: inherit; text-decoration: none; }
.lgmw-abo .lgmw-abo__item:focus { outline: none; }
.lgmw-abo .lgmw-abo__item .lgmw-abo__ico { color: var(--abo-c); }
.lgmw-abo .lgmw-abo__item.is-done .lgmw-abo__ico { color: #15803d; }
.lgmw-abo .lgmw-abo__titel { display: flex; align-items: center; gap: .55em; margin: 0 0 .5em; font-weight: 700; color: var(--abo-c); }
.lgmw-abo .lgmw-abo__hinweis { margin: 6px 4px 2px; padding: 8px 0 0; border-top: 1px solid #e5eaf0; font-size: .85em; color: #4f6070; }
.lgmw-abo.lgmw-abo--einzel .lgmw-abo__btn, .lgmw-abo.lgmw-abo--einzel .lgmw-abo__btn:focus, .lgmw-abo.lgmw-abo--einzel .lgmw-abo__btn:active { background: transparent; color: var(--abo-c); box-shadow: inset 0 0 0 1.5px currentColor; }
.lgmw-abo.lgmw-abo--einzel .lgmw-abo__btn:hover { background: color-mix(in srgb, var(--abo-c) 8%, transparent); color: var(--abo-c); box-shadow: inset 0 0 0 1.5px currentColor; filter: none; }
.lgmw-abo.lgmw-abo--rechts .lgmw-abo__menu { left: auto; right: 0; }
@media (prefers-reduced-motion: reduce) { .lgmw-abo .lgmw-abo__menu, .lgmw-abo .lgmw-abo__pfeil, .lgmw-abo .lgmw-abo__btn, .lgmw-abo .lgmw-abo__item { animation: none; transition: none; } }


/* Galerie (Widget „LGMW Galerie“, seit 1.19.17) – Spalten, Format, Abstände über die Stil-Optionen des Widgets */
.lgmw-galerie__liste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.lgmw-galerie__bild { margin: 0; padding: 0; list-style: none; min-width: 0; }
.lgmw-galerie__bild::before, .lgmw-galerie__bild::marker { content: none; }
.lgmw-galerie__link { display: block; border-radius: inherit; overflow: hidden; cursor: zoom-in; }
.lgmw-galerie__link:focus-visible { outline: 3px solid var(--e-global-color-primary, #3d5a73); outline-offset: 2px; }
.lgmw-galerie .lgmw-galerie__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s, filter .25s; }
.lgmw-galerie__link:hover .lgmw-galerie__img { filter: brightness(1.06); }
.lgmw-galerie__text { display: block; margin-top: .35em; font-size: .85em; line-height: 1.35; }
.lgmw-galerie__nachweis { margin: .8em 0 0; font-size: .8em; opacity: .8; }
@media (max-width: 767px) { .lgmw-galerie__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Vergrößerung (Lightbox) */
html.lgmw-lb-offen { overflow: hidden; }
.lgmw-lb { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(8, 12, 18, .94); color: #fff; }
.lgmw-lb[hidden] { display: none; }
.lgmw-lb__fig { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; margin: 0; padding: 56px 64px 48px; box-sizing: border-box; }
.lgmw-lb__img { display: block; max-width: 100%; max-height: calc(100% - 2.5em); width: auto; height: auto; object-fit: contain; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lgmw-lb__text { margin-top: .8em; max-width: 60em; font-size: .95rem; line-height: 1.4; text-align: center; color: rgba(255, 255, 255, .88); }
.lgmw-lb .lgmw-lb__btn, .lgmw-lb .lgmw-lb__btn:hover, .lgmw-lb .lgmw-lb__btn:focus { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; font: 400 32px/1 system-ui, sans-serif; cursor: pointer; text-transform: none; }
.lgmw-lb .lgmw-lb__btn:hover { background: rgba(255, 255, 255, .24); }
.lgmw-lb .lgmw-lb__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lgmw-lb .lgmw-lb__btn[hidden] { display: none; }
.lgmw-lb__zu { top: 12px; right: 12px; }
.lgmw-lb__zurueck { left: 12px; top: 50%; transform: translateY(-50%); }
.lgmw-lb__vor { right: 12px; top: 50%; transform: translateY(-50%); }
.lgmw-lb__zahl { position: absolute; top: 22px; left: 20px; font-size: .9rem; color: rgba(255, 255, 255, .75); }
@media (max-width: 640px) { .lgmw-lb__fig { padding: 56px 8px 40px; } .lgmw-lb__zurueck, .lgmw-lb__vor { top: auto; bottom: 10px; transform: none; } }

/* Rückblick-Jahre (Widget „LGMW Rückblick-Jahre“) */
.lgmw-jahre { display: flex; flex-wrap: wrap; gap: 8px; }
.lgmw-jahre__jahr { display: inline-flex; align-items: center; gap: .4em; padding: .45em 1em; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; line-height: 1.2; }
.lgmw-jahre__jahr.is-active { background: var(--e-global-color-primary, #3d5a73); border-color: var(--e-global-color-primary, #3d5a73); color: #fff; }
.lgmw-jahre__anzahl { font-size: .8em; opacity: .75; }
.lgmw-jahre--liste { align-items: center; }
.lgmw-jahre--liste select { width: auto; min-width: 8em; }

/* LGMW Anhänge (seit 1.19.53): Dokumente mit Download-Knopf, Fotos als Galerie */
.lgmw-anh { display: flex; flex-direction: column; gap: 1.5em; }
.lgmw-anh__titel { margin: 0 0 .6em; }
.lgmw-anh__liste { display: flex; flex-direction: column; gap: .5em; margin: 0; padding: 0; list-style: none; }
.lgmw-anh__datei { display: flex; align-items: center; justify-content: space-between; gap: .75em 1em; flex-wrap: wrap; margin: 0; padding: .7em .9em; border: 1px solid rgba(0,0,0,.12); border-radius: 8px; list-style: none; }
.lgmw-anh__datei::before, .lgmw-anh__datei::marker { content: none; }
.lgmw-anh__name { flex: 1 1 14em; min-width: 0; overflow-wrap: anywhere; }
.lgmw-anh__info { opacity: .7; font-size: .85em; white-space: nowrap; }
.lgmw-anh__knopf { display: inline-flex; align-items: center; gap: .45em; padding: .5em 1em; border-radius: 6px; background: var(--e-global-color-primary, #3d5a73); color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.lgmw-anh__knopf:hover, .lgmw-anh__knopf:focus { filter: brightness(1.1); color: #fff; }
.lgmw-anh__knopf:focus-visible { outline: 3px solid var(--e-global-color-primary, #3d5a73); outline-offset: 2px; }
.lgmw-anh__knopf svg { flex: none; }
