/*
Theme Name:  Sportfreunde Dellmensingen
Theme URI:   https://www.sf-dellmensingen.de/
Author:      Sportfreunde Dellmensingen 1921 e.V.
Author URI:  https://www.sf-dellmensingen.de/
Description: Vereinstheme der Sportfreunde Dellmensingen 1921 e.V. - Fussball, Tennis, Badminton, Fitness und Gesundheit, Volleyball und Darts. Konvertiert aus dem statischen HTML-Entwurf.
Version:     1.16.6
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sfd
Tags:        one-column, custom-menu, custom-logo, threaded-comments
*/

/* ============================================================
   Sportfreunde Dellmensingen 1921 e.V. — Stylesheet (Variante 2)
   Sportlich-kantige Designsprache: diagonale Akzente, klare
   Kanten, kräftige Vereinsfarben, SVG-Icon-System.
   ============================================================ */

/* ---------- Fonts ----------
   Lokal gehostet in assets/fonts/fonts.css, eingebunden über
   wp_enqueue_style in functions.php (siehe sfd_scripts()). */

/* ---------- Design Tokens ---------- */
:root {
  --red:        #c8102e;
  --red-dark:   #9c0d24;
  --red-light:  #fdeaed;
  --navy:       #101c38;
  --navy-dark:  #0a1226;
  --navy-light: #1c2c54;
  --gold:       #ffb81c;

  --white:      #ffffff;
  --bg:         #f2f4f8;
  --gray-light: #dfe3ec;
  --gray:       #5c6675;
  --dark:       #14171e;

  --font-body:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head:  'Barlow Condensed', 'Arial Narrow', sans-serif;

  --radius:     10px;
  --radius-lg:  14px;
  --shadow-sm:  0 1px 3px rgba(10, 18, 38, 0.08);
  --shadow:     0 10px 30px rgba(10, 18, 38, 0.13);
  --shadow-lg:  0 22px 60px rgba(10, 18, 38, 0.22);

  --header-h:   74px;
  --container:  1200px;

  /* Farbverlauf, der auf allen Seiten-Heroes über dem Hintergrundbild liegt
     (siehe template-parts/page-hero.php). */
  --hero-gradient: linear-gradient(115deg, rgba(19,29,56,0.95) 0%, rgba(29,43,80,0.88) 55%, rgba(179,40,45,0.62) 100%);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Schutz gegen horizontales Überlaufen ("rechts abgeschnitten" auf dem Handy).
   overflow-x: clip greift zuverlässiger als hidden – u.a. auf iOS Safari, wo
   hidden auf <body> von positionierten Kindelementen ausgehebelt werden kann.
   position: relative + width:100% verankern die Breite zusätzlich. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
  max-width: 100%;
}

body {
  overflow-x: clip;
  position: relative;
  width: 100%;
  max-width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* height:auto ist entscheidend: WordPress und Plugins (z. B. "The Events
   Calendar") liefern <img> oft mit festen width/height-Attributen aus. Ohne
   height:auto bleibt die Höhe starr, während max-width die Breite auf
   schmalen Bildschirmen schrumpft – das Bild wirkt gestaucht/verzerrt. */
img { max-width: 100%; height: auto; display: block; }

/* Sehr lange Wörter (zusammengesetzte Substantive, Gender-Formen wie
   "Grundschüler*innen", E-Mail-Adressen) müssen zuverlässig umbrechen, sonst
   ragen sie auf schmalen Displays über den Rand. overflow-wrap:anywhere greift
   auch bei Wörtern, die allein schon breiter als die Zeile sind – anders als
   break-word. hyphens:auto setzt zusätzlich saubere Trennstriche, wo möglich. */
h1, h2, h3, h4, p, .feature-item, .termin-info, .person-mail {
  overflow-wrap: anywhere;
  word-break: normal;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}
a   { color: var(--red); text-decoration: none; }
ul  { list-style: none; }
code {
  font-size: 0.85em;
  background: var(--gray-light);
  border-radius: 4px;
  padding: 0.05em 0.4em;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: 0.012em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.1rem;  font-weight: 700; }

/* Tastatur-Fokus deutlich sichtbar: Doppelring aus Weiß + Vereinsblau ist
   sowohl auf hellen als auch auf dunklen Flächen kontraststark (WCAG 2.4.11 –
   das frühere Gold hatte auf Weiß nur ~1,8:1). */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--white), 0 0 0 5px var(--navy);
  border-radius: 4px;
}

/* Skip-Link für Screenreader/Tastatur */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4.5rem 0; }
.section.alt { background: var(--white); }

.section-head { margin-bottom: 2.5rem; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--red);
  margin-bottom: 0.4rem;
}
.section-kicker::before {
  content: '';
  width: 22px; height: 12px;
  background: var(--red);
  transform: skewX(-20deg);
}
.section-title { position: relative; padding-bottom: 0.85rem; }
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 58px; height: 5px;
  background: var(--red);
  transform: skewX(-20deg);
}
.section-head.center { text-align: center; }
.section-head.center .section-kicker::before { display: none; }
.section-head.center .section-title::after { left: 50%; margin-left: -29px; }
.section-sub { color: var(--gray); max-width: 640px; margin-top: 0.9rem; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- SVG-Icons ---------- */
.ico {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -0.22em;
}
.ico-lg { width: 30px; height: 30px; stroke-width: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.75rem 1.7rem;
  border: 2px solid transparent;
  border-radius: 8px;
  /* abgeschrägte Ecke als sportlicher Akzent */
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); }
.btn-outline { background: rgba(255,255,255,0.08); color: var(--white); border-color: rgba(255,255,255,0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-sm { font-size: 0.92rem; padding: 0.5rem 1.15rem; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%); }

/* Der Schrägschnitt (clip-path) würde den Fokusring komplett wegschneiden –
   im Fokuszustand deshalb auf die abgeschrägte Ecke verzichten. */
.btn:focus-visible,
.btn-sm:focus-visible { clip-path: none; }

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-light);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); border-bottom-color: transparent; }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.logo-img { height: 50px; width: auto; }
.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--navy);
  max-width: 190px;
}
.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--red);
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 0.15rem; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  padding: 0.6rem 0.9rem;
  transition: color 0.2s;
}
.nav-links > li > a::after {
  content: '';
  position: absolute;
  left: 0.9rem; right: 0.9rem;
  bottom: 2px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0) skewX(-20deg);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-links > li > a:hover { color: var(--red); }
.nav-links > li > a:hover::after,
.nav-links > li > a.active::after { transform: scaleX(1) skewX(-20deg); }
.nav-links > li > a.active { color: var(--red); }
.nav-arrow { font-size: 0.55rem; transition: transform 0.2s; }
.nav-links > li:hover .nav-arrow,
.nav-links > li:focus-within .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.55rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  border-top: 3px solid var(--red);
}
/* :focus-within öffnet das Dropdown auch bei reiner Tastaturbedienung –
   visibility:hidden nähme die Links sonst aus der Tab-Reihenfolge. */
.nav-links > li:hover .nav-dropdown,
.nav-links > li:focus-within .nav-dropdown,
.nav-links > li.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 1.25rem;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown a:hover { background: var(--red-light); color: var(--red); }
.nav-dropdown .dd-ico {
  width: 1.5rem;
  display: inline-flex;
  justify-content: center;
  color: var(--red);
}
.nav-dropdown .dd-ico .ico { width: 18px; height: 18px; }

.header-cta { flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
}
.hamburger span {
  display: block;
  width: 24px; height: 3px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   Hero-News-Slider (Startseite)
   ============================================================ */
.hero-slider {
  position: relative;
  height: clamp(520px, 72vh, 660px);
  /* dvh: stabile Höhe auf iOS, wo die URL-Leiste den vh-Wert springen lässt */
  height: clamp(520px, 72dvh, 660px);
  overflow: hidden;
  background: var(--navy-dark);
}
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-color: var(--navy-light);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10,18,38,0.96) 0%, rgba(10,18,38,0.55) 42%, rgba(10,18,38,0.12) 78%),
    linear-gradient(100deg, rgba(10,18,38,0.55) 0%, rgba(10,18,38,0) 60%);
}
.slide-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem 5.4rem;
  color: var(--white);
}
.slide-meta { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.9rem; }
.slide-tag {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  padding: 0.22rem 0.85rem;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.slide-tag.gold { background: var(--gold); color: var(--navy-dark); }
.slide-date { font-size: 0.85rem; color: rgba(255,255,255,0.75); }
.slide-content h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 4.5vw, 3.3rem);
  max-width: 780px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.4);
}
.slide-content p {
  margin-top: 0.8rem;
  max-width: 620px;
  font-size: 1.02rem;
  color: rgba(255,255,255,0.85);
}
.slide-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }

/* Steuerung */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(10,18,38,0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.slider-arrow:hover { background: var(--red); border-color: var(--red); }
.slider-arrow.prev { left: 1.1rem; }
.slider-arrow.next { right: 1.1rem; }

/* Pause/Weiter für den automatischen Wechsel (WCAG 2.2.2) */
.slider-pause {
  position: absolute;
  bottom: 1.15rem;
  right: 1.1rem;
  z-index: 6;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(10,18,38,0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.slider-pause:hover { background: var(--red); border-color: var(--red); }

.slider-dots {
  position: absolute;
  bottom: 1.05rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.3rem;
}
/* Der Button selbst ist 24x24px groß (Mindest-Touchziel nach WCAG 2.5.8),
   sichtbar ist nur der schmale Balken im ::before. */
.slider-dots button {
  position: relative;
  width: 24px; height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: width 0.3s ease;
}
.slider-dots button::before {
  content: '';
  position: absolute;
  left: 1px; right: 1px;
  top: 50%;
  height: 8px;
  transform: translateY(-50%) skewX(-20deg);
  background: rgba(255,255,255,0.4);
  transition: background 0.3s ease;
}
.slider-dots button.active { width: 40px; }
.slider-dots button.active::before { background: var(--red); }

/* Fortschrittsbalken */
.slider-progress {
  position: absolute;
  bottom: 0; left: 0;
  z-index: 6;
  height: 4px;
  width: 0;
  background: var(--red);
}
.slider-progress.animate {
  width: 100%;
  transition: width 6.5s linear;
}

/* Statistik-Leiste */
.stats-strip {
  background: var(--navy-dark);
  border-top: 3px solid var(--red);
}
.stats-strip-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.4rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat { text-align: center; color: var(--white); }
.stat .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-style: italic;
  font-size: 2.1rem;
  color: var(--gold);
  line-height: 1;
}
.stat .lbl {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-top: 0.25rem;
}

/* Unterseiten-Hero mit schräger Unterkante */
.page-hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(10,18,38,0.96) 0%, rgba(16,28,56,0.9) 55%, rgba(200,16,46,0.66) 100%),
    var(--navy-dark);
  background-size: cover;
  background-position: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%);
  margin-bottom: -14px;
}
.page-hero h1 { color: var(--white); }
.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.8rem;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.75); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero p.lead {
  margin-top: 1rem;
  max-width: 640px;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.85);
}
/* Schmale Variante für Seiten ohne Untertitel (Impressum, Datenschutz, Archive) */
.page-hero--compact { padding: 3.5rem 0 2.5rem; }

/* ============================================================
   Cards & Grids
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }

.card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(200,16,46,0.35); }

/* News card */
.news-card { display: flex; flex-direction: column; color: inherit; }
.news-card .card-img,
.news-card .card-img-placeholder { width: 100%; height: 190px; object-fit: cover; }
.card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}
.news-card .card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-tag {
  align-self: flex-start;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 0.14rem 0.7rem;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
  margin-bottom: 0.7rem;
}
.card-tag.navy  { background: var(--navy); }
.card-tag.green { background: #1e7a3c; }
.card-date { font-size: 0.8rem; color: var(--gray); margin-bottom: 0.45rem; }
.news-card h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.news-card p  { font-size: 0.92rem; color: var(--gray); flex: 1; }
.card-link {
  margin-top: 1rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red);
}
.news-card:hover .card-link { text-decoration: underline; }

/* Sport card */
.sport-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 330px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--white);
  background-size: cover;
  background-position: center;
  background-color: var(--navy-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.sport-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.sport-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,18,38,0.95) 0%, rgba(10,18,38,0.35) 55%, rgba(10,18,38,0.08) 100%);
  transition: background 0.3s;
}
.sport-card:hover::after {
  background: linear-gradient(to top, rgba(200,16,46,0.93) 0%, rgba(200,16,46,0.35) 60%, rgba(10,18,38,0.12) 100%);
}
.sport-card .sc-body { position: relative; z-index: 1; padding: 1.5rem; }

/* NEU-Badge oben rechts auf einer Abteilungs-Kachel */
.sport-card .sc-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(10,18,38,0.35);
}
.sport-card .sc-ico {
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  margin-bottom: 0.7rem;
  color: var(--white);
  font-size: 1.4rem;
}
.sport-card h3 { color: var(--white); font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.04em; }
.sport-card p { font-size: 0.85rem; opacity: 0.85; margin-top: 0.3rem; }
.sport-card .sc-more {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

/* Icon-Chip */
.ico-chip {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--red);
  margin-bottom: 0.9rem;
}

/* Person card */
.person-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.person-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(200,16,46,0.35); }
.person-avatar {
  width: 84px; height: 84px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.03em;
}
.person-card.red .person-avatar { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); }
.person-role {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 0.25rem;
}
.person-card h3, .person-card h4 { font-size: 1.2rem; }
.person-card .person-mail {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray);
  word-break: break-all;
}
.person-card .person-mail:hover { color: var(--red); }

/* ============================================================
   Match-Center
   ============================================================ */
.match-center {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.6rem;
  align-items: start;
}
.match-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.6rem;
}
.match-card:last-child { margin-bottom: 0; }
.match-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: var(--navy);
  border-left: 5px solid var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.25rem;
}
.match-card-header .sub { font-size: 0.72rem; font-family: var(--font-body); font-weight: 500; letter-spacing: 0.02em; text-transform: none; opacity: 0.7; }
.match-card-body { padding: 0.5rem 1.25rem; }

.match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--gray-light);
}
.match-row:last-child { border-bottom: none; }
.match-row .team { font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.match-row .team.right { text-align: right; }
.match-row .team.sfd { color: var(--red); font-weight: 800; }
.match-row .score {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.18rem 0.7rem;
  min-width: 60px;
  text-align: center;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
.match-row .score.win  { background: #1e7a3c; }
.match-row .score.loss { background: var(--red); }
.match-row .score.draw { background: var(--gray); }
.match-row .score.time { background: var(--red-light); color: var(--red); font-size: 0.9rem; }
.match-row .match-info {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--gray);
  text-align: center;
  margin-top: -0.35rem;
}

/* Liga-Tabelle */
.ltable { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.ltable th {
  font-family: var(--font-head);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 2px solid var(--gray-light);
}
.ltable th.num, .ltable td.num { text-align: center; width: 42px; }
.ltable td { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--gray-light); }
.ltable tr:last-child td { border-bottom: none; }
.ltable .pos { font-family: var(--font-head); font-weight: 800; color: var(--gray); }
.ltable .pts { font-weight: 800; color: var(--navy); }
.ltable tr.sfd td { background: var(--red-light); }
.ltable tr.sfd .team-name { color: var(--red); font-weight: 800; }

.data-note {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--gray);
  background: var(--white);
  border: 1px dashed var(--gray-light);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  margin-top: 1.25rem;
}

/* ============================================================
   Tabellen
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 540px; }
.data-table th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  padding: 0.85rem 1.25rem;
}
.data-table td { padding: 0.8rem 1.25rem; border-bottom: 1px solid var(--gray-light); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg); }
.data-table .amount { font-weight: 700; color: var(--navy); text-align: right; white-space: nowrap; }
.data-table .badge {
  display: inline-block;
  background: var(--red-light);
  color: var(--red);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.15rem 0.6rem;
  border-radius: 5px;
}

/* ============================================================
   Sidebar-Elemente
   ============================================================ */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}
/* Grid-Items dürfen schmaler werden als ihr Inhalt. Ohne dies (Standard ist
   min-width:auto) bläht ein breites Bild oder eine Tabelle in der Textspalte
   das ganze Grid über die Bildschirmbreite auf – der Beitrag wird dann auf
   dem Handy rechts abgeschnitten. */
.content-with-sidebar > * { min-width: 0; }

.sidebar-box {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.sidebar-box-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--navy);
  border-left: 5px solid var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.9rem 1.25rem;
}
.sidebar-box-body { padding: 1.1rem 1.25rem; }

.termin-item {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--gray-light);
}
.termin-item:first-child { padding-top: 0; }
.termin-item:last-child { border-bottom: none; padding-bottom: 0; }
/* Wenn ein Termin auf sein Event verlinkt (Startseite mit Events-Plugin) */
a.termin-item { text-decoration: none; color: inherit; transition: opacity 0.18s ease; }
a.termin-item:hover .termin-info h3,
a.termin-item:hover .termin-info h4 { color: var(--red); }
a.termin-item:hover { opacity: 0.95; }
.termin-date-badge {
  flex-shrink: 0;
  width: 56px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 0.45rem 0;
  line-height: 1.15;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.termin-date-badge.red { background: var(--red); }
.termin-date-badge .day   { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; }
.termin-date-badge .month { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; }
.termin-info h3, .termin-info h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.1rem; }
.termin-info .termin-time { font-size: 0.8rem; color: var(--gray); }

.alle-termine-link {
  display: block;
  text-align: center;
  padding: 0.8rem;
  background: var(--bg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  transition: background 0.2s, color 0.2s;
}
.alle-termine-link:hover { background: var(--red); color: var(--white); }

.quick-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--gray-light);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius);
  transition: background 0.15s, padding 0.2s;
}
.quick-link-item:last-child { border-bottom: none; }
.quick-link-item:hover { background: var(--red-light); padding-left: 0.9rem; }
.quick-link-item .ql-ico { margin-right: 0.5rem; }
.quick-link-item .ql-arrow { font-size: 0.78rem; color: var(--red); font-weight: 700; }

.sidebar-cta {
  position: relative;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sidebar-cta::before {
  content: '';
  position: absolute;
  top: -30px; right: -50px;
  width: 140px; height: 200px;
  background: rgba(255,255,255,0.07);
  transform: skewX(-20deg);
}
.sidebar-cta h3, .sidebar-cta h4 { color: var(--white); font-size: 1.35rem; text-transform: uppercase; position: relative; }
.sidebar-cta p { font-size: 0.9rem; opacity: 0.9; margin: 0.4rem 0 1.1rem; position: relative; }
.sidebar-cta .btn { background: var(--white); color: var(--red); position: relative; }

/* ============================================================
   Info / Feature blocks
   ============================================================ */
.info-tile {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.9rem;
}
.info-tile .ico-box {
  width: 48px; height: 48px;
  flex-shrink: 0;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--white);
}
.info-tile.red .ico-box { background: var(--red); }
.info-tile h3, .info-tile h4 { font-family: var(--font-body); font-size: 0.78rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.2rem; }
.info-tile p  { font-weight: 600; font-size: 0.95rem; }
.info-tile a  { color: var(--navy); }
.info-tile a:hover { color: var(--red); }

.feature-list { display: grid; gap: 0.8rem; }
.feature-item { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.95rem; }
.feature-item .check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--red-light);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 2px;
}

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 3px;
  background: var(--gray-light);
}
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem; top: 5px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--red);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 2px var(--red);
}
.timeline-year { font-family: var(--font-head); font-weight: 800; font-style: italic; font-size: 1.3rem; color: var(--red); }
.timeline-item h3, .timeline-item h4 { font-size: 1.1rem; font-weight: 700; margin: 0.15rem 0 0.3rem; }
.timeline-item p  { font-size: 0.92rem; color: var(--gray); }

/* CTA banner */
.cta-banner {
  position: relative;
  background:
    linear-gradient(115deg, rgba(10,18,38,0.97) 0%, rgba(200,16,46,0.92) 100%),
    var(--navy-dark);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cta-banner::before,
.cta-banner::after {
  content: '';
  position: absolute;
  top: -40px; bottom: -40px;
  width: 70px;
  background: rgba(255,255,255,0.05);
  transform: skewX(-20deg);
}
.cta-banner::before { left: 8%; }
.cta-banner::after  { right: 12%; width: 34px; }
.cta-banner h2 { color: var(--white); position: relative; z-index: 1; }
.cta-banner p { max-width: 560px; margin: 0.8rem auto 1.8rem; opacity: 0.9; position: relative; z-index: 1; }
.cta-banner .btn { position: relative; z-index: 1; }

/* Partner / Sponsoren */
.partner-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.partner-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  background: var(--white);
  border: 1px dashed var(--gray-light);
  border-radius: var(--radius);
  color: var(--gray);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0.8rem;
  filter: grayscale(1);
  opacity: 0.85;
  transition: filter 0.2s, opacity 0.2s, border-color 0.2s;
}
.partner-tile:hover { filter: none; opacity: 1; border-color: var(--red); color: var(--navy); }
/* Echtes Logo statt Platzhaltertext: solider statt gestrichelter Rand,
   Bild innerhalb der Kachel begrenzen. Graustufen-/Hover-Effekt oben gilt
   unverändert weiter. */
.partner-tile.has-logo { border-style: solid; padding: 0.6rem; }
.partner-tile.has-logo img { max-height: 44px; width: auto; max-width: 100%; }

/* Download-Karten */
.download-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: var(--navy);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.download-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(200,16,46,0.35); }
.download-card .dl-ico {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--red-light);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.download-card h3, .download-card h4 { font-size: 1.1rem; }
.download-card .dl-meta { font-size: 0.78rem; color: var(--gray); }

/* ============================================================
   Formulare
   ============================================================ */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-card h3 { margin-bottom: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--navy);
}
.form-group label .req { color: var(--red); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
  /* Kräftiger Ring statt des früheren 12%-Schattens: der Fokus muss als
     alleiniger Indikator klar erkennbar sein. */
  box-shadow: 0 0 0 3px rgba(16,28,56,0.55);
}
.form-group input.error,
.form-group textarea.error,
.form-group select.error { border-color: var(--red); }
.form-error { display: none; font-size: 0.78rem; color: var(--red); margin-top: 0.25rem; }
.form-group.has-error .form-error,
.checkbox-group.has-error .form-error { display: block; }
.form-hint { font-size: 0.78rem; color: var(--gray); margin-top: 0.3rem; }

/* Überschriften in Kartenoptik: erlauben korrekte Ebenen (h2 statt h3 usw.),
   ohne die große Display-Optik der Basis-Headings zu übernehmen. */
h2.card-h {
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: none;
}
h3.h-sub { font-size: 1.1rem; }

/* Überschrift einer Checkbox-Gruppe – gleiche Optik wie ein Feld-Label */
.form-group .group-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--navy);
}
.form-group .group-label .req { color: var(--red); }

.form-fieldset {
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem 0.9rem;
  margin-bottom: 1.25rem;
}
.form-fieldset legend {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  padding: 0 0.5rem;
}
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1rem; }
.check-grid label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.3rem 0;
  cursor: pointer;
}
.check-grid input { accent-color: var(--red); width: 17px; height: 17px; }

/* Aufklappbare Kursauswahl unter der Breitensport-Checkbox */
.kurs-auswahl {
  margin-top: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--red);
  background: var(--bg);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.kurs-auswahl[hidden] { display: none; }
.kurs-auswahl-hint {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0 0 0.6rem;
}
.kurs-auswahl .check-grid label { font-weight: 400; }

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1.2rem;
}
/* Fehlermeldung unter der Checkbox in voller Breite */
.checkbox-group .form-error { flex-basis: 100%; margin-top: 0; }
.checkbox-group input { width: auto; margin-top: 3px; accent-color: var(--red); }
.checkbox-group.has-error label { color: var(--red); }

.success-msg {
  display: none;
  background: #e6f4ea;
  border: 1px solid #b7dfc2;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: #1e6b34;
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.success-msg.show { display: block; }
.error-msg {
  background: #fdecee;
  border-color: #f2b8bf;
  color: var(--red);
}
/* Honeypot gegen Spam-Bots: für Menschen unsichtbar */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   Accordion
   ============================================================ */
.accordion { display: grid; gap: 0.8rem; }
.acc-item {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.acc-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.acc-header .acc-ico {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--red-light);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.25s;
}
.acc-item.open .acc-ico { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.acc-body-inner { padding: 0 1.4rem 1.25rem; font-size: 0.93rem; color: var(--gray); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  margin-top: 4rem;
  border-top: 4px solid var(--red);
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  gap: 2.5rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-logo .logo-img { height: 56px; }
.footer-logo .logo-text { color: var(--white); }
.footer-logo .logo-text small { color: var(--gold); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }

.footer-col h4 {
  color: var(--white);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.footer-col ul li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.88rem;
  margin-bottom: 0.65rem;
}
.footer-col ul li .ico { color: var(--gold); margin-top: 2px; width: 17px; height: 17px; }
.footer-col a { color: rgba(255,255,255,0.8); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-nav-links a { display: block; padding: 0.25rem 0; font-size: 0.88rem; }

.footer-social { display: flex; gap: 0.7rem; }
.social-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.2s, transform 0.2s;
}
.social-btn:hover { background: var(--red); transform: translateY(-3px); }
.social-btn svg { width: 18px; height: 18px; fill: currentColor; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.2rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.82rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.7); }
.footer-bottom-links a:hover { color: var(--gold); }

/* ============================================================
   Utilities
   ============================================================ */
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.text-muted { color: var(--gray); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .slide, .slider-progress { transition: none !important; }
  /* Auch alle übrigen Bewegungen stilllegen: Hover-Anhebungen, ein- und
     ausfahrende Menüs/Panels, Dropdown- und Icon-Animationen. */
  .btn:hover, .card:hover, .sport-card:hover, .social-btn:hover { transform: none; }
  .btn, .card, .sport-card, .social-btn, .back-to-top, .main-nav,
  .nav-dropdown, .nav-arrow, .hamburger span, .slider-dots button,
  .acc-body, .kurs-detail, .acc-chevron, .kurs-chevron {
    transition: none !important;
  }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 900;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--navy); }

/* Map embed */
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow);
  line-height: 0;
}
.map-embed iframe { width: 100%; height: 380px; border: 0; }

/* Zwei-Klick-Platzhalter: Google Maps lädt erst nach Zustimmung (main.js) */
.map-consent {
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  line-height: 1.65;
}
.map-consent-note {
  max-width: 460px;
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--gray);
}
.map-consent-note strong { color: var(--navy); }
.map-consent-note .btn { margin-top: 1rem; }
.map-consent-alt { margin-top: 0.9rem; font-size: 0.85rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .nav-links > li > a { padding: 0.6rem 0.6rem; font-size: 1rem; }
  .logo-text { display: none; }
  .partner-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .match-center { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip-inner { grid-template-columns: repeat(2, 1fr); row-gap: 1.25rem; }
}

@media (max-width: 860px) {
  /* backdrop-filter wuerde den Header zum Containing Block fuer das
     fixe Mobile-Menue machen und es abschneiden */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--white); }
  .hamburger { display: flex; }
  .nav-inner { gap: 0.75rem; }
  .header-cta { margin-left: auto; }
  .header-cta .btn { font-size: 0.85rem; padding: 0.5rem 1rem; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    bottom: 0;
    background: var(--white);
    overflow-y: auto;
    padding: 1rem 1.25rem 3rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    margin-left: 0;
    z-index: 999;
  }
  .main-nav.open { transform: translateX(0); }

  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links > li { border-bottom: 1px solid var(--gray-light); }
  .nav-links > li > a {
    padding: 1rem 0.5rem;
    font-size: 1.25rem;
    justify-content: space-between;
  }
  .nav-links > li > a::after { display: none; }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--red-light);
    margin: 0 0 0.8rem 0.5rem;
    padding: 0;
    display: none;
    min-width: 0;
  }
  .nav-links > li.open .nav-dropdown { display: block; }

  .slider-arrow { display: none; }
  .partner-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 3rem 0; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  /* Hero-Slider: Titel + Text sind bei echten (langen) Beitragstiteln auf
     schmalen Screens oft so hoch, dass sie in den kaum abgedunkelten
     oberen Bildbereich rutschen (schlecht lesbar) – deshalb hier ein
     stärkerer Verlauf, ein kleinerer Titel und ein gekürzter Text. Die
     Buttons waren zusätzlich per width:100% übergroß und haben durch die
     zwei vollen Zeilen selbst zur Höhe beigetragen. */
  .hero-slider { height: 560px; }
  .slide::before {
    background:
      linear-gradient(to top, rgba(10,18,38,0.97) 0%, rgba(10,18,38,0.8) 55%, rgba(10,18,38,0.45) 100%),
      linear-gradient(100deg, rgba(10,18,38,0.55) 0%, rgba(10,18,38,0) 60%);
  }
  .slide-content { padding-bottom: 4.5rem; }
  .slide-content h2 { font-size: clamp(1.4rem, 7vw, 3.3rem); }
  .slide-content p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .slide-actions { margin-top: 1.1rem; }
  .slide-actions .btn { font-size: 0.9rem; padding: 0.6rem 1.2rem; }
  .form-row, .check-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .partner-strip { grid-template-columns: 1fr 1fr; }
}


/* ============================================================
   Gruppiertes Sportangebot-Dropdown
   ============================================================ */
/* min-width nur ab Tablet aufwärts – auf dem Handy ist das Dropdown ein
   statischer Block in voller Spaltenbreite (siehe Mobil-Regel min-width:0).
   Ohne diese Begrenzung würde die 252px hier die Mobil-Regel überschreiben
   (spätere Regel gleicher Spezifität gewinnt) und den Inhalt seitlich
   über den Bildschirmrand drücken. */
@media (min-width: 861px) {
  .nav-dropdown { min-width: 252px; }
}
.nav-dropdown .dropdown-heading {
  display: block;
  padding: 0.35rem 1.25rem 0.1rem;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray);
}
.nav-dropdown hr {
  border: none;
  border-top: 1px solid var(--gray-light);
  margin: 0.45rem 1.25rem;
}
.nav-dropdown a.dd-main { font-weight: 700; }
.nav-dropdown a.dropdown-sub {
  position: relative;
  padding: 0.3rem 1.25rem 0.3rem 3.4rem;
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--gray);
}
.nav-dropdown a.dropdown-sub::before {
  content: '›';
  position: absolute;
  left: 2.7rem;
  top: 50%;
  transform: translateY(-54%);
  color: var(--red);
  font-weight: 700;
  line-height: 1;
}
.nav-dropdown a.dropdown-sub:hover { color: var(--red); }

/* ============================================================
   Aufklappbare Kurskarten (Breitensport)
   ============================================================ */
.kurs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  align-items: start;
}
.kurs-karte {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.kurs-karte:hover { box-shadow: var(--shadow); }
.kurs-karte.open { border-color: var(--red); box-shadow: var(--shadow); }

/* Anmelde-Button in der aufgeklappten Kurskarte: klar als Button erkennbar
   (rot gefüllt, eigene Zeile), auf schmalen Bildschirmen volle Breite. */
.kurs-detail .kurs-anmelden {
  display: flex;
  width: fit-content;
  margin-top: 1.1rem;
}
.kurs-detail .kurs-anmelden .ico { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .kurs-detail .kurs-anmelden { width: 100%; }
}

.kurs-header {
  width: 100%;
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: background 0.15s;
}
.kurs-header:hover,
.kurs-karte.open .kurs-header { background: var(--bg); }

/* Umschlag-Überschrift um Kurs- und FAQ-Buttons: macht die Titel für
   Screenreader als Überschrift navigierbar, ohne die Optik zu ändern
   (neutralisiert die h3-Basisregeln, der Button stylt sich selbst). */
.toggle-heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: normal;
}
.toggle-heading > button { width: 100%; }

.kurs-header .kurs-ico {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.kurs-header .kurs-main { flex: 1; min-width: 0; }
.kurs-header .kurs-title {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.15;
  color: var(--navy);
}
.kurs-header .kurs-teaser {
  display: block;
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 0.1rem;
}
.kurs-header .kurs-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}
.kurs-header .kurs-right .card-tag { margin-bottom: 0; }
.kurs-chevron {
  font-size: 0.62rem;
  color: var(--gray);
  transition: transform 0.25s, color 0.25s;
}
.kurs-karte.open .kurs-chevron { transform: rotate(180deg); color: var(--red); }

.kurs-detail { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.kurs-detail-inner { padding: 1rem 1.15rem 1.25rem; border-top: 1px solid var(--gray-light); }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.detail-item .lbl {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 0.1rem;
}
.detail-item .val { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
/* Über die ganze Zeile: z. B. Übungsleitung mit mehreren Namen */
.detail-item.wide { grid-column: 1 / -1; }
.kurs-detail p { font-size: 0.85rem; color: var(--gray); line-height: 1.7; }

@media (max-width: 860px) {
  .kurs-grid { grid-template-columns: 1fr; }
  .nav-dropdown .dropdown-heading { padding-left: 0.75rem; }
  .nav-dropdown hr { margin: 0.45rem 0.75rem; }
  .nav-dropdown a.dropdown-sub { padding-left: 3.1rem; }
  .nav-dropdown a.dropdown-sub::before { left: 2.2rem; }
}


/* ============================================================
   Sport-Kacheln: 6 Abteilungen
   ============================================================ */
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
@media (max-width: 1080px) { .grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .grid-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid-6 { grid-template-columns: 1fr; } }

/* ============================================================
   WordPress-Ergänzungen
   ------------------------------------------------------------
   Alles ab hier gehörte nicht zum HTML-Entwurf, sondern ist für
   WordPress nötig: Klassen, die der Editor selbst erzeugt
   (Bildausrichtung, Bildunterschriften), sowie Blätter-Navigation
   und Kommentare. Der obere Teil der Datei ist unverändert.
   ============================================================ */

/* ---------- Bildausrichtung aus dem Editor ---------- */
.alignleft {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
}
.alignright {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
}
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.alignwide,
.alignfull { max-width: 100%; }

.wp-caption { max-width: 100%; }
.wp-caption img { display: block; max-width: 100%; height: auto; }
.wp-caption-text,
.wp-element-caption,
.gallery-caption {
  font-size: 0.85rem;
  color: var(--gray);
  padding-top: 0.5rem;
  text-align: center;
}

.sticky { position: relative; }
.bypostauthor > .comment-body { border-left: 3px solid var(--red); }

/* ---------- Nur für Screenreader ---------- */
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--white);
  clip-path: none;
  color: var(--navy);
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ---------- Beitragsinhalt aus dem Editor ---------- */
/* Der gesamte Beitragsinhalt darf nie breiter werden als seine Spalte –
   sonst wird der Text auf dem Handy rechts abgeschnitten. Deshalb: lange
   Wörter/URLs umbrechen, Medien auf 100% begrenzen, breite Blöcke scrollbar. */
.entry-content {
  overflow-wrap: break-word;
  word-break: break-word;
}
.entry-content > * + *,
.card > .wp-block-group > * + * { margin-top: 1rem; }
.card img,
.entry-content img,
.entry-content video,
.entry-content iframe,
.entry-content embed,
.entry-content object { max-width: 100%; height: auto; }
/* Feste width/height-Attribute aus dem Editor überschreiben, damit ein großes
   Bild niemals breiter als seine Spalte wird. !important schlägt die
   HTML-Attribute (z. B. width="1200") sicher. */
.entry-content img {
  max-width: 100% !important;
  height: auto !important;
}
.entry-content figure {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.entry-content figure img { width: 100%; }
.entry-content iframe { width: 100%; }
.entry-content a { overflow-wrap: break-word; word-break: break-word; }
.entry-content ul,
.entry-content ol { padding-left: 1.4rem; }
.entry-content li + li { margin-top: 0.35rem; }
.entry-content blockquote {
  border-left: 4px solid var(--red);
  padding-left: 1.2rem;
  color: var(--gray);
  font-style: italic;
}
/* Code-Blöcke und sehr breite Tabellen dürfen innerhalb des Beitrags
   horizontal scrollen, statt die ganze Seite zu verbreitern. */
.entry-content pre {
  overflow-x: auto;
  max-width: 100%;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius);
}
.entry-content .wp-block-table,
.entry-content figure.wp-block-table { overflow-x: auto; max-width: 100%; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th,
.entry-content td { border-bottom: 1px solid var(--gray-light); padding: 0.6rem 0.5rem; text-align: left; }

/* ---------- Blätter-Navigation ---------- */
.sfd-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.sfd-pagination .page-numbers {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 0.95rem;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  color: var(--navy);
  text-decoration: none;
  background: var(--white);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.sfd-pagination a.page-numbers:hover,
.sfd-pagination a.page-numbers:focus-visible {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}
.sfd-pagination .page-numbers.current {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.sfd-pagination .page-numbers.dots {
  border-color: transparent;
  background: none;
}

/* ---------- Kommentare ---------- */
.comment-list { list-style: none; padding: 0; }
.comment-list ol.children { list-style: none; padding-left: 1.5rem; }
.comment-list li { margin-bottom: 1.25rem; }
.comment-body {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.comment-meta { font-size: 0.85rem; color: var(--gray); margin-bottom: 0.5rem; }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 0.6rem; }
.comment-author .fn { font-weight: 700; font-style: normal; color: var(--navy); }
.comment-reply-link {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  color: var(--red);
}
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.9rem; }

/* Kommentar-Eingabefelder: gleiche Optik und Breitenbegrenzung wie die
   übrigen Formulare. Ohne width:100% + max-width rendert WordPress die Felder
   zu breit, sodass sie auf dem Handy über den Rand ragen.
   Zusätzlich über die festen WordPress-IDs (#comment, #author …) angesprochen,
   damit die Regel unabhängig von der Formular-CSS-Klasse sicher greift. */
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea,
#comment,
#author,
#email,
#url,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.comment-form textarea {
  min-height: 130px;
  resize: vertical;
}
/* Das cols-Attribut von WordPress darf keine Mindestbreite erzwingen. */
#comment { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
/* Der Kommentar-Container selbst bleibt in der Spaltenbreite. */
#comments { max-width: 100%; overflow: hidden; }
#respond { max-width: 100%; }
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(16,28,56,0.55);
}
/* Checkbox "Daten speichern" plus Label nebeneinander statt volle Breite */
.comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.comment-form .comment-form-cookies-consent input {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.comment-form .comment-form-cookies-consent label {
  display: inline;
  font-weight: 400;
  font-size: 0.85rem;
  margin: 0;
}

/* ---------- Kategorie-Etiketten der Meldungen ----------
   Standard ist Rot; diese Klassen entsprechen den Farben, die im
   HTML-Entwurf noch als style="background:…" in den Karten standen. */
.card-tag.darts      { background: #00695c; }
.card-tag.badminton  { background: #6a1b9a; }
.card-tag.fitness    { background: #e65100; }
.card-tag.volleyball { background: #0277bd; }

/* ---------- Etiketten im Startseiten-Slider ----------
   Gleiche Kategoriefarben wie auf den Meldungs-Karten. */
.slide-tag.green      { background: #1e7a3c; }
.slide-tag.darts      { background: #00695c; }
.slide-tag.badminton  { background: #6a1b9a; }
.slide-tag.fitness    { background: #e65100; }
.slide-tag.volleyball { background: #0277bd; }

/* Bei nur einer Folie sind Pfeile, Punkte und Pause überflüssig. */
.hero-slider.single .slider-dots,
.hero-slider.single .slider-arrow,
.hero-slider.single .slider-pause,
.hero-slider.single .slider-progress { display: none; }

/* ---------- Kennzeichnung externer Links ----------
   Kleiner Pfeil hinter Links, die die Vereinsseite verlassen (z. B. Shop). */
.dd-extern {
  font-size: 0.78em;
  margin-left: 0.28em;
  opacity: 0.65;
  vertical-align: 0.08em;
}
.nav-dropdown a:hover .dd-extern { opacity: 1; }

/* ============================================================
   Beitragstabelle auf schmalen Displays
   ------------------------------------------------------------
   Problem: Die zweispaltige Preistabelle hat min-width: 540px und
   eine lange Spaltenüberschrift. Auf dem Handy passte sie nicht ins
   Bild – man musste den Tabellenkasten seitlich schieben, um die
   Beträge zu sehen.

   Lösung: Unter 620px wird die Tabelle zu einer Liste. Jede Zeile ist
   ein eigener Block; der Betrag steht rechts neben der jeweiligen
   Bezeichnung. Nichts muss mehr horizontal gescrollt werden. Das HTML
   bleibt eine normale <table> – nur die Darstellung ändert sich.
   ============================================================ */
@media (max-width: 620px) {
  /* Der Wrapper um die Beitragstabelle braucht keine eigene Umrandung
     und keine Scrollleiste mehr – die einzelnen Zeilen sind jetzt Karten.
     Bewusst ohne :has(), damit es auch in älteren Browsern greift; die
     Klasse sitzt direkt am Wrapper (siehe page-mitglied-werden.php). */
  .beitrags-wrap {
    overflow-x: visible;
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  /* Tabellenraster auflösen: alles wird zu Blöcken */
  .beitrags-tabelle,
  .beitrags-tabelle tbody,
  .beitrags-tabelle tr,
  .beitrags-tabelle td {
    display: block;
    width: auto;
    min-width: 0;
  }

  /* Die Kopfzeile wird nicht mehr gebraucht (die Beträge sind ja
     direkt beschriftet) – für Screenreader bleibt sie erhalten. */
  .beitrags-tabelle thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* Jede Beitragszeile wird eine eigene Karte */
  .beitrags-tabelle tr {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 0.85rem 1.1rem;
    margin-bottom: 0.7rem;
  }
  .beitrags-tabelle tr:last-child { margin-bottom: 0; }
  .beitrags-tabelle tbody tr:hover td { background: transparent; }

  /* Bezeichnung der Mitgliedschaft */
  .beitrags-tabelle td {
    padding: 0;
    border: none;
  }
  .beitrags-tabelle td[data-label="Mitgliedschaft"] {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.35rem;
    padding-right: 0;
  }

  /* Betragszeile: Label links, Betrag rechts */
  .beitrags-tabelle td.amount {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    padding-top: 0.35rem;
    border-top: 1px dashed var(--gray-light);
  }
  .beitrags-tabelle td.amount::before {
    content: attr(data-label);
    font-weight: 500;
    font-size: 0.82rem;
    color: var(--gray);
    text-transform: none;
    letter-spacing: 0;
  }
}

/* ============================================================
   Vorstand: Personen-Grids (Kassiererin/Schriftführer, Beisitzer)
   ------------------------------------------------------------
   Diese Blöcke hatten feste Inline-Grids (2 bzw. 3 Spalten) ohne
   Mobil-Umbruch. Dadurch standen die Karten auf dem Handy nebeneinander
   und wurden rechts abgeschnitten. Als echte Klassen brechen sie jetzt
   auf schmalen Displays sauber um. Zentriert, damit eine einzelne Karte
   in der letzten Reihe nicht links "allein" steht.
   ============================================================ */
.org-person-grid {
  display: grid;
  gap: 1rem;
  margin: 0 auto;
  justify-content: center;
}
.org-person-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 600px;
}
.org-person-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 900px;
}

/* Tablet: höchstens zwei nebeneinander */
@media (max-width: 860px) {
  .org-person-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 600px; }
}

/* Handy: alles untereinander */
@media (max-width: 620px) {
  .org-person-grid-2,
  .org-person-grid-3 { grid-template-columns: 1fr; max-width: 340px; }
}

/* ============================================================
   Druckansicht
   Kontakt-, Termin- und Beitragsseiten werden erfahrungsgemäß
   ausgedruckt: Bedienelemente raus, dunkle Flächen aufhellen.
   ============================================================ */
@media print {
  .site-header,
  .main-nav,
  .hamburger,
  .header-cta,
  .hero-slider,
  .back-to-top,
  .skip-link,
  .slider-pause,
  .cta-banner,
  .sidebar-cta,
  .site-footer .footer-social,
  .map-consent-note .btn,
  .comment-form,
  #respond {
    display: none !important;
  }

  body { background: #fff; color: #000; }

  .page-hero {
    background: none !important;
    color: #000;
    clip-path: none;
    padding: 1rem 0;
    margin-bottom: 0;
  }
  .page-hero h1 { color: #000; }
  .page-hero .breadcrumb,
  .page-hero .breadcrumb a,
  .page-hero p.lead { color: #333; }

  .section { padding: 1rem 0; }
  .card, .info-tile, .sidebar-box, .kurs-karte, .acc-item { box-shadow: none; border: 1px solid #ccc; }
  .reveal { opacity: 1 !important; transform: none !important; }

  /* Zugeklappte Kurs- und FAQ-Inhalte im Ausdruck vollständig zeigen */
  .acc-body, .kurs-detail { max-height: none !important; overflow: visible !important; }

  a { color: #000; text-decoration: underline; }
}

/* ---------- FuPa-Widget (Fußball – Aktive) ---------- */
.fupa-widget { padding: 1.25rem; min-height: 200px; overflow: hidden; }
.fupa-widget a { color: var(--red); }

/* ---------- Vereinsshop-Karte (Tennis) ---------- */
.shop-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--white);
  border: 1px solid #e3e5ec;
  border-left: 6px solid var(--red);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  box-shadow: 0 2px 10px rgba(18, 26, 56, 0.05);
}
.shop-card-ico {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
}
.shop-card-ico .ico { width: 48px; height: 48px; }
.shop-card-body .section-title { margin-bottom: 1rem; }
.shop-card-body p { max-width: 640px; margin-bottom: 1.5rem; }
@media (max-width: 640px) {
  .shop-card { flex-direction: column; align-items: flex-start; padding: 1.5rem; gap: 1.25rem; }
  .shop-card-ico { width: 64px; height: 64px; }
  .shop-card-ico .ico { width: 32px; height: 32px; }
}
