/* ============ BMX Team Kolbermoor – Trikot-Farbschema ============ */
:root {
  --red: #D6142C;
  --red-dark: #A80F22;
  --blue: #1B3F8B;
  --blue-dark: #122a5e;
  --white: #ffffff;
  --off-white: #f6f7fa;
  --ink: #1a1a1a;
  --gray: #5c6370;
  --border: #e3e5ea;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 20, 60, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 20, 60, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-anchor: none; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Rubik', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  hyphens: auto;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
iframe, video, embed, object { max-width: 100%; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.slogan-font {
  font-family: 'Caveat', cursive;
  color: var(--blue);
  font-weight: 700;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  overflow-anchor: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 44px 24px;
  max-width: 1200px;
  margin: 0 auto;
  transition: padding 0.3s ease;
}
.site-header.scrolled .header-inner {
  padding: 14px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Rubik', sans-serif;
  font-weight: 900;
  font-size: 1.9rem;
  color: var(--ink);
  white-space: nowrap;
  transition: font-size 0.3s ease;
}
.site-header.scrolled .logo {
  font-size: 1.05rem;
}

.logo-badge {
  width: 44px;
  height: 64px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--red) 50%, var(--blue) 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.logo-badge-img {
  height: 170px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  margin: -42px 0;
  position: relative;
  z-index: 2;
  top: 0px;
  transition: height 0.3s ease, margin 0.3s ease, top 0.3s ease;
}
.site-header.scrolled .logo-badge-img {
  height: 75px;
  margin: -16px 0;
  top: 4px;
}

.logo-text .claim {
  display: block;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--blue);
  margin-top: -2px;
  white-space: nowrap;
  transition: font-size 0.3s ease;
}
.site-header.scrolled .logo-text .claim {
  font-size: 0.78rem;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 54px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(214, 20, 44, 0.35);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }

.btn-secondary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(27, 63, 139, 0.3);
}
.btn-secondary:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: var(--white); }

.burger {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 201;
}
.burger span {
  width: 26px;
  height: 3px;
  background: var(--ink);
  border-radius: 3px;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.2s ease, background 0.2s ease;
}
.burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============ Hero ============ */
.hero {
  background-image:
    linear-gradient(100deg, rgba(8,12,26,0.88) 0%, rgba(8,12,26,0.72) 35%, rgba(8,12,26,0.4) 60%, rgba(8,12,26,0.35) 100%),
    linear-gradient(var(--ink), var(--ink));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}

/* Startseite: Hero + roter Kennzahlen-Balken füllen genau den Bildschirm unter dem Header,
   der Balken sitzt beim Laden am unteren Rand. --header-h setzt main.js (Werte hier = Fallback).
   Das Foto behält seine Mindesthöhe; bei sehr niedrigen Fenstern rutscht der Balken darunter.
   Nur am Desktop – unter 900px bleibt es beim festen Foto (siehe Responsive-Teil). */
.hero-screen {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h, 180px));
  min-height: calc(100svh - var(--header-h, 180px));
}
.hero-screen .hero { flex: 1; }

/* Hero-Foto als <img> (mit srcset) hinter dem Inhalt, füllt die Fläche wie vorher background-size: cover */
.hero { isolation: isolate; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Vereinsname klein über der Überschrift: steht für Google mit in der H1 */
.hero-kicker {
  display: block;
  margin-bottom: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd1d8;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 24px 90px;
  width: 100%;
}

.hero .eyebrow {
  display: inline-block;
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: #ffd1d8;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 18px;
  max-width: 720px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9), 0 4px 28px rgba(0,0,0,0.75);
}

.hero p.lead {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 480px;
  margin-bottom: 30px;
  text-shadow: 0 1px 5px rgba(0,0,0,0.85), 0 3px 20px rgba(0,0,0,0.7);
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ Page header (subpages) ============ */
.page-hero {
  background: linear-gradient(120deg, var(--blue) 0%, var(--red) 100%);
  color: var(--white);
  padding: 60px 24px 50px;
  text-align: center;
}
.page-hero .eyebrow {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: #ffd1d8;
}
.page-hero h1 { font-size: 2.4rem; margin: 6px 0 10px; }
.page-hero p { opacity: 0.92; max-width: 560px; margin: 0 auto; }

/* Beitrags-Kopf */
.post-hero { padding: 70px 24px 60px; }
.post-hero h1 { font-size: 2.8rem; max-width: 860px; margin: 18px auto 18px; }
.post-cat-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}
.post-cat-pill:hover { background: rgba(255, 255, 255, 0.28); }
.post-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.9rem;
  opacity: 0.92;
}
.post-meta span { display: inline-flex; align-items: center; gap: 7px; }
.post-meta svg { width: 16px; height: 16px; flex-shrink: 0; }
.post-hero + .section { padding-top: 44px; }

/* Beitrags-Kopf mit Titelbild: Text links, Bild rechts */
.post-hero.has-thumb { text-align: left; padding: 60px 24px; overflow: hidden; }
.post-hero.has-thumb .post-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 56px;
}
.post-hero.has-thumb h1 { margin: 18px 0; max-width: none; }
.post-hero.has-thumb .post-meta { justify-content: flex-start; }
.post-hero-image {
  position: relative;
  justify-self: center;
}
.post-hero-image::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  transform: rotate(3deg);
}
.post-hero-image img {
  position: relative;
  width: auto;
  max-width: 100%;
  max-height: 380px;
  transform: rotate(-2deg);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
}
.post-hero-image:hover img { transform: rotate(0deg) scale(1.02); }
.post-hero + .section .content-figure { margin-top: 0; }

.breadcrumb {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 14px;
}
.breadcrumb a { text-decoration: underline; }

/* ============ Stats bar ============ */
.stats-bar {
  background: var(--red);
  color: var(--white);
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 10px;
}
.stat-num { font-size: 1.9rem; font-weight: 900; font-family: 'Rubik', sans-serif; }
.stat-label { font-size: 0.85rem; opacity: 0.9; }

/* ============ Sections ============ */
.section { padding: 70px 0; }
.section-alt { background: var(--off-white); }

.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}
.section-head .eyebrow {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: var(--red);
}
.section-head h2 { font-size: 2rem; margin: 6px 0 10px; }
.section-head p { color: var(--gray); }

.section-more { text-align: center; margin-top: 40px; }

/* Seitennavigation in Beitragslisten */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 14px;
  border-radius: var(--radius); border: 2px solid var(--blue);
  color: var(--blue); font-weight: 700; text-decoration: none;
}
.pagination .page-numbers.current,
.pagination a.page-numbers:hover { background: var(--blue); color: var(--white); }
.pagination .page-numbers.dots { border-color: transparent; }

/* ============ Quick access tiles ============ */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
}
.tile h3 { font-size: 1.1rem; margin-bottom: 8px; }
.tile p { color: var(--gray); font-size: 0.92rem; margin-bottom: 14px; }
.tile a.link { color: var(--blue); font-weight: 700; font-size: 0.9rem; }

/* ============ News / card grid ============ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--blue), var(--red));
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.92);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  overflow: hidden;
}
.news-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-thumb .news-thumb-fallback-title {
  position: relative;
  z-index: 1;
  padding: 1rem 1.25rem;
  line-height: 1.3;
}
.date-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: var(--white);
  color: var(--ink);
  border-radius: 10px;
  padding: 6px 10px;
  text-align: center;
  font-family: 'Rubik', sans-serif;
  line-height: 1.1;
  box-shadow: var(--shadow);
}
.date-badge .day { font-size: 1.1rem; font-weight: 900; color: var(--red); display: block; }
.date-badge .mon { font-size: 0.7rem; text-transform: uppercase; color: var(--gray); }

.news-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue);
}
.news-card h3 { font-size: 1.1rem; }
.news-card:hover .news-link { color: var(--blue); }
.news-card p { color: var(--gray); font-size: 0.92rem; flex: 1; }
.news-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gray);
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.news-card .read-more { color: var(--red); font-weight: 700; font-size: 0.9rem; }

/* Ganze Kachel/Karte klickbar: der Link spannt sich über die Fläche */
.tile,
.news-card { position: relative; }
.tile a.link::after,
.news-card .news-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* ============ Social box ============ */
.social-box {
  background: linear-gradient(120deg, var(--blue), var(--blue-dark));
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.social-box h3 { font-size: 1.4rem; margin-bottom: 8px; }
.social-box p { opacity: 0.9; max-width: 420px; }
.social-box-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.social-icon { width: 18px; height: 18px; flex-shrink: 0; }
.social-box-ctas .btn { display: inline-flex; align-items: center; gap: 8px; }

/* ============ Bildrechte ("Foto: …", inc/image-credits.php) ============ */
.img-credit {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--gray);
}
figcaption .img-credit { display: inline; margin: 0 0 0 4px; }
/* Klein in der Ecke, wenn das Foto als Fläche hinter Text liegt */
.img-credit-overlay,
.img-credit-overlay-top {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 4;
  max-width: 60%;
  margin: 0;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.img-credit-overlay-top { top: 10px; bottom: auto; }

/* ============ Sponsors ============ */
.sponsor-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.sponsor-logo {
  min-width: 170px;
  height: 92px;
  padding: 0 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
a.sponsor-logo:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.sponsor-logo img { max-height: 56px; max-width: 190px; width: auto; height: auto; }

/* ============ Generic content blocks (subpages) ============ */
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}
.content-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.content-block h2 { font-size: 1.5rem; margin-bottom: 14px; color: var(--blue); }
.content-block h3 { font-size: 1.15rem; margin: 18px 0 8px; color: var(--red); }
.content-block p { color: var(--gray); margin-bottom: 12px; }
.content-block ul { list-style: disc; margin-left: 20px; color: var(--gray); }
.content-block ul li { margin-bottom: 6px; }

/* Beitragstext */
.post-content {
  max-width: 820px;
  margin: 0 auto 24px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  font-size: 1.05rem;
  line-height: 1.75;
}
.post-content p { color: #3d4350; margin-bottom: 18px; }
.post-content > p:first-child {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
}
.post-content strong { color: var(--ink); }
.post-content h2,
.post-content h3,
.post-content h4 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  margin: 38px 0 12px;
}
.post-content h4 { font-size: 1.3rem; }
.post-content > :first-child { margin-top: 0; }
.post-content h2::before,
.post-content h3::before,
.post-content h4::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 6px;
  border-radius: 3px;
  background: var(--red);
  transform: skewX(-24deg);
}
.post-content a:not(.btn) {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.post-content a:not(.btn):hover { color: var(--red); }
.post-content img {
  border-radius: 12px;
  margin: 8px 0;
}
.post-content ul,
.post-content ol { margin: 0 0 18px 4px; padding-left: 20px; color: #3d4350; }
.post-content ul { list-style: none; }
.post-content ul li { position: relative; }
.post-content ul li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--red);
  transform: rotate(45deg);
}
.post-content ol { list-style: decimal; }

/* Zahlen-Box rechts im Beitrag (<aside class="info-card fact-box"> mit .info-row) */
.post-content .fact-box {
  float: right;
  width: 300px;
  margin: 6px 0 24px 36px;
  border-top: 4px solid var(--red);
}
.post-content .fact-box h4 { font-size: 0.95rem; color: var(--red); margin: 0 0 8px; }
.post-content .fact-box h4::before { display: none; }
.post-content .fact-box .info-row { gap: 12px; font-size: 0.9rem; line-height: 1.4; }
.post-content .fact-box .info-row span:last-child { text-align: right; color: var(--blue); }
.post-content .fact-box .fact-note { font-size: 0.82rem; line-height: 1.5; color: var(--gray); margin: 12px 0 0; }
.post-content::after { content: ''; display: block; clear: both; }
.post-content blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  background: var(--off-white);
  border-left: 4px solid var(--red);
  border-radius: 0 10px 10px 0;
  font-style: italic;
}

.content-figure {
  margin: 18px 0 20px;
}
.content-figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(50vh, 460px);
  margin: 0 auto;
  display: block;
}
.content-figure.figure-small {
  float: right;
  width: 260px;
  margin: 4px 0 14px 24px;
}
.content-figure.figure-small img { width: 100%; max-height: none; border-radius: 10px; }
.content-figure.figure-small figcaption { font-size: 0.78rem; }
.content-block::after { content: ""; display: table; clear: both; }
@media (max-width: 600px) {
  .content-figure.figure-small { float: none; width: 100%; margin: 14px 0; }
}
.content-figure figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--gray);
  text-align: center;
}

.info-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.info-card h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red);
  margin-bottom: 12px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.info-row:last-child,
.info-row:has(+ p:empty:last-child) { border-bottom: none; }
.info-card > p:empty { display: none; }
/* Freitext in Info-Karten (page.php): allein in der Karte bzw. als Hinweis unter den Zeilen */
.info-text { color: var(--gray); font-size: 0.9rem; }
.info-note { color: var(--gray); font-size: 0.8rem; margin-top: 10px; }
.info-row a { color: var(--blue); overflow-wrap: anywhere; }
.info-row span:first-child { color: var(--gray); }
.info-row span:last-child { font-weight: 700; }

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 16px 0 20px;
}
.schedule-day {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.schedule-day h4 {
  font-family: 'Rubik', sans-serif;
  font-size: 0.95rem;
  color: var(--blue);
  margin-bottom: 10px;
}
.schedule-slot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.schedule-slot:first-of-type { border-top: none; padding-top: 0; }
.schedule-time {
  font-weight: 700;
  color: var(--red);
  font-size: 0.9rem;
}
.schedule-desc {
  font-size: 0.88rem;
  color: var(--ink);
}
.schedule-trainer {
  font-size: 0.8rem;
  color: var(--gray);
}
.schedule-slot-off .schedule-desc {
  color: var(--gray);
  font-style: italic;
}
/* Trainingszeiten: Wochenplan */
.training-page { max-width: 960px; margin: 0 auto; }
.season { margin-bottom: 48px; }
.season-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin-bottom: 18px;
}
.season-head h2 { font-size: 1.6rem; color: var(--ink); }
.season-tag {
  flex-basis: 100%;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.season-tag-summer { color: var(--red); }
.season-tag-winter { color: var(--blue); }
.season-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  background: var(--off-white);
  padding: 3px 12px;
  border-radius: 999px;
}
.week { display: flex; flex-direction: column; gap: 10px; }
.week-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  background: var(--off-white);
  border-radius: var(--radius);
  overflow: hidden;
}
.week-day {
  display: flex;
  align-items: center;
  padding: 18px 22px;
  background: var(--blue);
  color: var(--white);
  font-family: 'Rubik', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
}
.week-slots { display: flex; flex-direction: column; }
.slot {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: start;
  padding: 16px 22px;
}
.slot + .slot { border-top: 1px solid var(--border); }
.slot-time {
  font-family: 'Rubik', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--red);
  white-space: nowrap;
}
.slot-group { font-weight: 600; color: var(--ink); line-height: 1.45; }
.slot-trainer { font-size: 0.85rem; color: var(--gray); margin-top: 3px; }
.week-row.is-off { background: transparent; border: 1px dashed var(--border); }
.week-row.is-off .week-day { background: var(--border); color: var(--gray); }
.slot-off { padding: 16px 22px; color: var(--gray); font-style: italic; }

.training-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.training-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 24px;
}
.training-card h3 { font-size: 1.15rem; color: var(--blue); margin-bottom: 10px; }
.training-card p { color: var(--gray); font-size: 0.92rem; margin-bottom: 12px; }
.training-card .training-small { font-size: 0.85rem; margin: 12px 0 0; }
.group-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.group-tag {
  flex-shrink: 0;
  min-width: 52px;
  text-align: center;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-family: 'Rubik', sans-serif;
  font-weight: 800;
}
.training-card-notice { background: #fff1f3; border-left: 4px solid var(--red); }
.training-card-notice h3 { color: var(--red); }
.training-card-notice ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.training-card-notice li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--ink);
}
.training-card-notice li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
  color: var(--red);
}

@media (max-width: 700px) {
  .schedule-grid { grid-template-columns: 1fr; }
  .week-row { grid-template-columns: 1fr; }
  .week-day { padding: 10px 18px; font-size: 0.95rem; }
  .slot { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; }
  .slot-off { padding: 14px 18px; }
  .training-info { grid-template-columns: 1fr; }
  .season-head h2 { font-size: 1.35rem; }
}

/* Table styling for Termine */
.event-table {
  width: 100%;
  border-collapse: collapse;
}
.event-table th, .event-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.event-table th {
  color: var(--blue);
  font-family: 'Rubik', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.event-table .tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.tag-race { background: #fde3e7; color: var(--red); }
.tag-training { background: #e1e8fb; color: var(--blue); }
.tag-event { background: #fff3cd; color: #946c00; }

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-item {
  aspect-ratio: 1;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--red));
  opacity: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Download list */
.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
}
.download-item .file-info { display: flex; align-items: center; gap: 14px; }
.file-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: var(--red);
  font-size: 0.75rem;
}
.download-item .meta { font-size: 0.8rem; color: var(--gray); }

/* Team/person cards (Verein) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.person-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.person-card h4 { font-size: 0.95rem; }
.person-card .role { font-size: 0.8rem; color: var(--gray); }
.person-card .person-contact { font-size: 0.78rem; color: var(--gray); margin-top: 6px; line-height: 1.5; }
.person-card .person-contact a { color: var(--blue); }

/* Link auf externes Video */
.video-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.video-link svg {
  width: 28px;
  height: 28px;
  padding: 7px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  flex-shrink: 0;
}
.video-link:hover { border-color: var(--red); background: var(--white); }

/* Rechtstexte (Impressum, Datenschutz) */
.content-block.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 1.25rem; margin: 30px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1rem; color: var(--ink); margin: 20px 0 6px; }
.legal p, .legal li { font-size: 0.95rem; }
.legal ul { margin-bottom: 12px; }
.legal a { color: var(--blue); text-decoration: underline; overflow-wrap: anywhere; }
.legal-todo { background: #fff1f3; color: var(--red); font-weight: 700; padding: 0 4px; border-radius: 4px; }
.legal-date { margin-top: 24px; font-size: 0.85rem !important; }
.map-consent p a { color: var(--blue); text-decoration: underline; }

/* Mitglied werden (BMX'ler werden) */
.member-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 36px 40px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--blue), var(--blue-dark));
  color: var(--white);
  scroll-margin-top: 230px;
}
.member-cta-eyebrow { font-family: 'Caveat', cursive; font-size: 1.3rem; color: #ffd1d8; }
.member-cta h2 { font-size: 1.7rem; margin: 2px 0 12px; }
.member-cta p { opacity: 0.92; margin-bottom: 10px; max-width: 640px; }
.member-cta .member-cta-small { font-size: 0.85rem; opacity: 0.8; margin-bottom: 0; }
.member-cta a:not(.btn) { color: var(--white); text-decoration: underline; }
.member-cta .btn { white-space: nowrap; }
@media (max-width: 900px) {
  .member-cta { grid-template-columns: 1fr; padding: 28px 22px; gap: 18px; scroll-margin-top: 100px; }
  .member-cta h2 { font-size: 1.4rem; }
}

/* Titel-Chronik (Verein) */
/* Personen in Info-Karten (Verein) */
.person-row { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.person-row:last-child { border-bottom: none; padding-bottom: 0; }
.person-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.person-name { font-weight: 700; color: var(--ink); }
.person-role { color: var(--gray); font-size: 0.85rem; }
.person-line { margin-top: 4px; font-size: 0.82rem; color: var(--gray); overflow-wrap: anywhere; }
.person-line a { color: var(--blue); }
.tl-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--gray);
  margin-bottom: 18px;
}
.tl-legend { gap: 6px 14px; }
.tl-legend-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.timeline {
  list-style: none;
  position: relative;
  margin: 0;
  padding: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 55px;
  width: 2px;
  background: var(--border);
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 30px;
  padding-bottom: 14px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 49px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue);
}
.tl-item:has(.tl-wm)::before { background: var(--red); border-color: var(--red); }
.tl-year {
  font-family: 'Rubik', sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--blue);
  line-height: 1.5;
}
.tl-body { display: flex; flex-direction: column; gap: 6px; }
.tl-entry {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink);
}
.tl-badge {
  flex-shrink: 0;
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--white);
}
.tl-wm { background: var(--red); }
.tl-dm { background: var(--blue); }
.tl-em { background: #c98a06; }
.text-link { color: var(--blue); font-weight: 700; }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 63, 139, 0.15);
}
/* Sprungziel nach dem Absenden: Platz für den fixierten Header lassen.
   Auf dem Desktop schrumpft der Header beim Scrollen um ca. 100px, daher mehr Abstand. */
.contact-form { scroll-margin-top: 230px; }
@media (max-width: 900px) { .contact-form { scroll-margin-top: 100px; } }
.form-field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-hint { font-size: 0.8rem; color: var(--gray); margin: 4px 0 18px; line-height: 1.5; }
.form-hint a { color: var(--blue); text-decoration: underline; }
.form-notice { border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; font-size: 0.92rem; }
.form-notice ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.form-notice-success { background: #e9f7ef; color: #1d6b3a; border-left: 4px solid #2e9d5b; }
.form-notice-error { background: #fff1f3; color: var(--red-dark); border-left: 4px solid var(--red); }

.map-embed {
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--border);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(27, 63, 139, 0.04) 0 12px, transparent 12px 24px),
    var(--white);
  border: 2px dashed var(--border);
}
.map-consent.is-loaded { padding: 0; border: 0; background: var(--border); }
.map-consent p { font-size: 0.82rem; color: var(--gray); margin-bottom: 14px; line-height: 1.5; }
.map-consent .btn { font-size: 0.85rem; padding: 9px 18px; }
.map-route {
  display: inline-block;
  margin-top: 12px;
  color: var(--red);
  font-weight: 700;
  font-size: 0.9rem;
}
.map-placeholder {
  aspect-ratio: 16/10;
  background: var(--white);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-weight: 600;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--ink);
  color: #d8dae0;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--red); }
.footer-logo {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
  color: var(--white);
  font-weight: 900;
  font-family: 'Rubik', sans-serif;
  font-size: 1.2rem;
}
.footer-col p.desc { font-size: 0.88rem; opacity: 0.8; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-inner { padding: 50px 24px; }
  .hero h1 { font-size: 2.2rem; }
  .tiles, .news-grid { grid-template-columns: 1fr; }
  .content-grid, .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }

  .hero-screen { display: block; min-height: 0; }  /* Mobil/Tablet: Foto wie gehabt, Balken darunter */

  /* Header kompakt */
  .header-inner,
  .site-header.scrolled .header-inner { padding: 12px 20px; }
  .logo { font-size: 1.25rem; gap: 10px; min-width: 0; }
  .site-header.scrolled .logo { font-size: 1.05rem; }
  .logo-text { min-width: 0; }
  .logo-badge-img,
  .site-header.scrolled .logo-badge-img { height: 64px; margin: -6px 0; top: 0; }
  .logo-text .claim,
  .site-header.scrolled .logo-text .claim { font-size: 0.95rem; }
  .burger { right: 16px; }
  .post-hero.has-thumb { text-align: center; padding: 50px 0 56px; }
  .post-hero.has-thumb .post-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .post-hero.has-thumb .post-meta { justify-content: center; }
  .post-hero-image img { max-height: 320px; }
  .header-cta { padding-right: 48px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }

  /* Header: Buttons stehen im Mobile-Menü */
  .header-cta .btn { display: none; }
  .logo { white-space: normal; line-height: 1.1; }
  .logo-badge-img,
  .site-header.scrolled .logo-badge-img { height: 52px; margin: -4px 0; }
  .logo-text .claim { display: none; }

  /* Überschriften */
  .hero-inner { padding: 40px 16px; }
  .hero h1 { font-size: 1.8rem; }
  .page-hero { padding: 40px 0 34px; }
  .page-hero h1 { font-size: 1.8rem; }
  .post-hero { padding: 44px 0 38px; }
  .post-hero h1 { font-size: 1.8rem; margin: 14px auto; }
  .section-head h2 { font-size: 1.6rem; }
  .stat-num { font-size: 1.5rem; }

  /* Raster */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .sponsor-strip { gap: 14px; }
  .sponsor-logo { flex: 1 1 100%; }
  .team-grid { grid-template-columns: 1fr !important; }

  /* Abstände */
  .social-box { padding: 24px 20px; }
  .content-block { padding: 20px; }
  .post-content { padding: 0; font-size: 1rem; }
  .post-content > p:first-child { font-size: 1.08rem; }
  .post-content h4 { font-size: 1.15rem; margin-top: 30px; }
  .post-content .fact-box { float: none; width: auto; margin: 0 0 24px; }
  .tile { padding: 22px; }

  /* Downloads */
  .download-item { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }

  /* Lange Wörter / E-Mail-Adressen */
  .site-footer li,
  .person-card .person-contact,
  .content-block { overflow-wrap: anywhere; }

  /* Tabellen im Inhalt seitlich scrollbar */
  .section table:not(.wp-block-table table) { display: block; overflow-x: auto; }
}

@media (max-width: 380px) {
  .logo { font-size: 1.05rem; }
  .stats-inner { grid-template-columns: 1fr 1fr; padding: 20px 16px; }
  .btn { padding: 10px 18px; }
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.55);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: min(360px, 85vw);
  background: var(--white);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 90px 20px 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow-y: auto;
}
/* Schatten nur im geöffneten Zustand, sonst ragt er vom versteckten Menü in den rechten Bildrand. */
.mobile-nav.open {
  transform: translateX(0);
  box-shadow: -8px 0 30px rgba(0,0,0,0.25);
}
.mobile-nav-head {
  padding: 0 10px 10px;
  margin-bottom: 8px;
}
.mobile-nav-head .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
}
.mobile-nav ul {
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.mobile-nav ul li {
  list-style: none !important;
}
.mobile-nav ul a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  position: relative;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.mobile-nav ul a::before {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--gray);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 15px;
  mask-size: 15px;
  transition: background-color 0.2s ease;
}
.mobile-nav ul a::after {
  content: "\2192";
  margin-left: auto;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: var(--red);
  font-weight: 700;
}
.mobile-nav ul a:hover,
.mobile-nav ul a.active {
  color: var(--red);
  background: var(--off-white);
  box-shadow: inset 4px 0 0 var(--red);
}
.mobile-nav ul a:hover::before,
.mobile-nav ul a.active::before {
  background-color: var(--red);
}
.mobile-nav ul a:hover::after,
.mobile-nav ul a.active::after {
  opacity: 1;
  transform: translateX(0);
}
.icon-racing > a::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><circle cx='5.5' cy='17.5' r='3.5'/><circle cx='18.5' cy='17.5' r='3.5'/><path d='M15 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm-1.5 1.5L10 12l3 3h4.5l1-4h-3l-1.2-3.2-2.8-.3Z' stroke='black' stroke-width='1.2' fill='none' stroke-linejoin='round'/><path d='m5.5 17.5 4-7.5h5' stroke='black' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><circle cx='5.5' cy='17.5' r='3.5'/><circle cx='18.5' cy='17.5' r='3.5'/><path d='M15 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm-1.5 1.5L10 12l3 3h4.5l1-4h-3l-1.2-3.2-2.8-.3Z' stroke='black' stroke-width='1.2' fill='none' stroke-linejoin='round'/><path d='m5.5 17.5 4-7.5h5' stroke='black' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
}
.icon-clock > a::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3.5 2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3.5 2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.icon-tent > a::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'><path d='M12 3 3 19h18L12 3Z'/><path d='M12 3v16'/><path d='M7.5 19 12 11l4.5 8'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'><path d='M12 3 3 19h18L12 3Z'/><path d='M12 3v16'/><path d='M7.5 19 12 11l4.5 8'/></svg>");
}
.icon-image > a::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'><rect x='3' y='4' width='18' height='16' rx='2'/><circle cx='8.5' cy='9.5' r='1.5' fill='black' stroke='none'/><path d='m21 16-5.5-5.5L8 18'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'><rect x='3' y='4' width='18' height='16' rx='2'/><circle cx='8.5' cy='9.5' r='1.5' fill='black' stroke='none'/><path d='m21 16-5.5-5.5L8 18'/></svg>");
}
.icon-shield > a::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'><path d='M12 3 4 6v6c0 4.5 3.2 7.6 8 9 4.8-1.4 8-4.5 8-9V6l-8-3Z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'><path d='M12 3 4 6v6c0 4.5 3.2 7.6 8 9 4.8-1.4 8-4.5 8-9V6l-8-3Z'/></svg>");
}
.icon-mail > a::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='m4 7 8 6 8-6'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='m4 7 8 6 8-6'/></svg>");
}
.icon-news > a::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'><path d='M4 5h13v14H6a2 2 0 0 1-2-2V5Z'/><path d='M17 9h3v8a2 2 0 0 1-2 2'/><path d='M7.5 9h6M7.5 12.5h6M7.5 16h4'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'><path d='M4 5h13v14H6a2 2 0 0 1-2-2V5Z'/><path d='M17 9h3v8a2 2 0 0 1-2 2'/><path d='M7.5 9h6M7.5 12.5h6M7.5 16h4'/></svg>");
}

/* Untermenüs im Burger-Menü: Gruppen zum Aufklappen (Pfeil-Button, main.js) */
.mobile-nav .menu-item-has-children { position: relative; }
.mobile-nav .menu-item-has-children > a { padding-right: 52px; }
.mobile-nav .menu-item-has-children > a::after { display: none; }
.mobile-nav .submenu-toggle {
  position: absolute;
  top: 8px;
  right: 4px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--gray);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-nav .submenu-toggle:hover { background: var(--off-white); color: var(--red); }
.mobile-nav .submenu-toggle svg { width: 18px; height: 18px; transition: transform 0.25s ease; }
.mobile-nav .menu-item-has-children.is-open > .submenu-toggle svg { transform: rotate(180deg); }
.mobile-nav ul.sub-menu {
  display: none;
  flex: none;
  gap: 0;
  margin: 2px 0 8px 52px;
  padding-left: 12px;
  border-left: 2px solid var(--border);
}
.mobile-nav .menu-item-has-children.is-open > ul.sub-menu { display: flex; }
.mobile-nav ul.sub-menu a {
  padding: 9px 10px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--gray);
}
.mobile-nav ul.sub-menu a::before { display: none; }
.mobile-nav ul.sub-menu a[target="_blank"]::after { content: "\2197"; opacity: 1; transform: none; color: var(--gray); }
.mobile-nav ul.sub-menu .current-menu-item > a { color: var(--red); }

.mobile-nav-foot {
  padding: 18px 10px 4px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mobile-nav-social {
  display: flex;
  gap: 10px;
}
.mobile-nav-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  color: var(--blue);
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-nav-social a:hover {
  background: var(--blue);
  color: var(--white);
}
.mobile-nav-social svg {
  width: 17px;
  height: 17px;
}
.mobile-nav-foot .btn {
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* Nur für Screenreader sichtbar (WordPress-Standardklasse) */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
