/* ============================================================
   BRAND TOKENS — override Bootstrap where needed
============================================================ */
:root {
  --bs-font-sans-serif: 'Kanit', sans-serif;
  --bs-body-font-family: 'Kanit', sans-serif;

  --rg-dark:        #000812;
  --rg-red:         #e30613;
  --rg-blue:        #004dff;
  --rg-light:       #eef2f5;
  --rg-text-grey:   #626f78;

  --rg-gradient-rainbow:      linear-gradient(90deg, #e30613 0%, #f17a0a 25%, #ffed00 45%, #05b7f8 70%, #004f9f 100%);
  --rg-gradient-yellow-orange: linear-gradient(137deg, #ffed00 0.8%, #f17a0a 46%);
  --rg-gradient-blue:          linear-gradient(162deg, #004dff 22%, #0077ff 50%);
}

/* ============================================================
   GLOBAL
============================================================ */
body {
  color: var(--rg-text-grey);
}

a {
  color: #a85200;
  text-underline-offset: 3px;
}
a:hover {
  color: #8a4300;
}

/* Wider container — reduce side whitespace at xl and above */
@media (min-width: 1200px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1440px;
  }
}

/* Spacing helpers */
.py-section       { padding-top: 28px; padding-bottom: 40px; }
.mb-section-head  { margin-bottom: 48px; }

/* ============================================================
   COLOR UTILITIES
============================================================ */
.bg-rg-dark  { background-color: var(--rg-dark) !important; }
.bg-rg-light { background-color: var(--rg-light) !important; }
.text-rg-blue { color: var(--rg-blue) !important; }
.text-rg-yellow { color: #ffed00 !important; }

.gradient-yellow-orange {
  background: var(--rg-gradient-yellow-orange);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-blue {
  background: var(--rg-gradient-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  font-family: var(--bs-body-font-family);
  font-size: 20px;
  font-weight: 400;
  border-radius: 32px;
  padding: 4px 28px;
  line-height: 36px;
  border: none;
}

.btn-rg-red {
  --bs-btn-bg: var(--rg-red);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--rg-red);
  --bs-btn-hover-color: #fff;
  --bs-btn-border-color: var(--rg-red);
  --bs-btn-hover-border-color: var(--rg-red);
  --bs-btn-active-bg: var(--rg-red);
  --bs-btn-active-color: #fff;
  --bs-btn-active-border-color: var(--rg-red);
}
.btn-rg-blue {
  --bs-btn-bg: var(--rg-blue);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--rg-blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-border-color: var(--rg-blue);
  --bs-btn-hover-border-color: var(--rg-blue);
  --bs-btn-active-bg: var(--rg-blue);
  --bs-btn-active-color: #fff;
  --bs-btn-active-border-color: var(--rg-blue);
}
.btn-rg-red:hover,
.btn-rg-blue:hover { opacity: 0.85; }
.btn-rg-outline {
  --bs-btn-bg: transparent;
  --bs-btn-color: var(--rg-text-grey);
  --bs-btn-border-color: var(--rg-text-grey);
  --bs-btn-hover-bg: var(--rg-text-grey);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-border-color: var(--rg-text-grey);
  border: 1.5px solid var(--rg-text-grey);
}

.pager-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--bs-body-font-family);
  font-size: inherit;
  color: var(--rg-text-grey);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}
.pager-link:hover {
  color: var(--rg-dark);
  text-decoration: underline;
}

/* ============================================================
   NAVIGATION
============================================================ */
.nav-rainbow {
  height: 10px;
  background: var(--rg-gradient-rainbow);
}

.navbar { height: 100px; }

@media (max-width: 767.98px) {
  .navbar { height: auto; min-height: 72px; }
}

.nav-links .nav-link {
  color: #eef2f5cc;
  font-size: 18px;
  letter-spacing: 0.03em;
  padding: 0 15px;
}

.nav-links .nav-link:hover { color: #fff; }

.nav-links .dropdown-menu {
  background: var(--rg-dark);
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-radius: 0 0 8px 8px;
  min-width: 0;
  padding: 8px 0;
}

.nav-links .dropdown-item {
  color: #eef2f5cc;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 10px 20px;
  white-space: nowrap;
}

.nav-links .dropdown-item:hover,
.nav-links .dropdown-item:focus {
  background: transparent;
  color: #fff;
}

.nav-links .dropdown-item.active {
  background: transparent;
  color: #ffed00;
}

@media (max-width: 767.98px) {
  /* nav links: right-aligned vertical list in collapsed mobile menu */
  .nav-links                { flex-direction: column; align-items: flex-end; width: 100%; }
  .nav-links .nav-link      { padding: 8px 0; text-align: right; }
  .nav-links .dropdown-menu {
    border-top: none;
    border-radius: 0;
    padding: 0 0 8px 0;
    text-align: right;
  }
  .nav-links .dropdown-item { font-size: 16px; padding: 6px 0; text-align: right; }
}

/* Active nav indicator — yellow bar at bottom of navbar */
@media (min-width: 768px) {
  .navbar-collapse { align-self: stretch; }
  .nav-links { height: 100%; }
  .nav-links .nav-item {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
  }
  .nav-links .nav-item:has(.text-rg-yellow)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 3px;
    background: #ffed00;
    border-radius: 2px 2px 0 0;
  }
}

/* ============================================================
   HERO
============================================================ */
.hero {
  height: 690px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border: 0;
}

.hero-gradient-overlay {
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(to top, rgba(5,8,12,0.78), rgba(5,8,12,0));
}

.hero-text-box {
  position: absolute;
  top: 280px;
  width: 660px;
  background: rgba(5, 8, 12, 0.75);
  border-radius: 15px;
  padding: 28px 45px 36px;
}

.hero-heading {
  font-size: 50px;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-body {
  font-size: 22px;
  line-height: 1.5;
  margin-bottom: 28px;
}

/* Hero pagination tabs */
.hero-pagination { padding-bottom: 20px; }

.hero-pagi-item {
  padding: 0 8px;
  cursor: pointer;
}

.hero-pagi-item span {
  display: block;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

.hero-pagi-item.active span { color: #fff; }

.hero-pagi-item.active .pagi-line-fill {
  animation: pagiProgress 5s linear forwards;
}

.pagi-line {
  height: 2px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
}

@keyframes pagiProgress {
  from { width: 0% }
  to   { width: 100% }
}

.pagi-line-fill {
  height: 100%;
  width: 0%;
  background: #e30613;
  border-radius: 2px;
}

/* ============================================================
   SECTION HEADER
============================================================ */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-label {
  font-size: 18px;
  color: var(--rg-text-grey);
  white-space: nowrap;
}

.section-link {
  font-size: 18px;
  color: var(--rg-text-grey);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.section-link:hover { color: var(--rg-dark); }

.section-line {
  width: 100%;
  height: 1px;
  background: var(--rg-text-grey);
  opacity: 0.3;
}

/* ============================================================
   DISCIPLINES
============================================================ */
.discipline-card {
  background: #fff;
  border-radius: 25px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.discipline-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.discipline-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.discipline-card:hover .discipline-img { transform: scale(1.04); }

.discipline-title {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 10px;
}

.discipline-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.discipline-text {
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* ============================================================
   PROBETRAINING (split)
============================================================ */
.probetraining-img-col { min-height: 600px; }

.probetraining-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.probetraining-content {
  padding: 80px 80px 80px 100px;
}

.probetraining-heading {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 24px;
}

.probetraining-text {
  font-size: 21px;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ============================================================
   NEWS (AKTUELLES)
============================================================ */
.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.news-img-wrap {
  aspect-ratio: 334 / 194;
  overflow: hidden;
}

.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.news-date {
  display: block;
  font-size: 15px;
  color: var(--rg-text-grey);
  margin-bottom: 10px;
}

.news-divider {
  border-color: rgba(98,111,120,0.2);
  margin: 0 0 14px;
  opacity: 1;
}

.news-title-link {
  color: inherit;
  text-decoration: none;
}

.news-title-link:hover { text-decoration: underline; }

.news-title {
  font-size: 16px;
  font-weight: 400;
  color: var(--rg-dark);
  line-height: 1.4;
  margin-bottom: 10px;
}

.news-text {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-arrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--rg-text-grey);
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  text-align: right;
}

.news-arrow:hover { color: var(--rg-dark); }

/* ============================================================
   EVENTS (VERANSTALTUNGEN)
============================================================ */
.event-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.event-img-wrap { position: relative; }

.event-img {
  width: 100%;
  aspect-ratio: 688 / 400;
  object-fit: cover;
  display: block;
}

.event-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--rg-red);
  padding: 10px 16px;
}

.event-date-badge,
.event-location-badge {
  font-size: 15px;
  color: #fff;
}

.event-divider {
  border-color: rgba(98,111,120,0.2);
  opacity: 1;
}

.event-title {
  font-size: 22px;
  font-weight: 400;
  color: var(--rg-dark);
  line-height: 1.3;
  margin-bottom: 10px;
}

.event-text {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 14px;
}

/* ============================================================
   PARTNERS
============================================================ */
.sponsor-logo {
  max-height: 120px;
  max-width: 250px;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.2s;
}

.sponsor-logo:hover { filter: none; }

/* ============================================================
   SOCIAL MEDIA
============================================================ */
.social-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
}

.social-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

/* ============================================================
   KONTAKT TEASER (split)
============================================================ */
.kontakt-img-col { min-height: 539px; }

.kontakt-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kontakt-content {
  padding: 80px 80px 80px 100px;
}

.kontakt-heading {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 24px;
}

.kontakt-text {
  font-size: 21px;
  line-height: 1.6;
  color: var(--rg-text-grey);
  margin-bottom: 32px;
}

/* ============================================================
   FOOTER
============================================================ */
.footer-address {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(217, 217, 217, 0.85);
  text-transform: uppercase;
}

.footer-divider {
  width: 1px;
  height: 64px;
  background: rgba(255,255,255,0.15);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer-nav a {
  font-size: 14px;
  color: rgba(217, 217, 217, 0.75);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-nav a:hover { color: #fff; }

/* ============================================================
   PROBETRAINING PAGE — info + contact form
============================================================ */
.contact-info-heading {
  font-size: 28px;
  font-weight: 600;
  color: var(--rg-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.contact-info-text {
  font-size: 16px;
  margin-bottom: 0;
}

.contact-disciplines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 767.98px) {
  .contact-disciplines { grid-template-columns: 1fr; }
}

.probetraining-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.probetraining-info-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--rg-gradient-yellow-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.probetraining-info-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--rg-dark);
  line-height: 1.3;
}

.probetraining-info-detail {
  display: block;
  font-size: 14px;
  color: var(--rg-text-grey);
  margin-top: 2px;
}

/* Schnuppertraining accordion */
.schnupper-accordion .accordion-item {
  border: none;
  background: transparent;
  margin-bottom: 8px;
}
.schnupper-accordion .accordion-button {
  background: #fff;
  border-radius: 12px !important;
  font-size: 22px;
  font-weight: 600;
  color: var(--rg-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 20px 28px;
}
.schnupper-accordion .accordion-button:not(.collapsed) {
  background: #fff;
  color: var(--rg-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.schnupper-accordion .accordion-button:focus {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.schnupper-accordion .accordion-button::after {
  filter: none;
}
.schnupper-accordion .accordion-body {
  padding: 28px 8px 8px;
}
@media (max-width: 767.98px) {
  .schnupper-accordion .accordion-button { font-size: 18px; padding: 16px 20px; }
}

/* Schnuppertraining page */
.schnupper-img-full {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  display: block;
}
.schnupper-img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.schnupper-img-row img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 1;
  display: block;
}
@media (max-width: 767.98px) {
  .schnupper-img-row { gap: 8px; }
}

.schnupper-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.schnupper-checklist li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  color: var(--rg-text-grey);
  font-size: 18px;
}
.schnupper-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--rg-red);
  font-weight: 600;
  font-size: 18px;
}

.schnupper-checklist-note {
  margin-top: 20px;
  color: var(--rg-text-grey);
  font-size: 15px;
  font-weight: 600;
}

.schnupper-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.schnupper-gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
@media (max-width: 767.98px) {
  .schnupper-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .schnupper-checklist li { font-size: 16px; }
}

.contact-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.contact-form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--rg-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  display: block;
}

.contact-form-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--rg-text-grey);
}

.contact-form-control {
  border-radius: 8px !important;
  border-color: #dce3e8 !important;
  font-size: 15px !important;
  padding: 10px 14px !important;
  color: var(--rg-dark) !important;
}

.contact-form-control:focus {
  border-color: var(--rg-blue) !important;
  box-shadow: 0 0 0 3px rgba(0, 77, 255, 0.12) !important;
}

.contact-form-success {
  align-items: center;
  gap: 12px;
  background: #eaf7ee;
  border: 1px solid #7ed4a0;
  border-radius: 10px;
  color: #1a6635;
  font-size: 16px;
  font-weight: 600;
  padding: 20px 24px;
  margin-bottom: 0;
}

.contact-form-error {
  align-items: center;
  gap: 12px;
  background: #fdeaea;
  border: 1px solid #e57373;
  border-radius: 10px;
  color: #991b1b;
  font-size: 16px;
  font-weight: 600;
  padding: 20px 24px;
  margin-bottom: 16px;
}

/* Probetraining spot counter & status */
.pt-spots-badge {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--rg-blue, #004dff);
  background: #e8f0fe;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
}

.pt-spots-badge--limited {
  color: #7a4100;
  background: #fff3e0;
}

.pt-status-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff3e0;
  border: 1px solid #ffb74d;
  border-radius: 10px;
  color: #7a4100;
  font-size: 15px;
  font-weight: 600;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.pt-status-message svg { flex-shrink: 0; margin-top: 1px; }

/* ============================================================
   CLUB CONTACT CARDS (verein page)
============================================================ */
.club-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  overflow: hidden;
}
.club-avatar img { width: 100%; height: 100%; object-fit: cover; }
.club-card-name  { font-size: 0.875rem; font-weight: 700; color: var(--rg-dark); margin: 0 0 2px; }
.club-card-role  { font-size: 0.8125rem; color: var(--rg-text-grey); margin: 0 0 12px; }
.club-card-email { font-size: 0.875rem; color: inherit; text-decoration: none; }
.club-card-email:hover { text-decoration: underline; }

.verein-1893-card {
  background-image: url('/assets/images/verein-1893.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.verein-1893-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 8, 18, 0.45);
}
.verein-1893-card > * { position: relative; z-index: 1; }
.verein-1893-card .badge { background: rgba(255,255,255,0.15) !important; color: #fff !important; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
============================================================ */

/* Section spacing */
@media (max-width: 767.98px) {
  .py-section      { padding-top: 16px; padding-bottom: 24px; }
  .mb-section-head { margin-bottom: 28px; }
}

/* Hero */
@media (max-width: 767.98px) {
  .hero                { height: 480px; }
  .hero-text-box       { top: 120px; left: 0; right: 0; width: auto; padding: 20px 24px 28px; }
  .hero-heading        { font-size: 30px; margin-bottom: 14px; }
  .hero-body           { font-size: 16px; margin-bottom: 20px; }
  .hero-pagi-item span { font-size: 13px; }
}

/* Split sections (Probetraining + Kontakt) */
@media (max-width: 767.98px) {
  .probetraining-img-col,
  .kontakt-img-col    { min-height: 260px; }
  .probetraining-content,
  .kontakt-content    { padding: 40px 24px; }
  .probetraining-heading,
  .kontakt-heading    { font-size: 30px; }
  .probetraining-text,
  .kontakt-text       { font-size: 16px; margin-bottom: 24px; }
}

/* Buttons */
@media (max-width: 767.98px) {
  .btn { font-size: 16px; }
}

/* Discipline card button on md (3 narrow columns on iPad portrait) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .discipline-body .btn {
    font-size: 15px;
    padding: 4px 16px;
  }
}

/* ============================================================
   PAGE HERO (static — used on category pages)
============================================================ */
.page-hero {
  height: 450px;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.page-hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  height: 75%;
  background: linear-gradient(to top, rgba(5,8,12,0.75), rgba(5,8,12,0));
}

.page-hero-title-box {
  position: absolute;
  bottom: 56px;
  left: 0;
  background: rgba(5, 8, 12, 0.75);
  border-radius: 15px;
  padding: 12px 40px 16px;
  display: inline-block;
}

.page-hero-title {
  font-size: 50px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  background: var(--rg-gradient-yellow-orange);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

@media (max-width: 767.98px) {
  .page-hero            { height: 240px; }
  .page-hero-title      { font-size: 30px; }
  .page-hero-title-box  { bottom: 32px; padding: 8px 24px 12px; }
}

/* ============================================================
   INTRO CONTENT (category page text + image block)
============================================================ */
.intro-section { padding-top: 56px; padding-bottom: 64px; }

@media (min-width: 992px) {
  .intro-section .container {
    max-width: 900px;
  }
}

/* Discipline contact flyout (desktop only) */
.intro-content-wrap {
  position: relative;
}

.discipline-contact-flyout {
  position: absolute;
  top: 0;
  left: calc(100% + 40px);
  width: 240px;
}

.discipline-contact-flyout .discipline-contact-sidebar {
  position: sticky;
  top: 24px;
}

.discipline-contact-heading {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rg-dark);
  margin-bottom: 16px;
}

.intro-heading {
  font-size: 60px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  background: var(--rg-gradient-yellow-orange);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 28px;
}

.intro-text,
.text {
  font-size: 24px;
  line-height: 1.46;
  color: var(--rg-text-grey);
  margin-bottom: 0;
}

.intro-img-wrap {
  margin-top: 48px;
  margin-bottom: 12px;
  border-radius: 15px;
  overflow: hidden;
}

.intro-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intro-caption {
  font-size: 18px;
  color: #5e6770;
  margin-bottom: 48px;
}

.intro-subheading {
  font-size: 36px;
  font-weight: 600;
  color: var(--rg-text-grey);
  margin-bottom: 20px;
}

@media (max-width: 767.98px) {
  .intro-heading    { font-size: 36px; }
  .intro-text       { font-size: 18px; }
  .intro-subheading { font-size: 26px; }
}

/* Bare elements generated from Markdown in discipline intro */
.intro-section h2 {
  font-size: 60px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  background: var(--rg-gradient-yellow-orange);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 28px;
}

.intro-section h3 {
  font-size: 36px;
  font-weight: 600;
  color: var(--rg-text-grey);
  margin-top: 48px;
  margin-bottom: 20px;
}

.intro-section h4 {
  font-size: 24px;
  font-weight: 600;
  color: var(--rg-dark);
  margin-top: 32px;
  margin-bottom: 16px;
}

.intro-section p:not(.intro-caption) {
  font-size: 24px;
  line-height: 1.46;
  color: var(--rg-text-grey);
}

.intro-section p:not(.intro-caption) + p:not(.intro-caption) {
  margin-top: 1.5rem;
}

.intro-section .btn {
  margin-top: 12px;
}

@media (max-width: 767.98px) {
  .intro-section h2 { font-size: 36px; }
  .intro-section h3 { font-size: 26px; }
  .intro-section h4 { font-size: 20px; }
  .intro-section p:not(.intro-caption) { font-size: 18px; }
}

.verein-footnote {
  font-size: 16px !important;
  line-height: 1.5;
  color: #5e6770;
}

/* ============================================================
   FAQ ACCORDION
============================================================ */
.faq-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
}

.faq-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid rgba(98,111,120,0.2);
}

.faq-accordion .accordion-item:last-child {
  border-bottom: none;
}

.faq-accordion .accordion-button {
  font-family: var(--bs-body-font-family);
  font-size: 36px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 28px 32px;
  background: #fff;
  box-shadow: none;
  background: var(--rg-gradient-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-accordion .accordion-button::after {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23626f78'%3E%3Cpath d='M19 13H13v6h-2v-6H5v-2h6V5h2v6h6v2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 32px;
  transform: none;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23626f78'%3E%3Cpath d='M19 13H5v-2h14v2z'/%3E%3C/svg%3E");
  transform: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--rg-gradient-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  box-shadow: none;
}

.faq-accordion .accordion-body {
  font-size: 24px;
  line-height: 1.46;
  color: var(--rg-text-grey);
  padding: 0 32px 28px;
}

@media (max-width: 767.98px) {
  .faq-accordion .accordion-button { font-size: 22px; padding: 20px 20px; }
  .faq-accordion .accordion-body   { font-size: 17px; padding: 0 20px 20px; }
}

/* ============================================================
   TRAINING SCHEDULE TABLE
============================================================ */
.training-table-wrap {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
}

.training-table {
  margin-bottom: 0;
}

.training-table thead th {
  background: var(--rg-text-grey);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 20px;
  border: none;
  vertical-align: middle;
}

.training-table tbody tr:nth-child(odd)  td { background: #fff; }
.training-table tbody tr:nth-child(even) td { background: var(--rg-light); }

.training-table thead th:nth-child(2),
.training-table tbody td:nth-child(2) { white-space: nowrap; }

.training-table tbody td {
  font-size: 16px;
  font-weight: 400;
  color: var(--rg-text-grey);
  padding: 16px 20px;
  border-color: #d2dae4;
  vertical-align: middle;
}

.training-footnote {
  font-size: 14px;
  line-height: 1.55;
  color: #5e6770;
  margin-top: 24px;
}

@media (max-width: 767.98px) {
  .training-table thead th,
  .training-table tbody td { font-size: 14px; padding: 12px 10px; }
}

/* ============================================================
   PROSE (markdown body text)
============================================================ */
.prose {
  font-size: 18px;
  line-height: 1.65;
  color: var(--rg-text-grey);
}

/* ============================================================
   PROSE IMAGES (inline images in markdown posts)
============================================================ */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

/* ============================================================
   PROSE TABLES (markdown-generated tables inside .prose)
============================================================ */
.prose table {
  width: 100%;
  margin-bottom: 1.5rem;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 15px;
  overflow: hidden;
}

.prose table thead th {
  background: var(--rg-text-grey);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  padding: 16px 20px;
  border: none;
  vertical-align: middle;
}

.prose table tbody tr:nth-child(odd)  td { background: #fff; }
.prose table tbody tr:nth-child(even) td { background: var(--rg-light); }

.prose table tbody td {
  font-size: 18px;
  font-weight: 400;
  color: var(--rg-text-grey);
  padding: 16px 20px;
  border-color: #d2dae4;
  vertical-align: middle;
}

@media (max-width: 767.98px) {
  .prose table thead th,
  .prose table tbody td { font-size: 14px; padding: 12px 10px; }
}

/* ============================================================
   IMPRESSIONEN GALLERY
============================================================ */
.impressions-section { padding-top: 56px; padding-bottom: 80px; }

.impressions-carousel .carousel-item { border-radius: 15px; overflow: hidden; }

.impressions-carousel-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.impressions-ctrl {
  width: auto;
  color: var(--rg-text-grey);
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 0 4px;
}
.impressions-ctrl:hover { opacity: 1; color: var(--rg-text-grey); }
.impressions-ctrl .carousel-control-prev-icon,
.impressions-ctrl .carousel-control-next-icon { display: none; }

@media (max-width: 767.98px) {
  .impressions-section { padding-top: 32px; padding-bottom: 48px; }
}

/* ============================================================
   POST VIDEO HERO (reel as full background)
============================================================ */
.post-video-hero {
  background: var(--rg-dark);
  overflow: hidden;
}

.post-video-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.post-video-hero-bg {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  object-position: center;
  display: block;
}

.post-video-hero-box {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 28px 32px 36px;
  max-width: 500px;
  margin-top: -48px;
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.post-video-hero-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--rg-dark);
  margin-bottom: 8px;
}

.post-video-hero-date {
  color: var(--rg-text-grey);
  font-size: 0.875rem;
}

.post-video-hero-prose {
  color: var(--rg-text-grey);
  font-size: 1.05rem;
  line-height: 1.7;
}

.post-video-hero-prose p:last-child {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .post-video-hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
  }

  .post-video-hero-bg {
    width: 55%;
    flex-shrink: 0;
    max-height: 85vh;
    border-radius: 15px;
  }

  .post-video-hero-box {
    margin-top: 0;
    margin-left: -60px;
    margin-bottom: 0;
    max-width: 440px;
    padding: 36px 40px 44px;
  }

  .post-video-hero-title {
    font-size: 32px;
  }
}

@media (max-width: 575.98px) {
  .post-video-hero-box   { padding: 20px 24px 28px; margin-top: -36px; }
  .post-video-hero-title { font-size: 24px; }
}

/* ============================================================
   POST SINGLE PAGE
============================================================ */
.post-title {
  font-size: 40px;
  font-weight: 600;
  color: var(--rg-text-grey);
  margin-bottom: 32px;
}

@media (max-width: 767.98px) {
  .post-title { font-size: 28px; }
}

.post-header-section { padding-top: 28px; padding-bottom: 16px; }
.post-prose-section  { padding-bottom: 40px; }
.post-date           { color: var(--rg-text-grey); font-size: 0.875rem; margin-bottom: 0; }

/* Excerpt section (first paragraph before gallery) */
.post-prose-section.post-prose-excerpt                       { padding-bottom: 0; }
.post-prose-section.post-prose-excerpt .prose > *:last-child { margin-bottom: 0; }
.post-prose-section.post-prose-excerpt .prose p              { font-size: 1.2rem; line-height: 1.75; }

@media (max-width: 767.98px) {
  .post-header-section { padding-top: 16px; padding-bottom: 12px; }
  .post-prose-section  { padding-bottom: 24px; }
  .post-prose-section.post-prose-excerpt .prose p { font-size: 1.05rem; }
}

/* ============================================================
   POST CAROUSEL
============================================================ */
.post-carousel-inner             { aspect-ratio: 16 / 9; }
.post-carousel-inner .carousel-item { height: 100%; }
.post-carousel-img               { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.post-carousel-caption-ext       { color: var(--rg-text-grey); font-size: 0.875rem; font-style: italic; text-align: center; }

/* ============================================================
   POST LIGHTBOX
============================================================ */
.post-lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  border: 4px solid #fff;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.post-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 10;
}
.post-lightbox-close:hover { background: var(--rg-red); color: #fff; border-color: var(--rg-red); }

/* ── Tag badges ─────────────────────────────────────── */
.tag-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2em 0.55em;
  border-radius: 3px;
  line-height: 1;
  vertical-align: middle;
}
.tag-bmx       { background: rgba(227,  6, 19, 0.12); color: #b8000f; }
.tag-rennsport { background: rgba(  0, 77,255, 0.12); color: #003acc; }
.tag-verein    { background: rgba( 98,111,120, 0.12); color: #4a5860; }

/* ── Tag filter bar (Aktuelles page) ────────────────── */
.tag-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.tag-filter-btn {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3em 0.85em;
  border-radius: 4px;
  border: 1.5px solid;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tag-filter-btn.alle      { border-color: var(--rg-text-grey); color: var(--rg-text-grey); }
.tag-filter-btn.bmx       { border-color: #c20511;              color: #c20511; }
.tag-filter-btn.rennsport { border-color: var(--rg-blue);      color: var(--rg-blue); }
.tag-filter-btn.verein    { border-color: var(--rg-text-grey); color: var(--rg-text-grey); }
.tag-filter-btn.active { color: #fff; }
.tag-filter-btn.alle.active      { background: var(--rg-text-grey); border-color: var(--rg-text-grey); }
.tag-filter-btn.bmx.active       { background: var(--rg-red);       border-color: var(--rg-red); }
.tag-filter-btn.rennsport.active { background: var(--rg-blue);      border-color: var(--rg-blue); }
.tag-filter-btn.verein.active    { background: var(--rg-text-grey); border-color: var(--rg-text-grey); }
