/*
 * Rhenania Würselen – Theme-Styles
 * Farben/Schrift/Abstände kommen aus theme.json, hier liegt das Layout der
 * Vereinsbausteine. Breakpoints: 782px (Tablet/Mobil), 600px (Navigation).
 */

:root {
	--rh-black: var(--wp--preset--color--schwarz, #141414);
	--rh-white: var(--wp--preset--color--weiss, #fff);
	--rh-yellow: var(--wp--preset--color--gelb, #f5c400);
	--rh-surface: var(--wp--preset--color--flaeche, #f2f1ed);
	--rh-line: var(--wp--preset--color--linie, #e8e6e1);
	--rh-muted: #555;
	--rh-soft: #777;
	--rh-dark-line: #333;
	--rh-max: 1168px;
	--rh-pad-x: var(--wp--style--root--padding-left, clamp(16px, 4.4vw, 56px));
	--rh-section: clamp(28px, 5vw, 56px);
	--rh-todo: #c2185b;
}

/* ------------------------------------------------------------------ Basis */

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3,
.wp-block-site-title,
.rh-display,
.rh-display-xl {
	font-stretch: 72%;
	text-wrap: balance;
}

p { text-wrap: pretty; }

h1, h2, h3,
.rh-news__title,
.rh-event__title,
.rh-team-card__name,
.rh-download__title { overflow-wrap: break-word; }
@media (max-width: 600px) {
	.rh-news__title,
	.rh-event__title,
	.rh-download__title { hyphens: auto; }
}

:where(a, button, input, summary):focus-visible {
	outline: 3px solid var(--rh-yellow);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--rh-black);
}

img { height: auto; }

.wp-site-blocks { position: relative; }
.wp-site-blocks > * { margin-block: 0; }
.rh-main { padding-bottom: var(--rh-section); }
.rh-main--front,
.rh-main--team,
.rh-main--wide { padding-bottom: 0; }

.rh-only-mobile { display: none !important; }
@media (max-width: 781px) {
	.rh-only-mobile { display: revert !important; }
	.rh-only-desktop { display: none !important; }
}

.screen-reader-text:focus { z-index: 100000; }

/* --------------------------------------------------------------- Buttons */

.rh-btn,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: var(--rh-black);
	color: var(--rh-white);
	border: 2px solid var(--rh-black);
	font: inherit;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	padding: 12px 20px;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.rh-btn:hover,
.wp-block-button__link:hover { background: #000; border-color: #000; color: var(--rh-white); text-decoration: none; }

.rh-btn--gelb,
.is-style-gelb .wp-block-button__link { background: var(--rh-yellow); border-color: var(--rh-yellow); color: var(--rh-black); font-weight: 800; }
.rh-btn--gelb:hover,
.is-style-gelb .wp-block-button__link:hover { background: #ffd31a; border-color: #ffd31a; color: var(--rh-black); }

.rh-btn--rahmen,
.is-style-rahmen .wp-block-button__link { background: transparent; color: var(--rh-black); border-color: var(--rh-black); }
.rh-btn--rahmen:hover,
.is-style-rahmen .wp-block-button__link:hover { background: var(--rh-black); color: var(--rh-white); }

.is-style-rahmen-hell .wp-block-button__link { background: transparent; color: var(--rh-white); border-color: var(--rh-white); }
.is-style-rahmen-hell .wp-block-button__link:hover { background: var(--rh-white); color: var(--rh-black); border-color: var(--rh-white); }

.rh-btn--block { display: flex; width: 100%; }
.rh-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ----------------------------------------------------------- Kleinteile */

.is-style-kicker,
.rh-kicker {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.rh-label {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.rh-badge {
	display: inline-block;
	background: var(--rh-yellow);
	color: var(--rh-black);
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .06em;
	padding: 4px 8px;
}

.rh-todo {
	color: var(--rh-todo);
	border: 1px dashed var(--rh-todo);
	padding: 10px 14px;
	font-size: 15px;
}

.rh-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 640px; }
.rh-small { font-size: 14px; }

.rh-empty { color: var(--rh-muted); margin: 0; }
.rh-empty--hint { color: var(--rh-todo); font-size: 14px; margin-top: 6px; }
.rh-dark .rh-empty { color: #aaa; }

.rh-display { font-size: clamp(32px, 4vw, 52px); line-height: .95; }
.rh-display-xl { font-size: clamp(40px, 6.5vw, 84px); line-height: .9; margin: 0; }

.wp-block-heading.is-style-abschnitt {
	font-size: clamp(24px, 2.4vw, 28px);
	border-bottom: 3px solid var(--rh-black);
	padding-bottom: 10px;
}

/* Bildplatzhalter mit Wappen */
.rh-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--rh-surface);
}
.rh-ph img { width: 34% !important; max-width: 120px; height: auto !important; object-fit: contain !important; opacity: .22; filter: grayscale(1); transform: none !important; }
.rh-dark .rh-ph { background: #222; }
.rh-dark .rh-ph img { opacity: .35; }

/* Personen-Avatar */
.rh-avatar {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	background: #e2e0da;
	color: var(--rh-black);
	font-weight: 800;
	font-stretch: 72%;
	font-size: 22px;
}
.rh-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rh-avatar--l { width: 72px; height: 72px; }
.rh-avatar--xl { width: 120px; height: 120px; font-size: 40px; }

/* ----------------------------------------------------------- Kopfbereich */

.rh-header-wrap {
	position: relative;
	z-index: 30;
	background: var(--rh-white);
	border-bottom: 1px solid var(--rh-line);
}

.rh-header {
	display: flex;
	align-items: center;
	gap: 40px;
	min-height: 84px;
	max-width: calc(var(--rh-max) + 2 * var(--rh-pad-x));
	margin-inline: auto;
	padding-inline: var(--rh-pad-x);
	box-sizing: border-box;
}

.rh-brand { display: flex; align-items: center; gap: 12px; flex: none; }
.rh-brand > *,
.rh-brand__text > * { margin: 0 !important; }
.rh-brand__logo img { width: 52px; height: 52px; object-fit: contain; }
.rh-brand__title {
	font-weight: 800;
	font-stretch: 72%;
	text-transform: uppercase;
	font-size: 20px;
	line-height: 1.05;
}
.rh-brand__title a { color: inherit; text-decoration: none; }
.rh-brand__tagline { font-size: 12px; line-height: 1.3; color: var(--rh-muted); }

.rh-nav { margin-left: auto; font-weight: 600; font-size: 15px; }
.rh-nav .wp-block-navigation__container { gap: 28px; align-items: center; }
.rh-nav .wp-block-navigation-item__content { color: inherit; text-decoration: none; padding: 6px 0; }
.rh-nav .wp-block-navigation-item__content:hover { text-decoration: none; box-shadow: inset 0 -3px 0 var(--rh-yellow); }
.rh-nav .current-menu-item > .wp-block-navigation-item__content,
.rh-nav .current-menu-ancestor > .wp-block-navigation-item__content,
.rh-nav .current-menu-parent > .wp-block-navigation-item__content { box-shadow: inset 0 -3px 0 var(--rh-yellow); }
.rh-nav .is-fanshop > .wp-block-navigation-item__content {
	border: 2px solid currentColor;
	padding: 8px 14px;
	box-shadow: none !important;
}
.rh-nav .is-fanshop > .wp-block-navigation-item__content:hover { background: var(--rh-black); color: var(--rh-white); border-color: var(--rh-black); }

/* Untermenüs (Desktop) */
.rh-nav .wp-block-navigation__submenu-container {
	background: var(--rh-white) !important;
	color: var(--rh-black) !important;
	border: 0 !important;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
	padding: 8px 0 !important;
	min-width: 240px !important;
	font-weight: 500;
}
.rh-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 9px 18px !important; }
.rh-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { box-shadow: none; background: var(--rh-surface); }
.rh-nav .wp-block-navigation__submenu-icon { margin-left: 4px; transition: transform .25s ease; }

@media (min-width: 1081px) {
	/* Core schaltet Untermenüs hart um (Höhe 0 ↔ auto). Hier bleiben sie
	   vermessen und werden nur über Deckkraft/Versatz ein- und ausgeblendet. */
	.rh-nav .has-child > .wp-block-navigation__submenu-container {
		height: auto !important;
		width: auto !important;
		overflow: visible !important;
		opacity: 0;
		visibility: hidden;
		transform: translateY(10px);
		transition: opacity .22s ease, transform .28s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .28s;
	}
	.rh-nav .has-child:hover > .wp-block-navigation__submenu-container,
	.rh-nav .has-child:focus-within > .wp-block-navigation__submenu-container,
	.rh-nav .has-child > .wp-block-navigation__submenu-container[aria-hidden="false"],
	.rh-nav .has-child > button[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		transition: opacity .22s ease, transform .28s cubic-bezier(.2, .7, .2, 1), visibility 0s;
	}
	.rh-nav .has-child:hover > .wp-block-navigation__submenu-icon,
	.rh-nav .has-child:focus-within > .wp-block-navigation__submenu-icon { transform: rotate(180deg); }
}

/* Bis 1080px Hamburger statt voller Leiste (7 Menüpunkte passen nicht früher) */
@media (min-width: 600px) and (max-width: 1080px) {
	.rh-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.rh-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}

.rh-nav .wp-block-navigation__responsive-container-open,
.rh-nav .wp-block-navigation__responsive-container-close { width: 44px; height: 44px; align-items: center; justify-content: center; }
.rh-nav .wp-block-navigation__responsive-container-open svg,
.rh-nav .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; }

/* Mobiles Menü (Overlay) */
.rh-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--rh-black) !important;
	color: var(--rh-white) !important;
	padding: 10px 16px 24px;
}
.rh-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 56px !important;
	align-items: stretch !important;
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	--navigation-layout-align: flex-start;
}
.rh-nav .is-menu-open .wp-block-navigation-item { align-items: flex-start !important; text-align: left; }
.rh-nav .is-menu-open .wp-block-navigation__submenu-container { align-self: stretch; }
.rh-nav .is-menu-open .wp-block-navigation__container {
	gap: 0 !important;
	width: 100%;
	align-items: stretch !important;
	font-weight: 800;
	font-stretch: 80%;
	text-transform: uppercase;
	font-size: 24px;
}
.rh-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	border-bottom: 1px solid var(--rh-dark-line);
	padding: 14px 0;
	width: 100%;
}
.rh-nav .is-menu-open .wp-block-navigation-item__content { box-shadow: none !important; padding: 0 !important; }
.rh-nav .is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important;
	color: #ddd !important;
	box-shadow: none;
	padding: 0 0 0 12px !important;
	margin-top: 0;
	height: 0 !important;
	min-height: 0 !important;
	overflow: hidden !important;
	opacity: 0 !important;
	visibility: hidden !important;
	transition: height .38s cubic-bezier(.2, .7, .2, 1), opacity .3s ease, margin-top .38s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .38s;
	border-left: 2px solid var(--rh-yellow) !important;
	font-weight: 500;
	font-stretch: 100%;
	text-transform: none;
	font-size: 16px;
	gap: 0 !important;
}
.rh-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 10px 0 !important; min-height: 24px; }
.rh-nav .is-menu-open .wp-block-navigation-submenu.is-open > .wp-block-navigation__submenu-container {
	opacity: 1 !important;
	visibility: visible !important;
	margin-top: 10px;
	transition: height .38s cubic-bezier(.2, .7, .2, 1), opacity .3s ease .05s, margin-top .38s cubic-bezier(.2, .7, .2, 1), visibility 0s;
}
.rh-nav .is-menu-open .wp-block-navigation-submenu > .wp-block-navigation__submenu-icon { display: none !important; }
.rh-nav .is-menu-open .wp-block-navigation-submenu > .wp-block-navigation-item__content {
	display: flex !important;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	cursor: pointer;
	transition: color .2s ease;
}
.rh-nav .is-menu-open .wp-block-navigation-submenu > .wp-block-navigation-item__content::after {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	margin-left: 16px;
	background:
		linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
		linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
	transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.rh-nav .is-menu-open .wp-block-navigation-submenu.is-open > .wp-block-navigation-item__content { color: var(--rh-yellow); }
.rh-nav .is-menu-open .wp-block-navigation-submenu.is-open > .wp-block-navigation-item__content::after { transform: rotate(180deg); background-size: 14px 2px, 2px 0; }
.rh-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: transparent; color: var(--rh-yellow); }
.rh-nav .is-menu-open .is-fanshop { border-bottom: 0 !important; padding-top: 24px !important; }
.rh-nav .is-menu-open .is-fanshop > .wp-block-navigation-item__content {
	display: flex;
	width: 100%;
	box-sizing: border-box;
	justify-content: center;
	background: var(--rh-yellow);
	color: var(--rh-black) !important;
	border: 0;
	padding: 16px !important;
	font-size: 17px;
	font-stretch: 100%;
	text-transform: none;
}

/* Startseite: Kopf liegt über dem Stadionfoto */
.rh-has-hero .rh-header-wrap {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: transparent;
	border-bottom: 0;
	color: var(--rh-white);
}
.rh-has-hero .rh-brand__tagline { color: #ddd; }
.rh-has-hero .rh-header-wrap .wp-block-navigation__responsive-container-open { color: var(--rh-white); }
.rh-has-hero .rh-nav .is-fanshop > .wp-block-navigation-item__content:hover { background: var(--rh-white); color: var(--rh-black); border-color: var(--rh-white); }

@media (max-width: 781px) {
	.rh-header { min-height: 64px; gap: 16px; }
	.rh-brand { gap: 10px; }
	.rh-brand__logo img { width: 40px; height: 40px; }
	.rh-brand__title { font-size: 18px; }
	.rh-brand__tagline { font-size: 11px; }
}

/* --------------------------------------------------------------- Hero */

.wp-block-cover.rh-hero {
	min-height: 680px;
	padding: calc(84px + 24px) var(--rh-pad-x) 56px;
	margin-block: 0;
}
/* Inhaltsspalte bündig zu Logo und Abschnitten. Core setzt für „unten links“
   margin:0/width:auto mit 5-Klassen-Selektor – daher !important. */
.wp-block-cover.rh-hero .wp-block-cover__inner-container {
	width: 100% !important;
	max-width: var(--rh-max);
	margin-inline: auto !important;
	padding-inline: 0;
}
.rh-hero .wp-block-cover__inner-container > * { margin-left: 0 !important; max-width: 760px; }
.rh-hero .wp-block-cover__inner-container > .rh-hero__title { max-width: none; }
.rh-hero .wp-block-cover__inner-container > * + * { margin-top: 20px; }
.rh-hero .is-style-kicker { color: var(--rh-yellow); letter-spacing: .1em; }
.rh-hero__title {
	font-size: var(--wp--preset--font-size--hero);
	line-height: .86;
	color: var(--rh-white);
}
.rh-hero__buttons { gap: 12px; }

@media (max-width: 781px) {
	.wp-block-cover.rh-hero { min-height: 620px; padding: 88px var(--rh-pad-x) 24px; }
	.rh-hero .wp-block-cover__inner-container > * + * { margin-top: 14px; }
	.rh-hero .is-style-kicker { font-size: 12px; }
	.rh-hero__title { font-size: clamp(36px, 11.3vw, 44px); line-height: .9; overflow-wrap: anywhere; }
	.rh-hero .rh-hero__buttons.wp-block-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	.rh-hero__buttons .wp-block-button { width: 100%; }
	.rh-hero__buttons .wp-block-button__link { width: 100%; padding-inline: 10px; }
}

/* ------------------------------------------------- Abschnitte (Bausteine) */

.rh-block { margin-block: 0; padding-block: var(--rh-section); box-sizing: border-box; }
.rh-block.alignfull { padding-inline: var(--rh-pad-x); }
/* Bausteine in der Textspalte (nicht volle/weite Breite) ohne Abschnittsabstand */
.rh-block:not(.alignfull):not(.alignwide) { padding-block: 8px; }
.rh-inner { max-width: var(--rh-max); margin-inline: auto; }
.rh-dark { background: var(--rh-black); color: var(--rh-white); }
.rh-dark a { color: inherit; }

/* Startseite: Bausteine ohne weiße Lücken untereinander */
.rh-main--front .wp-block-post-content > *,
.rh-main--team > *,
.rh-main--wide .wp-block-post-content > .alignfull { margin-block: 0; }

.rh-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	border-bottom: 3px solid var(--rh-black);
	padding-bottom: 10px;
	margin-bottom: 20px;
}
.rh-head__title { margin: 0; font-size: clamp(24px, 2.4vw, 28px); }
.rh-head__note { font-size: 13px; color: var(--rh-muted); font-weight: 600; margin-right: auto; }
.rh-head__link { font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.rh-head__link:hover { text-decoration: underline; }
.rh-head__short { display: none; }
.rh-dark .rh-head { border-bottom: 0; padding-bottom: 0; }

@media (max-width: 781px) {
	.rh-head { padding-bottom: 8px; margin-bottom: 4px; }
	.rh-head__link { font-size: 13px; }
	.rh-head__long { display: none; }
	.rh-head__short { display: inline; }
}

/* -------------------------------------------------------------- Termine */

.rh-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.rh-event {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 16px;
	align-items: center;
	text-decoration: none;
	color: inherit;
}
.rh-event:hover .rh-event__title { text-decoration: underline; }
.rh-datebox time {
	width: 64px;
	height: 64px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 2px solid currentColor;
	line-height: 1;
}
.rh-datebox b { font-weight: 800; font-size: 22px; }
.rh-datebox span { font-size: 11px; font-weight: 700; margin-top: 3px; }
.rh-event__body { display: flex; flex-direction: column; gap: 4px; }
.rh-event__title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.rh-event__meta { font-size: 13px; color: var(--rh-soft); }

.rh-termine--band { padding-block: 32px 40px; }
.rh-termine--band .rh-head { margin-bottom: 18px; }
.rh-termine--band .rh-events { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rh-termine--band .rh-event { border-top: 3px solid var(--rh-yellow); padding-top: 14px; }
.rh-termine--band .rh-datebox time { background: var(--rh-yellow); border-color: var(--rh-yellow); color: var(--rh-black); }
.rh-termine--band .rh-event__meta { color: #aaa; }

.rh-termine--liste .rh-events { gap: 0; }
.rh-termine--liste .rh-event { padding: 10px 0 16px; border-bottom: 1px solid var(--rh-line); }

@media (max-width: 781px) {
	.rh-termine--band { padding-block: 24px; }
	.rh-termine--band .rh-head { margin-bottom: 6px; }
	.rh-termine--band .rh-events { grid-template-columns: 1fr; gap: 0; }
	.rh-termine--band .rh-event { border-top: 1px solid var(--rh-dark-line); padding: 12px 0; }
	.rh-event { grid-template-columns: 52px 1fr; gap: 12px; }
	.rh-datebox time { width: 52px; height: 52px; }
	.rh-datebox b { font-size: 18px; }
	.rh-datebox span { font-size: 10px; }
	.rh-event__title { font-size: 15px; }
	.rh-event__meta { font-size: 12px; }
}

/* ----------------------------------------------------------------- News */

.rh-news { padding-block: var(--rh-section) clamp(28px, 5vw, 64px); }
.rh-news__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.rh-news__grid.has-featured { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); }
.rh-news__link { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; }
.rh-news__link:hover .rh-news__title { text-decoration: underline; }
.rh-news__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--rh-surface); }
.rh-news__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.rh-news__link:hover .rh-news__img img { transform: scale(1.03); }
.rh-news__body { display: flex; flex-direction: column; gap: 12px; }
.rh-news__meta {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--rh-muted);
}
.rh-news__title {
	margin: 0;
	font-size: 21px;
	line-height: 1.2;
	font-weight: 700;
	font-stretch: 100%;
	text-transform: none;
}
.rh-news__item.is-featured .rh-news__title {
	font-size: clamp(28px, 3vw, 38px);
	line-height: .95;
	font-weight: 800;
	font-stretch: 72%;
	text-transform: uppercase;
}
.rh-news__item.is-featured .rh-news__meta { color: var(--rh-black); }

@media (max-width: 781px) {
	.rh-news__grid,
	.rh-news__grid.has-featured { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.rh-news__item { border-bottom: 1px solid var(--rh-line); padding: 12px 0; }
	.rh-news__item:not(.is-featured) .rh-news__link { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
	.rh-news__item:not(.is-featured) .rh-news__img { aspect-ratio: 1; }
	.rh-news__item:not(.is-featured) .rh-news__body { gap: 4px; }
	.rh-news__meta { font-size: 11px; }
	.rh-news__title { font-size: 16px; line-height: 1.25; }
	.rh-news__body { gap: 10px; }
}

/* --------------------------------------------------------- Mannschaften */

.rh-teams-block .rh-head__title { font-size: clamp(28px, 3.4vw, 40px); }
.rh-teams-block .rh-head { margin-bottom: 24px; }
.rh-teams { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.rh-team-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; }
.rh-team-card__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.rh-team-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.rh-team-card:hover .rh-team-card__img img { transform: scale(1.03); }
.rh-team-card__name {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 700;
	font-size: 17px;
	border-bottom: 2px solid var(--rh-yellow);
	padding-bottom: 8px;
}
.rh-team-card:hover .rh-team-card__name { color: var(--rh-yellow); }

@media (max-width: 1080px) {
	.rh-teams { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
	.rh-teams { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.rh-team-card__img { display: none; }
	.rh-team-card__name { min-height: 52px; border-bottom: 1px solid var(--rh-dark-line); padding: 0; }
	.rh-team-card__name span { color: var(--rh-yellow); }
	.rh-teams-block .rh-head { margin-bottom: 8px; }
}

/* ------------------------------------------------------ Vereinsbuch-Teaser */

.rh-book-teaser { padding-block: clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--rh-line); }
.rh-book-teaser__cols { gap: 56px; margin: 0; }
.rh-book-teaser .wp-block-column > * { margin-block: 0; }
.rh-book-teaser .wp-block-column > * + * { margin-top: 18px; }
.rh-book-teaser p:not(.is-style-kicker) { max-width: 560px; }
.rh-book-teaser figure,
.rh-book-hero figure { margin: 0; }

@media (max-width: 781px) {
	.rh-book-teaser__cols { gap: 20px; }
	.rh-book-teaser__media { max-width: 200px; }
}

/* ------------------------------------------------------------- Downloads */

.rh-downloads { list-style: none; margin: 0; padding: 0; }
.rh-download {
	display: grid;
	grid-template-columns: 48px 1fr auto;
	gap: 16px;
	align-items: center;
	padding: 16px 0;
	border-top: 1px solid var(--rh-line);
	text-decoration: none;
	color: inherit;
}
.rh-downloads li:last-child .rh-download { border-bottom: 1px solid var(--rh-line); }
.rh-download:hover .rh-download__title { text-decoration: underline; }
.rh-download__type {
	width: 48px;
	height: 48px;
	background: var(--rh-surface);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 11px;
}
.rh-download__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rh-download__title { font-weight: 700; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.rh-download__meta { font-size: 13px; color: var(--rh-soft); }
.rh-download__icon { font-weight: 700; font-size: 18px; }

.rh-downloads-block.has-intro { border-bottom: 1px solid var(--rh-line); }
.rh-main--front .rh-downloads-block.has-intro .rh-downloads li:last-child .rh-download { border-bottom: 0; }
.rh-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; }
.rh-split__title { margin: 0 0 14px; font-size: clamp(24px, 3.4vw, 40px); line-height: 1; }
.rh-split__text p { margin: 0; color: #444; }
.rh-downloads-block:not(.alignfull):not(.alignwide) { padding-block: 8px; }

@media (max-width: 781px) {
	.rh-split { grid-template-columns: 1fr; gap: 8px; }
	.rh-download { grid-template-columns: 40px 1fr auto; gap: 12px; padding: 12px 0; }
	.rh-download__type { width: 40px; height: 40px; font-size: 10px; }
	.rh-download__title { font-size: 15px; }
}

/* ------------------------------------------------------------- Sponsoren */

.rh-sponsors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.rh-sponsor {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid #e3e1dc;
	background: var(--rh-white);
	text-decoration: none;
	color: inherit;
}
a.rh-sponsor:hover { border-color: var(--rh-black); }
.rh-sponsor__logo { aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; padding: 14px; }
.rh-sponsor__logo img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.rh-sponsor__fallback { font-weight: 700; font-size: 14px; text-align: center; line-height: 1.25; }
.rh-sponsor__name { display: flex; gap: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.3; font-weight: 700; border-top: 1px solid #e3e1dc; margin-top: auto; }
.rh-sponsor__rank { color: #999; font-weight: 400; font-variant-numeric: tabular-nums; }
.rh-tier + .rh-tier { margin-top: 40px; }
.rh-sponsors-block .rh-head { margin-bottom: 16px; }

@media (max-width: 1080px) {
	.rh-sponsors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
	.rh-sponsors { grid-template-columns: 1fr 1fr; gap: 8px; }
	.rh-sponsor__name { padding: 8px 10px; font-size: 12px; }
	.rh-tier + .rh-tier { margin-top: 28px; }
}

/* ------------------------------------------------------- Kontakt-Aufruf */

.rh-cta { padding-block: 8px; }
.rh-cta__box {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 32px;
	align-items: center;
	padding: 36px 40px;
	background: var(--rh-yellow);
	color: var(--rh-black);
}
.rh-cta--flaeche { background: var(--rh-surface); }
.rh-cta__text > * { margin: 0; }
.rh-cta__text > * + * { margin-top: 8px; }
.rh-cta__title { font-size: clamp(26px, 3vw, 38px); line-height: 1; }
.rh-cta__text p { font-size: 17px; line-height: 1.45; }
.rh-cta__text .rh-cta__meta { font-size: 14px; font-weight: 600; opacity: .8; }
.rh-cta .rh-btns { flex-direction: column; }
.rh-cta .rh-avatar { background: rgba(255, 255, 255, .45); }

@media (max-width: 781px) {
	.rh-cta__box { grid-template-columns: 64px 1fr; gap: 14px; padding: 20px; }
	.rh-cta .rh-avatar--xl { width: 64px; height: 64px; font-size: 22px; }
	.rh-cta .rh-btns { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	.rh-cta .rh-btn { padding-inline: 10px; }
	.rh-cta__text p { font-size: 15px; }
}

/* ------------------------------------------------- Personen / Jubilare */

.rh-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.rh-people--compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.rh-person,
.rh-person-card { display: flex; gap: 14px; align-items: center; }
.rh-person > span:last-child { display: flex; flex-direction: column; }
.rh-person-card { align-items: flex-start; border-top: 1px solid var(--rh-line); padding-top: 16px; }
.rh-person-card p { margin: 0; }
.rh-person__name { font-weight: 700; font-size: 17px; }
.rh-person__role { font-size: 14px; color: var(--rh-muted); }
.rh-person--lead .rh-person__name { font-weight: 800; font-size: 20px; }
.rh-contact-lines { display: flex; flex-direction: column; gap: 2px; margin: 0; font-size: 15px; }
.rh-person-card .rh-contact-lines { margin-top: 6px; font-size: 14px; }

.rh-honors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 32px; }
.rh-honor { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--rh-line); }
.rh-honor p { margin: 0; }
.rh-honor__img img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.rh-honor__name { font-weight: 700; font-size: 17px; }
.rh-honor__meta { font-size: 14px; color: var(--rh-muted); }
.rh-honor__text { font-size: 15px; margin-top: 6px !important; }

/* --------------------------------------------------- Mannschaftsseite */

.rh-team-nav { padding-block: 20px; border-bottom: 1px solid var(--rh-line); }
.rh-team-nav .rh-inner { display: flex; align-items: center; gap: 18px; }
.rh-team-nav__label { font-size: 13px; color: var(--rh-soft); flex: none; }
.rh-team-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.rh-team-nav a {
	display: block;
	border: 1px solid #d9d7d1;
	font-weight: 600;
	font-size: 14px;
	padding: 9px 14px;
	text-decoration: none;
	color: inherit;
	white-space: nowrap;
}
.rh-team-nav a:hover { border-color: var(--rh-black); }
.rh-team-nav a.is-current { background: var(--rh-black); border-color: var(--rh-black); color: var(--rh-white); font-weight: 700; }

.rh-team-photo { margin: 0; }
/* Volle Breite auf jedem Bildschirm: Höhe statt Seitenverhältnis begrenzen
   (aspect-ratio + max-height würde ab 1680 px die Breite schrumpfen lassen). */
.rh-team-photo--empty { position: relative; aspect-ratio: auto !important; width: auto; height: min(calc(100vw * 8 / 21), 640px); }
.rh-team-photo--empty .rh-ph img { max-width: 140px; }
.rh-team-photo--empty figcaption {
	position: absolute;
	left: 50%;
	bottom: 18%;
	transform: translateX(-50%);
	font-weight: 800;
	font-stretch: 72%;
	text-transform: uppercase;
	font-size: clamp(18px, 2vw, 24px);
	color: var(--rh-muted);
}
.rh-team-content > * { margin-block: 0 16px; }
.rh-team-content .rh-callout { margin-top: 0; }

/* Personenliste „Funktion – Name“ (Präsidium) */
.rh-roster { margin: 0; max-width: 640px; }
.rh-roster__row { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rh-line); }
.rh-roster__row:last-child { border-bottom: 1px solid var(--rh-line); }
.rh-roster dt { color: var(--rh-muted); }
.rh-roster dd { margin: 0; font-weight: 700; }
@media (max-width: 781px) {
	.rh-roster__row { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
	.rh-team-photo--empty { height: 75vw; }
}

/* Hinweis-Kasten (z. B. Mitspieler gesucht) */
.rh-callout { background: var(--rh-surface); border-left: 4px solid var(--rh-yellow); padding: 18px 22px; }
.rh-callout a { font-weight: 700; }

/* Fanshop-Teaser Startseite */
.rh-fanshop-teaser { background: var(--rh-yellow); padding-block: clamp(32px, 5vw, 48px); }
.rh-fanshop-teaser > * { margin-block: 0; }
.rh-fanshop-teaser .rh-fanshop-teaser__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.rh-fanshop-teaser__inner > * { margin: 0 !important; }
.rh-fanshop-teaser h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1; }
.rh-fanshop-teaser p { max-width: 560px; margin-top: 8px !important; font-size: 17px; }

/* Bildergalerie Jubilare */
.rh-photo figcaption { font-size: 14px; color: var(--rh-muted); margin-top: 8px; }
.rh-muted { color: var(--rh-muted); }
.rh-team-photo img { max-height: 640px; }

.rh-team-header { padding-block: 40px 24px; }
.rh-team-header .rh-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.rh-team-header__text { display: flex; flex-direction: column; gap: 10px; }
.rh-team-header__title { margin: 0; font-size: var(--wp--preset--font-size--xx-large); line-height: .9; }

.rh-team-details { padding-block: 16px clamp(40px, 6vw, 64px); }
.rh-td-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	grid-template-rows: auto auto 1fr;
	gap: 28px 40px;
	align-items: start;
}
.rh-td-grid:not(:has(.rh-td--fupa)) { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.rh-td--training,
.rh-td--trainer,
.rh-td--kontakt { grid-column: 1; }
.rh-td--fupa { grid-column: 2; grid-row: 1 / span 3; }
.rh-subhead {
	margin: 0 0 12px;
	font-size: clamp(22px, 2.2vw, 26px);
	border-bottom: 3px solid var(--rh-black);
	padding-bottom: 8px;
}
.rh-facts { display: grid; grid-template-columns: 100px 1fr; gap: 10px 16px; margin: 0; font-size: 16px; }
.rh-facts dt { color: var(--rh-soft); }
.rh-facts dd { margin: 0; }

.rh-contact-box { background: var(--rh-surface); padding: 24px; display: flex; flex-direction: column; gap: 14px; }

.rh-fupa--link { padding: 32px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.rh-fupa--link p { margin: 0; font-size: 15px; color: #ccc; line-height: 1.5; max-width: 440px; }
.rh-fupa--link .rh-fupa__title { font-weight: 800; font-stretch: 72%; text-transform: uppercase; font-size: clamp(26px, 3vw, 34px); line-height: 1; color: var(--rh-white); max-width: none; }
.rh-fupa--embed { background: var(--rh-surface); }
.rh-fupa__gate {
	min-height: 420px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	text-align: center;
	padding: 24px;
}
.rh-fupa__gate p { margin: 0; font-size: 14px; color: var(--rh-muted); max-width: 400px; line-height: 1.5; }
.rh-fupa__gate .rh-fupa__title { font-weight: 800; font-size: 20px; color: var(--rh-black); }
.rh-fupa__alt { font-size: 14px; }
.rh-fupa.is-loaded { background: transparent; }
.rh-fupa__revoke { margin-top: 10px; background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--rh-muted); text-decoration: underline; cursor: pointer; }

@media (max-width: 781px) {
	.rh-team-nav { padding-block: 12px; }
	.rh-team-nav__label { display: none; }
	.rh-team-nav ul { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--rh-pad-x)); padding-inline: var(--rh-pad-x); scrollbar-width: none; }
	.rh-team-nav a { padding: 12px 14px; }
	.rh-team-photo img { aspect-ratio: 4 / 3 !important; }
	.rh-team-header { padding-block: 20px; }
	.rh-td-grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 24px; }
	.rh-td--training,
	.rh-td--trainer,
	.rh-td--kontakt,
	.rh-td--fupa { grid-column: 1; grid-row: auto; }
	.rh-fupa--link { padding: 20px; }
	.rh-fupa--link .rh-btn { width: 100%; }
	.rh-fupa__gate { min-height: 300px; }
	.rh-contact-box { padding: 18px; gap: 12px; }
	.rh-contact-box .rh-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	.rh-avatar--m { width: 52px; height: 52px; font-size: 18px; }
}

/* ----------------------------------------------------- Vereinsbuch-Seite */

.rh-book-hero { background: var(--rh-surface); padding-block: clamp(28px, 6vw, 64px); }
.rh-book-hero > .wp-block-columns { gap: 64px; margin: 0; }
.rh-book-hero .wp-block-column > * { margin-block: 0; }
.rh-book-hero .wp-block-column > * + * { margin-top: 22px; }

.is-style-kennzahlen {
	display: flex;
	gap: 32px;
	flex-wrap: wrap;
	border-top: 3px solid var(--rh-black);
	padding-top: 16px;
}
.is-style-kennzahlen > p { margin: 0 !important; font-size: 14px; color: var(--rh-muted); line-height: 1.35; }
.is-style-kennzahlen strong {
	display: block;
	font-weight: 800;
	font-stretch: 72%;
	font-size: 40px;
	line-height: 1;
	color: var(--rh-black);
	margin-bottom: 4px;
}

.rh-book-body { padding-block: clamp(28px, 6vw, 64px); gap: 64px; }
.rh-book-body__text { font-size: 18px; line-height: 1.6; }
.rh-book-body__text > * { max-width: 640px; }

.rh-box-dark { background: var(--rh-black); color: var(--rh-white); padding: 36px; }
.rh-box-dark > * { margin-block: 0; }
.rh-box-dark > * + * { margin-top: 18px; }
.rh-box-dark p { font-size: 15px; line-height: 1.55; color: #ddd; }
.rh-box-dark strong { color: var(--rh-white); }
.rh-box-dark .rh-small { color: #aaa; font-size: 14px; }
.rh-box-dark__title { font-size: clamp(26px, 3vw, 34px); line-height: 1; border-top: 3px solid var(--rh-yellow); padding-top: 18px; color: var(--rh-white); }

@media (max-width: 781px) {
	.rh-book-hero > .wp-block-columns { gap: 18px; }
	.rh-book-hero__media { max-width: 170px; margin-inline: auto; }
	.is-style-kennzahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 12px; }
	.is-style-kennzahlen > p { font-size: 12px; }
	.is-style-kennzahlen strong { font-size: 24px; }
	.rh-book-body { gap: 24px; }
	.rh-book-body__text { font-size: 16px; }
	.rh-box-dark { padding: 20px; }
}

/* ------------------------------------------------------ Seiten & Beiträge */

.rh-page-title { margin-top: clamp(28px, 5vw, 56px) !important; margin-bottom: clamp(20px, 3vw, 32px) !important; }
.rh-main--page .wp-block-post-content > * + * { margin-block-start: 24px; }
/* Fließtext linksbündig unter dem Seitentitel statt mittig */
.rh-main--page .wp-block-post-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull):not(.alignwide)),
.rh-team-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull):not(.alignwide)) {
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) !important;
}
.wp-block-post-content > h2 { font-size: clamp(26px, 3vw, 40px); margin-top: 1.4em; }
.wp-block-post-content > h3 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 1.4em; }

.rh-subpages { list-style: none; padding: 0; margin: 0; }
.rh-subpages .wp-block-pages-list__item { border-top: 1px solid var(--rh-line); }
.rh-subpages .wp-block-pages-list__item:last-child { border-bottom: 1px solid var(--rh-line); }
.rh-subpages .wp-block-pages-list__item__link {
	display: flex;
	justify-content: space-between;
	padding: 18px 0;
	font-weight: 800;
	font-stretch: 80%;
	text-transform: uppercase;
	font-size: clamp(20px, 2vw, 24px);
	text-decoration: none;
}
.rh-subpages .wp-block-pages-list__item__link::after { content: "→"; }
.rh-subpages .wp-block-pages-list__item__link:hover { color: var(--rh-black); box-shadow: inset 4px 0 0 var(--rh-yellow); padding-left: 14px; transition: padding .15s ease; }
.rh-subpages .submenu-container,
.rh-subpages .wp-block-navigation__submenu-container { display: none; }

/* Beitrag */
.rh-article { padding-top: clamp(28px, 5vw, 56px); }
.rh-article > * + * { margin-block-start: 20px; }
.rh-article__meta { gap: 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--rh-muted); }
.rh-article__meta a { text-decoration: none; }
.rh-badge-terms a { background: var(--rh-yellow); color: var(--rh-black); padding: 4px 8px; }
.rh-badge-terms .wp-block-post-terms__separator { display: none; }
.rh-badge-terms { display: flex; gap: 6px; }
.rh-article__title { font-size: clamp(36px, 5vw, 64px); line-height: .95; }
.rh-article__image img { width: 100%; }
.rh-back { margin-top: 48px !important; font-weight: 700; }
.rh-back a { text-decoration: none; }

.rh-event-info { background: var(--rh-surface); padding: 16px 20px; border-left: 4px solid var(--rh-yellow); }
.rh-event-info dl { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 0; }
.rh-event-info dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--rh-muted); }
.rh-event-info dd { margin: 0; font-weight: 700; }
.rh-event-info__past { margin: 8px 0 0; font-size: 14px; color: var(--rh-muted); }

/* Archiv */
.rh-archive__grid { gap: 40px 28px !important; }
.rh-archive__grid > li { display: flex; flex-direction: column; gap: 12px; }
.rh-archive__grid > li > * { margin: 0 !important; }
.rh-archive__grid .wp-block-post-featured-image img { width: 100%; object-fit: cover; }
.rh-archive__meta { gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--rh-muted); }
.rh-archive__meta a { color: inherit; text-decoration: none; }
.rh-archive__meta > *:not(:last-child)::after { content: " ·"; }
.rh-archive__title { font-size: 21px; line-height: 1.2; font-weight: 700; font-stretch: 100%; text-transform: none; }
.rh-archive__title a { text-decoration: none; }
.rh-archive__title a:hover { text-decoration: underline; }
.rh-pagination { margin-top: 48px; font-weight: 700; }
.rh-pagination a { text-decoration: none; }
.rh-pagination .page-numbers { padding: 6px 10px; }
.rh-pagination .page-numbers.current { background: var(--rh-black); color: var(--rh-white); }
.rh-main--archive .rh-termine { padding-block: 0 40px; }

@media (max-width: 781px) {
	.rh-archive__grid { grid-template-columns: 1fr !important; gap: 28px !important; }
}

/* Suche */
.wp-block-search__input { border: 2px solid var(--rh-black); border-radius: 0; padding: 10px 12px; font: inherit; }
.wp-block-search__button { border-radius: 0; margin-left: 8px; }

/* Contact Form 7 */
.wpcf7 label { display: block; font-weight: 700; font-size: 15px; }
.wpcf7 input:not([type="submit"]):not([type="checkbox"]),
.wpcf7 textarea {
	box-sizing: border-box;
	width: 100%;
	margin-top: 6px;
	border: 2px solid var(--rh-black);
	border-radius: 0;
	padding: 10px 12px;
	font: inherit;
	font-weight: 400;
}
.wpcf7 input[type="submit"] { background: var(--rh-black); color: var(--rh-white); border: 0; padding: 14px 22px; font: inherit; font-weight: 700; cursor: pointer; }

/* --------------------------------------------------------------- Footer */

.rh-footer-wrap { margin-top: 0; }
.rh-footer {
	background: var(--rh-black);
	color: var(--rh-white);
	padding: 48px var(--rh-pad-x) 32px;
	font-size: 14px;
	line-height: 1.7;
}
.rh-footer > * { max-width: var(--rh-max); margin-inline: auto !important; }
.rh-footer a { color: #ccc; text-decoration: none; }
.rh-footer a:hover { color: var(--rh-white); text-decoration: underline; }
.rh-footer__cols {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 32px;
	margin-block: 0 !important;
}
.rh-footer__cols > *,
.rh-footer__col > * { margin-block: 0 !important; }
.rh-footer__title {
	font-size: 14px;
	font-weight: 700;
	font-stretch: 100%;
	text-transform: none;
	line-height: 1.7;
	margin-bottom: 4px !important;
}
.rh-footer-nav .wp-block-navigation__container { flex-direction: column; align-items: flex-start; gap: 0; }
.rh-footer-nav .wp-block-navigation-item__content { padding: 0; }

.rh-club-info { display: flex; gap: 14px; align-items: flex-start; }
.rh-club-info p { margin: 0; }
.rh-club-info__logo { width: 56px; height: 56px; object-fit: contain; flex: none; }
.rh-club-info__name { font-weight: 700; }
.rh-club-info__address { color: #ccc; }

.rh-footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	border-top: 1px solid var(--rh-dark-line);
	padding-top: 20px;
	margin-top: 32px !important;
	font-size: 13px;
	color: #aaa;
}
.rh-footer-bottom a { color: var(--rh-white); text-decoration: underline; }

@media (max-width: 781px) {
	.rh-footer { padding: 28px 16px; }
	.rh-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
	.rh-club-info { grid-column: 1 / -1; align-items: center; gap: 12px; }
	.rh-club-info__logo { width: 44px; height: 44px; }
	.rh-footer-bottom { flex-direction: column; gap: 8px; margin-top: 24px !important; padding-top: 14px; }
}

/* --------------------------------------------------------------- Editor */

.rh-editor-preview .rh-block { pointer-events: none; }
.editor-styles-wrapper .rh-has-hero .rh-header-wrap { position: relative; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------ Inhalte (Chronik, Stadien) */

.rh-table table { border-collapse: collapse; width: 100%; font-size: 15px; }
.rh-table th, .rh-table td { border-left: 0 !important; border-right: 0 !important; border-top: 0 !important; }
.rh-table th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--rh-muted); border-bottom: 3px solid var(--rh-black); padding: 8px 12px 8px 0; }
.rh-table td { border: 0; border-bottom: 1px solid var(--rh-line); padding: 12px 12px 12px 0; vertical-align: top; }
.rh-table thead { border: 0; }
@media (max-width: 781px) {
	.rh-table { overflow-x: auto; }
	.rh-table table { min-width: 520px; }
}

.wp-block-gallery.rh-gallery { gap: 12px; }
.wp-block-gallery.rh-gallery .wp-block-image figcaption {
	background: linear-gradient(0deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0));
	font-size: 13px;
	font-weight: 600;
}

.rh-linklist,
.rh-factlist,
.rh-namelist { list-style: none; padding: 0; }
.rh-linklist li { border-top: 1px solid var(--rh-line); }
.rh-linklist li:last-child { border-bottom: 1px solid var(--rh-line); }
.rh-linklist a { display: flex; justify-content: space-between; padding: 14px 0; font-weight: 700; text-decoration: none; }
.rh-linklist a::after { content: "→"; }
.rh-linklist a:hover { box-shadow: inset 4px 0 0 var(--rh-yellow); padding-left: 12px; transition: padding .15s ease; }
.rh-factlist li { padding: 6px 0; }
.rh-namelist li {
	font-weight: 800;
	font-stretch: 72%;
	text-transform: uppercase;
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.1;
	padding: 10px 0;
	border-bottom: 1px solid var(--rh-line);
}

.rh-todo-inline { color: var(--rh-todo); border-bottom: 1px dashed var(--rh-todo); }

/* News-Archiv: Platzhalter für Beiträge ohne Bild */
.rh-archive-ph { aspect-ratio: 3 / 2; margin: 0; }
.rh-archive-ph a { display: block; height: 100%; }

/* „Übersicht“-Unterpunkt nur im mobilen Menü */
.rh-overview-item { display: none !important; }
.rh-nav .is-menu-open .rh-overview-item { display: block !important; }
.rh-nav .is-menu-open .rh-overview-item .wp-block-navigation-item__content { font-weight: 700; color: var(--rh-white); }

/* Öffentliche Platzhalter „Inhalt folgt“ / „Foto folgt“ (Inhalte liefert der Verein nach) */
.rh-folgt {
	display: inline-block;
	color: var(--rh-muted);
	background: var(--rh-surface);
	border-left: 4px solid var(--rh-line);
	padding: 10px 16px;
	font-size: 15px;
	font-weight: 600;
}

/* Cookie-Banner (Complianz) im Vereinslook */
:root .cmplz-cookiebanner,
:root #cmplz-manage-consent .cmplz-manage-consent {
	--cmplz_banner_background_color: #ffffff;
	--cmplz_banner_border_radius: 0;
	--cmplz_text_color: #141414;
	--cmplz_hyperlink_color: #141414;
	--cmplz_button_border_radius: 0;
	--cmplz_button_accept_background_color: #f5c400;
	--cmplz_button_accept_border_color: #f5c400;
	--cmplz_button_accept_text_color: #141414;
	--cmplz_button_deny_background_color: #ffffff;
	--cmplz_button_deny_border_color: #141414;
	--cmplz_button_deny_text_color: #141414;
	--cmplz_button_settings_background_color: #ffffff;
	--cmplz_button_settings_border_color: #141414;
	--cmplz_button_settings_text_color: #141414;
	--cmplz_slider_active_color: #141414;
	font-family: var(--wp--preset--font-family--archivo);
}
.cmplz-cookiebanner .cmplz-btn { font-weight: 700 !important; border-width: 2px !important; }
.cmplz-cookiebanner .cmplz-btn.cmplz-accept { font-weight: 800 !important; }
.cmplz-cookiebanner { box-shadow: 0 -8px 32px rgba(0, 0, 0, .18) !important; border-top: 4px solid #f5c400 !important; }
#cmplz-manage-consent .cmplz-manage-consent { background: #141414 !important; color: #fff !important; border-radius: 0 !important; font-family: var(--wp--preset--font-family--archivo); }
.wpcf7 .rh-cf7-consent,
.wpcf7 .rh-cf7-consent label { font-weight: 400; font-size: 15px; line-height: 1.45; }
.wpcf7 .rh-cf7-consent .wpcf7-list-item { margin: 0; }
.wpcf7 .rh-cf7-consent input[type="checkbox"] { width: 18px; height: 18px; margin: 0 8px 0 0; vertical-align: -3px; accent-color: #141414; }

/* Sponsorenkacheln: Logofläche fest 3:2, Logo darin eingepasst */
.rh-sponsor__logo { aspect-ratio: 3 / 2; min-height: 0; overflow: hidden; box-sizing: border-box; }
.rh-sponsor__logo img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }

/* Fanshop-Banner (Fan12): Desktop 970×250, Mobil 350×250 */
.rh-fanshop-banner { padding-block: clamp(28px, 5vw, 56px); border-top: 1px solid var(--rh-line); }
.rh-fanshop-banner .wp-block-image { margin: 0 auto; }
.rh-fanshop-banner img { display: block; width: 100%; height: auto; transition: transform .2s ease, box-shadow .2s ease; }
.rh-fanshop-banner .rh-only-desktop img { aspect-ratio: 970 / 250; }
.rh-fanshop-banner .rh-only-mobile { max-width: 420px; }
.rh-fanshop-banner .rh-only-mobile img { aspect-ratio: 350 / 250; }
.rh-fanshop-banner a:hover img { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .12); }

/* Unterseiten: Fanshop-Banner (hochkant) in der freien rechten Spalte */
.rh-shop-aside { display: none; }
@media (min-width: 1100px) {
	.rh-page-body:has(> .rh-shop-aside) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 56px;
		align-items: start;
	}
	.rh-page-body > * { margin-block: 0; }
	.rh-shop-aside { display: block; position: sticky; top: 32px; }
	.admin-bar .rh-shop-aside { top: 64px; }
	.rh-shop-aside img { display: block; width: 300px; height: auto; transition: transform .2s ease, box-shadow .2s ease; }
	.rh-shop-aside a:hover img { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .12); }
}
