/*
Theme Name:        Revier Boxing
Theme URI:         https://revierboxing.de
Author:            Lucas / Revier Boxing
Description:       Schlankes, dunkles Info-/Promotion-Theme für Revier Boxing (Schwarz/Gold, Oswald/Inter). Öffentliche Marketing-Seite; der Connect-Bereich (Login/Verzeichnis) kommt aus dem Plugin „Revier Connect". Umgesetzt nach Revier_Boxing_Design-Brief_ClaudeCode.md.
Version:           0.4.0
Requires at least: 6.0
Requires PHP:      7.4
License:           GPL-2.0-or-later
Text Domain:       revier-boxing
*/

/* =========================================================================
   Design-Tokens (identisch zum Plugin – Schwarz/Gold, Design-Brief §1).
   Eigenständig definiert, damit das Theme auch ohne aktives Plugin stimmt.
   ========================================================================= */
:root {
	--bg-base: #0A0A0A;
	--bg-surface: #1A1A1A;
	--bg-surface-alt: #242320;
	--gold: #C9A24B;
	--gold-hover: #E0C275;
	--gold-muted: #8A7239;
	--text-primary: #F5F5F0;
	--text-secondary: #A8A29E;
	--text-on-gold: #0A0A0A;
	--border-subtle: #2E2C28;

	--container: 1280px;
	--radius-card: 0.5rem;
	--radius-btn: 0.375rem;
	--radius-pill: 9999px;
	--section-y: 6rem;

	--font-display: 'Oswald', 'Inter', system-ui, sans-serif;
	--font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* =========================================================================
   Reset / Basis
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg-base);
	color: var(--text-primary);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }

h1, h2, h3 {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-weight: 600;
	color: var(--text-primary);
	margin: 0 0 0.5rem;
	line-height: 1.05;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1rem; }

.rb-container { max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .rb-container { padding: 0 2rem; } }

/* Anker-Sprünge nicht unter den Sticky-Header rutschen lassen. */
[id] { scroll-margin-top: 84px; }

.rb-section { padding: 4rem 0; position: relative; }
@media (min-width: 768px) { .rb-section { padding: var(--section-y) 0; } }
.rb-section--alt { background: var(--bg-surface-alt); }

.rb-eyebrow {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--gold);
	margin: 0 0 0.75rem;
}
.rb-lead { color: var(--text-secondary); max-width: 60ch; font-size: 1.05rem; }
.rb-muted { color: var(--text-secondary); }

/* Accent-Linie unter Section-Titeln */
.rb-section__head { margin-bottom: 2.5rem; max-width: 70ch; }
.rb-section__head h2 { position: relative; }

/* =========================================================================
   Buttons (Design-Brief §2)
   ========================================================================= */
.rb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.75rem 1.5rem;
	border-radius: var(--radius-btn);
	border: 1px solid transparent;
	font-family: var(--font-sans);
	font-weight: 500;
	font-size: 0.95rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.rb-btn--primary { background: var(--gold); color: var(--text-on-gold); }
.rb-btn--primary:hover { background: var(--gold-hover); color: var(--text-on-gold); }
.rb-btn--secondary { background: transparent; border-color: var(--gold); color: var(--gold); }
.rb-btn--secondary:hover { background: var(--gold); color: var(--text-on-gold); }
.rb-btn--ghost { background: transparent; color: var(--gold); border-color: transparent; padding-left: 0; padding-right: 0; }
.rb-btn--ghost:hover { text-decoration: underline; }

/* =========================================================================
   Header / Navigation (Design-Brief §2)
   ========================================================================= */
.rb-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(10, 10, 10, 0.85);
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--border-subtle);
	transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
/* Beim Herunterscrollen: kompakter, stärkerer Blur, dezenter Schatten. */
.rb-header.is-scrolled {
	background: rgba(10, 10, 10, 0.92);
	backdrop-filter: saturate(160%) blur(16px);
	-webkit-backdrop-filter: saturate(160%) blur(16px);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
	border-bottom-color: rgba(201, 162, 75, 0.18);
}
.rb-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 68px;
	transition: min-height 0.3s ease;
}
.rb-header.is-scrolled .rb-header__inner { min-height: 56px; }
.rb-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--text-primary);
}
.rb-brand:hover { color: var(--text-primary); }
.rb-brand__mark { width: 30px; height: 30px; flex: 0 0 30px; color: var(--gold); }
.rb-brand--img { gap: 0; }
/* SVG/PNG scharf: feste max-height, Breite proportional. */
.rb-brand__logo { height: 48px; width: auto; max-width: 220px; object-fit: contain; display: block; transition: height 0.3s ease; }
@media (min-width: 768px) { .rb-brand__logo { height: 54px; } }
.rb-header.is-scrolled .rb-brand__logo { height: 42px; }

.rb-nav { display: none; align-items: center; gap: 1.75rem; }
.rb-nav a {
	position: relative;
	color: var(--text-secondary);
	font-size: 0.95rem;
	font-weight: 500;
	padding: 0.4rem 0.1rem;
	transition: color 0.18s ease;
}
/* Animierter Unterstrich, der von links einläuft (Hover / Fokus / aktiv). */
.rb-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: linear-gradient(90deg, var(--gold), var(--gold-hover));
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.rb-nav a:hover,
.rb-nav a:focus-visible { color: var(--text-primary); }
.rb-nav a.is-active { color: var(--gold); }
.rb-nav a:hover::after,
.rb-nav a:focus-visible::after,
.rb-nav a.is-active::after { transform: scaleX(1); }
.rb-nav a:focus-visible,
.rb-mobile-nav a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

.rb-header__cta { display: none; }

/* Der Connect-Button als Akzent-CTA (Shortcode gibt .rc-btn aus; Fallback .rb-btn). */
.rb-header__cta .rc-btn,
.rb-header__cta .rb-btn {
	position: relative;
	overflow: hidden;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-family: var(--font-display);
	box-shadow: 0 2px 10px rgba(201, 162, 75, 0.25);
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.15s ease, color 0.15s ease;
}
.rb-header__cta .rc-btn:hover,
.rb-header__cta .rb-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(201, 162, 75, 0.4);
}
/* Dezenter Glanz-Sweep beim Hover. */
.rb-header__cta .rc-btn::before,
.rb-header__cta .rb-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
	transform: translateX(-130%);
	transition: transform 0.6s ease;
	pointer-events: none;
}
.rb-header__cta .rc-btn:hover::before,
.rb-header__cta .rb-btn:hover::before { transform: translateX(130%); }

/* Hamburger */
.rb-burger {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px; height: 44px;
	background: transparent; border: 0; cursor: pointer; padding: 10px;
}
.rb-burger span { display: block; height: 2px; background: var(--text-primary); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.rb-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rb-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rb-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Slide-in */
.rb-mobile-nav {
	position: fixed;
	inset: 68px 0 auto auto;
	width: min(320px, 84vw);
	height: calc(100vh - 68px);
	background: var(--bg-surface);
	border-left: 1px solid var(--border-subtle);
	transform: translateX(100%);
	opacity: 0;
	transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	z-index: 99;
}
.rb-mobile-nav.is-open { transform: translateX(0); opacity: 1; }
.rb-mobile-nav a { position: relative; color: var(--text-primary); padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--border-subtle); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; transition: color 0.15s ease, padding-left 0.2s ease; }
.rb-mobile-nav a:hover,
.rb-mobile-nav a.is-active { color: var(--gold); padding-left: 0.6rem; }
.rb-mobile-nav .rb-btn, .rb-mobile-nav .rc-btn { margin-top: 1rem; }

@media (min-width: 1024px) {
	.rb-nav { display: flex; }
	.rb-header__cta { display: inline-flex; }
	.rb-burger, .rb-mobile-nav { display: none; }
}

/* Barrierefreiheit: Animationen/Smooth-Scroll bei Wunsch reduzieren. */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.rb-header,
	.rb-header__inner,
	.rb-brand__logo,
	.rb-nav a,
	.rb-nav a::after,
	.rb-mobile-nav,
	.rb-mobile-nav a,
	.rb-header__cta .rb-btn,
	.rb-header__cta .rc-btn { transition: none; }
	.rb-header__cta .rb-btn::before,
	.rb-header__cta .rc-btn::before { display: none; }
}

/* =========================================================================
   Hero (Design-Brief §4.1)
   ========================================================================= */
.rb-hero {
	position: relative;
	min-height: 82vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	background:
		radial-gradient(1200px 500px at 70% -10%, rgba(201,162,75,0.10), transparent 60%),
		linear-gradient(180deg, #0d0d0d 0%, var(--bg-base) 60%);
	border-bottom: 1px solid var(--border-subtle);
}
.rb-hero__tower {
	position: absolute;
	right: -2%;
	bottom: 0;
	height: 92%;
	width: auto;
	color: var(--gold);
	opacity: 0.10;
	pointer-events: none;
}
.rb-hero__inner { position: relative; z-index: 2; padding: 5rem 0; max-width: 46rem; }
.rb-hero h1 { margin-bottom: 0.5rem; }
.rb-hero__tagline {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--text-secondary);
	font-size: clamp(0.9rem, 2vw, 1.15rem);
	margin: 0 0 1.5rem;
}
.rb-hero__intro { font-size: 1.15rem; color: var(--text-primary); max-width: 44ch; }
.rb-hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

/* =========================================================================
   Förderturm-Trenner (Design-Brief §2 Section-Trenner)
   ========================================================================= */
.rb-divider { position: relative; height: 90px; overflow: hidden; }
.rb-divider svg { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); height: 120px; color: var(--gold); opacity: 0.09; }

/* =========================================================================
   Über uns (§4.2)
   ========================================================================= */
.rb-about__grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .rb-about__grid { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; } }
.rb-about__media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rb-about__media .rb-photo { aspect-ratio: 3/4; }
.rb-about__media .rb-photo:first-child { grid-row: span 2; aspect-ratio: 3/5; }

.rb-pillars { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 640px) { .rb-pillars { grid-template-columns: 1fr 1fr; } }
.rb-pillar {
	background: var(--bg-surface);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-card);
	padding: 1.5rem;
}
.rb-pillar__icon { width: 34px; height: 34px; color: var(--gold); margin-bottom: 0.75rem; }
.rb-pillar h3 { font-size: 1.15rem; }
.rb-pillar p { color: var(--text-secondary); margin: 0; font-size: 0.95rem; }

/* Foto-/Bild-Platzhalter (§5): Fläche + Förderturm-Wasserzeichen, kein Stock. */
.rb-photo {
	position: relative;
	background: var(--bg-surface-alt);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-card);
	overflow: hidden;
	display: flex; align-items: center; justify-content: center;
}
.rb-photo::after {
	content: "";
	position: absolute; inset: 0;
	background-image: var(--tower-bg);
	background-repeat: no-repeat;
	background-position: center 120%;
	background-size: 60% auto;
	opacity: 0.12;
}
.rb-photo__label { position: relative; z-index: 1; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--text-secondary); }

/* =========================================================================
   Kader (§4.3)
   ========================================================================= */
.rb-toggle { display: inline-flex; gap: 0.5rem; margin-bottom: 2rem; }
.rb-pill {
	border-radius: var(--radius-pill);
	padding: 0.5rem 1.15rem;
	font-size: 0.85rem;
	background: var(--bg-surface);
	color: var(--text-secondary);
	border: 1px solid var(--border-subtle);
	cursor: pointer;
	font-family: var(--font-sans);
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.rb-pill[aria-pressed="true"] { background: var(--gold); color: var(--text-on-gold); border-color: var(--gold); }

.rb-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
/* [hidden] muss die grid-Anzeige schlagen (UA-Regel reicht sonst nicht). */
.rb-grid[hidden] { display: none; }
@media (min-width: 560px) { .rb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .rb-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .rb-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.rb-fighter {
	background: var(--bg-surface);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-card);
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.rb-fighter:hover { box-shadow: 0 0 0 1px var(--gold), 0 4px 12px rgba(0,0,0,0.5); }
.rb-fighter__photo {
	position: relative;
	aspect-ratio: 3/4;
	background: linear-gradient(180deg, #211f1b 0%, #141311 100%);
	display: flex; align-items: flex-end; justify-content: center;
	overflow: hidden;
}
.rb-fighter__silhouette { position: absolute; bottom: 0; width: 78%; color: #000; opacity: 0.55; }
.rb-fighter__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rb-fighter__initials {
	position: absolute; top: 14px; left: 14px;
	font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
	color: var(--gold);
	border: 1px solid var(--gold-muted);
	border-radius: var(--radius-card);
	width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
	background: rgba(10,10,10,0.4);
}
.rb-fighter__body { padding: 1rem 1.15rem 1.25rem; }
.rb-fighter__name { font-size: 1.15rem; margin: 0 0 0.15rem; }
.rb-fighter__weight { color: var(--text-secondary); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.rb-record { display: flex; gap: 1.25rem; }
.rb-record div { text-align: left; }
.rb-record b { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1; color: var(--text-primary); }
.rb-record span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); }
.rb-record b.is-win { color: var(--gold); }

/* =========================================================================
   News & Events (§4.4)
   ========================================================================= */
.rb-ne { display: grid; gap: 3rem; }
@media (min-width: 992px) { .rb-ne { grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; } }

.rb-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.rb-event {
	display: flex; gap: 1.1rem; align-items: flex-start;
	background: var(--bg-surface);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-card);
	padding: 1.1rem 1.25rem;
	transition: box-shadow 0.15s ease;
}
.rb-event:hover { box-shadow: 0 0 0 1px var(--gold), 0 4px 12px rgba(0,0,0,0.5); }
.rb-date {
	flex: 0 0 auto; text-align: center;
	background: var(--bg-surface-alt);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-card);
	padding: 0.5rem 0.7rem; min-width: 62px;
}
.rb-date b { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1; color: var(--gold); }
.rb-date span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); }
.rb-event__body { flex: 1; }
.rb-event__title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.05rem; margin: 0 0 0.2rem; }
.rb-event__meta { color: var(--text-secondary); font-size: 0.85rem; margin: 0 0 0.6rem; }

.rb-news { display: flex; flex-direction: column; gap: 1.5rem; }
.rb-newscard {
	background: var(--bg-surface);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-card);
	overflow: hidden;
	transition: box-shadow 0.15s ease;
}
.rb-newscard:hover { box-shadow: 0 0 0 1px var(--gold), 0 4px 12px rgba(0,0,0,0.5); }
.rb-newscard__media { aspect-ratio: 16/9; overflow: hidden; }
.rb-newscard__media img { width: 100%; height: 100%; object-fit: cover; }
.rb-newscard__body { padding: 1.25rem 1.4rem 1.5rem; }
.rb-newscard__date { color: var(--gold); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
.rb-newscard__title { font-size: 1.25rem; margin: 0.35rem 0 0.5rem; }
.rb-newscard__body p { color: var(--text-secondary); margin: 0; }

/* =========================================================================
   Galerie (§4.5)
   ========================================================================= */
.rb-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 700px) { .rb-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .rb-gallery { grid-template-columns: repeat(4, 1fr); } }
.rb-gallery .rb-photo { aspect-ratio: 1/1; }
.rb-gallery .rb-photo:nth-child(1),
.rb-gallery .rb-photo:nth-child(6) { grid-column: span 2; aspect-ratio: 2/1; }

/* =========================================================================
   Connect-Teaser (§4.6)
   ========================================================================= */
.rb-connect { position: relative; overflow: hidden; }
.rb-connect__inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .rb-connect__inner { grid-template-columns: 1.2fr 0.8fr; gap: 3rem; } }
.rb-connect__usp { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.1; margin: 0 0 1rem; }
.rb-connect__badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.rb-badge { border-radius: var(--radius-pill); padding: 0.4rem 1rem; font-size: 0.8rem; background: var(--bg-surface); color: var(--text-secondary); border: 1px solid var(--border-subtle); }
.rb-connect__panel {
	background: var(--bg-surface);
	border: 1px solid var(--gold-muted);
	border-radius: var(--radius-card);
	padding: 1.75rem;
}
.rb-connect__panel--logo { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; background: transparent; border: 0; padding: 0; }
.rb-connect__logo { width: 100%; max-width: 300px; height: auto; border-radius: var(--radius-card); display: block; }
.rb-connect__panel--logo .rb-btn { width: 100%; max-width: 300px; }
.rb-connect__panel h3 { color: var(--gold); }
.rb-connect__panel ul { list-style: none; margin: 0.5rem 0 1.25rem; padding: 0; }
.rb-connect__panel li { padding: 0.35rem 0 0.35rem 1.4rem; position: relative; color: var(--text-primary); font-size: 0.95rem; }
.rb-connect__panel li::before { content: "›"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* =========================================================================
   Kontakt (§4.7)
   ========================================================================= */
.rb-contact__grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .rb-contact__grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

.rb-form { display: flex; flex-direction: column; gap: 1.1rem; }
.rb-field { display: flex; flex-direction: column; gap: 0.4rem; }
.rb-field label { font-size: 0.9rem; font-weight: 500; }
.rb-form input, .rb-form textarea {
	background: var(--bg-surface);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-card);
	color: var(--text-primary);
	padding: 0.75rem 0.9rem;
	font-size: 1rem;
	font-family: inherit;
	width: 100%;
	min-height: 44px;
}
.rb-form input:focus, .rb-form textarea:focus { outline: none; border-color: var(--gold); }
.rb-form textarea { resize: vertical; min-height: 140px; }

.rb-locations { display: flex; flex-direction: column; gap: 1.25rem; }
.rb-location { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: 1.25rem 1.4rem; }
.rb-location h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.rb-location p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }
.rb-location .rb-tag { display: inline-block; margin-top: 0.5rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); border: 1px solid var(--gold-muted); border-radius: var(--radius-pill); padding: 0.2rem 0.7rem; }

.rb-notice { border-radius: var(--radius-card); padding: 1rem 1.25rem; margin-bottom: 1.25rem; border: 1px solid var(--gold-muted); background: var(--bg-surface); }
.rb-notice--err { border-color: #7a3b3b; }

/* =========================================================================
   Footer
   ========================================================================= */
.rb-footer { border-top: 1px solid var(--border-subtle); background: #0c0c0c; padding: 3rem 0 2rem; }
.rb-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .rb-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.rb-footer h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; color: var(--text-secondary); margin: 0 0 0.75rem; }
.rb-footer a { color: var(--text-secondary); }
.rb-footer a:hover { color: var(--gold); }
.rb-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.rb-footer__brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; font-size: 1.3rem; color: var(--text-primary); margin-bottom: 0.75rem; }
.rb-footer__brand svg { width: 30px; height: 30px; color: var(--gold); }
.rb-footer__logo { height: 68px; width: auto; margin-bottom: 0.75rem; display: block; }
.rb-footer__bottom { border-top: 1px solid var(--border-subtle); margin-top: 2.5rem; padding-top: 1.5rem; color: var(--text-secondary); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; align-items: center; }
.rb-footer__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.rb-footer__legal a { color: var(--text-secondary); }
.rb-footer__legal a:hover { color: var(--gold); }

/* =========================================================================
   Rechtliches: Popup-Dialog (Impressum / Datenschutz) + Fliesstext (rb-prose)
   ========================================================================= */
.rb-legal-dialog {
	width: min(760px, calc(100vw - 2rem));
	max-width: min(760px, calc(100vw - 2rem));
	max-height: min(86vh, 900px);
	padding: 0;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-card);
	background: var(--bg-surface);
	color: var(--text-primary);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
	overflow: hidden;
}
.rb-legal-dialog::backdrop {
	background: rgba(6, 6, 6, 0.72);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
/* Öffnen-Animation. */
.rb-legal-dialog[open] { animation: rb-dialog-in 0.24s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes rb-dialog-in {
	from { opacity: 0; transform: translateY(12px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}
.rb-legal-dialog__inner { display: flex; flex-direction: column; max-height: inherit; }
.rb-legal-dialog__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 1.5rem;
	border-bottom: 1px solid var(--border-subtle);
	background: linear-gradient(180deg, var(--bg-surface-alt), var(--bg-surface));
	position: sticky;
	top: 0;
}
.rb-legal-dialog__title { margin: 0; font-size: 1.2rem; }
.rb-legal-dialog__close {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
	line-height: 1;
	color: var(--text-secondary);
	background: transparent;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-btn);
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.rb-legal-dialog__close:hover { color: var(--gold); border-color: var(--gold); }
.rb-legal-dialog__close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.rb-legal-dialog__body { padding: 1.5rem; overflow-y: auto; }
.rb-legal-dialog__foot {
	padding: 0.9rem 1.5rem;
	border-top: 1px solid var(--border-subtle);
	font-size: 0.85rem;
	text-align: right;
}

/* Lesbarer Fliesstext für Rechtstexte (Dialog + Standalone-Seite). */
.rb-prose { color: var(--text-secondary); font-size: 0.95rem; }
.rb-prose h2 { font-size: 1.15rem; margin: 1.75rem 0 0.6rem; color: var(--text-primary); }
.rb-prose h3 { font-size: 1rem; margin: 1.25rem 0 0.4rem; color: var(--text-primary); }
.rb-prose h2:first-child, .rb-prose h3:first-child { margin-top: 0; }
.rb-prose p { margin: 0 0 0.9rem; }
.rb-prose ul { margin: 0 0 0.9rem; padding-left: 1.25rem; }
.rb-prose li { margin: 0.25rem 0; }
.rb-prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.rb-prose a:hover { color: var(--gold-hover); }

@media (prefers-reduced-motion: reduce) {
	.rb-legal-dialog[open] { animation: none; }
}

/* =========================================================================
   Diverses / Zugänglichkeit
   ========================================================================= */
.rb-skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--text-on-gold); padding: 0.6rem 1rem; z-index: 200; border-radius: 0 0 var(--radius-btn) 0; }
.rb-skip-link:focus { left: 0; color: var(--text-on-gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

/* Seiten-Inhalt (page.php) – u. a. Wrapper für die Connect-Shortcodes. */
.rb-page { padding: 3rem 0 5rem; min-height: 60vh; }
.rb-page__title { margin-bottom: 1.5rem; }
.rb-page .rc-card,
.rb-page .rc-directory { margin-top: 0; }

/* Connect-Logo über der Login-Seite (/connect). */
.rb-connect-logo-wrap { text-align: center; margin: 0 0 2rem; }
.rb-connect-logo-lg { display: inline-block; width: 100%; max-width: 320px; height: auto; }

/* =========================================================================
   Kämpfer: klickbare Card + Detailseite (single-revier_kaempfer.php)
   ========================================================================= */
.rb-fighter__link { display: block; color: inherit; text-decoration: none; }
.rb-fighter__link:hover { color: inherit; }
.rb-fighter__more {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 0.5rem 0.9rem;
	background: linear-gradient(180deg, transparent, rgba(10,10,10,0.85));
	color: var(--gold);
	font-size: 0.8rem; font-weight: 600;
	opacity: 0; transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease;
}
.rb-fighter__link:hover .rb-fighter__more,
.rb-fighter__link:focus-visible .rb-fighter__more { opacity: 1; transform: translateY(0); }

.rb-pill--gold { background: var(--gold); color: var(--text-on-gold); border-color: var(--gold); }
.rb-record--lg b { font-size: 2.6rem; }
.rb-record--lg span { font-size: 0.72rem; }

.rb-fs { padding: 2.5rem 0 5rem; }
.rb-fs__back { display: inline-block; margin-bottom: 1.75rem; color: var(--text-secondary); font-size: 0.9rem; }
.rb-fs__back:hover { color: var(--gold); }

.rb-fs__head { display: grid; gap: 2rem; align-items: stretch; }
@media (min-width: 800px) { .rb-fs__head { grid-template-columns: 0.8fr 1.2fr; gap: 3rem; } }

.rb-fs__photo {
	position: relative;
	aspect-ratio: 3/4;
	background: linear-gradient(180deg, #211f1b 0%, #141311 100%);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-card);
	overflow: hidden;
	display: flex; align-items: flex-end; justify-content: center;
}
.rb-fs__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rb-fs__silhouette { position: absolute; bottom: 0; width: 74%; color: #000; opacity: 0.55; }
.rb-fs__initials {
	position: absolute; top: 16px; left: 16px; z-index: 1;
	font-family: var(--font-display); font-weight: 700; font-size: 1.8rem;
	color: var(--gold); border: 1px solid var(--gold-muted); border-radius: var(--radius-card);
	width: 58px; height: 58px; display: flex; align-items: center; justify-content: center;
	background: rgba(10,10,10,0.45);
}

.rb-fs__info { display: flex; flex-direction: column; justify-content: center; }
.rb-fs__info .rb-pill { align-self: flex-start; margin-bottom: 1rem; }
.rb-fs__name { font-size: clamp(2.25rem, 5vw, 3.75rem); margin: 0 0 0.35rem; }
.rb-fs__weight { color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; margin: 0 0 1.5rem; }

.rb-fs__grid { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 900px) { .rb-fs__grid { grid-template-columns: 1.6fr 0.9fr; gap: 3rem; } }
.rb-fs__bio { color: var(--text-primary); font-size: 1.05rem; }
.rb-fs__bio p { margin: 0 0 1rem; }
.rb-fs__vidtitle { font-size: 1.5rem; margin: 2rem 0 1rem; }
.rb-fs__video { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: 0.5rem; }
.rb-fs__video iframe, .rb-fs__video video { display: block; width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: calc(var(--radius-card) - 2px); }

.rb-fs__card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: 1.5rem; }
.rb-fs__card h3 { font-size: 1.15rem; }
.rb-fs__facts { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.rb-fs__facts li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; border-bottom: 1px dashed var(--border-subtle); padding-bottom: 0.5rem; }
.rb-fs__facts li:last-child { border-bottom: 0; }
.rb-fs__facts li span { color: var(--text-secondary); }

.rb-fs__more { margin-top: 4rem; }
