/* TBG Startseite – ohne externe Schriften (DSGVO), alle Farben über Variablen */

/* ---------- Theme-Rahmen auf der Startseite neutralisieren (Kadence & Co.) ---------- */
body.tbg-ss-page { overflow-x: clip; }
.tbg-ss-page .entry-hero,
.tbg-ss-page .entry-header,
.tbg-ss-page .page-title,
.tbg-ss-page .wp-block-post-title { display: none !important; }
.tbg-ss-page .content-area { margin-top: 0 !important; margin-bottom: 0 !important; }
.tbg-ss-page .site-main > .entry,
.tbg-ss-page .entry.content-bg,
.tbg-ss-page article.page { background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }
.tbg-ss-page .entry-content-wrap { padding: 0 !important; }
.tbg-ss-page .entry-content > .tbg-ss:first-child { margin-top: 0; }

/* ---------- Grundgerüst ---------- */
.tbg-ss {
	--tbg-primary: #e0301a;
	--tbg-dark: #a3160b;
	--tbg-ink: #1d1d1f;
	--tbg-muted: #5b6475;
	--tbg-bg: #fff5f3;
	--tbg-line: #f1dfdb;
	--tbg-radius: 16px;
	--tbg-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
	position: relative;
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	margin-top: 0 !important;
	color: var(--tbg-ink);
	font-family: var(--tbg-font-body, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	font-size: var(--tbg-base, 17px);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.tbg-ss *, .tbg-ss *::before, .tbg-ss *::after { box-sizing: border-box; }
.tbg-ss h1, .tbg-ss h2, .tbg-ss h3 { font-family: var(--tbg-font-head, inherit); font-weight: var(--tbg-head-weight, 800) !important; color: inherit; letter-spacing: -0.015em; margin: 0; }
.tbg-ss p { margin: 0; }
.tbg-ss a { text-decoration: none; }
.tbg-ss-wrap { width: 100%; max-width: var(--tbg-container, 1200px); margin: 0 auto; padding: 0 24px; }
.tbg-ss-section { padding: var(--tbg-space, 80px) 0; }

/* ---------- Buttons ---------- */
.tbg-ss-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 24px; border-radius: var(--tbg-btn-radius, 999px);
	font-weight: 700; font-size: 16px; line-height: 1.2;
	border: 2px solid transparent; transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.tbg-ss-btn:hover { transform: translateY(-1px); }
.tbg-ss-btn:focus-visible, .tbg-ss-filter button:focus-visible, .tbg-ss-card-link:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }
.tbg-ss-btn-primary { background: var(--tbg-primary); color: #fff !important; }
.tbg-ss-btn-primary:hover { background: color-mix(in srgb, var(--tbg-primary) 88%, #000); }
.tbg-ss-btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff !important; }
.tbg-ss-btn-ghost:hover { background: #fff; color: var(--tbg-dark) !important; }
.tbg-ss-btn-white { background: #fff; color: var(--tbg-primary) !important; }
.tbg-ss-btn-outline { border-color: rgba(255, 255, 255, .75); color: #fff !important; }
.tbg-ss-btn-outline:hover { background: rgba(255, 255, 255, .14); }

/* ---------- Hero ---------- */
.tbg-ss-hero {
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--tbg-primary) 55%, transparent), transparent 60%),
		linear-gradient(135deg, var(--tbg-dark) 0%, color-mix(in srgb, var(--tbg-dark) 80%, #000) 100%);
	padding: clamp(72px, 10vw, 130px) 0 clamp(80px, 11vw, 140px);
}
.tbg-ss-hero.has-image {
	background:
		linear-gradient(100deg, color-mix(in srgb, var(--tbg-dark) 92%, transparent) 0%, color-mix(in srgb, var(--tbg-dark) 70%, transparent) 50%, color-mix(in srgb, var(--tbg-dark) 25%, transparent) 100%),
		var(--tbg-hero) center / cover no-repeat;
}
.tbg-ss-hero-deco span { position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .09); pointer-events: none; }
.tbg-ss-hero-deco span:nth-child(1) { width: 520px; height: 520px; right: -120px; top: -160px; }
.tbg-ss-hero-deco span:nth-child(2) { width: 300px; height: 300px; right: 140px; bottom: -150px; border-color: color-mix(in srgb, var(--tbg-primary) 45%, transparent); }
.tbg-ss-hero-deco span:nth-child(3) { width: 120px; height: 120px; right: 60px; top: 60%; background: color-mix(in srgb, var(--tbg-primary) 30%, transparent); border: 0; }
.tbg-ss-hero.has-image .tbg-ss-hero-deco { display: none; }
.tbg-ss-hero-inner { position: relative; z-index: 1; }
.tbg-ss-kicker {
	display: inline-block; margin-bottom: 18px !important; padding: 6px 14px; border-radius: 999px;
	background: rgba(255, 255, 255, .12); font-size: 14px; font-weight: 600; letter-spacing: .02em;
}
.tbg-ss-hero-title { max-width: 820px; font-size: calc(clamp(34px, 5.2vw, 60px) * var(--tbg-h-scale, 1)); line-height: 1.08; font-weight: 800; color: #fff !important; }
.tbg-ss-hero-text { max-width: 640px; margin-top: 20px !important; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, .88); }
.tbg-ss-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Kennzahlen ---------- */
.tbg-ss-facts { position: relative; z-index: 2; margin-top: -44px; }
.tbg-ss-facts-grid {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
	background: #fff; border-radius: var(--tbg-radius); box-shadow: var(--tbg-shadow);
	padding: 0; overflow: hidden; max-width: 1152px;
}
.tbg-ss-fact { padding: 22px 24px; border-left: 1px solid var(--tbg-line); }
.tbg-ss-fact:first-child { border-left: 0; }
.tbg-ss-fact strong { display: block; font-size: 22px; line-height: 1.2; color: var(--tbg-dark); }
.tbg-ss-fact span { display: block; margin-top: 4px; font-size: 14px; color: var(--tbg-muted); }

/* ---------- Kopfzeilen ---------- */
.tbg-ss-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.tbg-ss-head h2 { font-size: calc(clamp(28px, 3.2vw, 40px) * var(--tbg-h-scale, 1)); line-height: 1.15; font-weight: 800; color: var(--tbg-dark); }
.tbg-ss-head h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 14px; border-radius: 4px; background: var(--tbg-primary); }
.tbg-ss-head-center { flex-direction: column; align-items: center; text-align: center; }
.tbg-ss-head-center h2::after { margin-left: auto; margin-right: auto; }
.tbg-ss-head-center p { max-width: 620px; color: var(--tbg-muted); }
.tbg-ss-more { font-weight: 700; color: var(--tbg-primary) !important; white-space: nowrap; }
.tbg-ss-link { display: inline-flex; gap: 6px; font-weight: 700; font-size: 15px; color: var(--tbg-primary) !important; }

/* ---------- Aktuelles ---------- */
.tbg-ss-news-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 24px; }
.tbg-ss-post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tbg-line); border-radius: var(--tbg-radius); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.tbg-ss-post:hover { box-shadow: var(--tbg-shadow); transform: translateY(-2px); }
.tbg-ss-post-img { display: block; aspect-ratio: 16 / 10; background: var(--tbg-bg); overflow: hidden; }
.tbg-ss-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.tbg-ss-post:hover .tbg-ss-post-img img { transform: scale(1.04); }
.tbg-ss-noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--tbg-dark), var(--tbg-primary)); opacity: .85; }
.tbg-ss-post-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.tbg-ss-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--tbg-muted); }
.tbg-ss-chip { padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--tbg-primary) 10%, #fff); color: color-mix(in srgb, var(--tbg-primary) 85%, #000); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; }
.tbg-ss-post h3 { font-size: 19px; line-height: 1.3; font-weight: 750; }
.tbg-ss-post h3 a { color: var(--tbg-ink) !important; }
.tbg-ss-post h3 a:hover { color: var(--tbg-primary) !important; }
.tbg-ss-post-excerpt { color: var(--tbg-muted); font-size: 15px; }
.tbg-ss-post .tbg-ss-link { margin-top: auto; }
.tbg-ss-post.is-lead h3 { font-size: 23px; }

/* ---------- Sportangebote: volle Breite je Abteilung (mobile first) ---------- */
.tbg-ss-offers { background: #fff; padding: 64px 0 0; }
.tbg-ss-offers > .tbg-ss-head { margin-bottom: 24px; }

/* Sprungleiste (bleibt beim Scrollen oben stehen) */
.tbg-ss-jump { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-top: 1px solid var(--tbg-line); border-bottom: 1px solid var(--tbg-line); }
body.admin-bar .tbg-ss-jump { top: 46px; }
@media (min-width: 783px) { body.admin-bar .tbg-ss-jump { top: 32px; } }
.tbg-ss-jump-inner { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 10px 16px; max-width: var(--tbg-container, 1200px); margin: 0 auto; scrollbar-width: none; }
.tbg-ss-jump-inner::-webkit-scrollbar { display: none; }
.tbg-ss-jump a {
	flex: 0 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--tbg-line);
	background: #fff; color: var(--tbg-ink) !important; font-size: 15px; font-weight: 650; white-space: nowrap; transition: all .2s ease;
}
.tbg-ss-jump a span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--tbg-bg); font-size: 12px; text-align: center; color: var(--tbg-muted); }
.tbg-ss-jump a.is-active { background: var(--g, var(--tbg-dark)); border-color: var(--g, var(--tbg-dark)); color: #fff !important; }
.tbg-ss-jump a.is-active span { background: rgba(255, 255, 255, .2); color: #fff; }

/* Gruppen-Farben */
:where(.tbg-ss-group) { --g: var(--tbg-primary); }
.tbg-ss-group { scroll-margin-top: 70px; }

/* Gruppen-Kopf */
.tbg-ss-group-head { position: relative; overflow: hidden; padding: 44px 0 28px; background: var(--tbg-dark); color: #fff; }
.tbg-ss-group-head::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--g); opacity: .35; }
.tbg-ss-group-head .tbg-ss-wrap { position: relative; z-index: 1; }
.tbg-ss-group-num { display: block; font-size: 15px; font-weight: 800; letter-spacing: .12em; color: var(--g); filter: brightness(1.35); }
.tbg-ss-group-head h2 { margin-top: 4px; font-size: calc(clamp(28px, 7vw, 44px) * var(--tbg-h-scale, 1)); line-height: 1.1; font-weight: 800; color: #fff !important; }
.tbg-ss-group-head p { margin-top: 8px !important; color: rgba(255, 255, 255, .8); max-width: 620px; }

/* Abteilung – Band über die volle Breite */
.tbg-ss-dept { border-bottom: 1px solid var(--tbg-line); }
.tbg-ss-dept-link { display: block; color: var(--tbg-ink) !important; background: #fff; }
.tbg-ss-dept-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, var(--tbg-dark), var(--g)); }
.tbg-ss-dept-media img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.tbg-ss-dept-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(0, 0, 0, .35), transparent); pointer-events: none; }
.tbg-ss-dept-tag { position: absolute; z-index: 1; left: 16px; bottom: 16px; padding: 6px 14px; border-radius: 999px; background: var(--g); color: #fff; font-size: 14px; font-weight: 750; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.tbg-ss-dept-body { padding: 22px 20px 30px; }
.tbg-ss-dept-group { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--g); }
.tbg-ss-dept h3 { margin-top: 6px !important; font-size: calc(clamp(24px, 6vw, 36px) * var(--tbg-h-scale, 1)); line-height: 1.15; font-weight: 800; color: var(--tbg-dark); }
.tbg-ss-dept-lines { list-style: none; margin: 14px 0 22px !important; padding: 0 !important; display: grid; gap: 10px; font-size: 17px; color: var(--tbg-muted); }
.tbg-ss-dept-lines li { margin: 0 !important; padding-left: 26px; position: relative; }
.tbg-ss-dept-lines li::before { content: ""; position: absolute; left: 6px; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--tbg-line); }
.tbg-ss-dept-lines li.is-time { color: var(--tbg-ink); font-weight: 650; }
.tbg-ss-dept-lines li.is-time::before { left: 1px; top: .28em; width: 18px; height: 18px; background: color-mix(in srgb, var(--g) 14%, #fff); border: 2px solid var(--g); }
.tbg-ss-dept-cta { width: 100%; background: var(--g) !important; }
.tbg-ss-dept-link:hover .tbg-ss-dept-cta { filter: brightness(.92); }
.tbg-ss-dept-link:focus-visible { outline: 3px solid #ffbf47; outline-offset: -3px; }

/* Einblend-Animation (nur mit JS, sonst sofort sichtbar) */
.tbg-ss.has-js .tbg-ss-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.tbg-ss.has-js .tbg-ss-reveal.is-visible { opacity: 1; transform: none; }
.tbg-ss.has-js .tbg-ss-dept .tbg-ss-dept-media img { transform: scale(1.12); }
.tbg-ss.has-js .tbg-ss-dept.is-visible .tbg-ss-dept-media img { transform: scale(1); }

/* Tablet/Desktop: Bild und Text nebeneinander, abwechselnd links/rechts */
@media (min-width: 900px) {
	.tbg-ss-dept-link { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }
	.tbg-ss-dept-media { aspect-ratio: auto; min-height: 460px; }
	.tbg-ss-dept.is-flip .tbg-ss-dept-media { order: 2; }
	.tbg-ss-dept-body { display: flex; align-items: center; padding: 56px clamp(32px, 6vw, 96px); }
	.tbg-ss-dept-inner { max-width: 540px; }
	.tbg-ss-dept.is-flip .tbg-ss-dept-body { justify-content: flex-end; }
	.tbg-ss-dept-cta { width: auto; }
	.tbg-ss-dept-link:hover .tbg-ss-dept-media img { transform: scale(1.04); }
	.tbg-ss-dept-lines { font-size: 18px; }
	.tbg-ss-group-head { padding: 72px 0 44px; }
	.tbg-ss-group-head::after { width: 380px; height: 380px; right: -80px; top: -120px; }
}

/* ---------- Mitmachen ---------- */
.tbg-ss-join { background: linear-gradient(120deg, var(--tbg-primary), color-mix(in srgb, var(--tbg-primary) 70%, var(--tbg-dark))); color: #fff; padding: 64px 0; }
.tbg-ss-join-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.tbg-ss-join h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; color: #fff !important; }
.tbg-ss-join p { margin-top: 10px !important; color: rgba(255, 255, 255, .9); max-width: 560px; }
.tbg-ss-join-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------- Responsiv ---------- */
@media (max-width: 960px) {
	.tbg-ss-news-grid { grid-template-columns: 1fr 1fr; }
	.tbg-ss-post.is-lead { grid-column: 1 / -1; }
	.tbg-ss-post.is-lead { flex-direction: row; }
	.tbg-ss-post.is-lead .tbg-ss-post-img { flex: 0 0 50%; aspect-ratio: auto; }
	.tbg-ss-facts-grid { grid-template-columns: 1fr 1fr; }
	.tbg-ss-fact:nth-child(3) { border-left: 0; }
	.tbg-ss-fact:nth-child(n+3) { border-top: 1px solid var(--tbg-line); }
	.tbg-ss-join-inner { grid-template-columns: 1fr; }
	.tbg-ss-join-links { justify-content: flex-start; }
}
@media (max-width: 640px) {
	.tbg-ss { font-size: 16px; }
	.tbg-ss-wrap { padding: 0 16px; }
	.tbg-ss-section { padding: 56px 0; }
	.tbg-ss-news-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -16px; padding: 4px 16px 16px; scrollbar-width: none; }
	.tbg-ss-news-grid::-webkit-scrollbar { display: none; }
	.tbg-ss-post { flex: 0 0 85%; scroll-snap-align: center; }
	.tbg-ss-post.is-lead { flex-direction: column; }
	.tbg-ss-post.is-lead .tbg-ss-post-img { flex: none; aspect-ratio: 16 / 10; }
	.tbg-ss-head { flex-direction: column; align-items: flex-start; }
	.tbg-ss-head-center { align-items: center; }
	.tbg-ss-actions .tbg-ss-btn, .tbg-ss-join-links .tbg-ss-btn { flex: 1 1 100%; }
	.tbg-ss-fact { padding: 16px; }
	.tbg-ss-fact strong { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.tbg-ss * { transition: none !important; animation: none !important; }
}
.tbg-ss .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Sticky-Leiste funktioniert nur, wenn kein Eltern-Element overflow:hidden hat */
.tbg-ss-page #wrapper, .tbg-ss-page .site, .tbg-ss-page #inner-wrap, .tbg-ss-page .wp-site-blocks { overflow: visible !important; overflow-x: clip !important; }


/* =====================================================================
   v1.3 – Vereinsfarben Rot-Weiß, ganze Bilder, Wow-Effekte
   ===================================================================== */

/* Lesefortschritt oben */
.tbg-ss-progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 99999; pointer-events: none; }
body.admin-bar .tbg-ss-progress { top: 46px; }
@media (min-width: 783px) { body.admin-bar .tbg-ss-progress { top: 32px; } }
.tbg-ss-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--tbg-primary), #ff7a59); box-shadow: 0 0 12px color-mix(in srgb, var(--tbg-primary) 60%, transparent); }

/* Überschriften: dunkel auf weiß, roter Akzent */
.tbg-ss-head h2, .tbg-ss-dept h3, .tbg-ss-fact strong { color: var(--tbg-ink); }
.tbg-ss-fact strong { color: var(--tbg-primary); }

/* ---------- Hero in Rot ---------- */
.tbg-ss-hero, .tbg-ss-hero.has-image {
	background:
		radial-gradient(900px 420px at 88% -10%, rgba(255, 255, 255, .22), transparent 60%),
		radial-gradient(700px 500px at -10% 110%, rgba(0, 0, 0, .18), transparent 60%),
		linear-gradient(135deg, var(--tbg-primary) 0%, var(--tbg-dark) 100%);
	padding-bottom: clamp(110px, 13vw, 170px);
}
.tbg-ss-hero.has-image {
	background:
		linear-gradient(100deg, color-mix(in srgb, var(--tbg-dark) 92%, transparent) 0%, color-mix(in srgb, var(--tbg-primary) 70%, transparent) 55%, color-mix(in srgb, var(--tbg-primary) 20%, transparent) 100%),
		var(--tbg-hero) center / cover no-repeat;
}
.tbg-ss-hero-deco span { border-color: rgba(255, 255, 255, .22); animation: tbgss-float 9s ease-in-out infinite; }
.tbg-ss-hero-deco span:nth-child(2) { border-color: rgba(255, 255, 255, .35); animation-delay: -3s; animation-duration: 11s; }
.tbg-ss-hero-deco span:nth-child(3) { background: rgba(255, 255, 255, .14); animation-delay: -5s; }
.tbg-ss-hero-deco span:nth-child(4) { width: 60px; height: 60px; left: 8%; bottom: 22%; background: rgba(255, 255, 255, .18); border: 0; animation-duration: 7s; }
.tbg-ss-hero.has-image .tbg-ss-hero-deco { display: block; opacity: .6; }
@keyframes tbgss-float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-14px, 18px); } }
.tbg-ss-hero-stripes { position: absolute; inset: 0; opacity: .07; pointer-events: none;
	background: repeating-linear-gradient(-45deg, #fff 0 2px, transparent 2px 22px); animation: tbgss-stripes 30s linear infinite; }
@keyframes tbgss-stripes { to { background-position: 400px 0; } }
.tbg-ss-kicker { background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); }
.tbg-ss-hero-title { text-shadow: 0 2px 24px rgba(0, 0, 0, .18); }
.tbg-ss-hero-text { color: rgba(255, 255, 255, .95); }
.tbg-ss-hero .tbg-ss-btn-primary { background: #fff; color: var(--tbg-primary) !important; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.tbg-ss-hero .tbg-ss-btn-primary:hover { background: #fff; transform: translateY(-2px) scale(1.02); }
.tbg-ss-hero .tbg-ss-btn-ghost:hover { color: var(--tbg-primary) !important; }
.tbg-ss-hero-inner > * { animation: tbgss-up .9s cubic-bezier(.2, .7, .2, 1) both; }
.tbg-ss-hero-inner > *:nth-child(2) { animation-delay: .08s; }
.tbg-ss-hero-inner > *:nth-child(3) { animation-delay: .16s; }
.tbg-ss-hero-inner > *:nth-child(4) { animation-delay: .24s; }
@keyframes tbgss-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.tbg-ss-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 80px); fill: #fff; z-index: 1; }

/* Kennzahlen */
.tbg-ss-facts { margin-top: -60px; }
.tbg-ss-facts-grid { box-shadow: 0 20px 50px rgba(163, 22, 11, .14); border-top: 4px solid var(--tbg-primary); }
.tbg-ss-fact strong { font-size: 24px; font-variant-numeric: tabular-nums; }

/* ---------- Sprungleiste ---------- */
.tbg-ss-jump a.is-active { background: var(--tbg-primary); border-color: var(--tbg-primary); box-shadow: 0 6px 16px color-mix(in srgb, var(--tbg-primary) 35%, transparent); }
.tbg-ss-group { --g: var(--tbg-primary); }

/* ---------- Gruppen-Kopf: Rot mit großer Ziffer, schräge Kante ---------- */
.tbg-ss-group-head {
	background: linear-gradient(120deg, var(--tbg-primary) 0%, var(--tbg-dark) 100%);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), 0 100%);
	padding-bottom: 54px;
}
.tbg-ss-group-head::after { background: #fff; opacity: .08; }
.tbg-ss-group-num { color: #fff; filter: none; opacity: .85; text-transform: uppercase; font-size: 13px; }
.tbg-ss-group-water {
	position: absolute; right: 12px; bottom: -18px; font-size: clamp(110px, 26vw, 220px); font-weight: 900; line-height: 1;
	color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .35); letter-spacing: -.04em; pointer-events: none; user-select: none;
}
.tbg-ss.has-js .tbg-ss-group-head.is-visible .tbg-ss-group-water { animation: tbgss-water 1.2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes tbgss-water { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }

/* ---------- Abteilungen: Bild immer vollständig ---------- */
.tbg-ss-dept-media { background: #f6e9e6; isolation: isolate; }
.tbg-ss-dept-media::before {
	content: ""; position: absolute; inset: -40px; z-index: 0;
	background: var(--img, linear-gradient(135deg, var(--tbg-primary), var(--tbg-dark))) center / cover no-repeat;
	filter: blur(28px) saturate(1.3) brightness(.95); transform: scale(1.1); opacity: .85;
}
.tbg-ss-dept-media img { z-index: 1; object-fit: contain !important; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .25)); }
.tbg-ss-dept-media::after { z-index: 2; height: 35%; background: linear-gradient(to top, rgba(0, 0, 0, .25), transparent); }
.tbg-ss-dept-tag { z-index: 3; background: var(--tbg-primary); }
.tbg-ss.has-js .tbg-ss-dept .tbg-ss-dept-media img { transform: scale(.92); opacity: 0; transition: transform 1s cubic-bezier(.2, .7, .2, 1), opacity .8s ease; }
.tbg-ss.has-js .tbg-ss-dept.is-visible .tbg-ss-dept-media img { transform: scale(1); opacity: 1; }
.tbg-ss-dept-link:hover .tbg-ss-dept-media img { transform: scale(1.03) !important; }
.tbg-ss-dept:nth-child(odd) .tbg-ss-dept-body { background: var(--tbg-bg); }
.tbg-ss-dept-group, .tbg-ss-dept-lines li.is-time::before { --g: var(--tbg-primary); }
.tbg-ss-dept-link.is-nolink { cursor: default; }

/* Button mit Glanz-Effekt */
.tbg-ss-dept-cta { position: relative; overflow: hidden; background: var(--tbg-primary) !important; box-shadow: 0 10px 24px color-mix(in srgb, var(--tbg-primary) 30%, transparent); }
.tbg-ss-dept-cta::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); }
.tbg-ss-dept-link:hover .tbg-ss-dept-cta::after, .tbg-ss.has-js .tbg-ss-dept.is-visible .tbg-ss-dept-cta::after { animation: tbgss-shine 1.1s ease .4s 1; }
@keyframes tbgss-shine { to { left: 130%; } }
.tbg-ss-dept-cta span { transition: transform .2s ease; display: inline-block; }
.tbg-ss-dept-link:hover .tbg-ss-dept-cta span { transform: translateX(4px); }

@media (min-width: 900px) {
	.tbg-ss-dept-media { min-height: 520px; }
	.tbg-ss-dept-media img { padding: 28px; }
	.tbg-ss-dept h3 { font-size: calc(40px * var(--tbg-h-scale, 1)); }
}

/* Mitmachen in Rot */
.tbg-ss-join { background: linear-gradient(120deg, var(--tbg-primary), var(--tbg-dark)); position: relative; overflow: hidden; }
.tbg-ss-join::before { content: ""; position: absolute; inset: 0; opacity: .07; background: repeating-linear-gradient(-45deg, #fff 0 2px, transparent 2px 22px); }
.tbg-ss-join-inner { position: relative; }

@media (prefers-reduced-motion: reduce) {
	.tbg-ss-hero-deco span, .tbg-ss-hero-stripes, .tbg-ss-hero-inner > * { animation: none !important; }
	.tbg-ss.has-js .tbg-ss-dept .tbg-ss-dept-media img { opacity: 1; transform: none; }
}
.tbg-ss-group-water { z-index: -1; }
.tbg-ss-group-head .tbg-ss-wrap { isolation: isolate; }
@media (max-width: 640px) {
	.tbg-ss-group-water { right: 4px; bottom: auto; top: -14px; font-size: 96px; -webkit-text-stroke-color: rgba(255, 255, 255, .25); }
	.tbg-ss-group-head p { max-width: 82%; }
}

/* =====================================================================
   v1.4 – Trainingszeiten, Schnellzugriff
   ===================================================================== */

/* Karte: nur Bild, Titel und Button sind Links */
.tbg-ss-dept-link { color: var(--tbg-ink); }
a.tbg-ss-dept-media { display: block; }
.tbg-ss-dept h3 a { color: inherit !important; text-decoration: none; background: linear-gradient(var(--tbg-primary), var(--tbg-primary)) 0 100% / 0 3px no-repeat; transition: background-size .3s ease; }
.tbg-ss-dept h3 a:hover { background-size: 100% 3px; }
.tbg-ss-dept-link:hover .tbg-ss-dept-cta::after { animation: none; }
.tbg-ss-dept-cta:hover::after { animation: tbgss-shine 1.1s ease 1; }
.tbg-ss-dept-cta:hover span { transform: translateX(4px); }
.tbg-ss-dept-cta { color: #fff !important; text-decoration: none !important; }

/* Trainingszeiten-Block */
.tbg-ss-tz { margin: 4px 0 22px; padding: 14px 16px 12px; background: #fff; border: 1px solid var(--tbg-line); border-left: 4px solid var(--tbg-primary); border-radius: calc(var(--tbg-radius, 16px) * .75); box-shadow: 0 6px 18px rgba(163, 22, 11, .06); }
.tbg-ss-dept:nth-child(odd) .tbg-ss-tz { background: #fff; }
.tbg-ss-tz-title { margin: 0 0 8px !important; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tbg-primary); }
.tbg-ss-tz-list { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 0; }
.tbg-ss-tz-row { display: flex; gap: 12px; align-items: flex-start; margin: 0 !important; padding: 9px 0; border-top: 1px dashed var(--tbg-line); }
.tbg-ss-tz-row:first-child { border-top: 0; }
.tbg-ss-tz-row.is-more { display: none; }
.tbg-ss-tz.is-open .tbg-ss-tz-row.is-more { display: flex; animation: tbgss-in .3s ease both; }
.tbg-ss-tz-day { flex: 0 0 40px; height: 40px; border-radius: 10px; background: var(--tbg-primary); color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; letter-spacing: .02em; }
.tbg-ss-tz-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.tbg-ss-tz-time { font-weight: 800; font-size: 16px; color: var(--tbg-ink); font-variant-numeric: tabular-nums; }
.tbg-ss-tz-sp { font-size: 14px; font-weight: 650; color: var(--tbg-dark); }
.tbg-ss-tz-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 14px; color: var(--tbg-muted); }
.tbg-ss-tz-tr::before { content: "· "; }
.tbg-ss-tz-from { color: var(--tbg-primary); font-weight: 700; }
.tbg-ss-tz-toggle { margin-top: 6px; padding: 8px 0; border: 0; background: none; color: var(--tbg-primary); font: inherit; font-size: 15px; font-weight: 750; cursor: pointer; min-height: 44px; }
.tbg-ss-tz-toggle::after { content: " ▾"; }
.tbg-ss-tz.is-open .tbg-ss-tz-toggle::after { content: " ▴"; }
.tbg-ss-tz-halls { margin: 8px 0 0 !important; padding-top: 8px; border-top: 1px solid var(--tbg-line); display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.tbg-ss-tz-halls a { color: var(--tbg-ink) !important; text-decoration: none; }
.tbg-ss-tz-halls a:hover { color: var(--tbg-primary) !important; text-decoration: underline; }

/* Schnellzugriff */
.tbg-ss-quick { padding: 40px 0 8px; }
.tbg-ss-quick-title { margin: 0 0 14px !important; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tbg-primary); }
.tbg-ss-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tbg-ss-quick-item {
	position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; min-height: 112px;
	background: #fff; border: 1px solid var(--tbg-line); border-radius: var(--tbg-radius, 16px); color: var(--tbg-ink) !important; text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(163, 22, 11, .06); transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; overflow: hidden;
}
.tbg-ss-quick-item::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--tbg-primary), var(--tbg-dark)); opacity: 0; transition: opacity .25s ease; z-index: 0; }
.tbg-ss-quick-item > * { position: relative; z-index: 1; }
.tbg-ss-quick-item:hover, .tbg-ss-quick-item:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(163, 22, 11, .2); color: #fff !important; }
.tbg-ss-quick-item:hover::before, .tbg-ss-quick-item:focus-visible::before { opacity: 1; }
.tbg-ss-quick-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--tbg-primary) 10%, #fff); color: var(--tbg-primary); transition: background .2s ease, color .2s ease; }
.tbg-ss-quick-item:hover .tbg-ss-quick-icon { background: rgba(255, 255, 255, .2); color: #fff; }
.tbg-ss-quick-label { font-weight: 750; font-size: 16px; line-height: 1.25; padding-right: 18px; }
.tbg-ss-quick-arrow { position: absolute; right: 14px; bottom: 14px; font-weight: 800; color: var(--tbg-primary); transition: transform .2s ease, color .2s ease; }
.tbg-ss-quick-item:hover .tbg-ss-quick-arrow { transform: translateX(4px); color: #fff; }
.tbg-ss-quick-item.is-join { background: var(--tbg-primary); color: #fff !important; border-color: var(--tbg-primary); }
.tbg-ss-quick-item.is-join .tbg-ss-quick-icon { background: rgba(255, 255, 255, .2); color: #fff; }
.tbg-ss-quick-item.is-join .tbg-ss-quick-arrow { color: #fff; }
.tbg-ss-quick-item.is-exit { box-shadow: none; }
.tbg-ss-quick-item.is-exit .tbg-ss-quick-icon { background: #f3f3f3; color: #6b6b6b; }
@media (min-width: 760px) {
	.tbg-ss-quick-grid { grid-template-columns: repeat(5, 1fr); }
	.tbg-ss-quick { padding-top: 48px; }
}
@media (max-width: 400px) { .tbg-ss-quick-item:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; } }
@media (max-width: 400px) { .tbg-ss-quick-item:last-child:nth-child(odd) .tbg-ss-quick-arrow { bottom: auto; top: 50%; transform: translateY(-50%); } }
.tbg-ss-tz-toggle:focus { outline: none; } .tbg-ss-tz-toggle:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }

/* v1.6 – Customizer: keine Animationen */
.tbg-no-anim .tbg-ss *, .tbg-no-anim .tbg-ss *::before, .tbg-no-anim .tbg-ss *::after { animation: none !important; transition: none !important; }
.tbg-no-anim .tbg-ss.has-js .tbg-ss-reveal, .tbg-no-anim .tbg-ss.has-js .tbg-ss-dept .tbg-ss-dept-media img { opacity: 1 !important; transform: none !important; }
.tbg-no-anim .tbg-ss-hero-stripes, .tbg-no-anim .tbg-ss-hero-deco { display: none; }

/* ---------- v1.7: Ausführliche Infos, Buttons, Ansprechpartner:innen ---------- */
.tbg-ss-btn-line { border: 2px solid var(--tbg-primary); color: var(--tbg-primary) !important; background: transparent; }
.tbg-ss-btn-line:hover { background: var(--tbg-primary); color: #fff !important; }

.tbg-ss-dept-extra { overflow: hidden; transition: height .35s cubic-bezier(.2, .7, .2, 1); grid-column: 1 / -1; }
.tbg-ss-dept-extra[hidden] { display: none !important; }
.tbg-ss-extra-inner { padding-top: 1.25rem; padding-bottom: 1.75rem; border-top: 3px solid var(--tbg-primary); background: var(--tbg-bg, #fff); }
.tbg-ss-dept.is-expanded .tbg-ss-dept-more { transform: rotate(45deg); }

.tbg-ss-x-text, .tbg-dlg-content { font-size: 1.02em; line-height: 1.65; color: var(--tbg-ink, #1d1d1f); }
.tbg-ss-x-text > :first-child, .tbg-dlg-content > :first-child { margin-top: 0; }
.tbg-ss-x-text img, .tbg-dlg-content img { max-width: 100%; height: auto; border-radius: calc(var(--tbg-radius, 14px) * .6); }
.tbg-ss-x-text h2, .tbg-ss-x-text h3, .tbg-dlg-content h2, .tbg-dlg-content h3 { font-family: var(--tbg-font-head, inherit); color: var(--tbg-dark, #111); line-height: 1.2; margin: 1.2em 0 .4em; }
.tbg-ss-x-text a, .tbg-dlg-content a { color: var(--tbg-primary); text-decoration: underline; text-underline-offset: 2px; }
.tbg-ss-x-text ul, .tbg-dlg-content ul { padding-left: 1.2em; }

.tbg-ss-x-btns { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 .25rem; }
.tbg-dlg-foot { display: flex; flex-wrap: wrap; gap: .6rem; }
.tbg-dlg-foot .tbg-ss-btn { flex: 1 1 12rem; justify-content: center; text-align: center; }

.tbg-ss-x-contacts { margin-top: 1.5rem; }
.tbg-ss-x-contacts h4 { margin: 0 0 .75rem; font-family: var(--tbg-font-head, inherit); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tbg-muted, #6b6b70); }
.tbg-ss-x-contacts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.tbg-ss-contact { display: flex; gap: .85rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--tbg-line, #e6e6e9); border-radius: var(--tbg-radius, 14px); background: #fff; }
.tbg-ss-avatar { flex: 0 0 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--tbg-primary), color-mix(in srgb, var(--tbg-primary) 55%, #000)); }
.tbg-ss-cinfo { min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.tbg-ss-cinfo strong { font-size: 1.02em; color: var(--tbg-dark, #111); }
.tbg-ss-crole, .tbg-ss-cmail { font-size: .88em; color: var(--tbg-muted, #6b6b70); overflow-wrap: anywhere; }
.tbg-ss-cbtns { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.tbg-ss-cbtn { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .35rem .75rem; border-radius: 999px; font-size: .88em; font-weight: 600; text-decoration: none !important; border: 1px solid var(--tbg-line, #e6e6e9); color: var(--tbg-dark, #111) !important; background: #fff; transition: transform .15s, box-shadow .15s; }
.tbg-ss-cbtn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
.tbg-ss-cbtn.is-mail svg { color: var(--tbg-primary); }
.tbg-ss-cbtn.is-phone svg { color: #2e7d32; }
.tbg-ss-cbtn.is-wa svg { color: #25d366; }
.tbg-ss-cbtn.is-tg svg { color: #229ed9; }
@media (max-width: 480px) {
	.tbg-ss-cbtn span { font-size: .85em; }
	.tbg-ss-cbtns { gap: .35rem; }
}
.tbg-dlg-body .tbg-dlg-content { margin-bottom: 18px; }
.tbg-dlg-body .tbg-ss-x-contacts { margin-bottom: 18px; }
.tbg-dlg .tbg-dlg-foot { flex-wrap: wrap; }
.tbg-dlg .tbg-dlg-foot .tbg-ss-btn { flex: 1 1 13rem; justify-content: center; text-align: center; }
.tbg-dlg .tbg-dlg-foot .tbg-ss-btn-line, .tbg-ss-x-btns .tbg-ss-btn-line { background: #fff; color: var(--tbg-primary) !important; border: 2px solid var(--tbg-primary); }
.tbg-dlg .tbg-dlg-foot .tbg-ss-btn-line:hover, .tbg-ss-x-btns .tbg-ss-btn-line:hover { background: var(--tbg-primary); color: #fff !important; }

/* 1.7.1: „Probetraining anfragen“ – farblich abgesetzt und hervorgehoben */
.tbg-ss-btn-trial, .tbg-dlg .tbg-dlg-foot .tbg-ss-btn-trial, .tbg-ss-x-btns .tbg-ss-btn-trial { background: linear-gradient(135deg, #2e7d32, #1b5e20); color: #fff !important; border: 2px solid #1b5e20; font-weight: 800; box-shadow: 0 6px 16px rgba(46, 125, 50, .35); }
.tbg-ss-btn-trial:hover, .tbg-ss-x-btns .tbg-ss-btn-trial:hover { background: linear-gradient(135deg, #388e3c, #2e7d32); color: #fff !important; transform: translateY(-1px); }
