/* ═══════════════════════════════════════════════════════════════════
 * HSG Geislar/Oberkassel — Classic Theme Stylesheet
 * @layer reset, base, layout, components, utilities, dark
 * ═══════════════════════════════════════════════════════════════════ */

/* Marken- und Surface-Tokens — keine Dark-Mode-Flips, alles fix */
:root {
	--hsg-navy:        #003870;
	--hsg-navy-deep:   #002850;
	--hsg-white:       #FFFFFF;
	--hsg-off-white:   #F4F4F2;
	--hsg-text-dark:   #0F1419;
	--hsg-text-muted:  #5A6470;
	--hsg-border:      #E2E5EA;

	/* Backwards-compat-Aliase (auf Marken-Tokens gemappt) */
	--hsg-page-bg:     var(--hsg-white);
	--hsg-page-surf:   var(--hsg-off-white);
	--hsg-page-text:   var(--hsg-text-dark);
	--hsg-page-muted:  var(--hsg-text-muted);
	--hsg-page-border: var(--hsg-border);
	--hsg-on-surface-accent: var(--hsg-navy);

	/* Default = Cyan-Schema; Customizer überschreibt diese im <style id="hsg-customizer"> */
	--wp--custom--color--accent:          #00B4D8;
	--wp--custom--color--accent-contrast: #003870;

	--hsg-section-y:   clamp(4rem, 10vw, 10rem);
	--hsg-section-x:   clamp(1.5rem, 5vw, 4rem);
	--hsg-grid-gap:    clamp(1.5rem, 4vw, 3rem);

	--hsg-container:   1280px;
	--hsg-container-narrow: 880px;

	--hsg-radius-sm:   4px;
	--hsg-radius-md:   8px;
	--hsg-radius-lg:   16px;
	--hsg-radius-pill: 999px;

	--hsg-motion-fast:   120ms cubic-bezier(0.2, 0, 0.2, 1);
	--hsg-motion-normal: 240ms cubic-bezier(0.2, 0, 0.2, 1);

	--hsg-shadow-sm: 0 1px 2px 0 rgba(15, 20, 25, 0.05);
	--hsg-shadow-md: 0 4px 16px -4px rgba(15, 20, 25, 0.10);
	--hsg-shadow-lg: 0 24px 48px -16px rgba(0, 56, 112, 0.20);
}

@layer reset, base, layout, components, utilities;

/* ─── @layer reset ─────────────────────────────────────────────── */
@layer reset {
	*, *::before, *::after { box-sizing: border-box; }
	html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
	body { margin: 0; }
	img, video, svg, picture { max-width: 100%; height: auto; display: block; }
	button, input, select, textarea { font: inherit; color: inherit; }
	button { cursor: pointer; }
	:focus-visible { outline: 2px solid var(--wp--custom--color--accent-contrast); outline-offset: 3px; border-radius: 4px; }
	:focus:not(:focus-visible) { outline: none; }
	.screen-reader-text { position: absolute !important; clip: rect(0,0,0,0); width: 1px; height: 1px; overflow: hidden; }
}

/* ─── @layer base ──────────────────────────────────────────────── */
@layer base {
	@font-face {
		font-family: 'Inter Variable';
		font-style: normal;
		font-weight: 100 900;
		font-display: swap;
		src: url('../fonts/inter-variable.woff2') format('woff2-variations');
	}

	body {
		font-family: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
		font-size: 1.05rem;
		line-height: 1.7;
		color: var(--hsg-page-text);
		background: var(--hsg-page-bg);
		-webkit-font-smoothing: antialiased;
		text-rendering: optimizeLegibility;
	}

	a { color: var(--hsg-navy); text-underline-offset: 0.2em; transition: color var(--hsg-motion-fast); }
	a:hover { color: var(--wp--custom--color--accent-contrast); }

	h1, h2, h3, h4, h5, h6 {
		margin: 0;
		font-weight: 700;
		line-height: 1.15;
		letter-spacing: -0.02em;
		color: inherit;
	}
	h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; }
	h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
	h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
	h4 { font-size: 1.125rem; }

	p { margin: 0 0 1rem 0; }

	::selection { background: var(--wp--custom--color--accent); color: var(--hsg-navy); }

	@media (prefers-reduced-motion: reduce) {
		*, *::before, *::after {
			animation-duration: 0.01ms !important;
			animation-iteration-count: 1 !important;
			transition-duration: 0.01ms !important;
			scroll-behavior: auto !important;
		}
	}
}

/* ─── @layer layout ────────────────────────────────────────────── */
@layer layout {

	.hsg-container {
		max-width: var(--hsg-container);
		margin: 0 auto;
		padding-left: var(--hsg-section-x);
		padding-right: var(--hsg-section-x);
	}
	.hsg-container--narrow {
		max-width: var(--hsg-container-narrow);
	}

	.hsg-section {
		padding-top: var(--hsg-section-y);
		padding-bottom: var(--hsg-section-y);
	}
	.hsg-section--off-white { background: var(--hsg-off-white); }
	.hsg-section--navy {
		background: var(--hsg-navy);
		color: var(--hsg-white);
	}
	.hsg-section--navy h1, .hsg-section--navy h2, .hsg-section--navy h3 { color: var(--hsg-white); }
	.hsg-section--navy a { color: var(--hsg-white); }
	.hsg-section--navy a:hover { color: var(--wp--custom--color--accent); }

	.hsg-section-head { margin-bottom: 2.5rem; }
	.hsg-section-head--centered { text-align: center; max-width: 36rem; margin-left: auto; margin-right: auto; }
	.hsg-section-title { margin: 0.25rem 0; }

	.hsg-prose {
		max-width: var(--hsg-container-narrow);
	}
	.hsg-prose > * + * { margin-top: 1.25rem; }
	.hsg-prose h2 { margin-top: 2.5rem; }
	.hsg-prose h3 { margin-top: 2rem; }
	.hsg-prose ul, .hsg-prose ol { padding-left: 1.5rem; }
	.hsg-prose blockquote {
		border-left: 4px solid var(--wp--custom--color--accent-contrast);
		padding: 0.5rem 0 0.5rem 1.5rem;
		margin: 2rem 0;
		font-style: italic;
		color: var(--hsg-text-muted);
	}

	.hsg-page-header { margin-bottom: 3rem; }
	.hsg-page-title { margin-bottom: 0.5rem; }
	.hsg-page-title--xl { font-size: clamp(2.75rem, 6vw, 5rem); line-height: 1.05; letter-spacing: -0.04em; }
	.hsg-page-lead { font-size: 1.25rem; color: var(--hsg-text-muted); max-width: 50rem; }
	.hsg-section--navy .hsg-page-lead { color: rgba(255,255,255,0.8); }
}

/* ─── @layer components ────────────────────────────────────────── */
@layer components {

	/* ===== Skip-Link ===== */
	.hsg-skip-link {
		position: absolute; left: -9999px; top: 0;
		padding: 0.75rem 1.25rem;
		background: var(--hsg-navy); color: var(--hsg-white);
		text-decoration: none; z-index: 9999;
		border-radius: 0 0 var(--hsg-radius-md) 0;
	}
	.hsg-skip-link:focus-visible { left: 0; top: 0; color: var(--hsg-white); }

	/* ===== Header ===== */
	.hsg-site-header {
		position: sticky; top: 0; z-index: 200;
		background: rgba(255,255,255,0.95);
		backdrop-filter: blur(8px);
		border-bottom: 1px solid var(--hsg-border);
		padding: 0.75rem 0;
	}
	/* Hero explizit unter dem Sticky-Header — verhindert, dass Hero das
	 * Mobile-Menü beim Aufklappen überdeckt */
	.hsg-hero { z-index: 0; }
	.hsg-site-header__inner {
		display: flex; align-items: center; justify-content: space-between;
		gap: 1.5rem;
	}
	.hsg-site-header__brand { display: flex; align-items: center; gap: 0.875rem; min-width: 0; flex: 1 1 auto; }
	.hsg-site-logo,
	.hsg-site-logo a { display: inline-flex; align-items: center; flex-shrink: 0; }
	.hsg-site-logo img,
	.hsg-site-logo .custom-logo,
	.hsg-site-logo .custom-logo-link img {
		max-height: 48px;
		width: auto !important;
		height: auto;
		max-width: 200px;
		object-fit: contain;
		display: block;
	}
	.hsg-site-id { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
	.hsg-site-title { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; text-decoration: none; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.hsg-site-tagline { font-size: 0.78rem; color: var(--hsg-text-muted); margin-top: 0.1rem; }

	/* ===== Primary Nav ===== */
	.hsg-primary-nav { display: flex; align-items: center; }
	.hsg-primary-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.5rem; }
	.hsg-primary-nav a { text-decoration: none; font-weight: 500; padding: 0.5rem 0; }
	.hsg-primary-nav a:hover { color: var(--wp--custom--color--accent-contrast); }
	.hsg-primary-nav .current-menu-item > a { color: var(--wp--custom--color--accent-contrast); border-bottom: 2px solid var(--wp--custom--color--accent-contrast); }
	.hsg-primary-nav .sub-menu {
		position: absolute; background: var(--hsg-white); padding: 0.5rem 0;
		box-shadow: var(--hsg-shadow-md); border-radius: var(--hsg-radius-md);
		flex-direction: column; gap: 0; min-width: 12rem;
		display: none;
	}
	.hsg-primary-nav li:hover > .sub-menu, .hsg-primary-nav li:focus-within > .sub-menu { display: flex; }
	.hsg-primary-nav .sub-menu a { display: block; padding: 0.5rem 1rem; }

	.hsg-nav-toggle {
		display: none; background: transparent; border: 0; padding: 0.5rem;
	}
	.hsg-nav-toggle__bars,
	.hsg-nav-toggle__bars::before,
	.hsg-nav-toggle__bars::after {
		display: block; width: 24px; height: 2px; background: currentColor; transition: transform var(--hsg-motion-normal);
	}
	.hsg-nav-toggle__bars { position: relative; }
	.hsg-nav-toggle__bars::before, .hsg-nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
	.hsg-nav-toggle__bars::before { top: -8px; }
	.hsg-nav-toggle__bars::after  { top: 8px; }

	@media (max-width: 880px) {
		.hsg-nav-toggle { display: block; z-index: 201; position: relative; }
		.hsg-primary-nav { position: static; }
		.hsg-primary-nav ul#hsg-primary-menu {
			position: fixed;
			top: 0;
			right: 0;
			left: 0;
			z-index: 199;
			background: var(--hsg-white);
			border-bottom: 1px solid var(--hsg-border);
			box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
			flex-direction: column;
			gap: 0;
			padding: 5rem 1.5rem 1.5rem 1.5rem;
			max-height: 0;
			overflow: hidden;
			transform: translateY(0);
			transition: max-height 320ms cubic-bezier(.2,.8,.2,1);
			width: 100%;
			box-sizing: border-box;
		}
		.hsg-primary-nav[data-open] ul#hsg-primary-menu {
			max-height: 100vh;
			overflow-y: auto;
		}
		.hsg-primary-nav ul#hsg-primary-menu li {
			border-bottom: 1px solid var(--hsg-border);
		}
		.hsg-primary-nav ul#hsg-primary-menu a {
			display: block;
			padding: 0.875rem 0;
			font-size: 1.05rem;
			font-weight: 600;
		}
		.hsg-primary-nav .sub-menu { position: static; box-shadow: none; padding-left: 1rem; }
	}

	/* Kompakter Header auf Tablet/Mobile */
	@media (max-width: 720px) {
		.hsg-site-header { padding: 0.5rem 0; }
		.hsg-site-header__brand { gap: 0.625rem; }
		.hsg-site-logo img,
		.hsg-site-logo .custom-logo,
		.hsg-site-logo .custom-logo-link img {
			max-height: 38px;
			max-width: 130px;
		}
		.hsg-site-title { font-size: 0.95rem; line-height: 1.15; }
		.hsg-site-tagline { display: none; }
	}

	/* Auf kleinsten Screens nur Logo (kein Title-Text), wenn beides vorhanden */
	@media (max-width: 480px) {
		.hsg-site-logo + .hsg-site-id { display: none; }
		.hsg-site-logo img,
		.hsg-site-logo .custom-logo,
		.hsg-site-logo .custom-logo-link img {
			max-width: 110px;
		}
	}

	/* ===== Hero ===== */
	.hsg-hero {
		position: relative;
		isolation: isolate;
		overflow: hidden;
		background: var(--hsg-navy);
		color: var(--hsg-white);
		min-height: clamp(560px, 78vh, 880px);
		display: grid;
		align-items: center;
	}
	/* Default-Hintergrund (kein Customizer-Bild gesetzt) */
	.hsg-hero__bg {
		position: absolute; inset: 0; z-index: -2;
		background:
			repeating-linear-gradient(115deg, transparent 0, transparent 80px, rgba(255,255,255,0.025) 80px, rgba(255,255,255,0.025) 81px),
			radial-gradient(ellipse 60% 50% at 85% 15%, color-mix(in srgb, var(--wp--custom--color--accent) 25%, transparent), transparent 70%),
			radial-gradient(ellipse 55% 45% at 10% 90%, rgba(255,255,255,0.06), transparent 70%),
			linear-gradient(160deg, var(--hsg-navy-deep) 0%, var(--hsg-navy) 60%, var(--hsg-navy-deep) 100%);
	}

	/* Hero-Hintergrundbild via Customizer — echtes <img>-Tag, absolut positioniert */
	.hsg-hero__bg-img {
		position: absolute; inset: 0;
		width: 100%; height: 100%;
		object-fit: cover;
		z-index: -2;
	}

	/* Halbtransparenter Navy-Overlay über dem Bild — Stärke aus --hsg-hero-a (0..1) */
	.hsg-hero__overlay {
		--hsg-hero-a: 0.65;
		position: absolute; inset: 0; z-index: -1;
		background:
			radial-gradient(ellipse 60% 50% at 85% 15%,
				color-mix(in srgb, var(--wp--custom--color--accent) 25%, transparent),
				transparent 70%),
			linear-gradient(135deg,
				rgba(0, 40, 80, calc(var(--hsg-hero-a) * 1.05)) 0%,
				rgba(0, 56, 112, var(--hsg-hero-a)) 60%,
				rgba(0, 40, 80, calc(var(--hsg-hero-a) * 1.1)) 100%);
	}
	.hsg-hero__inner {
		position: relative;
		z-index: 1;
		padding-top: var(--hsg-section-y);
		padding-bottom: var(--hsg-section-y);
	}
	.hsg-hero__eyebrow { color: var(--wp--custom--color--accent); margin-bottom: 1.25rem; }
	.hsg-hero__title {
		font-size: clamp(2.75rem, 8vw, 6.5rem) !important;
		font-weight: 800 !important;
		line-height: 0.95 !important;
		letter-spacing: -0.04em !important;
		margin: 0 0 2rem 0;
		color: var(--hsg-white);
	}
	.hsg-hero__accent {
		color: var(--wp--custom--color--accent);
		position: relative;
		display: inline-block;
		padding-left: 0.4em;
	}
	.hsg-hero__accent::before {
		content: '';
		position: absolute;
		left: 0; top: 0.18em; bottom: 0.18em;
		width: 0.18em;
		background: var(--wp--custom--color--accent);
		transform-origin: top;
		transform: scaleY(0);
		animation: hsg-stroke 900ms cubic-bezier(.2,.8,.2,1) 700ms forwards;
		border-radius: 2px;
	}
	@keyframes hsg-stroke { to { transform: scaleY(1); } }
	@media (prefers-reduced-motion: reduce) { .hsg-hero__accent::before { animation: none; transform: scaleY(1); } }

	.hsg-hero__lead {
		font-size: clamp(1.125rem, 1.6vw, 1.375rem);
		line-height: 1.55;
		max-width: 38rem;
		opacity: 0.92;
		margin-bottom: 2.5rem;
	}
	.hsg-hero__cta { display: flex; flex-wrap: wrap; gap: 0.875rem; }

	/* Hero-Optimierung Mobile */
	@media (max-width: 640px) {
		.hsg-hero { min-height: clamp(440px, 70vh, 700px); }
		.hsg-hero__inner {
			padding-top: 4rem;
			padding-bottom: 4rem;
		}
		.hsg-hero__title {
			font-size: clamp(2.25rem, 12vw, 4rem) !important;
		}
		.hsg-hero__lead {
			font-size: 1rem;
			margin-bottom: 2rem;
		}
		.hsg-hero__cta {
			flex-direction: column;
			align-items: stretch;
		}
		.hsg-hero__cta .hsg-btn { text-align: center; }
	}

	/* ===== Buttons — defensive Specificity, schlägt fremde a-Styles ===== */
	a.hsg-btn,
	a.hsg-btn:link,
	a.hsg-btn:visited,
	button.hsg-btn,
	.hsg-btn {
		display: inline-block;
		padding: 0.875rem 1.75rem;
		border-radius: var(--hsg-radius-md);
		font-weight: 600;
		text-decoration: none !important;
		border-width: 2px;
		border-style: solid;
		border-color: var(--hsg-navy);
		background: var(--hsg-navy);
		color: var(--hsg-white);
		transition: var(--hsg-motion-fast);
		line-height: 1.2;
		cursor: pointer;
	}
	a.hsg-btn:hover,
	a.hsg-btn:focus,
	.hsg-btn:hover {
		background: var(--hsg-navy-deep);
		border-color: var(--hsg-navy-deep);
		color: var(--hsg-white);
		text-decoration: none !important;
		transform: translateY(-1px);
		box-shadow: var(--hsg-shadow-md);
	}

	a.hsg-btn--inverse,
	a.hsg-btn--inverse:link,
	a.hsg-btn--inverse:visited,
	.hsg-btn--inverse {
		background: var(--hsg-white);
		color: var(--hsg-navy);
		border-color: var(--hsg-white);
	}
	a.hsg-btn--inverse:hover,
	.hsg-btn--inverse:hover {
		background: var(--wp--custom--color--accent);
		border-color: var(--wp--custom--color--accent);
		color: var(--hsg-navy);
	}

	a.hsg-btn--outline,
	a.hsg-btn--outline:link,
	a.hsg-btn--outline:visited,
	.hsg-btn--outline {
		background: transparent;
		color: var(--hsg-navy);
		border-color: var(--hsg-navy);
	}
	a.hsg-btn--outline:hover,
	.hsg-btn--outline:hover {
		background: var(--hsg-navy);
		color: var(--hsg-white);
	}

	a.hsg-btn--outline-light,
	a.hsg-btn--outline-light:link,
	a.hsg-btn--outline-light:visited,
	.hsg-btn--outline-light {
		background: transparent;
		color: var(--hsg-white);
		border-color: rgba(255,255,255,0.7);
	}
	a.hsg-btn--outline-light:hover,
	.hsg-btn--outline-light:hover {
		background: var(--hsg-white);
		color: var(--hsg-navy);
		border-color: var(--hsg-white);
	}

	a.hsg-btn--accent,
	a.hsg-btn--accent:link,
	a.hsg-btn--accent:visited,
	.hsg-btn--accent {
		background: var(--wp--custom--color--accent-contrast);
		border-color: var(--wp--custom--color--accent-contrast);
		color: var(--hsg-white);
	}

	.hsg-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

	/* ===== Tags (Heim/Auswärts/etc.) — schlichte monochrome Labels ===== */
	.hsg-tag {
		display: inline-block;
		padding: 0.15rem 0.5rem;
		border-radius: 4px;
		font-size: 0.75rem;
		font-weight: 600;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		line-height: 1.4;
		vertical-align: 0.05em;
	}
	.hsg-tag--home {
		background: var(--hsg-navy);
		color: var(--hsg-white);
	}
	.hsg-tag--away {
		background: transparent;
		color: var(--hsg-navy);
		border: 1px solid var(--hsg-navy);
	}
	.hsg-section--navy .hsg-tag--home {
		background: var(--hsg-white);
		color: var(--hsg-navy);
	}
	.hsg-section--navy .hsg-tag--away {
		color: var(--hsg-white);
		border-color: rgba(255,255,255,0.6);
	}

	/* ===== Pills ===== */
	.hsg-pill {
		display: inline-block;
		padding: 0.5rem 1rem;
		border-radius: var(--hsg-radius-pill);
		text-decoration: none;
		font-size: 0.875rem;
		font-weight: 600;
		border: 1px solid var(--hsg-border);
		background: var(--hsg-white);
		color: var(--hsg-text-dark);
		transition: var(--hsg-motion-fast);
	}
	.hsg-pill:hover { background: var(--hsg-navy); color: var(--hsg-white); border-color: var(--hsg-navy); }

	/* ===== Eyebrow ===== */
	.hsg-eyebrow {
		font-size: 0.78rem;
		font-weight: 600;
		letter-spacing: 0.18em;
		text-transform: uppercase;
		color: var(--wp--custom--color--accent-contrast);
		margin: 0 0 0.75rem 0;
	}
	.hsg-section--navy .hsg-eyebrow { color: var(--wp--custom--color--accent); }
	.hsg-accent { color: var(--wp--custom--color--accent); }

	/* ===== Claim Section ===== */
	.hsg-claim__head { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.2; max-width: 52rem; margin-bottom: 1.5rem; }
	.hsg-claim__lead { font-size: 1.125rem; color: var(--hsg-text-muted); max-width: 50rem; line-height: 1.7; }

	/* ===== Stats ===== */
	.hsg-stats {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
		gap: var(--hsg-grid-gap);
		margin-top: 3rem;
	}
	.hsg-stat {
		display: grid; gap: 0.5rem;
		padding: 1.5rem;
		background: var(--hsg-off-white);
		border-radius: var(--hsg-radius-lg);
		border: 1px solid var(--hsg-border);
	}
	.hsg-section--navy .hsg-stat { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
	.hsg-stat__num { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; line-height: 1; color: var(--wp--custom--color--accent-contrast); }
	.hsg-section--navy .hsg-stat__num { color: var(--wp--custom--color--accent); }
	.hsg-stat__lbl { font-size: 0.85rem; line-height: 1.4; color: var(--hsg-text-muted); }
	.hsg-section--navy .hsg-stat__lbl { color: rgba(255,255,255,0.85); }

	/* ===== Next Game ===== */
	.hsg-game-card {
		display: grid;
		grid-template-columns: auto 1fr auto;
		gap: 2rem;
		align-items: center;
		background: var(--hsg-navy-deep);
		border: 1px solid color-mix(in srgb, var(--wp--custom--color--accent) 25%, transparent);
		border-radius: var(--hsg-radius-lg);
		padding: 2.5rem;
		margin: 2.5rem 0;
	}
	.hsg-game-card__date {
		display: grid; text-align: center; min-width: 90px;
		border-right: 1px solid rgba(255,255,255,0.15);
		padding-right: 2rem;
	}
	.hsg-game-card__day { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; }
	.hsg-game-card__num { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; line-height: 1; color: var(--wp--custom--color--accent); }
	.hsg-game-card__mon { font-size: 0.85rem; text-transform: uppercase; opacity: 0.8; }

	.hsg-game-card__main { display: grid; gap: 0.875rem; min-width: 0; }
	.hsg-game-card__team-label {
		font-size: 0.7rem;
		font-weight: 700;
		letter-spacing: 0.2em;
		text-transform: uppercase;
		color: var(--wp--custom--color--accent);
		margin: 0;
	}

	.hsg-game-card__matchup {
		display: grid; gap: 0.5rem;
	}
	.hsg-team-row {
		display: flex; align-items: center; gap: 0.875rem;
		font-size: clamp(1.05rem, 2vw, 1.375rem);
		font-weight: 700;
		line-height: 1.2;
	}
	.hsg-team-row__logo {
		flex-shrink: 0;
		width: 36px; height: 36px;
		object-fit: contain;
		background: var(--hsg-white);
		border-radius: 6px;
		padding: 3px;
	}
	.hsg-team-row__logo--placeholder {
		background: rgba(255,255,255,0.08);
	}
	.hsg-team-row__name {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.hsg-vs {
		font-size: 0.875rem;
		opacity: 0.55;
		font-weight: 500;
		text-transform: lowercase;
		padding-left: calc(36px + 0.875rem);
	}

	.hsg-game-card__side {
		display: grid; gap: 1rem;
		justify-items: end; align-content: center;
	}
	.hsg-game-card__meta {
		display: flex; gap: 0.875rem; flex-wrap: wrap;
		justify-content: flex-end;
		font-size: 0.875rem;
		opacity: 0.9;
	}
	.hsg-game-card__countdown {
		display: grid; grid-template-columns: repeat(3, auto auto); column-gap: 0.5rem; row-gap: 0.25rem;
		font-variant-numeric: tabular-nums;
	}
	.hsg-game-card__countdown span { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; color: var(--wp--custom--color--accent); }
	.hsg-game-card__countdown small { font-size: 0.7rem; text-transform: uppercase; opacity: 0.7; align-self: end; padding-bottom: 0.4rem; }

	@media (max-width: 880px) {
		.hsg-game-card { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem; }
		.hsg-game-card__date {
			border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.15);
			padding: 0 0 1rem 0;
			grid-template-columns: auto auto auto;
			gap: 1rem; min-width: 0;
			justify-content: flex-start; align-items: baseline;
		}
		.hsg-game-card__side { justify-items: start; }
		.hsg-game-card__meta { justify-content: flex-start; }
	}

	/* ===== Spiel-Single ===== */
	.hsg-spiel-hero {
		background: var(--hsg-navy); color: var(--hsg-white);
		padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem) 0;
	}
	.hsg-spiel-title { font-size: clamp(2rem, 5vw, 3.5rem); margin: 0.5rem 0 1rem 0; }
	.hsg-spiel-meta { opacity: 0.85; }
	.hsg-spiel-result { display: flex; gap: 0.5rem; align-items: baseline; margin-top: 2rem; font-variant-numeric: tabular-nums; }
	.hsg-spiel-result__num { font-size: clamp(3rem, 7vw, 5rem); font-weight: 800; line-height: 1; color: var(--wp--custom--color--accent); }
	.hsg-spiel-result__sep { font-size: clamp(2.5rem, 6vw, 4rem); opacity: 0.5; line-height: 1; }
	.hsg-spiel-countdown { margin-top: 2rem; display: grid; grid-template-columns: repeat(3, auto auto); gap: 0.25rem 0.75rem; max-width: 30rem; font-variant-numeric: tabular-nums; }
	.hsg-spiel-countdown span { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--wp--custom--color--accent); }
	.hsg-spiel-countdown small { font-size: 0.7rem; text-transform: uppercase; opacity: 0.7; align-self: end; padding-bottom: 0.5rem; }

	/* ===== Events ===== */
	.hsg-events__filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 2rem 0; }
	.hsg-filter {
		padding: 0.5rem 1rem; border: 1px solid var(--hsg-border);
		border-radius: var(--hsg-radius-pill); background: transparent;
		font-size: 0.875rem; font-weight: 500; transition: var(--hsg-motion-fast);
	}
	.hsg-filter:hover { border-color: var(--wp--custom--color--accent-contrast); }
	.hsg-filter.is-active { background: var(--hsg-navy); color: var(--hsg-white); border-color: var(--hsg-navy); }

	.hsg-events__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.875rem; }
	.hsg-event {
		display: grid;
		grid-template-columns: auto auto 1fr;
		gap: 1.25rem;
		padding: 1.25rem 1.75rem;
		border: 1px solid var(--hsg-border);
		border-radius: var(--hsg-radius-md);
		background: var(--hsg-white);
		transition: var(--hsg-motion-fast); align-items: center;
	}
	.hsg-event:hover { border-color: var(--wp--custom--color--accent-contrast); transform: translateY(-1px); box-shadow: var(--hsg-shadow-md); }
	.hsg-event[hidden] { display: none; }
	.hsg-event__date {
		display: grid; text-align: center; min-width: 64px;
		padding-right: 1.25rem;
		border-right: 1px solid var(--hsg-border);
	}
	.hsg-event__day { font-size: 0.7rem; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.15em; }
	.hsg-event__num { font-size: 1.875rem; font-weight: 800; color: var(--hsg-navy); line-height: 1; }
	.hsg-event__mon { font-size: 0.7rem; opacity: 0.7; text-transform: uppercase; }
	.hsg-event__logo {
		width: 40px; height: 40px;
		object-fit: contain;
		background: var(--hsg-off-white);
		border-radius: 6px;
		padding: 3px;
		flex-shrink: 0;
	}
	.hsg-event__body { min-width: 0; }
	.hsg-event__team-label {
		display: inline-block;
		font-size: 0.7rem;
		font-weight: 700;
		letter-spacing: 0.15em;
		text-transform: uppercase;
		color: var(--hsg-navy);
		margin-bottom: 0.2rem;
	}
	.hsg-event__title { font-weight: 700; text-decoration: none; font-size: 1.05rem; display: block; color: inherit; }
	.hsg-event__title:hover { color: var(--wp--custom--color--accent-contrast); }
	.hsg-event__meta { display: block; color: var(--hsg-text-muted); font-size: 0.875rem; margin-top: 0.25rem; }

	@media (max-width: 600px) {
		.hsg-event { grid-template-columns: auto 1fr; }
		.hsg-event__logo { display: none; }
	}

	/* ===== Förderverein-Teaser — schlanker, kein Stat-Grid mehr ===== */
	.hsg-foerder-teaser__inner {
		max-width: 720px;
	}
	.hsg-foerder-teaser__head {
		font-size: clamp(2rem, 4.5vw, 3.5rem);
		line-height: 1.1;
		letter-spacing: -0.03em;
		margin: 0.5rem 0 1.5rem 0;
		color: var(--hsg-white);
	}
	.hsg-foerder-teaser__lead {
		font-size: 1.125rem;
		line-height: 1.6;
		opacity: 0.92;
		margin-bottom: 2rem;
		max-width: 38rem;
	}

	/* ===== Anfahrt — vertikal, minimalistisch ===== */
	.hsg-anfahrt__inner {
		max-width: 1100px;
	}

	.hsg-map {
		position: relative; aspect-ratio: 21 / 9;
		border-radius: var(--hsg-radius-lg); overflow: hidden;
		background: var(--hsg-navy);
		margin: 0 auto 3rem auto;
		max-width: 1100px;
		box-shadow: var(--hsg-shadow-lg);
	}
	@media (max-width: 720px) {
		.hsg-map { aspect-ratio: 4 / 3; }
	}

	.hsg-anfahrt__address {
		font-style: normal;
		text-align: center;
		display: grid;
		gap: 0.25rem;
		margin: 0 auto 2.5rem auto;
		max-width: 36rem;
	}
	.hsg-anfahrt__address strong {
		font-size: 1.25rem;
		font-weight: 700;
		color: var(--hsg-navy);
	}
	.hsg-anfahrt__address em {
		font-style: italic;
		color: var(--hsg-text-muted);
		font-size: 0.95rem;
	}
	.hsg-anfahrt__address span {
		font-size: 1rem;
		color: var(--hsg-text-dark);
	}

	.hsg-anfahrt__routing {
		display: grid;
		gap: 2rem;
		justify-content: center;
		margin: 0 auto 4rem auto;
	}
	@media (min-width: 600px) {
		.hsg-anfahrt__routing { grid-template-columns: auto auto; }
	}
	.hsg-anfahrt__route { text-align: center; }
	.hsg-anfahrt__route h3 {
		font-size: 0.78rem;
		font-weight: 600;
		letter-spacing: 0.18em;
		text-transform: uppercase;
		color: var(--hsg-text-muted);
		margin: 0 0 0.875rem 0;
	}
	.hsg-routing__group {
		display: flex; flex-wrap: wrap; gap: 0.5rem;
		justify-content: center;
	}

	.hsg-anfahrt__modes {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0;
		border-top: 1px solid var(--hsg-border);
	}
	@media (min-width: 600px) {
		.hsg-anfahrt__modes { grid-template-columns: 1fr 1fr; }
	}
	@media (min-width: 960px) {
		.hsg-anfahrt__modes { grid-template-columns: repeat(4, 1fr); }
	}
	.hsg-map__activate {
		position: absolute; inset: 0; width: 100%; height: 100%;
		border: 0; padding: 0; margin: 0;
		background: var(--hsg-navy); cursor: pointer; color: var(--hsg-white);
	}
	.hsg-map__activate img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
	.hsg-map__overlay {
		position: absolute; inset: 0;
		display: grid; place-items: center; gap: 0.5rem;
		background: linear-gradient(0deg, rgba(0,56,112,0.8), rgba(0,56,112,0.5));
		padding: 1rem; text-align: center;
		transition: var(--hsg-motion-normal);
	}
	.hsg-map__activate:hover .hsg-map__overlay { background: linear-gradient(0deg, rgba(0,56,112,0.85), rgba(0,56,112,0.6)); }
	.hsg-map__overlay strong { font-size: 1.125rem; }
	.hsg-map__overlay small { font-size: 0.85rem; max-width: 24rem; opacity: 0.92; }
	.hsg-map iframe { width: 100%; height: 100%; border: 0; display: block; }

	.hsg-address {
		font-style: normal;
		padding: 1.25rem 1.5rem;
		border-left: 4px solid var(--wp--custom--color--accent-contrast);
		background: var(--hsg-white);
		border-radius: 0 var(--hsg-radius-md) var(--hsg-radius-md) 0;
		margin-bottom: 1.5rem;
	}

	.hsg-routing { margin: 1.5rem 0; }
	.hsg-routing h3 { font-size: 1rem; margin: 1rem 0 0.5rem 0; }
	.hsg-routing__group { display: flex; flex-wrap: wrap; gap: 0.5rem; }

	.hsg-anfahrt-modes {
		display: grid; gap: 1rem; grid-template-columns: 1fr;
		margin: 2rem 0;
	}
	@container (min-width: 480px) { .hsg-anfahrt-modes { grid-template-columns: 1fr 1fr; } }
	.hsg-mode {
		padding: 1.75rem 1.25rem 0.5rem 1.25rem;
		border-bottom: 1px solid var(--hsg-border);
		background: transparent;
	}
	@media (min-width: 600px) {
		.hsg-mode {
			border-right: 1px solid var(--hsg-border);
			padding: 2rem 1.5rem;
		}
		.hsg-mode:nth-child(2n) { border-right: none; }
	}
	@media (min-width: 960px) {
		.hsg-mode { border-bottom: none; }
		.hsg-mode:nth-child(2n) { border-right: 1px solid var(--hsg-border); }
		.hsg-mode:last-child   { border-right: none; }
	}
	.hsg-mode h3 {
		display: flex; align-items: center; gap: 0.625rem;
		font-size: 0.875rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.05em;
		margin: 0 0 1rem 0;
		color: var(--hsg-navy);
	}
	.hsg-mode__icon {
		width: 1.4em; height: 1.4em;
		color: var(--hsg-navy);
		flex-shrink: 0;
	}
	.hsg-mode__note { font-size: 0.875rem; color: var(--hsg-page-muted); }
	.hsg-mode__links { display: flex; gap: 0.875rem; flex-wrap: wrap; font-size: 0.875rem; margin-top: 0.875rem; }
	.hsg-mode__links a { color: var(--hsg-on-surface-accent); }

	.hsg-line-list {
		list-style: none; padding: 0; margin: 0.5rem 0 1rem 0;
		display: grid; gap: 0.625rem;
	}
	.hsg-line-list li { display: flex; align-items: center; gap: 0.875rem; font-size: 0.95rem; }
	.hsg-line-pill {
		display: inline-flex;
		align-items: center; justify-content: center;
		min-width: 2.75rem;
		padding: 0.25rem 0.625rem;
		border: 1.5px solid var(--hsg-on-surface-accent);
		border-radius: 6px;
		font-weight: 700;
		font-size: 0.85rem;
		color: var(--hsg-on-surface-accent);
		background: transparent;
		font-variant-numeric: tabular-nums;
		letter-spacing: 0.02em;
		flex-shrink: 0;
	}
	.hsg-vereinsheim { margin: 1.5rem 0; padding: 1rem 0; border-top: 1px dashed var(--hsg-border); }
	.hsg-vereinsheim summary { cursor: pointer; }
	.hsg-osm-disclaimer { margin-top: 2rem; color: var(--hsg-text-muted); }

	/* ===== Forms ===== */
	.hsg-form { display: grid; gap: 1.25rem; max-width: 36rem; margin-top: 2rem; }
	.hsg-form-field { display: grid; gap: 0.4rem; }
	.hsg-form-field label { font-weight: 600; font-size: 0.95rem; }
	.hsg-form-field input, .hsg-form-field textarea, .hsg-form-field select {
		width: 100%; padding: 0.875rem 1.125rem;
		border: 1px solid var(--hsg-border);
		border-radius: var(--hsg-radius-md);
		background: var(--hsg-white);
		transition: var(--hsg-motion-fast);
	}
	.hsg-form-field input:focus, .hsg-form-field textarea:focus {
		border-color: var(--wp--custom--color--accent-contrast);
		box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--custom--color--accent-contrast) 20%, transparent);
		outline: none;
	}
	.hsg-form-consent label {
		display: grid; grid-template-columns: auto 1fr; gap: 0.75rem;
		align-items: start; font-weight: 400; font-size: 0.9rem; line-height: 1.5;
	}
	.hsg-form-submit {
		justify-self: start; padding: 1rem 1.75rem;
		background: var(--hsg-navy); color: var(--hsg-white);
		border: 0; border-radius: var(--hsg-radius-md);
		font-weight: 600; transition: var(--hsg-motion-fast);
	}
	.hsg-form-submit:hover { background: var(--hsg-navy-deep); transform: translateY(-1px); box-shadow: var(--hsg-shadow-md); }
	.hsg-honeypot { position: absolute !important; left: -9999px !important; }
	.hsg-form-success {
		padding: 1rem 1.25rem; border-radius: var(--hsg-radius-md);
		background: color-mix(in srgb, #22c55e 15%, transparent);
		border: 1px solid #22c55e;
	}
	.hsg-form-error {
		padding: 1rem 1.25rem; border-radius: var(--hsg-radius-md);
		background: color-mix(in srgb, #ef4444 15%, transparent);
		border: 1px solid #ef4444;
	}

	/* ===== Search Form ===== */
	.hsg-search-form { display: flex; gap: 0.5rem; max-width: 32rem; margin: 1rem 0; }
	.hsg-search-form input { flex: 1; padding: 0.75rem 1rem; border: 1px solid var(--hsg-border); border-radius: var(--hsg-radius-md); }
	.hsg-search-form button { padding: 0.75rem 1.25rem; background: var(--hsg-navy); color: var(--hsg-white); border: 0; border-radius: var(--hsg-radius-md); font-weight: 600; }

	/* ===== News-Cards ===== */
	.hsg-news-grid {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
		gap: var(--hsg-grid-gap);
	}
	@media (min-width: 880px) {
		.hsg-news-grid--3 { grid-template-columns: repeat(3, 1fr); }
	}
	.hsg-news-card {
		display: flex; flex-direction: column;
		background: var(--hsg-white);
		border: 1px solid var(--hsg-border);
		border-radius: var(--hsg-radius-lg);
		overflow: hidden;
		transition: var(--hsg-motion-normal);
	}
	.hsg-news-card:hover { transform: translateY(-2px); box-shadow: var(--hsg-shadow-lg); border-color: var(--wp--custom--color--accent-contrast); }
	/* News-Card-Image-Container — Aspect Ratio kommt vom data-aspect des Grids */
	.hsg-news-card__image {
		display: block;
		overflow: hidden;
		background: var(--hsg-off-white);
	}
	.hsg-news-card__image img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform var(--hsg-motion-normal);
	}

	/* Aspect-Ratio-Steuerung über data-aspect am Grid */
	.hsg-news-grid[data-aspect="16-9"] .hsg-news-card__image { aspect-ratio: 16 / 9; }
	.hsg-news-grid[data-aspect="4-3"]  .hsg-news-card__image { aspect-ratio: 4 / 3; }
	.hsg-news-grid[data-aspect="1-1"]  .hsg-news-card__image { aspect-ratio: 1 / 1; }

	/* Original-Verhältnis: kein Crop, Bild zeigt sich in voller Höhe */
	.hsg-news-grid[data-aspect="original"] .hsg-news-card__image { aspect-ratio: auto; }
	.hsg-news-grid[data-aspect="original"] .hsg-news-card__image img {
		height: auto;
		object-fit: contain;
	}
	/* Bei "Original" werden Karten unterschiedlich hoch — Grid bleibt aligned-start */
	.hsg-news-grid[data-aspect="original"] { align-items: start; }

	/* Default-Fallback (wenn data-aspect fehlt): 16:9 */
	.hsg-news-grid:not([data-aspect]) .hsg-news-card__image { aspect-ratio: 16 / 9; }
	.hsg-news-card:hover .hsg-news-card__image img { transform: scale(1.04); }
	.hsg-news-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
	.hsg-news-card__title { font-size: 1.25rem; line-height: 1.3; }
	.hsg-news-card__title a { text-decoration: none; color: inherit; }
	.hsg-news-card__title a:hover { color: var(--wp--custom--color--accent-contrast); }
	.hsg-news-card__meta { font-size: 0.85rem; color: var(--hsg-text-muted); margin: 0; }

	/* ===== Sponsors-Slider ===== */
	.hsg-sponsors__track {
		display: grid; grid-auto-flow: column;
		grid-auto-columns: minmax(200px, 1fr);
		gap: 1.5rem; padding: 1rem 0; margin-top: 2rem;
		overflow-x: auto; scroll-snap-type: x proximity;
		scrollbar-width: thin;
	}
	.hsg-sponsor {
		display: grid; place-items: center;
		aspect-ratio: 3 / 2; padding: 1.5rem;
		background: var(--hsg-white);
		border: 1px solid var(--hsg-border);
		border-radius: var(--hsg-radius-md);
		scroll-snap-align: start;
		filter: grayscale(0.4); opacity: 0.85;
		transition: var(--hsg-motion-normal);
		text-decoration: none;
	}
	.hsg-sponsor:hover { filter: grayscale(0); opacity: 1; transform: translateY(-2px); }
	.hsg-sponsor__placeholder { font-weight: 600; color: var(--hsg-text-muted); }
	.hsg-sponsors__cta { text-align: center; margin-top: 2rem; }

	/* ===== Footer ===== */
	.hsg-site-footer {
		background: var(--hsg-navy);
		color: var(--hsg-white);
		padding: var(--hsg-section-y) 0 2rem 0;
	}
	.hsg-site-footer a { color: var(--hsg-white); text-decoration: none; }
	.hsg-site-footer a:hover { color: var(--wp--custom--color--accent); text-decoration: underline; }
	.hsg-footer-cols {
		display: grid;
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}
	@media (min-width: 720px) { .hsg-footer-cols { grid-template-columns: 1.2fr 1fr 1fr; } }
	.hsg-footer-h { font-size: 1.05rem; color: var(--wp--custom--color--accent); margin: 0 0 0.875rem 0; }
	.hsg-footer-h--mt { margin-top: 1.5rem; }
	.hsg-footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
	.hsg-footer-divider { margin: 3rem 0 1.5rem 0; border: 0; height: 1px; background: rgba(255,255,255,0.15); }
	.hsg-footer-bottom {
		display: flex; flex-wrap: wrap; gap: 1rem;
		justify-content: space-between; font-size: 0.875rem;
		opacity: 0.85;
	}
	.hsg-footer-bottom p { margin: 0; }

	/* ===== Breadcrumbs ===== */
	.hsg-breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 1.5rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; color: var(--hsg-text-muted); }
	.hsg-breadcrumbs li:not(:last-child)::after { content: '›'; margin-left: 0.5rem; opacity: 0.5; }
	.hsg-breadcrumbs a { color: inherit; }
	.hsg-section--navy .hsg-breadcrumbs { color: rgba(255,255,255,0.7); }

	/* ===== 404 ===== */
	.hsg-404 { min-height: 60vh; display: grid; align-items: center; }
	.hsg-404__title { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1rem; }
	.hsg-404__lead { font-size: 1.125rem; opacity: 0.85; max-width: 36rem; }
	.hsg-404__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }

	/* ===== Empty States ===== */
	.hsg-empty {
		padding: 2.5rem 1.5rem; text-align: center;
		color: var(--hsg-text-muted);
		border: 1px dashed var(--hsg-border);
		border-radius: var(--hsg-radius-md);
	}

	/* ===== Pagination ===== */
	.wp-pagenavi, .pagination, .nav-links {
		display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 3rem; justify-content: center;
	}
	.page-numbers {
		display: inline-block;
		padding: 0.5rem 1rem;
		border: 1px solid var(--hsg-border);
		border-radius: var(--hsg-radius-md);
		text-decoration: none; font-weight: 500;
	}
	.page-numbers.current { background: var(--hsg-navy); color: var(--hsg-white); border-color: var(--hsg-navy); }

	/* ===== Post-Nav (single) ===== */
	.hsg-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 4rem; }
	.hsg-post-nav a { display: block; padding: 1.5rem; border: 1px solid var(--hsg-border); border-radius: var(--hsg-radius-md); text-decoration: none; transition: var(--hsg-motion-fast); }
	.hsg-post-nav a:hover { border-color: var(--wp--custom--color--accent-contrast); }
	.hsg-post-nav small { display: block; color: var(--hsg-text-muted); font-size: 0.8rem; margin-bottom: 0.25rem; }
	.hsg-post-nav__next { text-align: right; }

	/* ===== Post-Cover ===== */
	.hsg-post-cover { margin: 0 0 2rem 0; border-radius: var(--hsg-radius-lg); overflow: hidden; }
	.hsg-post-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
	.hsg-post-meta { font-size: 0.95rem; color: var(--hsg-text-muted); }
	.hsg-post-tags { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--hsg-border); }
}

/* ─── @layer utilities ─────────────────────────────────────────── */
@layer utilities {
	[data-reveal] {
		opacity: 0; transform: translateY(20px);
		transition: opacity 600ms cubic-bezier(.2,.8,.2,1), transform 600ms cubic-bezier(.2,.8,.2,1);
	}
	[data-reveal].is-visible { opacity: 1; transform: none; }
}

