/*
Theme Name:  Sportfreunde Dellmensingen
Theme URI:   https://www.sf-dellmensingen.de/
Author:      Sportfreunde Dellmensingen 1921 e.V.
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.6.0
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:        sports, club, one-column, custom-menu, custom-logo, responsive-layout
*/

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

/* ---------- Fonts ----------
   Werden in functions.php via wp_enqueue_style geladen (siehe sfd_scripts()).
   Dort auch die Stelle, an der man sie durch lokal gehostete Fonts ersetzt. */

/* ---------- 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;

  /* Kompatibilität */
  --off-white:  #f2f4f8;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
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 */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  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.dark { background: var(--navy-dark); }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark .section-sub { color: rgba(255,255,255,0.7); }

.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); 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%); }

/* ============================================================
   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 { 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: all 0.22s ease;
  border-top: 3px solid var(--red);
}
.nav-links > li:hover .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: all 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);
  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.navy { background: var(--navy-light); }
.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);
  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; }

.slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.45rem;
}
.slider-dots button {
  width: 22px; height: 8px;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transform: skewX(-20deg);
  transition: all 0.3s ease;
}
.slider-dots button.active { width: 38px; 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);
}

/* ============================================================
   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; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }

.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; }
.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;
}
.ico-chip.navy { background: #e7ebf5; color: var(--navy); }

/* 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 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;
}

.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; }
.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 h4 { font-size: 1rem; 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 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 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 h4 { 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); }

/* 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 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-row-3 { display: grid; grid-template-columns: 1fr 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);
  box-shadow: 0 0 0 3px rgba(16,28,56,0.12);
}
.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 { display: block; }
.form-hint { font-size: 0.78rem; color: var(--gray); margin-top: 0.3rem; }

.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;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1.2rem;
}
.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; }

/* ============================================================
   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) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .slide, .slider-progress { 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: all 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; }

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

@media (max-width: 640px) {
  .section { padding: 3rem 0; }
  .grid-3, .grid-2, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-slider { height: 560px; }
  .slide-content { padding-bottom: 4.5rem; }
  .slide-actions .btn { width: 100%; }
  .form-row, .form-row-3, .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
   ============================================================ */
.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); }

.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); }

.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); }
.kurs-detail p { font-size: 0.85rem; color: var(--gray); line-height: 1.7; }

/* Vom Verein zu pflegende Platzhalter */
.edit-val {
  border-bottom: 1.5px dashed var(--gold);
  cursor: help;
}

@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 ---------- */
.entry-content > * + *,
.card > .wp-block-group > * + * { margin-top: 1rem; }
.card img,
.entry-content img { max-width: 100%; height: auto; }
.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;
}
.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; }

/* ---------- 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 und Punkte überflüssig. */
.hero-slider.single .slider-dots,
.hero-slider.single .slider-arrow,
.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;
  }
}
