/* ═══════════════════════════════════════════════════════════════════
 * 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);
}

/* Site-Layout — vom Customizer via body-class gesetzt.
   Boxed = Default (1280 / 880), Wide = mehr Atemluft auf großen Monitoren.
   Direkter Override am .hsg-container (statt nur CSS-Variable),
   damit das @layer-Cascading sicher greift. */
body.hsg-layout-wide {
	--hsg-container:        1600px;
	--hsg-container-narrow: 1000px;
}
body.hsg-layout-wide .hsg-container          { max-width: 1600px; }
body.hsg-layout-wide .hsg-container--narrow  { max-width: 1000px; }
body.hsg-layout-wide .hsg-prose              { max-width: 1000px; }

@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; overflow-x: hidden; }
	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 wird in functions.php (hsg_head_preloads) inline ausgegeben,
	   sobald die Datei existiert — sonst greift der Body-Fallback-Stack. */

	body {
		font-family: var(--hsg-font-body, 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
		font-size: calc(1.05rem * var(--hsg-body-scale, 1));
		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 {
		font-family: var(--hsg-font-headings, 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
		margin: 0;
		font-weight: 700;
		line-height: 1.15;
		letter-spacing: -0.02em;
		color: inherit;
		/* Verhindert Widow-Wraps wie „Saison\n!" — pretty optimiert die
		   letzte Zeile (nicht zu kurz), balance verteilt Text auf
		   mehrere Zeilen gleichmäßig. pretty ist die richtige Wahl
		   für Headings; Chrome 117+, Firefox 121+, Safari 17.4+. */
		text-wrap: pretty;
	}
	h1 { font-size: calc(clamp(1.85rem, 4vw, 3rem) * var(--hsg-heading-scale, 1)); font-weight: 800; letter-spacing: -0.03em; }
	h2 { font-size: calc(clamp(1.5rem, 3vw, 2.25rem) * var(--hsg-heading-scale, 1)); }
	h3 { font-size: calc(clamp(1.25rem, 2vw, 1.5rem) * var(--hsg-heading-scale, 1)); }
	h4 { font-size: calc(1.125rem * var(--hsg-heading-scale, 1)); }

	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); }
	/* Gemeinsame Marker-Klasse für alle dunklen Sektionen — Hintergrund kommt
	 * aus den --navy / --navy-deep Varianten, alle Text-/Link-/Tag-Styles
	 * gegen .hsg-section--dark, damit sie für beide Varianten greifen. */
	.hsg-section--dark { color: var(--hsg-white); }
	.hsg-section--dark h1,
	.hsg-section--dark h2,
	.hsg-section--dark h3 { color: var(--hsg-white); }
	.hsg-section--dark a { color: var(--hsg-white); }
	.hsg-section--dark a:hover { color: var(--wp--custom--color--accent); }
	.hsg-section--navy      { background: var(--hsg-navy); }
	.hsg-section--navy-deep { background: var(--hsg-navy-deep); }

	.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);
		margin-left: auto;
		margin-right: auto;
	}
	.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-prose table,
	.hsg-legacy-table {
		width: 100%;
		border-collapse: collapse;
		margin: 1.5rem 0;
		font-size: 0.98rem;
	}
	.hsg-prose th, .hsg-prose td,
	.hsg-legacy-table th, .hsg-legacy-table td {
		border: 1px solid var(--hsg-border);
		padding: 0.55rem 0.7rem;
		text-align: left;
		vertical-align: top;
	}
	.hsg-legacy-image img {
		width: 100%;
		height: auto;
		border-radius: var(--hsg-radius-sm);
	}

	.hsg-legacy-list {
		--hsg-legacy-avatar-size: 108px;
		--hsg-legacy-icon-space: 110px;
		--hsg-legacy-line-width: 1px;
		--hsg-legacy-ring-width: 5px;
		margin-top: 1.5rem;
		padding-top: 0.5rem;
		display: grid;
		gap: 1.6rem;
	}
	.hsg-legacy-person {
		position: relative;
		display: grid;
		grid-template-columns: minmax(84px, var(--hsg-legacy-icon-space)) 1fr;
		gap: 1.1rem;
		align-items: start;
		padding: 0.35rem 0 0.95rem 0;
	}
	.hsg-legacy-person::after {
		content: '';
		position: absolute;
		left: calc((var(--hsg-legacy-icon-space) - var(--hsg-legacy-line-width)) / 2);
		top: calc(var(--hsg-legacy-avatar-size) + 0.45rem);
		bottom: -1rem;
		width: var(--hsg-legacy-line-width);
		background: color-mix(in srgb, var(--hsg-border) 82%, transparent);
	}
	.hsg-legacy-person:last-child::after { display: none; }
	.hsg-legacy-avatar {
		width: var(--hsg-legacy-avatar-size);
		height: var(--hsg-legacy-avatar-size);
		border-radius: 999px;
		border: var(--hsg-legacy-ring-width) solid var(--hsg-navy);
		background:
			radial-gradient(circle at 28% 24%, rgba(255,255,255,0.24), transparent 40%),
			linear-gradient(135deg, color-mix(in srgb, var(--hsg-navy) 86%, #0b1632), color-mix(in srgb, var(--wp--custom--color--accent-contrast) 32%, var(--hsg-navy)));
		overflow: hidden;
		display: flex;
		align-items: center;
		justify-content: center;
		box-shadow: 0 14px 24px -18px rgba(0, 40, 80, 0.8);
	}
	.hsg-legacy-avatar img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center;
	}
	.hsg-legacy-avatar--empty::before {
		content: attr(data-initials);
		font-size: clamp(1.05rem, 2vw, 1.7rem);
		font-weight: 800;
		letter-spacing: 0.04em;
		color: rgba(255,255,255,0.95);
		text-transform: uppercase;
	}
	.hsg-legacy-person__content { min-width: 0; }
	.hsg-legacy-person__title {
		margin: 0 0 0.3rem 0;
		font-size: clamp(1.1rem, 1.8vw, 1.65rem);
		font-weight: 700;
		letter-spacing: -0.01em;
	}
	.hsg-legacy-person p { margin-bottom: 0.45rem; }
	@media (max-width: 760px) {
		.hsg-legacy-person {
			grid-template-columns: 1fr;
			gap: 0.7rem;
		}
		.hsg-legacy-person::after { display: none; }
	}
	.hsg-prose .cmsmasters_icon_list_items.cmsmasters_icon_list_type_block .cmsmasters_icon_list_icon,
	.hsg-prose .cmsmasters_icon_list_items.cmsmasters_icon_list_type_block .cmsmasters_icon_list_icon_wrap {
		width: 110px !important;
		height: 110px !important;
		line-height: 110px !important;
	}
	.hsg-prose .cmsmasters_icon_list_items.cmsmasters_icon_list_type_block .cmsmasters_icon_list_icon img {
		width: 100% !important;
		height: 100% !important;
		object-fit: cover;
		border-radius: 50%;
	}

	.hsg-page-header { margin-bottom: 3rem; max-width: var(--hsg-container-narrow); margin-left: auto; margin-right: auto; }
	.hsg-page-title { margin-bottom: 0.5rem; }
	.hsg-page-title--xl { font-size: calc(clamp(2.75rem, 6vw, 5rem) * var(--hsg-heading-scale, 1)); 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--dark .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.55rem 0;
		overflow: visible;
	}
	/* 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: 0.9rem;
	}
	.hsg-site-header__brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; flex: 1 1 auto; }
	.hsg-site-logo,
	.hsg-site-logo a {
		display: inline-flex;
		align-items: center;
		flex-shrink: 0;
		max-height: 48px;
		line-height: 0;
	}
	.hsg-site-logo img,
	.hsg-site-logo .custom-logo,
	.hsg-site-logo .custom-logo-link img {
		max-height: 48px !important;
		width: auto !important;
		height: auto !important;
		max-width: 200px;
		object-fit: contain;
		display: block;
	}
	.hsg-site-id { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; flex: 0 1 auto; }
	.hsg-site-title { font-weight: 700; font-size: clamp(0.92rem, 1vw, 1.05rem); letter-spacing: -0.01em; text-decoration: none; color: inherit; }
	@media (min-width: 720px) {
		.hsg-site-title { 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 — fluid scaling, passt sich kontinuierlich an die Breite an ===== */
	.hsg-primary-nav { display: flex; align-items: center; margin-left: auto; min-width: 0; }
	.hsg-primary-nav ul {
		list-style: none; padding: 0; margin: 0;
		display: flex; align-items: center;
		gap: clamp(0.25rem, 0.7vw, 0.95rem);
	}
	.hsg-primary-nav li { position: relative; }
	.hsg-primary-nav a {
		text-decoration: none !important;
		font-weight: 600;
		letter-spacing: -0.01em;
		padding: 0.35rem 0.05rem;
		border: 0;
		color: var(--hsg-navy);
		white-space: nowrap;
	}
	.hsg-primary-nav a:link,
	.hsg-primary-nav a:visited,
	.hsg-primary-nav a:hover,
	.hsg-primary-nav a:focus,
	.hsg-primary-nav a:active { text-decoration: none !important; }
	.hsg-primary-nav > ul > li > a {
		font-size: clamp(0.82rem, 0.92vw, 1.12rem);
		border-bottom: 2px solid transparent;
		transition: color var(--hsg-motion-fast), border-color var(--hsg-motion-fast);
	}
	.hsg-primary-nav a:hover { color: var(--wp--custom--color--accent-contrast); border-bottom-color: transparent; }
	.hsg-primary-nav > ul > li.current-menu-item > a,
	.hsg-primary-nav > ul > li.current-menu-ancestor > a,
	.hsg-primary-nav > ul > li.current_page_parent > a {
		color: var(--wp--custom--color--accent-contrast);
		border-bottom-color: var(--wp--custom--color--accent-contrast);
	}
	.hsg-primary-nav li.menu-item-has-children > a::after {
		content: '▾';
		margin-left: 0.3rem;
		font-size: 0.62em;
		opacity: 0.52;
	}
	.hsg-primary-nav .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		background: rgba(255,255,255,0.98);
		backdrop-filter: blur(4px);
		padding: 0.5rem 0.3rem;
		border: 1px solid var(--hsg-border);
		box-shadow: 0 14px 24px -18px rgba(15, 20, 25, 0.35);
		border-radius: 10px;
		flex-direction: column;
		gap: 0.1rem;
		min-width: 11.5rem;
		margin-top: 0.32rem;
		display: none;
		z-index: 220;
	}
	/* Unsichtbarer Bridge-Bereich vom Parent-Item zum Submenu — verhindert,
	   dass der Hover-State beim Bewegen durch den 0.32rem-Margin abreißt.
	   Nur auf Geräten mit echtem Hover (sonst Phantom-Hover-Falle auf iOS). */
	@media (hover: hover) {
		.hsg-primary-nav > ul > li.menu-item-has-children:hover::after {
			content: '';
			position: absolute;
			top: 100%;
			left: 0;
			right: 0;
			height: 0.5rem;
		}
	}
	.hsg-primary-nav .sub-menu li {
		display: block;
		width: 100%;
		list-style: none;
		margin: 0;
	}
	.hsg-primary-nav .sub-menu a {
		display: block;
		width: 100%;
		padding: 0.5rem 0.7rem;
		font-size: 0.94rem;
		font-weight: 560;
		border-radius: 6px;
		white-space: nowrap;
		border-bottom: 0 !important;
		box-sizing: border-box;
	}
	.hsg-primary-nav .sub-menu a:hover,
	.hsg-primary-nav .sub-menu a:focus-visible {
		background: rgba(0, 56, 112, 0.08);
		color: var(--hsg-navy-deep);
	}
	.hsg-primary-nav .sub-menu .current-menu-item > a {
		background: transparent;
		color: var(--hsg-navy-deep);
		border-bottom: 1px solid var(--hsg-navy-deep) !important;
	}
	.hsg-primary-nav .sub-menu .sub-menu { top: -0.4rem; left: calc(100% + 0.35rem); }
	/* Hover-Auf­klappen nur auf Geräten mit echtem Hover (Maus). Auf iOS würde
	   sonst der erste Tap nur den :hover-State triggern (Phantom-Hover) und das
	   Submenu via JS-Toggle erst beim zweiten Tap reagieren. */
	@media (hover: hover) {
		.hsg-primary-nav li:hover > .sub-menu { display: flex; }
	}
	.hsg-primary-nav li.is-open > .sub-menu { display: flex; }

	/* ===== Ansprechpartner-Modul ===== */
	.hsg-contacts-module {
		margin: clamp(1.25rem, 2.4vw, 2.5rem) 0;
	}
	.hsg-contacts-head { margin-bottom: clamp(0.8rem, 1.6vw, 1.4rem); }
	.hsg-contacts-title {
		font-size: clamp(1.5rem, 3vw, 2.35rem);
		font-weight: 700;
		letter-spacing: -0.02em;
		text-transform: uppercase;
		margin: 0 0 0.25rem 0;
	}
	.hsg-contacts-subtitle {
		margin: 0;
		color: var(--hsg-text-muted);
		font-size: clamp(1rem, 1.5vw, 1.35rem);
	}
	.hsg-contacts-grid {
		display: grid;
		gap: clamp(0.9rem, 1.8vw, 1.5rem);
	}
	.hsg-contacts-grid--cols-1 { grid-template-columns: minmax(0, 320px); }
	.hsg-contacts-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hsg-contacts-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hsg-contacts-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

	/* Kontakt-Karten — Größe global gedeckelt via CSS-Variable, damit
	   Trainer-, Sponsoring-, Vorstands-Karten überall konsistent aussehen.
	   Anpassen über --hsg-contact-card-max in einem späteren Override
	   oder via theme.json. */
	.hsg-contacts-grid {
		--hsg-contact-card-max: 220px;
		justify-items: center;
	}
	.hsg-contact-card {
		background: var(--hsg-page-surf);
		border: 1px solid var(--hsg-border);
		box-shadow: var(--hsg-shadow-sm);
		overflow: hidden;
		display: flex;
		flex-direction: column;
		align-self: start;
		width: 100%;
		max-width: var(--hsg-contact-card-max, 220px);
	}
	.hsg-contact-card__media {
		position: relative;
		background: #d8dde5;
		overflow: hidden;
		aspect-ratio: 1 / 1;
	}
	.hsg-contact-card__img {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
		max-width: none !important;
		object-fit: cover !important;
		aspect-ratio: auto !important;
		display: block;
		/* object-position, transform, transform-origin werden inline gesetzt (focal + zoom) */
	}
	.hsg-contact-card__img--placeholder {
		position: absolute;
		inset: 0;
		background:
			radial-gradient(circle at 30% 20%, rgba(255,255,255,0.22), transparent 42%),
			linear-gradient(140deg, #0f3b73, #012347);
		color: rgba(255,255,255,0.95);
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.hsg-contact-card__img--placeholder span {
		font-size: clamp(1.25rem, 2.4vw, 2rem);
		font-weight: 800;
		letter-spacing: 0.06em;
	}
	.hsg-contact-card__overlay {
		background: var(--hsg-navy);
		color: var(--hsg-white);
		padding: 0.7rem 0.9rem;
	}
	.hsg-contact-card__name {
		margin: 0;
		color: inherit;
		font-size: clamp(1.05rem, 1.45vw, 1.35rem);
		font-weight: 700;
		line-height: 1.2;
	}
	.hsg-contact-card__role {
		margin: 0.2rem 0 0 0;
		color: rgba(255,255,255,0.9);
		font-size: clamp(0.92rem, 1.15vw, 1.06rem);
		font-style: italic;
		line-height: 1.3;
	}
	.hsg-contact-card__body {
		padding: 0.75rem 0.9rem 0.9rem 0.9rem;
	}
	.hsg-contact-card__meta {
		list-style: none;
		margin: 0;
		padding: 0;
		display: grid;
		gap: 0.46rem;
	}
	.hsg-contact-card__meta li {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		min-width: 0;
		color: var(--hsg-page-text);
	}
	.hsg-contact-card__meta a,
	.hsg-contact-card__meta span {
		font-size: 0.98rem;
		line-height: 1.35;
		word-break: break-word;
	}
	.hsg-contact-card__meta a {
		color: inherit;
		text-decoration: none;
	}
	.hsg-contact-card__meta a:hover { color: var(--hsg-navy); }
	.hsg-contact-card__icon {
		flex: 0 0 auto;
		width: 1.1rem;
		height: 1.1rem;
		color: var(--hsg-navy);
	}
	.hsg-contact-card__icon svg {
		display: block;
		width: 100%;
		height: 100%;
	}

	@media (max-width: 1100px) {
		.hsg-contacts-grid--cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	}
	@media (max-width: 920px) {
		.hsg-contacts-grid--cols-3,
		.hsg-contacts-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	}
	@media (max-width: 620px) {
		.hsg-contacts-grid--cols-2,
		.hsg-contacts-grid--cols-3,
		.hsg-contacts-grid--cols-4 { grid-template-columns: 1fr; }
		.hsg-contact-card__overlay {
			padding: 0.55rem 0.7rem;
		}
	}

	.hsg-nav-toggle {
		display: none; background: transparent; border: 0; padding: 0.5rem;
		cursor: pointer;
	}
	.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), opacity var(--hsg-motion-fast), top 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; }
	/* Hamburger → X bei offenem Drawer */
	.hsg-primary-nav[data-open] .hsg-nav-toggle__bars { background: transparent; }
	.hsg-primary-nav[data-open] .hsg-nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
	.hsg-primary-nav[data-open] .hsg-nav-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

	/* Tagline auf knappem Desktop ausblenden, damit das Menü mehr Raum bekommt. */
	@media (max-width: 1280px) {
		.hsg-site-tagline { display: none; }
	}

	/* ───────────────────────────────────────────────────────────────
	 * Mobile-Menü (≤1024px) — full-width Drop-down von oben
	 *
	 * Bewusst kein Slide-in-Drawer mit position:fixed — das hatte sich
	 * mit der bestehenden Hero-/Sticky-Header-Architektur verbissen.
	 * Stattdessen: einfaches display-none/flex Toggle, links-bündig,
	 * klare Hierarchie, große Tap-Targets.
	 * ─────────────────────────────────────────────────────────────── */
	@media (max-width: 1024px) {
		.hsg-nav-toggle { display: block; z-index: 201; position: relative; color: var(--hsg-navy); }
		.hsg-primary-nav { position: static; }

		.hsg-primary-nav ul#hsg-primary-menu {
			position: fixed !important;
			top: 0 !important;
			right: 0 !important;
			left: 0 !important;
			z-index: 199;
			background: var(--hsg-white);
			box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
			display: none !important;
			flex-direction: column;
			align-items: stretch;
			gap: 0;
			padding: 5rem 0 1.5rem 0;
			width: 100%;
			max-height: 100vh;
			overflow-y: auto;
			box-sizing: border-box;
			-webkit-overflow-scrolling: touch;
		}
		.hsg-primary-nav[data-open] ul#hsg-primary-menu {
			display: flex !important;
		}

		/* Top-Level-Items */
		.hsg-primary-nav ul#hsg-primary-menu > li {
			border-top: 1px solid var(--hsg-border);
			margin: 0;
			padding: 0;
			list-style: none;
		}
		.hsg-primary-nav ul#hsg-primary-menu > li:last-child {
			border-bottom: 1px solid var(--hsg-border);
		}
		.hsg-primary-nav ul#hsg-primary-menu a {
			display: flex !important;
			align-items: center;
			justify-content: space-between;
			width: 100%;
			padding: 0.95rem 1.5rem;
			min-height: 44px;
			font-size: 1rem;
			font-weight: 600;
			color: var(--hsg-navy);
			text-align: left;
			text-decoration: none !important;
			white-space: normal;
			border: 0 !important;
			box-sizing: border-box;
			transition: background var(--hsg-motion-fast), color var(--hsg-motion-fast);
		}
		.hsg-primary-nav ul#hsg-primary-menu a:hover,
		.hsg-primary-nav ul#hsg-primary-menu a:focus-visible {
			background: rgba(0, 56, 112, 0.06);
			color: var(--wp--custom--color--accent-contrast);
		}
		.hsg-primary-nav ul#hsg-primary-menu .current-menu-item > a,
		.hsg-primary-nav ul#hsg-primary-menu .current-menu-ancestor > a {
			color: var(--wp--custom--color--accent-contrast);
			background: rgba(0, 180, 216, 0.08);
		}

		/* Chevron für Submenu-Parents — Default-Pfeil (▾) durch CSS-Chevron ersetzen */
		.hsg-primary-nav li.menu-item-has-children > a::after {
			content: '';
			display: inline-block;
			width: 9px;
			height: 9px;
			margin: 0 0.1rem 0 0.75rem;
			border-right: 2px solid currentColor;
			border-bottom: 2px solid currentColor;
			transform: rotate(45deg);
			float: none;
			font-size: 0;
			opacity: 0.55;
			transition: transform var(--hsg-motion-fast), opacity var(--hsg-motion-fast);
			flex-shrink: 0;
		}
		.hsg-primary-nav li.menu-item-has-children.is-open > a::after {
			transform: rotate(-135deg);
			opacity: 0.85;
		}

		/* Submenu — eingerückt + leichter Hintergrund-Tint */
		.hsg-primary-nav .sub-menu {
			position: static;
			top: auto;
			left: auto;
			background: rgba(0, 56, 112, 0.04);
			backdrop-filter: none;
			border: 0 !important;
			border-left: 0 !important;
			box-shadow: none;
			border-radius: 0;
			padding: 0;
			margin: 0;
			min-width: 0;
			display: none;
			flex-direction: column;
			gap: 0;
			width: 100%;
			list-style: none;
		}
		.hsg-primary-nav li.menu-item-has-children.is-open > .sub-menu {
			display: flex;
		}
		.hsg-primary-nav .sub-menu li {
			margin: 0;
			padding: 0;
			list-style: none;
			border: 0 !important;
		}
		.hsg-primary-nav .sub-menu li + li {
			border-top: 1px solid rgba(0, 56, 112, 0.08) !important;
		}
		.hsg-primary-nav .sub-menu a {
			padding: 0.7rem 1.5rem 0.7rem 2.75rem;
			font-size: 0.93rem;
			font-weight: 500;
			min-height: 40px;
		}
		.hsg-primary-nav .sub-menu .sub-menu a {
			padding-left: 4rem;
			font-size: 0.88rem;
		}

		/* Home-Item: kleines Icon-only-Button am Top-Left des Drawers,
		 * spiegelbildlich zum X (gleiche Größe & Y-Position), in Akzent-Farbe.
		 * Label ist visuell versteckt aber für Screenreader vorhanden. */
		.hsg-primary-nav ul#hsg-primary-menu .hsg-menu-home {
			position: absolute;
			top: 0.5rem;
			left: 1rem;
			margin: 0;
			padding: 0;
			border: 0 !important;
			z-index: 200;
		}
		.hsg-primary-nav ul#hsg-primary-menu .hsg-menu-home > a {
			display: inline-flex !important;
			width: 40px !important;
			height: 40px;
			padding: 0 !important;
			min-height: 0;
			align-items: center;
			justify-content: center !important;
			background: transparent !important;
			color: var(--wp--custom--color--accent) !important;
			border-radius: 8px !important;
			border: 0 !important;
			box-shadow: none;
			transition: background var(--hsg-motion-fast), color var(--hsg-motion-fast);
		}
		.hsg-primary-nav ul#hsg-primary-menu .hsg-menu-home > a:hover,
		.hsg-primary-nav ul#hsg-primary-menu .hsg-menu-home > a:focus-visible {
			background: color-mix(in srgb, var(--wp--custom--color--accent) 14%, transparent) !important;
			color: var(--wp--custom--color--accent) !important;
		}
		.hsg-primary-nav ul#hsg-primary-menu .hsg-menu-home > a::after {
			content: none !important;
		}
		.hsg-menu-home__icon {
			width: 24px;
			height: 24px;
			flex-shrink: 0;
		}
		/* Label visually hidden, bleibt für Screenreader erhalten. */
		.hsg-menu-home__label {
			position: absolute !important;
			width: 1px; height: 1px;
			padding: 0; margin: -1px;
			overflow: hidden;
			clip: rect(0, 0, 0, 0);
			white-space: nowrap;
			border: 0;
		}
	}

	/* Home-Item nur im Mobile-Drawer — Desktop hat das Logo links als Home-Link. */
	@media (min-width: 1025px) {
		.hsg-menu-home { display: none !important; }
	}

	/* 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,
		.hsg-site-logo a { max-height: 40px; }
		.hsg-site-logo img,
		.hsg-site-logo .custom-logo,
		.hsg-site-logo .custom-logo-link img {
			max-height: 40px !important;
			max-width: 130px;
		}
		.hsg-site-title { font-size: 0.95rem; line-height: 1.15; }
		.hsg-site-tagline { display: none; }
	}

	/* Auf kleinsten Screens: Logo schmaler, Site-Titel bleibt sichtbar (Fallback,
	   falls das Logo-Bild fehlt/transparent ist). */
	@media (max-width: 480px) {
		.hsg-site-logo img,
		.hsg-site-logo .custom-logo,
		.hsg-site-logo .custom-logo-link img {
			max-width: 110px;
		}
		.hsg-site-title { font-size: 0.88rem; }
		.hsg-site-tagline { display: none; }
	}

	/* ===== Hero ===== */
	.hsg-hero {
		position: relative;
		isolation: isolate;
		overflow: hidden;
		background: var(--hsg-navy);
		color: var(--hsg-white);
		display: grid;
		align-items: center;
	}
	/* Text-Position: unten links statt mittig.
	   Doppel-Class für höhere Specificity (0,2,0) als die Basis-.hsg-hero (0,1,0). */
	.hsg-hero.hsg-hero--align-bottom-left {
		align-items: end !important;
		justify-items: start;
	}
	.hsg-hero.hsg-hero--align-bottom-left .hsg-hero__inner {
		padding-top: clamp(2rem, 4vw, 3.5rem) !important;
		padding-bottom: clamp(2rem, 4vw, 3.5rem) !important;
		max-width: min(60rem, 100%);
		margin-left: 0 !important;
		margin-right: auto;
	}
	.hsg-hero.hsg-hero--align-bottom-left .hsg-hero__title { margin-bottom: 1.25rem; }
	.hsg-hero.hsg-hero--align-bottom-left .hsg-hero__lead { margin-bottom: 1.5rem; }
	.hsg-hero--compact  { height: clamp(380px, 50vh, 560px); min-height: clamp(380px, 50vh, 560px); }
	.hsg-hero--standard { height: clamp(560px, 78vh, 880px); min-height: clamp(560px, 78vh, 880px); }
	.hsg-hero--full     { height: 100svh; min-height: 100svh; }
	/* 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.
	   !important + aspect-ratio:auto setzen den globalen img-Reset (height:auto)
	   und die implizite aspect-ratio aus den HTML-width/height-Attributen außer Kraft. */
	.hsg-hero__bg-img,
	.hsg-hero__slide {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
		max-width: none !important;
		object-fit: cover !important;
		aspect-ratio: auto !important;
		display: block;
		z-index: -2;
	}
	/* Slideshow — gestapelte Slides, Crossfade per Opacity */
	.hsg-hero__slides { position: absolute; inset: 0; z-index: -2; }
	.hsg-hero__slide {
		opacity: 0;
		transition: opacity 1.2s ease-in-out;
	}
	.hsg-hero__slide.is-active { opacity: 1; }
	@media (prefers-reduced-motion: reduce) {
		.hsg-hero__slide { transition: none; }
	}

	/* 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: calc(clamp(2.25rem, 7vw, 5rem) * var(--hsg-heading-scale, 1));
		font-weight: 800;
		line-height: 0.95;
		letter-spacing: -0.04em;
		margin: 0 0 2rem 0;
		color: var(--hsg-white);
	}
	.hsg-hero--title-small .hsg-hero__title  { font-size: calc(clamp(1.75rem, 5vw, 3.5rem) * var(--hsg-heading-scale, 1)); }
	.hsg-hero--title-large .hsg-hero__title  { font-size: calc(clamp(2.75rem, 9vw, 6.5rem) * var(--hsg-heading-scale, 1)); }
	.hsg-hero__accent {
		color: var(--wp--custom--color--accent);
		position: relative;
		display: inline-block;
		padding-left: 0.5em;
	}
	.hsg-hero__accent::before {
		content: '';
		position: absolute;
		left: 0;
		/* Strich an der Cap-Höhe ausrichten — nicht an der Line-Box.
		 * line-height 0.95em ist kleiner als 1, aber die Line-Box ist trotzdem
		 * höher als die sichtbaren Großbuchstaben (Ascender/Descender-Reserve).
		 * 0.12em / 0.08em positioniert den Strich visuell auf Höhe der Buchstaben. */
		top: 0.12em;
		bottom: 0.08em;
		width: 0.12em;
		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-Stats — kompakte Inline-Zeile (Numbers + Labels) */
	.hsg-hero__stats {
		display: flex;
		flex-wrap: wrap;
		gap: clamp(1.4rem, 3vw, 3rem);
		margin: clamp(2rem, 4vw, 3rem) 0 0 0;
		padding: 0;
	}
	.hsg-hero__stat {
		display: flex;
		align-items: baseline;
		gap: 0.6rem;
		margin: 0;
	}
	.hsg-hero__stat-num {
		font-size: clamp(1.4rem, 2.4vw, 2rem);
		font-weight: 800;
		line-height: 1;
		color: var(--wp--custom--color--accent);
		letter-spacing: -0.02em;
		margin: 0;
	}
	.hsg-hero__stat-lbl {
		font-size: clamp(0.65rem, 0.8vw, 0.78rem);
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		color: rgba(255, 255, 255, 0.85);
		line-height: 1.25;
		max-width: 9em;
		margin: 0;
	}

	/* Hero-Optimierung Mobile.
	 * Ziel: Hero-Inhalt (Eyebrow + Titel + Lead + CTA + 4 Stats) muss in den
	 * Viewport passen. min-height senken, Spacing/Margin straffen, Stats
	 * kompakter — sonst wird oben (Eyebrow) und unten (Stats) abgeschnitten. */
	@media (max-width: 640px) {
		.hsg-hero--compact  { height: auto; min-height: clamp(320px, 45vh, 480px); }
		.hsg-hero--standard { height: auto; min-height: clamp(380px, 60vh, 600px); }
		.hsg-hero--full     { height: auto; min-height: 100svh; }
		.hsg-hero__inner {
			padding-top: 2.5rem;
			padding-bottom: 2.5rem;
		}
		.hsg-hero.hsg-hero--align-bottom-left .hsg-hero__inner {
			padding-top: 2rem !important;
			padding-bottom: 2rem !important;
		}
		.hsg-hero__eyebrow { margin-bottom: 0.85rem; }
		.hsg-hero__title {
			font-size: calc(clamp(1.85rem, 10vw, 3.25rem) * var(--hsg-heading-scale, 1));
			margin: 0 0 1rem 0;
		}
		.hsg-hero.hsg-hero--align-bottom-left .hsg-hero__title { margin-bottom: 0.85rem; }
		.hsg-hero--title-small .hsg-hero__title  { font-size: calc(clamp(1.5rem, 8vw, 2.5rem) * var(--hsg-heading-scale, 1)); }
		.hsg-hero--title-large .hsg-hero__title  { font-size: calc(clamp(2.25rem, 12vw, 4rem) * var(--hsg-heading-scale, 1)); }
		.hsg-hero__lead {
			font-size: 0.95rem;
			line-height: 1.45;
			margin-bottom: 1.25rem;
		}
		.hsg-hero.hsg-hero--align-bottom-left .hsg-hero__lead { margin-bottom: 1rem; }
		.hsg-hero__cta {
			flex-direction: column;
			align-items: stretch;
			gap: 0.6rem;
		}
		.hsg-hero__cta .hsg-btn { text-align: center; padding: 0.75rem 1.25rem; }
		.hsg-hero__stats {
			gap: 0.7rem 1.1rem;
			margin-top: 1.4rem;
		}
		.hsg-hero__stat { gap: 0.4rem; }
		.hsg-hero__stat-num { font-size: 1.15rem; }
		.hsg-hero__stat-lbl { font-size: 0.6rem; max-width: 7em; letter-spacing: 0.06em; }
	}
	/* Sehr schmale Phones: 4 Stats sprengen auch kompaktiert die Höhe — ausblenden,
	   die Zahlen sind in der Claim-Sektion sowieso sichtbar. */
	@media (max-width: 380px) {
		.hsg-hero__stats { display: none; }
	}

	/* ===== 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--dark .hsg-tag--home {
		background: var(--hsg-white);
		color: var(--hsg-navy);
	}
	.hsg-section--dark .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--dark .hsg-eyebrow { color: var(--wp--custom--color--accent); }
	.hsg-accent { color: var(--wp--custom--color--accent); }

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

	/* ===== Stats ===== */
	.hsg-stats {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--hsg-grid-gap);
		margin-top: 3rem;
		max-width: 1100px;
		margin-left: auto;
		margin-right: auto;
	}
	@media (min-width: 720px) {
		.hsg-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	}
	.hsg-stat {
		display: grid;
		gap: 0.5rem;
		padding: 2rem 1.5rem;
		background: var(--hsg-off-white);
		border-radius: var(--hsg-radius-lg);
		border: 1px solid var(--hsg-border);
		text-align: center;
		justify-items: center;
		align-content: center;
	}
	.hsg-section--dark .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--dark .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--dark .hsg-stat__lbl { color: rgba(255,255,255,0.85); }

	/* ===== Next Game (Wochenend-Karten + Spielplan) ===== */
	.hsg-game-cards { display: grid; gap: 0.75rem; margin: 1.5rem 0 0 0; }
	.hsg-game-cards .hsg-game-card { margin: 0; }

	.hsg-game-card__cta { margin-top: 0.4rem; align-self: start; }
	.hsg-empty--card {
		margin: 2.5rem 0 0 0;
		padding: 2rem;
		text-align: center;
		background: rgba(255, 255, 255, 0.05);
		border: 1px dashed rgba(255, 255, 255, 0.2);
		border-radius: var(--hsg-radius-lg);
		color: rgba(255, 255, 255, 0.85);
	}

	/* ===== Spielplan-Archive (archive-spiel.php) ===== */
	.hsg-spielplan-page .hsg-page-header { margin-bottom: 1.5rem; }
	.hsg-spielplan-page .hsg-page-title {
		font-size: clamp(1.6rem, 2.8vw, 2.4rem);
		margin: 0.25rem 0 0;
	}
	.hsg-spielplan {
		display: grid;
		gap: clamp(1.25rem, 2.5vw, 2.25rem);
		grid-template-columns: 1fr;
	}
	@media (min-width: 880px) {
		.hsg-spielplan { grid-template-columns: 220px 1fr; align-items: start; }
		.hsg-spielplan__sidebar { position: sticky; top: 5rem; }
	}
	.hsg-spielplan__sidebar { display: grid; gap: 1.5rem; }
	.hsg-spielplan__sidebar-h {
		font-size: 0.72rem;
		font-weight: 700;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		color: var(--hsg-text-muted);
		margin: 0 0 0.6rem 0;
	}
	.hsg-spielplan__toggle {
		display: flex;
		gap: 0;
		background: var(--hsg-off-white);
		border: 1px solid var(--hsg-border);
		border-radius: 8px;
		padding: 3px;
	}
	.hsg-spielplan__toggle-btn,
	.hsg-spielplan__toggle-btn:link,
	.hsg-spielplan__toggle-btn:visited {
		flex: 1;
		text-align: center;
		padding: 0.5rem 0.7rem;
		font-size: 0.85rem;
		font-weight: 600;
		text-decoration: none !important;
		color: var(--hsg-page-text) !important;
		border-radius: 6px;
		transition: background-color var(--hsg-motion-fast), color var(--hsg-motion-fast);
	}
	.hsg-spielplan__toggle-btn.is-active,
	.hsg-spielplan__toggle-btn.is-active:link,
	.hsg-spielplan__toggle-btn.is-active:visited {
		background: var(--hsg-navy);
		color: #ffffff !important;
	}
	.hsg-spielplan__teams { display: flex; flex-wrap: wrap; gap: 0.4rem; }
	@media (min-width: 880px) {
		.hsg-spielplan__teams { flex-direction: column; }
	}
	.hsg-spielplan__chip,
	.hsg-spielplan__chip:link,
	.hsg-spielplan__chip:visited,
	button.hsg-spielplan__chip {
		display: inline-block;
		padding: 0.45rem 0.8rem;
		font-size: 0.85rem;
		font-weight: 600;
		font-family: inherit;
		text-decoration: none !important;
		color: var(--hsg-page-text) !important;
		background: var(--hsg-off-white);
		border: 1px solid var(--hsg-border);
		border-radius: 999px;
		cursor: pointer;
		text-align: center;
		transition: background-color var(--hsg-motion-fast), color var(--hsg-motion-fast), border-color var(--hsg-motion-fast);
	}
	.hsg-spielplan__chip:hover {
		border-color: var(--hsg-navy);
		color: var(--hsg-navy) !important;
	}
	.hsg-spielplan__chip.is-active,
	.hsg-spielplan__chip.is-active:link,
	.hsg-spielplan__chip.is-active:visited {
		background: var(--hsg-navy);
		color: #ffffff !important;
		border-color: var(--hsg-navy);
	}
	.hsg-spielplan__ical { display: grid; gap: 0.4rem; }
	.hsg-spielplan__ical small { color: var(--hsg-text-muted); font-size: 0.78rem; }

	.hsg-spielplan__list { min-width: 0; display: grid; gap: 2rem; }
	.hsg-spielplan__month-title {
		font-size: clamp(1rem, 1.5vw, 1.15rem);
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		color: var(--hsg-text-muted);
		margin: 0 0 0.75rem 0;
		padding-bottom: 0.5rem;
		border-bottom: 1px solid var(--hsg-border);
	}
	.hsg-spielplan__games { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
	.hsg-spielplan-game { margin: 0; }
	.hsg-spielplan-game__link {
		display: grid;
		grid-template-columns: 70px 1fr auto;
		gap: 1rem;
		align-items: center;
		padding: 0.85rem 1rem;
		background: var(--hsg-page-surf);
		border: 1px solid var(--hsg-border);
		border-radius: 10px;
		text-decoration: none !important;
		color: inherit;
		transition: border-color var(--hsg-motion-fast), background-color var(--hsg-motion-fast);
	}
	.hsg-spielplan-game__link:hover,
	.hsg-spielplan-game__link:focus-visible {
		border-color: var(--hsg-navy);
		background: var(--hsg-off-white);
	}
	.hsg-spielplan-game__date {
		display: grid;
		text-align: center;
		gap: 0;
		line-height: 1.1;
		border-right: 1px solid var(--hsg-border);
		padding-right: 1rem;
	}
	.hsg-spielplan-game__day {
		font-size: 0.65rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.1em;
		color: var(--hsg-text-muted);
	}
	.hsg-spielplan-game__num {
		font-size: 1.5rem;
		font-weight: 800;
		color: var(--hsg-navy);
		line-height: 1;
	}
	.hsg-spielplan-game__mon {
		font-size: 0.7rem;
		text-transform: uppercase;
		color: var(--hsg-text-muted);
	}
	.hsg-spielplan-game__time {
		font-size: 0.78rem;
		color: var(--hsg-text-muted);
		margin-top: 0.25rem;
	}
	.hsg-spielplan-game__main { min-width: 0; display: grid; gap: 0.25rem; }
	.hsg-spielplan-game__label {
		font-size: 0.65rem;
		font-weight: 700;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		color: var(--wp--custom--color--accent-contrast);
	}
	.hsg-spielplan-game__teams { display: grid; gap: 0.15rem; }
	.hsg-spielplan-game__row {
		display: grid;
		grid-template-columns: 24px 1fr auto;
		gap: 0.5rem;
		align-items: center;
		min-width: 0;
	}
	.hsg-spielplan-game__logo {
		width: 24px; height: 24px;
		object-fit: contain;
		background: var(--hsg-off-white);
		border-radius: 4px;
		padding: 2px;
	}
	.hsg-spielplan-game__logo--placeholder {
		background: var(--hsg-border);
	}
	.hsg-spielplan-game__name {
		font-size: 0.95rem;
		font-weight: 600;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.hsg-spielplan-game__score {
		font-variant-numeric: tabular-nums;
		font-weight: 700;
		font-size: 0.95rem;
		color: var(--hsg-text-muted);
	}
	.hsg-spielplan-game__score.is-winner {
		color: var(--wp--custom--color--accent-contrast);
	}
	.hsg-spielplan-game__meta {
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: 0.35rem;
		font-size: 0.78rem;
		color: var(--hsg-text-muted);
	}
	.hsg-spielplan-game__loc {
		max-width: 14em;
		text-align: right;
		line-height: 1.3;
	}
	@media (max-width: 640px) {
		.hsg-spielplan-game__link { grid-template-columns: 60px 1fr; gap: 0.75rem; padding: 0.75rem; }
		.hsg-spielplan-game__meta { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; flex-wrap: wrap; }
	}

	/* "Nächste Spiele" — kompakter Header (Section-Padding und Titel kleiner) */
	.hsg-next-game.hsg-section {
		padding-top: clamp(2.25rem, 4.5vw, 4rem);
		padding-bottom: clamp(2.25rem, 4.5vw, 4rem);
	}
	.hsg-next-game .hsg-eyebrow { margin: 0 0 0.4rem 0; }
	.hsg-next-game .hsg-section-title {
		font-size: clamp(1.25rem, 2.1vw, 1.6rem);
		font-weight: 700;
		letter-spacing: -0.01em;
		margin: 0 0 1.25rem 0;
	}
	.hsg-next-game .hsg-actions { margin-top: 1.5rem; }
	.hsg-next-game__schedule { margin-top: 2rem; }
	.hsg-next-game__schedule-head { margin-bottom: 0.75rem; }
	.hsg-events__list--compact { gap: 0.5rem; }
	.hsg-events__list--compact .hsg-event {
		padding: 0.875rem 1.25rem;
		background: rgba(255, 255, 255, 0.04);
		border-color: rgba(255, 255, 255, 0.12);
	}
	.hsg-events__list--compact .hsg-event__title { color: var(--hsg-white); }
	.hsg-events__list--compact .hsg-event__meta  { color: rgba(255, 255, 255, 0.75); }
	/* Datum-Block + Team-Label im dunklen Kontext sichtbar machen
	 * (Default-Farben sind navy auf navy = unsichtbar) */
	.hsg-section--dark .hsg-event__num         { color: var(--wp--custom--color--accent); }
	.hsg-section--dark .hsg-event__day,
	.hsg-section--dark .hsg-event__mon         { color: rgba(255, 255, 255, 0.92); opacity: 1; }
	.hsg-section--dark .hsg-event__team-label  { color: var(--wp--custom--color--accent); }
	.hsg-section--dark .hsg-event__date        { border-right-color: rgba(255, 255, 255, 0.2); }
	/* Spieltitel-Link weiß auf dunklen Sektionen — alle Link-States explizit
	 * + !important, weil andere Regeln (a {}, .hsg-event__title:hover usw.)
	 * im Cascade gewinnen können und :visited vom Browser gefärbt wird. */
	.hsg-section--dark a.hsg-event__title,
	.hsg-section--dark a.hsg-event__title:link,
	.hsg-section--dark a.hsg-event__title:visited,
	.hsg-section--dark a.hsg-event__title:active {
		color: var(--hsg-white) !important;
		text-decoration: none !important;
	}
	.hsg-section--dark a.hsg-event__title:hover,
	.hsg-section--dark a.hsg-event__title:focus {
		color: var(--wp--custom--color--accent) !important;
		text-decoration: underline !important;
	}
	/* Fallback: hsg-next-game ist per Definition dunkel — auch wenn der
	 * Renderer aus irgendeinem Grund --dark nicht injiziert, soll Titel weiß sein */
	.hsg-next-game a.hsg-event__title,
	.hsg-next-game a.hsg-event__title:link,
	.hsg-next-game a.hsg-event__title:visited,
	.hsg-next-game a.hsg-event__title:active {
		color: var(--hsg-white) !important;
		text-decoration: none !important;
	}
	.hsg-next-game a.hsg-event__title:hover,
	.hsg-next-game a.hsg-event__title:focus {
		color: var(--wp--custom--color--accent) !important;
	}
	/* Listen-Items als sichtbare „Karten" mit leicht hellem Hintergrund */
	.hsg-section--dark .hsg-events__list--compact .hsg-event {
		background: rgba(255, 255, 255, 0.06);
		border: 1px solid rgba(255, 255, 255, 0.14);
	}
	.hsg-section--dark .hsg-events__list--compact .hsg-event:hover {
		background: rgba(255, 255, 255, 0.10);
		border-color: rgba(255, 255, 255, 0.25);
	}
	/* Filter-Chips auf dunklem Hintergrund anpassen */
	.hsg-next-game .hsg-filter {
		color: rgba(255, 255, 255, 0.85);
		border-color: rgba(255, 255, 255, 0.25);
	}
	.hsg-next-game .hsg-filter.is-active {
		background: var(--hsg-white);
		color: var(--hsg-navy);
		border-color: var(--hsg-white);
	}

	.hsg-game-card {
		display: grid;
		grid-template-columns: auto 1fr auto;
		gap: 1.25rem;
		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: 1.1rem 1.4rem;
		margin: 0;
	}
	.hsg-game-card__date {
		display: grid; text-align: center; min-width: 56px;
		border-right: 1px solid rgba(255,255,255,0.15);
		padding-right: 1rem;
	}
	.hsg-game-card__day { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; }
	.hsg-game-card__num { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 800; line-height: 1; color: var(--wp--custom--color--accent); }
	.hsg-game-card__mon { font-size: 0.7rem; text-transform: uppercase; opacity: 0.8; }

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

	.hsg-game-card__matchup {
		display: grid; gap: 0.3rem;
	}
	.hsg-team-row {
		display: flex; align-items: center; gap: 0.65rem;
		font-size: clamp(0.92rem, 1.2vw, 1.05rem);
		font-weight: 600;
		line-height: 1.2;
	}
	.hsg-team-row__logo {
		flex-shrink: 0;
		width: 26px; height: 26px;
		object-fit: contain;
		background: var(--hsg-white);
		border-radius: 4px;
		padding: 2px;
	}
	.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.72rem;
		opacity: 0.55;
		font-weight: 500;
		text-transform: lowercase;
		padding-left: calc(26px + 0.65rem);
	}

	.hsg-game-card__side {
		display: grid; gap: 0.5rem;
		justify-items: end; align-content: center;
	}
	.hsg-game-card__meta {
		display: flex; gap: 0.7rem; flex-wrap: wrap;
		justify-content: flex-end;
		font-size: 0.78rem;
		opacity: 0.9;
	}
	.hsg-game-card__countdown {
		display: grid; grid-template-columns: repeat(3, auto auto); column-gap: 0.35rem; row-gap: 0;
		font-variant-numeric: tabular-nums;
		align-items: baseline;
	}
	.hsg-game-card__countdown span { font-size: clamp(1rem, 1.6vw, 1.3rem); font-weight: 800; color: var(--wp--custom--color--accent); line-height: 1; }
	.hsg-game-card__countdown small { font-size: 0.6rem; text-transform: uppercase; opacity: 0.7; align-self: baseline; padding: 0; }
	.hsg-game-card__cta.hsg-btn { padding: 0.45rem 0.9rem; font-size: 0.85rem; }

	@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 {
		list-style: none;
		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::marker { content: ""; }
	.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; color: var(--hsg-text-muted); 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; color: var(--hsg-text-muted); 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__logo--placeholder { background: var(--hsg-border); padding: 0; }
	.hsg-section--dark .hsg-event__logo--placeholder { background: rgba(255, 255, 255, 0.08); }
	.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; }

	/* Read-More-Link in Excerpts — modernes Inline-Pattern mit Hover-Arrow */
	.hsg-readmore {
		display: inline-flex;
		align-items: center;
		gap: 0.4em;
		margin-left: 0.25em;
		padding: 0;
		font-weight: 600;
		font-size: 0.92em;
		color: var(--wp--custom--color--accent-contrast);
		text-decoration: none !important;
		border-bottom: 1px solid transparent;
		white-space: nowrap;
		transition: color var(--hsg-motion-fast), border-color var(--hsg-motion-fast);
	}
	.hsg-readmore:hover,
	.hsg-readmore:focus-visible {
		color: var(--hsg-navy);
		border-bottom-color: currentColor;
	}
	.hsg-readmore__arrow {
		display: inline-block;
		transition: transform var(--hsg-motion-fast);
	}
	.hsg-readmore:hover .hsg-readmore__arrow,
	.hsg-readmore:focus-visible .hsg-readmore__arrow {
		transform: translateX(4px);
	}
	@media (prefers-reduced-motion: reduce) {
		.hsg-readmore__arrow { transition: none; }
		.hsg-readmore:hover .hsg-readmore__arrow,
		.hsg-readmore:focus-visible .hsg-readmore__arrow { transform: none; }
	}
	/* Auf dunklen Sektionen: weiß auf dunkel */
	.hsg-section--dark .hsg-readmore { color: var(--hsg-white); }
	.hsg-section--dark .hsg-readmore:hover { color: var(--wp--custom--color--accent); }
	/* In News-Karten: link auf eigener Zeile rutschen, sieht aufgeräumter aus */
	.hsg-news-card__body .hsg-readmore {
		display: inline-flex;
		margin-top: 0.2rem;
	}

	/* ===== Specials (Ankündigungen) =====
	 * Eigene Sektion oberhalb der News, deutlich abgesetzt:
	 *   - Navy-Hintergrund + Cyan-Akzentstreifen oben (Section-Top)
	 *   - Cards mit dunklem Glas-Look + Cyan-Border-Top
	 *   - Eyebrow mit Stern, Akzent-Button als CTA
	 * Layout teilt sich Grundstruktur mit News-Cards, aber visuell distinkt. */
	.hsg-special {
		position: relative;
		background:
			linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 60%),
			var(--hsg-navy);
	}
	.hsg-special::before {
		content: '';
		position: absolute;
		top: 0; left: 0; right: 0;
		height: 4px;
		background: var(--wp--custom--color--accent);
		z-index: 1;
	}
	.hsg-special__eyebrow {
		display: inline-flex;
		align-items: center;
		gap: 0.5rem;
		color: var(--wp--custom--color--accent) !important;
	}
	.hsg-special__star {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 1.4em;
		height: 1.4em;
		border-radius: 50%;
		background: var(--wp--custom--color--accent);
		color: var(--hsg-navy);
		font-size: 0.85em;
		line-height: 1;
	}
	.hsg-special-grid {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
		gap: var(--hsg-grid-gap);
		align-items: start;
	}
	@media (min-width: 880px) {
		.hsg-special-grid--2 { grid-template-columns: repeat(2, 1fr); }
		.hsg-special-grid--3 { grid-template-columns: repeat(3, 1fr); }
	}
	.hsg-special-card {
		display: flex;
		flex-direction: column;
		background: rgba(255, 255, 255, 0.06);
		border: 1px solid rgba(255, 255, 255, 0.12);
		border-top: 3px solid var(--wp--custom--color--accent);
		border-radius: var(--hsg-radius-lg);
		overflow: hidden;
		transition: var(--hsg-motion-normal);
		backdrop-filter: blur(6px);
	}
	.hsg-special-card:hover {
		transform: translateY(-2px);
		box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.45);
		border-color: rgba(255, 255, 255, 0.22);
		border-top-color: var(--wp--custom--color--accent);
	}
	.hsg-special-card__image {
		display: block;
		overflow: hidden;
		background: rgba(0, 0, 0, 0.25);
	}
	.hsg-special-card__image img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform var(--hsg-motion-normal);
	}
	/* Aspect-Ratio-Steuerung über data-aspect am Grid — gleiche Quelle wie News
	   (hsg_news_aspect), damit alle Beitragsbilder konsistent sind. */
	.hsg-special-grid[data-aspect="16-9"] .hsg-special-card__image { aspect-ratio: 16 / 9; }
	.hsg-special-grid[data-aspect="4-3"]  .hsg-special-card__image { aspect-ratio: 4 / 3; }
	.hsg-special-grid[data-aspect="1-1"]  .hsg-special-card__image { aspect-ratio: 1 / 1; }
	.hsg-special-grid[data-aspect="original"] .hsg-special-card__image { aspect-ratio: auto; }
	.hsg-special-grid[data-aspect="original"] .hsg-special-card__image img {
		height: auto;
		object-fit: contain;
	}
	.hsg-special-grid[data-aspect="original"] { align-items: start; }
	.hsg-special-grid:not([data-aspect]) .hsg-special-card__image { aspect-ratio: 16 / 9; }
	.hsg-special-card:hover .hsg-special-card__image img { transform: scale(1.04); }
	.hsg-special-card__body {
		padding: 1.25rem 1.5rem 1.5rem;
		display: flex;
		flex-direction: column;
		gap: 0.6rem;
		flex: 1;
		color: var(--hsg-white);
	}
	/* Titel & Links explizit weiß forcieren — die globale .hsg-section--dark a
	   Regel würde reichen, kann aber von .hsg-prose / Plugin-Styles geschlagen
	   werden. Hier hart gesetzt, damit der Titel auf Navy lesbar bleibt. */
	.hsg-special-card__title {
		font-size: 1.25rem;
		line-height: 1.3;
		margin: 0;
		color: var(--hsg-white);
	}
	.hsg-special-card__title a,
	.hsg-special-card__title a:link,
	.hsg-special-card__title a:visited,
	.hsg-special-card__title a:hover,
	.hsg-special-card__title a:focus {
		color: var(--hsg-white) !important;
		text-decoration: none !important;
		border: 0 !important;
	}
	.hsg-special-card__title a:hover { color: var(--wp--custom--color--accent) !important; }
	.hsg-special-card__excerpt {
		color: rgba(255, 255, 255, 0.82);
		font-size: 0.95rem;
		line-height: 1.5;
	}
	.hsg-special-card__excerpt p { margin: 0; }
	/* CTA sitzt direkt unter dem Bild — Markup-Reihenfolge im Template stellt das sicher. */
	.hsg-special-card__cta { margin: 0; }
	.hsg-special-card__cta .hsg-btn { padding: 0.55rem 1.1rem; font-size: 0.92rem; }

	/* ===== Galerie-Karussell — Spotlight mit gepeekten Nachbarn + Thumb-Strip
	 *
	 * Optik orientiert sich an der OnePager-Portfolio-Sektion (vfotowelt.de):
	 * großzügige Slide-Höhe, klare Hierarchie zwischen aktiver und Nachbar-
	 * Slide, gepolsterte Thumb-Leiste mit fett-aktivem Akzent.
	 * ===================================================================== */
	.hsg-galerie {
		margin: clamp(1.5rem, 3vw, 2.5rem) 0;
	}
	/* Breakout aus dem schmalen .hsg-prose-Container (max 880px), damit
	 * die Stage breit wird und Nachbar-Slides als Streifen rein-peeken können
	 * — wie bei vfotowelt.de. Nur wirksam wenn die Galerie direkt im
	 * Prose-Wrapper sitzt (klassischer Page-Editor-Shortcode). */
	.hsg-prose .hsg-galerie {
		--hsg-galerie-bleed: min(1280px, calc(100vw - 2rem));
		width: var(--hsg-galerie-bleed);
		max-width: none;
		margin-left: calc(50% - var(--hsg-galerie-bleed) / 2);
		margin-right: calc(50% - var(--hsg-galerie-bleed) / 2);
	}
	.hsg-galerie__stage {
		position: relative;
		overflow: hidden;
		border-radius: var(--hsg-radius-lg);
	}
	.hsg-galerie__track {
		display: flex;
		align-items: center;
		gap: 0;
		transition: transform 500ms cubic-bezier(0.25, 0.1, 0.25, 1);
		will-change: transform;
	}
	.hsg-galerie__slide {
		flex-shrink: 0;
		padding: 0 12px;
		box-sizing: border-box;
		opacity: 0.4;
		transform: scale(0.9);
		cursor: pointer;
		transition: opacity 500ms ease, transform 500ms ease;
	}
	.hsg-galerie__slide.is-active {
		opacity: 1;
		transform: scale(1);
		cursor: default;
	}
	.hsg-galerie__figure { margin: 0; }
	/* Bilder werden nie über ihre native Größe hinaus hochskaliert (max-height
	   statt height). Bei Bildern ≥ Cap-Höhe entsteht trotzdem eine einheitliche
	   Höhe; kleinere Originale bleiben in Originalgröße — schärfer als ein
	   gestretchter Upscale. Kein object-fit / kein Crop. */
	.hsg-galerie__img {
		display: block;
		height: auto;
		max-height: clamp(220px, 28vw, 380px);
		width: auto;
		max-width: 100%;
		min-width: 200px;
		border-radius: 8px;
		background: var(--hsg-off-white);
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	}
	.hsg-galerie__slide.is-active .hsg-galerie__img {
		box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
	}
	.hsg-galerie__slide.is-active .hsg-galerie__caption { display: block; }
	.hsg-galerie__caption {
		display: none;
		font-size: 0.92rem;
		color: var(--hsg-text-muted);
		line-height: 1.5;
		margin-top: 0.85rem;
		text-align: center;
	}
	/* Prev/Next-Buttons */
	.hsg-galerie__nav {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		z-index: 5;
		width: 48px;
		height: 48px;
		border-radius: 50%;
		border: 0;
		padding: 0;
		background: rgba(255, 255, 255, 0.95);
		color: var(--hsg-navy);
		box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		transition: background-color var(--hsg-motion-fast), box-shadow var(--hsg-motion-fast), transform var(--hsg-motion-fast);
	}
	.hsg-galerie__nav:hover {
		background: #ffffff;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	}
	.hsg-galerie__nav:active {
		transform: translateY(-50%) scale(0.92);
	}
	.hsg-galerie__nav--prev { left: clamp(0.75rem, 2vw, 1.5rem); }
	.hsg-galerie__nav--next { right: clamp(0.75rem, 2vw, 1.5rem); }
	@media (max-width: 600px) {
		.hsg-galerie__nav { width: 40px; height: 40px; }
	}
	/* Thumbnail-Filmstreifen */
	.hsg-galerie__thumbs-wrap {
		margin-top: 1.25rem;
		overflow: hidden;
	}
	.hsg-galerie__thumbs {
		display: flex;
		gap: 0.625rem;
		overflow-x: auto;
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 0.4rem;
	}
	.hsg-galerie__thumbs::-webkit-scrollbar { display: none; }
	.hsg-galerie__thumb {
		flex-shrink: 0;
		width: 110px;
		height: 78px;
		border-radius: 8px;
		overflow: hidden;
		border: 3px solid transparent;
		background: none;
		padding: 0;
		cursor: pointer;
		opacity: 0.55;
		transition: opacity var(--hsg-motion-fast), border-color var(--hsg-motion-fast), transform var(--hsg-motion-fast);
	}
	.hsg-galerie__thumb:hover {
		opacity: 0.9;
		transform: translateY(-1px);
	}
	.hsg-galerie__thumb.is-active {
		opacity: 1;
		border-color: var(--wp--custom--color--accent-contrast, var(--hsg-navy));
	}
	.hsg-galerie__thumb img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
	@media (max-width: 600px) {
		.hsg-galerie__thumb { width: 84px; height: 60px; border-width: 2px; }
		.hsg-galerie__thumbs { gap: 0.5rem; }
	}
	@media (prefers-reduced-motion: reduce) {
		.hsg-galerie__track,
		.hsg-galerie__slide,
		.hsg-galerie__thumb { transition: none; }
	}

	/* ===== Sponsors — kompakte Logo-Wand ===== */
	.hsg-sponsors.hsg-section {
		padding-top: clamp(1.75rem, 3.5vw, 3rem);
		padding-bottom: clamp(1.75rem, 3.5vw, 3rem);
	}
	.hsg-sponsors .hsg-section-head { margin-bottom: 1.25rem; }
	.hsg-sponsors .hsg-eyebrow { margin-bottom: 0.4rem; }
	.hsg-sponsors .hsg-section-title {
		font-size: clamp(1.15rem, 2vw, 1.5rem);
		margin: 0 0 0.5rem 0;
	}
	.hsg-sponsors .hsg-section-head p {
		font-size: 0.92rem;
		color: var(--hsg-text-muted);
		max-width: 38rem;
		margin: 0 auto;
	}
	.hsg-sponsors__track {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(160px, 200px));
		gap: 0.85rem;
		margin-top: 1rem;
		justify-content: center;
	}
	/* Standalone-Shortcode-Grid (für Sponsoren-Übersichtsseite).
	   Flex-wrap mit fester Karten-Breite — bei wenigen Karten zentriert,
	   bei vielen füllt es die Reihe gleichmäßig. */
	.hsg-sponsor-grid {
		display: flex;
		flex-wrap: wrap;
		gap: 0.85rem;
		justify-content: center;
		margin: 1rem auto;
	}
	.hsg-sponsor-grid .hsg-sponsor {
		flex: 0 1 200px;
		min-width: 160px;
	}
	/* Optional: max-Breite via cols-N — bei wenigen Karten zentrieren sie sich
	   im erwarteten Spaltenraster statt sich über die volle Breite zu strecken. */
	.hsg-sponsor-grid--cols-2 { max-width: 460px; }
	.hsg-sponsor-grid--cols-3 { max-width: 680px; }
	.hsg-sponsor-grid--cols-4 { max-width: 900px; }
	.hsg-sponsor-grid--cols-5 { max-width: 1120px; }
	.hsg-sponsor-grid--cols-6 { max-width: 1340px; }
	/* Sponsor-Groups als edge-to-edge Sections (wie auf der Landing Page).
	   Nutzt den klassischen "100vw breakout" Trick — funktioniert auch wenn der
	   Shortcode in einem Container/Prose-Wrapper liegt. */
	.hsg-sponsor-groups { display: block; }
	.hsg-sponsor-group {
		position: relative;
		left: 50%;
		right: 50%;
		width: 100vw;
		margin-left: -50vw;
		margin-right: -50vw;
		padding: clamp(2.5rem, 5vw, 4rem) var(--hsg-section-x);
	}
	.hsg-sponsor-group--light     { background: #ffffff; }
	.hsg-sponsor-group--off-white { background: var(--hsg-off-white); }
	.hsg-sponsor-group__inner {
		max-width: var(--hsg-container);
		margin: 0 auto;
	}
	.hsg-sponsor-group__head {
		text-align: center;
		max-width: 36rem;
		margin: 0 auto clamp(1.25rem, 2.5vw, 2rem);
	}
	.hsg-sponsor-group__head .hsg-eyebrow {
		margin: 0 0 0.5rem;
	}
	.hsg-sponsor-group__title {
		font-size: clamp(1.4rem, 2.6vw, 2rem);
		font-weight: 700;
		letter-spacing: -0.02em;
		margin: 0 0 0.5rem;
		color: inherit;
	}
	.hsg-sponsor-group__desc {
		color: var(--hsg-text-muted);
		font-size: 0.95rem;
		margin: 0;
	}
	.hsg-sponsor {
		display: grid; place-items: center;
		height: 110px; /* feste Karten-Höhe — alle gleich */
		padding: 1rem 1.5rem;
		background: var(--hsg-white);
		border: 1px solid var(--hsg-border);
		border-radius: var(--hsg-radius-md);
		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__logo {
		/* Einheitliche Logo-Höhe — egal wie groß das Original ist.
		 * Breite passt sich automatisch an, max-width verhindert Überlauf. */
		display: block;
		max-width: 100%;
		max-height: 64px;
		width: auto;
		height: auto;
		object-fit: contain;
	}
	.hsg-sponsor__placeholder { font-weight: 600; color: var(--hsg-text-muted); text-align: center; font-size: 0.875rem; }
	.hsg-sponsors__cta { text-align: center; margin-top: 1.75rem; }

	@media (max-width: 480px) {
		.hsg-sponsors__track { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
		.hsg-sponsor { height: 90px; padding: 0.75rem 1rem; }
		.hsg-sponsor__logo { max-height: 52px; }
	}

	/* ===== Footer ===== */
	.hsg-site-footer {
		background: linear-gradient(180deg, var(--hsg-navy) 0%, var(--hsg-navy-deep) 100%);
		color: var(--hsg-white);
		padding: clamp(3rem, 6vw, 5rem) 0 1.75rem 0;
		font-size: 0.95rem;
		line-height: 1.55;
	}
	.hsg-site-footer p { margin: 0 0 0.65rem 0; }
	.hsg-site-footer p:last-child { margin-bottom: 0; }
	.hsg-site-footer address { font-style: normal; line-height: 1.55; color: rgba(255,255,255,0.88); }
	.hsg-site-footer a,
	.hsg-site-footer a:link,
	.hsg-site-footer a:visited {
		color: #ffffff !important;
		text-decoration: none;
		border-bottom: 1px solid transparent;
		transition: color var(--hsg-motion-fast), border-color var(--hsg-motion-fast);
	}
	.hsg-site-footer a:hover,
	.hsg-site-footer a:focus-visible {
		color: var(--wp--custom--color--accent) !important;
		border-bottom-color: currentColor;
	}
	.hsg-footer-cols {
		display: grid;
		grid-template-columns: 1fr;
		gap: clamp(1.75rem, 3vw, 2.75rem);
	}
	@media (min-width: 720px) {
		.hsg-footer-cols { grid-template-columns: 1.4fr 1fr 1fr; }
	}
	.hsg-footer-h {
		font-size: 0.78rem;
		font-weight: 700;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		color: var(--wp--custom--color--accent);
		margin: 0 0 1rem 0;
	}
	.hsg-footer-h--mt { margin-top: 1.75rem; }
	.hsg-footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
	.hsg-footer-list li { display: flex; align-items: center; gap: 0.4rem; }
	.hsg-footer-social {
		list-style: none; padding: 0;
		margin: 0.9rem 0 0;
		display: flex; gap: 0.55rem;
	}
	.hsg-footer-social a {
		display: inline-flex;
		align-items: center; justify-content: center;
		width: 36px; height: 36px;
		border-radius: 50%;
		background: rgba(255,255,255,0.08);
		border: 1px solid rgba(255,255,255,0.12) !important;
		color: #fff;
		transition: background-color var(--hsg-motion-fast), color var(--hsg-motion-fast), transform var(--hsg-motion-fast);
	}
	.hsg-footer-social a:hover,
	.hsg-footer-social a:focus-visible {
		background: var(--wp--custom--color--accent);
		color: var(--hsg-navy-deep) !important;
		border-color: var(--wp--custom--color--accent) !important;
		transform: translateY(-1px);
	}
	.hsg-footer-social svg { display: block; }
	.hsg-footer-divider {
		margin: clamp(2.25rem, 4vw, 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: 0.75rem 1.5rem;
		justify-content: space-between; align-items: center;
		font-size: 0.83rem;
		color: rgba(255,255,255,0.7);
	}
	.hsg-footer-bottom p { margin: 0; }
	.hsg-footer-bottom a,
	.hsg-footer-bottom a:link,
	.hsg-footer-bottom a:visited { color: rgba(255,255,255,0.85) !important; }
	.hsg-footer-nav ul {
		list-style: none;
		padding: 0;
		margin: 1rem 0 0;
		display: flex;
		flex-wrap: wrap;
		gap: 0.4rem 1rem;
		font-size: 0.85rem;
	}

	/* ===== Breadcrumbs ===== */
	.hsg-breadcrumbs { max-width: var(--hsg-container-narrow); margin-left: auto; margin-right: auto; }
	.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--dark .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; max-width: var(--hsg-container-narrow); margin-left: auto; margin-right: auto; }
	.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); min-width: 0; overflow: hidden; }
	.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 strong { display: block; overflow-wrap: break-word; word-break: break-word; }
	.hsg-post-nav__next { text-align: right; }

	/* ===== Post-Cover =====
	 * Header in voller Lese-Spaltenbreite, Bild deutlich schmaler & zentriert
	 * — sonst wirkt das Beitragsbild dominant und linkslastig. */
	.hsg-post-header {
		max-width: var(--hsg-container-narrow);
		margin-left: auto;
		margin-right: auto;
	}
	.hsg-post-cover {
		max-width: 520px !important;
		margin-left: auto !important;
		margin-right: auto !important;
		margin-bottom: 2rem;
		border-radius: var(--hsg-radius-lg);
		overflow: hidden;
		background: var(--hsg-off-white);
	}
	.hsg-post-cover img {
		display: block;
		width: 100%;
		height: auto;
		max-width: 100%;
	}
	/* Bild-Format pro Einzelbeitrag — gleiche Customizer-Einstellung wie News-Grid */
	.hsg-post-cover[data-aspect="16-9"] { aspect-ratio: 16 / 9; }
	.hsg-post-cover[data-aspect="4-3"]  { aspect-ratio: 4 / 3; }
	.hsg-post-cover[data-aspect="1-1"]  { aspect-ratio: 1 / 1; }
	.hsg-post-cover[data-aspect="16-9"] img,
	.hsg-post-cover[data-aspect="4-3"] img,
	.hsg-post-cover[data-aspect="1-1"] img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
	.hsg-post-cover[data-aspect="original"] { aspect-ratio: auto; }
	.hsg-post-title { overflow-wrap: break-word; word-break: break-word; }
	.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); max-width: var(--hsg-container-narrow); margin-left: auto; margin-right: auto; }
}

/* ─── @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; }

	/* ─── Back-to-Top — Handball-Stil ───────────────────────────────
	 * Navy-„Ball" mit Y-Naht (typisches Handball-Nahtmuster).
	 * Beim Hover dreht sich der Ball leicht und ein Pfeil schiebt sich
	 * von unten ins Bild — damit's nach „Wurf nach oben" aussieht statt
	 * nach generischem Scroll-Button.
	 * ────────────────────────────────────────────────────────────── */
	.hsg-totop {
		position: fixed;
		right: clamp(1rem, 3vw, 2rem);
		bottom: clamp(1rem, 3vw, 2rem);
		z-index: 999;
		width: 56px;
		height: 56px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: var(--hsg-navy);
		color: var(--hsg-white);
		cursor: pointer;
		box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
		opacity: 0;
		transform: translateY(20px);
		transition: opacity 300ms ease, transform 300ms ease, background 200ms ease, box-shadow 200ms ease;
		display: grid;
		place-items: center;
		overflow: hidden;
	}
	.hsg-totop[hidden] { display: none; }
	.hsg-totop.is-visible {
		opacity: 1;
		transform: translateY(0);
	}
	.hsg-totop:hover,
	.hsg-totop:focus-visible {
		background: var(--wp--custom--color--accent, var(--hsg-accent));
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
		outline: none;
	}
	.hsg-totop:focus-visible {
		outline: 3px solid var(--wp--custom--color--accent-contrast, var(--hsg-accent));
		outline-offset: 3px;
	}
	.hsg-totop:active { transform: translateY(0) scale(0.95); }

	/* Ball-SVG: weiße Kugel mit Y-Naht in Akzentfarbe */
	.hsg-totop__ball {
		grid-area: 1 / 1;
		width: 36px;
		height: 36px;
		transition: transform 400ms cubic-bezier(.34, 1.56, .64, 1);
	}
	.hsg-totop__sphere {
		fill: var(--hsg-white);
	}
	.hsg-totop__seam {
		stroke: var(--hsg-navy);
	}
	.hsg-totop:hover .hsg-totop__ball,
	.hsg-totop:focus-visible .hsg-totop__ball {
		transform: rotate(-90deg) translateY(-44px);
	}

	/* Pfeil — kommt beim Hover von unten reingeschoben */
	.hsg-totop__arrow {
		grid-area: 1 / 1;
		width: 22px;
		height: 22px;
		color: var(--hsg-white);
		opacity: 0;
		transform: translateY(28px);
		transition: opacity 250ms ease 100ms, transform 350ms cubic-bezier(.34, 1.56, .64, 1) 100ms;
	}
	.hsg-totop:hover .hsg-totop__arrow,
	.hsg-totop:focus-visible .hsg-totop__arrow {
		opacity: 1;
		transform: translateY(0);
	}

	/* Reduced motion: keine Animationen, kein Roll-Effekt */
	@media (prefers-reduced-motion: reduce) {
		.hsg-totop,
		.hsg-totop__ball,
		.hsg-totop__arrow { transition: none; }
		.hsg-totop:hover .hsg-totop__ball { transform: none; }
		.hsg-totop:hover .hsg-totop__arrow { opacity: 0; }
	}

	/* Mobile: kompakter */
	@media (max-width: 600px) {
		.hsg-totop { width: 48px; height: 48px; }
		.hsg-totop__ball { width: 30px; height: 30px; }
		.hsg-totop__arrow { width: 18px; height: 18px; }
	}

	/* ─── Datenschutz-Hinweis (Toast-Stil, unten links) ───────────── */
	.hsg-notice {
		position: fixed;
		left: clamp(1rem, 3vw, 2rem);
		bottom: clamp(1rem, 3vw, 2rem);
		max-width: 360px;
		z-index: 998; /* unter Back-to-Top */
		padding: 1rem 1.1rem;
		background: var(--hsg-white);
		border: 1px solid var(--hsg-border);
		border-left: 4px solid var(--wp--custom--color--accent, var(--hsg-accent));
		border-radius: var(--hsg-radius-md);
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
		opacity: 0;
		transform: translateY(20px);
		transition: opacity 400ms ease, transform 400ms ease;
	}
	.hsg-notice[hidden] { display: none; }
	.hsg-notice.is-visible { opacity: 1; transform: translateY(0); }
	.hsg-notice__title {
		display: flex; align-items: center; gap: 0.5rem;
		margin: 0 0 0.4rem 0;
		font-size: 0.7rem;
		font-weight: 700;
		letter-spacing: 0.16em;
		text-transform: uppercase;
		color: var(--hsg-navy);
	}
	.hsg-notice__dot {
		width: 8px; height: 8px;
		border-radius: 50%;
		background: var(--wp--custom--color--accent, var(--hsg-accent));
	}
	.hsg-notice__text {
		margin: 0 0 0.7rem 0;
		font-size: 0.85rem;
		line-height: 1.45;
		color: var(--hsg-text);
	}
	.hsg-notice__actions {
		display: flex; flex-wrap: wrap; gap: 0.4rem 1rem;
		align-items: center; justify-content: space-between;
	}
	.hsg-notice__link {
		font-size: 0.82rem;
		font-weight: 600;
		color: var(--hsg-navy);
		text-decoration: none;
	}
	.hsg-notice__link:hover { text-decoration: underline; }
	.hsg-notice__btn {
		padding: 0.4rem 0.9rem;
		font-size: 0.82rem;
		font-weight: 600;
		background: var(--hsg-navy);
		color: var(--hsg-white);
		border: 0;
		border-radius: var(--hsg-radius-pill);
		cursor: pointer;
		transition: background 200ms ease;
	}
	.hsg-notice__btn:hover,
	.hsg-notice__btn:focus-visible {
		background: var(--wp--custom--color--accent, var(--hsg-accent));
		outline: none;
	}
	.hsg-notice__btn:focus-visible {
		outline: 3px solid var(--wp--custom--color--accent-contrast, var(--hsg-accent));
		outline-offset: 2px;
	}

	@media (max-width: 600px) {
		.hsg-notice {
			left: 0.75rem; right: 0.75rem; bottom: 0.75rem;
			max-width: none;
		}
	}
	@media (prefers-reduced-motion: reduce) {
		.hsg-notice { transition: none; }
	}
}

/* ------------------------------------------------------------------
 * WordPress Classic-/Block-Editor Alignment-Klassen
 * BEWUSST AUSSERHALB aller @layer-Blöcke. WordPress spielt eigene
 * unlayered Inline-Stylesheets (z. B. wp-block-image-theme-inline-css
 * mit ".wp-block-image{margin:0 0 1em}") in den Head — unlayered CSS
 * schlägt jedes @layer, unabhängig von Spezifität. Daher hier roh.
 * ------------------------------------------------------------------ */
.hsg-prose .aligncenter,
.hsg-prose img.aligncenter,
.hsg-prose .wp-caption.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
/* Figure-basierte Center-Variante: display:table beibehalten (WP-Default),
   damit die Figure auf Bildbreite schrumpft und margin:auto sie zentrieren
   kann. display:block würde die Figure auf 100% blähen und das Bild bliebe
   links — genau der Bug, den wir in v2.3.1 versehentlich produziert hatten. */
.hsg-prose figure.aligncenter,
.hsg-prose .wp-block-image.aligncenter {
	margin-left: auto;
	margin-right: auto;
}
.hsg-prose figure.aligncenter > img,
.hsg-prose .wp-block-image.aligncenter > img {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.hsg-prose .alignleft {
	float: left;
	margin: 0.25rem 1.5rem 1rem 0;
	max-width: 50%;
}
.hsg-prose .alignright {
	float: right;
	margin: 0.25rem 0 1rem 1.5rem;
	max-width: 50%;
}
.hsg-prose .alignnone { margin: 0; }
.hsg-prose::after { content: ""; display: block; clear: both; }

/* Heading-Zentrierung respektieren — TinyMCE schreibt inline
   style="text-align:center". Inline-Style hat bereits höchste Priorität;
   diese Regel sorgt nur dafür, dass theme.json-generierte
   global-styles-inline-css :where()-Regeln (Spezifität 0) sicher übertroffen werden. */
.hsg-prose h1[style*="text-align: center"],
.hsg-prose h2[style*="text-align: center"],
.hsg-prose h3[style*="text-align: center"],
.hsg-prose h4[style*="text-align: center"],
.hsg-prose p[style*="text-align: center"] { text-align: center; }
.hsg-prose h1[style*="text-align: right"],
.hsg-prose h2[style*="text-align: right"],
.hsg-prose h3[style*="text-align: right"],
.hsg-prose h4[style*="text-align: right"],
.hsg-prose p[style*="text-align: right"]  { text-align: right; }

.hsg-prose .wp-block-image.alignright  { text-align: right; }
.hsg-prose .wp-block-image.aligncenter { text-align: center; }
.hsg-prose .wp-block-image.alignleft   { text-align: left; }

/* alignwide / 100%-Breite-Bilder (z. B. Mannschaftsfoto im Pattern).
   Bricht aus der schmalen .hsg-prose-Spalte aus und füllt den
   übergeordneten .hsg-container (max 1280px). */
.hsg-prose .wp-block-image.alignwide,
.hsg-prose figure.alignwide,
.hsg-prose .alignwide {
	width: 100%;
	max-width: 100%;
	margin-inline: 0;
}
.hsg-prose .wp-block-image.alignwide img,
.hsg-prose figure.alignwide img,
.hsg-prose .alignwide img {
	width: 100%;
	height: auto;
	display: block;
}
.hsg-prose .wp-block-image.alignfull,
.hsg-prose figure.alignfull {
	width: 100%;
	max-width: 100%;
	margin-inline: 0;
}
.hsg-prose .wp-block-image.alignfull img,
.hsg-prose figure.alignfull img {
	width: 100%;
	height: auto;
	display: block;
}
