/* SpVgg Lagerlechfeld-Graben – ergänzende Styles zu theme.json */

:root {
	--spvgg-gelb: var(--wp--preset--color--gelb, #FFD301);
	--spvgg-schwarz: var(--wp--preset--color--schwarz, #0B0B0B);
	/* Querstreifen wie im Wappen */
	--spvgg-stripes: repeating-linear-gradient(180deg, rgba(255,255,255,.06) 0 3px, transparent 3px 11px);
}

/* ---------- Kopfbereich (BVB-Stil: Wappen auf Schwarz, gelber Schrägbalken) ---------- */
/* Seitenrand = Root-Padding aus theme.json (WordPress setzt es am body, nicht an :root);
   Inhaltskante = wo die 1240px-Spalte beginnt. „100%“ wird erst beim verwendenden Element
   aufgelöst (Breite seines Containers). */
body,
.editor-styles-wrapper {
	--spvgg-gutter: var(--wp--style--root--padding-left, 1.25rem);
	--spvgg-edge: calc(var(--spvgg-gutter) + max(0px, (100% - 2 * var(--spvgg-gutter) - var(--wp--style--global--wide-size, 1240px)) / 2));
}
:root {
	/* Hintergrund von Menü- und Such-Panel: fast schwarz, die Seite schimmert unscharf durch */
	--spvgg-panel-bg: rgba(11, 11, 11, .86);
	--spvgg-panel-blur: blur(18px) saturate(1.1);
	--spvgg-header-h: 88px;
	--spvgg-brand-w: clamp(130px, 20vw, 400px);
	--spvgg-slant: 64px;
}
@media (max-width: 600px) {
	:root { --spvgg-header-h: 64px; --spvgg-slant: 36px; }
}

/*
 * Sticky: Nicht der Header selbst, sondern sein Template-Part-Wrapper klebt oben –
 * der Wrapper ist genau so hoch wie der Header, darin hätte „sticky“ keinen Spielraum.
 */
.spvgg-header-wrap,
.wp-site-blocks > .wp-block-template-part:has(> .spvgg-header) {
	position: sticky;
	top: 0;
	z-index: 50;
}
/* Angemeldet: unter der Admin-Leiste kleben (32px Desktop, 46px Tablet; unter 600px scrollt sie mit) */
.admin-bar :is(.spvgg-header-wrap, .wp-site-blocks > .wp-block-template-part:has(> .spvgg-header)) { top: 32px; }
@media (max-width: 782px) {
	.admin-bar :is(.spvgg-header-wrap, .wp-site-blocks > .wp-block-template-part:has(> .spvgg-header)) { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar :is(.spvgg-header-wrap, .wp-site-blocks > .wp-block-template-part:has(> .spvgg-header)) { top: 0; }
}

.spvgg-header {
	position: relative;
	z-index: 50;
	height: var(--spvgg-header-h);
	gap: 0 !important;
	padding: 0 !important;
}

.spvgg-header__brand {
	flex: 0 0 max(var(--spvgg-brand-w), calc(var(--spvgg-edge) + 110px));
	box-sizing: border-box;
	height: 100%;
	padding-left: var(--spvgg-edge);
}
.spvgg-header .wp-block-site-logo img { display: block; height: calc(var(--spvgg-header-h) - 20px) !important; width: auto !important; }

/*
 * Header-Variante „Logo ragt hinein“ (Block-Stil am Header, im Editor umschaltbar):
 * großes Wappen, das unten in Hero bzw. Titel-Band hineinragt. Beim Scrollen und bei
 * offenem Menü/Suche zieht es sich auf Header-Größe zurück, damit nichts verdeckt wird.
 */
/* Eingezogen = Logo-Höhe (Header − 20px) ÷ volle Höhe; Versatz bringt es mittig in den Header (10px von oben) */
.is-style-spvgg-logo-overlap { --spvgg-logo-h: 136px; --spvgg-logo-top: 22px; --spvgg-logo-scale: .5; }
@media (max-width: 600px) { .is-style-spvgg-logo-overlap { --spvgg-logo-h: 92px; --spvgg-logo-top: 14px; --spvgg-logo-scale: .478; } }
.is-style-spvgg-logo-overlap .spvgg-header__brand {
	flex-basis: max(var(--spvgg-brand-w), calc(var(--spvgg-edge) + var(--spvgg-logo-h) * .89 + 36px));
	align-items: flex-start;
}
/*
 * Flüssig: Größe und Lage ändern sich nur per transform (läuft auf der Grafikkarte, kein
 * Layout pro Frame). Das Bild behält immer seine volle Größe; der Schatten wird einmal
 * gezeichnet und mitskaliert statt bei jeder Größenänderung neu berechnet.
 */
.is-style-spvgg-logo-overlap .wp-block-site-logo {
	position: relative;
	z-index: 3; /* über dem gelben Balken und dem Inhalt darunter */
	margin-top: var(--spvgg-logo-top);
	transform-origin: 0 0;
	transition: transform .4s var(--spvgg-ease);
	will-change: transform;
}
.spvgg-header.is-style-spvgg-logo-overlap .wp-block-site-logo img {
	height: var(--spvgg-logo-h) !important;
	filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .45));
}
/* Eingezogen (gescrollt / Menü / Suche): auf Header-Größe, mittig */
.spvgg-scrolled .is-style-spvgg-logo-overlap .wp-block-site-logo,
.spvgg-menu-open .is-style-spvgg-logo-overlap .wp-block-site-logo,
.spvgg-search-open .is-style-spvgg-logo-overlap .wp-block-site-logo {
	transform: translateY(calc(10px - var(--spvgg-logo-top))) scale(var(--spvgg-logo-scale));
}
/* Gelbe Fläche rückt mit: Sie reicht um --spvgg-bar-shift (gemessen in menu.js) nach links hinter den
   Wappen-Bereich; normal ist dieser Teil weggeschnitten, eingezogen wandert die Schräge ans kleine Wappen.
   clip-path statt Breite/Position – kein Layout pro Frame, gleiche Dauer und Kurve wie das Wappen. */
.is-style-spvgg-logo-overlap .spvgg-header__bar::before {
	left: calc(-1 * var(--spvgg-bar-shift, 0px));
	clip-path: polygon(calc(var(--spvgg-bar-shift, 0px) + var(--spvgg-slant)) 0, 100% 0, 100% 100%, var(--spvgg-bar-shift, 0px) 100%);
	transition: clip-path .4s var(--spvgg-ease);
}
.spvgg-scrolled .is-style-spvgg-logo-overlap .spvgg-header__bar::before,
.spvgg-menu-open .is-style-spvgg-logo-overlap .spvgg-header__bar::before,
.spvgg-search-open .is-style-spvgg-logo-overlap .spvgg-header__bar::before {
	clip-path: polygon(var(--spvgg-slant) 0, 100% 0, 100% 100%, 0 100%);
}
@media (prefers-reduced-motion: reduce) {
	.is-style-spvgg-logo-overlap .spvgg-header__bar::before { transition: none; }
}
/* Platz unter dem überstehenden Wappen, damit es nie auf Text im Hero/Titel-Band liegt
   (Überstand = Abstand oben + Logohöhe − Headerhöhe: Desktop 70px, Handy 42px) */
body:has(.is-style-spvgg-logo-overlap) :is(.spvgg-hero, .spvgg-title-band) {
	padding-top: max(var(--wp--preset--spacing--50), 102px) !important;
}
@media (max-width: 600px) {
	body:has(.is-style-spvgg-logo-overlap) :is(.spvgg-hero, .spvgg-title-band) { padding-top: 70px !important; }
}
/* Seiten aus Plugin-Vorlagen (z. B. WooCommerce-Shop) beginnen ohne Hero/Titel-Band –
   dann Abstand in Höhe des Überstands, sonst liegt das Wappen auf der Überschrift. */
body:has(.is-style-spvgg-logo-overlap) .wp-site-blocks > .wp-block-template-part:has(> .spvgg-header) + :not(:has(.spvgg-hero, .spvgg-title-band, .is-style-spvgg-stripes)) {
	margin-top: 70px !important;
}
@media (max-width: 600px) {
	body:has(.is-style-spvgg-logo-overlap) .wp-site-blocks > .wp-block-template-part:has(> .spvgg-header) + :not(:has(.spvgg-hero, .spvgg-title-band, .is-style-spvgg-stripes)) { margin-top: 42px !important; }
}

/* Konto und Mini-Warenkorb von WooCommerce gehören nicht in den Vereinskopf (s. functions.php).
   Falls sie nach einer Bearbeitung im Website-Editor fest im Kopf stehen, trotzdem ausblenden. */
.spvgg-header__bar > :is(.wp-block-woocommerce-customer-account, .wc-block-mini-cart, .wp-block-woocommerce-mini-cart) { display: none; }

.spvgg-header__bar {
	flex: 1 1 auto;
	align-self: stretch;
	padding: 0 var(--spvgg-edge) 0 calc(var(--spvgg-slant) + 1rem);
	gap: clamp(.75rem, 2.5vw, 2.5rem) !important;
	position: relative;
	isolation: isolate;
}
/* Schräge als eigene Ebene – clip-path direkt am Balken würde das Vollbild-Menü mit abschneiden */
.spvgg-header__bar::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--spvgg-gelb);
	clip-path: polygon(var(--spvgg-slant) 0, 100% 0, 100% 100%, 0 100%);
}

/* Icons im gelben Balken */
.spvgg-header__bar svg { width: 34px; height: 34px; fill: currentColor; }
/* Lupe im gelben Balken */
.spvgg-search-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--spvgg-schwarz);
	cursor: pointer;
}
.spvgg-search-toggle:focus-visible { outline: 3px solid var(--spvgg-schwarz); outline-offset: 2px; }

/*
 * Such-Panel wie auf bvb.de: gleitet unter dem Header herab (0,5 s), oben großes Suchfeld
 * mit „Abbrechen“, darunter Schnell-Links. Auf dem Desktop bleibt darunter die Seite
 * verschwommen sichtbar – ein Klick dorthin schließt die Suche.
 */
.spvgg-search-panel {
	position: fixed;
	top: var(--spvgg-menu-top, var(--spvgg-header-h));
	left: 0;
	right: 0;
	bottom: 0;
	z-index: -1;
	overflow: hidden;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0s linear var(--spvgg-menu-dur);
}
.spvgg-search-panel.is-open {
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}
.spvgg-search-panel__slide {
	display: flex;
	flex-direction: column;
	height: 100%;
	-webkit-backdrop-filter: var(--spvgg-panel-blur);
	backdrop-filter: var(--spvgg-panel-blur);
	transform: translateY(-100%);
	transition: transform var(--spvgg-menu-dur) var(--spvgg-ease);
	will-change: transform;
}
.spvgg-search-panel.is-open .spvgg-search-panel__slide { transform: none; }
.spvgg-search-panel__inner {
	flex: 1;
	overflow-y: auto;
	margin: 0 !important;
	padding: 50px var(--spvgg-edge);
	background: var(--spvgg-panel-bg);
	color: #fff;
}
@media (min-width: 768px) {
	.spvgg-search-panel__inner { padding-block: 50px; }
}

/* Zeile: Handy = „Abbrechen“ rechts über dem Feld, Desktop = daneben */
.spvgg-search-panel__row {
	display: flex;
	flex-direction: column-reverse;
	gap: 0;
}
.spvgg-search-panel__row > * { margin-block: 0 !important; } /* kein automatischer Blockabstand in der Zeile */
.spvgg-search-cancel {
	align-self: flex-end;
	height: 48px;
	padding: 1px 6px;
	border: 0;
	background: none;
	color: #fff;
	font-family: var(--wp--preset--font-family--display);
	font-size: .9rem;
	font-weight: 700;
	font-stretch: 112%;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
}
.spvgg-search-cancel:hover { color: var(--spvgg-gelb); }
.spvgg-search-cancel:focus-visible { outline: 1px dashed #fff; }

/* Großes Suchfeld */
.spvgg-search-panel__form { margin: 0 !important; }
.spvgg-search-panel__form .wp-block-search__inside-wrapper {
	position: relative;
	padding: 0 !important;
	border: 0 !important;
	background: transparent;
}
.spvgg-search-panel__form .wp-block-search__input {
	width: 100%;
	max-height: 90px;
	padding: 32px 64px 32px 24px !important;
	border: 0 !important;
	border-radius: 0;
	background: #232323;
	color: #d6d6d6;
	caret-color: var(--spvgg-gelb);
	font-family: var(--wp--preset--font-family--display);
	font-size: 2rem; /* wie bei BVB, auch auf dem Handy */
	font-weight: 700;
	font-stretch: 112%;
	letter-spacing: -.01em;
	line-height: 1;
	outline: none;
}
.spvgg-search-panel__form .wp-block-search__input:focus { outline: 2px solid var(--spvgg-gelb); outline-offset: 0; }
.spvgg-search-panel__form .wp-block-search__input::placeholder { color: #8a8a8a; }
.spvgg-search-panel__form .wp-block-search__input::-webkit-search-cancel-button { display: none; }
.spvgg-search-panel__form .wp-block-search__button {
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	margin: 0;
	padding: 6px;
	border: 0;
	background: none !important;
	color: #d6d6d6 !important;
}
.spvgg-search-panel__form .wp-block-search__button svg { width: 28px; height: 28px; fill: currentColor; }
.spvgg-search-panel__form .wp-block-search__button:hover { color: var(--spvgg-gelb) !important; }

/* „Vielleicht wirst du hier fündig:“ + Schnell-Links */
.spvgg-search-panel__title {
	margin: 0 !important;
	padding: 2rem 0 1rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	font-stretch: 112%;
	letter-spacing: .25em;
	text-transform: uppercase;
	color: var(--spvgg-gelb);
}
.spvgg-search-panel__links {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	width: 50%;
	min-width: 12rem;
	margin: 0 !important;
	padding: 0;
	list-style: none;
}
.spvgg-search-panel__links a {
	color: #fff;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	font-weight: 700;
	font-stretch: 112%;
	text-decoration: none;
}
.spvgg-search-panel__links a:hover { color: var(--spvgg-gelb); }
.spvgg-search-panel__links a:focus-visible { outline: 1px dashed #fff; }

@media (min-width: 1280px) {
	/* Desktop: schwarzer Bereich nur so hoch wie der Inhalt, darunter verschwommene Seite */
	.spvgg-search-panel__slide {
		background: rgba(11, 11, 11, .25); /* unterhalb des Suchbereichs nur leicht abgedunkelt */
		cursor: pointer;
	}
	.spvgg-search-panel__inner { flex: none; cursor: auto; }
	.spvgg-search-panel__row { flex-direction: row; justify-content: flex-start; gap: 1.5rem; }
	.spvgg-search-panel__form { width: 744px; max-width: 100%; }
	.spvgg-search-cancel { align-self: flex-start; }
	.spvgg-search-panel__links { grid-template-columns: 1fr 1fr; }
}

/* Im Editor ist das Such-Panel eingeklappt, damit es beim Bearbeiten nicht im Weg ist.
   Wird es in der Listenansicht ausgewählt (oder ein Block darin), klappt es zum Bearbeiten auf. */
.editor-styles-wrapper .spvgg-search-panel:not(.is-selected, .has-child-selected) { display: none; }
.editor-styles-wrapper .spvgg-header:has(.spvgg-search-panel:is(.is-selected, .has-child-selected)) { flex-wrap: wrap !important; height: auto; }
.editor-styles-wrapper .spvgg-search-panel { position: static; flex: 0 0 100%; visibility: visible; pointer-events: auto; }
.editor-styles-wrapper .spvgg-search-panel__slide { transform: none; height: auto; }

html.spvgg-search-open { overflow: hidden; }

/* Burger → X (wie bei BVB: drei Striche, die sich zum Kreuz drehen) */
.spvgg-header__nav .wp-block-navigation__responsive-container-open {
	position: relative;
	width: 38px;
	height: 38px;
	padding: 0;
	color: var(--spvgg-schwarz);
	background: linear-gradient(currentColor, currentColor) center / 26px 3px no-repeat;
	transition: background-size .3s ease;
}
.spvgg-header__nav .wp-block-navigation__responsive-container-open svg { display: none; }
.spvgg-header__nav .wp-block-navigation__responsive-container-open::before,
.spvgg-header__nav .wp-block-navigation__responsive-container-open::after {
	content: "";
	position: absolute;
	left: 6px;
	width: 26px;
	height: 3px;
	background: currentColor;
	transition: transform .3s ease;
}
.spvgg-header__nav .wp-block-navigation__responsive-container-open::before { top: 10px; }
.spvgg-header__nav .wp-block-navigation__responsive-container-open::after { bottom: 10px; }
.spvgg-menu-open .spvgg-header__nav .wp-block-navigation__responsive-container-open { background-size: 0 3px; }
.spvgg-menu-open .spvgg-header__nav .wp-block-navigation__responsive-container-open::before { transform: translateY(7.5px) rotate(45deg); }
.spvgg-menu-open .spvgg-header__nav .wp-block-navigation__responsive-container-open::after { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Vollbild-Menü ---------- */
/*
 * Wie bei BVB: Der Header bleibt stehen, das Panel gleitet darunter von oben herein.
 * Das Panel bleibt dauerhaft gerendert (nur verschoben/unsichtbar), damit auch das
 * Schließen animiert werden kann – der Core blendet sonst hart aus.
 */
:root { --spvgg-ease: cubic-bezier(.65, 0, .35, 1); --spvgg-menu-dur: .5s; }

.spvgg-header__nav .wp-block-navigation__responsive-container {
	display: block !important;
	position: fixed !important;
	inset: var(--spvgg-menu-top, var(--spvgg-header-h)) 0 0 0 !important;
	width: auto !important;
	height: auto !important;
	padding: 0 !important;
	overflow: hidden;
	background: transparent !important;
	visibility: hidden;
	z-index: -1;
	animation: none !important;
	transition: visibility 0s linear var(--spvgg-menu-dur);
}
.spvgg-header__nav .wp-block-navigation__responsive-container.is-menu-open {
	visibility: visible;
	transition-delay: 0s;
}
.spvgg-header__nav .wp-block-navigation__responsive-close {
	height: 100%;
	max-width: none !important;
	/* Halbtransparent mit Unschärfe: die Seite schimmert dunkel durch */
	background: var(--spvgg-panel-bg);
	-webkit-backdrop-filter: var(--spvgg-panel-blur);
	backdrop-filter: var(--spvgg-panel-blur);
	overflow-y: auto;
	transform: translateY(-100%);
	transition: transform var(--spvgg-menu-dur) var(--spvgg-ease);
	will-change: transform;
}
.spvgg-header__nav .is-menu-open .wp-block-navigation__responsive-close { transform: none; }
.spvgg-header__nav .wp-block-navigation__responsive-dialog { margin-top: 0 !important; }
/* Eigener Schließen-Knopf entfällt – der Burger wird zum X */
.spvgg-header__nav .wp-block-navigation__responsive-container-close { display: none !important; }

.spvgg-header__nav .wp-block-navigation__responsive-container-content {
	display: flex !important;
	flex-direction: column;
	padding: clamp(1.5rem, 5vh, 3.5rem) var(--spvgg-edge) 3rem !important;
	align-items: flex-start !important;
}

/* Hauptpunkte: groß, fett, breit – blenden gestaffelt ein */
.spvgg-header__nav .wp-block-navigation__responsive-container .wp-block-navigation__container {
	display: flex !important;
	flex-direction: column !important;
	position: relative;
	width: 100%;
	gap: clamp(.4rem, 1.4vh, 1rem) !important;
	align-items: flex-start !important;
}
.spvgg-header__nav .wp-block-navigation__container > .wp-block-navigation-item {
	position: static;
	width: auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start !important;
	opacity: 0;
	transform: translateY(-14px);
	transition: opacity .2s ease, transform .2s ease;
}
.spvgg-header__nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	opacity: 1;
	transform: none;
	transition: opacity .45s ease, transform .45s var(--spvgg-ease);
}
.spvgg-header__nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(1) { transition-delay: .18s; }
.spvgg-header__nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(2) { transition-delay: .23s; }
.spvgg-header__nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(3) { transition-delay: .28s; }
.spvgg-header__nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(4) { transition-delay: .33s; }
.spvgg-header__nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(5) { transition-delay: .38s; }
.spvgg-header__nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(6) { transition-delay: .43s; }
.spvgg-header__nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(n+7) { transition-delay: .48s; }

.spvgg-header__nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-size: clamp(1.6rem, 3.6vw, 2.75rem);
	font-weight: 800;
	font-stretch: 112%;
	line-height: 1.25;
	letter-spacing: -.01em;
	text-transform: none;
	padding: .15em 0 !important;
	color: #fff;
	transition: color .15s ease;
}
.spvgg-header__nav .wp-block-navigation__responsive-container .wp-block-navigation-item__content:hover,
.spvgg-header__nav .wp-block-navigation__responsive-container .wp-block-navigation-item__content:focus-visible,
.spvgg-header__nav .spvgg-open > .wp-block-navigation-item__content { color: var(--spvgg-gelb) !important; }

/* Dreieck hinter Punkten mit Untermenü */
.spvgg-header__nav .has-child > .wp-block-navigation-item__content {
	display: inline-flex !important;
	align-items: center;
	gap: .7em;
	cursor: pointer;
}
.spvgg-header__nav .has-child > .wp-block-navigation-item__content::after {
	content: "";
	width: 0; height: 0;
	border-style: solid;
	border-width: .32em 0 .32em .42em;
	border-color: transparent transparent transparent currentColor;
	transition: transform .3s var(--spvgg-ease);
}
/* Handy: Untermenü klappt darunter auf → Dreieck zeigt nach unten.
   Desktop: Untermenü erscheint rechts daneben → Dreieck bleibt ▶ und rückt Richtung Spalte. */
.spvgg-header__nav .spvgg-open > .wp-block-navigation-item__content::after { transform: rotate(90deg); }
@media (min-width: 900px) {
	.spvgg-header__nav .spvgg-open > .wp-block-navigation-item__content::after { transform: translateX(.35em); }
}
.spvgg-header__nav .wp-block-navigation__submenu-icon { display: none !important; }

/* Untermenüs: Handy = Akkordeon (gleitet auf), Desktop = zweite Spalte (gleitet von links ein) */
.spvgg-header__nav .wp-block-navigation__responsive-container .wp-block-navigation__submenu-container {
	display: flex !important;
	flex-direction: column;
	position: static !important;
	width: auto !important;
	min-width: 0 !important;
	height: auto !important;
	max-height: 0 !important;
	overflow: hidden !important;
	opacity: 0 !important;
	visibility: hidden !important;
	padding: 0 !important;
	gap: .2rem !important;
	background: transparent !important;
	border: 0 !important;
	transition: max-height .4s var(--spvgg-ease), opacity .3s ease, visibility 0s linear .4s, padding .4s var(--spvgg-ease);
}
.spvgg-header__nav .wp-block-navigation__responsive-container .spvgg-open > .wp-block-navigation__submenu-container {
	max-height: 40rem !important;
	opacity: 1 !important;
	visibility: visible !important;
	padding: .25rem 0 .75rem !important;
	transition: max-height .5s var(--spvgg-ease), opacity .35s ease .05s, visibility 0s, padding .4s var(--spvgg-ease);
}
.spvgg-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: clamp(1.05rem, 1.6vw, 1.4rem);
	font-weight: 600;
	padding: .3em 0 !important;
	color: #fff;
}

@media (min-width: 900px) {
	.spvgg-header__nav .wp-block-navigation__responsive-container .wp-block-navigation__container { max-width: 1240px; }
	.spvgg-header__nav .wp-block-navigation__responsive-container .wp-block-navigation__submenu-container {
		position: absolute !important;
		top: 0 !important;
		left: clamp(24rem, 45%, 40rem) !important;
		min-width: 18rem !important;
		max-height: none !important;
		overflow: visible !important;
		padding: .5rem 0 0 2.5rem !important;
		border-left: 4px solid var(--spvgg-gelb) !important;
		transform: translateX(-24px);
		transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
	}
	.spvgg-header__nav .wp-block-navigation__responsive-container .spvgg-open > .wp-block-navigation__submenu-container {
		max-height: none !important;
		padding: .5rem 0 0 2.5rem !important;
		transform: none;
		transition: opacity .4s ease .05s, transform .45s var(--spvgg-ease) .05s, visibility 0s;
	}
	.spvgg-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 1.5rem; }
}

.spvgg-header__nav .wp-block-navigation__responsive-container .wp-block-navigation-item__content::before { display: none; }

@media (prefers-reduced-motion: reduce) {
	.spvgg-header__nav *,
	.spvgg-header__nav *::before,
	.spvgg-header__nav *::after,
	.spvgg-search-panel,
	.spvgg-search-panel * { transition-duration: 0s !important; transition-delay: 0s !important; }
}

/* ---------- Wappen-Streifen (Block-Stil für Gruppen) ---------- */
.is-style-spvgg-stripes {
	background-image: var(--spvgg-stripes);
	position: relative;
}
.is-style-spvgg-stripes .wp-block-post-title,
.is-style-spvgg-stripes .wp-block-query-title { color: #fff; margin-top: .5rem; }

/* ---------- Hero ---------- */
.spvgg-hero { background-color: var(--spvgg-schwarz); } /* ohne Bild sonst grau durch die Abdunklung */
.spvgg-hero:not(:has(.wp-block-cover__image-background, .wp-block-cover__video-background)) .wp-block-cover__background {
	background-image: var(--spvgg-stripes);
}

/* Mit Foto: zusätzlicher Verlauf von links, damit der Text lesbar bleibt und die Flutlichter rechts frei stehen */
.spvgg-hero:has(.wp-block-cover__image-background)::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(11,11,11,.78) 0%, rgba(11,11,11,.35) 45%, rgba(11,11,11,0) 70%);
	pointer-events: none;
}
.spvgg-hero .wp-block-cover__image-background { filter: contrast(1.08); }
@media (max-width: 600px) {
	.spvgg-hero { min-height: 78vh !important; }
	.spvgg-hero .wp-block-cover__image-background { object-position: 62% 40% !important; }
}
.spvgg-hero:not(:has(.wp-block-cover__image-background, .wp-block-cover__video-background))::after {
	/* Ohne Hintergrundbild: großes Wappen als Wasserzeichen rechts */
	content: "";
	position: absolute;
	right: max(1rem, calc((100vw - 1240px) / 2));
	top: 50%;
	width: min(38vw, 440px);
	aspect-ratio: 1774 / 2000;
	transform: translateY(-50%);
	background: url("../images/logo.png") center / contain no-repeat;
	opacity: .95;
	z-index: 1;
	pointer-events: none;
}
@media (max-width: 1100px) {
	.spvgg-hero::after { opacity: .12 !important; width: 80vw !important; right: -15vw !important; }
}
.spvgg-hero .wp-block-cover__inner-container { z-index: 2; }
.spvgg-hero h1 { hyphens: manual; } /* Vereinsname nicht trennen („Lagerlech-feld“) */
/* Seitenrand kommt schon vom inneren Container – sonst doppelt eingerückt und nicht bündig mit dem Rest */
.spvgg-hero { padding-left: 0 !important; padding-right: 0 !important; }
/* „Unten links“ schrumpft den Container sonst auf Inhaltsbreite → Text klebt am Rand statt in der 1240er-Spalte */
.spvgg-hero .wp-block-cover__inner-container { width: 100% !important; }
.spvgg-hero .is-style-outline .wp-block-button__link {
	color: #fff;
	border: 2px solid #fff;
	background: transparent;
}
.spvgg-hero .is-style-outline .wp-block-button__link:hover {
	background: #fff;
	color: var(--spvgg-schwarz);
}

/* ---------- Titel-Band (Mini-Hero mit Ausschnitt des Hero-Fotos) ---------- */
.spvgg-title-band {
	background-color: var(--spvgg-schwarz);
	padding-left: 0 !important;  /* Seitenrand kommt vom inneren Container – bündig mit Logo und Inhalt */
	padding-right: 0 !important;
}
.spvgg-title-band .wp-block-cover__inner-container { width: 100% !important; z-index: 2; }
.spvgg-title-band .wp-block-cover__image-background { filter: contrast(1.08); }
/* Zusätzlicher Verlauf von links wie im Hero, damit der Titel immer lesbar ist */
.spvgg-title-band::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(11,11,11,.75) 0%, rgba(11,11,11,.3) 50%, rgba(11,11,11,0) 75%);
	pointer-events: none;
}
.spvgg-title-band__content > * + * { margin-top: .5rem; }
.spvgg-title-band .spvgg-kicker { margin: 0; }
.spvgg-title-band__title {
	margin: 0;
	color: #fff;
	font-size: clamp(1.6rem, 6vw, 4.25rem) !important; /* klein genug, dass lange Wörter wie „Wochenrückblick“ ganz bleiben */
	line-height: 1.05;
	hyphens: manual;
	overflow-wrap: break-word;
	max-width: 22ch;
}
.spvgg-title-band__meta { margin-bottom: .25rem; }
.spvgg-title-band .spvgg-title-band__meta .wp-block-post-date { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.7); } /* lesbar auch vor dem hellen Flutlicht */
.spvgg-title-band__text { max-width: 60ch; color: #e5e5e5; }
.spvgg-title-band__text p { margin: .5rem 0 0; }
.spvgg-title-band__search { max-width: 34rem; margin-top: 1.25rem !important; }
.spvgg-title-band__search .wp-block-search__inside-wrapper { border: 0; padding: 0; background: transparent; gap: .5rem; }
.spvgg-title-band__search .wp-block-search__input { border: 0; padding: .75em 1em; background: #232323; color: #fff; }
.spvgg-title-band__search .wp-block-search__input::placeholder { color: #8a8a8a; }
@media (max-width: 600px) {
	.spvgg-title-band { min-height: 240px !important; }
}

/* ---------- Schnellzugriffe ---------- */
/* Feste Spaltenzahl 4 → 2 → 1, damit nie eine einzelne Kachel allein in der letzten Reihe steht */
.spvgg-quicklinks > .wp-block-group.is-layout-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 1000px) { .spvgg-quicklinks > .wp-block-group.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 480px) { .spvgg-quicklinks > .wp-block-group.is-layout-grid { grid-template-columns: minmax(0, 1fr) !important; } }
.spvgg-tile {
	position: relative;
	min-width: 0; /* Grid-Zelle darf schmaler werden als das längste Wort */
	container-type: inline-size;
	border-bottom: 4px solid transparent;
	transition: transform .2s ease, border-color .2s ease;
}
.spvgg-tile h3 {
	margin: 0;
	/* Schrift wächst mit der Kachel – „Veranstaltungen“ passt auch in schmale Spalten */
	font-size: clamp(.875rem, 7.4cqi, 1.375rem) !important;
	display: flex;
	align-items: center;
	gap: .6em;
	overflow-wrap: anywhere;
	hyphens: auto;
}
.spvgg-tile h3 a { text-decoration: none; min-width: 0; }
.spvgg-tile h3 a::after { /* ganze Kachel klickbar */
	content: "";
	position: absolute;
	inset: 0;
}
/* Dasselbe Dreieck wie im Menü – als eigenes Flex-Element bricht es nie allein um */
.spvgg-tile h3::after {
	content: "";
	flex: none;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: .32em 0 .32em .42em;
	border-color: transparent transparent transparent var(--spvgg-gelb);
	transition: transform .3s var(--spvgg-ease);
}
.spvgg-tile p { margin: 0; overflow-wrap: break-word; hyphens: auto; }
.spvgg-tile:hover,
.spvgg-tile:focus-within {
	transform: translateY(-4px);
	border-bottom-color: #fff;
}
.spvgg-tile:hover h3::after,
.spvgg-tile:focus-within h3::after { transform: translateX(5px); }

/* ---------- News-Karten ---------- */
.spvgg-section-head h2 {
	margin: 0 0 var(--wp--preset--spacing--40);
	padding-left: .75rem;
	border-left: 6px solid var(--spvgg-gelb);
}
.is-style-spvgg-card {
	background: #fff;
	height: 100%;
	box-shadow: 0 1px 2px rgba(0,0,0,.06);
	transition: box-shadow .25s ease;
	overflow: hidden;
}
/* Dezent: kein Anheben der Karte, nur leichter Schatten und minimaler Bild-Zoom */
.is-style-spvgg-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.09); }
.is-style-spvgg-card .wp-block-post-featured-image { margin: 0; background: var(--spvgg-schwarz); overflow: hidden; }
.is-style-spvgg-card .wp-block-post-featured-image img { transition: transform .6s ease; }
.is-style-spvgg-card:hover .wp-block-post-featured-image img { transform: scale(1.02); }

/* Ersatzbild ohne Beitragsbild: Kategorie-Foto im Hero-Look mit Kategoriename */
.spvgg-fallback { position: relative; }
.spvgg-fallback a { display: block; height: 100%; color: #fff; text-decoration: none; }
.spvgg-fallback img { width: 100%; height: 100%; object-fit: cover; }
.spvgg-fallback::after { /* Abdunklung wie im Hero */
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(11,11,11,.8) 0%, rgba(11,11,11,.35) 70%), linear-gradient(0deg, rgba(11,11,11,.55) 0%, rgba(11,11,11,0) 60%);
	pointer-events: none;
}
.spvgg-fallback__label {
	position: absolute;
	left: var(--wp--preset--spacing--40);
	right: var(--wp--preset--spacing--40);
	bottom: var(--wp--preset--spacing--40);
	z-index: 1;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 800;
	font-stretch: 112%;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
	overflow-wrap: anywhere;
}
.spvgg-fallback__label::before { /* gelber Strich wie die Kante im Header */
	content: "";
	display: block;
	width: 2.2rem;
	height: 4px;
	margin-bottom: .6rem;
	background: var(--spvgg-gelb);
}

/* Meta-Zeile: Datum in derselben Schrift wie die Kategorie, aber normal und in Versalien */
.spvgg-card-meta { margin-bottom: .55rem; }
.spvgg-card-meta .wp-block-post-date {
	font-family: var(--wp--preset--font-family--display);
	font-size: .8rem;
	font-weight: 400;
	font-stretch: 112%;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--grau);
}

.is-style-spvgg-card .wp-block-post-title { margin: 0; hyphens: manual; } /* ganze Wörter umbrechen statt „Saisonfi-nale“ */
.is-style-spvgg-card .wp-block-post-title a:hover { text-decoration: underline; text-decoration-color: var(--spvgg-gelb); text-decoration-thickness: 3px; }
.is-style-spvgg-card .wp-block-post-excerpt__excerpt { margin: 0; color: var(--wp--preset--color--grau); }

.spvgg-badge a {
	display: inline-block;
	background: var(--spvgg-gelb);
	color: var(--spvgg-schwarz);
	padding: .15em .55em;
	text-decoration: none;
}
.spvgg-badge .wp-block-post-terms__separator { display: none; }
.spvgg-badge a + a { margin-left: .3em; }

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	font-family: var(--wp--preset--font-family--display);
	text-decoration: none;
	padding: .3em .7em;
}
/* Seitenzahlen so groß und fett wie die Buttons „Neuere/Ältere Beiträge“, gleiche Höhe */
.wp-block-query-pagination .wp-block-query-pagination-numbers { display: inline-flex; gap: .25rem; }
.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination .wp-block-query-pagination-previous,
.wp-block-query-pagination .wp-block-query-pagination-next {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	font-stretch: 112%;
	line-height: 1.4;
	padding-block: .7em;
}
.wp-block-query-pagination .page-numbers {
	min-width: 2.8em;
	padding-inline: .8em;
	text-align: center;
	color: var(--spvgg-schwarz);
	transition: background-color .2s ease, color .2s ease;
}
.wp-block-query-pagination a.page-numbers:hover { background: var(--spvgg-gelb); }
.wp-block-query-pagination .page-numbers.current { background: var(--spvgg-schwarz); color: var(--spvgg-gelb); }
.wp-block-query-pagination { align-items: center; row-gap: 1rem; }

/* „Neuere/Ältere Beiträge“ wie der Button „Alle News“: gelb, Versalien, Dreieck wie im Menü */
.wp-block-query-pagination .wp-block-query-pagination-previous,
.wp-block-query-pagination .wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	gap: .7em;
	padding: .7em 1.4em;
	background: var(--spvgg-gelb);
	color: var(--spvgg-schwarz);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-stretch: 112%;
	letter-spacing: 0;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.wp-block-query-pagination .wp-block-query-pagination-previous:hover,
.wp-block-query-pagination .wp-block-query-pagination-next:hover,
.wp-block-query-pagination .wp-block-query-pagination-previous:focus-visible,
.wp-block-query-pagination .wp-block-query-pagination-next:focus-visible {
	background: var(--spvgg-schwarz);
	color: var(--spvgg-gelb);
}
.wp-block-query-pagination-previous-arrow,
.wp-block-query-pagination-next-arrow { display: none; } /* falls im Editor wieder Textpfeile gewählt werden */
.wp-block-query-pagination .wp-block-query-pagination-next::after,
.wp-block-query-pagination .wp-block-query-pagination-previous::before {
	content: "";
	width: 0;
	height: 0;
	border-style: solid;
	transition: transform .3s var(--spvgg-ease);
}
.wp-block-query-pagination .wp-block-query-pagination-next::after {
	border-width: .32em 0 .32em .42em;
	border-color: transparent transparent transparent currentColor;
}
.wp-block-query-pagination .wp-block-query-pagination-previous::before {
	border-width: .32em .42em .32em 0;
	border-color: transparent currentColor transparent transparent;
}
.wp-block-query-pagination .wp-block-query-pagination-next:hover::after { transform: translateX(4px); }
.wp-block-query-pagination .wp-block-query-pagination-previous:hover::before { transform: translateX(-4px); }

/* ---------- Footer ---------- */
.spvgg-footer .spvgg-footer-links { list-style: none; padding: 0; }
.spvgg-footer .spvgg-footer-links li { margin: .35em 0; }
/* Gleiche breite Archivo wie im Rest der Seite – aber normal und ohne Versalien */
.spvgg-footer .spvgg-footer-links a {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-stretch: 112%;
	text-transform: none;
}
.spvgg-footer a { color: #fff; text-decoration: none; }
.spvgg-footer a:hover { color: var(--spvgg-gelb); }
.spvgg-footer h2 { margin: 0; }
/* Fußzeile: © links, Impressum · Datenschutz · Cookie-Einstellungen rechts (fest im Theme) */
.spvgg-footer .spvgg-footer-bottom { gap: .5rem 1.5rem; }
.spvgg-footer .spvgg-footer-bottom > * { margin: 0; }
.spvgg-footer .spvgg-footer-legal { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.spvgg-footer .spvgg-footer-legal a { color: #c9c9c9; }
.spvgg-footer .spvgg-footer-legal a:hover { color: var(--spvgg-gelb); }
/* Spaltentitel: ab Tablet normaler Text, auf dem Handy Klapp-Knopf (s. menu.js) */
.spvgg-footer .spvgg-footer-toggle { display: none; }
@media (max-width: 781px) {
	.spvgg-footer.is-collapsible .wp-block-columns { gap: 0 !important; }
	.spvgg-footer.is-collapsible .spvgg-footer-col { border-bottom: 1px solid #333; }
	.spvgg-footer.is-collapsible .wp-block-column:first-child { margin-bottom: 1rem; }
	.spvgg-footer.is-collapsible .spvgg-footer-col h3 { margin: 0; }
	.spvgg-footer.is-collapsible .spvgg-footer-title { display: none; }
	.spvgg-footer.is-collapsible .spvgg-footer-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: .9rem 0;
		border: 0;
		background: none;
		color: inherit;
		font: inherit;
		text-transform: inherit;
		letter-spacing: inherit;
		text-align: left;
		cursor: pointer;
	}
	.spvgg-footer.is-collapsible .spvgg-footer-toggle::after { /* Plus, wird beim Öffnen zum Minus */
		content: "";
		width: 14px;
		height: 14px;
		background:
			linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
			linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
		transition: transform .25s var(--spvgg-ease);
	}
	.spvgg-footer.is-collapsible .is-open .spvgg-footer-toggle::after { transform: rotate(180deg); background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
	.spvgg-footer.is-collapsible .spvgg-footer-col:not(.is-open) .spvgg-footer-links { display: none; }
	.spvgg-footer.is-collapsible .spvgg-footer-col .spvgg-footer-links { margin: 0 0 1rem; columns: 2 9.5rem; column-gap: 1rem; } /* zwei Spalten, auf sehr schmalen Geräten eine */
	.spvgg-footer.is-collapsible .spvgg-footer-col .spvgg-footer-links li { break-inside: avoid; margin: 0 0 .5em; }
	.spvgg-footer .spvgg-footer-bottom { flex-direction: column-reverse; align-items: flex-start !important; }
}

/* ---------- Allgemein ---------- */
/* Breiter Archivo-Schnitt auch für Fließtext – wie Menü, Footer und Überschriften */
body,
.editor-styles-wrapper,
input,
textarea,
select,
button { font-stretch: 112%; }
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; hyphens: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
::selection { background: var(--spvgg-gelb); color: var(--spvgg-schwarz); }
:focus-visible { outline: 3px solid var(--spvgg-gelb); outline-offset: 2px; }

/* Breiter Schnitt für Überschriften/Buttons – nah an der BVB-Typo */
h1, h2, h3, h4, h5, h6,
.wp-block-site-title,
.wp-element-button,
.wp-block-post-terms,
.spvgg-kicker { font-stretch: 112%; }

/* Button „Alle News“: Dreieck wie im Menü */
.spvgg-news-link .wp-block-button__link { display: inline-flex; align-items: center; gap: .7em; }
.spvgg-news-link .wp-block-button__link::after {
	content: "";
	width: 0;
	height: 0;
	border-style: solid;
	border-width: .32em 0 .32em .42em;
	border-color: transparent transparent transparent currentColor;
	transition: transform .3s var(--spvgg-ease);
}
.spvgg-news-link .wp-block-button__link:hover::after { transform: translateX(4px); }

/* ---------- Social Media (BVB-Stil: dunkle Leiste, große helle Icons) ---------- */
.spvgg-social__title {
	margin: 0;
	font-weight: 400;
	font-stretch: 112%;
	color: #fffdf2;
}
.spvgg-social__icons.wp-block-social-links .wp-social-link { transition: transform .25s var(--spvgg-ease); }
.spvgg-social__icons.wp-block-social-links .wp-social-link a { padding: .15em; }
.spvgg-social__icons.wp-block-social-links .wp-social-link svg { fill: #fffdf2 !important; transition: fill .2s ease; }
.spvgg-social__icons.wp-block-social-links .wp-social-link:hover { transform: translateY(-3px); }
.spvgg-social__icons.wp-block-social-links .wp-social-link:hover svg,
.spvgg-social__icons.wp-block-social-links .wp-social-link a:focus-visible svg { fill: var(--spvgg-gelb) !important; }
@media (max-width: 600px) {
	.spvgg-social__icons.wp-block-social-links { font-size: 36px !important; gap: 1.75rem !important; }
}

/* Footer: Vereinsname mit gelbem Text-Hintergrund (je Zeile, wie ein Marker) statt einer Box */
.spvgg-footer .spvgg-footer-badge {
	display: inline;
	margin: 0;
	padding: .12em .5em;
	background: var(--spvgg-gelb);
	color: var(--spvgg-schwarz);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone; /* jede Zeile bekommt ihren eigenen Hintergrund */
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.05rem, 2.4vw, 1.35rem);
	font-weight: 800;
	font-stretch: 112%;
	letter-spacing: .02em;
	line-height: 1.75; /* Abstand zwischen den beiden gelben Streifen */
	text-transform: uppercase;
	hyphens: manual;
}

/* Social-Media-Leiste: Text über dem körnigen Hintergrund */
.spvgg-social .wp-block-cover__inner-container { z-index: 2; }
.spvgg-social.wp-block-cover { min-height: clamp(220px, 20vw, 280px); } /* Cover-Standard (430px) ist für die Leiste zu hoch */

/* Handy: Seitenzahlen oben, darunter die Buttons in voller Breite */
@media (max-width: 600px) {
	.wp-block-query-pagination .wp-block-query-pagination-numbers { order: -1; flex: 0 0 100%; justify-content: center; }
	.wp-block-query-pagination .wp-block-query-pagination-previous,
	.wp-block-query-pagination .wp-block-query-pagination-next { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Abteilungsseiten ---------- */
/* Einleitung ausblenden, wenn die Seite keinen Text hat (kein leerer Weißraum) */
.spvgg-dept-intro:not(:has(.wp-block-post-content > *)) { display: none; }
/*
 * Kacheln als kompakte Leiste wie die Slider auf bvb.de: harte Kante (angeschnittene Kachel
 * zeigt, dass es weitergeht), Kopfzeile mit Anzahl und Pfeilen, Fortschrittsbalken darunter.
 * Kopfzeile und Balken erzeugt dept-tiles.js – nur wenn es mehr Kacheln gibt, als passen.
 */
.spvgg-dept-tiles { padding-block: var(--wp--preset--spacing--40) !important; }
.spvgg-dept-tiles .wp-block-query { position: relative; }
.spvgg-dept-tiles .spvgg-dept-tiles__grid {
	display: flex !important;
	gap: 1rem;
	margin: 0 !important;
	padding: 6px 0 !important; /* Platz für das Anheben beim Hover */
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.spvgg-dept-tiles .spvgg-dept-tiles__grid::-webkit-scrollbar { display: none; }
.spvgg-dept-tiles .spvgg-dept-tiles__grid > li {
	flex: 0 0 clamp(10.5rem, 21vw, 14.5rem);
	margin: 0 !important;
	scroll-snap-align: start;
}
/* Handy: zwei Kacheln ganz, die dritte angeschnitten – zeigt, dass man wischen kann */
@media (max-width: 600px) {
	.spvgg-dept-tiles .spvgg-dept-tiles__grid { gap: .75rem; }
	.spvgg-dept-tiles .spvgg-dept-tiles__grid > li { flex-basis: calc((100% - 1.5rem) / 2.15); }
	.spvgg-dept-tiles .spvgg-tile { min-height: 4.75rem; padding: .85rem .9rem !important; }
	.spvgg-dept-tiles .spvgg-tile h3 { font-size: .875rem !important; gap: .45em; }
}
/* Kompakte Kachel: Titel unten */
.spvgg-dept-tiles .spvgg-tile {
	height: 100%;
	min-height: 5.5rem;
	padding: 1rem 1.1rem !important;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}
.spvgg-dept-tiles .spvgg-tile h3 { font-size: clamp(.95rem, 8cqi, 1.15rem) !important; line-height: 1.2; }
.spvgg-dept-tiles .spvgg-tile h3 a { color: #fff; }

/* Kopfzeile: „12 Bereiche“ links, Pfeile rechts */
.spvgg-dept-tiles__head {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: .75rem;
}
.spvgg-dept-tiles__count {
	margin: 0;
	color: var(--spvgg-schwarz);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	font-stretch: 112%;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.spvgg-dept-tiles__arrows { display: flex; gap: .5rem; }
.spvgg-dept-tiles__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: var(--spvgg-schwarz);
	color: var(--spvgg-gelb);
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.spvgg-dept-tiles__arrow::before {
	content: "";
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 6px 0 6px 8px;
	border-color: transparent transparent transparent currentColor;
}
.spvgg-dept-tiles__arrow--prev::before { border-width: 6px 8px 6px 0; border-color: transparent currentColor transparent transparent; }
.spvgg-dept-tiles__arrow:not(:disabled):hover,
.spvgg-dept-tiles__arrow:focus-visible { background: #fff; color: var(--spvgg-schwarz); }
.spvgg-dept-tiles__arrow:disabled { opacity: .3; cursor: default; }

/* Fortschrittsbalken: zeigt, welcher Teil der Leiste gerade sichtbar ist */
.spvgg-dept-tiles__progress {
	display: none;
	position: relative;
	height: 3px;
	margin-top: .9rem;
	background: rgba(11, 11, 11, .18);
	overflow: hidden;
}
.spvgg-dept-tiles__progress span {
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--spvgg-progress-w, 30%);
	background: var(--spvgg-schwarz);
	transform: translateX(var(--spvgg-progress-x, 0%));
}
.has-overflow > .spvgg-dept-tiles__head { display: flex; }
.has-overflow > .spvgg-dept-tiles__progress { display: block; }
@media (prefers-reduced-motion: reduce) {
	.spvgg-dept-tiles .spvgg-dept-tiles__grid { scroll-behavior: auto; }
}
/*
 * Variante „Kompakt (Chips)“ (Block-Stil an der Kachel-Gruppe der Abteilungsseite):
 * schmale Schaltflächen, die umbrechen – alles sichtbar, kein Scrollen. Kopfzeile und
 * Fortschrittsbalken entfallen automatisch, weil nichts mehr überläuft.
 */
.spvgg-dept-tiles.is-style-spvgg-chips .spvgg-dept-tiles__grid {
	flex-wrap: wrap;
	gap: .5rem;
	overflow: visible;
	scroll-snap-type: none;
}
.spvgg-dept-tiles.is-style-spvgg-chips .spvgg-dept-tiles__grid > li { flex: 0 0 auto; }
.spvgg-dept-tiles.is-style-spvgg-chips .spvgg-tile {
	container-type: normal; /* Breite vom Text bestimmen lassen (Kacheln sind sonst Size-Container) */
	min-height: 0;
	padding: .65rem .95rem !important;
}
.spvgg-dept-tiles.is-style-spvgg-chips .spvgg-tile h3 {
	font-size: .9rem !important;
	font-weight: 700;
	gap: .55em;
	white-space: nowrap;
}
@media (max-width: 600px) {
	.spvgg-dept-tiles.is-style-spvgg-chips .spvgg-tile { padding: .55rem .8rem !important; }
	.spvgg-dept-tiles.is-style-spvgg-chips .spvgg-tile h3 { font-size: .8rem !important; white-space: normal; }
}

/* Leiste aus einem Untermenü (Design → Menüs): gleiche Optik wie die Unterseiten-Kacheln;
   der Eintrag der aktuellen Seite ist weiß hervorgehoben (auch bei automatischen Unterseiten). */
.spvgg-dept-tiles__grid { list-style: none; margin-block: 0; padding-left: 0; } /* Kern-CSS der Abfrage fehlt bei Menü-Leisten */
.spvgg-dept-tile__title a { color: inherit; }
.spvgg-dept-tiles .spvgg-tile:has(a[aria-current="page"]) { background: #fff !important; }
.spvgg-dept-tiles .spvgg-tile:has(a[aria-current="page"]) :is(h3, a) { color: var(--spvgg-schwarz) !important; }

/* Ohne Unschärfe-Unterstützung (ältere Browser): Menü und Suche wieder deckend schwarz, damit der Text lesbar bleibt */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.spvgg-header__nav .wp-block-navigation__responsive-close,
	.spvgg-search-panel__inner { background: var(--spvgg-schwarz); }
}

/*
 * Mehr Luft zwischen den Bereichen (nur Abstand oben/unten der Sektionen –
 * Kacheln, Karten und Buttons bleiben unverändert).
 */
:root {
	--spvgg-section-y: clamp(2.5rem, 6vw, 5rem);  /* Inhaltsbereiche, z. B. News */
	--spvgg-band-y: clamp(2rem, 4.5vw, 3.5rem);   /* gelbe Bänder mit Kacheln */
}
.spvgg-quicklinks:not(.spvgg-dept-tiles) { padding-block: var(--spvgg-band-y) !important; }
#news,
.spvgg-dept-news,
.spvgg-matches-section,
.spvgg-footer { padding-top: var(--spvgg-section-y) !important; }
#news,
.spvgg-dept-news,
.spvgg-matches-section { padding-bottom: var(--spvgg-section-y) !important; }

/* ---------- Abteilungen: gelbe Kacheln mit Icon (Muster spvgg/departments) ---------- */
.spvgg-depts { padding-block: var(--spvgg-section-y) !important; }
/* Hintergrund wie bei den Spielen: Cover-Block mit Hero-Foto (im Editor austauschbar) */
.spvgg-depts.wp-block-cover {
	min-height: 0 !important;
	align-items: stretch !important;
	background-color: var(--wp--preset--color--anthrazit, #1C1C1C);
	color: #fff;
	padding-inline: 0 !important; /* Seitenrand kommt vom inneren Container */
}
.spvgg-depts .wp-block-cover__inner-container { width: 100% !important; }
.spvgg-depts__title {
	margin-bottom: var(--wp--preset--spacing--40) !important;
	padding-left: .75rem;
	border-left: 6px solid var(--spvgg-gelb);
}
.spvgg-depts__list {
	list-style: none;
	margin-block: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(.75rem, 1.5vw, 1.25rem);
}
.spvgg-depts__list li { margin: 0; min-width: 0; }
.spvgg-dept {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	height: 100%;
	min-height: 9.5rem;
	box-sizing: border-box;
	padding: clamp(1rem, 2vw, 1.5rem);
	background: var(--spvgg-gelb);
	color: var(--spvgg-schwarz);
	text-decoration: none;
	container-type: inline-size;
	transition: transform .2s ease, box-shadow .2s ease;
}
.spvgg-dept svg {
	width: clamp(2.25rem, 18cqi, 2.75rem);
	height: auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.spvgg-dept span {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .6em;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-stretch: 112%;
	text-transform: uppercase;
	line-height: 1.1;
	font-size: clamp(.8rem, 7.5cqi, 1.25rem);
	hyphens: manual; /* keine Trennung mitten in „Gymnastik“ */
}
/* Dreieck wie bei den Schnellzugriffen */
.spvgg-dept span::after {
	content: "";
	flex: none;
	border-style: solid;
	border-width: .32em 0 .32em .42em;
	border-color: transparent transparent transparent currentColor;
	transition: transform .3s var(--spvgg-ease);
}
/* Hover wie bei den Schnellzugriffen: Kachel hebt sich, unten eine weiße Kante */
.spvgg-dept:hover,
.spvgg-dept:focus-visible {
	transform: translateY(-4px);
	box-shadow: inset 0 -4px 0 #fff;
}
.spvgg-dept:hover span::after,
.spvgg-dept:focus-visible span::after { transform: translateX(5px); }
.spvgg-dept:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.spvgg-dept--all {
	background: transparent;
	color: #fff;
	box-shadow: inset 0 0 0 2px #fff;
}
.spvgg-dept--all:hover,
.spvgg-dept--all:focus-visible { box-shadow: inset 0 0 0 2px #fff, inset 0 -4px 0 #fff; }
/* Schmaler: Leiste zum Wischen wie bei den Spielen, Scrollbar aus matches.js */
@media (max-width: 899px) {
	.spvgg-depts__list {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: min(46%, 11rem); /* Platz für „Abteilungen“ samt Dreieck */
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		margin-inline: calc(-1 * var(--spvgg-gutter)) !important;
		padding-inline: var(--spvgg-gutter);
		scroll-padding-inline: var(--spvgg-gutter);
		padding-top: 4px; /* Platz fürs Anheben beim Hover, sonst schneidet die Leiste oben ab */
		margin-top: -4px !important;
	}
	.spvgg-depts__list::-webkit-scrollbar { display: none; }
	.spvgg-depts__list li { scroll-snap-align: start; }
	.spvgg-dept { min-height: 8.5rem; }
}

/* ---------- Abteilungen als Liste (Muster „Abteilungen (Liste mit Unterseiten)“) ---------- */
.spvgg-dept-rows {
	list-style: none;
	margin-block: var(--wp--preset--spacing--50);
	padding: 0;
	display: grid;
	gap: .5rem;
}
.spvgg-dept-row {
	display: grid;
	grid-template-columns: minmax(15rem, 22rem) 1fr;
	margin: 0;
}
.spvgg-dept-row__head {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.1rem 1.4rem;
	background: var(--spvgg-gelb);
	color: var(--spvgg-schwarz);
	text-decoration: none;
	transition: box-shadow .2s ease;
}
.spvgg-dept-row__head svg {
	flex: none;
	width: 2.4rem;
	height: auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.spvgg-dept-row__head span {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .6em;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-stretch: 112%;
	text-transform: uppercase;
	line-height: 1.1;
	font-size: clamp(1.1rem, 2vw, 1.4rem);
}
.spvgg-dept-row__head span::after { /* Dreieck wie bei den Kacheln */
	content: "";
	flex: none;
	border-style: solid;
	border-width: .32em 0 .32em .42em;
	border-color: transparent transparent transparent currentColor;
	transition: transform .3s var(--spvgg-ease);
}
.spvgg-dept-row__head:hover,
.spvgg-dept-row__head:focus-visible { box-shadow: inset 0 -4px 0 var(--spvgg-schwarz); }
.spvgg-dept-row__head:hover span::after,
.spvgg-dept-row__head:focus-visible span::after { transform: translateX(5px); }
.spvgg-dept-row__links {
	list-style: none;
	margin: 0;
	padding: 1rem 1.4rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem 1.6rem;
	background: var(--spvgg-schwarz);
}
.spvgg-dept-row__links li { margin: 0; }
.spvgg-dept-row__links a {
	color: #fff;
	font-size: .95rem;
	text-decoration: none;
	box-shadow: inset 0 -2px 0 var(--spvgg-gelb);
	transition: box-shadow .2s ease, color .2s ease;
}
.spvgg-dept-row__links a:hover,
.spvgg-dept-row__links a:focus-visible { color: var(--spvgg-gelb); box-shadow: inset 0 -4px 0 var(--spvgg-gelb); }
.spvgg-dept-row__ext { color: var(--spvgg-gelb); }
@media (max-width: 699px) {
	.spvgg-dept-row { grid-template-columns: 1fr; }
	.spvgg-dept-row__head { padding: .9rem 1.1rem; }
	.spvgg-dept-row__head svg { width: 2rem; }
	.spvgg-dept-row__links { padding: .85rem 1.1rem; gap: .45rem 1.2rem; }
}

/* ---------- Spiele vom BFV (BVB-Stil: gelbe Karten mit schwarzer Kopfzeile) ---------- */
.spvgg-matches__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: var(--wp--preset--spacing--40);
}
.spvgg-matches__title {
	margin: 0;
	padding-left: .75rem;
	border-left: 6px solid var(--spvgg-gelb);
	color: inherit;
}
.spvgg-matches__tabs { display: flex; }
.spvgg-matches__tab {
	font: inherit;
	font-family: var(--wp--preset--font-family--display);
	font-size: .85rem;
	font-weight: 700;
	font-stretch: 112%;
	text-transform: uppercase;
	letter-spacing: .02em;
	padding: .7em 1.2em;
	border: 2px solid currentColor;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.spvgg-matches__tab + .spvgg-matches__tab { border-left-width: 0; }
.spvgg-matches__tab[aria-selected="true"] {
	background: var(--spvgg-gelb);
	border-color: var(--spvgg-gelb);
	color: var(--spvgg-schwarz);
}
.spvgg-matches__tab:not([aria-selected="true"]):hover { background: rgba(255,255,255,.1); }
.spvgg-matches__tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Hintergrund: Cover-Block mit Hero-Foto (im Editor austauschbar) */
.spvgg-matches-section {
	min-height: 0 !important;
	align-items: stretch !important;
	background-color: var(--wp--preset--color--anthrazit, #1C1C1C);
	color: #fff;
	padding-left: 0 !important; /* Seitenrand kommt vom inneren Container */
	padding-right: 0 !important;
}
.spvgg-matches-section .wp-block-cover__inner-container { width: 100% !important; }
.spvgg-matches-section .wp-block-cover__image-background { filter: contrast(1.05); }

/* Drei Karten nebeneinander; schmaler: Leiste zum Wischen */
.spvgg-matches__panel {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}
.spvgg-matches__panel[hidden] { display: none; }
@media (max-width: 899px) {
	.spvgg-matches__panel {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: min(82%, 21rem);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none; /* eigene Scrollbar darunter, s. matches.js */
		/* bis an den Bildschirmrand wischen, Karten starten trotzdem an der Inhaltskante */
		margin-inline: calc(-1 * var(--spvgg-gutter));
		padding-inline: var(--spvgg-gutter);
		scroll-padding-inline: var(--spvgg-gutter);
	}
	.spvgg-matches__panel::-webkit-scrollbar { display: none; }
	.spvgg-match { scroll-snap-align: start; }
}

/* Scrollbar unter der Karten-Leiste: gelber Balken = sichtbarer Ausschnitt, zieh- und klickbar */
.spvgg-matches__scrollbar {
	position: relative;
	height: 6px;
	margin-top: 1.25rem;
	background: rgba(255,255,255,.22);
	cursor: pointer;
	touch-action: none;
}
.spvgg-matches__scrollbar[hidden] { display: none; }
.spvgg-matches__scrollbar::before { content: ""; position: absolute; inset: -10px 0; } /* größere Trefferfläche */
.spvgg-matches__scrollbar span {
	position: absolute;
	inset: 0 auto 0 0;
	background: var(--spvgg-gelb);
	cursor: grab;
}
.spvgg-matches__scrollbar.is-dragging span { cursor: grabbing; }

.spvgg-match {
	position: relative; /* hält versteckte Hilfstexte in der Wisch-Leiste */
	display: flex;
	flex-direction: column;
	background: var(--spvgg-gelb);
	color: var(--spvgg-schwarz);
	min-width: 0;
}
.spvgg-match__head {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
	min-height: 3.4rem; /* zweizeilige Liga-Namen: alle Kopfzeilen gleich hoch */
	padding: .65rem 1rem;
	background: var(--spvgg-schwarz);
	color: #fff;
	font-family: var(--wp--preset--font-family--display);
	font-size: .78rem;
	font-weight: 700;
	font-stretch: 112%;
	text-transform: uppercase;
	letter-spacing: .03em;
	line-height: 1.3;
}
.spvgg-match__team-name { white-space: nowrap; }
.spvgg-match__league { font-weight: 400; text-align: right; }
.spvgg-match__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1.25rem 1rem 1.5rem;
}
.spvgg-match__body p { margin: 0; }
.spvgg-match__comp {
	font-size: .78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.spvgg-match__date {
	margin-top: .35rem !important;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.05rem;
	font-weight: 800;
	font-stretch: 112%;
	text-transform: uppercase;
}
.spvgg-match__venue { margin-top: .2rem !important; font-size: .82rem; line-height: 1.35; }
/* Abgesagtes Spiel: statt Datum/Ort ein schwarzer Balken „Abgesagt“, darunter der Grund */
.spvgg-match__cancelled {
	margin-top: .5rem !important;
	padding: .25em .7em;
	background: var(--spvgg-schwarz);
	color: var(--spvgg-gelb);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.05rem;
	font-weight: 800;
	font-stretch: 112%;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.spvgg-match__reason { margin-top: .5rem !important; }

.spvgg-match__teams {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: start;
	gap: .75rem;
	width: 100%;
	margin: 1.4rem 0 1.5rem;
}
.spvgg-match__side {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .55rem;
}
.spvgg-match__crest {
	width: 64px;
	height: 64px;
	object-fit: contain;
}
.spvgg-match__crest--initials {
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #fff;
	box-shadow: inset 0 0 0 2px var(--spvgg-schwarz);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.15rem;
	font-weight: 800;
	font-stretch: 112%;
}
.spvgg-match__club {
	font-size: .85rem;
	font-weight: 700;
	line-height: 1.25;
	overflow-wrap: break-word;
	hyphens: manual;
}
.spvgg-match__vs,
.spvgg-match__score {
	align-self: center;
	margin-top: -1.6rem !important; /* auf Höhe der Wappen statt mittig über Wappen + Name */
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-stretch: 112%;
	line-height: 1;
}
.spvgg-match__vs { font-size: 1.6rem; font-style: italic; }
.spvgg-match__score {
	display: flex;
	gap: .15em;
	font-size: 2.4rem;
	font-variant-numeric: tabular-nums;
}
.spvgg-match__colon { opacity: .5; }

/* Button wie „Alle News“, hier weiß auf Gelb */
.spvgg-match__link {
	display: inline-flex;
	align-items: center;
	gap: .7em;
	margin-top: auto;
	padding: .7em 1.4em;
	background: #fff;
	color: var(--spvgg-schwarz);
	font-family: var(--wp--preset--font-family--display);
	font-size: .85rem;
	font-weight: 700;
	font-stretch: 112%;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.spvgg-match__link::after {
	content: "";
	border-style: solid;
	border-width: .32em 0 .32em .42em;
	border-color: transparent transparent transparent currentColor;
	transition: transform .3s var(--spvgg-ease);
}
.spvgg-match__link:hover,
.spvgg-match__link:focus-visible { background: var(--spvgg-schwarz); color: var(--spvgg-gelb); }
.spvgg-match__link:hover::after { transform: translateX(4px); }

@media (max-width: 599px) {
	.spvgg-match__body { padding-inline: .75rem; }
	.spvgg-match__date { font-size: .95rem; }
	.spvgg-match__teams { gap: .5rem; }
	.spvgg-match__crest { width: 56px; height: 56px; }
	.spvgg-match__club { font-size: .78rem; }
	.spvgg-match__vs, .spvgg-match__score { margin-top: -1.4rem !important; }
	.spvgg-match__score { font-size: 2rem; }
}
.spvgg-match.is-empty .spvgg-match__body { justify-content: center; min-height: 12rem; }
.spvgg-match__empty { font-weight: 700; }
.spvgg-matches__notice { padding: 1rem; border: 2px dashed currentColor; }
.spvgg-matches .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Inhalte aus dem klassischen Editor (ältere Beiträge der bisherigen Website) ---------- */
.wp-block-post-content img { height: auto; max-width: 100%; }
.wp-block-post-content :is(img, .wp-caption).alignleft {
	float: left;
	max-width: 50%;
	margin: .35em 1.5em 1em 0;
}
.wp-block-post-content :is(img, .wp-caption).alignright {
	float: right;
	max-width: 50%;
	margin: .35em 0 1em 1.5em;
}
.wp-block-post-content :is(img, .wp-caption).aligncenter {
	display: block;
	margin-inline: auto;
}
.wp-block-post-content::after { content: ""; display: table; clear: both; } /* Floats am Ende auffangen */
.wp-block-post-content .wp-caption { max-width: 100%; }
.wp-block-post-content .wp-caption img { display: block; }
.wp-block-post-content :is(.wp-caption-text, .gallery-caption) {
	margin: .45em 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--grau);
	line-height: 1.4;
}
@media (max-width: 599px) {
	.wp-block-post-content :is(img, .wp-caption):is(.alignleft, .alignright) {
		float: none;
		max-width: 100%;
		margin: 1em 0;
	}
}

/* Tabellen ohne Tabellen-Block: wie in den News-Karten schlicht, auf dem Handy seitlich scrollbar */
.wp-block-post-content table:not(.wp-block-table table) {
	width: 100%;
	border-collapse: collapse;
	margin-block: 1.5em;
	font-size: .95em;
}
.wp-block-post-content table:not(.wp-block-table table) :is(th, td) {
	padding: .55em .8em;
	border-bottom: 1px solid #ddd;
	text-align: left;
	vertical-align: top;
}
.wp-block-post-content table:not(.wp-block-table table) th,
.wp-block-post-content table:not(.wp-block-table table) thead td {
	background: var(--wp--preset--color--hellgrau);
	font-weight: 700;
}
@media (max-width: 599px) {
	.wp-block-post-content table:not(.wp-block-table table) { display: block; overflow-x: auto; }
}

/* Galerie-Shortcode [gallery] */
.wp-block-post-content .gallery {
	display: grid;
	grid-template-columns: repeat(var(--spvgg-gallery-cols, 3), minmax(0, 1fr));
	gap: .75rem;
	margin-block: 1.5em;
}
.gallery-columns-1 { --spvgg-gallery-cols: 1; }
.gallery-columns-2 { --spvgg-gallery-cols: 2; }
.gallery-columns-4 { --spvgg-gallery-cols: 4; }
.gallery-columns-5 { --spvgg-gallery-cols: 5; }
.gallery-columns-6 { --spvgg-gallery-cols: 6; }
.gallery-columns-7 { --spvgg-gallery-cols: 7; }
.gallery-columns-8 { --spvgg-gallery-cols: 8; }
.gallery-columns-9 { --spvgg-gallery-cols: 9; }
@media (max-width: 599px) {
	.wp-block-post-content .gallery { --spvgg-gallery-cols: 2; }
}
.wp-block-post-content .gallery-item { margin: 0; }
.wp-block-post-content .gallery-icon img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.wp-block-post-content .gallery br { display: none; } /* alte Galerien enthalten <br style="clear:both"> */

/* ---------- WP Event Manager (Seite „Veranstaltungen“) ----------
   Filter in heller Box, Ansicht-Umschalter schwarz/gelb, Karten wie die News-Karten
   (gelbes Datum auf dem Bild), Listenansicht mit gelbem Datumsblock. */
.wp-block-post-content > .event_listings { max-width: var(--wp--style--global--wide-size) !important; }
.event_listings { font-family: var(--wp--preset--font-family--body); }

/* Filter */
.event_listings .event_filters {
	margin: 0 0 2rem;
	padding: clamp(1rem, 2.5vw, 1.5rem);
	background: var(--wp--preset--color--hellgrau, #F3F3F1);
}
.event_listings .event_filters .wpem-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .75rem; margin: 0; }
.event_listings .event_filters .wpem-row + .wpem-row { margin-top: .75rem; }
.event_listings .event_filters .wpem-col { width: auto; max-width: none; padding: 0; flex: none; }
.event_listings .event_filters .wpem-form-group { margin: 0; }
.event_listings .event_filters :is(input[type="text"], input[type="search"], select, .chosen-single, .date_range_picker),
.event_listings .event_filters .comiseo-daterangepicker-triggerbutton {
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	padding: 0 1rem;
	border: 2px solid #fff;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	color: var(--spvgg-schwarz);
	font: inherit;
	font-size: .95rem;
	line-height: 44px;
}
.event_listings .event_filters :is(input, .chosen-single, .comiseo-daterangepicker-triggerbutton):focus,
.event_listings .event_filters .chosen-container-active .chosen-single { border-color: var(--spvgg-schwarz); outline: none; }
.event_listings .event_filters .chosen-single { display: flex; align-items: center; text-decoration: none; background-image: none; }
.event_listings .event_filters .chosen-single span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.event_listings .event_filters .chosen-container { width: 100% !important; }
.event_listings .event_filters .chosen-drop { border: 2px solid var(--spvgg-schwarz); border-top: 0; border-radius: 0; box-shadow: none; }
/* Aufgeklappte Liste: Suchfeld ohne Plugin-Grafiken, Einträge mit gelber Markierung statt Blau */
.event_listings .event_filters .chosen-drop { margin-top: -2px; padding: 0; background: #fff; }
.event_listings .event_filters .chosen-search { padding: .6rem .75rem .4rem !important; }
.event_listings .event_filters .chosen-search input[type="text"] {
	width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	padding: .55rem .75rem !important;
	border: 1px solid #c9c9c4 !important;
	border-radius: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	background: #fff !important; /* Plugin-Sprite (Pfeile, Kreuze) weg */
	font: inherit;
	font-size: .95rem;
}
.event_listings .event_filters .chosen-search input[type="text"]:focus { border-color: var(--spvgg-schwarz) !important; }
.event_listings .event_filters .chosen-results { margin: 0 !important; padding: 0 0 .4rem !important; max-height: 18rem; }
.event_listings .event_filters .chosen-results li {
	margin: 0;
	padding: .55rem .75rem !important;
	border-left: 4px solid transparent;
	font-size: .95rem;
	line-height: 1.35;
	color: var(--spvgg-schwarz);
}
.event_listings .event_filters .chosen-results li.group-option,
.event_listings .event_filters .chosen-results li[style*="padding-left"] { padding-left: 1.75rem !important; }
.event_listings .event_filters .chosen-results li.highlighted {
	border-left-color: var(--spvgg-gelb);
	background: var(--wp--preset--color--hellgrau, #F3F3F1) !important;
	background-image: none !important;
	color: var(--spvgg-schwarz) !important;
}
.event_listings .event_filters .chosen-results li.result-selected { font-weight: 700; }
.event_listings .event_filters .chosen-results li.no-results { background: transparent !important; color: #6b6b66; }
/* erster Eintrag („Wähle …“) setzt die Auswahl zurück – dezent grau */
.event_listings .event_filters .chosen-results li[data-option-array-index="0"]:not(.highlighted) { color: #6b6b66; }
.event_listings .event_filters ::placeholder { color: #8a8a8a; }
.event_listings .showing_applied_filters { margin: .75rem 0 0; font-size: .85rem; }

/* Kopfzeile: zweite Überschrift „Veranstaltungen“ ist doppelt (Titel steht schon im Bild) – nur der Umschalter bleibt */
.event_listings .wpem-event-listings-header { margin: 0 0 1rem; }
.event_listings .wpem-event-listings-header .wpem-row { display: flex; justify-content: flex-end; margin: 0; }
.event_listings .wpem-event-listings-header .wpem-col:has(.wpem-event-listing-header-title) { display: none; }
.event_listings .wpem-event-listings-header .wpem-col { width: auto; max-width: none; padding: 0; flex: none; }
.event_listings .wpem-event-layout-action { display: flex; gap: .4rem; }
.event_listings .wpem-event-layout-icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0;
	border: 2px solid var(--spvgg-schwarz);
	border-radius: 0;
	background: transparent;
	color: var(--spvgg-schwarz);
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
.event_listings .wpem-event-layout-icon:hover { background: var(--spvgg-schwarz); color: #fff; }
.event_listings .wpem-event-layout-icon.wpem-active-layout { background: var(--spvgg-schwarz); color: var(--spvgg-gelb); }
.event_listings .wpem-event-layout-icon i { color: inherit; }

/* Karten (Rasteransicht) */
.event_listings .wpem-event-listings.wpem-event-listing-box-view {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	margin: 0;
}
.event_listings .wpem-event-listings > .wpem-col { width: auto; max-width: none; padding: 0; margin: 0; flex: none; }
.event_listings .wpem-event-layout-wrapper { height: 100%; margin: 0; }
.event_listings .event_listing { height: 100%; border: 0; box-shadow: none; }
.event_listings a.wpem-event-action-url {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	color: var(--wp--preset--color--anthrazit, #1C1C1C);
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(0,0,0,.06), inset 0 0 0 1px #e6e6e1;
	transition: box-shadow .25s ease;
}
.event_listings a.wpem-event-action-url:hover { box-shadow: 0 4px 14px rgba(0,0,0,.09), inset 0 0 0 1px #e6e6e1; }
.event_listings .wpem-event-banner-img { position: relative; aspect-ratio: 16 / 9; height: auto; background-size: cover; background-position: center; }
.event_listings .wpem-event-banner .wpem-event-date {
	position: absolute;
	top: 0;
	left: 1rem;
	width: auto;
	min-width: 3.6rem;
	margin: 0;
	padding: .55rem .6rem .5rem;
	border: 0;
	border-radius: 0;
	background: var(--spvgg-gelb);
	box-shadow: none;
	text-align: center;
}
.event_listings :is(.wpem-event-banner, .wpem-event-infomation) .wpem-date {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.6rem;
	font-weight: 800;
	font-stretch: 112%;
	line-height: 1;
	color: var(--spvgg-schwarz);
}
.event_listings :is(.wpem-event-banner, .wpem-event-infomation) .wpem-month {
	margin-top: .15rem;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--spvgg-schwarz);
}
.event_listings .wpem-event-date :is(.wpem-date, .wpem-month) { color: var(--spvgg-schwarz) !important; } /* Plugin färbt sie in der Liste grau */
.event_listings .wpem-event-infomation { flex: 1; padding: 1rem 1.15rem 1.25rem; }
.event_listings .wpem-event-listing-box-view .wpem-event-infomation > .wpem-event-date { display: none; } /* Datum steht schon auf dem Bild */
.event_listings .wpem-event-details { padding: 0; }
.event_listings .wpem-event-title { margin: 0 0 .6rem; }
.event_listings .wpem-heading-text {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.1rem;
	font-weight: 800;
	font-stretch: 112%;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--spvgg-schwarz);
	hyphens: manual;
	-webkit-line-clamp: unset;
	white-space: normal;
	overflow: visible;
	display: block;
}
.event_listings :is(.wpem-event-date-time, .wpem-event-location, .wpem-event-type) {
	display: flex;
	gap: .4rem;
	align-items: flex-start;
	margin: .25rem 0 0;
	font-size: .85rem;
	line-height: 1.4;
	color: var(--wp--preset--color--grau, #5E5E5E);
}
.event_listings :is(.wpem-event-date-time, .wpem-event-location) i { color: var(--spvgg-schwarz); }

/* „Weitere laden“ wie die Theme-Buttons */
.event_listings .load_more_events {
	display: inline-flex;
	margin-top: 1.5rem;
	padding: .7em 1.4em;
	background: var(--spvgg-gelb);
	color: var(--spvgg-schwarz);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
}
.event_listings .load_more_events:hover { background: var(--spvgg-schwarz); color: var(--spvgg-gelb); }

/* ---------- WooCommerce: schlanker Kopf auf der Kasse (parts/checkout-header.html) ---------- */
.spvgg-checkout-header .wp-block-site-logo img { width: 44px; height: auto; }
.spvgg-checkout-header .wp-block-site-title a { color: #fff; text-decoration: none; }

/* ---------- Einwilligung für externe Inhalte (inc/consent.php, assets/js/consent.js) ---------- */
/* Banner: fährt unten ein wie das Menü von oben – gleiche Kurve, gleicher dunkler Glas-Hintergrund. */
.spvgg-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	max-height: 100dvh;
	overflow-y: auto;
	background: var(--spvgg-panel-bg);
	-webkit-backdrop-filter: var(--spvgg-panel-blur);
	backdrop-filter: var(--spvgg-panel-blur);
	border-top: 4px solid var(--spvgg-gelb);
	color: #fff;
	transform: translateY(100%);
	transition: transform .5s cubic-bezier(.65, 0, .35, 1);
}
.spvgg-consent.is-visible { transform: none; }
.spvgg-consent[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
	.spvgg-consent { transition: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.spvgg-consent { background: var(--spvgg-schwarz); }
}
.spvgg-consent__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "text actions" "settings settings";
	gap: 1.25rem 3rem;
	align-items: center;
	padding: clamp(1.25rem, 3vw, 2rem) var(--spvgg-edge);
}
.spvgg-consent__text { grid-area: text; max-width: 760px; }
.spvgg-consent__text p { margin: 0; font-size: .95rem; line-height: 1.55; color: #e4e4e4; }
.spvgg-consent__title {
	margin: 0 0 .6rem;
	padding-left: .65rem;
	border-left: 5px solid var(--spvgg-gelb);
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	color: #fff;
}
.spvgg-consent__links { margin-top: .6rem !important; display: flex; gap: 1.25rem; }
.spvgg-consent a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.spvgg-consent a:hover { color: var(--spvgg-gelb); }

.spvgg-consent__actions {
	grid-area: actions;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: .6rem;
	min-width: 15rem;
}
/* „Alle akzeptieren“ und „Nur notwendige“ bewusst gleich groß und gleich auffällig. */
.spvgg-consent__btn {
	font-family: var(--wp--preset--font-family--display);
	font-size: .9rem;
	font-weight: 700;
	font-stretch: 112%;
	text-transform: uppercase;
	padding: .85em 1.4em;
	border: 2px solid var(--spvgg-gelb);
	background: var(--spvgg-gelb);
	color: var(--spvgg-schwarz);
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
.spvgg-consent__btn:hover { background: transparent; color: var(--spvgg-gelb); }
.spvgg-consent__btn:focus-visible,
.spvgg-consent__more:focus-visible,
.spvgg-consent__switch input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
.spvgg-consent__more {
	font: inherit;
	font-size: .9rem;
	background: none;
	border: 0;
	padding: .3em 0;
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.spvgg-consent__more:hover { color: var(--spvgg-gelb); }

/* Einstellungen: ein Schalter je Dienst */
.spvgg-consent__settings { grid-area: settings; }
.spvgg-consent__settings[hidden] { display: none; }
.spvgg-consent__settings fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
	gap: .5rem 1.5rem;
}
.spvgg-consent__service {
	display: flex;
	gap: .9rem;
	align-items: flex-start;
	padding: .75rem 0;
	border-top: 1px solid rgba(255,255,255,.15);
	cursor: pointer;
}
.spvgg-consent__service.is-required { cursor: default; }
.spvgg-consent__service strong { display: block; font-size: .95rem; }
.spvgg-consent__service small { display: block; font-size: .8rem; line-height: 1.45; color: #bdbdbd; }
.spvgg-consent__switch { position: relative; flex: none; width: 44px; height: 24px; margin-top: 2px; }
.spvgg-consent__switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: inherit; }
.spvgg-consent__switch span {
	position: absolute;
	inset: 0;
	border-radius: 12px;
	background: rgba(255,255,255,.25);
	transition: background-color .2s ease;
	pointer-events: none;
}
.spvgg-consent__switch span::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform .2s ease;
}
.spvgg-consent__switch input:checked + span { background: var(--spvgg-gelb); }
.spvgg-consent__switch input:checked + span::after { transform: translateX(20px); background: var(--spvgg-schwarz); }
.spvgg-consent__switch input:disabled + span { opacity: .6; }

@media (max-width: 781px) {
	.spvgg-consent__inner { grid-template-columns: 1fr; grid-template-areas: "text" "settings" "actions"; gap: 1rem; }
	.spvgg-consent__actions { min-width: 0; }
	.spvgg-consent__text p { font-size: .88rem; }
}

/* Platzhalter an Stelle blockierter Inhalte – wie die schwarzen Kacheln */
.spvgg-consent-hidden { display: none !important; }
.spvgg-consent-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	min-height: 14rem;
	aspect-ratio: 16 / 9;
	background: var(--spvgg-schwarz) var(--spvgg-stripes);
	color: #fff;
	text-align: center;
}
.spvgg-consent-placeholder.is-compact { aspect-ratio: auto; min-height: 0; margin-block: 1rem; }
.wp-has-aspect-ratio .wp-block-embed__wrapper > .spvgg-consent-placeholder { position: absolute; inset: 0; min-height: 0; aspect-ratio: auto !important; } /* Rahmen gibt der Einbettungs-Block vor */
.spvgg-consent-placeholder__inner { max-width: 34rem; padding: 1.5rem; }
.spvgg-consent-placeholder p { margin: 0 0 .75rem; }
.spvgg-consent-placeholder__kicker {
	font-family: var(--wp--preset--font-family--display);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--spvgg-gelb);
}
.spvgg-consent-placeholder__text { font-size: .9rem; line-height: 1.5; color: #e4e4e4; }
.spvgg-consent-placeholder__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1.25rem; }
.spvgg-consent-placeholder .spvgg-consent__btn { font-size: .8rem; }

/* Abteilungs-Leiste im Editor: Platzhalter-Chips mit Hinweis */
.spvgg-dept-nav-placeholder .spvgg-dept-tiles__grid { display: flex; flex-wrap: wrap; gap: .5rem; opacity: .55; }
.spvgg-dept-nav-placeholder__note { margin: .9rem 0 0; font-size: .85rem; color: var(--spvgg-schwarz); }

/* ---------- Links im Text von Beiträgen und Seiten ----------
   Standard: gelber Textmarker-Streifen in der unteren Hälfte, beim Darüberfahren ganz gelb.
   Stil „Link als Box“ (Absatz/Liste): gelbe Box mit Dreieck wie die Buttons.
   Gilt nicht für Buttons, verlinkte Bilder und die Abteilungs-Liste. Zweiter Selektor = Inhalt im Block-Editor. */
:is(.wp-block-post-content, .editor-styles-wrapper .is-root-container) a:not(.wp-element-button, .wp-block-button__link, .spvgg-consent__more, .ddownload-button, [class*="wpem"], [class*="chosen"]):not(:has(img)):not(.spvgg-dept-rows *) {
	color: var(--spvgg-schwarz);
	font-weight: 600;
	text-decoration: none;
	background: linear-gradient(transparent 58%, var(--spvgg-gelb) 58%) no-repeat;
	padding: 0 .12em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	transition: background-color .2s ease;
}
:is(.wp-block-post-content, .editor-styles-wrapper .is-root-container) a:not(.wp-element-button, .wp-block-button__link, .spvgg-consent__more, .ddownload-button, [class*="wpem"], [class*="chosen"]):not(:has(img)):not(.spvgg-dept-rows *):hover {
	background-color: var(--spvgg-gelb);
}
:is(.wp-block-post-content, .editor-styles-wrapper .is-root-container) a:focus-visible { outline: 2px solid var(--spvgg-schwarz); outline-offset: 2px; }

:is(.wp-block-post-content, .editor-styles-wrapper .is-root-container) .is-style-spvgg-link-box a:not(.wp-element-button):not(:has(img)) {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	padding: .6em 1.1em;
	background: var(--spvgg-gelb);
	font-family: var(--wp--preset--font-family--display);
	font-size: .9rem;
	font-weight: 700;
	font-stretch: 112%;
	text-transform: uppercase;
	line-height: 1.3;
	transition: background-color .2s ease, color .2s ease;
}
:is(.wp-block-post-content, .editor-styles-wrapper .is-root-container) .is-style-spvgg-link-box a:not(.wp-element-button):not(:has(img))::after {
	content: "";
	flex: none;
	border-style: solid;
	border-width: .32em 0 .32em .42em;
	border-color: transparent transparent transparent currentColor;
	transition: transform .3s var(--spvgg-ease);
}
:is(.wp-block-post-content, .editor-styles-wrapper .is-root-container) .is-style-spvgg-link-box a:not(.wp-element-button):not(:has(img)):hover {
	background: var(--spvgg-schwarz);
	color: var(--spvgg-gelb);
}
:is(.wp-block-post-content, .editor-styles-wrapper .is-root-container) .is-style-spvgg-link-box a:hover::after { transform: translateX(4px); }
ul.is-style-spvgg-link-box { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
ul.is-style-spvgg-link-box > li { margin: 0; }

/* ---------- Beitragsnavigation: Box-Links wie „Link als Box“, mit Dreieck ◀ / ▶ ---------- */
.spvgg-post-nav { gap: .75rem 1.5rem; }
.spvgg-post-nav .wp-block-post-navigation-link { max-width: calc(50% - .75rem); }
.spvgg-post-nav .post-navigation-link-next { margin-left: auto; }
.spvgg-post-nav .wp-block-post-navigation-link a {
	display: inline-flex;
	align-items: center;
	gap: .7em;
	padding: .7em 1.1em;
	background: var(--spvgg-gelb);
	color: var(--spvgg-schwarz);
	text-decoration: none;
	font-family: var(--wp--preset--font-family--display);
	font-size: .85rem;
	font-weight: 700;
	font-stretch: 112%;
	text-transform: uppercase;
	line-height: 1.3;
	hyphens: manual;
	transition: background-color .2s ease, color .2s ease;
}
.spvgg-post-nav .wp-block-post-navigation-link a::before,
.spvgg-post-nav .wp-block-post-navigation-link a::after {
	flex: none;
	border-style: solid;
	transition: transform .3s var(--spvgg-ease);
}
.spvgg-post-nav .post-navigation-link-previous a::before {
	content: "";
	border-width: .32em .42em .32em 0;
	border-color: transparent currentColor transparent transparent;
}
.spvgg-post-nav .post-navigation-link-next a::after {
	content: "";
	border-width: .32em 0 .32em .42em;
	border-color: transparent transparent transparent currentColor;
}
.spvgg-post-nav .wp-block-post-navigation-link a:hover { background: var(--spvgg-schwarz); color: var(--spvgg-gelb); }
.spvgg-post-nav .post-navigation-link-previous a:hover::before { transform: translateX(-4px); }
.spvgg-post-nav .post-navigation-link-next a:hover::after { transform: translateX(4px); }
@media (max-width: 600px) {
	.spvgg-post-nav .wp-block-post-navigation-link { max-width: 100%; }
}
/* „Vorheriger/Nächster Beitrag“ nur für Screenreader – sichtbar sind Box und Dreieck */
.spvgg-post-nav .post-navigation-link__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- TablePress-Tabellen ----------
   TablePress steuert Farben über CSS-Variablen – die setzen wir aufs Vereinsdesign. Die Zell-Regeln mit
   .wp-block-post-content übertrumpfen auch alte Einzelregeln je Tabelle (z. B. Tahoma 10px). */
body .tablepress,
.wp-block-post-content .tablepress { /* höhere Priorität als die später geladenen Variablen von TablePress */
	--text-color: var(--wp--preset--color--anthrazit, #1C1C1C);
	--head-text-color: #fff;
	--head-bg-color: var(--spvgg-schwarz);
	--head-active-text-color: var(--spvgg-gelb);
	--head-active-bg-color: #2a2a2a;
	--head-sort-arrow-color: var(--spvgg-gelb);
	--odd-bg-color: #fff;
	--even-bg-color: var(--wp--preset--color--hellgrau, #F3F3F1);
	--hover-text-color: var(--spvgg-schwarz);
	--hover-bg-color: #E6E6E1; /* etwas dunkler als die Zebrastreifen, dazu gelbe Kante links */
	--border-color: #e2e2dd;
	--padding: .65rem .85rem;
}
.wp-block-post-content .tablepress { margin-block: 1.5em; font-size: .95rem; }
.wp-block-post-content .tablepress > :is(thead, tbody, tfoot) > tr > :is(th, td) {
	padding: var(--padding);
	font-family: var(--wp--preset--font-family--body);
	font-size: inherit;
	line-height: 1.5;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--border-color);
}
.wp-block-post-content .tablepress > :is(thead, tfoot) > tr > th {
	background: var(--head-bg-color);
	color: var(--head-text-color);
	font-family: var(--wp--preset--font-family--display);
	font-size: .78rem;
	font-weight: 700;
	font-stretch: 112%;
	letter-spacing: .03em;
	text-transform: uppercase;
	border-bottom: 3px solid var(--spvgg-gelb);
}

/* Zeile unter der Maus: gelber Streifen am linken Rand (nur Tabellen mit Hover-Hervorhebung) */
.wp-block-post-content .tablepress > tbody.row-hover > tr:hover > :first-child { box-shadow: inset 4px 0 0 var(--spvgg-gelb); }

/* ---------- Download-Buttons (Delightful Downloads) – wie „Alle News“, mit Dreieck nach unten ---------- */
.wp-block-post-content a.ddownload-button,
.editor-styles-wrapper a.ddownload-button {
	display: inline-flex;
	align-items: center;
	gap: .65em;
	padding: .75em 1.25em;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	text-shadow: none;
	background: var(--spvgg-gelb);
	color: var(--spvgg-schwarz) !important; /* Plugin setzt die Farbe mit !important */
	font-family: var(--wp--preset--font-family--display);
	font-size: .85rem;
	font-weight: 700;
	font-stretch: 112%;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.3;
	transition: background-color .2s ease, color .2s ease;
}
/* Shortcode-Block gibt den Button ohne Absatz aus: direkt im Inhalt greift die Zentrierung der
   Textspalte (margin: auto) beim Inline-Element nicht – daher als Block an den Textanfang rücken. */
.is-layout-constrained > a.ddownload-button {
	display: flex;
	width: fit-content;
	margin-left: max(0px, (100% - var(--wp--style--global--content-size)) / 2) !important;
	margin-right: 0 !important;
}
.wp-block-post-content a.ddownload-button::after,
.editor-styles-wrapper a.ddownload-button::after {
	content: "";
	flex: none;
	border-style: solid;
	border-width: .42em .32em 0 .32em;
	border-color: currentColor transparent transparent transparent;
	transition: transform .3s var(--spvgg-ease);
}
.wp-block-post-content a.ddownload-button:is(:hover, :focus-visible),
.editor-styles-wrapper a.ddownload-button:hover {
	background: var(--spvgg-schwarz);
	color: var(--spvgg-gelb) !important;
}
.wp-block-post-content a.ddownload-button:hover::after { transform: translateY(3px); }

/* ---------- News-Filter (Kategorie-Chips, Mehrfachauswahl) ----------
   Rahmen-Chips; gewählte schwarz mit gelber Schrift wie der Umschalter bei den Spielen, mit Haken. */
.spvgg-news-filter { margin: 0 0 var(--wp--preset--spacing--50); }
.spvgg-news-filter ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.spvgg-news-filter li { margin: 0; }
.spvgg-news-filter__chip {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .55em .95em;
	border: 2px solid var(--spvgg-schwarz);
	background: transparent;
	color: var(--spvgg-schwarz);
	font-family: var(--wp--preset--font-family--display);
	font-size: .78rem;
	font-weight: 700;
	font-stretch: 112%;
	letter-spacing: .02em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.spvgg-news-filter__chip:hover { background: var(--spvgg-schwarz); color: #fff; }
.spvgg-news-filter__chip.is-active { background: var(--spvgg-schwarz); color: var(--spvgg-gelb); }
.spvgg-news-filter__chip.is-active:not(.is-all)::before { /* Haken für gewählte Kategorien */
	content: "";
	width: .32em;
	height: .62em;
	margin: -.15em .05em 0 .1em;
	border: solid currentColor;
	border-width: 0 .16em .16em 0;
	transform: rotate(45deg);
}
.spvgg-news-filter__chip:focus-visible { outline: 2px solid var(--spvgg-schwarz); outline-offset: 2px; }
.spvgg-news-loading .wp-block-query { opacity: .45; transition: opacity .2s ease; }

/* Nur für Screenreader (u. a. „(ausgewählt)“ bei Chips, Ansagen des Filters) */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
@media (max-width: 600px) {
	/* Auf dem Handy eine Zeile zum Wischen statt vieler Zeilen; Chips laufen bis an den Bildschirmrand */
	.spvgg-news-filter ul {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		margin-inline: calc(-1 * var(--spvgg-gutter));
		padding: 2px var(--spvgg-gutter);
		scroll-padding-inline: var(--spvgg-gutter);
	}
	.spvgg-news-filter ul::-webkit-scrollbar { display: none; }
	.spvgg-news-filter li { flex: none; }
}

/* ---------- 404 „Abseits!“ (Muster title-band-404): Hero-Foto, mittig, mit Suche ---------- */
.spvgg-404 .spvgg-title-band__content > * { max-width: 760px; } /* bündig mit dem Logo, nur die Zeilen begrenzt */
.spvgg-404 .spvgg-title-band__title { font-size: clamp(2.75rem, 9vw, 6rem); }
.spvgg-404 .spvgg-title-band__content > p { font-size: 1.1rem; margin-top: .75rem; }
.spvgg-404__search { margin-top: 1.5rem !important; }

/* ---------- Seitenvorlage „Kontakt“ (Muster title-band-contact): Formular auf dem Hero-Foto ----------
   Felder weiß wie die Suche der Fehlerseite, Beschriftungen in Weiß/Versalien, Senden-Button gelb.
   Contact Form 7 schreibt Beschriftungen oft als eigenen Absatz über das Feld – beides wird gestaltet. */
.spvgg-contact .spvgg-title-band__content > *,
.spvgg-contact__content > * { max-width: 760px; }
.spvgg-contact__content { margin-top: 1.5rem !important; color: #e4e4e4; }
.spvgg-contact__content > p { font-size: 1.05rem; }
.spvgg-contact .wpcf7 { margin-top: 1.5rem; }
.spvgg-contact .wpcf7-form p { margin: 0 0 1rem; }
/* Beschriftung: eigener Absatz vor einem Feld – oder echtes <label> */
.spvgg-contact .wpcf7-form p:has(+ p > .wpcf7-form-control-wrap:not([data-name^="acceptance"])),
.spvgg-contact .wpcf7-form label:not(.wpcf7-list-item label) {
	display: block;
	margin-bottom: .4rem;
	color: #fff;
	font-family: var(--wp--preset--font-family--display);
	font-size: .78rem;
	font-weight: 700;
	font-stretch: 112%;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.spvgg-contact .wpcf7-form label:not(.wpcf7-list-item label) :is(input, textarea, select) { margin-top: .4rem; }
.spvgg-contact .wpcf7-form p:has(+ p > .wpcf7-form-control-wrap) { margin-bottom: .4rem; }
.spvgg-contact .wpcf7-form-control-wrap { display: block; }
.spvgg-contact .wpcf7-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], textarea, select) {
	box-sizing: border-box;
	width: 100%;
	padding: .8em 1em;
	border: 2px solid #fff;
	border-radius: 0;
	background: #fff;
	color: var(--spvgg-schwarz);
	font: inherit;
	font-size: 1rem;
	letter-spacing: 0;
	text-transform: none;
}
.spvgg-contact .wpcf7-form textarea { min-height: 10rem; resize: vertical; }
.spvgg-contact .wpcf7-form :is(input, textarea, select):focus { outline: 3px solid var(--spvgg-gelb); outline-offset: 0; }
/* Zustimmung (Checkbox) */
.spvgg-contact .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.spvgg-contact .wpcf7-acceptance label { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: #e4e4e4; cursor: pointer; }
.spvgg-contact .wpcf7-acceptance input[type="checkbox"] { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--spvgg-gelb); }
/* Senden – wie die Theme-Buttons, auf dem dunklen Bild hell statt schwarz beim Darüberfahren */
.spvgg-contact .wpcf7-submit {
	padding: .85em 1.8em;
	border: 0;
	border-radius: 0;
	background: var(--spvgg-gelb);
	color: var(--spvgg-schwarz);
	font-family: var(--wp--preset--font-family--display);
	font-size: .95rem;
	font-weight: 700;
	font-stretch: 112%;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease;
}
.spvgg-contact .wpcf7-submit:is(:hover, :focus-visible) { background: #fff; }
.spvgg-contact .wpcf7-submit:disabled { opacity: .6; cursor: default; }
.spvgg-contact .wpcf7-spinner { vertical-align: middle; }
.spvgg-contact .wpcf7-form small { font-size: .8rem; color: #bdbdbd; line-height: 1.5; }
/* Fehler und Rückmeldungen */
.spvgg-contact .wpcf7-not-valid { border-color: #ff7a7a !important; }
.spvgg-contact .wpcf7-not-valid-tip { margin-top: .4rem; color: #ffb3b3; font-size: .85rem; }
.spvgg-contact .wpcf7 form .wpcf7-response-output {
	margin: 1.25rem 0 0;
	padding: .9rem 1.1rem;
	border: 2px solid #ff7a7a;
	color: #fff;
	background: rgba(255, 122, 122, .12);
}
.spvgg-contact .wpcf7 form.sent .wpcf7-response-output { border-color: var(--spvgg-gelb); background: rgba(255, 211, 1, .12); }
.spvgg-contact .wpcf7 form.init .wpcf7-response-output,
.spvgg-contact .wpcf7 form.resetting .wpcf7-response-output,
.spvgg-contact .wpcf7 form.submitting .wpcf7-response-output { display: none; }

/* ---------- Links im Text auf dunklem Grund (Kontakt, 404, dunkle Cover, schwarze Bereiche) ----------
   Der Textmarker (schwarze Schrift) wäre dort nicht lesbar: stattdessen gelbe Schrift mit gelber
   Unterstreichung, beim Darüberfahren gelb hinterlegt. Steht absichtlich nach dem Textmarker-Stil. */
:is(.is-dark, .has-schwarz-background-color, .has-anthrazit-background-color) :is(.wp-block-post-content, .editor-styles-wrapper .is-root-container) a:not(.wp-element-button, .wp-block-button__link, .spvgg-consent__more, .ddownload-button, [class*="wpem"], [class*="chosen"]):not(:has(img)),
:is(.wp-block-post-content, .editor-styles-wrapper .is-root-container) :is(.is-dark, .has-schwarz-background-color, .has-anthrazit-background-color) a:not(.wp-element-button, .wp-block-button__link, .spvgg-consent__more, .ddownload-button, [class*="wpem"], [class*="chosen"]):not(:has(img)):not(.spvgg-dept-rows *) {
	color: var(--spvgg-gelb);
	background: none;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: .2em;
}
:is(.is-dark, .has-schwarz-background-color, .has-anthrazit-background-color) :is(.wp-block-post-content, .editor-styles-wrapper .is-root-container) a:not(.wp-element-button, .wp-block-button__link, .spvgg-consent__more, .ddownload-button, [class*="wpem"], [class*="chosen"]):not(:has(img)):hover,
:is(.wp-block-post-content, .editor-styles-wrapper .is-root-container) :is(.is-dark, .has-schwarz-background-color, .has-anthrazit-background-color) a:not(.wp-element-button, .wp-block-button__link, .spvgg-consent__more, .ddownload-button, [class*="wpem"], [class*="chosen"]):not(:has(img)):not(.spvgg-dept-rows *):hover {
	background: var(--spvgg-gelb);
	color: var(--spvgg-schwarz);
	text-decoration: none;
}
:is(.is-dark, .has-schwarz-background-color, .has-anthrazit-background-color) :is(.wp-block-post-content, .editor-styles-wrapper .is-root-container) a:focus-visible { outline-color: var(--spvgg-gelb); }

/* ---------- Vorlagen „Seiten“ und „Einzelne Beiträge“ (page.html, single.html: .spvgg-page) ----------
   Breitere Textspalte; der Titel steht bündig mit dem Text – auch auf Abteilungsseiten
   (Vorlage „Abteilung“ und Seiten mit Leiste). Mehr Luft zum Titel und zum Footer. */
.spvgg-page,
.page-template-page-abteilung .spvgg-dept-intro { --wp--style--global--content-size: 880px; }
.spvgg-page .spvgg-title-band .spvgg-title-band__content,
.page-template-page-abteilung .spvgg-title-band .spvgg-title-band__content {
	max-width: 880px !important;
	margin-inline: auto !important;
}
.spvgg-page__content {
	padding-top: clamp(2.5rem, 5vw, 4rem) !important;
	padding-bottom: clamp(3.5rem, 8vw, 6.5rem) !important;
}
/* Seiten, Beiträge, Abteilungs- und News-Seite: schmale gelbe Kante unter dem Bild */
.spvgg-page .spvgg-title-band,
.page-template-page-abteilung .spvgg-title-band,
.page-template-page-news .spvgg-title-band { border-bottom: 8px solid var(--spvgg-gelb); }
/* Beiträge: Titel deutlich kleiner, darf die ganze Textbreite nutzen; das Bild-Band entsprechend niedriger */
.spvgg-post .spvgg-title-band { min-height: 280px !important; }
.spvgg-post .spvgg-title-band__title {
	font-size: clamp(1.75rem, 3.8vw, 3.1rem) !important;
	line-height: 1.15;
	max-width: none;
}
/* WP Event Manager: Plugin-Regeln mit hoher Spezifität gezielt übersteuern */
.event_listings .wpem-event-listings .wpem-event-title .wpem-heading-text {
	display: block !important;
	-webkit-line-clamp: unset !important;
	overflow: visible !important;
	overflow-wrap: normal !important;
	font-size: 1.05rem !important;
	line-height: 1.2 !important;
}
.event_listings .wpem-event-date .wpem-event-date-type .wpem-from-date {
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
.event_listings .wpem-event-layout-action .wpem-event-layout-icon { background: transparent !important; color: var(--spvgg-schwarz) !important; }
.event_listings .wpem-event-layout-action .wpem-event-layout-icon:hover { background: var(--spvgg-schwarz) !important; color: #fff !important; }
.event_listings .wpem-event-layout-action .wpem-event-layout-icon.wpem-active-layout { background: var(--spvgg-schwarz) !important; color: var(--spvgg-gelb) !important; }
.event_listings .wpem-event-layout-action .wpem-event-layout-icon i { color: inherit !important; }
.event_listings .wpem-event-date .wpem-event-date-type,
.event_listings .wpem-event-date .wpem-event-date-type .wpem-from-date { position: static !important; inset: auto !important; transform: none !important; width: auto !important; height: auto !important; }
.event_listings .wpem-event-banner .wpem-event-date { height: auto !important; }
.event_listings .wpem-event-listings .event_listing { padding: 0 !important; }
.event_listings .wpem-event-layout-action .wpem-event-layout-icon { width: 40px !important; height: 40px !important; min-width: 40px; padding: 0 !important; flex: none !important; border-radius: 0 !important; }
.event_listings .event_filters .comiseo-daterangepicker-triggerbutton { width: 100% !important; text-align: left; }

/* Raster/Liste: eckige Schaltflächen mit eigenen, kantigen Symbolen (statt der runden Icon-Schrift) */
.event_listings .wpem-event-layout-icon i { display: none !important; }
.event_listings .wpem-event-layout-icon::before { content: ""; width: 16px; height: 16px; }
.event_listings .wpem-event-box-layout::before {
	background:
		linear-gradient(currentColor, currentColor) 0 0 / 7px 7px no-repeat,
		linear-gradient(currentColor, currentColor) 100% 0 / 7px 7px no-repeat,
		linear-gradient(currentColor, currentColor) 0 100% / 7px 7px no-repeat,
		linear-gradient(currentColor, currentColor) 100% 100% / 7px 7px no-repeat;
}
.event_listings .wpem-event-list-layout::before {
	height: 14px;
	background:
		linear-gradient(currentColor, currentColor) 0 0 / 100% 3px no-repeat,
		linear-gradient(currentColor, currentColor) 0 50% / 100% 3px no-repeat,
		linear-gradient(currentColor, currentColor) 0 100% / 100% 3px no-repeat;
}

/* Listenansicht wie ein Terminplan: Datum | Bild | Titel + Zeit · Ort | ▶ – Zeilen mit Trennlinie */
.event_listings .wpem-event-listings.wpem-event-listing-list-view { display: block; margin: 0; }
.event_listings .wpem-event-listing-list-view > .wpem-col { border-bottom: 1px solid #e2e2dd; }
.event_listings .wpem-event-listing-list-view a.wpem-event-action-url {
	display: grid !important;
	grid-template-columns: 5.5rem 9rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 0 1.25rem;
	padding: .9rem 1rem .9rem 0;
	background: transparent;
	box-shadow: none;
	transition: background-color .2s ease;
}
.event_listings .wpem-event-listing-list-view a.wpem-event-action-url:hover { background: var(--wp--preset--color--hellgrau, #F3F3F1); box-shadow: none; }
.event_listings .wpem-event-listing-list-view a.wpem-event-action-url::after { /* ▶ wie bei den Buttons */
	content: "";
	border-style: solid;
	border-width: .38em 0 .38em .5em;
	border-color: transparent transparent transparent var(--spvgg-schwarz);
	transition: transform .3s var(--spvgg-ease);
}
.event_listings .wpem-event-listing-list-view a.wpem-event-action-url:hover::after { transform: translateX(4px); }
/* Bild als kleines Vorschaubild (2. Spalte), Datum darauf ausgeblendet */
.event_listings .wpem-event-listing-list-view .wpem-event-banner { display: block !important; grid-column: 2; grid-row: 1; }
.event_listings .wpem-event-listing-list-view .wpem-event-banner-img { width: 100%; aspect-ratio: 16 / 10; }
.event_listings .wpem-event-listing-list-view .wpem-event-banner .wpem-event-date { display: none !important; }
/* Info-Bereich löst sich ins Raster auf: Datum in Spalte 1, Text in Spalte 3 */
.event_listings .wpem-event-listing-list-view .wpem-event-infomation { display: contents !important; }
.event_listings .wpem-event-listing-list-view .wpem-event-infomation > .wpem-event-date {
	grid-column: 1;
	grid-row: 1;
	align-self: stretch;
	display: grid !important;
	place-content: center;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: .8rem .4rem !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--spvgg-gelb) !important;
	box-shadow: none !important;
	text-align: center;
}
.event_listings .wpem-event-listing-list-view .wpem-to-date { display: none !important; }
.event_listings .wpem-event-listing-list-view .wpem-event-details { grid-column: 3; grid-row: 1; padding: 0 !important; }
.event_listings .wpem-event-listing-list-view .wpem-event-title { margin: 0 0 .4rem; }
.event_listings .wpem-event-listings.wpem-event-listing-list-view .wpem-event-title .wpem-heading-text { font-size: 1.2rem !important; }
.event_listings .wpem-event-listing-list-view .wpem-event-details { display: flex !important; flex-wrap: wrap; column-gap: 1.25rem; }
.event_listings .wpem-event-listing-list-view .wpem-event-title { flex: 0 0 100%; }
.event_listings .wpem-event-listing-list-view :is(.wpem-event-date-time, .wpem-event-location) { margin: 0; font-size: .9rem; }
@media (max-width: 700px) {
	.event_listings .wpem-event-listing-list-view a.wpem-event-action-url { grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: 0 .9rem; padding-right: .5rem; }
	.event_listings .wpem-event-listing-list-view .wpem-event-banner { display: none !important; }
	.event_listings .wpem-event-listing-list-view .wpem-event-details { grid-column: 2; }
	.event_listings .wpem-event-listings.wpem-event-listing-list-view .wpem-event-title .wpem-heading-text { font-size: 1rem !important; }
}

/* Datumsauswahl (jQuery-UI-Kalender des Plugins): eckig, schwarz/gelb, Vereinsschrift */
.comiseo-daterangepicker,
.comiseo-daterangepicker * { border-radius: 0 !important; font-family: var(--wp--preset--font-family--body) !important; }
.comiseo-daterangepicker {
	padding: 0 !important;
	border: 2px solid var(--spvgg-schwarz) !important;
	background: #fff !important;
	box-shadow: 0 10px 30px rgba(0,0,0,.18) !important;
	color: var(--spvgg-schwarz);
}
.comiseo-daterangepicker .ui-widget-content { border: 0 !important; background: #fff !important; color: var(--spvgg-schwarz) !important; }
.comiseo-daterangepicker .ui-datepicker { padding: .75rem !important; }
.comiseo-daterangepicker .ui-datepicker-header {
	padding: .55rem 0 !important;
	border: 0 !important;
	background: var(--spvgg-schwarz) !important;
	color: #fff !important;
}
.comiseo-daterangepicker .ui-datepicker-title {
	font-family: var(--wp--preset--font-family--display) !important;
	font-size: .85rem;
	font-weight: 700;
	font-stretch: 112%;
	letter-spacing: .03em;
	text-transform: uppercase;
	line-height: 1.6 !important;
}
/* Vor/Zurück: weiße Dreiecke statt runder Symbole */
.comiseo-daterangepicker .ui-datepicker-header { position: relative !important; }
.comiseo-daterangepicker :is(.ui-datepicker-prev, .ui-datepicker-next),
.comiseo-daterangepicker :is(.ui-datepicker-prev, .ui-datepicker-next):is(:hover, .ui-state-hover) {
	top: 50% !important;
	width: 28px !important;
	height: 28px !important;
	margin: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	text-decoration: none !important;
	transform: translateY(-50%) !important;
	cursor: pointer;
}
.comiseo-daterangepicker .ui-datepicker-prev { left: .3rem !important; }
.comiseo-daterangepicker .ui-datepicker-next { right: .3rem !important; }
.comiseo-daterangepicker :is(.ui-datepicker-prev, .ui-datepicker-next) .ui-icon { display: none !important; }
.comiseo-daterangepicker :is(.ui-datepicker-prev, .ui-datepicker-next)::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	border-style: solid;
	transform: translate(-50%, -50%);
}
.comiseo-daterangepicker .ui-datepicker-prev::before { border-width: .35em .45em .35em 0; border-color: transparent var(--spvgg-gelb) transparent transparent; }
.comiseo-daterangepicker .ui-datepicker-next::before { border-width: .35em 0 .35em .45em; border-color: transparent transparent transparent var(--spvgg-gelb); }
.comiseo-daterangepicker .ui-datepicker th {
	padding: .6rem 0 .3rem !important;
	font-size: .68rem !important;
	font-weight: 700 !important;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--grau, #5E5E5E);
}
.comiseo-daterangepicker .ui-datepicker td { padding: 1px !important; }
.comiseo-daterangepicker .ui-datepicker td :is(a, span) {
	padding: .45em 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--spvgg-schwarz) !important;
	font-size: .85rem;
	font-weight: 400 !important;
	text-align: center !important;
}
.comiseo-daterangepicker .ui-datepicker td a:hover { background: var(--wp--preset--color--hellgrau, #F3F3F1) !important; }
.comiseo-daterangepicker .ui-datepicker td.ui-datepicker-today a { box-shadow: inset 0 0 0 2px var(--spvgg-gelb); font-weight: 700 !important; }
/* Gewählter Zeitraum gelb; „heute“ nur gelb umrandet (jQuery UI markiert heute ebenfalls mit ui-state-highlight) */
.comiseo-daterangepicker .ui-datepicker td.ui-state-highlight a { background: var(--spvgg-gelb) !important; color: var(--spvgg-schwarz) !important; font-weight: 700 !important; }
.comiseo-daterangepicker .ui-datepicker td.ui-datepicker-other-month span { color: #c9c9c4 !important; }
/* Schnellauswahl rechts (Heute, Diese Woche …) */
.comiseo-daterangepicker .comiseo-daterangepicker-presets { border-left: 1px solid #e2e2dd !important; padding: .75rem .5rem !important; }
.comiseo-daterangepicker .comiseo-daterangepicker-presets .ui-menu { border: 0 !important; background: transparent !important; }
.comiseo-daterangepicker .comiseo-daterangepicker-presets .ui-menu-item-wrapper,
.comiseo-daterangepicker .comiseo-daterangepicker-presets .ui-menu-item > * {
	margin: 0 !important;
	padding: .45rem .75rem !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--spvgg-schwarz) !important;
	font-size: .85rem;
	cursor: pointer;
}
.comiseo-daterangepicker .comiseo-daterangepicker-presets .ui-state-active,
.comiseo-daterangepicker .comiseo-daterangepicker-presets .ui-menu-item-wrapper:hover { background: var(--spvgg-gelb) !important; font-weight: 700; }
/* Buttons unten: „Übernehmen“ gelb, die anderen mit schwarzem Rahmen */
.comiseo-daterangepicker .comiseo-daterangepicker-buttonpanel { padding: 0 .75rem .75rem !important; display: flex; gap: .5rem; justify-content: flex-end; }
.comiseo-daterangepicker .comiseo-daterangepicker-buttonpanel .ui-button {
	margin: 0 !important;
	padding: .6em 1.1em !important;
	border: 2px solid var(--spvgg-schwarz) !important;
	background: #fff !important;
	color: var(--spvgg-schwarz) !important;
	font-family: var(--wp--preset--font-family--display) !important;
	font-size: .75rem !important;
	font-weight: 700 !important;
	font-stretch: 112%;
	text-transform: uppercase;
	box-shadow: none !important;
}
.comiseo-daterangepicker .comiseo-daterangepicker-buttonpanel .ui-button:first-child { background: var(--spvgg-gelb) !important; border-color: var(--spvgg-gelb) !important; }
.comiseo-daterangepicker .comiseo-daterangepicker-buttonpanel .ui-button:hover { background: var(--spvgg-schwarz) !important; border-color: var(--spvgg-schwarz) !important; color: var(--spvgg-gelb) !important; }
/* Auslöser im Filter: Pfeil als Dreieck */
.event_listings .event_filters .comiseo-daterangepicker-triggerbutton .ui-icon { display: none !important; }
.event_listings .event_filters .comiseo-daterangepicker-triggerbutton { position: relative; padding-right: 2.5rem !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event_listings .event_filters .comiseo-daterangepicker-triggerbutton::after {
	content: "";
	position: absolute;
	right: 1rem;
	top: 50%;
	margin-top: -.2em;
	border-style: solid;
	border-width: .42em .32em 0 .32em;
	border-color: var(--spvgg-schwarz) transparent transparent transparent;
}
.event_listings .wpem-event-listing-list-view .wpem-event-infomation > .wpem-event-date { justify-self: stretch !important; width: auto !important; max-width: none !important; min-width: 0 !important; float: none !important; position: static !important; inset: auto !important; }
.event_listings .wpem-event-listing-list-view a.wpem-event-action-url::after { display: block !important; grid-column: 4; grid-row: 1; width: 0; height: 0; }
@media (max-width: 700px) {
	.event_listings .wpem-event-listing-list-view a.wpem-event-action-url::after { grid-column: 3; }
}
.event_listings .wpem-event-listing-list-view a.wpem-event-action-url { padding: 0 1rem 0 0 !important; }
.event_listings .wpem-event-listing-list-view .wpem-event-details { padding: 1rem 0 !important; }
.event_listings .wpem-event-listing-list-view .wpem-event-banner { padding: .8rem 0; }

/* Auswahlfelder (Kategorie, Art): gleiches schwarzes Dreieck wie beim Datumsbereich statt des grauen Plugin-Symbols */
.event_listings .event_filters .chosen-single div { position: static; display: flex; align-items: center; justify-content: flex-end; width: auto; height: auto; margin-left: .5rem; }
.event_listings .event_filters .chosen-single div b {
	display: block;
	width: 0 !important;
	height: 0 !important;
	background: none !important;
	border-style: solid;
	border-width: .42em .32em 0 .32em;
	border-color: var(--spvgg-schwarz) transparent transparent transparent;
}
.event_listings .event_filters .chosen-with-drop .chosen-single div b { transform: rotate(180deg); }

/* Buttons von WP Event Manager (z. B. „Für Veranstaltung anmelden“) wie die Theme-Buttons: gelb, eckig, Dreieck */
:is(button, input[type="submit"], input[type="button"], a).wpem-theme-button,
.wpem-single-event-page :is(.wpem-register-event-form, .wpem-form-wrapper) :is(button[type="submit"], input[type="submit"]) {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: .7em;
	padding: .8em 1.4em !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: var(--spvgg-gelb) !important;
	color: var(--spvgg-schwarz) !important;
	font-family: var(--wp--preset--font-family--display) !important;
	font-size: .9rem !important;
	font-weight: 700 !important;
	font-stretch: 112%;
	letter-spacing: 0 !important;
	text-transform: uppercase;
	text-decoration: none !important;
	line-height: 1.3 !important;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
:is(button, a).wpem-theme-button::after {
	content: "";
	flex: none;
	border-style: solid;
	border-width: .32em 0 .32em .42em;
	border-color: transparent transparent transparent currentColor;
	transition: transform .3s var(--spvgg-ease);
}
:is(button, input[type="submit"], input[type="button"], a).wpem-theme-button:is(:hover, :focus-visible),
.wpem-single-event-page :is(.wpem-register-event-form, .wpem-form-wrapper) :is(button[type="submit"], input[type="submit"]):is(:hover, :focus-visible) {
	background: var(--spvgg-schwarz) !important;
	color: var(--spvgg-gelb) !important;
}
:is(button, a).wpem-theme-button:hover::after { transform: translateX(4px); }
.wpem-registration-event-button .wpem-theme-button { width: auto !important; font-size: .85rem !important; padding: .75em 1.25em !important; } /* wie die übrigen Buttons: so breit wie der Text */
.single_event_listing .registration_details { margin-top: 1rem; font-size: .95rem; }
.single_event_listing .registration_details p { margin: 0 0 .5rem; }

/* ---------- Detailseite einer Veranstaltung ----------
   Titel steht schon im Titelbild → keine Karte, kein zweiter Titel, kein Platzhalterbild.
   Rechts eine Infobox wie die Datumsblöcke: hellgrau mit gelber Kante. */
.single_event_listing .wpem-single-event-wrapper { padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
.single_event_listing .wpem-single-event-header-top:has(img[src*="wpem-placeholder"]) { display: none; }
.single_event_listing .wpem-event-single-image-wrapper,
.single_event_listing .wpem-event-single-image,
.single_event_listing .wpem-event-single-image img { border-radius: 0 !important; }
.single_event_listing .wpem-single-event-header-top { margin-bottom: var(--wp--preset--spacing--50); }
.single_event_listing .wpem-single-event-body { padding: 0 !important; }
.single_event_listing .wpem-single-event-short-info .wpem-event-title { display: none; }
.single_event_listing .wpem-event-organizer-name:not(:has(*)) { display: none; } /* nur „von“ ohne Veranstalter */
.single_event_listing .wpem-single-event-short-info { margin: 0 0 1rem; padding: 0 !important; border: 0; }
.single_event_listing .wpem-single-event-short-info:not(:has(.wpem-event-organizer-name *)) { display: none; }
.single_event_listing .wpem-single-event-body-content { padding: 0 !important; margin: 0 !important; }
.single_event_listing .wpem-single-event-body-content > :first-child { margin-top: 0; }
.single_event_listing .wpem-single-event-body-sidebar {
	padding: 1.25rem 1.25rem 1.5rem !important;
	border-left: 6px solid var(--spvgg-gelb);
	background: var(--wp--preset--color--hellgrau, #F3F3F1);
}
.single_event_listing .wpem-single-event-body-sidebar .wpem-heading-text {
	margin: 1.4rem 0 .35rem !important;
	padding: 0 !important;
	font-family: var(--wp--preset--font-family--display);
	font-size: .78rem !important;
	font-weight: 700;
	font-stretch: 112%;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #6b6b66;
}
.single_event_listing .wpem-event-date-time { font-weight: 600; line-height: 1.5; }
.single_event_listing .wpem-registration-event-button { margin-bottom: .25rem; }
/* Teilen: eckige schwarze Kacheln, Symbol gelb; beim Hover gelb mit schwarzem Symbol */
.single_event_listing .wpem-event-share-lists { display: flex !important; flex-wrap: wrap; gap: .4rem; }
.single_event_listing .wpem-social-icon { width: auto !important; margin: 0 !important; }
.single_event_listing .wpem-social-icon a {
	width: 40px !important;
	height: 40px !important;
	border-radius: 0 !important;
	background: var(--spvgg-schwarz) !important;
	box-shadow: none !important;
	transition: background-color .2s ease;
}
.single_event_listing .wpem-social-icon a::before { background-color: var(--spvgg-gelb) !important; width: 40px !important; height: 40px !important; transition: background-color .2s ease; }
.single_event_listing .wpem-social-icon a:is(:hover, :focus-visible) { background: var(--spvgg-gelb) !important; }
.single_event_listing .wpem-social-icon a:is(:hover, :focus-visible)::before { background-color: var(--spvgg-schwarz) !important; }
@media (min-width: 768px) {
	.single_event_listing .wpem-single-event-body > .wpem-row { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: var(--wp--preset--spacing--50); margin: 0; }
	.single_event_listing .wpem-single-event-left-content { flex: 1 1 auto; max-width: none; width: auto; padding: 0; border: 0 !important; }
	.single_event_listing .wpem-single-event-right-content { flex: 0 0 20rem; max-width: 20rem; padding: 0; }
}
@media (max-width: 767px) {
	.single_event_listing .wpem-single-event-right-content { margin-top: var(--wp--preset--spacing--40); }
}

/* Kategorie und Art: normaler Link statt grauem Plugin-Kästchen */
.single_event_listing :is(.wpem-event-category, .wpem-event-type) { display: inline; padding: 0 !important; }
.single_event_listing :is(.wpem-event-category, .wpem-event-type) + :is(.wpem-event-category, .wpem-event-type)::before { content: ", "; }
.single_event_listing :is(.wpem-event-category-text, .wpem-event-type-text) {
	display: inline !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	color: inherit !important;
	font: inherit !important;
}
