/* ──────────────────────────────────────────────────────────────────
   Responsive overrides for SV Fortuna St. Jürgen Lübeck
   Breakpoints: 1024px (tablet landscape), 768px (tablet), 480px (phone)
   Loaded AFTER site.css to override fixed pixel values from the design.
   ────────────────────────────────────────────────────────────────── */

img, svg, video { max-width: 100%; height: auto; }

/* ────────────────────────────────────────────────────────────────────
   Hero polish: stronger Fortuna blue, fully opaque stats, no thin
   divider line between the two title halves.
   ──────────────────────────────────────────────────────────────────── */

/* Belt-and-braces: force the hex-net background to live BELOW the hero
   text and give the text its own stacking context. The site.css order is
   correct (pitch z-index:1, content z-index:10) but we lock it down here
   so a stray browser cache or future CSS tweak can't push the net on top. */
.hero-pitch { z-index: 1 !important; pointer-events: none; }
.hero-content { z-index: 30 !important; isolation: isolate; }

/* Solid Fortuna blue, fully opaque. We pin the fill colour explicitly
   (color + -webkit-text-fill-color so no inherited text-fill-color rule
   can render the glyphs transparent) and stack 8-direction solid shadows
   as a hard outline. That way the hex net pattern behind the hero CAN
   NOT bleed through the letter bodies on any browser. */
.hero-title .blue {
  color: #1a4fa0;
  -webkit-text-fill-color: #1a4fa0;
  opacity: 1;
  text-shadow:
    -1px -1px 0 #1a4fa0,
     1px -1px 0 #1a4fa0,
    -1px  1px 0 #1a4fa0,
     1px  1px 0 #1a4fa0,
    -1px  0   0 #1a4fa0,
     1px  0   0 #1a4fa0,
     0   -1px 0 #1a4fa0,
     0    1px 0 #1a4fa0,
     0 4px 22px rgba(15, 47, 96, 0.55);
}

/* Breathing room between the two title halves
   (between "ST. JÜRGEN" and "WO FUẞBALL") via a dedicated spacer span. */
.hero-title .title-gap {
  display: block;
  height: clamp(20px, 3vw, 40px);
}

/* Stats: numbers stay solid white, labels go from rgba(...,0.35) to a
   readable opacity. */
.hstat-num { color: #ffffff; opacity: 1; }
.hstat-lbl { color: rgba(255, 255, 255, 0.85); opacity: 1; }
.hero-stats { border-top-color: rgba(255, 255, 255, 0.18); }
.hero-stats .hstat-divider { background: rgba(255, 255, 255, 0.25); }

/* ────────────────────────────────────────────────────────────────────
   Nav dropdown for "Verein"
   ──────────────────────────────────────────────────────────────────── */
.nav-menu li.has-sub { position: relative; }
.nav-menu li.has-sub > a::after {
  content: " ▾";
  font-size: 10px;
  opacity: 0.7;
  margin-left: 4px;
}
.nav-menu .sub {
  position: absolute; top: 100%; left: 0;
  min-width: 220px;
  background: rgba(8, 9, 13, 0.98);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.nav-menu li.has-sub:hover > .sub,
.nav-menu li.has-sub:focus-within > .sub {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.nav-menu .sub a {
  display: block;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}
.nav-menu .sub a:hover { background: rgba(37, 99, 212, 0.18); color: #fff; }

/* Mobile menu: section heading + nested links */
.mobile-menu .m-section {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.45);
  margin: 18px 4px 4px;
}

/* ────────────────────────────────────────────────────────────────────
   Personen-Karten — gemeinsame Basis fuer Vorstand, Funktionstraeger,
   Trainer und Spieler (.person-*). Alle vier nutzen dieselbe kompakte
   Kachelgroesse und denselben "Spotlight"-Look: dunkle Karte, Foto bleibt
   hell/blau getoent und leuchtet foermlich, keine weisse Flaeche mehr.
   Seiten-/typ-spezifische Ergaenzungen (Grid, Jersey-Badge, Empty/Add-
   Zustaende) stehen bei ihrem jeweiligen Abschnitt weiter unten.
   ──────────────────────────────────────────────────────────────────── */
.person-card {
  display: flex; flex-direction: column;
  background: var(--mid); color: #fff;
  border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}
.person-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(37, 99, 212, 0.32);
  border-top-color: var(--blue-bright);
}
.person-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, rgba(45, 110, 230, 0.55) 0%, rgba(15, 47, 96, 0.45) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-photo-placeholder {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px; letter-spacing: 1px;
  color: #fff;
}
.person-body { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 3px; }
.person-role {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--blue-bright); text-transform: uppercase;
}
.person-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px; letter-spacing: 0.4px; color: #fff;
  line-height: 1.15;
}
.person-note { font-size: 11px; color: rgba(255,255,255,0.5); font-style: italic; }
.person-contact { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.person-link {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: rgba(255,255,255,0.8); text-decoration: none;
  min-width: 0;
}
.person-link:hover { color: #fff; }
.person-link-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; flex-shrink: 0;
  background: rgba(255,255,255,0.12); color: #fff;
  border-radius: 50%; font-size: 10px; font-weight: 700;
}
.person-link-text {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0;
}

/* Vorstand / Funktionstraeger page */
.board {
  background: var(--dark);
  padding: 60px 48px 100px;
}
.board-grid {
  display: grid;
  /* auto-fit statt auto-fill: leere Spalten-Slots kollabieren, sonst
     zentriert justify-content die ganze (teils unsichtbare) Spaltenreihe
     statt nur der tatsaechlich vorhandenen Karten. */
  grid-template-columns: repeat(auto-fit, 160px);
  gap: 14px;
  justify-content: center;
  max-width: 1200px; margin: 0 auto;
}

/* Closing legal note under the board cards — quiet, but framed enough to
   read as an official statement (§26 BGB names the executive board). */
.board-legal {
  max-width: 760px; margin: 48px auto 0;
  padding: 22px 26px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-left: 3px solid var(--blue-bright);
  border-radius: 10px;
}
.board-legal-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em;
  color: var(--blue-bright); text-transform: uppercase;
  margin-bottom: 8px;
}
.board-legal-text {
  font-size: 14.5px; line-height: 1.65;
  color: rgba(255,255,255,0.78);
  margin: 0;
}
.board-legal-text strong { color: #fff; font-weight: 600; }

@media (max-width: 768px) {
  .board { padding: 40px 16px 80px; }
  .board-legal { margin: 36px 0 0; padding: 18px 20px; }
}

/* ────────────────────────────────────────────────────────────────────
   Team detail page — everything aligns to the team photo's width.
   ──────────────────────────────────────────────────────────────────── */
.team-page { background: var(--dark); padding: 64px 24px 80px; }
.team-container { max-width: 900px; margin: 0 auto; width: 100%; text-align: center; }
.team-hero-content { max-width: none; text-align: center; margin: 0 auto; }
/* Liga-Anzeige direkt unter dem Mannschaftsnamen (sofern gepflegt). */
.team-hero-league {
  margin-top: 12px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: 0.10em;
  color: var(--blue);
  text-transform: uppercase;
}
/* Jahrgang-Anzeige unter dem Mannschaftsnamen — nur fuer Junioren/Juniorinnen.
   Sitzt unter der Liga, sofern beides gepflegt ist. */
.team-hero-years {
  margin-top: 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(16px, 2.0vw, 22px);
  letter-spacing: 0.10em;
  color: var(--blue-bright);
  text-transform: uppercase;
}
.team-section-label {
  /* .sec-label ist flex; deshalb centern wir das Inhalts-Layout
     (blaue Strich-Linie + Text) per justify-content statt text-align. */
  justify-content: center;
  text-align: center;
  color: var(--blue);
  margin: 48px 0 16px;
}
.team-empty { color: var(--muted); font-style: italic; margin: 12px 0; }
.team-back-link { margin-top: 48px; }

/* Trainer / Co-Trainer cards — nutzen die gemeinsame .person-card-Basis
   oben, hier nur noch Grid-Layout und die Sonderzustaende (leer/hinzufuegen). */
.coach-grid {
  display: grid;
  /* auto-fit statt fester 2 Spalten: mehr als zwei Trainer/Co-Trainer
     stellen sich nebeneinander, solange der Platz reicht, statt in eine
     neue Zeile umzubrechen. auto-fit (statt auto-fill) laesst leere
     Spalten-Slots kollabieren, sonst zentriert justify-content bei wenigen
     Trainern die ganze (teils unsichtbare) Spaltenreihe statt der Karten. */
  grid-template-columns: repeat(auto-fit, 160px);
  gap: 14px;
  margin: 28px auto 8px;
  justify-content: center;
}
/* Empty card uses the same footprint so columns stay aligned. */
.coach-card-empty {
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 14px 16px;
  color: #fff;
  display: flex; flex-direction: column; gap: 6px;
  justify-content: center; align-items: center;
  text-align: center;
  min-height: 100%;
}
.coach-empty-text { font-size: 11.5px; color: rgba(255,255,255,0.45); font-style: italic; }

/* "+" Karte zum Hinzufuegen eines Trainers/Co-Trainers - nur fuer Team-Editoren
   sichtbar (Model.CanEdit). Waehlt eine bestehende Person aus dem zentralen
   Coach-Pool aus, legt keine neue Person an. */
.coach-card-add {
  cursor: pointer;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(37, 99, 212, 0.5);
  border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  min-height: 100%;
  padding: 14px 16px;
  color: var(--blue-bright);
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.coach-card-add:hover { border-color: var(--blue-bright); background: rgba(37, 99, 212, 0.08); }
.coach-add-icon { font-size: 28px; line-height: 1; font-weight: 700; }
.coach-add-text { font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.3; }
/* Das Auswahlformular ist breiter als eine einzelne Karte - spannt beide
   Spalten und behaelt denselben dunklen Hintergrund wie die "+"-Karte,
   die es per HTMX ersetzt. */
.coach-card-add-form {
  grid-column: 1 / -1;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(37, 99, 212, 0.5);
  border-radius: 10px;
  padding: 14px 16px;
  color: #fff;
}
.coach-add-hint { font-size: 11.5px; color: rgba(255,255,255,0.5); margin-top: 8px; text-align: center; }
.coach-add-hint a { color: var(--blue-bright); }

/* Team description (HTML body) */
.team-description {
  color: #e7ecf3;
  text-align: center;
  font-size: 16px; line-height: 1.65;
  margin: 0 auto 8px;
  max-width: 760px;
}
.team-description p { margin-bottom: 10px; }
/* .editable (edit.css) setzt margin als Shorthand (-6px -10px) fuer den
   Hover-Rahmen und ueberschreibt damit das zentrierende "margin: auto" von
   oben - mit Bearbeitungsrecht rutschte die Box dadurch nach links.
   Zwei Klassen = hoehere Spezifitaet, gewinnt unabhaengig von der Reihenfolge. */
.team-description.editable {
  margin-left: auto;
  margin-right: auto;
}

.training-list { color: #e7ecf3; text-align: center; max-width: 760px; margin: 0 auto; }
.kader-toggle {
  display: flex; justify-content: center; align-items: center; gap: 12px;
  flex-wrap: wrap; margin: 48px 0 0;
}
.kader-hint {
  color: var(--muted); font-size: 13px; font-style: italic;
}

@media (max-width: 640px) {
  .staff-grid { grid-template-columns: 1fr; }
}

/* ────────────────────────────────────────────────────────────────────
   Dark-theme overrides — flips "Verein & Sportanlage" and "Trainingsplan"
   from the original light look (white card / off-white bg) to the dark
   look used by Hero / Vorstand / Partners. These rules sit AFTER site.css
   in the load order and intentionally override the defaults there.
   ──────────────────────────────────────────────────────────────────── */

/* — Verein & Sportanlage — */
.about {
  background: var(--dark);
  color: #fff;
}
.about-content .sec-label { color: var(--blue-bright); }
.about-content .sec-label::before { background: var(--blue-bright); }
.about-content .sec-title { color: #fff; }
/* Same grey as "WOCHE BESSER" in the Trainingsplan section below. */
.about-content .sec-title .dim { color: rgba(255,255,255,0.18); }
.about-p { color: rgba(255,255,255,0.72); }
.about-stats {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.10);
}
.as {
  background: rgba(255,255,255,0.04);
}
.as-n { color: var(--blue-bright); }
.as-l { color: rgba(255,255,255,0.55); }

/* "Training laeuft..."-Hinweis - eingeblendet, wenn die aktuelle Uhrzeit im
   Zeitfenster einer Trainingseinheit liegt (TrainingSessionExtensions.IsLiveNow).
   Im Startseiten-Dashboard (.wtrain-row). */
.training-live {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  color: #3ecb7a;
  margin-top: 4px;
}
.training-live-ball {
  display: inline-block; font-size: 13px; line-height: 1;
  animation: training-spin 1.4s linear infinite;
}
@keyframes training-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .training-live-ball { animation: none; }
}

/* ────────────────────────────────────────────────────────────────────
   Partners & Sponsors — the public section on the start page; managed
   under /admin/sponsors. Logos take centre stage; entries without a logo
   fall back to a typed name chip in the same grid.
   ──────────────────────────────────────────────────────────────────── */
.partners {
  background: var(--dark);
  padding: 96px 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.partners-intro {
  max-width: 760px; margin: 0 auto 48px; text-align: center;
}
.partners-intro .sec-label { color: var(--blue-bright); }
.partners-intro .sec-label::before { background: var(--blue-bright); }
.partners-intro .sec-label,
.partners-intro .sec-title { justify-content: center; }
.partners-intro .sec-title { color: #fff; }
.partners-intro .sec-title .dim { color: rgba(255,255,255,0.22); }
.partners-lead {
  font-size: 16px; line-height: 1.65; color: rgba(255,255,255,0.65);
  margin-top: 14px;
}
.partners-empty {
  text-align: center; font-style: italic; color: rgba(255,255,255,0.45);
  margin: 0 auto;
}
.partners-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.p-card {
  background: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px 14px;
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 170px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.p-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(37, 99, 212, 0.35);
  border-color: var(--blue-bright);
}
/* The logo box keeps a stable shape so wildly different logo sizes still
   feel uniform — square aspect, centred contain-fit, real padding so the
   logo never butts against the card edge. */
.p-card-logo {
  flex: 1 1 auto;
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  background: #fff; border-radius: 6px;
  padding: 8px;
  position: relative;
  overflow: hidden;
}
.p-card-logo img {
  display: block;
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain; object-position: center;
  filter: grayscale(15%);
  transition: filter .2s ease;
}
.p-card:hover .p-card-logo img { filter: grayscale(0%); }
/* Shown only when both logo and favicon fail to load (img onerror). */
.p-card-fallback {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; letter-spacing: 1px; color: var(--blue);
  text-align: center;
  width: 100%; height: 100%;
  align-items: center; justify-content: center;
}
.p-card-name {
  font-size: 13px; font-weight: 600; color: #4a5060;
  text-align: center; letter-spacing: 0.02em;
  flex-shrink: 0;
}
.p-card-name-only {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; letter-spacing: 1px; color: var(--blue);
  margin: auto 0;
  text-align: center;
  flex: 1 1 auto;
  display: flex; align-items: center; justify-content: center;
}
.p-card-static { cursor: default; }
.p-card-static:hover {
  transform: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.08);
}

@media (max-width: 768px) {
  .partners { padding: 64px 20px; }
  .partners-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .p-card { min-height: 120px; padding: 16px 14px; }
  .p-card-logo img { max-height: 60px; }
}

/* ────────────────────────────────────────────────────────────────────
   Team-Cards (Hauptseite) — Stretched-Link-Pattern: .tc-link-overlay deckt
   die ganze Karte unsichtbar ab und macht sie komplett klickbar, waehrend
   der Instagram-Button ein eigener, unabhaengig klickbarer Link bleibt
   (keine verschachtelten <a>-Tags, die sind ungueltiges HTML). Dadurch kann
   .tc-name-col als schrumpfender inline-block um den Namen herum den Button
   automatisch exakt mittig darunter zentrieren, egal wie lang der Name ist
   oder ob er umbricht.
   ──────────────────────────────────────────────────────────────────── */
.team-card {
  position: relative; overflow: hidden; display: block;
  background-color: var(--mid);
  /* Das Tornetz liegt jetzt als ::before in site.css und wird nur beim
     Hover eingeblendet (siehe dort) - hier nur noch die Ruhe-Flaeche.
     border-radius hier gesetzt, ueberschreibt bewusst den alten 12px-Wert
     aus site.css fuer eine deutlicher sichtbare, modernere Rundung. */
  border-top: 2px solid transparent;
  border-radius: 16px;
  transition: background-color 0.25s, border-top-color 0.25s;
}
.team-card .tc-link-overlay { position: absolute; inset: 0; z-index: 1; }
.team-card .tc-body { position: relative; padding: 28px 32px; }
.tc-name-col { position: relative; display: inline-block; }
.team-card:hover { background-color: rgba(26,79,160,0.12); border-top-color: var(--blue); }

/* Team-Sponsor-Band — einzige Darstellung des Sponsors auf der Karte, pro
   Team im Admin aktivierbar (Zuordnung des Sponsors selbst passiert im
   Sponsoren-Adminbereich). Diagonales Eckband oben rechts, wie ein
   Shop-Störer; wie das Tornetz erst beim Hover sichtbar. */
.tc-ribbon-wrap {
  position: absolute;
  top: 0; right: 0; width: 100px; height: 100px;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.tc-ribbon {
  position: absolute;
  top: 18px; right: -30px; width: 140px;
  transform: rotate(45deg) translateY(6px);
  background: linear-gradient(120deg, var(--blue), var(--blue-bright));
  text-align: center;
  padding: 4px 0;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.team-card:hover .tc-ribbon { opacity: 1; transform: rotate(45deg) translateY(0); }

/* Liga-Stempel — runder, leicht schraeger Stempel unten rechts, pro Team im
   Admin aktivierbar. In Ruhe wie eingedrueckt (blass), "landet" beim Hover. */
.tc-stamp {
  position: absolute;
  right: 14px; bottom: 12px;
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 4px;
  border: 1.5px solid rgba(37,99,212,0.5);
  outline: 1px solid rgba(37,99,212,0.25); outline-offset: 3px;
  transform: rotate(-13deg) scale(0.93);
  opacity: 0.24;
  transition: opacity .4s ease, transform .5s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
.team-card:hover .tc-stamp { opacity: 0.95; transform: rotate(-7deg) scale(1); }
.tc-stamp-top { font-family: 'Special Elite', 'Courier New', monospace; font-size: 6.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-bright); }
.tc-stamp-mid { font-family: 'Special Elite', 'Courier New', monospace; font-size: 10px; font-weight: 700; line-height: 1.2; color: #fff; margin-top: 2px; }

.team-card-sm .tc-stamp { width: 54px; height: 54px; right: 10px; bottom: 8px; }
.team-card-sm .tc-stamp-top { font-size: 5.5px; }
.team-card-sm .tc-stamp-mid { font-size: 8px; }
.team-card-sm .tc-ribbon-wrap { width: 70px; height: 70px; }
.team-card-sm .tc-ribbon { top: 12px; right: -26px; width: 100px; font-size: 7.5px; }

/* Instagram-Button — sitzt in .tc-name-col (schrumpft auf Namensbreite) und
   damit automatisch exakt mittig unter dem Namen, erst beim Hover sichtbar.
   z-index 2 haelt ihn ueber dem .tc-link-overlay (z-index 1) unabhaengig
   klickbar. */
.team-card .tc-ig {
  position: absolute;
  top: 100%; left: 50%;
  transform: translate(-50%, 2px);
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(255,255,255,0.12);
  border-radius: 50%; text-decoration: none;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease, background .25s;
  z-index: 2;
}
.team-card:hover .tc-ig { opacity: 1; transform: translate(-50%, 10px); }
.team-card .tc-ig:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  transform: translate(-50%, 8px) scale(1.06);
}

/* Instagram-CTA auf der Mannschaftsseite (Hero) */
.team-instagram-cta {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 22px;
  padding: 10px 20px 10px 14px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff; text-decoration: none;
  border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.30);
}
.team-instagram-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(220, 39, 67, 0.50);
  color: #fff;
}
.team-instagram-icon { display: inline-flex; align-items: center; }

/* Sponsor-Admin: Team-Multi-Select als Pillen */
.sponsor-team-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 4px;
}
.sponsor-team-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: #f4f6fa; border: 2px solid transparent;
  border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--text);
  text-transform: none; letter-spacing: 0;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.sponsor-team-pill input { margin: 0; accent-color: var(--blue-bright); }
.sponsor-team-pill:hover { background: #ebeff5; }
.sponsor-team-pill:has(input:checked) {
  background: rgba(37, 99, 212, 0.10);
  border-color: var(--blue-bright);
}
.sponsor-team-cat {
  color: var(--muted); font-size: 11px; font-weight: 400; margin-left: 4px;
}

@media (max-width: 900px) {
  .team-card .tc-body { padding: 24px 22px; padding-bottom: 52px; }
  .tc-stamp { width: 60px; height: 60px; right: 10px; bottom: 10px; }
  .tc-stamp-top { font-size: 5.5px; }
  .tc-stamp-mid { font-size: 8.5px; }
}
@media (max-width: 600px) {
  .tc-ribbon-wrap { display: none; }
  .tc-stamp { width: 48px; height: 48px; }
  .tc-stamp-top { display: none; }
  .tc-stamp-mid { font-size: 7px; }
}

/* ────────────────────────────────────────────────────────────────────
   "Trainer werden" + "Kontakt" nebeneinander (Trainer-Spalte optional
   durch Admin schaltbar - wenn deaktiviert, faellt .week-cols auf eine
   Spalte zurueck statt eine leere zweite Spalte zu zeigen).
   ──────────────────────────────────────────────────────────────────── */
.trainer-section {
  background: var(--dark);
  padding: 96px 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
/* Beide Spalten sind jetzt linksbuendig (statt der alten zentrierten
   Trainer-Intro) - .sec-label/.sec-title bringen dafuer schon die
   richtigen Standardfarben mit, keine .trainer-intro-Ueberschreibung
   mehr noetig. */
.week-cols-single { grid-template-columns: minmax(0, 640px); }
.trainer-lead { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,0.65); margin-top: 14px; }
.trainer-benefits {
  margin-top: 28px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.week-col .trainer-cta { text-align: left; }
.trainer-benefit {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-top: 3px solid var(--blue-bright);
  border-radius: 10px;
  padding: 28px 24px;
  color: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  gap: 10px;
}
.trainer-benefit-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px; letter-spacing: 1px;
}
.trainer-benefit-text { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.55; }
.trainer-cta { text-align: center; margin-top: 36px; }
.trainer-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: var(--blue);
  padding: 16px 32px;
  border: 1px solid rgba(255,255,255,0.28); border-radius: 8px;
  font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
  text-decoration: none;
}
.trainer-cta-btn:hover {
  background: #0a0d18; color: #fff;
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.50);
}

/* Conditional Trainer-only Block im Kontaktformular */
.contact-conditional { display: none; }
.contact-conditional.is-visible { display: block; }
.contact-conditional .f-group { margin-top: 14px; }

/* Flash-Messages oberhalb des Kontaktformulars */
.contact-flash {
  padding: 12px 16px; border-radius: 8px;
  font-size: 14px; margin-bottom: 18px;
}
.contact-flash-ok {
  background: rgba(40,200,120,0.15);
  border: 1px solid rgba(40,200,120,0.4);
  color: #fff;
}
.contact-flash-err {
  background: rgba(192,57,43,0.18);
  border: 1px solid rgba(192,57,43,0.5);
  color: #fff;
}

/* Coach-Admin: Mannschafts-Zuordnung-Grid */
.coach-assign-grid { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.coach-assign-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 8px 12px;
  background: #f4f6fa; border-radius: 6px;
}
.coach-assign-team { font-size: 14px; color: var(--text); font-weight: 500; }
.coach-assign-cat { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 8px; }
.coach-assign-options { display: flex; gap: 12px; font-size: 13px; color: var(--text); }
.coach-assign-options label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
@media (max-width: 640px) {
  .coach-assign-row { flex-direction: column; align-items: flex-start; }
}

/* Admin-Trainer-Uebersicht: Gruppierung nach Mannschaft + Bereich fuer
   nicht zugeordnete Trainer:innen. */
.coach-team-group { margin-top: 40px; }
.coach-team-group:first-of-type { margin-top: 28px; }
.coach-team-group-head {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.coach-team-group-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px; letter-spacing: 0.4px; color: #fff;
}
.coach-team-group-cat {
  font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em;
}
.coach-team-group-unassigned .coach-team-group-name { color: rgba(255,255,255,0.5); }
.coach-team-group-unassigned { border-top: 1px dashed rgba(255,255,255,0.15); padding-top: 8px; }
.squad-card-unassigned { opacity: 0.75; }

@media (max-width: 768px) {
  .trainer-section { padding: 64px 20px; }
}

/* ────────────────────────────────────────────────────────────────────
   Legal pages (Impressum / Datenschutz) — dark background, max-width 900,
   cards + section blocks in the same look as the rest of the site.
   ──────────────────────────────────────────────────────────────────── */
.legal-page { background: var(--dark); padding: 140px 24px 80px; color: #e7ecf3; }
.legal-container { max-width: 900px; margin: 0 auto; }
.legal-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 32px 0 24px;
}
.legal-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 20px 22px;
}
.legal-card h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px; letter-spacing: 1px; color: var(--blue-bright);
  margin-bottom: 10px;
}
.legal-card p { font-size: 14.5px; line-height: 1.55; color: #d6dce6; margin-bottom: 8px; }
.legal-card a { color: var(--blue-bright); text-decoration: none; }
.legal-card a:hover { text-decoration: underline; }
.legal-card code {
  font-family: 'Courier New', monospace; font-size: 13px;
  background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px;
  color: #fff;
}
.legal-section { margin-top: 28px; }
.legal-section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; letter-spacing: 1px; color: #fff;
  margin-bottom: 10px;
}
.legal-section p { font-size: 14.5px; line-height: 1.7; color: #c8cfdb; margin-bottom: 12px; }
.legal-list {
  list-style: disc; padding-left: 22px;
  font-size: 14.5px; line-height: 1.7;
  color: #c8cfdb;
  margin: 0 0 12px;
}
.legal-list li { margin-bottom: 4px; }
.legal-list li::marker { color: var(--blue-bright); }
.legal-source { font-size: 12px; color: var(--muted); }
.legal-source a { color: var(--blue-bright); }
.legal-back { margin-top: 40px; }

@media (max-width: 640px) {
  .legal-grid { grid-template-columns: 1fr; }
}

/* ────────────────────────────────────────────────────────────────────
   Squad (Kader) — compact player cards, smaller than Vorstand. Designed
   for ~20+ players per team; tight grid, jersey badge over the photo.
   ──────────────────────────────────────────────────────────────────── */
.squad-group { margin-top: 28px; text-align: center; }
.squad-group-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; letter-spacing: 2px;
  color: var(--blue);
  margin: 0 0 12px;
  text-align: center;
}
.squad-grid {
  display: grid;
  /* Feste Kachelbreite mit auto-fit (kollabiert leere Spalten-Slots), damit
     justify-content greift und teilbelegte Reihen visuell zentriert sitzen
     (statt linksbuendig zu kleben). */
  grid-template-columns: repeat(auto-fit, 160px);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  justify-content: center;
}
/* Nutzt die gemeinsame .person-card-Basis; hier nur noch die Ausnahmen:
   Vorname/Nachname statt Rolle+Name, Trikot-Badge (der unassigned-Zustand
   fuer die Admin-Trainer-Uebersicht ist bei .coach-team-group definiert). */

/* Trikot-Badge in der Foto-Ecke: SVG-Jersey-Silhouette als Hintergrund,
   Spielernummer in Weiss sitzt mittig im Trikot-Body. */
.person-jersey {
  position: absolute; top: 6px; right: 6px;
  width: 44px; height: 44px;
  background: url("/img/jersey.svg") center/contain no-repeat;
  color: #fff;
  /* Nummer leicht unter die Bildmitte schieben, damit sie auf dem Trikot-Body
     sitzt statt im Kragen-Bereich. */
  display: inline-flex; align-items: center; justify-content: center;
  padding-top: 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px; letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.30));
}
.person-firstname { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.1; }
.person-lastname {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 19px; letter-spacing: 0.6px;
  color: #fff; line-height: 1.1;
}

@media (max-width: 480px) {
  .board-grid, .coach-grid, .squad-grid { grid-template-columns: repeat(auto-fit, 140px); gap: 10px; }
  .person-lastname { font-size: 17px; }
}

/* News grid: featured banner stretches to match the 2-item right column,
   so its height is flush with the news list. Content sits vertically
   distributed inside the banner. */
.news-grid { align-items: stretch; }
.news-featured {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 32px;
}
.news-featured h3 { font-size: clamp(22px, 3vw, 32px); }
/* The featured banner is a flex-column with default align-items:stretch,
   which forces the inline-block category pill to span the whole card.
   Pull it back to its natural width so the chip hugs its text. */
.news-featured .news-cat { align-self: flex-start; }

/* ────────────────────────────────────────────────────────────────────
   "Nächste Spiele" section — dunkler "Spotlight"-Look wie die Personen-
   Karten. Vereinswappen bekommen ihr eigenes kleines weisses Plaettchen
   (siehe .match-rteam img), statt dass die ganze Zeilenliste weiss ist.
   ──────────────────────────────────────────────────────────────────── */
.matches {
  background: var(--dark);
  padding: 80px 48px 100px;
}
/* Spielplan + Trainingsplan nebeneinander als gemeinsames "diese Woche"-
   Dashboard, damit auf breiten Bildschirmen keine leere Flaeche rechts
   neben der (bewusst schmalen, max. 860px breiten) Spielplan-Liste
   entsteht. .week-col ist ein reiner Layout-Wrapper ohne eigene Optik -
   die Kinder (sec-label/sec-title/…) bringen ihr Aussehen selbst mit. */
.week-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
/* Ohne max-width zieht sich jede Zeile auf breiten Monitoren ueber die
   volle Seitenbreite - die Luecke zwischen Team-Namen und Liga-Label wird
   dann riesig und schwer zu ueberblicken. 860px haelt die Liste in einer
   angenehmen Lesebreite, unabhaengig von der Fensterbreite. */
.matches-days { margin-top: 32px; max-width: 860px; }
/* Nur auf der eigenstaendigen /spielplan-Seite zentrieren (volle Breite) -
   im Dashboard-Ausschnitt auf der Startseite bleibt die Liste linksbuendig,
   wie im .week-col-Layout beabsichtigt. */
.spielplan-page .matches-days { margin-left: auto; margin-right: auto; }
.match-daygroup { margin-bottom: 26px; }
.match-daygroup:last-child { margin-bottom: 0; }

/* Tages-Header traegt Wochentag + Datum + Spielanzahl EINMAL, statt dass
   sich das auf jeder einzelnen Karte wiederholt (an Tagen mit mehreren
   Spielen stand vorher z.B. 4x "Samstag, 5. September 2026" hintereinander). */
.match-dayhead {
  display: flex; align-items: baseline; gap: 14px;
  margin: 0 0 10px; padding: 0 4px;
}
.match-dayhead .match-dow {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px; letter-spacing: 0.03em;
  color: var(--blue-bright);
}
.match-dayhead .match-date { font-size: 13px; color: var(--muted); }
.match-dayhead .match-count {
  margin-left: auto;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

/* Alle Spiele eines Tages als duenne Zeilen in einer gemeinsamen dunklen
   Flaeche - kein wiederholter Card-Rahmen mehr pro Spiel. */
.match-rowlist {
  background: var(--mid); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; overflow: hidden;
}
.match-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding: 13px 18px; color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background-color 0.15s ease;
}
.match-rowlist .match-row:last-child { border-bottom: none; }
a.match-row:hover, a.match-row:focus { background-color: rgba(37, 99, 212, 0.16); text-decoration: none; }
.match-row .match-rtime {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px; color: var(--blue-bright);
  width: 44px; flex-shrink: 0;
}
.match-row .match-rteams {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  flex: 1; min-width: 0;
  font-size: 13.5px; font-weight: 600;
}
.match-row .match-rteam {
  display: flex; align-items: center; gap: 6px;
  min-width: 0; flex-shrink: 1;
}
.match-row .match-rteam img { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.match-row .match-rteam span { white-space: normal; overflow-wrap: break-word; }
.match-row .match-rvs {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px; color: var(--blue-bright); flex-shrink: 0;
}
.match-row .match-rcomp {
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); flex-shrink: 0; margin-left: auto;
}
.matches-empty {
  margin-top: 24px; color: var(--muted); font-style: italic;
}
.spielplan-page .matches-empty { text-align: center; }
.matches-more { margin-top: 16px; }

/* Trainingsplan-Spalte im Dashboard - eigener "wtrain-" Namensraum. Optik ist
   bewusst identisch zur Spielplan-Liste (.match-dayhead/-rowlist) fuer ein
   einheitliches Dashboard-Bild - nur ohne Vereinslogos/":" da
   Trainingseinheiten keine Paarung sind. */
/* Gleiche Obergrenze wie .matches-days, fuer Konsistenz zwischen beiden
   Spalten und denselben Schutz gegen zu breite Zeilen auf sehr breiten
   Monitoren (in den ueblichen Fensterbreiten ist die Spalte durch das
   1fr/1fr-Grid ohnehin schon schmaler als 860px). */
.wtrain-days { margin-top: 32px; max-width: 860px; }
/* Nur auf der eigenstaendigen /trainingsplan-Seite zentrieren, analog zu
   .spielplan-page .matches-days - im Dashboard-Ausschnitt bleibt die Liste
   linksbuendig. */
.trainingsplan-page .wtrain-days { margin-left: auto; margin-right: auto; }
.trainingsplan-page .matches-empty { text-align: center; }

/* Bereichs-Legende auf /trainingsplan - Zonen-Overlay direkt auf dem echten
   Luftbild (verein.png) statt auf einem Schema, sieht deutlich
   professioneller aus und ist sofort als die eigene Anlage erkennbar.
   Dickere Linien mit dunklem Kontur-Schatten, da der Fotohintergrund mal
   hell mal dunkel ist und duenne weisse Linien sonst untergehen. */
.pitch-zones-legend { margin-top: 64px; }
.pz-toggle { display: flex; justify-content: center; gap: 8px; margin: 20px 0; }
.pz-toggle-btn {
  background: transparent; border: 1px solid rgba(255,255,255,0.25); color: #fff;
  padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.pz-toggle-btn:hover { border-color: var(--blue-bright); }
.pz-toggle-btn.is-active { background: var(--blue-bright); border-color: var(--blue-bright); }
.pz-diagram { display: block; width: 100%; max-width: 720px; margin: 0 auto; }
.pzp-diagram { margin-top: 24px; border-radius: 16px; overflow: hidden; }
.pzp-outline { fill: none; stroke: rgba(255,255,255,0.85); stroke-width: 2; stroke-dasharray: 6 5; }
.pzp-line { stroke: #fff; stroke-width: 3; stroke-dasharray: 8 6; paint-order: stroke; stroke-linecap: round; }
.pzp-zones { display: none; }
.pzp-zones[data-division="third"] { display: inline; }
.pzp-badge circle { fill: var(--blue-bright); stroke: #fff; stroke-width: 2; }
.pzp-badge text { fill: #fff; font-size: 15px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }

/* Klickbare Abschnitts-Auswahl im Admin-Formular (_TrainingForm.cshtml) -
   gleiche Grafik wie oben, zusaetzlich mit anklickbaren Bereichs-Flaechen je
   Aufteilung; Sichtbarkeit/Hervorhebung wird per JS synchron zu den
   Ort/Aufteilung/Abschnitt-Dropdowns gehalten. */
.pzp-picker-hint { font-size: 12px; color: var(--muted); margin: 4px 0 6px; }
.pzp-outline.is-inactive-pitch { opacity: 0.3; }
.pzp-outline.is-selected { stroke: var(--blue-bright); stroke-width: 3; stroke-dasharray: none; }
.pzp-outline.is-occupied { stroke: #c0392b; stroke-width: 3; stroke-dasharray: none; }
.pzp-zone { display: none; cursor: pointer; }
.pzp-zone-fill {
  fill: rgba(37, 99, 212, 0.14); stroke: rgba(255,255,255,0.85); stroke-width: 2; stroke-dasharray: 5 4;
  transition: fill 0.15s ease, stroke 0.15s ease;
}
.pzp-zone:hover .pzp-zone-fill { fill: rgba(37, 99, 212, 0.32); }
.pzp-zone.is-selected .pzp-zone-fill { fill: rgba(37, 99, 212, 0.6); stroke: #fff; stroke-width: 3; stroke-dasharray: none; }
/* Bereits belegt (anderes Team, gleicher Tag/Zeitraum/Platz/Aufteilung) - rot
   statt blau, Beschriftung zeigt den Teamnamen statt der Abschnitts-Nummer
   (siehe findOccupants()/syncPicker() in _TrainingForm.cshtml). Bleibt trotzdem
   anklickbar, da Doppelbelegung bewusst moeglich sein soll (nur ein Hinweis,
   kein hartes Verbot - die Konfliktwarnung beim Speichern greift weiterhin). */
.pzp-zone.is-occupied .pzp-zone-fill { fill: rgba(192, 57, 43, 0.4); stroke: rgba(255,255,255,0.7); stroke-dasharray: 3 3; cursor: not-allowed; }
.pzp-zone-label {
  fill: #fff; font-size: 20px; font-weight: 700; text-anchor: middle; dominant-baseline: central;
  pointer-events: none; paint-order: stroke; stroke: rgba(0,0,0,0.45); stroke-width: 4px;
}
.pzp-zone.is-occupied .pzp-zone-label { font-size: 11px; }

/* Visuelle Konfliktwarnung (_TrainingConfirm.cshtml) - dieselbe Grafik,
   Kandidat (neue Einheit) und bestehender Konflikt je eigenfarbig markiert. */
.pzp-conflict-preview { max-width: 560px; margin: 12px auto; display: block; }
.pzp-highlight-candidate { fill: rgba(37, 99, 212, 0.5); stroke: #fff; stroke-width: 3; }
.pzp-highlight-conflict { fill: rgba(192, 57, 43, 0.5); stroke: #fff; stroke-width: 3; stroke-dasharray: 6 4; }
.pzp-conflict-legend { display: flex; gap: 18px; justify-content: center; font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.pzp-conflict-legend span { display: flex; align-items: center; gap: 6px; }
.pzp-legend-swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.pzp-legend-candidate { background: rgba(37, 99, 212, 0.8); }
.pzp-legend-conflict { background: rgba(192, 57, 43, 0.8); }

.wtrain-daygroup { margin-bottom: 26px; }
.wtrain-daygroup:last-child { margin-bottom: 0; }
.wtrain-dayhead {
  display: flex; align-items: baseline; gap: 14px;
  margin: 0 0 10px; padding: 0 4px;
}
.wtrain-dayhead .wtrain-dow {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px; letter-spacing: 0.03em;
  color: var(--blue-bright);
}
.wtrain-dayhead .wtrain-count {
  margin-left: auto;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}
.wtrain-rowlist {
  background: var(--mid); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; overflow: hidden;
}
.wtrain-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.wtrain-rowlist .wtrain-row:last-child { border-bottom: none; }
.wtrain-row .wtrain-time {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px; color: var(--blue-bright);
  width: 108px; flex-shrink: 0;
}
.wtrain-row .wtrain-team {
  font-size: 13.5px; font-weight: 600;
  flex: 1; min-width: 0;
}
.wtrain-row .training-live { margin-top: 0; flex-shrink: 0; }
.wtrain-row .wtrain-area {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; background: rgba(37, 99, 212, 0.35); padding: 3px 8px; border-radius: 999px;
  flex-shrink: 0;
}

/* Admin-Liste (/admin/trainingsplan) - gleiche Zeilenoptik, zusaetzlich
   Bereichs-Badge + Bearbeiten/Loeschen-Aktionen; bricht auf schmalen
   Bildschirmen in eine zweite Zeile um. */
.wtrain-row-admin { flex-wrap: wrap; }
.wtrain-row-admin .wtrain-admin-actions { margin-left: auto; display: flex; gap: 8px; flex-shrink: 0; }

/* Team-/Platz-Filter ueber der Liste - rein clientseitig (kein Reload). */
.wtrain-filter-bar { display: flex; gap: 10px; margin: 0 0 16px; flex-wrap: wrap; }
.wtrain-filter-bar select {
  padding: 8px 10px; font: inherit; font-size: 13px;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 6px;
  background: var(--mid); color: #fff;
}
.wtrain-filter-bar select:focus { border-color: var(--blue-bright); outline: none; }

/* Plan-Verwaltung (mehrere Trainingsplaene, z.B. Winter/Sommer). Pillen zum
   Wechseln (wie das bestehende Haelfte/Drittel/Viertel-Muster); die Aktionen
   (aktivieren/umbenennen/kopieren/loeschen) sind bewusst direkt sichtbare
   Buttons statt hinter einem Menue versteckt - bei nur 3-4 Aktionen und
   genug Platz in der Zeile ist ein Menue nur ein unnoetiger Extra-Klick.
   Umbenennen/Kopieren brauchen eine Texteingabe - dafuer <details>/<summary>
   statt eigenem JS (nativ, barrierefrei), das kleine Popover-Formular klappt
   direkt unter dem jeweiligen Button auf. Aktionen sind normale POST-Forms
   mit vollem Seiten-Reload, da sie den Seiten-Kontext (welcher Plan wird
   betrachtet) aendern, nicht nur den Formular-Slot oder die Liste. */
.plan-manager {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 20px; margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 14px;
}

.plan-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border-light); color: #fff; text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.plan-pill:hover { border-color: var(--blue-bright); }
.plan-pill.is-current { background: var(--blue-bright); border-color: var(--blue-bright); }
.plan-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: #2e9e5b; flex-shrink: 0; }

.plan-pill-create { position: relative; }
.plan-pill-create summary {
  display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px;
  font-size: 13px; color: var(--muted); border: 1px dashed rgba(255,255,255,0.3);
  cursor: pointer; list-style: none;
}
.plan-pill-create summary::-webkit-details-marker { display: none; }
.plan-pill-create summary:hover { color: #fff; border-color: var(--blue-bright); }

.plan-badge {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
}
.plan-badge-dot { width: 6px; height: 6px; border-radius: 50%; }
.plan-badge.is-active { background: rgba(46,158,91,0.15); color: #5be08a; }
.plan-badge.is-active .plan-badge-dot { background: #2e9e5b; }
.plan-badge.is-inactive { background: rgba(255,255,255,0.06); color: var(--muted); }
.plan-badge.is-inactive .plan-badge-dot { background: var(--muted); }

.plan-action-row { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.plan-action-reveal { position: relative; }
.plan-action-reveal summary { list-style: none; cursor: pointer; }
.plan-action-reveal summary::-webkit-details-marker { display: none; }
.plan-popover-form {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 20;
  background: #fff; border-radius: 8px; padding: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  display: flex; gap: 8px; align-items: center; width: max-content;
}
.plan-pill-create .plan-popover-form { left: 0; top: calc(100% + 6px); }
.plan-popover-form input[type="text"] {
  padding: 7px 10px; font: inherit; font-size: 13px;
  border: 1px solid var(--border-light); border-radius: 6px;
  background: #fff; color: var(--text);
}

/* Ziel des automatischen Scrolls nach "Bearbeiten" (siehe Admin/Trainingsplan/
   Index.cshtml) - ohne scroll-margin-top landet das Formular direkt unter der
   fixen Nav (68px hoch) und der obere Teil (inkl. Bestaetigungs-Hinweis) waere
   dahinter verdeckt. */
#training-form-slot { scroll-margin-top: 88px; }

/* Kurze Bestaetigung nach Speichern/Loeschen im zentralen Trainingsplan-Editor -
   das Formular selbst springt danach auf "leer" zurueck (schnelles Erfassen
   mehrerer Einheiten), ohne diesen Hinweis sah das aus wie "nichts passiert". */
.training-save-confirm {
  background: #e8f7ee; color: #1a7a41; border: 1px solid #b8e6c9;
  padding: 10px 14px; border-radius: 8px; margin-bottom: 12px;
  font-size: 13px; font-weight: 600;
}

@media (max-width: 1024px) {
  .matches { padding: 60px 24px 80px; }
  /* Zwei volle Spalten sind unter 1024px zu eng fuer die Sec-Titles -
     Trainingsplan faellt unter den Spielplan statt daneben. */
  .week-cols { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .matches { padding: 60px 16px 80px; }
  .match-row { padding: 12px 16px; }
  .match-row .match-rcomp { margin-left: 0; flex-basis: 100%; }
  .wtrain-row { padding: 12px 16px; gap: 10px; }
  .wtrain-row .wtrain-time { width: 92px; }
}

@media (max-width: 1024px) {
  .nav { padding: 0 24px; }
  /* Nur links/rechts anpassen - die volle "padding"-Shorthand wuerde auch
     oben/unten auf 0 setzen und den Hero-Titel hinter die fixe Nav ziehen. */
  .hero { padding-left: 24px; padding-right: 24px; }
  .hero-content { max-width: 100%; }
  .hero-title { font-size: clamp(48px, 8vw, 92px); line-height: 1.05; }
  .news,
  .about,
  .teams,
  .training,
  .pitch-sec,
  .cta,
  .contact { padding-left: 24px; padding-right: 24px; }
  .news-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-content { padding: 48px 24px; }
  .teams-row { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .teams-row-youth { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}

@media (max-width: 768px) {
  .nav { padding: 0 16px; height: 60px; }
  .nav-menu { display: none; }
  .hamburger { display: inline-block; }

  .mobile-menu {
    position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
    background: rgba(8, 9, 13, 0.98);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 998;
    overflow-y: auto;
    padding: 24px;
  }
  .mobile-menu.open { transform: translateY(0); }
  .mobile-menu a {
    display: block; padding: 14px 4px;
    color: #fff; text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 16px;
  }

  .hero { min-height: auto; padding: 100px 16px 60px; }
  .hero-title { font-size: clamp(40px, 11vw, 72px); }
  .hero-desc { font-size: 15px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-stats .hstat-divider { display: none; }
  .hero-logo-watermark,
  .hero-orb,
  .hero-orb2 { opacity: 0.35; }

  .news,
  .about,
  .teams,
  .training,
  .pitch-sec,
  .cta,
  .contact { padding: 60px 16px; }

  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-overlay { padding: 24px; }
  .teams-row,
  .teams-row-youth { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }

  footer { padding: 32px 16px !important; }

  /* Tame anything that still relies on fixed wide widths */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions > * { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(36px, 13vw, 60px); }
  .sec-title { font-size: clamp(28px, 8vw, 44px) !important; }
  .teams-row,
  .teams-row-youth { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: 1fr; }
}
