/* LGMW Vereinsportal – Website-Ausgabe der Einzelseiten (Termin, Album, Gruppe) und Bildergalerie mit Lightbox.
   Nur aktiv, solange die Einstellung „Einzelseiten“ an ist; sonst gestaltet die Website alles in Elementor.
   Farben und Schriften kommen als Variablen aus den Einstellungen (automatisch aus dem Elementor-Kit). */

.vp {
	--vp-a1: #24527A; --vp-a1-dunkel: #1A3B58; --vp-a2: #3A7CA5; --vp-a2-text: #2C5F7E; --vp-text: #1F2124;
	--vp-flaeche: #F4F7FA; --vp-flaeche2: #E4ECF2; --vp-muted: #6b6562; --vp-line: #E6E8EB;
	--vp-display: system-ui, sans-serif;
	--vp-body: system-ui, -apple-system, "Segoe UI", sans-serif;
	font-family: var(--vp-body);
	color: var(--vp-text);
	box-sizing: border-box;
}
.vp *, .vp *::before, .vp *::after { box-sizing: border-box; }
.vp a { text-decoration: none; }
.vp a:focus-visible, .vp button:focus-visible { outline: 3px solid var(--vp-text); outline-offset: 3px; border-radius: 6px; }
.vp img { max-width: 100%; height: auto; display: block; }
.vp .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.vp-h { font-family: var(--vp-display); font-weight: 400; line-height: 1.1; margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.2rem); color: var(--vp-text); text-wrap: balance; }
.vp-h--sm { font-size: 1.3rem; margin: 22px 0 10px; }
.vp-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Buttons & Chips */
.vp-btn { display: inline-block; font-family: var(--vp-body); font-weight: 600; font-size: .92rem; padding: 11px 20px; border-radius: 99px; border: 0; cursor: pointer; line-height: 1.3; transition: background .15s, color .15s; }
.vp-btn--p { background: var(--vp-a1); color: #fff !important; }
.vp-btn--p:hover { background: var(--vp-a1-dunkel); }
.vp-btn--s { background: #fff; color: var(--vp-a2-text) !important; box-shadow: inset 0 0 0 2px var(--vp-a2-text); }
.vp-btn--s:hover { background: var(--vp-flaeche); }
.vp-chip { display: inline-block; font-size: .68rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 2px 9px; border-radius: 99px; justify-self: start; }
.vp-chip--a1 { background: var(--vp-flaeche2); color: var(--vp-a1); }
.vp-chip--a2 { background: var(--vp-flaeche); color: var(--vp-a2-text); }
.vp-chip--neutral { background: #EFEDEA; color: #4c4845; }

/* Termin: Detailbox */
.vp-evdetail { display: grid; gap: 18px; margin-bottom: 26px; }
.vp-evdetail__img { margin: 0; }
.vp-evdetail__img img { border-radius: 22px; }

/* Faktenliste (Termin, Gruppe) */
.vp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 0; }
.vp-facts > div { background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: 0 0 0 1px var(--vp-flaeche2); }
.vp-facts dt { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--vp-a1); }
.vp-facts dd { margin: 2px 0 0; font-weight: 500; }

/* Gruppe */
.vp-gruppe { display: grid; gap: 18px; }
.vp-gruppe__foto { margin: 0; }
.vp-gruppe__foto img { border-radius: 24px; width: 100%; }
.vp-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vp-tags li { background: var(--vp-flaeche); border-radius: 99px; padding: 5px 14px; font-size: .88rem; box-shadow: 0 0 0 1px var(--vp-flaeche2); }

/* Album und Galerie */
.vp-albuminfo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--vp-muted); font-size: .92rem; }
.vp-gallery { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; margin: 24px 0; }
.vp-gallery__item { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--vp-flaeche); }
.vp-gallery__item:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
.vp-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.vp-gallery__item:hover img { transform: scale(1.05); }
@media (max-width: 640px) { .vp-gallery { grid-template-columns: repeat(2, 1fr); } }

/* Lightbox */
.vp-lb { position: fixed; inset: 0; z-index: 99999; background: var(--vp-lb-bg, rgba(20, 21, 23, .94)); display: grid; grid-template-rows: auto 1fr auto; color: #fff; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.vp-lb[hidden] { display: none; }
.vp-lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: .9rem; }
.vp-lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 60px; }
.vp-lb__stage img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 8px; }
.vp-lb__cap { text-align: center; padding: 10px 16px 18px; font-size: .9rem; opacity: .85; min-height: 1em; }
/* Knöpfe gegen Theme-/Kit-Stile abgesichert (seit 1.11.1): höhere Spezifität als z. B. `.elementor-kit-6 button`. */
.vp-lb button.vp-lb__btn { -webkit-appearance: none; appearance: none; box-sizing: border-box; margin: 0; padding: 0; border: 0; border-radius: var(--vp-lb-btn-radius, 50%); box-shadow: none; text-shadow: none; text-transform: none; letter-spacing: normal; font: inherit; line-height: 1; width: var(--vp-lb-btn-size, 44px); height: var(--vp-lb-btn-size, 44px); min-width: 0; min-height: 0; max-width: none; display: inline-grid; place-items: center; background: var(--vp-lb-btn-bg, rgba(255, 255, 255, .12)); color: var(--vp-lb-btn-color, #fff); cursor: pointer; outline: none; transition: background-color .15s, color .15s; }
.vp-lb button.vp-lb__btn:focus { background: var(--vp-lb-btn-bg, rgba(255, 255, 255, .12)); color: var(--vp-lb-btn-color, #fff); outline: none; }
.vp-lb button.vp-lb__btn:hover, .vp-lb button.vp-lb__btn:focus-visible { background: var(--vp-lb-btn-bg-hover, rgba(255, 255, 255, .28)); color: var(--vp-lb-btn-color-hover, var(--vp-lb-btn-color, #fff)); }
.vp-lb button.vp-lb__btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.vp-lb button.vp-lb__btn svg { display: block; width: var(--vp-lb-icon-size, 22px); height: var(--vp-lb-icon-size, 22px); pointer-events: none; }
.vp-lb button.vp-lb__prev, .vp-lb button.vp-lb__next { position: absolute; top: 50%; transform: translateY(-50%); }
.vp-lb button.vp-lb__prev { left: 8px; }
.vp-lb button.vp-lb__next { right: 8px; }
@media (max-width: 640px) {
	.vp-lb__stage { padding: 0 8px; }
	.vp-lb__stage img { max-height: calc(100vh - 2 * var(--vp-lb-btn-size, 44px) - 150px); max-height: calc(100dvh - 2 * var(--vp-lb-btn-size, 44px) - 150px); }
	.vp-lb__cap { padding-bottom: calc(var(--vp-lb-btn-size, 44px) + 28px + env(safe-area-inset-bottom, 0px)); }
	.vp-lb button.vp-lb__prev, .vp-lb button.vp-lb__next { position: fixed; top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: none; }
	.vp-lb button.vp-lb__prev { left: 16px; }
	.vp-lb button.vp-lb__next { right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.vp *, .vp-lb * { transition: none !important; animation: none !important; }
}

/* Bilder füllen ihre Rahmen – höhere Spezifität als `.elementor img { height: auto }` (ohne !important, damit überschreibbar) */
.vp .vp-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
