/*
Theme Name:   ASG Schützenhaus
Theme URI:    https://altschuetzen-pullach.de/
Description:  Child-Theme von Twenty Twenty-Five für die Altschützengesellschaft Pullach 1908 e.V. – im Stil der Livestream-Overlays und YouTube-Thumbnails („Live aus dem Schützenhaus“): dunkel, grünes Leuchten, Zielscheiben-Ringe, Bauchbinden-Leisten. Stilvariante „Hell (Inhalt)“ enthalten.
Author:       ASG Pullach
Template:     twentytwentyfive
Version:      1.4.1
Requires at least: 6.6
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:  asg-schuetzenhaus
*/

/* Fokusrahmen: nur bei Tastaturbedienung (nicht nach Mausklick), grün und abgerundet statt weißem Kasten */
:where(.wp-site-blocks) :focus:not(:focus-visible) { outline: none; }
:where(.wp-site-blocks) :where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
	outline: 2px solid var(--asg-glow, #2fb877); outline-offset: 4px; border-radius: 4px;
}

/* =========================================================================
   0. Variablen
   ========================================================================= */
:root {
	--asg-bg: var(--wp--preset--color--hintergrund);
	--asg-surface: var(--wp--preset--color--flaeche);
	--asg-text: var(--wp--preset--color--text);
	--asg-text-2: var(--wp--preset--color--text-2);
	--asg-text-3: var(--wp--preset--color--text-3);
	--asg-link: var(--wp--preset--color--link);
	--asg-line: var(--wp--custom--linie);
	--asg-shadow: var(--wp--custom--schatten-karte);
	--asg-green: #1e8c5a;
	--asg-green-flaeche: #1b8253; /* weiße Schrift auf Grün (4,8 : 1) */
	--asg-glow: #2fb877;
	--asg-bar: rgba(28, 31, 34, .92);
	--asg-cond: var(--wp--preset--font-family--cond);
	--asg-body: var(--wp--preset--font-family--body);
}
/* Dunkle Bereiche (Kopf, Hero, Seitenkopf, RWK-Karte, Footer) bleiben auch in der hellen Variante dunkel */
.asg-dunkel {
	--asg-bg: #0b0e10;
	--asg-surface: #161c20;
	--asg-text: #ffffff;
	--asg-text-2: #c8ccd0;
	--asg-text-3: #8b9399;
	--asg-link: #2fb877;
	--asg-line: rgba(255, 255, 255, .08);
	color: var(--asg-text);
}
.asg-dunkel :where(h1, h2, h3, h4, h5, h6) { color: var(--asg-text); }
.asg-dunkel a:where(:not(.wp-element-button)) { color: var(--asg-link); }

body { -webkit-font-smoothing: antialiased; }
/* keine Lücken zwischen Kopf, Inhalt und Footer */
.wp-site-blocks > * + * { margin-block-start: 0; }
.asg-main > * { margin-block-start: 0; }

/* =========================================================================
   1. Blockstile (auch im Editor nutzbar)
   ========================================================================= */

/* Bauchbinde: dunkle Leiste, grüner Streifen links, oben klein/grau, darunter groß/weiß */
.is-style-asg-bauchbinde {
	--asg-text: #fff; --asg-text-2: #c8ccd0;
	position: relative;
	display: block;
	width: fit-content;
	max-width: 100%;
	padding: 12px 26px 14px 32px;
	background: var(--asg-bar);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
	color: #fff;
	font-family: var(--asg-cond);
	font-weight: 300;
}
.is-style-asg-bauchbinde::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: var(--asg-green); }
.is-style-asg-bauchbinde > * { margin: 0 !important; font-family: var(--asg-cond) !important; font-weight: 300 !important; letter-spacing: .005em; }
.is-style-asg-bauchbinde > :first-child { font-size: 17px; line-height: 1.25; color: #c8ccd0; }
.is-style-asg-bauchbinde > :nth-child(2) { font-size: 34px; line-height: 1.08; color: #fff; margin-top: 2px !important; }

/* Schützenhaus: dunkler Grund, grünes Leuchten, Zielscheiben-Ringe */
.is-style-asg-schuetzenhaus {
	--asg-text: #fff; --asg-text-2: #c8ccd0; --asg-link: #2fb877;
	color: #fff;
	background:
		radial-gradient(circle at 25% 50%, rgba(30, 140, 90, .40) 0, rgba(30, 140, 90, .10) 300px, rgba(30, 140, 90, 0) 560px),
		repeating-radial-gradient(circle at 25% 50%, transparent 0 58px, rgba(255, 255, 255, .06) 58px 60px),
		linear-gradient(180deg, #11161a 0%, #0a0d0f 100%) !important;
}

/* Leuchtring: Bild (Wappen) im runden Ring mit grünem Schein */
.wp-block-image.is-style-asg-leuchtring {
	width: 300px; max-width: 100%; aspect-ratio: 1; border-radius: 50%;
	display: grid; place-items: center; position: relative;
	border: 4px solid var(--asg-glow);
	box-shadow: 0 0 0 12px rgba(47, 184, 119, .10), 0 0 50px rgba(47, 184, 119, .45), inset 0 0 40px rgba(47, 184, 119, .22);
	box-sizing: border-box;
}
.wp-block-image.is-style-asg-leuchtring.aligncenter { margin-left: auto; margin-right: auto; }
.wp-block-image.is-style-asg-leuchtring img { width: auto; height: 76%; max-width: 80%; object-fit: contain; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .7)); }

/* Überschrift mit grünem Balken */
.is-style-asg-streifen::before {
	content: ""; display: inline-block; width: 6px; height: .8em; background: var(--asg-green);
	margin-right: 14px; vertical-align: -.06em;
}

/* Karte */
.is-style-asg-karte { background: var(--asg-surface); border-radius: 6px; padding: 26px 26px 24px !important; box-shadow: var(--asg-shadow); position: relative; overflow: hidden; padding-left: 30px !important; }
.is-style-asg-karte::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--asg-green); }
.is-style-asg-karte > * { margin-block: 0 !important; }
.is-style-asg-karte > * + * { margin-top: 8px !important; }
.is-style-asg-karte h3 { font-size: 20px; }
.is-style-asg-karte p:not(.asg-icon) { color: var(--asg-text-2); }
.asg-icon { color: var(--asg-glow); margin: 0 0 14px !important; line-height: 1; }

/* Symbole der Mitmachen-Karten (gezeichnet, einheitliche Strichstärke) */
.asg-icon[class*="asg-icon--"] { font-size: 0; }
.asg-icon[class*="asg-icon--"]::before { content: ""; display: block; width: 44px; height: 44px; background: currentColor; -webkit-mask: var(--asg-icon) center / contain no-repeat; mask: var(--asg-icon) center / contain no-repeat; }
.asg-icon--uhr { --asg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E"); }
.asg-icon--stand { --asg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12.5' rx='2'/%3E%3Cpath d='M8.5 20.5h7M12 16.5v4'/%3E%3Ccircle cx='12' cy='10.25' r='3.6'/%3E%3Ccircle cx='12' cy='10.25' r='1' fill='black'/%3E%3C/svg%3E"); }
.asg-icon--haus { --asg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 11 12 4l8.5 7'/%3E%3Cpath d='M5.5 9.5V20h13V9.5'/%3E%3Cpath d='M10 20v-5.5h4V20'/%3E%3C/svg%3E"); }

/* Buttons: Umriss-Variante */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: var(--asg-text); border: 2px solid var(--asg-line);
	padding: 10px 20px;
}
.asg-dunkel .wp-block-button.is-style-outline > .wp-block-button__link { border-color: rgba(255, 255, 255, .25); color: #fff; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: var(--asg-glow); background: transparent; color: var(--asg-text);
	box-shadow: 0 0 20px rgba(47, 184, 119, .3);
}

/* =========================================================================
   2. Kopf
   ========================================================================= */
.asg-kopfbereich { position: sticky; top: var(--wp-admin--admin-bar--height, 0); z-index: 50; }
.asg-kopf {
	position: relative; isolation: isolate;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	padding-top: 10px !important; padding-bottom: 10px !important;
}
/* Hintergrund mit Weichzeichner auf eigener Ebene – direkt am Kopf würde er das Handy-Menü (position: fixed) einsperren */
.asg-kopf {
	/* Mitte von Ringen und Leuchten = Mitte des Wappens (Seitenrand bzw. Inhaltsbreite 1200 px + halbe Wappenbreite) */
	--asg-kopf-x: calc(max(clamp(16px, 4vw, 40px), (100% - 1200px) / 2) + 19px);
}
.asg-kopf::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(circle at var(--asg-kopf-x) 50%, rgba(30, 140, 90, .42) 0, rgba(30, 140, 90, .12) 90px, rgba(30, 140, 90, 0) 280px),
		repeating-radial-gradient(circle at var(--asg-kopf-x) 50%, transparent 0 46px, rgba(255, 255, 255, .07) 46px 48px, transparent 48px 88px),
		linear-gradient(180deg, #11161a 0%, #0b0e10 100%);
}
.asg-kopf__zeile { min-height: 56px; gap: 24px; }
.asg-marke { gap: 14px; flex-shrink: 0; }
.asg-marke__wappen { margin: 0; }
.asg-marke__wappen img { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }
.asg-marke__name { gap: 0; }
.asg-marke__titel { margin: 0; font-size: 19px; line-height: 1.15; }
.asg-marke__titel a { color: #fff !important; text-decoration: none; }
.asg-marke__zusatz { margin: 0; font-family: var(--asg-cond); font-size: 14px; color: #c8ccd0; line-height: 1.2; }
.asg-marke__kurz { display: none; margin: 0; font-weight: 600; font-size: 18px; line-height: 1.15; }
.asg-marke__kurz a { color: #fff !important; text-decoration: none; }
.asg-marke { min-width: 0; }

.asg-kopf__rechts { gap: 8px; }
.asg-nav { --navigation-layout-justification-setting: flex-end; }
.asg-nav .wp-block-navigation-item__content { color: #e6e9eb; white-space: nowrap; padding: 10px 12px; position: relative; border-radius: 4px; text-decoration: none !important; }
.asg-nav .wp-block-navigation__container { gap: 2px; }
.asg-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--asg-glow);
	box-shadow: 0 0 8px var(--asg-glow); transform: scaleX(0); transition: transform .2s;
}
/* aktiv nur über aria-current (die Klasse current-menu-item kann beim Übernehmen eines alten Menüs fest hängen bleiben) */
.asg-nav .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.asg-nav .wp-block-navigation__container > .wp-block-navigation-item > [aria-current="page"]::after,
.asg-nav .wp-block-navigation__container > .wp-block-navigation-item:has(.wp-block-navigation__submenu-container [aria-current="page"]) > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.asg-nav .wp-block-navigation__submenu-icon { color: #8b9399; }
/* Untermenü als Bauchbinde */
.asg-nav .wp-block-navigation__submenu-container {
	background: var(--asg-bar) !important; color: #fff !important;
	border: 0 !important; border-left: 4px solid var(--asg-green) !important;
	box-shadow: 0 14px 30px rgba(0, 0, 0, .5); padding: 6px 0 !important; min-width: 220px !important;
}
.asg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-family: var(--asg-cond); font-weight: 300; font-size: 17px; padding: 8px 16px; color: #fff;
}
.asg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: rgba(47, 184, 119, .12); }
/* Handy-Menü (Overlay) */
.asg-nav .wp-block-navigation__responsive-container.is-menu-open { background: #0f1316 !important; color: #fff !important; padding: 20px clamp(16px, 4vw, 40px); }
.asg-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 19px; padding: 10px 4px; }
.asg-nav .wp-block-navigation__responsive-container.is-menu-open :is(.wp-block-navigation__responsive-container-content, .wp-block-navigation__container, .wp-block-navigation-item, .wp-block-navigation__submenu-container) {
	align-items: flex-start !important; text-align: left; --navigation-layout-justification-setting: flex-start; --navigation-layout-justify: flex-start;
}
.asg-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 4px; width: 100%; }
.asg-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	box-shadow: none; background: transparent !important; border-left: 3px solid var(--asg-green) !important; padding: 0 0 0 10px !important; margin: 0 0 6px 6px;
}
.asg-nav .wp-block-navigation__responsive-container-open,
.asg-nav .wp-block-navigation__responsive-container-close { color: #fff; }
.asg-nav .wp-block-navigation__responsive-container-open {
	border: 1px solid rgba(255, 255, 255, .15); border-radius: 4px; width: 44px; height: 44px; align-items: center; justify-content: center;
}
/* Live-Pille */
.asg-live-pille .wp-block-button__link {
	border: 1px solid rgba(47, 184, 119, .55) !important; border-radius: 999px !important; padding: 7px 14px 7px 12px !important;
	font-size: 14px !important; letter-spacing: .04em; color: #fff !important; background: transparent !important;
	box-shadow: 0 0 18px rgba(47, 184, 119, .25); white-space: nowrap;
}
.asg-live-pille .wp-block-button__link::before {
	content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--asg-glow);
	box-shadow: 0 0 8px var(--asg-glow); margin-right: 8px; vertical-align: 1px;
}

/* Zugangsmenü (Mein ASG / Mein BSSB): Personen-Symbol, klappt auf */
.asg-zugang-menue { position: relative; flex-shrink: 0; }
.asg-zugang-menue summary {
	list-style: none; cursor: pointer; width: 36px; height: 36px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid rgba(255, 255, 255, .25); border-radius: 4px; color: #fff;
}
.asg-zugang-menue summary::-webkit-details-marker { display: none; }
.asg-zugang-menue summary::before {
	content: ""; width: 18px; height: 18px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-4.4 0-9 2.2-9 5.5V22h18v-2.5C21 16.2 16.4 14 12 14z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-4.4 0-9 2.2-9 5.5V22h18v-2.5C21 16.2 16.4 14 12 14z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.asg-zugang-menue summary:hover, .asg-zugang-menue[open] summary { border-color: var(--asg-glow); box-shadow: 0 0 16px rgba(47, 184, 119, .3); }
.asg-zugang-menue summary:focus-visible { outline: 2px solid var(--asg-glow); outline-offset: 3px; }
.asg-zugang-menue__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.asg-zugang-menue ul {
	position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 250px; margin: 0; padding: 6px 0; list-style: none;
	background: rgba(28, 31, 34, .98); border-left: 4px solid var(--asg-green); box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
}
.asg-zugang-menue a { display: block; padding: 10px 16px; color: #fff !important; text-decoration: none !important; }
.asg-zugang-menue a:hover, .asg-zugang-menue a:focus-visible { background: rgba(47, 184, 119, .12); }
.asg-zugang-menue b { display: block; font-weight: 600; font-size: 16px; }
.asg-zugang-menue small { display: block; font-family: var(--asg-cond); font-size: 14px; color: #c8ccd0; }

/* Mitglieder-Knopf (Mitgliederbereich mein.altschuetzen-pullach.de) – bleibt auch am Handy sichtbar */
.asg-mitglieder-knopf { flex-shrink: 0; }
.asg-mitglieder-knopf .wp-block-button__link {
	/* nur Symbol: Text bleibt für Screenreader (font-size 0) und als Tooltip (title) */
	border: 1px solid rgba(255, 255, 255, .25) !important; border-radius: 4px !important; padding: 0 !important;
	width: 36px; height: 36px; font-size: 0 !important; color: #fff !important; background: transparent !important;
	display: inline-flex; align-items: center; justify-content: center;
}
.asg-mitglieder-knopf .wp-block-button__link::before {
	content: ""; width: 16px; height: 16px; background: currentColor; flex-shrink: 0;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-4.4 0-9 2.2-9 5.5V22h18v-2.5C21 16.2 16.4 14 12 14z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-4.4 0-9 2.2-9 5.5V22h18v-2.5C21 16.2 16.4 14 12 14z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.asg-mitglieder-knopf .wp-block-button__link:hover { border-color: var(--asg-glow) !important; box-shadow: 0 0 16px rgba(47, 184, 119, .3); }
.asg-zugang small { display: block; font-family: var(--asg-cond); font-size: 13px; color: #8b9399; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asg-zugang br { display: none; }
.asg-zugang li { padding: 4px 0 6px; }

/* =========================================================================
   3. Hero (Startseite)
   ========================================================================= */
.asg-hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(circle at 26% 50%, rgba(30, 140, 90, .40) 0, rgba(30, 140, 90, .10) 300px, rgba(30, 140, 90, 0) 560px),
		radial-gradient(ellipse at 70% 50%, rgba(30, 140, 90, .10) 0, rgba(30, 140, 90, 0) 700px),
		repeating-radial-gradient(circle at 26% 50%, transparent 0 178px, rgba(255, 255, 255, .07) 178px 180px, transparent 180px 238px, rgba(255, 255, 255, .07) 238px 240px),
		linear-gradient(180deg, #11161a 0%, #0a0d0f 100%);
	padding-top: 56px !important; padding-bottom: 56px !important;
}
.asg-hero__spalten { min-height: 408px; gap: 40px; margin: 0 !important; }
.asg-hero__schriftzug { margin: 0; }
.asg-hero__schriftzug img { height: 74px; width: auto; max-width: 100%; }
.asg-hero__text > * { margin-block: 0; }
.asg-hero__text .is-style-asg-bauchbinde { margin-top: 22px; }
.asg-lead { font-family: var(--asg-cond); font-weight: 300; font-size: 22px; color: #c8ccd0; max-width: 560px; margin: 26px 0 30px !important; line-height: 1.5; }

/* =========================================================================
   4. Abschnitte
   ========================================================================= */
.asg-abschnitt { padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: var(--wp--preset--spacing--60) !important; }
.asg-abschnitt + .asg-abschnitt { border-top: 1px solid var(--asg-line); }
.asg-abschnitt__kopf { margin-bottom: 30px; gap: 20px; }
.asg-abschnitt__kopf h2 { margin: 2px 0 0; }
.asg-kicker { margin: 0; font-family: var(--asg-cond); font-weight: 300; font-size: 17px; color: var(--asg-text-2); letter-spacing: .02em; }
.asg-mehr { margin: 0; font-size: 15px; white-space: nowrap; }
/* Überschrift direkt unter einem Kicker: überall gleicher, enger Abstand (auch in Spalten mit Block-Abstand) */
.asg-kicker + :is(h1, h2, h3, .wp-block-heading, .wp-block-post-title, .wp-block-query-title) { margin-top: 2px !important; }
/* Begrüßung oben auf der Startseite */
.asg-begruessung__spalten { gap: 48px; margin-block: 0 !important; }
.asg-begruessung__inhalt > * { margin-block: 0; }
.asg-begruessung__inhalt .asg-kicker + h2 { margin-bottom: 18px !important; }
.asg-begruessung__text { max-width: 760px; font-size: var(--wp--preset--font-size--large); line-height: 1.5; color: var(--asg-text); margin: 0 0 10px !important; }
.asg-begruessung__gruss { font-family: var(--asg-cond); font-weight: 300; font-size: 19px; color: var(--asg-text-2); margin-top: 16px !important; }
.asg-hinweis { padding: 12px 16px; border: 1px dashed var(--asg-glow); border-radius: 6px; color: var(--asg-text-2); font-size: 15px; }

/* ---------- RWK-Karte (Shortcode [asg_naechster_rwk]) ---------- */
.asg-rwk-spalten { gap: 24px; align-items: stretch !important; }
.asg-rwk-spalten > .wp-block-column { display: flex; flex-direction: column; }
.asg-rwk-spalten > .wp-block-column > * { flex: 1; margin: 0; }
.asg-match {
	position: relative; overflow: hidden; border-radius: 6px; min-height: 360px; color: #fff !important; text-decoration: none !important;
	background:
		radial-gradient(circle at 50% 42%, rgba(30, 140, 90, .30) 0, rgba(30, 140, 90, 0) 300px),
		linear-gradient(180deg, #11161a 0%, #0a0d0f 100%);
	box-shadow: 0 20px 50px rgba(0, 0, 0, .35); display: flex; flex-direction: column; transition: box-shadow .2s;
}
.asg-match:hover { box-shadow: 0 0 0 2px var(--asg-glow), 0 20px 50px rgba(0, 0, 0, .35), 0 0 30px rgba(47, 184, 119, .3); }
.asg-ringe { position: absolute; inset: 0; pointer-events: none;
	background: repeating-radial-gradient(circle at 50% 42%, transparent 0 38px, rgba(255, 255, 255, .07) 38px 40px); }
.asg-match__teams { position: relative; flex: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 34px 26px 10px; }
.asg-match--leer .asg-match__teams { display: flex; justify-content: center; text-align: center; color: #c8ccd0; }
.asg-team { text-align: center; display: block; }
.asg-team img { display: block; height: 140px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto 12px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .6)); }
.asg-team b { display: block; font-size: 19px; font-weight: 600; line-height: 1.2; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.asg-vs {
	width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; font-weight: 700; padding-top: 3px; box-sizing: border-box;
	background: radial-gradient(circle at 50% 35%, #1f3d2f 0%, #0e1714 72%); border: 3px solid var(--asg-glow);
	box-shadow: 0 0 0 8px rgba(47, 184, 119, .10), 0 0 34px rgba(47, 184, 119, .45), inset 0 0 16px rgba(0, 0, 0, .65);
}
.asg-match__band {
	position: relative; margin: 18px 22px 22px; background: rgba(28, 31, 34, .92); padding: 12px 20px 14px 28px;
	display: flex; justify-content: space-between; align-items: center; gap: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.asg-match__band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--asg-green); }
.asg-sub { display: block; font-family: var(--asg-cond); font-weight: 300; font-size: 16px; color: #c8ccd0; }
.asg-big { display: block; font-family: var(--asg-cond); font-weight: 300; font-size: 28px; line-height: 1.05; color: #fff; }
.asg-rechts { text-align: right; }
.asg-match--klein { min-height: 0; }
.asg-match--klein .asg-match__teams { padding: 22px 14px 4px; }
.asg-match--klein .asg-team img { height: 70px; margin-bottom: 8px; }
.asg-match--klein .asg-team b { font-size: 14px; }
.asg-match--klein .asg-vs { width: 56px; height: 56px; font-size: 24px; }
.asg-match--klein .asg-match__band { margin: 12px; padding: 10px 14px 11px 20px; }
.asg-match--klein .asg-big { font-size: 22px; }

/* ---------- Kein Heim-RWK in Sicht: Karte weg, Terminliste über die volle Breite in zwei Spalten ---------- */
.asg-ohne-rwk .asg-rwk-spalten > .wp-block-column:first-child { display: none; }
.asg-ohne-rwk .asg-rwk-spalten > .wp-block-column:last-child { flex-basis: 100% !important; }
.asg-ohne-rwk .asg-termine { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.asg-ohne-rwk .asg-termin + .asg-termin { border-top: 0; }
.asg-ohne-rwk .asg-termin:nth-child(n+3) { border-top: 1px solid var(--asg-line); }
@media (max-width: 760px) {
	.asg-ohne-rwk .asg-termine { grid-template-columns: 1fr; }
	.asg-ohne-rwk .asg-termin:nth-child(n+2) { border-top: 1px solid var(--asg-line); }
}

/* ---------- Terminliste (Shortcode [asg_termine]) ---------- */
.asg-termine { background: var(--asg-surface); border-radius: 6px; padding: 8px 0; box-shadow: var(--asg-shadow); height: 100%; box-sizing: border-box; }
.asg-termine__leer { padding: 14px 22px; margin: 0; color: var(--asg-text-3); }
.asg-termin { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 14px 22px; color: var(--asg-text) !important; text-decoration: none !important; }
.asg-termin + .asg-termin { border-top: 1px solid var(--asg-line); }
.asg-termin:hover { background: rgba(47, 184, 119, .06); }
.asg-datum { text-align: center; line-height: 1; border-left: 4px solid var(--asg-green); padding: 4px 0 4px 4px; }
.asg-datum small { display: block; font-family: var(--asg-cond); font-size: 14px; color: var(--asg-text-3); text-transform: uppercase; letter-spacing: .08em; }
.asg-datum strong { display: block; font-size: 30px; font-weight: 600; margin-top: 4px; }
.asg-termin__zeit { display: block; font-size: 14px; color: var(--asg-text-3); font-family: var(--asg-cond); }
.asg-termin__titel { display: block; font-weight: 600; font-size: 17px; line-height: 1.3; }
.asg-tag {
	display: inline-block; font: 600 11px/1 var(--asg-body); letter-spacing: .08em; padding: 4px 7px 3px; margin-right: 6px; border-radius: 3px;
	color: #fff; background: var(--asg-green-flaeche); vertical-align: 2px; border: 1px solid var(--asg-green-flaeche);
}
.asg-tag--live { background: transparent; color: var(--asg-glow); border-color: var(--asg-glow); }
.asg-tag--neutral { background: transparent; color: var(--asg-text-2); border-color: color-mix(in srgb, var(--asg-text-3) 60%, transparent); }

/* ---------- Saisonleiste (Shortcode [asg_saison]) ---------- */
.asg-saison { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.asg-saison__rwk { background: var(--asg-surface); border-radius: 6px; padding: 16px 16px 14px 20px; position: relative; overflow: hidden; box-shadow: var(--asg-shadow); }
.asg-saison__rwk::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--asg-green); }
.asg-saison__rwk.is-vorbei { opacity: .6; }
.asg-saison__rwk.is-vorbei::before { background: var(--asg-text-3); }
/* Auswärts: gestrichelter Streifen */
.asg-saison__rwk.is-auswaerts::before { background: repeating-linear-gradient(180deg, var(--asg-green) 0 6px, transparent 6px 10px); }
.asg-saison__rwk.is-naechster { box-shadow: inset 0 0 0 1px rgba(47, 184, 119, .6), 0 0 26px rgba(47, 184, 119, .18); }
.asg-saison__r { display: block; font-family: var(--asg-cond); font-size: 14px; color: var(--asg-text-3); }
.asg-saison__g { display: block; font-weight: 600; font-size: 16px; line-height: 1.25; margin: 4px 0 8px; color: var(--asg-text) !important; text-decoration: none !important; }
.asg-saison__d { display: block; font-family: var(--asg-cond); font-size: 15px; color: var(--asg-text-2); }
.asg-saison__rwk > a:last-child { font-size: 14px; }

/* ---------- Beitragskacheln ---------- */
.asg-kacheln .wp-block-post-template { gap: 16px; }
.asg-kacheln .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 260px; }
.asg-kacheln--start .wp-block-post-template.is-layout-grid { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 230px; }
.asg-kacheln--start .wp-block-post-template > li:first-child { grid-row: span 2; }
.asg-kacheln .wp-block-post-template > li { margin: 0; min-width: 0; }
.asg-kachel {
	position: relative; height: 100%; border-radius: 6px; overflow: hidden; isolation: isolate;
	background: radial-gradient(circle at 30% 25%, #2f5a3c 0, #1a3022 45%, #11161a 100%);
	transition: box-shadow .2s;
}
.asg-kachel:hover { box-shadow: 0 0 0 2px var(--asg-glow), 0 0 28px rgba(47, 184, 119, .3); }
.asg-kachel .wp-block-post-featured-image { position: absolute; inset: 0; margin: 0; height: 100%; z-index: -1; }
.asg-kachel .wp-block-post-featured-image a, .asg-kachel .wp-block-post-featured-image img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
.asg-kachel .wp-block-post-featured-image img { transition: transform .5s; }
.asg-kachel:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.asg-kachel::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(11, 14, 16, 0) 35%, rgba(11, 14, 16, .92) 100%); }
.asg-kachel__text { position: absolute !important; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px 20px 18px 24px; margin: 0 !important; pointer-events: none; }
.asg-kachel__text a { pointer-events: auto; }
.asg-kachel__text::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 5px; background: var(--asg-green); }
.asg-kachel__text > * { margin: 0 !important; }
.asg-kachel .wp-block-post-date { color: #c8ccd0; font-size: 15px; }
.asg-kachel .wp-block-post-title { font-family: var(--asg-cond); font-weight: 400; font-size: 24px; line-height: 1.15; margin-top: 2px !important; letter-spacing: 0; }
.asg-kachel .wp-block-post-title a { color: #fff !important; text-decoration: none !important; }
.asg-kachel .wp-block-post-title a::after { content: ""; position: absolute; inset: -400px 0 0 0; } /* ganze Kachel klickbar */
.asg-kacheln--start li:first-child .wp-block-post-title { font-size: 34px; }
.asg-seiten { margin-top: 36px !important; gap: 8px; }
.asg-seiten a, .asg-seiten span { padding: 6px 12px; border-radius: 4px; }
.asg-seiten .current { background: var(--asg-green-flaeche); color: #fff; }

/* ---------- Livestream ---------- */
.asg-live { gap: 40px; }
.asg-player { margin: 0; position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); background: #000; }
.asg-player a { display: block; height: 100%; position: relative; }
.asg-player img { width: 100%; height: 100% !important; object-fit: cover; }
/* Livestream-Karte: letzte Übertragung bzw. „Jetzt live“ (ohne Play-Knopf) */
.asg-stream-marke { position: absolute; top: 18px; left: 22px; z-index: 2; font-family: var(--asg-cond); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: #c8ccd0; display: inline-flex; align-items: center; gap: 8px; }
.asg-match--stream.ist-live .asg-stream-marke { color: #fff; }
.asg-match--stream.ist-live .asg-stream-marke::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #e5372b; box-shadow: 0 0 10px #e5372b; }
.asg-match--stream .asg-rechts .asg-big { color: var(--asg-glow); }
/* Neuestes YouTube-Video: nur das Vorschaubild (hat eigene Leiste), Datum und Titel klein darunter */
.asg-yt { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); background: #000; }
.asg-yt img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.asg-yt:hover img { transform: scale(1.02); }
.asg-yt:focus-visible { outline: 3px solid var(--asg-glow); outline-offset: 3px; }
.asg-yt__text { margin: 14px 0 0 !important; font-size: 15px; color: var(--asg-text-2); }
.asg-yt__text span { font-family: var(--asg-cond); text-transform: uppercase; letter-spacing: .06em; color: var(--asg-glow); margin-right: 6px; }
.asg-vereinsvideo { margin: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); background: #000; }
.asg-vereinsvideo video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.asg-video-text { color: var(--asg-text-2); margin: 20px 0 0 !important; max-width: 520px; }
.asg-fakten { list-style: none; padding: 0 !important; margin: 20px 0 26px !important; }
.asg-fakten li { padding: 10px 0 10px 20px; position: relative; border-bottom: 1px solid var(--asg-line); color: var(--asg-text-2); }
.asg-fakten li::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-radius: 50%; border: 2px solid var(--asg-glow); }
.asg-fakten strong { color: var(--asg-text); font-weight: 600; }

/* =========================================================================
   5. Seitenkopf (Seiten, Beiträge, Archive)
   ========================================================================= */
/* Wie die Abschnittsüberschriften der Startseite: Kicker + große leichte Überschrift mit grünem Balken */
.asg-seitenkopf { padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: 0 !important; }
.asg-seitenkopf__inhalt > * { margin-block: 0; }
.asg-seitenkopf h1 { font-size: var(--wp--preset--font-size--x-large); margin-top: 2px !important; }
.asg-kicker--meta { gap: 4px 14px; }
.asg-kicker--meta .wp-block-post-date, .asg-kicker--meta .wp-block-post-terms { font-size: 17px; color: var(--asg-text-2); margin: 0; }
.asg-kicker--meta .wp-block-post-terms a { color: var(--asg-link); }
.asg-seitenkopf .wp-block-term-description { margin-top: 14px !important; color: var(--asg-text-2); font-family: var(--asg-cond); font-size: 19px; max-width: 640px; }
.asg-seitenkopf + .asg-inhalt { padding-top: 32px !important; }

/* ---------- Schnellzugriff (Kategorien, Jahre) ---------- */
.asg-schnellzugriff { margin-bottom: 32px !important; display: flex; flex-direction: column; gap: 10px; }
.asg-schnellzugriff__zeile { gap: 14px !important; align-items: flex-start; }
.asg-schnellzugriff__titel { margin: 0; flex: 0 0 92px; padding-top: 7px; font-family: var(--asg-cond); font-size: 15px; color: var(--asg-text-3); }
.asg-chips { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.asg-chips li { margin: 0; }
.asg-chips a {
	display: inline-block; padding: 6px 14px; border: 1px solid color-mix(in srgb, var(--asg-text-3) 55%, transparent); border-radius: 999px; font-size: 15px;
	color: var(--asg-text) !important; text-decoration: none !important; transition: border-color .15s, box-shadow .15s;
}
.asg-chips a:hover { border-color: var(--asg-glow); box-shadow: 0 0 14px rgba(47, 184, 119, .25); }
.asg-chips .current-cat > a, .asg-chips a[aria-current] { background: var(--asg-green-flaeche); border-color: var(--asg-green-flaeche); color: #fff !important; }
.asg-chips .children { display: contents; list-style: none; }
@media (max-width: 560px) {
	.asg-schnellzugriff__zeile { flex-direction: column; gap: 6px !important; }
	.asg-schnellzugriff__titel { flex-basis: auto; padding-top: 0; }
	/* Jahre am Handy in einer wischbaren Zeile */
	.asg-schnellzugriff .wp-block-archives { flex-wrap: nowrap; overflow-x: auto; max-width: calc(100vw - 32px); padding-bottom: 4px !important; }
	.asg-schnellzugriff .wp-block-archives li { flex: 0 0 auto; }
}

/* ---------- Farbschalter ---------- */
.asg-farbschalter {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer;
	width: 36px; height: 36px; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 4px; background: transparent;
	color: #fff; font: 600 14px/1.2 var(--asg-body);
}
/* Beschriftung nur für Screenreader (Symbol genügt) */
.asg-farbschalter__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.asg-farbschalter[aria-pressed="true"] { border-color: var(--asg-glow); }
.asg-farbschalter:hover { border-color: var(--asg-glow); box-shadow: 0 0 16px rgba(47, 184, 119, .3); }
.asg-farbschalter:focus-visible { outline: 2px solid var(--asg-glow); outline-offset: 3px; }
.asg-farbschalter__symbol { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); box-sizing: border-box; }
.asg-kopf__rechts p:empty { display: none; }
.asg-kopf__rechts > p { margin: 0; }

/* Vom Besucher gewählt (Schalter im Kopf, gespeichert im Browser) – überschreibt die Grundeinstellung der Seite */
html[data-asg-farbe="hell"] {
	--wp--preset--color--hintergrund: #f2f4f3; --wp--preset--color--flaeche: #ffffff; --wp--preset--color--text: #1d2327;
	--wp--preset--color--text-2: #4d565c; --wp--preset--color--text-3: #6b747a; --wp--preset--color--link: #157a4b;
	--wp--custom--linie: rgba(0,0,0,.09); --wp--custom--schatten-karte: 0 10px 30px rgba(0,0,0,.08);
	color-scheme: light;
}
html[data-asg-farbe="dunkel"] {
	--wp--preset--color--hintergrund: #0b0e10; --wp--preset--color--flaeche: #161c20; --wp--preset--color--text: #ffffff;
	--wp--preset--color--text-2: #c8ccd0; --wp--preset--color--text-3: #8b9399; --wp--preset--color--link: #2fb877;
	--wp--custom--linie: rgba(255,255,255,.08); --wp--custom--schatten-karte: 0 10px 30px rgba(0,0,0,.25);
	color-scheme: dark;
}

/* =========================================================================
   6. Inhalt
   ========================================================================= */
.asg-inhalt { padding-top: 48px !important; padding-bottom: var(--wp--preset--spacing--60) !important; }
/* Text linksbündig unter der Seitenüberschrift (gleiche linke Kante wie das 1200-px-Raster), Spalte bleibt 760 px schmal.
   Breite und volle Blöcke (alignwide/alignfull) behalten ihre Breite. */
.asg-inhalt.is-layout-constrained > :not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright),
.asg-inhalt .is-layout-constrained > :not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright) {
	margin-left: max(0px, (100% - var(--wp--style--global--wide-size, 1200px)) / 2) !important;
	margin-right: auto !important;
}
.asg-inhalt .wp-block-post-content > h2 { font-size: 34px; }
.asg-inhalt .wp-block-post-content > h2::before { content: ""; display: inline-block; width: 6px; height: .8em; background: var(--asg-green); margin-right: 12px; vertical-align: -.06em; }
.asg-inhalt .wp-block-post-content img { border-radius: 6px; }
.asg-inhalt .wp-block-post-featured-image img { border-radius: 6px; max-height: 620px; object-fit: cover; }
.asg-meta { gap: 6px 18px; margin-bottom: 8px; }
.asg-meta .wp-block-post-terms a { color: var(--asg-link); }
.asg-schlagworte { margin-top: 32px; font-size: 15px; }
.asg-blaettern { margin-top: 48px !important; padding-top: 24px; border-top: 1px solid var(--asg-line); gap: 20px; }
.asg-blaettern a { font-weight: 600; }
.wp-block-table table { border-collapse: collapse; }
/* Alte Tabellen aus der Layers-Zeit (ohne Tabellen-Block): lesbar, mit festen Hintergründen im Theme-Stil */
.wp-block-post-content table { border-collapse: collapse; max-width: min(100%, var(--wp--style--global--content-size, 760px)); }
.wp-block-post-content > table { width: 100%; margin-block: 16px 28px; }
/* Logos in alten Tabellen (z. B. Links): gleich hohe weiße Kacheln statt unterschiedlich großer Bilder */
.wp-block-post-content table td:not([style*="background"]):not([bgcolor]) { padding: 14px 10px; }
.wp-block-post-content table td img {
	display: block; margin: 0 auto 8px; height: 88px; width: auto; max-width: 100%; object-fit: contain;
	background: #fff; padding: 8px; border-radius: 6px; box-sizing: border-box;
}
.wp-block-post-content table td a:has(img) { display: block; width: fit-content; margin: 0 auto; transition: transform .15s; }
.wp-block-post-content table td a:has(img):hover { transform: translateY(-2px); }
.wp-block-post-content table td br { display: none; }
.wp-block-post-content table td:not([style*="background"]):not([bgcolor]) strong { display: block; font-size: 15px; line-height: 1.3; }
/* Zwischenüberschriften im Fließtext (h3/h4 aus alten Seiten) */
.asg-inhalt .wp-block-post-content > :is(h3, h4) { font-family: var(--asg-cond); font-weight: 500; font-size: 24px; letter-spacing: .01em; margin-top: 44px; margin-bottom: 8px; }
.asg-inhalt .wp-block-post-content > h4 { font-size: 22px; }
.asg-inhalt .wp-block-post-content > :is(h3, h4):first-child { margin-top: 0; }
/* Google-Karte erst nach Klick (keine Datenübertragung an Google beim Seitenaufruf) */
.asg-karte { border: 1px solid var(--asg-line); border-radius: 8px; background: var(--asg-surface); padding: 22px; }
.asg-karte p { margin: 0 0 14px; font-size: 15px; color: var(--asg-text-2); }
.asg-karte__knoepfe { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.asg-karte iframe { display: block; width: 100%; height: 480px; border: 0; border-radius: 6px; }
.asg-karte.ist-geladen { padding: 0; border: 0; background: none; }
.wp-block-post-content :where(td, th) { padding: 6px 10px; vertical-align: top; overflow-wrap: break-word; }
.wp-block-post-content :where(td, th)[style*="background"],
.wp-block-post-content :where(td, th, tr)[bgcolor] {
	background: #1c1f22 !important; color: #fff !important; font-family: var(--asg-cond); font-weight: 400; font-size: 19px;
	border-left: 4px solid var(--asg-green); padding: 8px 14px !important;
}
.wp-block-post-content :where(td, th)[style*="background"] *, .wp-block-post-content :where(td, th, tr)[bgcolor] * { color: #fff !important; background: transparent !important; }
@media (max-width: 760px) {
	/* breite Tabellen seitlich wischbar statt abgeschnitten */
	.wp-block-post-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	/* Logo-Tabellen umbrechen statt wischen: zwei Logos pro Zeile */
	.wp-block-post-content table:has(td img) { overflow: visible; }
	.wp-block-post-content table:has(td img) :is(tbody, thead) { display: block; }
	.wp-block-post-content table:has(td img) tr { display: flex; flex-wrap: wrap; }
	.wp-block-post-content table:has(td img) td { display: block; flex: 1 1 40%; box-sizing: border-box; width: auto !important; height: auto !important; }
}
.wp-block-table :where(th, td) { border-color: var(--asg-line); }
.wp-block-table thead { border-bottom: 2px solid var(--asg-green); }

/* Suche */
.wp-block-search__input { background: var(--asg-surface); color: var(--asg-text); border: 1px solid var(--asg-line); border-radius: 4px; padding: 10px 12px; }
.asg-dunkel .wp-block-search__input { background: #161c20; color: #fff; border-color: rgba(255, 255, 255, .15); }

/* =========================================================================
   7. Footer
   ========================================================================= */
.asg-fuss { background: linear-gradient(180deg, #0d1113 0%, #080a0b 100%); border-top: 1px solid rgba(255, 255, 255, .08); color: #c8ccd0; font-size: 15px; padding-top: 56px !important; }
.asg-fuss__spalten { gap: 32px; margin-bottom: 40px !important; }
.asg-fuss h4 { margin: 0 0 12px; font-family: var(--asg-cond); font-weight: 300; font-size: 17px; letter-spacing: .03em; }
.asg-fuss p { margin: 0; }
.asg-fuss strong { color: #fff; font-weight: 600; }
.asg-fuss__marke { gap: 14px; }
.asg-fuss__marke figure { margin: 0; flex-shrink: 0; }
.asg-linkliste { list-style: none; padding: 0 !important; margin: 0; }
.asg-linkliste li { padding: 3px 0; }
.asg-fuss a:where(:not(.wp-element-button)) { color: #c8ccd0 !important; text-decoration: none; }
.asg-fuss a:where(:not(.wp-element-button)):hover { color: var(--asg-glow) !important; }
.asg-sozial { margin-top: 16px !important; gap: 10px !important; }
.asg-sozial .wp-social-link { border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; color: #fff !important; }
.asg-sozial .wp-social-link a { padding: 9px !important; color: #fff !important; }
.asg-sozial .wp-social-link:hover { border-color: var(--asg-glow); box-shadow: 0 0 16px rgba(47, 184, 119, .35); transform: none; }
.asg-fuss__recht { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0 26px; font-size: 14px; color: #8b9399; gap: 16px; }

/* =========================================================================
   8. The Events Calendar (Termine-Seiten) – Farben über die Plugin-Variablen
   ========================================================================= */
/* :root:root – das Plugin leitet seine Farben auf :root ab, deshalb dort (mit höherer Spezifität) überschreiben */
:root:root {
	--tec-color-background-events-bar: var(--asg-surface);
	--tec-color-text-events-bar-input: var(--asg-text);
	--tec-color-text-events-bar-submit-button: #fff;
	--tec-color-text-events-bar-submit-button-active: #fff;
	--tec-color-text-events-bar-submit-button-hover: #fff;
	--tec-color-button-primary-hover: #1b8253;
	--tec-color-button-primary-active: #1b8253;
	--tec-color-background: var(--asg-surface);
	--tec-color-background-events: transparent;
	--tec-color-background-secondary: var(--asg-bg);
	--tec-color-background-secondary-hover: rgba(47, 184, 119, .08);
	--tec-color-background-transparent: transparent;
	--tec-color-text-primary: var(--asg-text);
	--tec-color-text-primary-light: var(--asg-text-2);
	--tec-color-text-secondary: var(--asg-text-2);
	--tec-color-text-events-title: var(--asg-text);
	--tec-color-text-event-title: var(--asg-text);
	--tec-color-text-event-date: var(--asg-text-3);
	--tec-color-text-secondary-event-date: var(--asg-text-3);
	--tec-color-icon-primary: var(--asg-text-3);
	--tec-color-icon-active: var(--asg-glow);
	--tec-color-border-default: var(--asg-line);
	--tec-color-border-secondary: var(--asg-line);
	--tec-color-border-tertiary: var(--asg-line);
	--tec-color-border-active: var(--asg-glow);
	--tec-color-accent-primary: #1b8253;
	--tec-color-accent-primary-hover: #1b8253;
	--tec-color-accent-primary-active: #1b8253;
	--tec-color-accent-primary-background: rgba(30, 140, 90, .15);
	--tec-color-button-primary: #1b8253;
	--tec-color-link-primary: var(--asg-text);
	--tec-color-link-accent: var(--asg-glow);
	--tec-font-family-sans-serif: var(--asg-body);
	--tec-font-family-base: var(--asg-body);
}
.tribe-common .tribe-events-calendar-list__month-separator-text,
.tribe-common .tribe-events-calendar-month__header-column-title,
.tribe-common .tribe-events-c-top-bar__datepicker-desktop,
.tribe-common .tribe-events-header__title-text,
.tribe-common h1.tribe-events-single-event-title { font-family: var(--asg-cond) !important; font-weight: 300 !important; }
/* Monatsüberschrift in der Liste als kleine Bauchbinde */
.tribe-events .tribe-events-calendar-list__month-separator { margin: 34px 0 12px; }
.tribe-events .tribe-events-calendar-list__month-separator::after { display: none; }
.tribe-common .tribe-events-calendar-list__month-separator-text {
	position: relative; display: inline-block; background: var(--asg-bar); color: #fff !important; padding: 8px 22px 9px 26px;
	font-size: 24px !important; box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.tribe-common .tribe-events-calendar-list__month-separator-text::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--asg-green); }
/* Termin in der Liste als Karte */
.tribe-events .tribe-events-calendar-list__event-row { background: var(--asg-surface); border-radius: 6px; padding: 18px 12px; margin: 0 0 10px !important; box-shadow: var(--asg-shadow); }
.tribe-events .tribe-events-calendar-list__event-date-tag { border-left: 4px solid var(--asg-green); }
.tribe-common .tribe-events-calendar-list__event-date-tag-daynum { color: var(--asg-text) !important; font-weight: 600 !important; }
.tribe-common .tribe-events-calendar-list__event-title-link { color: var(--asg-text) !important; font-weight: 600; }
.tribe-common .tribe-events-calendar-list__event-title-link:hover { color: var(--asg-glow) !important; }
/* Rahmen des Kalenders an das Raster des Themes angleichen (1200 px Inhalt, gleicher Seitenrand, gleicher Abstand oben) */
.tribe-events .tribe-events-l-container, .tribe-events .tribe-common-l-container {
	box-sizing: border-box; max-width: calc(1200px + 2 * clamp(16px, 4vw, 40px)) !important; margin-left: auto !important; margin-right: auto !important;
	padding-top: var(--wp--preset--spacing--60) !important;
	padding-left: clamp(16px, 4vw, 40px) !important; padding-right: clamp(16px, 4vw, 40px) !important;
}
/* Überschrift über der Terminliste (aus functions.php) */
.tribe-events .asg-seitenkopf--termine { padding: 0 0 28px !important; }
.tribe-events .asg-seitenkopf--termine .asg-kicker { margin: 0; }
.tribe-events .asg-seitenkopf--termine h1 { font-family: var(--asg-cond) !important; font-weight: 300 !important; font-size: var(--wp--preset--font-size--x-large) !important; line-height: 1.1; color: var(--asg-text); margin: 2px 0 0 !important; }
/* Beitragsbild = Gegner-Logo: klein und ganz zeigen */
.tribe-events .tribe-events-calendar-list__event-featured-image-wrapper { max-width: 140px; }
.tribe-events .tribe-events-calendar-list__event-featured-image { max-height: 110px; width: auto !important; object-fit: contain; margin-left: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); }
.tribe-events .tribe-events-c-events-bar { border: 1px solid var(--asg-line); border-radius: 6px; }
.tribe-events .tribe-events-c-subscribe-dropdown__button { border-color: var(--asg-line) !important; color: var(--asg-text) !important; }

/* =========================================================================
   9. Responsiv
   ========================================================================= */
@media (max-width: 1400px) {
	.asg-live-pille { display: none !important; }
}
@media (max-width: 1080px) {
	.asg-nav .wp-block-navigation-item__content { padding: 10px 8px; font-size: 15px; }
	.asg-saison { grid-template-columns: repeat(3, 1fr); }
}
/* Menü schon unter 1180 px als Burger (WordPress-Standard wäre erst unter 600 px) */
@media (min-width: 600px) and (max-width: 1180px) {
	.asg-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.asg-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 900px) {
	.asg-hero { background:
		radial-gradient(circle at 50% 190px, rgba(30, 140, 90, .40) 0, rgba(30, 140, 90, .08) 240px, rgba(30, 140, 90, 0) 420px),
		repeating-radial-gradient(circle at 50% 190px, transparent 0 178px, rgba(255, 255, 255, .07) 178px 180px, transparent 180px 238px, rgba(255, 255, 255, .07) 238px 240px),
		linear-gradient(180deg, #11161a 0%, #0a0d0f 100%); padding-top: 40px !important; padding-bottom: 44px !important; }
	.asg-hero__spalten { flex-wrap: wrap !important; min-height: 0; gap: 28px; }
	.asg-hero__spalten > .wp-block-column { flex-basis: 100% !important; }
	.asg-hero__text { text-align: center; }
	.asg-hero__schriftzug img { height: 56px; margin: 0 auto; }
	.asg-hero__text .is-style-asg-bauchbinde { margin-left: auto; margin-right: auto; text-align: left; }
	.asg-lead { margin-left: auto !important; margin-right: auto !important; }
	.asg-hero .wp-block-buttons { justify-content: center; }
	.asg-rwk-spalten, .asg-live, .asg-begruessung__spalten { flex-wrap: wrap !important; }
	.asg-rwk-spalten > .wp-block-column, .asg-live > .wp-block-column, .asg-begruessung__spalten > .wp-block-column { flex-basis: 100% !important; }
	.asg-kacheln .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr 1fr; }
	.asg-kacheln--start .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
	.asg-kacheln--start .wp-block-post-template > li:first-child { grid-column: span 2; grid-row: auto; height: 300px; }
}
@media (max-width: 560px) {
	.asg-marke__wappen img { height: 44px !important; }
	.asg-marke__titel { display: none; }
	.asg-marke__kurz { display: block; }
	.asg-marke__zusatz { font-size: 13px; }
	.asg-kopf__zeile { gap: 10px; }
	.asg-mitglieder-knopf .wp-block-button__link { width: 44px; height: 44px; }
	.asg-mitglieder-knopf .wp-block-button__link::before { width: 20px; height: 20px; }
	.asg-farbschalter { width: 44px; height: 44px; }
	.asg-zugang-menue summary { width: 44px; height: 44px; }
	.asg-zugang-menue summary::before { width: 20px; height: 20px; }
	.asg-farbschalter__symbol { width: 20px; height: 20px; }
	.wp-block-image.is-style-asg-leuchtring { width: 220px; }
	.asg-hero { background:
		radial-gradient(circle at 50% 150px, rgba(30, 140, 90, .40) 0, rgba(30, 140, 90, .08) 200px, rgba(30, 140, 90, 0) 360px),
		repeating-radial-gradient(circle at 50% 150px, transparent 0 128px, rgba(255, 255, 255, .07) 128px 130px, transparent 130px 178px, rgba(255, 255, 255, .07) 178px 180px),
		linear-gradient(180deg, #11161a 0%, #0a0d0f 100%); }
	.asg-hero__schriftzug img { height: 44px; }
	.asg-lead { font-size: 19px; }
	.is-style-asg-bauchbinde > :first-child { font-size: 15px; }
	.is-style-asg-bauchbinde > :nth-child(2) { font-size: 26px; }
	.asg-match { min-height: 0; }
	.asg-match__teams { padding: 26px 12px 4px; gap: 6px; }
	.asg-team img { height: 86px; }
	.asg-team b { font-size: 15px; }
	.asg-vs { width: 60px; height: 60px; font-size: 26px; }
	.asg-match__band { margin: 14px 12px 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
	.asg-rechts { text-align: left; }
	.asg-big { font-size: 23px; }
	.asg-saison { grid-template-columns: 1fr 1fr; }
	.asg-kacheln .wp-block-post-template.is-layout-grid,
	.asg-kacheln--start .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; grid-auto-rows: 210px; }
	.asg-kacheln--start .wp-block-post-template > li:first-child { grid-column: auto; height: auto; }
	.asg-kacheln--start li:first-child .wp-block-post-title { font-size: 26px; }
	.asg-fuss__spalten { gap: 26px; }
}
