/* =========================================================
   Tuerkiyemspor Moenchengladbach
   Design-System: "Black & Gold Athletic"
   Tokens siehe DESIGN.md (dieses Theme-Verzeichnis).
   ========================================================= */

:root {
  /* Surfaces */
  --surface: #fcf9f8;
  --surface-dim: #dcd9d9;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f6f3f2;
  --surface-container: #f0eded;
  --surface-container-high: #eae7e7;
  --surface-variant: #e5e2e1;
  --inverse-surface: #0d0d0d;
  --inverse-on-surface: #ffffff;

  /* Text */
  --on-surface: #1c1b1b;
  --on-surface-variant: #4d4732;
  --outline: #7e775f;
  --outline-variant: #d0c6ab;

  /* Brand */
  --primary: #8a6a00;
  --on-primary: #000000;
  --primary-container: #f1c40f;
  --on-primary-container: #1c1b1b;
  --primary-fixed: #ffd84d;

  --secondary: #111111;
  --on-secondary: #f2b705;
  --on-secondary-container: #1c1b1b;

  --tertiary: #4a3d1f;
  --on-tertiary: #ffffff;

  --error-container: #ffdad6;
  --on-error-container: #93000a;

  /* Zusaetzlicher Akzent: Trikot-Blau. Nicht Teil der Haupt-Palette (Schwarz/
     Gold/Weiss) - ausschliesslich fuer die zweifarbige Header-Randlinie
     (Gold/Blau, wie bei fcbarcelona.com) verwendet. */
  --accent-kit-blue: #164b9e;

  /* Typography */
  --font-heading: "Inter", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  /* Shape (bewusst klein - "tech-pro", nicht brutalistisch) */
  --radius: 0.125rem;
  --radius-lg: 0.25rem;
  --radius-xl: 0.5rem;

  /* Layout */
  --max-width: 1200px;
  --container-margin: 24px;
  --gutter: 16px;
  --section-gap: 64px;

  /* Motion */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  /* ---------------------------------------------------------------
     "newhome" Tokens - eigenes, in main.css separat gefuehrtes Set
     nur fuer den Homepage-Body (front-page.php, Klassenpraefix .nh-).
     Bewusst von den obigen Black & Gold Athletic Tokens getrennt: die
     Startseite folgt hier 1:1 der newhome/-Mockup-Vorlage (eigene
     Farben, eigene Schriften Inter/JetBrains Mono), Header/Footer und
     alle anderen Seiten bleiben unveraendert bei Barlow Condensed +
     den Tokens oben.
     --------------------------------------------------------------- */
  --nh-bg: #f7f9fc;
  --nh-surface: #ffffff;
  --nh-surface-container: #eceef1;
  --nh-surface-container-low: #f2f4f7;
  --nh-surface-container-high: #e6e8eb;
  --nh-on-surface: #191c1e;
  --nh-on-surface-variant: #4c4546;
  --nh-outline-variant: #cfc4c5;
  --nh-primary: #000000;
  --nh-on-primary: #ffffff;
  --nh-slate-dark: #1a1a1a;
  --nh-gold: #f1c40f;
  --nh-on-gold: #000000;
  /* Deep-Gold-Variante fuer Gold-als-Text auf hellem Grund - --nh-gold
     selbst faellt dort auf ~1.66:1 Kontrast (siehe Impeccable-Kritik vom
     2026-07-28). Entspricht bewusst dem bereits in DESIGN.md dokumentierten
     "Crest Gold, Deep" (#8a6a00), das exakt fuer diesen Fall gedacht ist. */
  --nh-gold-deep: #8a6a00;

  --nh-font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --nh-font-label: "JetBrains Mono", "Courier New", monospace;

  --nh-radius: 0.125rem;
  --pitch-green: #2d6a4f;
}

* {
  box-sizing: border-box;
}

/* Seite wirkt bei 100% Browser-Zoom so kompakt wie vorher bei 80% Zoom
   (Nutzerwunsch: gleiches visuelles Verhaeltnis ohne manuelles Zoomen). */
html {
  zoom: 0.8;
}

body {
  margin: 0;
  /* --nh-bg statt der aelteren --surface, damit alle Seiten denselben
     Seitenhintergrund wie die Startseite (.nh-page nutzt bereits --nh-bg)
     zeigen statt des leicht wärmeren Creme-Tons von --surface. */
  background: var(--nh-bg);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--primary-container);
  color: var(--on-surface);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  margin: 0 0 0.5em;
  color: var(--on-surface);
}

h1 { font-size: 64px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: 40px; line-height: 1.2; font-weight: 700; }
h3 { font-size: 24px; line-height: 1.2; font-weight: 600; }
h4 { font-size: 20px; line-height: 1.2; font-weight: 600; }

@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
}

a {
  color: var(--tertiary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-margin);
}

/* Label: kleine, gesperrte Grossbuchstaben (label-sm) */
.label {
  font-family: var(--nh-font-label);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  background: var(--primary-container);
  color: var(--on-primary-container);
  border: 0;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s var(--ease-out-quart), box-shadow 0.2s ease;
}

.button:hover {
  background: var(--secondary);
  color: var(--on-secondary);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.button:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.button:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.button--ghost {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  box-shadow: none;
}

.button--ghost:hover {
  background: var(--secondary);
  color: var(--on-secondary);
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: background-color 0.2s ease, color 0.2s ease;
  }
  .button:hover {
    transform: none;
  }
  .button:active {
    transform: none;
  }
}

.button--sm {
  font-size: 15px;
  padding: 0.6rem 1.25rem;
}

/* ---------- Header ---------- */

/* Hauptnavigation: Struktur 1:1 an fcbarcelona.com angelehnt - Wappen und
   Menue links gruppiert, Suche/CTA rechts, weisser Grund ohne kraeftigen
   Rahmen, Menuepunkte in normaler Gross-/Kleinschreibung statt Versalien. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-container-lowest);
  transition: box-shadow 0.3s ease;
}

/* Kompakter Zustand beim Scrollen (main.js schaltet die Klasse) - nur
   transform/box-shadow, keine Layout-Properties, damit der Effekt guenstig
   auf jedem Geraet laeuft. */
.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.site-header.is-scrolled .site-branding img {
  transform: scale(0.82);
}

/* Zweifarbige Randlinie wie bei fcbarcelona.com: links Gold (Vereinsfarbe),
   rechts Blau (Trikot-Akzent) statt einer einfarbigen Linie. */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary-container) 50%, var(--accent-kit-blue) 50%);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
  max-width: 1360px;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-header__left {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-width: 0;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-branding {
  display: flex;
  align-items: center;
  position: relative;
  top: -3px;
  z-index: 2;
  margin-bottom: -98px;
}

.site-branding img {
  height: 150px;
  width: auto;
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-branding img {
    transition: none;
  }
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  position: relative;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--on-surface-variant);
  padding-bottom: 4px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-navigation a:hover {
  color: var(--secondary);
  text-decoration: none;
}

/* Unterstrich waechst beim Hover von links ein statt abrupt zu erscheinen -
   gleiche Gold-Linie, die aktive Menuepunkte permanent per border-bottom
   zeigen (siehe .current-menu-item unten), nur als Hover-Feedback fuer
   alle anderen Punkte. */
.main-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--primary-container);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out-quart);
}

.main-navigation a:hover::after {
  transform: scaleX(1);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--primary);
  border-bottom: 2px solid var(--primary-container);
}

.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after {
  content: none;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-cta__social {
  display: inline-flex;
  color: var(--on-surface-variant);
}

.header-cta__social:hover {
  color: var(--secondary);
}

.header-cta__social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.nav-backdrop {
  display: none;
}

/* Nur eine Substitution fuer die im Header ab 1200px verschwindende
   .header-cta - auf Desktop unsichtbar, erscheint erst im aufgeklappten
   mobilen Menue (siehe @media (max-width: 1200px) unten). Ohne dieses
   Duplikat verliert das Menuemitglied-CTA komplett seinen einzigen
   Conversion-Pfad auf Mobile. */
.main-navigation__cta {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .main-navigation a::after {
    transition: none;
  }
}


.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  cursor: pointer;
  padding: 0.5rem;
}

/* Eigener, breiterer Breakpoint fuer die Hauptnavigation: 7 Menuepunkte plus
   Wappen, Suche und CTA brauchen mehr Platz als der 900px-Breakpoint der
   uebrigen Seite - sonst brechen Menuepunkte einzeln um (siehe Vorlage). */
@media (max-width: 1200px) {
  .menu-toggle {
    display: block;
  }
  /* Header 100px hoch, Logo 94px, mittig (3px Puffer oben/unten). */
  .site-header .container {
    padding-top: 3px;
    padding-bottom: 3px;
  }
  /* Auf Mobile/Tablet passt das ueberlappende Wappen vom Desktop (150px,
     negativer margin-bottom) nicht mehr ins Layout - Logo fuellt hier
     stattdessen die Headerhoehe fast komplett aus (statt eines kleinen
     Logos mit viel Leerraum drumherum). */
  .site-branding {
    top: 0;
    margin-bottom: 0;
  }
  .site-branding img {
    height: 94px;
  }
  /* Off-canvas Sidebar statt Dropdown: das Menue liegt fixed ausserhalb
     des Viewports (translateX 100%) und faehrt beim Oeffnen von rechts
     ein. visibility+transition-delay haelt es im geschlossenen Zustand
     unfokussierbar (Aequivalent zu display:none), ohne die Slide-Animation
     selbst zu blockieren. */
  .main-navigation {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    background: var(--surface-container-lowest);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
    padding: 6.5rem 2rem 2rem;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease-out-quart), visibility 0s linear 0.3s;
  }
  .main-navigation.is-open {
    visibility: visible;
    transform: translateX(0);
    transition: transform 0.3s var(--ease-out-quart), visibility 0s linear 0s;
  }
  .main-navigation > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .header-cta {
    display: none;
  }
  .main-navigation__cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--surface-container-high);
  }
  .main-navigation__cta .button {
    flex: 1;
    justify-content: center;
  }
  /* Abdunkelnder Hintergrund hinter der Sidebar - schliesst das Menue per
     Klick daneben, wie bei jedem Standard-Off-Canvas-Muster erwartet. */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 89;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  }
  .nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
  }
}

@media (max-width: 1200px) and (prefers-reduced-motion: reduce) {
  .main-navigation,
  .main-navigation.is-open,
  .nav-backdrop,
  .nav-backdrop.is-open {
    transition: transform 0.01ms, opacity 0.01ms, visibility 0s linear 0s;
  }
}

/* Wappen-Wasserzeichen im Footer (siehe footer.php) - vom ehemaligen
   Homepage-Hero uebernommenes Muster, hier unabhaengig weiterverwendet. */
.footer-watermark {
  content: "";
  position: absolute;
  top: 50%;
  right: -5%;
  width: 60%;
  max-width: 640px;
  aspect-ratio: 1;
  background-image: url("../images/logo.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: translateY(-50%);
  opacity: 0.06;
  filter: grayscale(1) brightness(0) invert(1);
  pointer-events: none;
  z-index: 0;
}

/* Kompakter Seiten-Hero (Unterseiten) - newhome-System: heller, ruhiger
   Banner mit duennem Rahmen statt dunklem Vollbild-Scrim. Nur wenn eine
   Seite ein echtes Beitragsbild als Hintergrund gesetzt hat (Klasse
   page-hero OHNE --muster, siehe Templates), bleibt ein dunkler Scrim fuer
   die Lesbarkeit des weissen Titeltexts ueber dem Foto erhalten. */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--nh-surface-container-low);
  color: var(--nh-on-surface);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 1px solid var(--nh-surface-container-high);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--nh-primary);
  font-weight: 800;
}

.page-hero p {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 18px;
  color: var(--nh-on-surface-variant);
}

/* Echtes Beitragsbild als Hintergrund (Kontakt, Mitglied werden, Team-
   Detailseite ...): dunkler Scrim, damit Titel/Text in Weiss lesbar bleiben -
   gleiche Verlaufslogik wie der Startseiten-Hero. */
.page-hero:not(.page-hero--muster) {
  background-color: var(--nh-slate-dark);
  color: #fff;
  border-bottom: 0;
}

.page-hero:not(.page-hero--muster)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.page-hero:not(.page-hero--muster) h1 {
  color: #fff;
}

.page-hero:not(.page-hero--muster) p {
  color: rgba(255, 255, 255, 0.85);
}

/* Fallback-Hintergrund fuer jeden page-hero ohne eigenes Beitragsbild:
   heller Untergrund + ganz leichtes Wappen-Wasserzeichen statt eines
   generischen Stockfotos. Sobald ein Beitragsbild gesetzt wird, uebernimmt
   das automatisch (siehe die jeweiligen Templates). */
.page-hero--muster {
  border-top: 4px solid var(--nh-gold);
}

.page-hero--muster::after {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 0;
  background-image: url("../images/logo.webp");
  background-size: 40% auto;
  background-repeat: no-repeat;
  background-position: right -5% center;
  opacity: 0.05;
  filter: grayscale(1);
  pointer-events: none;
}

/* ---------- Sections ---------- */

.section {
  padding: var(--section-gap) 0;
}

/* ---------- Scroll-Reveal (sitewite Karten/Kacheln) ----------
   Sichtbar-per-Default: main.js setzt "js-armed" erst zur Laufzeit, bevor
   IntersectionObserver beobachtet. Ohne JS (oder in Headless-/Print-
   Renderern, bei denen der Observer nie feuert) bleibt der Inhalt also
   in seinem normalen sichtbaren Zustand statt leer zu bleiben. */
.tsmg-reveal.js-armed {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.32, 0.72, 0, 1), transform 0.6s cubic-bezier(0.32, 0.72, 0, 1);
}

.tsmg-reveal.js-armed.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .tsmg-reveal.js-armed {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.section--alt {
  background: var(--surface-container-low);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--outline-variant);
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
  gap: 1rem;
}

.section-head h2 {
  margin: 0;
}

.section-head a {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gutter);
}

.card {
  background: var(--nh-surface);
  border: 1px solid var(--nh-surface-container-high);
  border-radius: var(--nh-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: scale(1.02);
  border-color: var(--nh-gold);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
}

/* Foto oben, weisser Body darunter - gleiche Sprache wie .nh-news-card auf
   der Startseite (kein Verlaufsschleier/Text-auf-Foto mehr). */
.card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--nh-surface-container);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card__media img {
  transform: scale(1.05);
}

.card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.card__body h3 {
  margin: 0;
  font-size: 20px;
}

.card__meta {
  font-size: 14px;
  color: var(--nh-on-surface-variant);
}

.card__stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--surface-variant);
}

.card__stats strong {
  color: var(--primary);
}

.card__actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card__link {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--secondary);
  transition: gap 0.2s var(--ease-out-quart);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card__link:hover {
  gap: 0.6rem;
}

.card__link:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Schnellansicht: dezenter Ghost-Button, oeffnet die Team-Vorschau per AJAX
   (siehe tsmg_ajax_team_quickview()) statt zur Einzelseite zu navigieren. */
.card__quickview {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
  padding: 0.4rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  background: transparent;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.15s var(--ease-out-quart), box-shadow 0.2s ease;
}

.card__quickview .material-symbols-outlined {
  font-size: 18px;
}

.card__quickview:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.card__quickview:active {
  transform: translateY(0) scale(0.96);
  box-shadow: none;
}

.card__quickview:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.card__quickview.is-loading {
  pointer-events: none;
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  .card__quickview:hover,
  .card__quickview:active {
    transform: none;
  }
}

/* ---------- Team-Filter (Mannschafts-Uebersicht) ---------- */

.team-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 26rem;
  margin: 0 0 var(--gutter);
  padding: 0.65rem 1rem;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.team-filter:focus-within {
  border-color: var(--secondary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.team-filter__icon {
  color: var(--on-surface-variant);
  font-size: 20px;
}

.team-filter__input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--on-surface);
}

.team-filter__input:focus {
  outline: none;
}

.team-filter__empty {
  color: var(--on-surface-variant);
  margin-bottom: var(--gutter);
}

[data-team-filter-item][hidden] {
  display: none;
}

/* Stat-Kacheln (Liga, Tabellenplatz, Training ...) - Kartendesign angelehnt
   an realmadrid.com: weisse Karte, duenner Gold-Akzent oben, Elevation on
   Hover statt der frueheren Bottom-Border-Unterstreichung. min-width:0 ist
   Pflicht, nicht nur Kosmetik - ohne das erzwingt der lange, unteilbare
   Inhalt mancher Werte (z.B. "TABELLENPLATZ"/"BEZIRKSLIGA") eine Mindest-
   breite pro Spalte, die groesser als der minmax(140px, ...)-Track ist;
   dadurch weigert sich das Grid zu reflowen und eine Kachel laeuft rechts
   aus dem Container heraus statt in die naechste Zeile zu rutschen. */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat {
  min-width: 0;
  background: var(--nh-surface);
  border: 1px solid var(--nh-surface-container-high);
  border-top: 3px solid var(--nh-gold);
  border-radius: var(--nh-radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 0.2s ease;
}

/* Hover hebt nicht per Schatten (siehe DESIGN.md, "Two-Shadow-Plus-Popovers
   Rule" - Karten bleiben flach), sondern per Border-Color-Shift auf Gold,
   wie bei .card an anderer Stelle im Theme. */
.stat:hover {
  border-color: var(--nh-gold);
}

.stat__label {
  display: block;
  font-family: var(--nh-font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nh-on-surface-variant);
  margin-bottom: 0.5rem;
}

.stat__value {
  display: block;
  font-family: var(--nh-font-body);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: none;
  color: var(--nh-primary);
  overflow-wrap: break-word;
}

/* ---------- Sidepanel / Embeds (Spielplan, Tabelle) ---------- */

.panel {
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.panel h3 {
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--outline-variant);
}

.panel__footer {
  margin-top: auto;
  padding-top: 1rem;
  text-align: center;
}

/* min-height + der "Wird geladen"-Hinweis dahinter gelten fuer ALLE Embeds
   (auch div+script-Widgets wie FuPa, nicht nur iframes) - siehe
   tsmg_render_embed_wrapper() in inc/fussball-de.php. Der Hinweis liegt
   absolut positioniert HINTER dem eigentlichen Embed-Inhalt; sobald das
   Widget-Script sein eigenes (undurchsichtiges) Markup nachlaedt, deckt es
   den Hinweis automatisch ab, ohne dass Javascript im Theme noetig ist. */
.embed-wrapper {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 480px;
  overflow-x: auto;
}

.panel .embed-wrapper {
  min-height: 380px;
}

.embed-wrapper__loading {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--nh-on-surface-variant);
  font-size: 14px;
}

.embed-wrapper iframe {
  width: 100%;
  min-height: 480px;
  border: 0;
}

.panel .embed-wrapper iframe {
  min-height: 380px;
}

.embed-placeholder {
  background: var(--surface-container);
  border: 1px dashed var(--outline);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  text-align: center;
  color: var(--on-surface-variant);
  font-size: 14px;
}

.embed-placeholder p {
  margin: 0 0 1rem;
}

.embed-placeholder p:last-child {
  margin-bottom: 0;
}

.kontakt-fallback {
  font-weight: 600;
}

.kontakt-fallback a {
  color: var(--primary);
}

/* ---------- Tabellen-Auszug (Startseite) ---------- */

.tabelle-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.tabelle-zeile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--outline-variant);
  font-size: 15px;
}

.tabelle-liste .tabelle-zeile:last-child {
  border-bottom: 0;
}

.tabelle-zeile--eigenes-team {
  background: rgba(242, 183, 5, 0.16);
  border-radius: var(--radius);
  font-weight: 700;
}

.tabelle-platz {
  width: 1.5rem;
  flex-shrink: 0;
  color: var(--on-surface-variant);
}

.tabelle-zeile--eigenes-team .tabelle-platz {
  color: var(--primary);
}

.tabelle-name {
  flex: 1;
  color: var(--on-surface);
}

.tabelle-punkte {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--on-surface);
}

.tabelle-mehr {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--primary);
}

.tabelle-mehr:hover {
  color: var(--secondary);
}

/* ---------- Instagram ---------- */

.instagram-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--gutter);
}

.instagram-feed a {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--outline-variant);
}

.instagram-feed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.instagram-feed a:hover img {
  transform: scale(1.06);
}

.instagram-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ---------- Sponsoren ---------- */

.sponsor-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.sponsor-strip a,
.sponsor-strip > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 96px;
  padding: 0.5rem;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.sponsor-strip a:hover,
.sponsor-strip a:focus-visible {
  border-color: var(--primary-container);
  transform: translateY(-2px);
}

.sponsor-strip img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* Laufband-Variante ab 6+ Sponsoren (front-page.php entscheidet serverseitig).
   Zwei identische Tracks nebeneinander, beide fahren exakt eine Track-Breite
   nach links - dadurch schliesst die Schleife nahtlos ohne Sprung. */
.sponsor-marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.sponsor-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2.5rem;
  padding-right: 2.5rem;
  animation: tsmg-sponsor-scroll 36s linear infinite;
}

.sponsor-marquee:hover .sponsor-track,
.sponsor-marquee:focus-within .sponsor-track {
  animation-play-state: paused;
}

@keyframes tsmg-sponsor-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.sponsor-track a,
.sponsor-track > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 96px;
  padding: 0.5rem;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.sponsor-track a:hover,
.sponsor-track a:focus-visible {
  border-color: var(--primary-container);
  transform: translateY(-2px);
}

.sponsor-track img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .sponsor-track {
    animation: none;
  }
  .sponsor-marquee {
    overflow-x: auto;
  }
}

/* ---------- Content (Seiten & News-Detail) ---------- */

.entry-content {
  max-width: 46rem;
  font-size: 18px;
}

.entry-content h2 { font-size: 32px; margin-top: 2rem; }
.entry-content h3 { font-size: 24px; margin-top: 1.5rem; }

.entry-content img {
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--inverse-surface);
  border-top: 4px solid var(--primary-container);
  margin-top: var(--section-gap);
}

.footer-columns {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 4rem 0;
}

@media (min-width: 900px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

.site-footer h4 {
  margin-bottom: 1rem;
  color: var(--inverse-on-surface);
}

.site-footer p,
.site-footer li {
  color: var(--inverse-on-surface);
  opacity: 0.85;
}

.site-footer nav ul,
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-map {
  margin: 1rem 0;
  border-radius: var(--nh-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: border-color 0.2s ease;
}

.footer-map:hover {
  border-color: var(--nh-gold);
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 160px;
  border: 0;
}

.site-footer nav a {
  color: var(--inverse-on-surface);
  opacity: 0.85;
}

.site-footer nav a:hover {
  color: var(--primary-container);
  opacity: 1;
}

.footer-logo {
  width: 120px;
  height: auto;
  margin-bottom: 1.5rem;
}

.no-racism {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  flex-direction: column;
  align-items: flex-start;
}

.no-racism span:last-child {
  background: var(--on-surface);
  color: var(--surface);
  padding: 0 0.25rem;
}

.social-links {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: var(--inverse-on-surface);
  display: inline-flex;
}

.social-links a:hover {
  color: var(--primary-container);
}

.social-links svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.footer-affiliations {
  position: relative;
  z-index: 1;
  margin-top: -1rem;
  padding-bottom: 3rem;
}

.footer-affiliations > .label {
  display: block;
  color: var(--inverse-on-surface);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.footer-affiliations__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-affiliations__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0.4rem;
  border-radius: 50%;
  border: 1px solid rgba(242, 183, 5, 0.35);
  /* Verbandslogos sind schwarze Linienzeichnungen auf transparentem Grund -
     ohne eigene helle Flaeche wuerden sie auf dem dunklen Footer praktisch
     verschwinden. */
  background: #fff;
  cursor: help;
}

.footer-affiliations__badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(242, 183, 5, 0.2);
  padding: 2rem 0;
}

.footer-bottom .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom .container {
    flex-direction: row;
    text-align: left;
  }
}

.footer-bottom,
.footer-bottom a {
  font-size: 14px;
  color: var(--inverse-on-surface);
  opacity: 0.7;
}

/* ---------- Preis-/Paketkarten (Mitglied werden, Sponsor werden) ---------- */

.section-head--center {
  justify-content: center;
  text-align: center;
  border-bottom: 0;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: start;
}

.tier-grid__cta {
  text-align: center;
  margin-top: 2.5rem;
}

.tier {
  position: relative;
  min-width: 0;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.tier:hover {
  border-color: var(--primary-container);
}

.tier--featured {
  border: 2px solid var(--primary-container);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
}

@media (min-width: 900px) {
  .tier--featured {
    transform: translateY(-1rem);
  }
}

.tier__flag {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary-container);
  color: var(--on-surface);
  padding: 0.25rem 1rem;
  border-bottom-left-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tier__head {
  border-bottom: 1px solid var(--outline-variant);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.tier__head h3 {
  margin: 0;
}

.tier__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin: 1rem 0 0.5rem;
}

/* Kein white-space:nowrap - der Preis ist Freitext (siehe inc/cpt-pakete.php)
   und neben kurzen Zahlen ("500 EUR") auch laengere Werte wie "Auf Anfrage"
   moeglich; nowrap liess diese ueber den Kartenrand hinauslaufen statt
   umzubrechen. */
.tier__price span {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--on-surface);
  overflow-wrap: break-word;
  max-width: 100%;
}

.tier__price small {
  font-size: 16px;
  color: var(--on-surface-variant);
  white-space: nowrap;
}

.tier__desc {
  margin: 0;
  font-size: 14px;
  color: var(--on-surface-variant);
}

.tier__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.tier__list li {
  position: relative;
  padding-left: 1.75rem;
}

/* Haken als CSS-Form - keine Icon-Schrift noetig */
.tier__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.45rem;
  height: 0.85rem;
  border: solid var(--primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Formular-Panel (Antrag / Kontakt) ---------- */

.form-panel {
  max-width: 56rem;
  margin: 0 auto;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  padding: 2rem;
}

@media (min-width: 768px) {
  .form-panel {
    padding: 3rem;
  }
}

.form-panel > h2 {
  border-bottom: 1px solid var(--outline-variant);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

/* ---------- Kontakt ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 68rem;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(260px, 1fr) 2fr;
    gap: 3rem;
  }

  .contact-layout .form-panel {
    max-width: none;
    margin: 0;
  }
}

.contact-info__item {
  margin-bottom: 2rem;
}

.contact-info__item .label {
  display: block;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.contact-info__item a {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--on-surface);
}

.contact-info__item a:hover {
  color: var(--primary);
}

.contact-info__item p {
  margin: 0;
  color: var(--on-surface-variant);
}

/* Damit eingebundene Plugin-Formulare das Design uebernehmen */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--on-surface);
  background: var(--surface-bright, #fff);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--tertiary);
  box-shadow: 0 0 0 1px var(--tertiary);
}

label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface);
  display: inline-block;
  margin-bottom: 0.25rem;
}

input[type="submit"],
button[type="submit"] {
  width: auto;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
  background: var(--primary);
  color: var(--on-primary);
}

/* ---------- Kontaktformular ---------- */

.kontakt-formular {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.kontakt-formular__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 560px) {
  .kontakt-formular__row {
    grid-template-columns: 1fr 1fr;
  }
}

.kontakt-formular__field {
  display: flex;
  flex-direction: column;
}

.kontakt-formular__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.kontakt-formular__checkbox input {
  width: auto;
  margin-top: 0.2rem;
}

.kontakt-formular__checkbox span {
  font-size: 14px;
  color: var(--on-surface-variant);
  text-transform: none;
}

.kontakt-formular__checkbox a {
  color: var(--primary);
  text-decoration: underline;
}

.tsmg-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-success {
  background: var(--surface-container-low);
  border: 2px solid var(--primary-container);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--on-surface);
  font-weight: 600;
}

.form-error {
  background: var(--error-container);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--on-error-container);
  font-weight: 600;
}

/* ---------- Sponsoren-Seite ---------- */

.sponsor-group {
  margin-bottom: 3.5rem;
}

.sponsor-group__title {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--outline-variant);
}

.thanks-banner {
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.thanks-banner h3 {
  margin: 0 0 0.5rem;
}

.thanks-banner p {
  margin: 0;
  color: var(--on-surface-variant);
}

@media (min-width: 768px) {
  .thanks-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 3rem;
  }
}

/* ---------- Zeitleiste (Vereinsgeschichte) ---------- */

.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 72rem;
  position: relative;
}

.timeline__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-bottom: 4rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__content {
  display: flex;
  flex-direction: column;
}

.timeline__year {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  order: -1;
  margin-bottom: 0.5rem;
}

.timeline__title {
  margin-bottom: 1rem;
}

.timeline__media {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* 4:3 - Padding-Trick statt aspect-ratio, damit die Box-Groesse
                           unabhaengig vom Bild-Decode berechnet wird */
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--outline-variant);
  transition: border-color 0.3s ease;
}

/* Archivfotos starten in Graustufen und werden beim Hover des ganzen
   Zeitleisten-Eintrags farbig - passend zum historischen Charakter der
   Chronik-Bilder. */
.timeline__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.6s ease;
}

.timeline__item:hover .timeline__media {
  border-color: var(--nh-gold);
}

.timeline__item:hover .timeline__image {
  filter: grayscale(0);
}

.timeline__marker {
  display: none;
}

@media (min-width: 900px) {
  .timeline {
    position: relative;
  }

  .timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: var(--outline-variant);
    transform: translateX(-50%);
  }

  .timeline__item {
    grid-template-columns: 1fr 4rem 1fr;
    align-items: center;
    gap: 3rem;
  }

  .timeline__marker {
    display: flex;
    justify-content: center;
    grid-column: 2;
  }

  .timeline__marker::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-container);
    border: 3px solid var(--surface);
    box-shadow: 0 0 0 2px var(--outline-variant);
    transition: transform 0.2s ease;
  }

  .timeline__item:hover .timeline__marker::before {
    transform: scale(1.4);
  }

  .timeline__content {
    grid-column: 1;
    text-align: right;
    align-items: flex-end;
  }

  .timeline__content .entry-content {
    text-align: left;
  }

  .timeline__media {
    grid-column: 3;
  }

  .timeline__item:nth-child(even) .timeline__content {
    grid-column: 3;
    text-align: left;
    align-items: flex-start;
  }

  .timeline__item:nth-child(even) .timeline__media {
    grid-column: 1;
  }
}

.chronicle-cta {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--nh-surface-container-high);
}

.chronicle-cta h2 {
  margin-bottom: 1rem;
}

.chronicle-cta p {
  max-width: 42rem;
  margin: 0 auto 2rem;
  color: var(--nh-on-surface-variant);
  font-size: 18px;
}

/* ---------- Team-Layout: Spielfeld + Seitenspalte ---------- */

.team-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
  align-items: start;
}

/* min-width:0 - ohne das weigern sich diese Grid-Kinder, unter die
   Breite ihres eigenen Inhalts zu schrumpfen (Default min-width:auto).
   Der Sidebar-Spalte steckt u.a. die Tabelle-Widget-Karte, deren breite
   Tabelle sonst die ganze Grid-Spur (und damit auch das Spielfeld
   darueber, da beide im selben 1-Spalten-Grid unterhalb 900px liegen)
   ueber die Viewport-Breite hinaus aufzwingt - derselbe Bug wie beim
   .team-overview-Grid auf der Mannschafts-Uebersicht. */
.team-layout__pitch,
.team-layout__sidebar {
  min-width: 0;
}

@media (min-width: 900px) {
  .team-layout {
    grid-template-columns: 2fr 1fr;
  }
  .team-layout--voll {
    grid-template-columns: 1fr;
  }
}

/* Spielfeld ohne Seitenspalte darf trotzdem nicht ueber die volle Breite
   ausufern - sonst wirkt es riesig. Deckelt die Breite auf eine
   Grid-Spalte-Breite (2fr von 3fr), auch wenn keine Sidebar da ist. */
.team-layout--voll .team-layout__pitch {
  max-width: 48rem;
}

/* ---------- Mannschafts-Uebersicht (Archiv) ---------- */

.sidebar-card {
  min-width: 0;
  background: var(--surface-container-high);
  border-radius: var(--nh-radius);
  padding: 1.5rem;
}

.sidebar-card h3 {
  margin: 0 0 0.5rem;
  font-size: 20px;
}

.sidebar-card p {
  margin: 0 0 1rem;
  color: var(--on-surface-variant);
}

/* Kein align-items:start - linke (Foto+Stats) und rechte Spalte
   (Naechstes Spiel + Tabelle) sollen gleich hoch werden und sich an der
   jeweils hoeheren Spalte orientieren (z.B. wenn die Tabelle viele Zeilen
   hat). .nh-featured wird dafuer weiter unten zum Flex-Container. */
.team-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}

.team-overview__sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
  min-width: 0;
}

@media (min-width: 900px) {
  .team-overview {
    grid-template-columns: 2fr 1fr;
  }
}

.badge {
  display: inline-block;
  background: var(--primary-container);
  color: var(--on-primary-container);
  padding: 0.25rem 0.5rem;
  border-radius: var(--nh-radius);
  font-family: var(--nh-font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-overview__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.team-overview__rest {
  margin-top: var(--gutter);
}

/* ---------- Taktik-Aufstellung (Spielfeld) ---------- */

.pitch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pitch-head h2 {
  margin: 0;
}

.pitch-formation {
  background: var(--surface-container-high);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 16px;
  text-transform: uppercase;
}

.pitch-formation .label {
  color: var(--on-surface-variant);
  margin-right: 0.25rem;
}

.pitch {
  position: relative;
  width: 100%;
  max-width: 42rem;
  aspect-ratio: 4 / 3;
  max-height: 480px;
  margin: 0 auto;
  background-color: #2b7042;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  /* Kein overflow:hidden - die Spieler-Hover-Karte darf ueber den Rand
     hinausragen (z.B. bei der vordersten Reihe nach oben). */
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 2rem 1rem;
}

@media (max-width: 640px) {
  .pitch {
    aspect-ratio: 2 / 3;
  }
}

.pitch__lines,
.pitch__circle,
.pitch__box,
.pitch__halfway {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.pitch__lines {
  inset: 1rem;
}

.pitch__circle {
  top: 50%;
  left: 50%;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pitch__box {
  left: 50%;
  width: 45%;
  height: 15%;
  transform: translateX(-50%);
}

.pitch__box--top {
  top: 1rem;
  border-top: 0;
}

.pitch__box--bottom {
  bottom: 1rem;
  border-bottom: 0;
}

.pitch__halfway {
  top: 50%;
  left: 1rem;
  right: 1rem;
  height: 0;
  border-width: 2px 0 0 0;
}

.pitch__row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pitch__player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.pitch__token {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease;
}

.pitch__player:hover .pitch__token {
  transform: scale(1.1);
}

.pitch__name {
  background: rgba(252, 249, 248, 0.9);
  color: var(--on-surface);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Farbcodierung nach Position: Sturm=Gold, Mittelfeld=Schwarz */
.pitch__player--sturm .pitch__token {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.pitch__player--mittelfeld .pitch__token {
  background: var(--secondary);
  color: var(--on-secondary);
}

.pitch__player--abwehr .pitch__token {
  background: var(--surface);
  color: var(--on-surface);
  border-color: var(--secondary);
}

.pitch__player--tor .pitch__token {
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
  border-color: var(--primary-container);
}

/* Leerer Formationsplatz: Position ist vorgesehen, aber (noch) kein Spieler
   im Kader hinterlegt - ehrlicher Platzhalter statt einen Namen zu erfinden. */
.pitch__player--leer .pitch__token {
  background: transparent;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.pitch__player--leer .pitch__name {
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.7);
}

.pitch__player--leer:hover .pitch__token {
  transform: none;
}

/* Einstiegs-Animation: Spieler-Token erscheinen nacheinander, wenn das
   Spielfeld ins Bild kommt (respektiert prefers-reduced-motion weiter unten). */
.pitch__row {
  animation: tsmg-pitch-row-in 0.4s ease-out both;
}

.pitch__row:nth-child(1) { animation-delay: 0s; }
.pitch__row:nth-child(2) { animation-delay: 0.08s; }
.pitch__row:nth-child(3) { animation-delay: 0.16s; }
.pitch__row:nth-child(4) { animation-delay: 0.24s; }

@keyframes tsmg-pitch-row-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover-/Fokus-Karte: zeigt Foto, Position, Name und (falls gepflegt)
   Saison-Stats zu einem Spieler auf dem Spielfeld. */
.pitch__player {
  position: relative;
}

.pitch__card {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translate(-50%, 6px) scale(0.96);
  width: 160px;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  text-align: left;
}

.pitch__player:hover .pitch__card,
.pitch__player:focus .pitch__card,
.pitch__player:focus-within .pitch__card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

/* Oberste Reihe (Sturm): Karte oeffnet sich nach unten statt nach oben,
   sonst wuerde sie aus dem Spielfeld heraus in die "Startelf"-Ueberschrift
   ragen statt eine Reihe innerhalb des Spielfelds zu ueberdecken.
   .pitch__row ist NICHT das erste Kind von .pitch (davor liegen die
   Linien-/Kreis-/Box-Deko-Divs), daher :first-child faelschlicherweise
   nie greifen wuerde - stattdessen traegt die erste Reihe die Klasse
   .pitch__row--erste (siehe tsmg_render_taktik()). */
.pitch__row--erste .pitch__card {
  bottom: auto;
  top: calc(100% + 0.5rem);
  transform: translate(-50%, -6px) scale(0.96);
}

.pitch__row--erste .pitch__player:hover .pitch__card,
.pitch__row--erste .pitch__player:focus .pitch__card,
.pitch__row--erste .pitch__player:focus-within .pitch__card {
  transform: translate(-50%, 0) scale(1);
}

.pitch__card-media {
  aspect-ratio: 1;
  background: var(--surface-variant);
}

.pitch__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pitch__card-body {
  padding: 0.5rem 0.6rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pitch__card-body .label {
  color: var(--primary);
  white-space: nowrap;
}

.pitch__card-body h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pitch__card-stats {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.15rem;
  font-size: 11px;
  color: var(--on-surface-variant);
}

.pitch__card-stats strong {
  color: var(--on-surface);
  font-family: var(--font-heading);
}

@media (prefers-reduced-motion: reduce) {
  .pitch__row {
    animation: none;
  }
  .pitch__card {
    transition: opacity 0.01ms;
  }
  .pitch__player:hover .pitch__card,
  .pitch__player:focus .pitch__card,
  .pitch__player:focus-within .pitch__card {
    transform: translate(-50%, 0);
  }
}

/* ---------- Kader / Spielerkarten ---------- */

.kader-heading {
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--outline-variant);
  color: var(--on-surface-variant);
  font-size: 20px;
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--gutter);
}

.player {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease;
  animation: tsmg-player-in 0.4s ease-out both;
}

.player:nth-child(1) { animation-delay: 0s; }
.player:nth-child(2) { animation-delay: 0.06s; }
.player:nth-child(3) { animation-delay: 0.12s; }
.player:nth-child(4) { animation-delay: 0.18s; }
.player:nth-child(n+5) { animation-delay: 0.24s; }

@keyframes tsmg-player-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .player {
    animation: none;
  }
}

.player:hover {
  border-color: var(--primary-container);
}

.player__media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--surface-variant);
  overflow: hidden;
}

.player__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.player:hover .player__media img {
  transform: scale(1.06);
}

.player__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.75), transparent 55%);
  pointer-events: none;
}

.player__number {
  position: absolute;
  bottom: 0.5rem;
  left: 0.75rem;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
}

.player__body {
  padding: 0.75rem 1rem 1rem;
}

.player__body .label {
  color: var(--primary);
}

.player__body h4 {
  margin: 0.25rem 0 0;
  font-size: 20px;
  line-height: 1.2;
}

/* ---------- Utilities ---------- */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* =========================================================
   "newhome" - Startseiten-Body nach der newhome/-Mockup-Vorlage.
   Eigene Tokens siehe :root (--nh-*). Praefix .nh- durchgehend,
   damit nichts mit den Black & Gold Athletic Klassen kollidiert,
   die Header/Footer/Unterseiten weiterhin nutzen.
   ========================================================= */

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-size: 1.25rem;
  line-height: 1;
  vertical-align: middle;
}

.nh-page {
  background: var(--nh-bg);
}

.nh-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

@media (min-width: 768px) {
  .nh-main {
    padding: 48px;
  }
}

.nh-card-hover {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.nh-card-hover:hover {
  transform: scale(1.02);
  border-color: var(--nh-gold);
}

@media (prefers-reduced-motion: reduce) {
  .nh-card-hover:hover {
    transform: none;
  }
}

/* ---------- Hero ---------- */

.nh-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--nh-radius);
  background: var(--nh-surface);
  border: 1px solid var(--nh-outline-variant);
}

.nh-hero__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 400px;
}

/* Bewusst spaeter als der uebliche 768px-Breakpoint: bei 66/33-Aufteilung
   bekommt die Panel-Spalte erst ab ~1024px genug Platz fuer den 64px-Titel
   ("Gemeinsam zum Erfolg") ohne dass Woerter am Rand abgeschnitten werden -
   siehe die analoge .nh-featured--stacked-Begruendung weiter unten. */
@media (min-width: 1024px) {
  .nh-hero__inner {
    flex-direction: row;
  }
}

.nh-hero__media {
  position: relative;
  width: 100%;
  height: 300px;
}

@media (min-width: 1024px) {
  .nh-hero__media {
    width: 66.6667%;
    height: auto;
  }
}

.nh-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nh-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

@media (min-width: 1024px) {
  .nh-hero__media::after {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
  }
}

.nh-hero__panel {
  width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--nh-primary);
  color: var(--nh-on-primary);
}

@media (min-width: 1024px) {
  .nh-hero__panel {
    width: 33.3333%;
  }
}

.nh-hero__label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--nh-font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nh-gold);
}

/* Kein overflow-wrap:break-word hier: in Kombination mit text-wrap:balance
   veranlasst es Chrome, das Wort "Gemeinsam" absichtlich mitten im Wort zu
   trennen, sobald das als "ausgeglichener" ueber 3 Zeilen gilt - und zwar
   auch dann, wenn eigentlich reichlich Platz fuer normalen Wortumbruch da
   waere (empirisch bei 1024-1920px Breite bestaetigt). Das eigentliche
   Ueberlaufrisiko wird stattdessen durch den fluiden clamp()-Font unten
   abgefangen. */
.nh-hero__title {
  margin: 0 0 1rem;
  font-family: var(--nh-font-body);
  font-weight: 800;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: -0.02em;
  color: #fff;
  text-transform: none;
  text-wrap: balance;
}

@media (min-width: 1024px) {
  .nh-hero__title {
    /* Fluid statt fest 64px - der Panel ist ab hier 33% der Viewport-
       Breite; ein fester 64px-Sprung passt bei ca. 1024-1300px nicht
       neben "Gemeinsam" und erzwingt einen haesslichen Wortumbruch mitten
       im Wort (overflow-wrap:break-word oben verhindert nur echtes
       Ueberlaufen, nicht den Umbruch selbst). clamp() waechst mit der
       Panel-Breite mit, damit immer genug Platz da ist. */
    font-size: clamp(40px, 4.75vw, 64px);
    line-height: 1.15;
  }
}

.nh-hero__text {
  margin: 0 0 1.5rem;
  font-family: var(--nh-font-body);
  font-size: 18px;
  line-height: 28px;
  color: var(--nh-outline-variant);
  max-width: 42rem;
}

.nh-hero__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--nh-radius);
  background: var(--nh-gold);
  color: var(--nh-on-gold);
  font-family: var(--nh-font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, transform 0.15s var(--ease-out-quart);
}

.nh-hero__cta:hover {
  background: #ffe088;
  text-decoration: none;
}

.nh-hero__cta:active {
  transform: scale(0.97);
}

/* ---------- Section head ---------- */

.nh-block-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--nh-surface-container-high);
}

.nh-block-head h2 {
  margin: 0;
  font-family: var(--nh-font-body);
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  color: var(--nh-primary);
  text-transform: none;
}

.nh-block-head a {
  font-family: var(--nh-font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nh-primary);
  border-bottom: 1px solid var(--nh-primary);
  padding-bottom: 0.25rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nh-block-head a:hover {
  color: var(--nh-gold);
  border-color: var(--nh-gold);
  text-decoration: none;
}

/* ---------- Match Center ---------- */

.nh-match-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 700px) {
  .nh-match-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.nh-match-card {
  position: relative;
  overflow: hidden;
  background: var(--nh-surface);
  border: 1px solid var(--nh-surface-container-high);
  border-radius: var(--nh-radius);
  padding: 24px;
}

.nh-match-card--result {
  opacity: 0.9;
}

.nh-match-card__flag {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.25rem 0.5rem;
  border-bottom-left-radius: var(--nh-radius);
  font-family: var(--nh-font-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nh-match-card__flag--next {
  background: var(--nh-primary);
  color: #fff;
}

.nh-match-card__flag--result {
  background: var(--nh-surface-container-high);
  color: var(--nh-on-surface-variant);
}

.nh-match-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-family: var(--nh-font-label);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--nh-on-surface-variant);
}

.nh-match-card__date {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--nh-primary);
}

.nh-match-card--result .nh-match-card__date {
  color: var(--nh-on-surface-variant);
}

.nh-match-card__date .material-symbols-outlined {
  font-size: 16px;
}

.nh-match-card__teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.nh-match-card__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.nh-match-card__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--nh-surface-container);
  color: var(--nh-primary);
  font-family: var(--nh-font-body);
  font-weight: 700;
  font-size: 15px;
  overflow: hidden;
}

.nh-match-card__badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nh-match-card__badge--muted {
  color: var(--nh-on-surface-variant);
}

.nh-match-card__name {
  font-family: var(--nh-font-body);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  color: var(--nh-on-surface);
}

.nh-match-card__vs {
  font-family: var(--nh-font-body);
  font-weight: 800;
  font-size: 32px;
  color: var(--nh-surface-container-high);
  margin: 0 1rem;
  flex-shrink: 0;
}

.nh-match-card__score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 1rem;
  flex-shrink: 0;
  font-family: var(--nh-font-body);
  font-weight: 700;
  font-size: 32px;
  color: var(--nh-primary);
}

.nh-match-card__score span:last-child {
  color: var(--nh-on-surface-variant);
}

.nh-match-card__venue {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--nh-surface-container-high);
  text-align: center;
  font-family: var(--nh-font-label);
  font-size: 12px;
  color: var(--nh-on-surface-variant);
}

.nh-match-card__venue a {
  color: var(--nh-primary);
  font-weight: 600;
}

.nh-match-card__venue a:hover {
  color: var(--primary);
}

/* ---------- News Grid ---------- */

.nh-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .nh-news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nh-news-card {
  display: block;
  background: var(--nh-surface);
  border: 1px solid var(--nh-surface-container-high);
  border-radius: var(--nh-radius);
  overflow: hidden;
}

.nh-news-card:hover {
  text-decoration: none;
}

.nh-news-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--nh-surface-container);
}

.nh-news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.nh-news-card:hover .nh-news-card__media img {
  transform: scale(1.05);
}

.nh-news-card__body {
  padding: 1rem;
}

.nh-news-card__label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--nh-font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nh-gold-deep);
}

.nh-news-card__body h3 {
  margin: 0 0 0.5rem;
  font-family: var(--nh-font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: var(--nh-primary);
  text-transform: none;
}

.nh-news-card__body p {
  margin: 0;
  font-family: var(--nh-font-body);
  font-size: 14px;
  color: var(--nh-on-surface-variant);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Featured Squad ---------- */

/* min-width:0 - .nh-featured ist selbst ein Grid-Kind von .team-overview;
   ohne das greift derselbe Default-min-width:auto-Bug wie bei
   .nh-featured__body/.stat und der Container weigert sich zu schrumpfen. */
.nh-featured {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--nh-surface-container-low);
  border: 1px solid var(--nh-surface-container-high);
  border-radius: var(--nh-radius);
  padding: 24px;
}

@media (min-width: 768px) {
  .nh-featured {
    padding: 48px;
  }
}

/* flex:1 laesst die Karte die volle Hoehe ausfuellen, wenn .nh-featured
   selbst in einem gestreckten Grid-Feld sitzt (siehe .team-overview) - in
   anderen Kontexten (Startseite, Aktuelles) ohne Auswirkung, da dort keine
   zusaetzliche Hoehe zu verteilen ist. */
.nh-featured__inner {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

@media (min-width: 768px) {
  .nh-featured__inner {
    flex-direction: row;
  }
}

.nh-featured__media {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: var(--nh-radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  .nh-featured__media {
    width: 50%;
    height: 400px;
  }
}

.nh-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* min-width:0 ist noetig, weil .nh-featured__body selbst ein Flex-Kind ist
   (Kind von .nh-featured__inner) - Flex-Kinds haben per Default
   min-width:auto, also die max-content-Breite ihres Inhalts. Ohne das
   weigert sich der Body, unter die Breite seines eigenen Inhalts (z.B.
   des stat-grid) zu schrumpfen, und die width:100% Regel unten greift ins
   Leere - genau derselbe Bug wie beim .stat-Grid selbst, nur eine Ebene
   hoeher. */
.nh-featured__body {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
}

@media (min-width: 768px) {
  .nh-featured__body {
    width: 50%;
  }
}

.nh-featured__label {
  font-family: var(--nh-font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nh-gold-deep);
}

.nh-featured__body h2 {
  margin: 0;
  font-family: var(--nh-font-body);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.25;
  color: var(--nh-primary);
  text-transform: none;
}

/* .nh-featured schaltet ab 768px Viewport-Breite auf Foto+Text nebeneinander -
   das setzt aber voraus, dass die Karte auch wirklich die volle Breite hat.
   Auf der Mannschafts-Uebersicht steckt sie in der 2fr-Spalte neben einer
   1fr-Seitenspalte (siehe .team-overview), dort ist knapp oberhalb 768px
   effektiv nur ein schmaler Spaltenanteil verfuegbar - das Foto wird zur
   duennen Scheibe gequetscht. .nh-featured--stacked haelt Foto/Text in
   diesem verschachtelten Kontext deshalb IMMER untereinander, unabhaengig
   von der Viewport-Breite. */
.nh-featured--stacked .nh-featured__inner {
  flex-direction: column;
}

.nh-featured--stacked .nh-featured__media,
.nh-featured--stacked .nh-featured__body {
  width: 100%;
}

.nh-featured--stacked .nh-featured__media {
  height: 260px;
}

@media (min-width: 640px) {
  .nh-featured--stacked .nh-featured__media {
    height: 340px;
  }
}

.nh-featured__body p {
  margin: 0;
  font-family: var(--nh-font-body);
  font-size: 18px;
  line-height: 28px;
  color: var(--nh-on-surface-variant);
  max-width: 42rem;
}

.nh-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--nh-radius);
  background: var(--nh-primary);
  color: #fff;
  font-family: var(--nh-font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: background-color 0.2s ease, transform 0.15s var(--ease-out-quart), box-shadow 0.2s ease;
}

.nh-featured__cta:hover {
  background: var(--nh-slate-dark);
  text-decoration: none;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.nh-featured__cta:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.nh-featured__cta:focus-visible {
  outline: 2px solid var(--nh-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .nh-featured__cta:hover,
  .nh-featured__cta:active {
    transform: none;
  }
}

/* ---------- Team-Schnellansicht (Modal, AJAX) ---------- */

.team-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.team-modal[hidden] {
  display: none;
}

.team-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  animation: tsmg-modal-fade-in 0.2s ease both;
}

.team-modal__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--surface-container-lowest);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  animation: tsmg-modal-in 0.25s var(--ease-out-quart) both;
}

.team-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s var(--ease-out-quart);
}

.team-modal__close:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.08);
}

.team-modal__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.team-modal__body {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-modal__spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--outline-variant);
  border-top-color: var(--secondary);
  animation: tsmg-spin 0.7s linear infinite;
}

.team-modal__content {
  width: 100%;
  text-align: left;
}

.team-modal__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--surface-container);
}

.team-modal__content-body {
  padding: 1.5rem 2rem 2rem;
}

.team-modal__content-body h3 {
  margin: 0 0 0.75rem;
}

.team-modal__content-body .stat-grid {
  margin: 1rem 0;
}

.team-modal__actions {
  margin-top: 1rem;
}

.team-modal__error {
  padding: 2rem;
  text-align: center;
  color: var(--on-surface-variant);
}

@keyframes tsmg-modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes tsmg-modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tsmg-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .team-modal__backdrop,
  .team-modal__panel {
    animation: none;
  }
}

.nh-featured__cta .material-symbols-outlined {
  font-size: 18px;
}

/* ---------- Partners & Social ---------- */

.nh-partners-social {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--nh-surface-container-high);
}

@media (min-width: 700px) {
  .nh-partners-social {
    grid-template-columns: 1fr 1fr;
  }
}

.nh-partners-social h3 {
  margin: 0 0 1.5rem;
  font-family: var(--nh-font-body);
  font-weight: 700;
  font-size: 24px;
  color: var(--nh-primary);
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nh-partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.nh-partners-row img {
  max-height: 80px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.nh-partners-row a:hover img,
.nh-partners-row a:focus-visible img {
  transform: translateY(-2px);
}

.nh-follow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.nh-follow-grid__tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--nh-radius);
  background: var(--nh-surface-container);
}

.nh-follow-grid__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.nh-follow-grid__tile:hover img {
  transform: scale(1.1);
}

.nh-follow-grid__tile--handle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nh-primary);
  color: #fff;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nh-follow-grid__tile--handle:hover {
  background: var(--nh-gold);
  color: var(--nh-on-gold);
  text-decoration: none;
}

.nh-follow-grid__tile--handle span {
  font-family: var(--nh-font-label);
  font-size: 11px;
  font-weight: 600;
  padding: 0 0.5rem;
  word-break: break-word;
}

.text-center { text-align: center; }
