/*
Theme Name: TV Bergheim
Theme URI: https://turnverein-bergheim.de/
Author: Turnverein 1909 e.V. Bergheim/Sieg
Description: Block-Theme (Full Site Editing) des Turnvereins 1909 e.V. Bergheim/Sieg in den Vereinsfarben, mit neuer Startseite, Sportangebot-Seite, Block-Mustern, Sport-Abzeichen und automatischen Saison-Overlays (alle ohne Animation). Version 2 vereint das frühere Eltern- und Kind-Theme (Refresh) in einem Theme.
Version: 3.0.26
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tvb-bergheim
Tags: block-patterns, full-site-editing, custom-colors, wide-blocks, sports
*/

/* ---------- Grundlagen ---------- */
:root {
	--tvb-radius: 2px;
	--tvb-shadow: none;
}
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }
::selection { background: var(--wp--preset--color--tvb-accent); color: var(--wp--preset--color--tvb-green-dark); }

/* ---------- Kopfbereich ---------- */
.tvb-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(160%) blur(8px);
	box-shadow: 0 1px 0 var(--wp--preset--color--tvb-line);
}
.admin-bar .tvb-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tvb-header { top: 0; } }
.tvb-topbar { font-size: .82rem; }
.tvb-topbar a { color: inherit; text-decoration: none; }
.tvb-topbar a:hover { text-decoration: underline; color: #fff; }
.tvb-logo img { width: clamp(220px, 34vw, 430px); display: block; }
.tvb-header .wp-block-navigation a { text-decoration: none; }
.tvb-header .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--tvb-red); }
.tvb-header .wp-block-navigation__submenu-container {
	border: 0 !important; border-radius: 10px; box-shadow: var(--tvb-shadow);
	padding: .4rem 0; min-width: 240px !important;
	border-top: 4px solid var(--wp--preset--color--tvb-accent) !important;
}
.tvb-header .wp-block-navigation__submenu-container a { text-transform: none; letter-spacing: 0; font-weight: 600; padding: .45rem 1.1rem !important; }
.tvb-nav-cta .wp-block-navigation-item__content {
	background: var(--wp--preset--color--tvb-red); color: #fff !important;
	border-radius: 999px; padding: .55em 1.2em !important;
}
.tvb-nav-cta .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--tvb-green); }

/* ---------- Hero / Seitenkopf ---------- */
.tvb-page-hero { position: relative; overflow: hidden; }
.tvb-page-hero .wp-block-cover__inner-container { max-width: var(--wp--style--global--wide-size); }
.tvb-page-hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); hyphens: auto; }
.tvb-page-hero::after,
.tvb-hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
	background: linear-gradient(90deg, var(--wp--preset--color--tvb-accent) 0 70%, var(--wp--preset--color--tvb-red) 70% 100%);
}
.tvb-kicker { text-transform: uppercase; letter-spacing: .18em; font-weight: 700; font-size: .8rem; }
.tvb-hero { position: relative; overflow: hidden; }
.tvb-hero h1 { color: #fff; }
.tvb-hero .tvb-hero-accent { color: var(--wp--preset--color--tvb-accent); }
.tvb-hero .tvb-cross {
	position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
	width: min(42vw, 460px); opacity: .10; pointer-events: none; filter: brightness(0) invert(1);
}

/* ---------- Karten, Boxen ---------- */
.tvb-card, .tvb-box {
	background: #fff; border-radius: var(--tvb-radius);
	box-shadow: var(--tvb-shadow);
	border: 1px solid var(--wp--preset--color--tvb-line);
	padding: clamp(1.1rem, 2.5vw, 1.75rem);
	height: 100%;
}
.tvb-box.is-mint { background: var(--wp--preset--color--tvb-mint); border-color: transparent; box-shadow: none; }
.tvb-card h3, .tvb-box h3 { margin-top: 0; }
.tvb-card .wp-block-post-title a { text-decoration: none; }
.tvb-card .wp-block-post-title a:hover { color: var(--wp--preset--color--tvb-red); }
.tvb-card .wp-block-post-featured-image { margin: calc(-1 * clamp(1.1rem, 2.5vw, 1.75rem)) calc(-1 * clamp(1.1rem, 2.5vw, 1.75rem)) 1rem; }
.tvb-card .wp-block-post-featured-image img { border-radius: var(--tvb-radius) var(--tvb-radius) 0 0; aspect-ratio: 16/9; object-fit: cover; }

/* Übungsleitung */
.tvb-person { text-align: center; }
.tvb-person img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 150px; margin: 0 auto; border: 4px solid var(--wp--preset--color--tvb-mint); }
.tvb-person .tvb-name { font-weight: 800; color: var(--wp--preset--color--tvb-green); margin-bottom: 0; font-size: 1.1rem; }
.tvb-person .tvb-role { color: var(--wp--preset--color--tvb-muted); margin-top: .2rem; font-size: .92rem; }
.tvb-initial {
	width: 96px; height: 96px; border-radius: 50%; margin: 0 auto .6rem; display: grid; place-items: center;
	background: var(--wp--preset--color--tvb-mint); color: var(--wp--preset--color--tvb-green);
	font-weight: 800; font-size: 1.6rem;
}

/* ---------- Tabellen (Trainingszeiten) ---------- */
.wp-block-table { overflow-x: auto; }
.wp-block-table table { border-collapse: separate; border-spacing: 0; width: 100%; border-radius: var(--tvb-radius); overflow: hidden; border: 1px solid var(--wp--preset--color--tvb-line); }
.wp-block-table thead { border: 0; }
.wp-block-table th { background: var(--wp--preset--color--tvb-green); color: #fff; text-align: left; font-weight: 700; border: 0 !important; padding: .8rem 1rem; white-space: nowrap; }
.wp-block-table td { border: 0 !important; border-top: 1px solid var(--wp--preset--color--tvb-line) !important; padding: .75rem 1rem; vertical-align: top; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--wp--preset--color--tvb-light); }
.wp-block-table.is-style-stripes { border-bottom: 0; }
.wp-block-table figcaption { text-align: left; }

/* Termine */
.tvb-dates { list-style: none; padding: 0; margin: 0; }
.tvb-dates li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--wp--preset--color--tvb-line); }
.tvb-dates li:last-child { border-bottom: 0; }
.tvb-dates strong { color: var(--wp--preset--color--tvb-green); }

/* Preis-/Beitragskarten */
.tvb-price { text-align: center; }
.tvb-price .tvb-amount { font-size: 2.4rem; font-weight: 800; color: var(--wp--preset--color--tvb-green); line-height: 1; margin: .3rem 0; }

/* ---------- Mach-mit-Band ---------- */
.tvb-cta { position: relative; overflow: hidden; }
.tvb-cta h2 { color: #fff; }

/* ---------- Fußbereich ---------- */
.tvb-footer a { color: #fff; text-decoration: none; }
.tvb-footer a:hover { color: var(--wp--preset--color--tvb-accent); text-decoration: underline; }
.tvb-footer h3 { color: var(--wp--preset--color--tvb-accent); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; }
.tvb-footer .tvb-logo-white img { width: min(100%, 340px); }
.tvb-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); }

/* ---------- Beiträge ---------- */
.wp-block-post-content > * + h2 { margin-top: 2.5rem; }
.tvb-meta a { text-decoration: none; }
.wp-block-query-pagination a { text-decoration: none; font-weight: 700; }

@media (max-width: 781px) {
	.tvb-hero .tvb-cross { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* Buttons auf dunklem Grund (Hero, Aufruf-Band) */
.tvb-hero .tvb-kicker { color: var(--wp--preset--color--tvb-accent); }
.tvb-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: #fff; color: var(--wp--preset--color--tvb-green); }
.tvb-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: var(--wp--preset--color--tvb-accent); color: var(--wp--preset--color--tvb-green-dark); }
.tvb-hero .is-style-outline .wp-block-button__link { border: 2px solid #fff; color: #fff; background: transparent; }
.tvb-hero .is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--tvb-green); }
.wp-block-button.is-style-outline .wp-block-button__link { border-width: 2px; }
.tvb-price .tvb-amount small { font-size: .9rem; font-weight: 600; color: var(--wp--preset--color--tvb-muted); }

/* ===== Ab hier: ehemaliges Kind-Theme „Refresh“ (in Version 2.0.0 integriert) ===== */

/* =====================================================================
   0. Hilfsklassen für die neuen Abschnitte
   ===================================================================== */
.tvb-wrap {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-inline: auto;
}
.tvb-section {
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
	padding-inline: clamp(1rem, 4vw, 2rem);
}
.tvb-section.is-mint { background: var(--wp--preset--color--tvb-mint); }
.tvb-section.is-light { background: var(--wp--preset--color--tvb-light); }

/* Keine weißen Streifen zwischen den Vollbreite-Abschnitten der Startseite */
.tvb-front > * + * { margin-block-start: 0 !important; }

.tvb-section-head { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.tvb-section-head > * { margin-block: 0; }
.tvb-section-head > * + * { margin-block-start: .5rem; }
.tvb-section-head h2 { text-wrap: balance; }
.tvb-section-head p:not(.tvb-kicker) { color: var(--wp--preset--color--tvb-muted); max-width: 46rem; }
.tvb-section-foot { margin-top: clamp(1.25rem, 3vw, 2rem); }

/* Kicker (kleine Überschrift über Headlines) – auf hellem Grund rot/grün */
.tvb-kicker { color: var(--wp--preset--color--tvb-red); margin: 0; }
.is-mint .tvb-kicker { color: var(--wp--preset--color--tvb-green); }

/* =====================================================================
   1. Barrierefreiheit: sichtbarer Tastatur-Fokus
   ===================================================================== */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible,
.wp-block-button__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--tvb-red);
	outline-offset: 3px;
	border-radius: 4px;
}
.tvb-hero :focus-visible,
.tvb-join :focus-visible,
.tvb-footer :focus-visible,
.tvb-tile :focus-visible {
	outline-color: #fff;
}

/* =====================================================================
   2. Typografie
   ===================================================================== */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.wp-block-post-content p:not(:is(.tvb-hero, .tvb-section, .tvb-join, .tvb-cta, .tvb-saisonband, .tvb-xmas, .tvb-notice, .tvb-karte-sec) *),
.wp-block-post-content li:not(:is(.tvb-hero, .tvb-section, .tvb-join, .tvb-cta, .tvb-saisonband, .tvb-xmas, .tvb-notice, .tvb-karte-sec) *) { max-width: 70ch; }

/* =====================================================================
   3. Kopfbereich: kompakter, mobil entlastet
   ===================================================================== */
.tvb-logo img { width: clamp(170px, 22vw, 300px); }
/* Das Logo schrumpft nicht beim Scrollen – die Schrift soll lesbar bleiben */

/* =====================================================================
   4. Buttons
   ===================================================================== */
.wp-block-button__link { transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
/* Outline-Buttons nur auf hellem Grund grün – im Hero und im Mitmach-Band bleiben sie weiß */
.tvb-section .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--tvb-green);
	border-color: var(--wp--preset--color--tvb-green);
}
.tvb-section .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--tvb-green);
	color: #fff;
}
.tvb-hero-v2 .wp-block-button.is-style-outline .wp-block-button__link,
.tvb-join .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 2px solid #fff;
}
.tvb-hero-v2 .wp-block-button.is-style-outline .wp-block-button__link:hover,
.tvb-join .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: #fff;
	color: var(--wp--preset--color--tvb-green);
}

/* =====================================================================
   5. Hinweis-Banner (z. B. Trainingsausfall)
   ===================================================================== */
.tvb-notice {
	background: #FDECEE;
	border-bottom: 1px solid #F6C6CC;
	padding-block: .75rem;
	padding-inline: clamp(1rem, 4vw, 2rem);
}
.tvb-notice .tvb-wrap { border-left: 5px solid var(--wp--preset--color--tvb-red); padding-left: 1rem; }
.tvb-notice p { margin: 0; font-size: .98rem; }
.tvb-notice a { font-weight: 700; }


/* =====================================================================
   8. Zahlen
   ===================================================================== */
.tvb-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem 1rem;
	text-align: center;
}
.tvb-stats > * { margin: 0 !important; }
.tvb-stat > * { margin: 0; }
.tvb-stat__num {
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	font-weight: 800;
	line-height: 1;
	color: var(--wp--preset--color--tvb-green);
	font-family: var(--wp--preset--font-family--heading);
}
.tvb-stat__label {
	margin-top: .5rem !important;
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--tvb-muted);
}
@media (min-width: 782px) {
	.tvb-stat + .tvb-stat { border-left: 1px solid var(--wp--preset--color--tvb-line); }
}
@media (max-width: 781px) {
	.tvb-stats { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   9. Termine + „Neu“-Karte
   ===================================================================== */
.tvb-split {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: start;
}
.tvb-split > * { margin: 0 !important; }
@media (max-width: 781px) { .tvb-split { grid-template-columns: 1fr; } }

.tvb-dates-list > * { margin: 0 !important; }
.tvb-date {
	display: flex;
	gap: 1rem;
	align-items: center;
	padding-block: 1rem;
	border-bottom: 1px solid var(--wp--preset--color--tvb-line);
}
.tvb-date:last-child { border-bottom: 0; }
.tvb-date > * { margin: 0 !important; }
.tvb-date__badge {
	flex: 0 0 4.5rem;
	text-align: center;
	background: var(--wp--preset--color--tvb-green);
	border-radius: 12px;
	padding: .55rem .25rem .5rem;
	line-height: 1;
}
.tvb-date__badge p { color: #fff; margin: 0; }
.tvb-date__day { font-size: 1.75rem; font-weight: 800; }
.tvb-date__month { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-top: .25rem !important; }
.tvb-date__body > * { margin: 0; }
.tvb-date__title { font-weight: 800; color: var(--wp--preset--color--tvb-green); }
.tvb-date__meta { color: var(--wp--preset--color--tvb-muted); font-size: .95rem; }

.tvb-highlight {
	background: var(--wp--preset--color--tvb-mint);
	border-radius: var(--tvb-radius, 14px);
	padding: clamp(1.25rem, 3vw, 2rem);
	border-top: 6px solid var(--wp--preset--color--tvb-accent);
}
.tvb-highlight > * { margin-block: 0; }
.tvb-highlight > * + * { margin-block-start: .85rem; }
.tvb-pill {
	display: inline-block;
	background: var(--wp--preset--color--tvb-red);
	color: #fff;
	font-weight: 800;
	font-size: .75rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: .25em .9em;
}

/* =====================================================================
   10. Meldungen als Karten
   ===================================================================== */
.tvb-news .wp-block-post-template { list-style: none; padding: 0; margin: 0; }
.tvb-news .tvb-card { display: flex; flex-direction: column; gap: .6rem; }
.tvb-news .tvb-card > * { margin: 0; }
.tvb-news .wp-block-post-date {
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--tvb-red);
}
.tvb-news .wp-block-post-title { font-size: 1.15rem; line-height: 1.3; }
.tvb-news .wp-block-post-title a {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.tvb-news .wp-block-post-excerpt { color: var(--wp--preset--color--tvb-muted); font-size: .95rem; }
.tvb-news .wp-block-post-excerpt__excerpt { margin: 0; }
.tvb-news .wp-block-post-excerpt__more-link {
	display: inline-block;
	margin-top: .6rem;
	font-weight: 700;
	text-decoration: none;
}
.tvb-news .wp-block-post-excerpt__more-link::after { content: " →"; }

/* =====================================================================
   12. Mitmach-Band
   ===================================================================== */
.tvb-join {
	background: var(--wp--preset--gradient--tvb-hero);
	padding-block: clamp(3rem, 7vw, 5rem);
	padding-inline: clamp(1rem, 4vw, 2rem);
	text-align: center;
	position: relative;
	overflow: hidden;
}
.tvb-join::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
	background: linear-gradient(90deg, var(--wp--preset--color--tvb-accent) 0 70%, var(--wp--preset--color--tvb-red) 70% 100%);
}
.tvb-join .tvb-wrap > * { margin-block: 0; }
.tvb-join .tvb-wrap > * + * { margin-block-start: 1rem; }
.tvb-join h2, .tvb-join p { color: #fff; }
.tvb-join p { max-width: 40rem; margin-inline: auto; opacity: .95; }
.tvb-join .wp-block-buttons { justify-content: center; margin-top: 1.5rem; }
.tvb-join .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: #fff; color: var(--wp--preset--color--tvb-green); }
.tvb-join .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: var(--wp--preset--color--tvb-accent); color: var(--wp--preset--color--tvb-green-dark); }

/* =====================================================================
   14. Kopfbereich mit Vereinslogo und gut sichtbarem Mobil-Menü
   ===================================================================== */
/* Der Kopfbereich bleibt oben haften (der Teil-Wrapper ist das haftende Element) */
header.wp-block-template-part:has(.tvb-site-header) {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar header.wp-block-template-part:has(.tvb-site-header) { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part:has(.tvb-site-header) { top: 46px; } }

.tvb-site-header {
	background: #fff;
	box-shadow: 0 1px 0 var(--wp--preset--color--tvb-line);
}
/* WICHTIG: Kein backdrop-filter/transform/filter an Vorfahren des Menüs – sonst wird das Vollbild-Menü
   (position: fixed) im Kopfbereich „eingesperrt“ und erscheint nur als schmaler Streifen. */
.tvb-header,
.tvb-site-header,
header.wp-block-template-part:has(.tvb-site-header) {
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	filter: none !important;
	transform: none !important;
}
.tvb-header { background: #fff !important; }
.tvb-site-header > * { margin: 0; }
.tvb-topbar {
	background: var(--wp--preset--color--tvb-green-dark);
	color: #fff;
	font-size: .82rem;
	padding: .4rem clamp(1rem, 4vw, 2rem);
}
.tvb-topbar a { color: #fff; text-decoration: none; }
.tvb-topbar a:hover { text-decoration: underline; color: var(--wp--preset--color--tvb-accent); }
.tvb-topbar__in { display: flex; justify-content: space-between; gap: .25rem 1.5rem; flex-wrap: wrap; }

.tvb-headbar { padding: .6rem clamp(1rem, 4vw, 2rem); }
.tvb-headbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: nowrap; }
.tvb-headbar__in > * { margin: 0 !important; }
.tvb-site-header .tvb-logo { flex: 0 1 auto; min-width: 0; }
.tvb-site-header .tvb-logo a { display: block; line-height: 0; }
.tvb-site-header .tvb-logo img { width: clamp(190px, calc(100vw - 168px), 460px); height: auto; }
@media (min-width: 1200px) { .tvb-site-header .tvb-logo img { width: clamp(340px, 31vw, 440px); } }

/* ---- Menü: Desktop (ab 1200 px) ---- */
.tvb-site-header .wp-block-navigation {
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
	font-size: .9rem;
	flex-shrink: 0;
}
.tvb-site-header .wp-block-navigation a { text-decoration: none; color: var(--wp--preset--color--tvb-green); }
.tvb-site-header .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--tvb-red); }
.tvb-site-header .wp-block-navigation__submenu-icon svg { stroke: currentColor; }
.tvb-site-header .wp-block-navigation__submenu-container {
	border: 0;
	border-top: 4px solid var(--wp--preset--color--tvb-accent);
	border-radius: 10px;
	box-shadow: var(--tvb-shadow);
	padding: .4rem 0;
	min-width: 240px;
	background: #fff;
}
.tvb-site-header .wp-block-navigation__submenu-container a {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 600;
	font-size: 1rem;
	padding: .45rem 1.1rem;
}
.tvb-site-header .tvb-nav-cta .wp-block-navigation-item__content {
	background: var(--wp--preset--color--tvb-red);
	color: #fff;
	border-radius: 999px;
	padding: .55em 1.2em;
}
.tvb-site-header .tvb-nav-cta .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--tvb-green); color: #fff; }
/* Telefon/Mail erscheinen nur im aufgeklappten Mobil-Menü */
.tvb-site-header .tvb-nav-contact { display: none; }

@media (min-width: 1200px) {
	/* lange Untermenüs (Sportangebot) in zwei Spalten */
	@supports selector(:has(*)) {
		.tvb-site-header .wp-block-navigation__submenu-container:has(> li:nth-child(9)) {
			display: grid;
			grid-template-columns: repeat(2, minmax(220px, 1fr));
		}
	}
}

/* ---- Menü: Handy und Tablet (bis 1199 px) – Hamburger statt Menüleiste ---- */
@media (max-width: 1199px) {
	.tvb-topbar { display: none; }
	.tvb-site-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.tvb-site-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
}
@media (min-width: 1200px) {
	.tvb-site-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: none; }
}
.tvb-site-header .wp-block-navigation__responsive-container-close { display: flex; }

/* Auslöser-Knopf: Symbol + Wort „Menü“, deutlich als Knopf erkennbar */
.tvb-site-header .wp-block-navigation__responsive-container-open,
.tvb-site-header .wp-block-navigation__responsive-container-close {
	align-items: center;
	gap: .55rem;
	min-height: 46px;
	padding: .4rem 1rem .4rem .85rem;
	border: 2px solid var(--wp--preset--color--tvb-green);
	border-radius: 999px;
	background: #fff;
	color: var(--wp--preset--color--tvb-green);
	font-weight: 800 !important;
	font-size: .9rem !important;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1;
	white-space: nowrap;
	flex-direction: row;
}
.tvb-site-header .wp-block-navigation__responsive-container-open::after { content: "Menü"; }
.tvb-site-header .wp-block-navigation__responsive-container-close::after { content: "Schließen"; }
.tvb-site-header .wp-block-navigation__responsive-container-open:hover,
.tvb-site-header .wp-block-navigation__responsive-container-close:hover {
	background: var(--wp--preset--color--tvb-green);
	color: #fff;
}
.tvb-site-header .wp-block-navigation__responsive-container-open svg,
.tvb-site-header .wp-block-navigation__responsive-container-close svg { width: 26px; height: 26px; }

/* ---- Geöffnetes Menü (Vollbild) ---- */
.tvb-site-header .wp-block-navigation__responsive-container.is-menu-open {
	background: #fff;
	color: var(--wp--preset--color--tvb-text);
	padding: 0;
}
.tvb-site-header .is-menu-open .wp-block-navigation__responsive-dialog {
	box-sizing: border-box;
	width: 100%;
	max-width: 620px;
	margin-inline: auto;
	padding: 1rem clamp(1rem, 5vw, 1.5rem) 2.5rem;
}
.tvb-site-header .is-menu-open .wp-block-navigation__responsive-dialog::before {
	content: "Menü";
	display: block;
	min-height: 46px;
	line-height: 46px;
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--wp--preset--color--tvb-green);
	letter-spacing: -.01em;
}
.tvb-site-header .is-menu-open .wp-block-navigation__responsive-container-close {
	position: absolute;
	top: 1rem;
	right: clamp(1rem, 5vw, 1.5rem);
}
.tvb-site-header .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 1.25rem; }
.tvb-site-header .is-menu-open .wp-block-navigation__container {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 100%;
}
.tvb-site-header .is-menu-open .wp-block-navigation-item {
	width: 100%;
	font-size: 1.1rem;
	border-bottom: 1px solid var(--wp--preset--color--tvb-line);
}
.tvb-site-header .is-menu-open .wp-block-navigation-item__content {
	display: block;
	padding: 1rem .25rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--wp--preset--color--tvb-green);
}
.tvb-site-header .is-menu-open .wp-block-navigation-item__content[aria-current="page"] { color: var(--wp--preset--color--tvb-red); }

/* Alle Zeilen linksbündig und über die volle Breite (WordPress richtet sie sonst rechts aus) */
.tvb-site-header .is-menu-open .wp-block-navigation-item {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap;
	align-items: center !important;
	justify-content: flex-start !important;
	text-align: left !important;
	position: relative;
}
.tvb-site-header .is-menu-open .wp-block-navigation__container,
.tvb-site-header .is-menu-open .wp-block-navigation__submenu-container { text-align: left !important; }
.tvb-site-header .is-menu-open .wp-block-navigation-item > .wp-block-navigation-item__content {
	flex: 1 1 100%;
	text-align: left;
	justify-content: flex-start;
}
/* Punkte mit Untermenü: die ganze Zeile ist ein Knopf (Aufklappen), der Pfeil sitzt rechts im Kreis */
.tvb-site-header .wp-block-navigation-submenu__toggle {
	background: none;
	border: 0;
	cursor: pointer;
	font: inherit;
	color: var(--wp--preset--color--tvb-green);
	text-transform: inherit;
	letter-spacing: inherit;
}
.tvb-site-header .is-menu-open .has-child > .wp-block-navigation-submenu__toggle {
	width: 100%;
	padding: 1rem 3.7rem 1rem .25rem;
	font-size: 1.1rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.tvb-site-header .is-menu-open .has-child > .wp-block-navigation__submenu-icon {
	display: grid !important;
	place-items: center;
	position: absolute;
	right: .1rem;
	top: .55rem;
	width: 2.6rem;
	height: 2.6rem;
	margin: 0 !important;
	border: 2px solid var(--wp--preset--color--tvb-line);
	border-radius: 50%;
	background: #fff;
	color: var(--wp--preset--color--tvb-green);
	pointer-events: none;
}
.tvb-site-header .is-menu-open .has-child > .wp-block-navigation__submenu-icon svg {
	width: 14px;
	height: 14px;
	margin: 0;
	stroke-width: 2.2;
	transition: transform .2s ease;
}
.tvb-site-header .is-menu-open .has-child > [aria-expanded="true"] + .wp-block-navigation__submenu-icon {
	background: var(--wp--preset--color--tvb-green);
	border-color: var(--wp--preset--color--tvb-green);
	color: #fff;
}
.tvb-site-header .is-menu-open .wp-block-navigation__submenu-container {
	flex: 1 0 100%;
	position: static;
	box-shadow: none;
	border: 0 !important;
	border-left: 3px solid var(--wp--preset--color--tvb-accent) !important;
	border-radius: 0;
	background: var(--wp--preset--color--tvb-mint) !important;
	margin: 0 0 .9rem !important;
	padding-block: .35rem !important;
	min-width: 0 !important;
	width: 100% !important;
	padding-inline: 0 !important;
	margin-inline: 0 !important;
	align-items: stretch !important;
	height: auto;
	opacity: 1;
	visibility: visible;
	flex-direction: column;
	gap: 0;
}
.tvb-site-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item { border: 0 !important; font-size: 1.02rem; margin: 0 !important; padding: 0 !important; width: 100%; align-items: stretch !important; }
.tvb-site-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: .7rem 1rem !important;
	width: 100%;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
}
/* Untermenüs zunächst eingeklappt, wenn der Browser :has() kennt – sonst bleiben sie offen (sicherer Rückfall) */
@supports selector(:has(*)) {
	.tvb-site-header .is-menu-open .has-child > .wp-block-navigation__submenu-container { display: none; }
	.tvb-site-header .is-menu-open .has-child:has(> [aria-expanded="true"]) > .wp-block-navigation__submenu-container { display: flex; }
}

/* Mitglied werden + Kontakt */
.tvb-site-header .is-menu-open .tvb-nav-cta { border: 0; margin-top: 1.5rem; }
.tvb-site-header .is-menu-open .tvb-nav-cta .wp-block-navigation-item__content {
	padding: 1rem 1.2rem;
	text-align: center;
	color: #fff;
	font-size: 1rem;
}
.tvb-site-header .is-menu-open .tvb-nav-contact { display: block; border: 0; margin-top: .75rem; }
.tvb-site-header .is-menu-open .tvb-nav-contact .wp-block-navigation-item__content {
	padding: .9rem 1.2rem;
	text-align: center;
	text-transform: none;
	letter-spacing: 0;
	font-size: 1rem;
	border: 2px solid var(--wp--preset--color--tvb-green);
	border-radius: 999px;
}
.tvb-site-header .is-menu-open .tvb-nav-contact .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--tvb-green); color: #fff; }
.tvb-site-header .is-menu-open .tvb-nav-contact + .tvb-nav-contact { margin-top: .6rem; }

@media (prefers-reduced-motion: reduce) {
	.tvb-site-header .is-menu-open .has-child > .wp-block-navigation__submenu-icon svg { transition: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	.tvb-ang, .wp-block-button__link { transition: none !important; transform: none !important; }
}

/* Abstand zwischen den Menüpunkten in der Desktop-Leiste */
@media (min-width: 1200px) {
	.tvb-site-header .wp-block-navigation .wp-block-navigation__container { gap: .25rem 1.5rem; }
}

/* Core setzt im geöffneten Menü „background: transparent !important“ – hier mit höherer Spezifität zurücknehmen */
.tvb-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--tvb-mint) !important;
}

/* Kleine Handys: Menü-Knopf etwas schmaler, damit das Logo mehr Platz bekommt */
@media (max-width: 420px) {
	.tvb-site-header .wp-block-navigation__responsive-container-open { padding: .35rem .8rem .35rem .65rem; gap: .4rem; font-size: .85rem !important; }
	.tvb-headbar__in { gap: .6rem; }
}


/* =====================================================================
   16. Generisches Saison-Band (Muster „TVB Saison-Band“); Farben je Saison in seasons/*.css
   ===================================================================== */
.tvb-saisonband {
	background: linear-gradient(135deg, #014422, #01632F);
	color: #fff;
	border: 2px solid var(--wp--preset--color--tvb-mint, #4AD575);
	border-radius: var(--tvb-radius, 14px);
	padding: 1.4rem 1.6rem;
	text-align: center;
	box-shadow: var(--tvb-shadow);
}
.tvb-saisonband h3 { color: #fff; margin: 0 0 .3rem; }
.tvb-saisonband p { margin: 0; color: #fff; }
.tvb-saisonband a { color: #fff; font-weight: 800; text-decoration: underline; }

/* =====================================================================
   17. Seite „Sportangebot“ (templates/page-sportangebot.html)
   Kompakter grüner Kopf mit Seitentitel, darunter die Sport-Kacheln mit den Abzeichen,
   danach der normale Seiteninhalt aus dem Editor.
   ===================================================================== */
.tvb-hero--compact {
	padding-block: clamp(2.25rem, 6vw, 4rem) clamp(2.5rem, 6.5vw, 4.5rem);
}
.tvb-hero--compact h1 { max-width: none; }
.tvb-page-text:not(:has(.wp-block-post-content > *)) { display: none; }
.tvb-page-text .wp-block-post-content > * + * { margin-block-start: 1rem; }


/* Saison-Overlay: fallende Teilchen (Schneeflocken, Laub, Konfetti, Blüten) abschaltbar (Plugin „TVB Saison-Overlay“) */
body.tvb-no-flakes[class*="tvb-season-"]::before,
body.tvb-no-flakes[class*="tvb-season-"]::after { display: none !important; }

/* Saison-Deko am Kopf (Lichterkette, Wimpel, Eier …) liegt unter den aufgeklappten Menüs, nie darüber */
.tvb-site-header .wp-block-navigation { position: relative; z-index: 5; }
body[class*="tvb-season-"] .tvb-site-header::after { z-index: 1; }

/* ===== Suche im Kopfbereich ===== */
.tvb-topbar__right { display: flex; align-items: center; gap: .25rem 1.25rem; flex-wrap: wrap; }
.tvb-topsearch { display: flex; align-items: stretch; margin: 0; }
.tvb-topsearch input[type="search"] {
	width: 11.5rem; padding: .3rem .75rem; font: inherit; font-size: .85rem; color: #fff;
	background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .45); border-right: 0;
	border-radius: 999px 0 0 999px; outline: 0; transition: width .2s ease, background-color .2s ease;
}
.tvb-topsearch input[type="search"]::placeholder { color: rgba(255, 255, 255, .8); }
.tvb-topsearch input[type="search"]:focus { width: 15rem; background: #fff; color: var(--wp--preset--color--tvb-green-dark, #014422); }
.tvb-topsearch input[type="search"]:focus::placeholder { color: #5b6b61; }
.tvb-topsearch button {
	display: flex; align-items: center; padding: 0 .7rem; color: #fff; cursor: pointer;
	background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .45); border-left: 0;
	border-radius: 0 999px 999px 0;
}
.tvb-topsearch button:hover, .tvb-topsearch button:focus-visible { background: var(--wp--preset--color--tvb-accent, #4AD575); color: var(--wp--preset--color--tvb-green-dark, #014422); }
.tvb-topsearch :focus-visible { outline: 3px solid var(--wp--preset--color--tvb-accent, #4AD575); outline-offset: 2px; }
.tvb-topsearch input[type="search"]:focus-visible { outline-offset: 0; }
@media (prefers-reduced-motion: reduce) { .tvb-topsearch input[type="search"] { transition: none; } }

/* Suche im Handy-Menü (nur im aufgeklappten Vollbild-Menü sichtbar) */
.tvb-site-header .tvb-search-menu,
.tvb-site-header li:has(> .tvb-search-menu) { display: none; }
.tvb-site-header .is-menu-open .tvb-search-menu { display: block; margin-top: 1.25rem; max-width: none; width: 100%; }
.tvb-site-header .is-menu-open li:has(> .tvb-search-menu) { display: block; width: 100%; }
.tvb-site-header .is-menu-open .tvb-search-menu .wp-block-search__inside-wrapper { border: 2px solid var(--wp--preset--color--tvb-green, #01632F); border-radius: 999px; padding: 0; overflow: hidden; background: #fff; }
.tvb-site-header .is-menu-open .tvb-search-menu .wp-block-search__input { border: 0; padding: .75rem 1.1rem; font-size: 1.05rem; min-height: 48px; background: transparent; }
.tvb-site-header .is-menu-open .tvb-search-menu .wp-block-search__button { margin: 0; border: 0; border-radius: 0; min-width: 52px; background: var(--wp--preset--color--tvb-green, #01632F); color: #fff; }
.tvb-site-header .is-menu-open .tvb-search-menu .wp-block-search__inside-wrapper { padding: 0 !important; }
.tvb-site-header .is-menu-open .tvb-search-menu .wp-block-search__button { padding: 0 1rem; }
.tvb-site-header .is-menu-open .tvb-search-menu .wp-block-search__button svg { fill: #fff; }
.tvb-site-header .is-menu-open .tvb-search-menu .wp-block-search__inside-wrapper { display: flex; align-items: stretch; }
.tvb-site-header .is-menu-open .tvb-search-menu .wp-block-search__button { align-self: stretch; display: flex; align-items: center; justify-content: center; margin: 0 !important; min-width: 56px; }

.tvb-site-header .is-menu-open .tvb-search-menu .wp-block-search__input { flex: 1 1 auto; min-width: 0; }

/* =====================================================================
   VERSION 3 – schlicht & sportlich
   Eckig statt rund, kräftige Großbuchstaben-Überschriften, eine Akzentfarbe (Turnerkreuz-Rot),
   keine Muster, keine Schatten. Alle Werte lassen sich hier zentral ändern.
   ===================================================================== */
h1, h2, h3 { font-weight: 800; letter-spacing: -.01em; }
h1, h2 { text-transform: uppercase; }
.tvb-kicker { font-size: .78rem; letter-spacing: .2em; font-weight: 800; position: relative; padding-left: 2.2rem; }
.tvb-kicker::before { content: ""; position: absolute; left: 0; top: 50%; width: 1.6rem; height: 3px; background: currentColor; transform: translateY(-50%); }

/* Hero: einfarbig dunkelgrün, schräger Abschluss */
.tvb-hero-v2 {
	background: var(--wp--preset--color--tvb-green-dark);
	padding-block: clamp(3rem, 8vw, 6rem) clamp(5rem, 11vw, 8rem);
	padding-inline: clamp(1rem, 4vw, 2rem);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - clamp(1.5rem, 4vw, 3.5rem)), 0 100%);
}
.tvb-hero-v2 .tvb-wrap { position: relative; z-index: 1; }
.tvb-hero-v2 .tvb-wrap > * { margin-block: 0; }
.tvb-hero-v2 .tvb-wrap > * + * { margin-block-start: 1.1rem; }
.tvb-hero-v2 h1 { max-width: 14ch; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; }
.tvb-hero-v2__lead { color: #fff; font-size: var(--wp--preset--font-size--large); max-width: 36rem; opacity: .94; }
.tvb-hero-v2 .wp-block-buttons { margin-top: 1.75rem; }
.tvb-hero--compact { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3.5rem, 8vw, 5.5rem); }
.tvb-hero--compact h1 { max-width: none; font-size: clamp(2rem, 5vw, 3.4rem); }
.tvb-hero--compact + .tvb-angebot-sec { padding-top: clamp(3.5rem, 7vw, 5rem); }

/* Buttons und Kopf: eckig */
.wp-block-button__link { border-radius: 0 !important; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; font-size: .92rem; }
.tvb-nav-cta .wp-block-navigation-item__content { border-radius: 0 !important; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.tvb-site-header .wp-block-navigation__submenu-container { border-radius: 0 !important; border-top: 4px solid var(--wp--preset--color--tvb-red) !important; box-shadow: none; }
.tvb-site-header .wp-block-navigation__container > .wp-block-navigation-item > a { font-weight: 700; }

/* Angebot auf einen Blick */
.tvb-angebot-sec { background: var(--wp--preset--color--tvb-light); }
.tvb-angebot { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: .9rem; margin: 0 !important; }
.tvb-ang {
	position: relative; display: grid; grid-template-columns: 64px 1fr; grid-template-areas: "icon name" "tage tage";
	align-items: center; gap: .55rem .9rem; padding: .9rem; background: #fff;
	border: 2px solid var(--wp--preset--color--tvb-line); border-top: 4px solid var(--wp--preset--color--tvb-green);
	color: var(--wp--preset--color--tvb-green-dark); text-decoration: none;
	transition: transform .15s ease, border-color .15s ease;
}
.tvb-ang:hover, .tvb-ang:focus-visible { transform: translateY(-3px); border-color: var(--wp--preset--color--tvb-red); color: var(--wp--preset--color--tvb-red); }
.tvb-ang img { grid-area: icon; width: 64px; height: 64px; display: block; }
.tvb-ang__name { grid-area: name; font-weight: 800; font-size: 1rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em; }
.tvb-ang__tage { grid-area: tage; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.tvb-ang__tage i { font-style: normal; font-size: .68rem; font-weight: 700; text-align: center; padding: .22rem 0; background: #EEF2EF; color: #9AA89E; }
.tvb-ang__tage i.an { background: var(--wp--preset--color--tvb-green); color: #fff; }
.tvb-ang.is-heute { border-top-color: var(--wp--preset--color--tvb-red); }
.tvb-ang__heute { position: absolute; top: -4px; right: -2px; background: var(--wp--preset--color--tvb-red); color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .55rem; }
.tvb-angebot--orte { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tvb-angebot--orte .tvb-ang { border-top-color: var(--wp--preset--color--tvb-line); }
@media (max-width: 639px) {
	.tvb-angebot { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
	.tvb-ang { grid-template-columns: 1fr; grid-template-areas: "icon" "name" "tage"; justify-items: center; text-align: center; padding: .8rem .5rem; }
	.tvb-ang__name { font-size: .82rem; }
	.tvb-ang__tage i { font-size: .6rem; }
	.tvb-angebot--orte { grid-template-columns: 1fr; }
	.tvb-angebot--orte .tvb-ang { grid-template-columns: 64px 1fr; grid-template-areas: "icon name"; justify-items: start; text-align: left; }
}

/* Trainingszeiten aus dem Plugin Hallenplan */
.tvb-zeiten { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4rem); padding-inline: clamp(1rem, 4vw, 2rem); }
.tvb-zeiten h2 { font-size: 1.5rem; border-left: 5px solid var(--wp--preset--color--tvb-red); padding-left: .8rem; }
.tvb-zeiten-inline { padding: 0; }
.tvb-zeiten table { width: 100%; border-collapse: collapse; }
.tvb-zeiten th { background: var(--wp--preset--color--tvb-green-dark); color: #fff; text-align: left; text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; }
.tvb-zeiten th, .tvb-zeiten td { padding: .55rem .8rem; border-bottom: 1px solid var(--wp--preset--color--tvb-line); }
.tvb-zeiten tr:nth-child(even) td { background: var(--wp--preset--color--tvb-light); }
@media (min-width: 640px) { .tvb-zeiten td:nth-child(3) { white-space: nowrap; } }
/* Handy: jede Zeile wird zu einer Karte mit Beschriftung (Spalten: Gruppe, Tag, Uhrzeit, Ort, Übungsleitung). */
@media (max-width: 639px) {
	.tvb-zeiten table, .tvb-zeiten tbody, .tvb-zeiten tr, .tvb-zeiten td { display: block; width: 100%; }
	.tvb-zeiten thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.tvb-zeiten tr { border: 1px solid var(--wp--preset--color--tvb-line); border-left: 4px solid var(--wp--preset--color--tvb-red); margin-bottom: .7rem; background: #fff; }
	.tvb-zeiten tr:nth-child(even) td { background: transparent; }
	.tvb-zeiten td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .5rem; padding: .35rem .8rem; border-bottom: 0; white-space: normal; }
	.tvb-zeiten td::before { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--wp--preset--color--tvb-green-dark); padding-top: .15rem; }
	.tvb-zeiten td:nth-child(1) { font-weight: 700; padding-top: .6rem; }
	.tvb-zeiten td:nth-child(1)::before { content: "Gruppe"; }
	.tvb-zeiten td:nth-child(2)::before { content: "Tag"; }
	.tvb-zeiten td:nth-child(3)::before { content: "Uhrzeit"; }
	.tvb-zeiten td:nth-child(4)::before { content: "Ort"; }
	.tvb-zeiten td:nth-child(5)::before { content: "Übungsleitung"; }
	.tvb-zeiten td:last-child { padding-bottom: .6rem; }
}
@media (prefers-reduced-motion: reduce) { .tvb-ang { transition: none; } }

/* Suche in der Kopfleiste (Standard-Suchblock) */
.tvb-topbar p { margin: 0; }
.tvb-topbar__in.tvb-wrap { align-items: center; }
.tvb-topsearch .wp-block-search__inside-wrapper { display: flex; align-items: stretch; border: 0; padding: 0; }
.tvb-topsearch input[type="search"], .tvb-topsearch button { border-radius: 0; margin: 0; }
.tvb-topsearch .wp-block-search__button svg { fill: currentColor; width: 1.1em; height: 1.1em; }

/* Feinschliff */
.tvb-hero-v2 { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4.5rem, 9vw, 6.5rem); }
.tvb-ang__name { font-size: .92rem; overflow-wrap: break-word; }
.tvb-join .tvb-kicker, .has-text-align-center.tvb-kicker { padding-left: 0; }
.tvb-join .tvb-kicker::before, .has-text-align-center.tvb-kicker::before { display: none; }
@media (max-width: 639px) {
	.tvb-angebot--orte .tvb-ang { grid-template-areas: "icon name" "tage tage"; }
	.tvb-angebot--orte .tvb-ang__name { font-size: .9rem; }
	.tvb-ang__name { font-size: .78rem; }
}

/* Knopf „Alle Meldungen“ unter den Karten: kräftig rot, eckig, wie der Mitglieder-Knopf im Menü */
.tvb-section-foot { margin-top: clamp(1.25rem, 3vw, 2rem); }
.tvb-btn-more .wp-block-button__link { background: var(--wp--preset--color--tvb-red); color: #fff; border: 2px solid var(--wp--preset--color--tvb-red); }
.tvb-btn-more .wp-block-button__link:hover { background: var(--wp--preset--color--tvb-green); border-color: var(--wp--preset--color--tvb-green); color: #fff; }

/* Lange Namen (z. B. Leichtathletik) bleiben in der Kachel */
.tvb-ang__name { font-size: .84rem; letter-spacing: 0; min-width: 0; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 639px) { .tvb-ang__name { font-size: .76rem; } }

/* Karte (OpenStreetMap, Klick zum Laden) */
.tvb-karte-sec { padding-block: 0 clamp(2.5rem, 6vw, 4rem); padding-inline: clamp(1rem, 4vw, 2rem); }
.tvb-karte-sec h2 { font-size: 1.5rem; border-left: 5px solid var(--wp--preset--color--tvb-red); padding-left: .8rem; }
.tvb-karte__frame { border: 2px solid var(--wp--preset--color--tvb-line); background: var(--wp--preset--color--tvb-light); aspect-ratio: 16 / 9; min-height: 240px; display: grid; place-items: center; }
.tvb-karte__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.tvb-karte__consent { text-align: center; padding: 1rem; max-width: 34rem; }
.tvb-karte__consent p { margin: 0 0 .6rem; }
.tvb-karte__hint { font-size: .85rem; color: var(--wp--preset--color--tvb-muted); }
.tvb-karte__btn { background: var(--wp--preset--color--tvb-red); color: #fff; border: 0; cursor: pointer; }
.tvb-karte__btn:hover { background: var(--wp--preset--color--tvb-green); }
.tvb-karte__links { margin: .6rem 0 0; font-size: .92rem; }

/* ---------- Beitragskarten (Mitgliedschaft) im Look der Sportangebote ---------- */
.tvb-price, .wp-block-group:has(> .tvb-amount) {
	position: relative; background: #fff; text-align: center;
	border: 2px solid var(--wp--preset--color--tvb-line); border-top: 4px solid var(--wp--preset--color--tvb-green);
	border-radius: 0; box-shadow: none;
	transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.tvb-price:hover, .wp-block-group:has(> .tvb-amount):hover { transform: translateY(-3px); border-color: var(--wp--preset--color--tvb-red); border-top-color: var(--wp--preset--color--tvb-red); box-shadow: 0 8px 18px rgba(1, 68, 34, .1); }
.tvb-price .tvb-kicker, .wp-block-group:has(> .tvb-amount) .tvb-kicker {
	display: inline-block; padding: .3rem .8rem; margin: 0 0 .4rem; background: var(--wp--preset--color--tvb-red); color: #fff;
	font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-align: center;
}
.tvb-price .tvb-kicker::before, .wp-block-group:has(> .tvb-amount) .tvb-kicker::before { display: none; }
.tvb-price .tvb-amount, .tvb-amount { font-size: clamp(2.2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; color: var(--wp--preset--color--tvb-green-dark); margin: .4rem 0 .6rem; }
.tvb-price .tvb-amount small, .tvb-amount small { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--wp--preset--color--tvb-muted); }
.tvb-price p:not(.tvb-kicker):not(.tvb-amount) { font-size: .9rem; line-height: 1.55; color: var(--wp--preset--color--tvb-text, #1f2a24); }
@media (prefers-reduced-motion: reduce) { .tvb-price, .wp-block-group:has(> .tvb-amount) { transition: none; transform: none !important; } }

/* Festes Kartenbild (Sportstätten ohne eigene Seite mit Karte) */
.tvb-karte-bild { margin: 0; }
.tvb-karte-bild a { display: block; border: 2px solid var(--wp--preset--color--tvb-line); border-top: 4px solid var(--wp--preset--color--tvb-green); line-height: 0; }
.tvb-karte-bild a:hover { border-color: var(--wp--preset--color--tvb-red); }
.tvb-karte-bild img { width: 100%; height: auto; display: block; }
.tvb-karte-bild figcaption { margin-top: .5rem; font-size: .85rem; color: var(--wp--preset--color--tvb-muted); }
.tvb-karte-sec h2 { margin-bottom: 1rem; }

/* ======================================================================
   Einheitliche Schrift und Textgrößen (ab 3.0.20; ab 3.0.21 mit !important, weil WordPress
   die Größenklassen des Editors (has-…-font-size) selbst mit !important setzt)
   Eine Schrift (Inter, im Theme enthalten) für alles, ein Größenraster für alle Seiten.
   ====================================================================== */
body { font-family: var(--wp--preset--font-family--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wp-block-post-content :is(h1, h2, h3, h4, h5, h6):not(:is(.tvb-hero, .tvb-section, .tvb-join, .tvb-cta, .tvb-saisonband, .tvb-xmas, .tvb-notice, .tvb-karte-sec) *) { font-family: var(--wp--preset--font-family--heading); font-weight: 800; text-transform: uppercase; color: var(--wp--preset--color--tvb-green-dark); letter-spacing: 0; hyphens: auto; overflow-wrap: break-word; }
.wp-block-post-content h1:not(:is(.tvb-hero, .tvb-section, .tvb-join, .tvb-cta, .tvb-saisonband, .tvb-xmas, .tvb-notice, .tvb-karte-sec) *) { font-size: clamp(2rem, 4.5vw, 2.8rem) !important; line-height: 1.1; margin: 0 0 1.2rem; }
.wp-block-post-content h2:not(:is(.tvb-hero, .tvb-section, .tvb-join, .tvb-cta, .tvb-saisonband, .tvb-xmas, .tvb-notice, .tvb-karte-sec) *) { font-size: clamp(1.35rem, 2.4vw, 1.6rem) !important; line-height: 1.2; margin: 2.4rem 0 1rem; border-left: 5px solid var(--wp--preset--color--tvb-red); padding-left: .8rem; color: var(--wp--preset--color--tvb-green); }
.wp-block-post-content h3:not(:is(.tvb-hero, .tvb-section, .tvb-join, .tvb-cta, .tvb-saisonband, .tvb-xmas, .tvb-notice, .tvb-karte-sec) *) { font-size: 1.15rem !important; line-height: 1.25; margin: 1.8rem 0 .6rem; letter-spacing: .02em; }
.wp-block-post-content :is(h4, h5, h6):not(:is(.tvb-hero, .tvb-section, .tvb-join, .tvb-cta, .tvb-saisonband, .tvb-xmas, .tvb-notice, .tvb-karte-sec) *) { font-size: 1rem !important; line-height: 1.3; margin: 1.4rem 0 .5rem; letter-spacing: .03em; }
/* Fließtext: überall gleich groß; „Einleitung“ (große Schrift) etwas größer, aber nicht riesig */
.wp-block-post-content :is(p, li, dd, dt):not(:is(.tvb-hero, .tvb-section, .tvb-join, .tvb-cta, .tvb-saisonband, .tvb-xmas, .tvb-notice, .tvb-karte-sec) *) { font-size: 1.0625rem !important; line-height: 1.65; }
.wp-block-post-content p:is(.has-large-font-size, .has-x-large-font-size, .has-xx-large-font-size, .has-huge-font-size):not(.tvb-amount):not(.tvb-kicker):not(:is(.tvb-hero, .tvb-section, .tvb-join, .tvb-cta, .tvb-saisonband, .tvb-xmas, .tvb-notice, .tvb-karte-sec) *) { font-size: clamp(1.15rem, 1.5vw, 1.3rem) !important; line-height: 1.6; font-weight: 500; }
/* „Klein“ nur in Karten, Spalten, Bildunterschriften und Fußnoten wirklich klein */
.wp-block-post-content :is(.wp-block-column, .tvb-card, .tvb-zeiten, .tvb-zeiten-inline, figcaption) p.has-small-font-size:not(:is(.tvb-hero, .tvb-section, .tvb-join, .tvb-cta, .tvb-saisonband, .tvb-xmas, .tvb-notice, .tvb-karte-sec) *), .wp-block-post-content figcaption:not(:is(.tvb-hero, .tvb-section, .tvb-join, .tvb-cta, .tvb-saisonband, .tvb-xmas, .tvb-notice, .tvb-karte-sec) *), .wp-block-post-content p.tvb-quelle:not(:is(.tvb-hero, .tvb-section, .tvb-join, .tvb-cta, .tvb-saisonband, .tvb-xmas, .tvb-notice, .tvb-karte-sec) *) { font-size: .9rem !important; line-height: 1.5; }
/* Alles bündig an einer linken Kante, Fließtext mit angenehmer Zeilenlänge */
.wp-block-post-content .is-layout-constrained > :where(:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.tvb-saisonband):not(.tvb-xmas):not(.tvb-karte-sec)) { margin-left: 0 !important; margin-right: auto !important; }
.wp-block-post-content :is(p, ul, ol):not(:is(.tvb-hero, .tvb-section, .tvb-join, .tvb-cta, .tvb-saisonband, .tvb-xmas, .tvb-notice, .tvb-karte-sec) *) { margin-left: 0 !important; margin-right: auto !important; padding-left: 0; }
.wp-block-post-content :is(ul, ol):not(:is(.tvb-hero, .tvb-section, .tvb-join, .tvb-cta, .tvb-saisonband, .tvb-xmas, .tvb-notice, .tvb-karte-sec) *) { padding-left: 1.4rem; }
.wp-block-post-content :is(p, ul, ol, h1, h2, h3, h4):not(:is(.tvb-hero, .tvb-section, .tvb-join, .tvb-cta, .tvb-saisonband, .tvb-xmas, .tvb-notice, .tvb-karte-sec) *) { max-width: 46rem; }
.wp-block-post-content .wp-block-column p:not(:is(.tvb-hero, .tvb-section, .tvb-join, .tvb-cta, .tvb-saisonband, .tvb-xmas, .tvb-notice, .tvb-karte-sec) *), .wp-block-post-content .tvb-card p:not(:is(.tvb-hero, .tvb-section, .tvb-join, .tvb-cta, .tvb-saisonband, .tvb-xmas, .tvb-notice, .tvb-karte-sec) *), .wp-block-post-content .tvb-price p:not(:is(.tvb-hero, .tvb-section, .tvb-join, .tvb-cta, .tvb-saisonband, .tvb-xmas, .tvb-notice, .tvb-karte-sec) *) { margin-left: auto !important; margin-right: auto !important; max-width: none; }
.wp-block-post-content .wp-block-column :is(h3, h4, h5, p:first-of-type):not(:is(.tvb-hero, .tvb-section, .tvb-join, .tvb-cta, .tvb-saisonband, .tvb-xmas, .tvb-notice, .tvb-karte-sec) *) { overflow-wrap: break-word; }
@media (max-width: 639px) { .wp-block-post-content h2:not(:is(.tvb-hero, .tvb-section, .tvb-join, .tvb-cta, .tvb-saisonband, .tvb-xmas, .tvb-notice, .tvb-karte-sec) *) { padding-left: .65rem; } }

/* Saison-Deko: fallende Teilchen (Schnee, Laub, Konfetti, Blüten) nur auf der Startseite als Willkommens-Effekt */
body[class*="tvb-season-"]:not(.tvb-front)::before,
body[class*="tvb-season-"]:not(.tvb-front)::after { display: none !important; }


/* ===== 3.0.24: Meldungskarten als ein Link, Schnellleiste am Handy ===== */
.tvb-news .tvb-card { position: relative; transition: border-color .15s, box-shadow .15s; }
.tvb-news .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tvb-news .tvb-card::after {
	content: "Weiterlesen →"; margin-top: auto; padding-top: .4rem; font-weight: 700; font-size: .9rem;
	color: var(--wp--preset--color--tvb-red);
}
.tvb-news .tvb-card:hover, .tvb-news .tvb-card:focus-within { border-color: var(--wp--preset--color--tvb-green); box-shadow: 0 6px 18px rgba(1, 99, 47, .12); }
.tvb-news .wp-block-post-title a:focus-visible { outline: 3px solid var(--wp--preset--color--tvb-accent, #4AD575); outline-offset: 4px; }

.tvb-mobilebar { display: none; }
@media (max-width: 781px) {
	.tvb-mobilebar {
		display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom));
		background: #fff; border-top: 1px solid rgba(1, 99, 47, .25); box-shadow: 0 -4px 14px rgba(0, 0, 0, .1);
	}
	.tvb-mobilebar a {
		display: flex; align-items: center; justify-content: center; min-height: 46px; text-decoration: none;
		font-weight: 800; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase;
	}
	.tvb-mobilebar__call { color: var(--wp--preset--color--tvb-green); border: 2px solid var(--wp--preset--color--tvb-green); background: #fff; }
	.tvb-mobilebar__join { color: #fff; background: var(--wp--preset--color--tvb-red); border: 2px solid var(--wp--preset--color--tvb-red); }
	body { padding-bottom: 66px; }
}
@media print { .tvb-mobilebar { display: none !important; } body { padding-bottom: 0 !important; } }


/* ===== 3.0.25: dynamische Startseite (Plugin „TVB Startseite“) ===== */
.tvb-split:not(:has(.tvb-highlight)) { grid-template-columns: 1fr; }
.tvb-date__title a { color: inherit; text-decoration: none; }
.tvb-date__title a:hover, .tvb-date__title a:focus-visible { text-decoration: underline; }
.tvb-dates-empty { margin: 0; padding-block: 1rem; color: var(--wp--preset--color--tvb-muted); }

/* ===== 3.0.26: Design-Bänder in Seiteninhalten ===== */
/* Eingefügte Bänder (Mach mit, Hero, Zahlen …) bekommen die Schrift ihres Musters, nicht die Fließtext-Regeln (siehe Ausnahmeliste oben),
   und gehen über die volle Breite, auch wenn sie im Editor ohne „Volle Breite“ gespeichert wurden. */
.wp-block-post-content > :is(.tvb-join, .tvb-hero, .tvb-cta, .tvb-section) { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
