/*
Theme Name: Rennstall Grewe 2026
Theme URI: https://2026.rennstall-grewe.de
Author: Rennstall Grewe Full-Stack Team
Author URI: https://rennstall-grewe.de
Description: High-Speed Custom WordPress Theme ("Modern Champion Racing") für Galopprennstall Henk Grewe, Köln-Weidenpesch. Gutenberg-kompatibel, 0% Pagebuilder-Overhead, direkte Echtzeit-Anbindung an das Rennstall-Datenbanksystem.
Version: 2.0.0
License: GPL-2.0-or-later
Text Domain: rennstall-2026
*/

/* === LOKALE WEBFONTS (DSGVO-KONFORM, 0 EXTERNE GOOGLE-REQUESTS) === */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/playfair-display-600-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/playfair-display-600-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/playfair-display-600-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/playfair-display-600-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/playfair-display-700-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/playfair-display-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/playfair-display-800-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/playfair-display-800-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-400-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-500-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-500-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-600-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-600-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-700-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-800-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-800-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* === BRAND COLORS: MODERN CHAMPION RACING === */
  --rg-navy-950: #0B1324;
  --rg-navy-900: #0F1A32;
  --rg-navy-800: #1E3058;
  --rg-navy-700: #2B4275;
  --rg-navy-600: #3B5998;

  --rg-gold-600: #92400E;
  --rg-gold-500: #C5A059;
  --rg-gold-400: #D4AF37;
  --rg-gold-200: #FDE68A;
  --rg-gold-100: #FEF3C7;
  --rg-gold-50:  #FFFBEB;

  --rg-turf-800: #1B4D3E;
  --rg-turf-600: #065F46;
  --rg-turf-500: #10B981;
  --rg-turf-200: #A7F3D0;
  --rg-turf-100: #ECFDF5;

  /* === NEUTRALS & SURFACES === */
  --rg-bg-page: #F8F9FC;
  --rg-bg-card: #FFFFFF;
  --rg-bg-subtle: #F1F5F9;
  --rg-border-light: #E2E8F0;
  --rg-border-medium: #CBD5E1;

  --rg-text-primary: #0F1A32;
  --rg-text-secondary: #475569;
  --rg-text-muted: #64748B;
  --rg-text-on-dark: #FFFFFF;

  /* === TYPOGRAPHY === */
  --rg-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --rg-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* === ELEVATION & RADII === */
  --rg-radius-sm: 8px;
  --rg-radius-md: 12px;
  --rg-radius-lg: 16px;
  --rg-radius-xl: 22px;
  --rg-radius-pill: 9999px;

  --rg-shadow-card: 0 6px 18px -4px rgba(15, 26, 50, 0.08), 0 2px 6px -1px rgba(15, 26, 50, 0.04);
  --rg-shadow-card-hover: 0 14px 28px -6px rgba(15, 26, 50, 0.14), 0 4px 10px -2px rgba(197, 160, 89, 0.18);
  --rg-transition-fast: 160ms cubic-bezier(0.4, 0, 0.2, 1);
  --rg-container: 1280px;
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--rg-font-sans);
  background-color: var(--rg-bg-page);
  color: var(--rg-text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rg-navy-800);
  text-decoration: none;
  transition: color var(--rg-transition-fast);
}

a:hover {
  color: var(--rg-gold-500);
}

h1, h2, h3, h4, .rg-display {
  font-family: var(--rg-font-display);
  color: var(--rg-navy-900);
  line-height: 1.2;
  margin-top: 0;
}

.rg-tabular,
.rg-starter-table td,
.rg-lot-pill,
.rg-horse-meta,
.rg-kpi-number {
  font-variant-numeric: tabular-nums;
}

.rg-container {
  max-width: var(--rg-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* === TOP RIBBON & STICKY HEADER === */
.rg-top-ribbon {
  background: var(--rg-navy-900);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.22);
}

.rg-top-ribbon-inner {
  max-width: var(--rg-container);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.rg-ribbon-champ {
  color: var(--rg-gold-400);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rg-ribbon-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
}

.rg-ribbon-links a {
  color: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.rg-ribbon-links a:hover {
  color: var(--rg-gold-400);
}

.rg-cockpit-pill {
  background: linear-gradient(135deg, var(--rg-turf-800) 0%, #0D382B 100%);
  color: #fff !important;
  border: 1px solid rgba(16, 185, 129, 0.45);
  padding: 3px 12px;
  border-radius: var(--rg-radius-pill);
  font-weight: 700 !important;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.rg-cockpit-pill:hover {
  background: var(--rg-turf-500);
  color: var(--rg-navy-950) !important;
}

.rg-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 26, 50, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--rg-gold-500);
  box-shadow: 0 10px 30px -10px rgba(11, 19, 36, 0.45);
}

.rg-header-inner {
  max-width: var(--rg-container);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.rg-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
}

.rg-brand-logo {
  height: 54px;
  width: auto;
  border-radius: 6px;
  background: #fff;
  padding: 3px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.rg-brand-text {
  display: flex;
  flex-direction: column;
}

.rg-brand-title {
  font-family: var(--rg-font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.rg-brand-subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rg-gold-400);
  font-weight: 600;
  margin-top: 2px;
}

.rg-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rg-nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 13px;
  border-radius: var(--rg-radius-sm);
  transition: all var(--rg-transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.rg-nav-link:hover,
.rg-nav-link.is-active {
  color: var(--rg-gold-400);
  background: rgba(255, 255, 255, 0.07);
}

.rg-nav-badge {
  background: rgba(197, 160, 89, 0.22);
  color: var(--rg-gold-400);
  border: 1px solid rgba(197, 160, 89, 0.45);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--rg-radius-pill);
  font-variant-numeric: tabular-nums;
}

.rg-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--rg-gold-500) 0%, var(--rg-gold-400) 100%);
  color: var(--rg-navy-950) !important;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: var(--rg-radius-pill);
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.35);
  transition: transform var(--rg-transition-fast), box-shadow var(--rg-transition-fast);
  white-space: nowrap;
}

.rg-header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  color: var(--rg-navy-950) !important;
}

.rg-mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(197, 160, 89, 0.4);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: var(--rg-radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* === MOBILE SLIDE-OVER MENU === */
.rg-mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(11, 19, 36, 0.8);
  backdrop-filter: blur(6px);
}

.rg-mobile-drawer.is-open {
  display: block;
}

.rg-mobile-drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(340px, 88vw);
  background: var(--rg-navy-900);
  border-left: 2px solid var(--rg-gold-500);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.rg-mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rg-mobile-nav-list a {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: var(--rg-radius-sm);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rg-mobile-nav-list a:hover,
.rg-mobile-nav-list a.is-active {
  background: rgba(197, 160, 89, 0.15);
  border-color: var(--rg-gold-500);
  color: var(--rg-gold-400);
}

/* === HERO SECTION === */
.rg-hero {
  position: relative;
  background: var(--rg-navy-950);
  color: #fff;
  overflow: hidden;
  padding: 64px 0 72px;
  border-bottom: 3px solid var(--rg-gold-500);
}

.rg-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  opacity: 0.34;
  transform: scale(1.02);
}

.rg-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(11, 19, 36, 0.95) 0%, rgba(15, 26, 50, 0.85) 52%, rgba(27, 77, 62, 0.72) 100%);
}

.rg-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--rg-container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
}

.rg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 160, 89, 0.16);
  border: 1px solid rgba(197, 160, 89, 0.45);
  color: var(--rg-gold-400);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: var(--rg-radius-pill);
  margin-bottom: 18px;
}

.rg-hero h1 {
  color: #fff;
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.1;
  margin-bottom: 18px;
}

.rg-hero h1 span {
  color: var(--rg-gold-400);
}

.rg-hero-lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 640px;
  margin-bottom: 28px;
}

.rg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.rg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--rg-radius-pill);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: all var(--rg-transition-fast);
  border: 1px solid transparent;
  text-decoration: none;
}

.rg-btn-gold {
  background: linear-gradient(135deg, var(--rg-gold-500) 0%, var(--rg-gold-400) 100%);
  color: var(--rg-navy-950) !important;
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.35);
}

.rg-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
}

.rg-btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.28);
}

.rg-btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--rg-gold-400);
  color: var(--rg-gold-400) !important;
}

.rg-btn-navy {
  background: var(--rg-navy-800);
  color: #fff !important;
}

.rg-btn-navy:hover {
  background: var(--rg-navy-900);
  color: var(--rg-gold-400) !important;
}

/* === CHAMPION SHOWCASE CARD IN HERO === */
.rg-champion-showcase {
  background: rgba(15, 26, 50, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: var(--rg-radius-lg);
  padding: 26px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.rg-champion-medals-img {
  max-height: 110px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.4));
}

.rg-champion-titles-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rg-champion-item {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--rg-gold-400);
  padding: 10px 14px;
  border-radius: 0 var(--rg-radius-sm) var(--rg-radius-sm) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rg-champion-item strong {
  color: var(--rg-gold-400);
  font-size: 15px;
}

.rg-champion-item span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  font-variant-numeric: tabular-nums;
}

/* === LIVE KPI STRIP === */
.rg-kpi-strip {
  margin-top: -34px;
  position: relative;
  z-index: 10;
}

.rg-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.rg-kpi-card {
  background: var(--rg-bg-card);
  border-radius: var(--rg-radius-md);
  padding: 20px 22px;
  box-shadow: var(--rg-shadow-card);
  border: 1px solid var(--rg-border-light);
  border-top: 3px solid var(--rg-gold-500);
  display: flex;
  flex-direction: column;
}

.rg-kpi-number {
  font-family: var(--rg-font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--rg-navy-900);
  line-height: 1.1;
}

.rg-kpi-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--rg-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 6px;
}

.rg-kpi-sub {
  font-size: 12px;
  color: var(--rg-text-muted);
  margin-top: 4px;
}

/* === SECTIONS === */
.rg-section {
  padding: 72px 0;
}

.rg-section-alt {
  background: var(--rg-bg-subtle);
  border-top: 1px solid var(--rg-border-light);
  border-bottom: 1px solid var(--rg-border-light);
}

.rg-section-dark {
  background: var(--rg-navy-900);
  color: #fff;
}

.rg-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.rg-section-title {
  font-size: clamp(26px, 3vw, 38px);
  margin: 6px 0 0;
}

.rg-section-sub {
  color: var(--rg-text-secondary);
  font-size: 16px;
  max-width: 680px;
  margin: 8px 0 0;
}

/* === PAGE HERO (SUBPAGES) === */
.rg-page-hero {
  background: linear-gradient(125deg, var(--rg-navy-950) 0%, var(--rg-navy-800) 65%, var(--rg-turf-800) 100%);
  color: #fff;
  padding: 48px 0;
  border-bottom: 3px solid var(--rg-gold-500);
}

.rg-page-hero h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 10px;
}

.rg-page-hero p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  max-width: 760px;
  margin: 0;
}

/* === FILTER TOOLBAR (PFERDE, STARTER, TEAM, ERFOLGE) === */
.rg-filter-bar {
  background: var(--rg-bg-card);
  border: 1px solid var(--rg-border-light);
  border-radius: var(--rg-radius-lg);
  padding: 18px 22px;
  box-shadow: var(--rg-shadow-card);
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.rg-search-input-wrap {
  position: relative;
  flex: 1 1 260px;
  min-width: 220px;
}

.rg-search-input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border: 1px solid var(--rg-border-medium);
  border-radius: var(--rg-radius-pill);
  font-family: var(--rg-font-sans);
  font-size: 14px;
  color: var(--rg-text-primary);
  background: var(--rg-bg-page);
  transition: border-color var(--rg-transition-fast), box-shadow var(--rg-transition-fast);
}

.rg-search-input:focus {
  outline: none;
  border-color: var(--rg-navy-800);
  box-shadow: 0 0 0 3px rgba(30, 48, 88, 0.12);
  background: #fff;
}

.rg-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rg-text-muted);
  pointer-events: none;
}

.rg-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.rg-filter-pill {
  background: var(--rg-bg-subtle);
  color: var(--rg-text-secondary);
  border: 1px solid var(--rg-border-light);
  padding: 8px 14px;
  border-radius: var(--rg-radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--rg-transition-fast);
  font-family: var(--rg-font-sans);
}

.rg-filter-pill:hover {
  border-color: var(--rg-navy-700);
  color: var(--rg-navy-900);
}

.rg-filter-pill.is-active {
  background: var(--rg-navy-800);
  color: #fff;
  border-color: var(--rg-navy-800);
  box-shadow: 0 2px 8px rgba(30, 48, 88, 0.25);
}

.rg-select {
  padding: 9px 14px;
  border-radius: var(--rg-radius-pill);
  border: 1px solid var(--rg-border-medium);
  font-family: var(--rg-font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rg-text-primary);
  background: #fff;
  cursor: pointer;
}

/* === HORSE & SILK CARDS (PFERDE IM TRAINING) === */
.rg-horses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.rg-horse-card {
  background: var(--rg-bg-card);
  border: 1px solid var(--rg-border-light);
  border-radius: var(--rg-radius-lg);
  padding: 20px;
  box-shadow: var(--rg-shadow-card);
  transition: transform var(--rg-transition-fast), box-shadow var(--rg-transition-fast), border-color var(--rg-transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rg-horse-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--rg-shadow-card-hover);
  border-color: rgba(197, 160, 89, 0.6);
}

.rg-horse-card-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.rg-silk-avatar {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: var(--rg-radius-md);
  background: linear-gradient(145deg, #FFFFFF 0%, #F1F5F9 100%);
  border: 2px solid rgba(197, 160, 89, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: inset 0 2px 4px rgba(15,26,50,0.05);
  overflow: hidden;
}

.rg-silk-avatar img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.rg-silk-sm {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  padding: 3px;
  background: #fff;
  border: 1px solid var(--rg-border-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rg-silk-sm img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.rg-horse-info {
  flex: 1;
  min-width: 0;
}

.rg-horse-name {
  font-family: var(--rg-font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--rg-navy-900);
  margin: 0 0 4px;
  line-height: 1.2;
}

.rg-horse-meta {
  font-size: 13px;
  color: var(--rg-text-muted);
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.rg-owner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rg-navy-800);
  background: var(--rg-bg-subtle);
  padding: 4px 10px;
  border-radius: var(--rg-radius-sm);
}

.rg-horse-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rg-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rg-horse-stats-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rg-stat-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--rg-radius-pill);
  background: var(--rg-bg-subtle);
  color: var(--rg-text-secondary);
  font-variant-numeric: tabular-nums;
}

.rg-stat-chip.is-gold {
  background: var(--rg-gold-100);
  color: var(--rg-gold-600);
  border: 1px solid var(--rg-gold-200);
}

.rg-starts-toggle-btn {
  background: transparent;
  border: 1px solid var(--rg-border-medium);
  color: var(--rg-navy-800);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--rg-radius-pill);
  cursor: pointer;
  transition: all var(--rg-transition-fast);
}

.rg-starts-toggle-btn:hover {
  background: var(--rg-navy-800);
  color: #fff;
  border-color: var(--rg-navy-800);
}

.rg-horse-starts-drawer {
  display: none;
  margin-top: 14px;
  background: var(--rg-bg-page);
  border-radius: var(--rg-radius-sm);
  padding: 10px 12px;
  border: 1px solid var(--rg-border-light);
  max-height: 240px;
  overflow-y: auto;
}

.rg-horse-starts-drawer.is-open {
  display: block;
}

.rg-mini-start-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--rg-border-light);
  font-size: 12.5px;
}

.rg-mini-start-row:last-child {
  border-bottom: none;
}

/* === STARTER TABLE & MEDAL SYSTEM === */
.rg-table-card {
  background: var(--rg-bg-card);
  border-radius: var(--rg-radius-lg);
  box-shadow: var(--rg-shadow-card);
  border: 1px solid var(--rg-border-light);
  overflow: hidden;
}

.rg-table-scroll {
  overflow-x: auto;
}

.rg-starter-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.rg-starter-table th {
  background: var(--rg-navy-900);
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 18px;
  font-weight: 700;
  white-space: nowrap;
}

.rg-starter-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--rg-border-light);
  font-size: 14.5px;
  vertical-align: middle;
}

.rg-starter-table tbody tr:hover {
  background: #F1F5F9;
}

.rg-starter-table tbody tr.is-win-row {
  background: var(--rg-gold-50);
}

.rg-starter-table tbody tr.is-win-row:hover {
  background: #FEF3C7;
}

.rg-placing-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 11px;
  border-radius: var(--rg-radius-pill);
  font-variant-numeric: tabular-nums;
  min-width: 58px;
}

.rg-placing-1 {
  background: linear-gradient(135deg, var(--rg-gold-500) 0%, var(--rg-gold-400) 100%);
  color: var(--rg-navy-950);
  box-shadow: 0 2px 6px rgba(197, 160, 89, 0.35);
}

.rg-placing-2 {
  background: #E2E8F0;
  color: #1E293B;
  border: 1px solid #CBD5E1;
}

.rg-placing-3 {
  background: #FFEDD5;
  color: #9A3412;
  border: 1px solid #FDBA74;
}

.rg-placing-other {
  background: var(--rg-bg-subtle);
  color: var(--rg-text-secondary);
}

.rg-placing-upcoming {
  background: var(--rg-turf-100);
  color: var(--rg-turf-800);
  border: 1px solid var(--rg-turf-200);
}

/* === MAGAZINE / BLOG CARDS (AKTUELLES & RENNBERICHTE) === */
.rg-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 26px;
}

.rg-post-card {
  background: var(--rg-bg-card);
  border-radius: var(--rg-radius-lg);
  border: 1px solid var(--rg-border-light);
  box-shadow: var(--rg-shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--rg-transition-fast), box-shadow var(--rg-transition-fast);
}

.rg-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rg-shadow-card-hover);
}

.rg-post-thumb {
  position: relative;
  height: 220px;
  background: var(--rg-navy-900);
  overflow: hidden;
}

.rg-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.rg-post-card:hover .rg-post-thumb img {
  transform: scale(1.05);
}

.rg-post-date-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 26, 50, 0.9);
  color: var(--rg-gold-400);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--rg-radius-pill);
  border: 1px solid rgba(197, 160, 89, 0.4);
  backdrop-filter: blur(4px);
}

.rg-post-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rg-post-meta {
  font-size: 12.5px;
  color: var(--rg-text-muted);
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
}

.rg-post-title {
  font-size: 20px;
  margin: 0 0 12px;
  line-height: 1.3;
}

.rg-post-title a {
  color: var(--rg-navy-900);
}

.rg-post-title a:hover {
  color: var(--rg-gold-500);
}

.rg-post-excerpt {
  font-size: 14.5px;
  color: var(--rg-text-secondary);
  margin-bottom: 18px;
  flex: 1;
}

.rg-post-readmore {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--rg-navy-800);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* === TEAM GRID === */
.rg-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.rg-team-card {
  background: var(--rg-bg-card);
  border-radius: var(--rg-radius-lg);
  border: 1px solid var(--rg-border-light);
  box-shadow: var(--rg-shadow-card);
  overflow: hidden;
  transition: transform var(--rg-transition-fast), box-shadow var(--rg-transition-fast);
}

.rg-team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rg-shadow-card-hover);
}

.rg-team-photo {
  height: 280px;
  background: var(--rg-navy-900);
  overflow: hidden;
}

.rg-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.rg-team-info {
  padding: 18px 20px;
}

.rg-team-role {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rg-gold-600);
  background: var(--rg-gold-100);
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--rg-radius-pill);
  margin-bottom: 8px;
}

.rg-team-name {
  font-family: var(--rg-font-display);
  font-size: 20px;
  margin: 0;
  color: var(--rg-navy-900);
}

/* === GALLERY & LIGHTBOX (STALL) === */
.rg-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.rg-gallery-item {
  border-radius: var(--rg-radius-md);
  overflow: hidden;
  height: 220px;
  cursor: pointer;
  position: relative;
  box-shadow: var(--rg-shadow-card);
  border: 1px solid var(--rg-border-light);
}

.rg-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.rg-gallery-item:hover img {
  transform: scale(1.06);
}

.rg-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(11, 19, 36, 0.92);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.rg-lightbox.is-open {
  display: flex;
}

.rg-lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: var(--rg-radius-md);
  border: 2px solid var(--rg-gold-500);
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

/* === SINGLE ARTICLE & MENTIONED HORSES === */
.rg-article-container {
  max-width: 860px;
  margin: 0 auto;
  background: var(--rg-bg-card);
  border-radius: var(--rg-radius-lg);
  box-shadow: var(--rg-shadow-card);
  border: 1px solid var(--rg-border-light);
  padding: 40px 48px;
}

.rg-article-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--rg-text-primary);
}

.rg-article-content p {
  margin-bottom: 1.4em;
}

.rg-article-content img {
  border-radius: var(--rg-radius-md);
  margin: 24px 0;
}

/* === FOOTER === */
.rg-footer {
  background: var(--rg-navy-950);
  color: rgba(255, 255, 255, 0.8);
  border-top: 3px solid var(--rg-gold-500);
  padding: 64px 0 32px;
  font-size: 14.5px;
}

.rg-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 48px;
}

.rg-footer h4 {
  color: var(--rg-gold-400);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--rg-font-sans);
  margin-bottom: 18px;
}

.rg-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rg-footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

.rg-footer-links a:hover {
  color: var(--rg-gold-400);
}

.rg-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* === PAGINATION === */
.rg-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.rg-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--rg-radius-sm);
  background: var(--rg-bg-card);
  border: 1px solid var(--rg-border-light);
  color: var(--rg-navy-900);
  font-weight: 700;
  font-size: 14px;
}

.rg-pagination .page-numbers.current,
.rg-pagination .page-numbers:hover {
  background: var(--rg-navy-800);
  color: var(--rg-gold-400);
  border-color: var(--rg-navy-800);
}

/* === RESPONSIVE BREAKPOINTS === */
@media (max-width: 1080px) {
  .rg-nav {
    display: none;
  }
  .rg-mobile-toggle {
    display: inline-flex;
  }
  .rg-hero-content {
    grid-template-columns: 1fr;
  }
  .rg-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rg-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .rg-top-ribbon-inner {
    justify-content: center;
    text-align: center;
  }
  .rg-ribbon-links {
    display: none;
  }
  .rg-kpi-grid {
    grid-template-columns: 1fr;
  }
  .rg-footer-grid {
    grid-template-columns: 1fr;
  }
  .rg-article-container {
    padding: 24px 20px;
  }
  .rg-header-cta {
    display: none;
  }
}
