/* Abweichungen vom Parent-Theme bmx-team */

/* ============ Seitenbreite: volle Fensterbreite mit Rand (wie pushbikers.com) ============ */
/* Ab Tablet-Breite kein fester Höchstwert mehr, nur ein Seitenrand von 24–50px. Handy unverändert. */
@media (min-width: 901px) {
  :root { --page-gutter: clamp(24px, 2.6vw, 50px); }
  .container,
  .header-inner,
  .hero-inner,
  .stats-inner,
  .site-header.scrolled .header-inner {
    max-width: none;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }
  /* Startseite: Hero-Text weiter eingerückt als der Seitenrand */
  .hero-inner { padding-left: clamp(24px, 8vw, 170px); }
}

/* ============ Schrift: JetBrains Mono für Überschriften und Zahlen (statt Rubik) ============ */
/* JetBrains Mono geht bis Stärke 800. */
h1, h2, h3, h4,
.stat-num, .date-badge, .schedule-day h4, .week-day, .slot-time,
.group-tag, .event-table th, .tl-year, .photo-tile-title {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ============ Startseite: Fotokacheln "Alles auf einen Blick" ============ */
.photo-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.photo-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow);
  background: var(--blue-dark);
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), box-shadow 0.35s ease;
}
.photo-tile img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(.2, .7, .2, 1);
}
/* Dunkle Verläufe unten und oben, damit Titel und Nummer auf jedem Foto lesbar bleiben */
.photo-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to bottom, rgba(10, 20, 50, 0.45) 0%, rgba(10, 20, 50, 0) 22%),
    linear-gradient(to top, rgba(10, 20, 50, 0.92) 0%, rgba(10, 20, 50, 0.55) 38%, rgba(10, 20, 50, 0) 65%);
}
/* Beim Hover schiebt sich ein roter Schrägstreifen (Trikot-Rot) von links unten ins Bild */
.photo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(65deg, rgba(214, 20, 44, 0.85) 0 45%, rgba(214, 20, 44, 0) 45.3%);
  transform: translateX(-100%);
  transition: transform 0.55s cubic-bezier(.2, .7, .2, 1);
  mix-blend-mode: multiply;
}
.photo-tile-num {
  position: absolute;
  top: 22px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.photo-tile-num::after {
  content: "";
  width: 36px;
  height: 2px;
  background: currentColor;
  transition: width 0.4s ease;
}
.photo-tile-body {
  display: block;
  padding: 28px 84px 28px 28px;
}
.photo-tile-title {
  position: relative;
  display: inline-block;
  font-size: 1.5rem;
  line-height: 1.15;
  margin-bottom: 8px;
  padding-bottom: 8px;
}
/* Roter Strich unter dem Titel, wird beim Hover breiter */
.photo-tile-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--red);
  transition: width 0.4s cubic-bezier(.2, .7, .2, 1), background 0.3s ease;
}
.photo-tile-text {
  display: block;
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0.88;
}
.photo-tile-arrow {
  position: absolute;
  right: 24px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), background 0.3s ease, color 0.3s ease;
}

.photo-tile:hover, .photo-tile:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.photo-tile:hover img, .photo-tile:focus-visible img { transform: scale(1.08); }
.photo-tile:hover::after, .photo-tile:focus-visible::after { transform: translateX(-25%); }
.photo-tile:hover .photo-tile-num::after, .photo-tile:focus-visible .photo-tile-num::after { width: 60px; }
.photo-tile:hover .photo-tile-title::after, .photo-tile:focus-visible .photo-tile-title::after { width: 100%; background: var(--white); }
.photo-tile:hover .photo-tile-arrow, .photo-tile:focus-visible .photo-tile-arrow { transform: rotate(-45deg); background: var(--white); color: var(--red); }
.photo-tile:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .photo-tile, .photo-tile img, .photo-tile::after, .photo-tile-arrow,
  .photo-tile-num::after, .photo-tile-title::after { transition: none; }
  .photo-tile:hover, .photo-tile:hover img { transform: none; }
}

/* Sehr breite Fenster: Kacheln quadratisch statt hochkant, sonst werden sie zu hoch */
@media (min-width: 1500px) {
  .photo-tile { aspect-ratio: 1 / 1; }
}
@media (max-width: 900px) {
  .photo-tiles { grid-template-columns: 1fr; gap: 16px; }
  .photo-tile { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .photo-tile { aspect-ratio: 4 / 3; }
  .photo-tile-num { top: 18px; left: 20px; }
  .photo-tile-body { padding: 20px 76px 20px 20px; }
  .photo-tile-title { font-size: 1.3rem; }
  .photo-tile-arrow { right: 20px; bottom: 20px; }
}

/* ============ Startseite: "News & Berichte" als Magazin (Aufmacher + 2 kompakte) ============ */
.news-mag {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}
.news-mag-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), box-shadow 0.35s ease;
}
.news-mag-media { position: relative; overflow: hidden; background: var(--blue-dark); }
.news-mag-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(.2, .7, .2, 1);
}
/* Ersatz ohne Beitragsbild: Trikot-Verlauf mit Vereinslogo */
.news-mag-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 55%, var(--red) 140%);
}
/* Logo auf weißem Kreis, damit es sich vom blauen Grund abhebt */
.news-mag-media .news-mag-fallback img {
  width: min(68%, 150px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 10px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.6s cubic-bezier(.2, .7, .2, 1);
}

.news-mag-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.news-mag-cat {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  text-transform: uppercase;
}
/* Roter Strich unter dem Titel als Hintergrund (kein position: relative, sonst würde die
   klickbare Fläche des Links nur den Titel statt der ganzen Karte abdecken) */
.news-mag-item h3 {
  line-height: 1.2;
  padding-bottom: 10px;
  background: linear-gradient(var(--red), var(--red)) left bottom / 32px 3px no-repeat;
  transition: background-size 0.4s cubic-bezier(.2, .7, .2, 1);
}
.news-mag-link { color: inherit; text-decoration: none; }
/* Ganze Karte klickbar */
.news-mag-link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.news-mag-arrow {
  position: absolute;
  z-index: 4;
  text-decoration: none;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), background 0.3s ease, color 0.3s ease;
}

/* Aufmacher: Foto über die ganze Fläche, Text weiß auf Verlauf */
.news-mag-item.is-featured {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 520px;
  color: var(--white);
}
.is-featured .news-mag-media { position: absolute; inset: 0; z-index: -2; }
.is-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10, 20, 50, 0.94) 0%, rgba(10, 20, 50, 0.6) 40%, rgba(10, 20, 50, 0) 70%);
}
.is-featured .news-mag-body { padding: 36px 96px 36px 36px; }
.is-featured h3 { font-size: 2rem; margin: 14px 0 12px; }
.is-featured p { font-size: 1rem; line-height: 1.55; opacity: 0.9; max-width: 560px; }
.is-featured .news-mag-arrow { right: 32px; bottom: 36px; width: 48px; height: 48px; font-size: 1.2rem; }

/* Kompakte Berichte: Bild links, Text rechts, weiße Karte */
.news-mag-item.is-small {
  display: grid;
  grid-template-columns: 42% 1fr;
  background: var(--white);
  color: var(--ink);
}
.is-small .news-mag-media { min-height: 100%; }
.is-small .news-mag-media > img { position: absolute; inset: 0; }
.is-small .news-mag-body { padding: 24px 24px 72px; display: flex; flex-direction: column; gap: 12px; }
.is-small .news-mag-meta { color: var(--gray); }
.is-small h3 { font-size: 1.15rem; }

.news-mag-item:hover, .news-mag-item:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-mag-item:hover .news-mag-media img, .news-mag-item:focus-within .news-mag-media img { transform: scale(1.06); }
.news-mag-item:hover .news-mag-fallback img, .news-mag-item:focus-within .news-mag-fallback img { transform: scale(1.1) rotate(-4deg); }
.news-mag-item:hover h3, .news-mag-item:focus-within h3 { background-size: 100% 3px; }
.is-featured:hover h3, .is-featured:focus-within h3 { background-image: linear-gradient(var(--white), var(--white)); }
.news-mag-item:hover .news-mag-arrow, .news-mag-item:focus-within .news-mag-arrow { transform: rotate(-45deg); }
.is-featured:hover .news-mag-arrow, .is-featured:focus-within .news-mag-arrow { background: var(--white); color: var(--red); }
.news-mag-link:focus-visible { outline: none; }
.news-mag-item:has(.news-mag-link:focus-visible) { outline: 3px solid var(--red); outline-offset: 3px; }

@media (max-width: 900px) {
  .news-mag { grid-template-columns: 1fr; grid-template-rows: none; gap: 16px; }
  .news-mag-item.is-featured { grid-row: auto; min-height: 440px; }
  .is-featured h3 { font-size: 1.6rem; }
}
@media (max-width: 600px) {
  .news-mag-item.is-featured { min-height: 400px; }
  .is-featured .news-mag-body { padding: 24px 76px 24px 20px; }
  .is-featured h3 { font-size: 1.35rem; }
  .is-featured p { font-size: 0.92rem; }
  .is-featured .news-mag-arrow { right: 20px; bottom: 24px; width: 44px; height: 44px; }
  .news-mag-item.is-small { grid-template-columns: 112px 1fr; }
  .is-small .news-mag-body { padding: 16px 16px 60px; gap: 8px; }
  .is-small h3 { font-size: 1rem; }
  .is-small .news-mag-arrow { right: 14px; bottom: 14px; width: 36px; height: 36px; }
}

/* ============ Startseite: Social Media & Fanshop als Link-Kacheln ============ */
.social-head { font-size: 2.4rem; margin-bottom: 28px; }
.social-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.social-tile {
  --brand: var(--blue);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), box-shadow 0.35s ease, color 0.3s ease, border-color 0.3s ease;
}
.social-tile-instagram { --brand: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-tile-facebook { --brand: #1877f2; }
.social-tile-shop { --brand: var(--red); }
/* Markenfarbe als Fläche, die beim Hover von unten hochfährt */
.social-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brand);
  transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(.2, .7, .2, 1);
}
.social-tile-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: var(--white);
  transition: background 0.3s ease, color 0.3s ease;
}
.social-tile-icon svg { width: 28px; height: 28px; }
.social-tile-arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 1.6rem;
  line-height: 1;
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1);
}
.social-tile-title {
  margin-top: auto;
  padding-top: 40px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.social-tile-text { margin-top: 8px; font-size: 0.95rem; color: var(--gray); transition: color 0.3s ease; }

.social-tile:hover, .social-tile:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
  border-color: transparent;
}
.social-tile:hover::before, .social-tile:focus-visible::before { transform: translateY(0); }
.social-tile:hover .social-tile-icon, .social-tile:focus-visible .social-tile-icon { background: rgba(255, 255, 255, 0.2); }
.social-tile:hover .social-tile-text, .social-tile:focus-visible .social-tile-text { color: rgba(255, 255, 255, 0.9); }
.social-tile:hover .social-tile-arrow, .social-tile:focus-visible .social-tile-arrow { transform: translate(4px, -4px) scale(1.15); }
.social-tile:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .social-tile, .social-tile::before, .social-tile-arrow { transition: none; }
  .social-tile:hover { transform: none; }
}
@media (max-width: 900px) {
  .social-head { font-size: 2rem; text-align: center; }
  .social-tiles { grid-template-columns: 1fr; gap: 16px; }
  .social-tile { min-height: 0; padding: 22px; display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; align-items: center; }
  .social-tile-icon { grid-row: 1 / 3; }
  .social-tile-title { padding-top: 0; font-size: 1.4rem; }
  .social-tile-text { margin-top: 2px; padding-right: 28px; }
  .social-tile-arrow { top: 50%; right: 22px; translate: 0 -50%; }
}

/* ============ Unterseiten: Foto-Kopf ============ */
.photo-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: clamp(460px, 52vh, 600px);
  padding: 72px 0 64px;
  color: var(--white);
  background: var(--ink);
}
.photo-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%; /* Querformat-Fotos: etwas unter der Mitte, meist sind dort Räder und Bahn */
}
/* Dunkler Verlauf: links und unten kräftiger, damit der Titel auf jedem Foto lesbar ist */
.photo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(8, 12, 26, 0.55) 0%, rgba(8, 12, 26, 0) 55%),
    linear-gradient(100deg, rgba(8, 12, 26, 0.8) 0%, rgba(8, 12, 26, 0.45) 40%, rgba(8, 12, 26, 0) 75%);
}
/* Ohne Foto: Trikot-Blau mit rotem Schrägstreifen */
.photo-hero.no-photo {
  background:
    linear-gradient(115deg, transparent 0 62%, rgba(214, 20, 44, 0.9) 62% 70%, transparent 70%),
    linear-gradient(120deg, var(--blue-dark) 0%, var(--blue) 100%);
}
.photo-hero.no-photo::before { background: none; }
.photo-hero-inner { width: 100%; }
.photo-hero-eyebrow {
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd1d8;
}
.photo-hero h1 {
  font-size: 3.2rem;
  line-height: 1.05;
  max-width: 900px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  background: linear-gradient(var(--red), var(--red)) left bottom / 56px 4px no-repeat;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.photo-hero.no-photo h1 { background-image: linear-gradient(var(--white), var(--white)); }
.photo-hero p {
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.55;
  opacity: 0.92;
}

/* ============ Unterseiten: Text + Infokarten ============ */
/* Gilt für alle Seiten: mit Infokarten (.page-layout, Verein: .content-grid) und ohne (.page-flow).
   Text füllt seine Spalte ganz aus (neben der Infobox bzw. volle Breite). */
.page-layout,
.page .section .content-grid {
  grid-template-columns: minmax(0, 1fr) clamp(320px, 22vw, 440px);
  gap: clamp(40px, 4vw, 88px);
  align-items: start;
}
:is(.page-layout, .page .section .content-grid) .content-block,
.page-flow > .content-block,
.page-flow > .content-block.legal {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  max-width: none;
  margin: 0 0 40px;
}
:is(:is(.page-layout, .page .section .content-grid) .content-block, .page-flow > .content-block) :is(p, li) {
  color: #3a4256;
  font-size: 1.05rem;
  line-height: 1.75;
}
:is(:is(.page-layout, .page .section .content-grid) .content-block, .page-flow > .content-block) p { margin-bottom: 18px; }
:is(:is(.page-layout, .page .section .content-grid) .content-block, .page-flow > .content-block) h2 {
  font-size: 2rem;
  color: var(--ink);
  margin: 0 0 20px;
}
:is(:is(.page-layout, .page .section .content-grid) .content-block, .page-flow > .content-block) h2:not(:first-child) { margin-top: 48px; }
:is(:is(.page-layout, .page .section .content-grid) .content-block, .page-flow > .content-block) h3 {
  font-size: 1.35rem;
  color: var(--ink);
  margin: 44px 0 14px;
  padding-left: 18px;
  border-left: 4px solid var(--red);
  line-height: 1.25;
}
:is(:is(.page-layout, .page .section .content-grid) .content-block, .page-flow > .content-block) ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
:is(:is(.page-layout, .page .section .content-grid) .content-block, .page-flow > .content-block) ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
}
:is(:is(.page-layout, .page .section .content-grid) .content-block, .page-flow > .content-block) ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 10px;
  height: 3px;
  border-radius: 2px;
  background: var(--red);
}
:is(:is(.page-layout, .page .section .content-grid) .content-block, .page-flow > .content-block) strong { color: var(--ink); }
:is(:is(.page-layout, .page .section .content-grid) .content-block, .page-flow > .content-block) a:not(.btn) {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

/* Infokarten rechts */
:is(.page-layout, .page .section .content-grid) .info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}
:is(.page-layout, .page .section .content-grid) .info-card h4 {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}
:is(.page-layout, .page .section .content-grid) .info-row span:last-child {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
  color: var(--ink);
}
:is(.page-layout, .page .section .content-grid) .info-text { font-size: 0.95rem; line-height: 1.6; }

/* Breite Bildschirme: Text etwas größer, damit die langen Zeilen gut lesbar bleiben */
@media (min-width: 1600px) {
  :is(:is(.page-layout, .page .section .content-grid) .content-block, .page-flow > .content-block, .article-content) :is(p, li) { font-size: 1.15rem; line-height: 1.8; }
  .article-content > p:first-child { font-size: 1.35rem; }
}

/* Trainingszeiten: volle Breite, Wochentage zweispaltig */
.training-page { max-width: none; }
.training-page .week { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

@media (max-width: 1100px) {
  .page-layout, .page .section .content-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
  .training-page .week { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 900px) {
  .photo-hero { min-height: 380px; padding: 56px 0 44px; }
  .photo-hero h1 { font-size: 2.4rem; }
  .page-layout, .page .section .content-grid { grid-template-columns: 1fr; gap: 32px; }
  :is(.page-layout, .page .section .content-grid) .content-block, .page-flow > .content-block { max-width: none; }
}
@media (max-width: 600px) {
  .photo-hero { min-height: 320px; padding: 48px 0 36px; }
  .photo-hero h1 { font-size: 1.9rem; padding-bottom: 14px; margin-bottom: 14px; }
  .photo-hero p { font-size: 1rem; }
  :is(:is(.page-layout, .page .section .content-grid) .content-block, .page-flow > .content-block) h2 { font-size: 1.6rem; }
  :is(:is(.page-layout, .page .section .content-grid) .content-block, .page-flow > .content-block) h3 { font-size: 1.2rem; margin-top: 36px; }
  :is(:is(.page-layout, .page .section .content-grid) .content-block, .page-flow > .content-block) :is(p, li) { font-size: 1rem; }
}

/* ============ Berichte (single.php) ============ */
.post-photo-hero h1 { max-width: 960px; } /* Höhe und Schriftgröße wie bei den Unterseiten */
.post-photo-cat {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.post-photo-cat:hover { background: var(--red-dark); }
.post-photo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.9;
}
.article-section { padding-top: 56px; }
/* Bericht im selben Raster wie die Unterseiten (BMX Racing): Text links, Infokasten rechts */
.article-section .page-layout .article-content { max-width: none; margin: 0; }
.article-section .page-layout.no-aside { grid-template-columns: minmax(0, 1fr); }
:is(.article-aside, .article-float) .fact-box { float: none; width: auto; margin: 0; }
.article-content > p:first-child { font-size: 1.25rem; line-height: 1.6; }
/* Zwischenüberschriften wie auf den Unterseiten: Mono, roter Balken links */
.article-content h2,
.article-content h3,
.article-content h4 {
  display: block;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 44px 0 14px;
  padding-left: 18px;
  border-left: 4px solid var(--red);
}
.article-content h2::before,
.article-content h3::before,
.article-content h4::before { display: none; }
/* Zahlen-Box: weiß mit roter Oberkante wie die Infokarten */
:is(.article-aside, .article-float) .fact-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
:is(.article-aside, .article-float) .fact-box h4 {
  border: 0;
  padding: 0;
  margin: 0 0 10px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
:is(.article-aside, .article-float) .fact-box .info-row span:last-child {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--ink);
}

/* Bildergalerie im Bericht: unter dem Text über die ganze Seitenbreite (single.php),
   2–3 Fotos nebeneinander, Bildunterschrift darunter */
.article-gallery { margin: 8px 0 48px; }
.article-gallery .wp-block-gallery { margin: 0 !important; }

.article-gallery .wp-block-gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); /* 2 oder 3 Fotos nebeneinander */
  grid-auto-flow: column;
  gap: 20px;
  margin: 40px 0 44px;
  clear: both;
}
.article-gallery .wp-block-gallery > .wp-block-image {
  width: auto !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
}
.article-gallery .wp-block-gallery img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0;
  border-radius: var(--radius);
}
/* Bildunterschrift unter dem Foto statt über dem Bild (WordPress legt sie sonst darüber) */
.article-gallery .wp-block-gallery figcaption {
  position: static !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  background: none !important;
  text-shadow: none !important;
  color: var(--gray) !important;
  font-size: 0.85rem !important;
  line-height: 1.45;
  text-align: left !important;
  max-height: none !important;
  overflow: visible !important;
}
.article-gallery .wp-block-gallery figcaption .img-credit { display: block; margin: 2px 0 0; }

@media (max-width: 600px) {
  .article-gallery .wp-block-gallery { gap: 12px; margin: 28px 0 32px; grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .article-gallery .wp-block-gallery.columns-3 > .wp-block-image:nth-child(3) { grid-column: 1 / -1; }
  .article-gallery .wp-block-gallery.columns-3 > .wp-block-image:nth-child(3) img { aspect-ratio: 16 / 9; }
  .article-gallery .wp-block-gallery figcaption { font-size: 0.78rem !important; }
}

/* Weitere Berichte */
.more-posts-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.more-posts-head h2 { font-size: 2.2rem; margin: 0; }
.more-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.more-posts .news-mag-item.is-small { grid-template-columns: 1fr; grid-template-rows: 180px auto; }
.more-posts .is-small .news-mag-body { padding: 22px 22px 72px; }

@media (max-width: 900px) {
  .more-posts { grid-template-columns: 1fr; gap: 16px; }
  .more-posts .news-mag-item.is-small { grid-template-columns: 112px 1fr; grid-template-rows: none; }
  .more-posts .is-small .news-mag-body { padding: 16px 16px 60px; }
  .more-posts-head h2 { font-size: 1.8rem; }
}
@media (max-width: 600px) {
  .article-content > p:first-child { font-size: 1.1rem; }
  .article-content h2, .article-content h3, .article-content h4 { font-size: 1.2rem; margin-top: 36px; }
}

/* ============ Einblenden beim Scrollen ============ */
/* Kinder von [data-reveal] gleiten nacheinander ins Bild (--i = Reihenfolge). Nur mit JavaScript, sonst sofort sichtbar. */
.js [data-reveal] > * {
  opacity: 0;
  translate: 0 40px;
  transition: opacity 0.7s ease calc(var(--i, 0) * 0.12s), translate 0.7s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 0.12s),
              transform 0.35s cubic-bezier(.2, .7, .2, 1), box-shadow 0.35s ease;
}
.js [data-reveal].is-visible > * { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] > * { opacity: 1; translate: none; transition: none; }
  .news-mag-item, .news-mag-media img, .news-mag-arrow, .news-mag-item h3 { transition: none; }
  .news-mag-item:hover, .news-mag-item:hover .news-mag-media img { transform: none; }
}

/* ============ Startseite: "News & Berichte" mit senkrechter Überschrift ============ */
.news-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  row-gap: 40px;
}
/* Senkrecht, von unten nach oben zu lesen; die rote Linie füllt den Rest nach oben */
.news-side {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  gap: 14px;
  grid-row: 1; /* nur neben den Berichten, nicht neben der Fußzeile */
}
.news-side h2 {
  font-size: 3rem;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}
.news-side-line {
  flex: 1;
  width: 3px;
  min-height: 40px;
  border-radius: 2px;
  background: linear-gradient(to top, rgba(214, 20, 44, 0), var(--red));
}
.news-main { display: contents; }
.news-mag, .news-foot, .news-main > p { grid-column: 2; min-width: 0; }
.news-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px 24px;
  margin-top: -8px; /* zusammen mit dem Grid-Abstand 32px */
}

@media (max-width: 1100px) {
  .news-side h2 { font-size: 2.4rem; }
  .news-layout { gap: 28px; }
}
@media (max-width: 900px) {
  .news-layout { grid-template-columns: 1fr; gap: 0; }
  .news-mag, .news-foot, .news-main > p { grid-column: 1; }
  .news-foot { margin-top: 32px; }
  .news-side {
    writing-mode: horizontal-tb;
    transform: none;
    height: auto;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    margin-bottom: 32px;
  }
  .news-side h2 { font-size: 2rem; white-space: normal; }
  .news-side-line { display: none; }
  .news-foot { justify-content: center; }
}

:is(.article-aside, .article-float) .fact-box .info-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
:is(.article-aside, .article-float) .fact-box .info-row span:first-child { color: var(--gray); }
:is(.article-aside, .article-float) .fact-box .fact-note { margin: 12px 0 0; font-size: 0.85rem; line-height: 1.5; color: var(--gray); }

/* ============ Fotos im Text (Unterseiten und Berichte) einheitlich ============ */
/* Wie das Bildpaar im Bericht: Textspalten-breit, abgerundet, Bildunterschrift grau darunter, links */
:is(.page-layout, .page .section .content-grid, .page-flow) .content-figure,
.article-content .content-figure,
.article-content .wp-block-image {
  margin: 32px 0 36px;
}
:is(.page-layout, .page .section .content-grid, .page-flow) .content-figure img,
.article-content .content-figure img,
.article-content .wp-block-image img {
  width: 100%;
  max-width: 100%;
  max-height: none;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0;
  border-radius: var(--radius);
}
:is(.page-layout, .page .section .content-grid, .page-flow) .content-figure figcaption,
.article-content .content-figure figcaption,
.article-content .wp-block-image figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--gray);
  text-align: left;
}
:is(.page-layout, .page .section .content-grid, .page-flow, .article-content) .content-figure figcaption .img-credit { display: block; margin: 2px 0 0; }
/* Kleines Foto rechts im Text (z. B. Erich): Originalformat behalten */
:is(.page-layout, .page .section .content-grid, .page-flow, .article-content) .content-figure.figure-small { width: 300px; margin: 6px 0 20px 32px; }
:is(.page-layout, .page .section .content-grid, .page-flow, .article-content) .content-figure.figure-small img { aspect-ratio: auto; }
@media (max-width: 600px) {
  :is(.page-layout, .page .section .content-grid, .page-flow, .article-content) .content-figure.figure-small { width: 100%; margin: 24px 0; }
}

/* Mitglied-werden-Box im Text: eigene Farben behalten (sonst greift der dunkle Textstil) */
.content-block .member-cta { margin-top: 48px; }
.content-block .member-cta :is(h2, p, strong, li) { color: var(--white) !important; } /* stärker als der allgemeine Textstil */
.content-block .member-cta h2 { font-size: 1.9rem; margin: 2px 0 12px; }
.content-block .member-cta a:not(.btn) { color: var(--white) !important; text-decoration-color: rgba(255, 255, 255, 0.6) !important; }

/* Infokarten: Bezeichnung und Wert nicht aneinanderkleben, langer Wert bricht rechtsbündig um */
:is(.page-layout, .page .section .content-grid) .info-row { gap: 16px; }
:is(.page-layout, .page .section .content-grid) .info-row span:first-child { flex-shrink: 0; }
:is(.page-layout, .page .section .content-grid) .info-row span:last-child { text-align: right; }


/* ============ Startseite: Hero-Foto bleibt beim Scrollen stehen ============ */
/* Das Foto ist am Fenster fixiert, der Hero-Bereich schneidet es nur aus (clip-path).
   Scrollt man, wandert der Bereich samt Text nach oben und der rote Balken und der
   restliche Inhalt schieben sich von unten über das stehende Foto.
   (Funktioniert auch auf iOS, anders als background-attachment: fixed.) */
.hero-screen .hero { clip-path: inset(0); }
.hero-screen .hero-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
}
@media (prefers-reduced-motion: reduce) {
  .hero-screen .hero-bg { position: absolute; height: 100%; }
}
/* Text bleibt ebenfalls stehen und wird wie das Foto vom Inhalt überdeckt (Haltepunkt setzt neu.js) */
.hero-screen .hero.text-fixed .hero-inner {
  position: fixed;
  top: var(--hero-text-top, 0);
  left: 0;
  right: 0;
  margin: 0 auto;
}

/* Trainingslager-Berichte: Logo und Infokasten rechts im Text, Text fließt darum herum */
.article-content .article-float {
  float: right;
  width: max-content;                   /* so breit wie die längste Zeile der Faktenbox … */
  min-width: clamp(260px, 24vw, 420px); /* … mindestens wie bisher */
  max-width: min(520px, 50%);           /* … höchstens halbe Textbreite */
  margin: 4px 0 24px 40px;
}
.article-content .article-float .fact-table td { white-space: nowrap; } /* Bezeichnung und Wert je in einer Zeile */
.article-content .article-float .fact-note { width: 0; min-width: 100%; } /* Hinweis bricht um, bestimmt die Breite nicht mit */
.article-content .article-float .fact-box p.fact-note.fact-note { font-size: 0.85rem; line-height: 1.5; color: var(--gray); margin: 12px 0 0; } /* stärker als der Fließtext der Seite */
.article-content .article-logo { margin: 0; padding: 16px; }
.article-content .article-logo img { display: block; width: 100%; height: auto; margin: 0; border-radius: 8px; }
.article-content .article-logo .img-credit { margin-top: 8px; }
.article-content .article-float .fact-box { float: none; width: auto; margin: 0; }
.article-content .article-float > :not(:first-child) { margin-top: 20px; }
.article-content .article-float > .fact-box:not(:first-child) { margin-top: 20px; } /* stärker als die fact-box-Regel */
.article-content::after { content: ""; display: table; clear: both; }
.article-content .article-float + * { margin-top: 0; } /* erste Überschrift bündig mit dem Logo */
@media (max-width: 600px) {
  .article-content .article-float { float: none; width: auto; min-width: 0; max-width: none; margin: 0 0 28px; }
  .article-content .article-float .fact-table td:last-child { white-space: normal; }
  .article-content .article-logo { max-width: 280px; margin: 0 auto; }
}

/* Infokasten als Tabelle (Gruppen-Block aus der Vorlage): wie die Zeilen der Infokarten */
.fact-box .fact-table { margin: 0; }
.fact-box .fact-table table { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 0.92rem; }
.fact-box .fact-table td { padding: 10px 0; border: 0; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.4; }
.fact-box .fact-table tr:last-child td { border-bottom: 0; }
.fact-box .fact-table td:first-child { color: var(--gray); padding-right: 16px; white-space: nowrap; }
.fact-box .fact-table td:last-child { text-align: right; font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; color: var(--ink); }
.fact-box.wp-block-group { padding: 22px 24px; }
.fact-box .fact-note { margin: 12px 0 0; font-size: 0.85rem; line-height: 1.5; color: var(--gray); }
.article-content .fact-box p.fact-note { font-size: 0.85rem; line-height: 1.5; color: var(--gray); margin: 12px 0 0; } /* stärker als der Textstil */

/* ============ Schritt-für-Schritt-Anleitung (<ol class="steps">, z. B. Online-Anmeldung) ============ */
/* Große rote Nummern auf einer durchgehenden Linie, jeder Schritt als Karte */
.post-content ol.steps {
  list-style: none;
  margin: 28px 0 36px;
  padding: 0;
  counter-reset: none;
}
.post-content ol.steps .step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 0 0 24px;
}
.post-content ol.steps .step::before { display: none; } /* Aufzählungsstrich des Textstils aus */
/* Verbindungslinie zwischen den Nummern */
.post-content ol.steps .step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--red), rgba(214, 20, 44, 0.15));
}
.post-content ol.steps .step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(214, 20, 44, 0.3);
}
.post-content ol.steps .step-body {
  padding: 18px 24px 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.post-content ol.steps .step-body h5 {
  display: block;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}
.post-content ol.steps .step-body h5::before { display: none; }
.post-content ol.steps .step-body p { margin-bottom: 14px; }
@media (max-width: 600px) {
  .post-content ol.steps .step { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .post-content ol.steps .step-num { width: 40px; height: 40px; font-size: 1.15rem; }
  .post-content ol.steps .step:not(:last-child)::after { left: 19px; top: 40px; }
  .post-content ol.steps .step-body { padding: 14px 16px 4px; }
  .post-content ol.steps .step-body h5 { font-size: 1.1rem; }
}

/* ============ Rennkalender (page-rennkalender.php) ============ */
.rk { --rk-color: var(--gray); }
.rk-bayernliga    { --rk-color: #1B3F8B; }
.rk-bundesliga    { --rk-color: #D6142C; }
.rk-euro          { --rk-color: #7B3FB5; }
.rk-nations_club  { --rk-color: #C98A12; }
.rk-championships { --rk-color: #1a1a1a; }

.rk-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.rk-chip[data-filter="all"] { --rk-color: var(--ink); }
.rk-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 2px solid var(--rk-color);
  border-radius: 999px;
  background: var(--white);
  color: var(--rk-color);
  font: 700 0.92rem/1 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.rk-chip span {
  min-width: 22px;
  padding: 3px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--rk-color) 12%, transparent);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
}
.rk-chip:hover, .rk-chip.is-active { background: var(--rk-color); color: var(--white); }
.rk-chip.is-active span, .rk-chip:hover span { background: rgba(255, 255, 255, 0.22); }
.rk-chip:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.rk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rk-row {
  display: grid;
  grid-template-columns: 170px 200px minmax(0, 1fr) minmax(0, 0.7fr);
  align-items: center;
  gap: 20px;
  padding: 16px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 6px solid var(--rk-color);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.rk-row[hidden] { display: none; }
.rk-date { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; color: var(--ink); white-space: nowrap; }
.rk-name { font-weight: 700; color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rk-ort { color: var(--gray); }
.rk-serie {
  justify-self: start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--rk-color);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.rk-badge {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
}
.rk-badge-next { background: var(--red); color: var(--white); }
.rk-badge-home { background: #fff1c2; color: #7a5600; }
.rk-row.is-home { background: linear-gradient(90deg, #fffaf0, var(--white) 60%); }
.rk-row.is-next { box-shadow: 0 0 0 2px var(--red), var(--shadow-lg); }
.rk-row.is-past { opacity: 0.5; box-shadow: none; }
.rk-row.is-past .rk-date { text-decoration: line-through; text-decoration-thickness: 2px; }
.rk-note { margin-top: 20px; color: var(--gray); font-size: 0.9rem; }

@media (max-width: 900px) {
  .rk-row { grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 14px 16px; }
  .rk-serie { grid-column: 1; grid-row: 1; }
  .rk-date { grid-column: 2; grid-row: 1; }
  .rk-name { grid-column: 1 / -1; }
  .rk-ort { grid-column: 1 / -1; font-size: 0.92rem; }
}
.rk-season-over { margin: -8px 0 20px; padding: 12px 16px; border-radius: 10px; background: var(--off-white); color: var(--gray); font-weight: 600; }

/* ============ Verein / Das BMX Team (page-verein.php), Magazin-Stil ============ */
.club-quote { margin: 8px 0 48px; padding: 0; border: 0; text-align: center; }
.club-quote p {
  margin: 0 auto;
  max-width: 1100px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: clamp(1.8rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.club-quote p::before { content: "„"; color: var(--red); }
.club-quote p::after { content: "“"; color: var(--red); }
.club-intro { margin-bottom: 56px; }
.club-intro.has-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
.club-intro-text p { font-size: clamp(1.1rem, 1.4vw, 1.35rem); line-height: 1.7; color: #3a4256; margin-bottom: 18px; }
.club-intro-text p:first-child::first-letter {
  float: left;
  margin: 6px 12px 0 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 4.2em;
  font-weight: 800;
  line-height: 0.8;
  color: var(--red);
}
.club-intro-photo { margin: 0; }
.club-intro-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); } /* ganzes Foto, nicht beschnitten */
.club-intro-photo .img-credit { margin-top: 8px; }
.club-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0 0 64px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.club-numbers > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; align-items: center; text-align: center; padding: 0 12px; } /* Zahlen oben bündig, auch bei zweizeiliger Beschriftung */
.club-numbers > div + div { border-left: 1px solid var(--border); }
.club-numbers dd { margin: 0; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 800; line-height: 1; color: var(--ink); }
.club-numbers dt { margin-top: 10px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.club-head { font-size: 1.8rem; margin: 0 0 14px; }
.club-list { list-style: none; margin: 0 0 56px; padding: 0; }
.club-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.club-list-name { font-weight: 800; font-size: 1.1rem; color: var(--ink); white-space: nowrap; }
.club-list-dots { flex: 1; min-width: 24px; border-bottom: 2px dotted #c9ccd3; transform: translateY(-4px); }
.club-list-role { color: var(--gray); white-space: nowrap; }
.club-list-contact { display: flex; gap: 8px; min-width: 76px; justify-content: flex-end; }
.club-list-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--blue);
  transition: background 0.2s ease, color 0.2s ease;
}
.club-list-contact a:hover { background: var(--red); color: var(--white); }
.club-list-contact svg { width: 16px; height: 16px; }
/* Telefon und E-Mail sichtbar als zweite Zeile unter Name/Funktion */
.club-list li { flex-wrap: wrap; }
.club-list-contact { flex: 1 1 100%; justify-content: flex-start; flex-wrap: wrap; gap: 6px 18px; min-width: 0; margin-top: 2px; }
.club-list-contact:empty { display: none; }
.club-list-contact a {
  width: auto;
  height: auto;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--blue);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.club-list-contact a svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: var(--off-white);
  transition: background 0.2s ease, color 0.2s ease;
}
.club-list-contact a:hover { background: none; color: var(--red); }
.club-list-contact a:hover svg { background: var(--red); color: var(--white); }
@media (max-width: 900px) {
  .club-intro.has-photo { grid-template-columns: 1fr; }
  .club-numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .club-numbers dt { font-size: 0.75rem; letter-spacing: 0.04em; overflow-wrap: anywhere; hyphens: auto; }
  .club-numbers > div:nth-child(3n + 1) { border-left: 0; }
}
@media (max-width: 600px) {
  .club-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .club-numbers > div:nth-child(3n + 1) { border-left: 1px solid var(--border); }
  .club-numbers > div:nth-child(2n + 1) { border-left: 0; }
  .club-list li { flex-wrap: wrap; gap: 2px 10px; }
  .club-list-dots { display: none; }
  .club-list-name { flex: 1 1 100%; white-space: normal; }
  .club-list-role { flex: 1; white-space: normal; }
}
.club-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.club-link {
  display: block;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--blue), var(--blue-dark));
  color: var(--white);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 1.3rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.club-link span { display: block; margin-bottom: 6px; font-family: 'Inter', system-ui, sans-serif; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #ffd1d8; }
.club-link b { display: inline-block; margin-left: 6px; transition: transform 0.3s ease; }
.club-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.club-link:hover b { transform: translateX(6px); }
.club-link + .club-link { background: linear-gradient(120deg, var(--red), var(--red-dark)); }
@media (max-width: 700px) {
  .club-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .club-stat { padding: 16px; }
  .club-stat dd { font-size: 1.8rem; }
  .club-links { grid-template-columns: 1fr; }
  .club-head { font-size: 1.5rem; }
}

/* Abteilungsleitung und Trainer nebeneinander */
.club-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px clamp(32px, 4vw, 72px); margin-bottom: 56px; }
.club-people .club-list { margin-bottom: 0; }

/* Seitenkopf ohne Beitragsbild (blauer Verlauf): niedriger, es gibt kein Foto zu zeigen */
.photo-hero.no-photo { min-height: 300px; padding: 56px 0 48px; }
@media (max-width: 900px) { .photo-hero.no-photo { min-height: 260px; padding: 48px 0 40px; } }
@media (max-width: 600px) { .photo-hero.no-photo { min-height: 220px; padding: 40px 0 32px; } }

/* Kacheln "Alles auf einen Blick": Raster je nach Anzahl (im Backend 1–6 Kacheln) */
@media (min-width: 901px) {
  .photo-tiles.count-1 { grid-template-columns: minmax(0, 1fr); }
  .photo-tiles.count-1 .photo-tile { aspect-ratio: 21 / 9; }
  .photo-tiles.count-2, .photo-tiles.count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-tiles.count-2 .photo-tile, .photo-tiles.count-4 .photo-tile { aspect-ratio: 16 / 10; }
}
@media (min-width: 1500px) {
  .photo-tiles.count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .photo-tiles.count-4 .photo-tile { aspect-ratio: 4 / 5; }
}

/* Foto rechts neben einem Absatz im Bericht (Bildblock, Ausrichtung „Rechts“) */
.article-content .wp-block-image:has(> .alignright) { margin: 0; }
.article-content .wp-block-image > .alignright { float: right; width: 32%; margin: 6px 0 20px 32px; }
@media (max-width: 700px) {
  .article-content .wp-block-image > .alignright { float: none; width: 100%; margin: 24px 0; }
}

/* ============ Nach-oben-Button ============ */
/* Über Inhalt und Header (Ebene 100) */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(214, 20, 44, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25); /* wie „Mitglied werden“, auch auf dunklem Footer sichtbar */
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
/* Burger-Menü liegt im Header (Ebene 100) – Button ausblenden, solange es offen ist */
body:has(.mobile-nav.open) .to-top { opacity: 0; visibility: hidden; }
.to-top.is-visible:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(214, 20, 44, 0.55), 0 4px 10px rgba(0, 0, 0, 0.25); }
.to-top:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (max-width: 600px) {
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .to-top, .to-top.is-visible:hover { transition: none; transform: none; }
}

/* ============ Sprachumschalter im Header (TranslatePress) ============ */
/* Runde Flagge der aktuellen Sprache, Klick klappt die anderen Sprachen darunter auf */
.lang-switch { position: relative; flex: none; }
.lang-switch summary {
  list-style: none;
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 0 2px var(--white), 0 2px 8px rgba(10, 20, 60, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lang-switch summary:hover,
.lang-switch[open] summary { transform: scale(1.08); box-shadow: 0 0 0 2px var(--white), 0 4px 12px rgba(10, 20, 60, 0.3); }
.lang-switch summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.lang-switch-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: -8px;
  z-index: 120;
  min-width: 150px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
.lang-switch-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.lang-switch-menu a:hover, .lang-switch-menu a:focus-visible { background: var(--light, #f3f5fa); color: var(--blue); }
.lang-switch-menu img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; }
.site-header.scrolled .lang-switch summary { width: 26px; height: 26px; }
@media (max-width: 600px) {
  .lang-switch summary { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .lang-switch summary { transition: none; }
}

/* ============ Hauptmenü im Header (Desktop) ============ */
/* Ab 1101px steht das Menü direkt im Header, Hamburger/Seitenpanel entfallen. Darunter bleibt alles
   wie gehabt (Handy, Tablet hochkant). Markup: bmx_team_header_nav in functions.php. */
.main-nav { display: none; }

@media (min-width: 1101px) {
  .burger, .mobile-nav, .nav-overlay { display: none; }
  .header-cta { padding-right: 0; }
  .header-cta .btn-outline { display: none; }   /* "Verein" steht im Menü */

  .main-nav { display: block; margin-left: auto; margin-right: clamp(16px, 2vw, 32px); }
  .main-nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .main-nav-menu li { list-style: none; position: relative; }
  .main-nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px clamp(8px, 0.75vw, 14px);
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease, font-size 0.3s ease;
  }
  /* roter Strich unter dem Menüpunkt bei Hover / aktiver Seite */
  .main-nav-menu > li > a::after {
    content: "";
    position: absolute;
    left: clamp(8px, 0.75vw, 14px);
    right: clamp(8px, 0.75vw, 14px);
    bottom: 3px;
    height: 3px;
    border-radius: 3px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform 0.2s ease;
  }
  .main-nav-menu > .menu-item-has-children > a::after { right: calc(clamp(8px, 0.75vw, 14px) + 15px); }
  .main-nav-menu > li > a:hover,
  .main-nav-menu > li.is-open > a,
  .main-nav-menu > li:focus-within:not(.is-dismissed) > a,
  .main-nav-menu > .current-menu-item > a,
  .main-nav-menu > .current-menu-ancestor > a,
  .main-nav-menu > .current-menu-parent > a { color: var(--red); }
  .main-nav-menu > li > a:hover::after,
  .main-nav-menu > .current-menu-item > a::after,
  .main-nav-menu > .current-menu-ancestor > a::after,
  .main-nav-menu > .current-menu-parent > a::after { transform: scaleX(1); }
  .main-nav-menu > li > a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }

  /* Pfeil bei Punkten mit Unterpunkten */
  .main-nav-menu > .menu-item-has-children > a::before {
    content: "";
    order: 2;
    flex: none;
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease, margin 0.2s ease;
    -webkit-mask-image: none;   /* Icon-Masken des Handy-Menüs (.icon-* > a::before) hier nicht */
    mask-image: none;
  }
  .main-nav-menu > .menu-item-has-children:hover > a::before,
  .main-nav-menu > .menu-item-has-children.is-open > a::before,
  .main-nav-menu > .menu-item-has-children:focus-within:not(.is-dismissed) > a::before { transform: rotate(-135deg); margin-top: 4px; }

  /* Dropdown */
  .main-nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 120;
    min-width: 230px;
    max-width: 320px;
    width: max-content;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: var(--white);
    border-top: 3px solid var(--red);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  /* unsichtbare Brücke, damit das Dropdown beim Runterfahren mit der Maus offen bleibt */
  .main-nav-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  .main-nav-menu > li:hover > .sub-menu,
  .main-nav-menu > li.is-open > .sub-menu,
  .main-nav-menu > li:focus-within:not(.is-dismissed) > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .main-nav-menu > li.is-dismissed:not(.is-open) > .sub-menu { opacity: 0; visibility: hidden; }
  .main-nav-menu .sub-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
    text-decoration: none;
  }
  .main-nav-menu .sub-menu a:hover,
  .main-nav-menu .sub-menu a:focus-visible { background: var(--light, #f3f5fa); color: var(--red); outline: none; }
  .main-nav-menu .sub-menu .current-menu-item > a { color: var(--red); }
  .main-nav-menu .sub-menu a[target="_blank"]::after { content: " \2197"; color: var(--gray); }
  /* letzter Punkt (Kontakt) / rechte Punkte: Dropdown rechtsbündig, damit es nicht aus dem Bild ragt */
  .main-nav-menu > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }

  /* geschrumpfter Header beim Scrollen */
  .site-header.scrolled .main-nav-menu > li > a { font-size: 0.92rem; padding-top: 6px; padding-bottom: 6px; }
}

/* Platz im Header: Logo neben dem Menü kleiner als bisher (volle Größe erst ab 1700px). Zwischen
   1101 und 1419px wird der Schriftzug zweizeilig und kleiner, unter 1300px ohne Claim. */
@media (min-width: 1101px) {
  .logo { flex-shrink: 0; font-size: 1.55rem; }
  .logo-text .claim { font-size: 1.1rem; }
  .logo-badge-img { height: 140px; margin: -36px 0; }
  .header-cta .btn { white-space: nowrap; }
}
@media (min-width: 1700px) {
  .logo { font-size: 1.9rem; }
  .logo-text .claim { font-size: 1.3rem; }
  .logo-badge-img { height: 170px; margin: -42px 0; }
}
@media (min-width: 1101px) and (max-width: 1419px) {
  /* Schriftzug zweizeilig ("BMX Team / Kolbermoor") und mit der Fensterbreite kleiner */
  .logo { white-space: normal; line-height: 1.05; gap: 10px; font-size: clamp(1rem, 1.7vw - 0.3rem, 1.45rem); }
  .logo-text { max-width: 6.2em; }
  .logo-text .claim { font-size: 0.72em; margin-top: 2px; }
  .logo-badge-img { height: clamp(100px, 18vw - 100px, 140px); margin: -26px 0; }
  .main-nav { margin-right: 14px; }
  .main-nav-menu > li > a { font-size: clamp(0.94rem, 0.4vw + 0.55rem, 1rem); }
}
@media (min-width: 1101px) and (max-width: 1299px) {
  .logo-text .claim { display: none; }
}
@media (min-width: 1101px) and (prefers-reduced-motion: reduce) {
  .main-nav-menu .sub-menu, .main-nav-menu > li > a::after, .main-nav-menu > .menu-item-has-children > a::before { transition: none; }
}

/* ============ Bilder: Laden und Einblenden ============ */
/* Nur mit JavaScript (Klasse img-fx, Lade-Listener im <head>, functions.php): Bilder sind bis zum
   fertigen Laden unsichtbar und blenden dann weich ein. Ohne JavaScript bleibt alles wie gehabt. */

/* Große Fotos oben (Startseite, Seiten- und Beitragsköpfe): unscharf und leicht vergrößert -> scharf */
.img-fx :is(.hero-bg, .photo-hero-bg) {
  opacity: 0;
  transform: scale(1.06);
  filter: blur(14px);
  transition: opacity 0.9s ease-out, transform 1.2s cubic-bezier(.2, .7, .2, 1), filter 0.9s ease-out;
}
.img-fx :is(.hero-bg, .photo-hero-bg).is-loaded { opacity: 1; transform: none; filter: none; }

/* Solange das Foto lädt: "Startgatter" – schräger Lichtschimmer über die dunkle Fläche und unten
   ein rot-blauer Balken, der hin und her läuft. Das fertige Foto liegt darüber und verdeckt beides. */
.img-fx :is(.hero, .photo-hero):has(> :is(.hero-bg, .photo-hero-bg):not(.is-loaded)) {
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, var(--red), var(--blue)),
    linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.09) 50%, transparent 65%),
    linear-gradient(160deg, #1a2240 0%, var(--ink) 70%);
  background-size: 30% 5px, 250% 100%, 100% 100%;
  background-position: 0 100%, 100% 0, 0 0;
  background-repeat: no-repeat;
  animation: img-gate-bar 1.4s ease-in-out infinite alternate, img-gate-shimmer 1.8s linear infinite;
}
@keyframes img-gate-bar {
  from { background-position: 0% 100%, var(--shimmer-x, 100%) 0, 0 0; }
  to   { background-position: 100% 100%, var(--shimmer-x, 100%) 0, 0 0; }
}
/* Zwei Animationen auf background-position würden sich überschreiben: Schimmer über eine
   animierte Variable */
@property --shimmer-x { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
@keyframes img-gate-shimmer {
  from { --shimmer-x: 100%; }
  to   { --shimmer-x: 0%; }
}

/* Kleinere Bilder (News-Kacheln, Fotokacheln, Fotos im Text, Galerien): weich einblenden */
.img-fx :is(img[loading="lazy"], .news-thumb img) {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(.2, .7, .2, 1);
}
.img-fx :is(img[loading="lazy"], .news-thumb img).is-loaded { opacity: 1; }
/* ... und bis dahin ein heller Schimmer als Platzhalter */
.img-fx :is(.photo-tile, .news-mag-media, .article-content figure, .club-intro-photo):has(img[loading="lazy"]:not(.is-loaded)),
.img-fx .news-thumb:has(> img:not(.is-loaded)) {
  background-image: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
  background-size: 250% 100%;
  background-repeat: no-repeat;
  animation: img-skeleton 1.5s linear infinite;
}
.img-fx :is(.article-content figure, .club-intro-photo):has(img[loading="lazy"]:not(.is-loaded)) {
  background-color: #e4e7ee;
  border-radius: 10px;
}
@keyframes img-skeleton {
  from { background-position: 100% 0; }
  to   { background-position: 0% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .img-fx :is(.hero-bg, .photo-hero-bg),
  .img-fx :is(img[loading="lazy"], .news-thumb img) { opacity: 1; transform: none; filter: none; transition: none; }
  .img-fx :is(.hero, .photo-hero, .photo-tile, .news-mag-media, .news-thumb, .article-content figure, .club-intro-photo) { animation: none; }
}

/* ============ Bild in Info-Karten (z. B. Sponsoren-Logo) ============ */
.info-card-bild { margin: 4px 0 12px; text-align: center; }
.info-card-bild:last-child { margin-bottom: 0; }
.info-card-bild img { display: inline-block; max-width: 100%; max-height: 120px; width: auto; height: auto; }
.info-card-bild a { display: block; transition: transform 0.2s ease; }
.info-card-bild a:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .info-card-bild a { transition: none; }
  .info-card-bild a:hover { transform: none; }
}
