/*
Theme Name: SpVgg Hoehenkirchen
Theme URI: https://www.spvgg-hoehenkirchen.de
Author: Ben (betoldster)
Description: Custom block theme for SpVgg Hoehenkirchen e.V. — "Flutlicht" design: dark stage, crest palette (red/black/gold/white), League Gothic display type, light "Leselicht" reading surfaces.
Version: 0.3.2
Requires at least: 7.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: spvgg
*/

/* ═══════════════════════════════════════════════════════════════
   Flutlicht token system.
   Bare :root carries the dark "Flutlicht" stage (values mirror
   theme.json presets); html.hell re-maps the WP preset variables to
   the light "Tageslicht" mode — layout never changes. Since
   15.09.2026 LIGHT is what visitors get by default: functions.php
   renders the hell class server-side and only a stored 'dunkel'
   preference removes it. Nav and footer pin their own dark values
   in both modes.
   ═══════════════════════════════════════════════════════════════ */

/* Fluid root size: 16px up to 1440px-wide viewports, growing linearly to
   20px at 3840px (4K at 100% OS scaling). Everything rem-based — type,
   spacing, and the rem layout widths — scales with it; media-query
   breakpoints stay in device px on purpose. rem in the clamp keeps the
   user's browser font-size preference in charge of the baseline. */
html {
  font-size: clamp(1rem, 0.85rem + 0.1667vw, 1.25rem);
}

:root {
  --spvgg-rot-tief: #A50D25;
  --spvgg-lese-grund: #F1EDE4;
  --spvgg-lese-text: #1B1A18;
  --spvgg-lese-muted: #4A4843;
  --spvgg-karte: #101010;
  --spvgg-bild-1: #232323;
  --spvgg-bild-2: #1A1A1A;
  --spvgg-slot: #5A5852;
  --spvgg-beam-rot: rgba(200, 16, 46, 0.34);
  --spvgg-beam-gold: rgba(179, 146, 98, 0.17);
  --spvgg-wappen-filter: grayscale(0.4) brightness(1.15);
  --spvgg-wappen-opacity: 0.13;
}

html.hell {
  --spvgg-lese-grund: #FCFAF6;
  --spvgg-karte: #F8F5F0;
  --spvgg-bild-1: #E7E3DA;
  --spvgg-bild-2: #DAD5CA;
  --spvgg-slot: #A8A399;
  --spvgg-beam-rot: rgba(200, 16, 46, 0.10);
  --spvgg-beam-gold: rgba(179, 146, 98, 0.16);
  --spvgg-wappen-filter: grayscale(0.3);
  --spvgg-wappen-opacity: 0.18;
}

html.hell body {
  --wp--preset--color--base: #EFEBE4;
  --wp--preset--color--surface: #F8F5F0;
  --wp--preset--color--kante: #DDD8CD;
  --wp--preset--color--contrast: #1B1A18;
  --wp--preset--color--gedimmt: #6E6B64;
  --wp--preset--color--leselicht: #FCFAF6;
}

/* Reserve the scrollbar gutter so short pages don't shift against long ones */
html {
  scrollbar-gutter: stable;
}

/* Sticky footer: on short pages the footer stays at the viewport bottom
   instead of riding up with the content. Every template renders <main>
   as a direct child of the root wrapper, so it takes the spare height. */
.wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.wp-site-blocks > main {
  flex-grow: 1;
}

/* WP's root flow layout puts a 24px block gap before every top-level
   block — under the header that left a strip of page background before
   the floodlight beams started (review Ben 02.10.2026). Heroes sit flush,
   and so does the subnav below a hero. */
.wp-site-blocks > .spvgg-hero,
.wp-site-blocks > .spvgg-seiten-hero,
.wp-site-blocks > .spvgg-subnav {
  margin-block-start: 0;
}

body {
  overflow-x: hidden;
  /* Chrome on Android snapped glyph positions of the condensed, letter-
     spaced League Gothic labels to whole pixels — gaps next to every "T"
     ("AKT UELLES", "SPIELT AG"). Exact glyph positions fix it; desktop
     rendering is unchanged (browser check 02.10.2026). */
  text-rendering: geometricPrecision;
}

/* ── Typo-Bausteine ── */

.spvgg-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--wp--preset--color--secondary);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--wp--preset--font-family--metropolis);
  margin: 0;
}

.spvgg-eyebrow::before {
  content: '';
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: currentColor;
  flex-shrink: 0;
}

.spvgg-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.spvgg-section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  margin: 0.3rem 0 0;
}

.spvgg-link-all {
  color: var(--wp--preset--color--primary) !important;
  font-family: var(--wp--preset--font-family--league-gothic);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  text-decoration: none;
}

.spvgg-link-all::after {
  content: '→';
  transition: transform 0.2s;
}

.spvgg-link-all:hover::after {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .spvgg-link-all::after { transition: none; }
}

/* ── Nav: in beiden Modi schwarz (konstante Bühnenkante) ── */

.spvgg-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #2A2A2A;
  color: #EFEDE8;
}

/* Background + blur live on a pseudo-element: backdrop-filter on
   .spvgg-nav itself would make the bar the containing block for
   position:fixed descendants and trap the mobile menu overlay inside it. */
.spvgg-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(16, 16, 16, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.spvgg-nav .wp-block-site-title a {
  font-family: var(--wp--preset--font-family--league-gothic);
  text-transform: uppercase;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #EFEDE8;
  text-decoration: none;
}

.spvgg-nav-sub {
  color: var(--wp--preset--color--secondary) !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0.15rem 0 0 !important;
}

.spvgg-nav .wp-block-navigation a {
  font-family: var(--wp--preset--font-family--league-gothic);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.05rem;
  color: #9C9A94;
  transition: color 0.15s;
}

.spvgg-nav .wp-block-navigation a:hover,
.spvgg-nav .wp-block-navigation .current-menu-item a {
  color: #EFEDE8;
}

.spvgg-nav .wp-block-navigation__responsive-container-open,
.spvgg-nav .wp-block-navigation__responsive-container-close {
  color: #EFEDE8;
}

/* Phone menu overlay (review Ben 02.10.2026: was all black, oversized,
   text glued to the left edge). Now: page gutter, crest + club name on
   top, a round close button, items as a ruled list with gold arrows,
   and a faint red/gold floodlight glow from the top. */
.spvgg-nav .wp-block-navigation__responsive-container.is-menu-open {
  background:
    radial-gradient(ellipse 75% 38% at 12% -6%, rgba(200, 16, 46, 0.30), transparent 70%),
    radial-gradient(ellipse 65% 34% at 92% -6%, rgba(179, 146, 98, 0.26), transparent 70%),
    #101010 !important;
  color: #EFEDE8;
  padding: 1rem var(--spvgg-pad) 2rem !important;
}

.spvgg-nav .is-menu-open .wp-block-navigation__responsive-container-close {
  top: 1rem;
  right: var(--spvgg-pad);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2A2A2A;
  border-radius: 50%;
}

.spvgg-nav .is-menu-open .wp-block-navigation__responsive-container-content {
  padding-top: 0 !important;
  align-items: stretch !important;
}

/* Crest + name at the top, level with the close button. */
.spvgg-nav .is-menu-open .wp-block-navigation__responsive-container-content::before {
  content: "SpVgg Höhenkirchen";
  display: block;
  height: 44px;
  line-height: 44px;
  margin-bottom: 1.6rem;
  padding-left: 52px;
  background: url("assets/logo.png") left center / 38px auto no-repeat;
  font-family: var(--wp--preset--font-family--league-gothic);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.2rem;
  color: #EFEDE8;
}

.spvgg-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.spvgg-nav .is-menu-open .wp-block-navigation__container {
  width: 100%;
  gap: 0 !important;
  align-items: stretch !important;
}

/* A hidden item (pilot: Sportstätten) splits the menu into two lists —
   lines below each item, one on top of the first, so both read as one. */
.spvgg-nav .is-menu-open .wp-block-navigation-item {
  width: 100%;
  border-bottom: 1px solid #2A2A2A;
}

.spvgg-nav .is-menu-open .wp-block-navigation__container:first-of-type > .wp-block-navigation-item:first-child {
  border-top: 1px solid #2A2A2A;
}

.spvgg-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.9rem 0.2rem;
  color: #EFEDE8;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
}

.spvgg-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation a::after {
  content: "→";
  font-family: var(--wp--preset--font-family--metropolis);
  font-size: 1.1rem;
  color: var(--wp--preset--color--secondary);
}

.spvgg-nav .wp-block-navigation__responsive-container.is-menu-open .current-menu-item a {
  color: var(--wp--preset--color--secondary);
  box-shadow: inset 3px 0 0 var(--wp--preset--color--primary);
  padding-left: 0.9rem;
}

.spvgg-modus {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid #2A2A2A;
  color: #9C9A94;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s;
}

.spvgg-modus:hover,
.spvgg-modus:focus-visible {
  border-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--secondary);
}

/* ── Subnav: zweite Leiste unter der Haupt-Nav (Bereiche + alle Einheiten mit Tabs) ── */

.spvgg-subnav {
  background: var(--wp--preset--color--surface);
  border-bottom: 1px solid var(--wp--preset--color--kante);
}

.spvgg-subnav-inner {
  max-width: 77.5rem;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  overflow-x: auto;
}

.spvgg-subnav-titel {
  /* Same width for "Verein" and "Fussball": divider and tabs don't shift
     sideways between sections (review Ben 02.10.2026). */
  min-width: 4rem;
  font-family: var(--wp--preset--font-family--league-gothic);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  color: var(--wp--preset--color--secondary);
  padding: 0.55rem 0.9rem 0.55rem 0;
  border-right: 1px solid var(--wp--preset--color--kante);
  margin-right: 0.5rem;
  white-space: nowrap;
  /* Fixed line box: the bar keeps one height whatever font an item uses
     (the sub-department back link is body font, the tabs League Gothic;
     without this the bar jumped by ~3px between pages — Ben 31.10.2026). */
  line-height: 1.25rem;
}

.spvgg-subnav a {
  display: block;
  padding: 0.55rem 0.9rem;
  font-family: var(--wp--preset--font-family--league-gothic);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.98rem;
  line-height: 1.25rem;
  color: var(--wp--preset--color--gedimmt);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s;
}

.spvgg-subnav a:hover {
  color: var(--wp--preset--color--contrast);
}

.spvgg-subnav a.ist-aktiv {
  color: var(--wp--preset--color--primary);
  border-bottom-color: var(--wp--preset--color--primary);
}

/* ── Hero (Startseite) ── */

.spvgg-hero {
  position: relative;
  overflow: hidden;
  padding: 3.2rem 0 2.8rem;
  /* Right edge of the 77.5rem content column — crest and gold beam anchor here */
  --spvgg-inhalt-rand: max(2rem, calc((100% - 77.5rem) / 2));
}

/* Floodlight: soft cones from two sources above the stage. conic-gradient
   gives naturally widening beams with soft edges (no clipped panels); the
   mask fades them out toward the bottom. The cones cross in the lower
   middle, so there is no dark gap between them. */
.spvgg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(from 146deg at 8% -30%,
    transparent 0deg,
    var(--spvgg-beam-rot) 16deg 28deg,
    transparent 44deg);
  -webkit-mask-image: linear-gradient(180deg, #000 15%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 15%, transparent 96%);
  pointer-events: none;
  z-index: 0;
}

.spvgg-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(from 172deg at 92% -30%,
    transparent 0deg,
    var(--spvgg-beam-gold) 16deg 28deg,
    transparent 44deg);
  -webkit-mask-image: linear-gradient(180deg, #000 15%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 15%, transparent 96%);
  pointer-events: none;
  z-index: 0;
}

.spvgg-hero-wappen {
  position: absolute;
  /* Pin to the right edge of the 77.5rem content column, not the viewport —
     keeps the crest proportional to the hero text at every resolution */
  right: var(--spvgg-inhalt-rand);
  top: 50%;
  transform: translateY(-50%);
  width: min(30%, 360px);
  opacity: var(--spvgg-wappen-opacity);
  filter: var(--spvgg-wappen-filter);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.spvgg-hero .spvgg-hero-inhalt {
  position: relative;
  z-index: 2;
}

.spvgg-hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  line-height: 0.88;
  margin: 0.9rem 0 1rem;
}

.spvgg-hero h1 em {
  font-style: normal;
  color: var(--wp--preset--color--primary);
}

.spvgg-hero .spvgg-hero-sub {
  color: var(--wp--preset--color--gedimmt);
  max-width: 44ch;
  margin: 0 0 1.5rem;
}

.wp-block-button.is-style-outline .wp-block-button__link,
.spvgg-btn-ghost .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--contrast);
  border: 1px solid var(--wp--preset--color--kante);
}

.spvgg-btn-ghost .wp-block-button__link:hover {
  border-color: var(--wp--preset--color--gedimmt);
}

.wp-element-button:hover {
  background: var(--spvgg-rot-tief);
}

.spvgg-btn-ghost .wp-element-button:hover {
  background: transparent;
}

/* ── Stats-Band (flach, Zahl neben Label) ── */

.spvgg-stats {
  background: var(--wp--preset--color--primary);
  color: #ffffff;
}

.spvgg-stats-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Small phones: number above label, tighter cells — the three cells were
   16px wider than a 360px screen. */
@media (max-width: 420px) {
  .spvgg-stat {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0.6rem 0.3rem;
    text-align: center;
  }
}

.spvgg-stat {
  padding: 0.7rem 1rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.6rem;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.spvgg-stat:last-child {
  border-right: 0;
}

.spvgg-stat b {
  font-family: var(--wp--preset--font-family--league-gothic);
  font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1;
  color: #fff;
}

.spvgg-stat span {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.78);
}

/* ── Aktuelles: dunkle News-Karten + Termine-Box ── */

/* Kopf (Zeile 1) und Kartenliste/Termine-Box (Zeile 2) teilen sich ein Grid,
   damit die Termine-Box exakt auf Höhe der ersten News-Karte beginnt. */
.spvgg-aktuelles-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  column-gap: 3rem;
  align-items: start;
}

.spvgg-aktuelles-layout .spvgg-aktuelles { display: contents; }
.spvgg-aktuelles-layout .spvgg-aktuelles > * { grid-column: 1; }
.spvgg-aktuelles-layout .spvgg-termine-box {
  grid-column: 2;
  grid-row: 2;
  /* WP flow layout puts a block-gap margin on every sibling after the
     first — inside the grid cell that pushes the box below the cards. */
  margin-block-start: 0;
}

@media (max-width: 960px) {
  .spvgg-aktuelles-layout { grid-template-columns: 1fr; }
  .spvgg-aktuelles-layout .spvgg-termine-box {
    grid-column: 1;
    grid-row: auto;
    margin-top: 1rem;
  }
}

.spvgg-news-karte {
  display: block;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--kante);
  margin-bottom: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.spvgg-news-karte--bild {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.4rem;
}

.spvgg-news-karte--einfach {
  padding: 1.1rem 1.4rem;
}

.spvgg-news-karte--einfach h3 {
  font-size: 1.5rem;
  margin: 0 0 0.2rem;
  line-height: 1;
}

.spvgg-news-karte--einfach p {
  margin: 0;
  color: var(--wp--preset--color--gedimmt);
  font-size: 0.92rem;
}

.spvgg-news-karte:hover {
  border-color: var(--wp--preset--color--gedimmt);
}

.spvgg-news-bild {
  background: linear-gradient(135deg, var(--spvgg-bild-1), var(--spvgg-bild-2));
  min-height: 130px;
  position: relative;
  overflow: hidden;
}

.spvgg-news-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

/* News without a picture: automatic placeholder in the Flutlicht look
   — two light beams, red from the left and gold from the right like
   the page heroes, the club crest and the department's name under it
   (Ben, 25.11.2026: the sport pictogram alone did not look good). */
.spvgg-news-bild--leer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.9rem 0.75rem 1rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 120% at -10% 0%, var(--spvgg-beam-rot), transparent 100%),
    radial-gradient(ellipse 70% 120% at 110% 100%, var(--spvgg-beam-gold), transparent 100%),
    linear-gradient(135deg, var(--spvgg-bild-1), var(--spvgg-bild-2));
}

.spvgg-news-bild--leer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--wp--preset--color--primary);
  opacity: 0.85;
}

/* The department's sport pictogram, small in the top left corner
   (the masks of the department cards; none for club news). */
.spvgg-news-bild--leer[data-abt]::after {
  content: '';
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  width: 1.9rem;
  height: 1.9rem;
  background: var(--wp--preset--color--secondary);
  -webkit-mask: var(--spvgg-pikto, none) center / contain no-repeat;
  mask: var(--spvgg-pikto, none) center / contain no-repeat;
  opacity: 0.9;
}

/* Overrides the cover rule for real pictures above. */
.spvgg-news-bild--leer .spvgg-news-bild-wappen {
  position: static;
  width: auto;
  height: 3.6rem;
  object-fit: contain;
  margin-bottom: 0.45rem;
}

.spvgg-news-bild-vorsatz {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gedimmt);
}

.spvgg-news-bild-name {
  font-family: var(--wp--preset--font-family--league-gothic);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wp--preset--color--contrast);
  overflow-wrap: anywhere;
}

.spvgg-news-text {
  padding: 1.1rem 1.4rem 1.1rem 0;
}

.spvgg-news-text h3 {
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.2rem;
  line-height: 1;
}

.spvgg-news-meta {
  color: var(--wp--preset--color--gedimmt);
  font-size: 0.78rem;
  margin: 0 0 0.5rem;
}

.spvgg-badge {
  display: inline-block;
  border: 1px solid var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--secondary);
  padding: 0.05rem 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 0.6rem;
}

.spvgg-news-text p {
  margin: 0;
  color: var(--wp--preset--color--gedimmt);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .spvgg-news-karte--bild { grid-template-columns: 1fr; }
  .spvgg-news-karte--bild .spvgg-news-text { padding: 1.1rem 1.4rem; }
}

.spvgg-adresse {
  border-left: 3px solid var(--wp--preset--color--secondary);
  background: rgba(179, 146, 98, 0.08);
  padding: 0.75rem 1rem;
}

.spvgg-termine-box {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--kante);
  border-top: 2px solid var(--wp--preset--color--primary);
  padding: 1.5rem 1.6rem;
}

.spvgg-termine-box h3 {
  font-size: 1.7rem;
  margin: 0 0 1rem;
}

.spvgg-termin {
  display: flex;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--wp--preset--color--kante);
  align-items: baseline;
}

.spvgg-termin:last-of-type {
  border-bottom: 0;
}

.spvgg-termin time {
  font-family: var(--wp--preset--font-family--league-gothic);
  font-size: 1.2rem;
  color: var(--wp--preset--color--primary);
  white-space: nowrap;
  min-width: 3.2rem;
}

.spvgg-termin a {
  font-size: 0.9rem;
  text-decoration: none;
}

/* Department (or "Verein") above the event title. */
.spvgg-termin-text {
  display: grid;
  gap: 0.1rem;
}

.spvgg-termin-abt {
  font-family: var(--wp--preset--font-family--metropolis);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--secondary);
}

.spvgg-termin a:hover {
  color: var(--wp--preset--color--primary);
}

.spvgg-termine-box .spvgg-link-all {
  display: inline-block;
  margin-top: 1rem;
}

/* ── News-Stream (/aktuelles/) + Termin-Liste (/termine/) ── */

.spvgg-news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.spvgg-chip {
  border: 1px solid var(--wp--preset--color--kante);
  background: var(--spvgg-karte);
  color: inherit;
  padding: 0.25rem 0.85rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color 0.2s;
}

.spvgg-chip:hover {
  border-color: var(--wp--preset--color--secondary);
}

.spvgg-chip.ist-aktiv {
  border-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--secondary);
}

/* Sub-department chip ("Gymnastik › Bubble Babes"): dashed edge marks it
   as part of the department chip before it. */
.spvgg-chip--unter {
  border-style: dashed;
}

.spvgg-filter-hinweis {
  color: var(--wp--preset--color--gedimmt);
  font-size: 0.9rem;
  margin: 0 0 1.2rem;
}

.spvgg-news-liste--stream {
  margin-bottom: 2rem;
  /* Wide stream (alignwide): two card columns once there is room.
     min(…, 100%): below 30rem one column as wide as the screen — a bare
     30rem floor made /aktuelles/ scroll sideways on phones. */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(30rem, 100%), 1fr));
  gap: 0.9rem;
}

.spvgg-pagination {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  padding-bottom: 3rem;
}

.spvgg-pagination span {
  color: var(--wp--preset--color--gedimmt);
  font-size: 0.85rem;
}

.spvgg-termine-liste {
  margin-bottom: 3rem;
}

.spvgg-termin-zeile {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
  padding: 0.9rem 0.2rem;
  border-bottom: 1px solid var(--wp--preset--color--kante);
  text-decoration: none;
  color: inherit;
}

.spvgg-termin-zeile:hover .spvgg-termin-titel {
  color: var(--wp--preset--color--primary);
}

.spvgg-termin-zeile time {
  font-family: var(--wp--preset--font-family--league-gothic);
  font-size: 1.25rem;
  color: var(--wp--preset--color--primary);
  white-space: nowrap;
  min-width: 8.5rem;
}

.spvgg-termin-zeile .spvgg-badge {
  margin-left: auto;
}

@media (max-width: 640px) {
  .spvgg-termin-zeile { flex-wrap: wrap; gap: 0.4rem 1rem; }
  .spvgg-termin-zeile time { min-width: 0; }
  .spvgg-termin-zeile .spvgg-badge { margin-left: 0; }
}

/* ── Abteilungs-Karten ── */

.spvgg-abt-grid {
  display: grid;
  /* Twelve departments = two rows of six on desktop, always (Ben
     04.11.2026: auto-fill gave 5+5+2 at common window widths). The label
     scales with the card (container query below), so narrow columns
     never overflow. */
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}
@media (max-width: 1180px) {
  .spvgg-abt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .spvgg-abt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .spvgg-abt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.spvgg-abt-karte {
  background: var(--spvgg-karte);
  border: 1px solid var(--wp--preset--color--kante);
  border-top: 2px solid var(--wp--preset--color--secondary);
  padding: 1.2rem 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s;
  /* The label sizes itself from the card width (container query below):
     the fixed-px grid minimum and the rem label used to drift apart —
     "BOGENSCHIESSEN" ran out of its box in Brave/Firefox at 100 % and in
     every engine under zoom (Ben 04.11.2026). */
  container-type: inline-size;
}

.spvgg-abt-karte:hover {
  border-color: var(--wp--preset--color--secondary);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .spvgg-abt-karte { transition: none; }
  .spvgg-abt-karte:hover { transform: none; }
}

.spvgg-abt-karte b {
  font-family: var(--wp--preset--font-family--league-gothic);
  font-weight: 400;
  text-transform: uppercase;
  /* Width left for text = card content box minus icon and gap (2.35rem);
     the longest name ("BOGENSCHIESSEN", letter-spaced) measures ~5.7× its
     font size in Firefox, 5.9 leaves a few px of air. Grows to 1.45rem on
     wide cards, floor 0.85rem (only reached on zoomed small windows). */
  font-size: clamp(0.85rem, calc((100cqw - 2.4rem) / 5.9), 1.45rem);
  letter-spacing: 0.04em;
  display: block;
  line-height: 1;
  min-width: 0;
}

.spvgg-abt-karte span {
  color: var(--wp--preset--color--gedimmt);
  font-size: 0.78rem;
}

/* Pilot front page: three wide category cards (count + title) instead of
   the photo wall — same card language as the department grid. */
.spvgg-pilot-kat-grid {
  display: grid;
  /* minmax(0, …): long labels ("Seniorenmannschaften") must not widen
     a column past the page */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (max-width: 760px) {
  .spvgg-pilot-kat-grid { grid-template-columns: minmax(0, 1fr); }
}

.spvgg-pilot-kat-karte {
  background: var(--spvgg-karte);
  border: 1px solid var(--wp--preset--color--kante);
  border-top: 2px solid var(--wp--preset--color--secondary);
  padding: 1.6rem 1.5rem 1.4rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  transition: border-color 0.2s, transform 0.15s;
}

.spvgg-pilot-kat-karte:hover {
  border-color: var(--wp--preset--color--secondary);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .spvgg-pilot-kat-karte { transition: none; }
  .spvgg-pilot-kat-karte:hover { transform: none; }
}

.spvgg-pilot-kat-karte b {
  font-family: var(--wp--preset--font-family--league-gothic);
  font-weight: 400;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--wp--preset--color--secondary);
}

.spvgg-pilot-kat-karte span {
  font-family: var(--wp--preset--font-family--league-gothic);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.3rem;
  line-height: 1.1;
}

/* Hint box below the department grid (Sportabzeichen is not a department). */
.spvgg-abt-hinweis {
  margin-top: 1.5rem;
  padding: 1rem 1.3rem;
  background: var(--spvgg-karte);
  border: 1px solid var(--wp--preset--color--kante);
  border-left: 2px solid var(--wp--preset--color--secondary);
}

.spvgg-abt-hinweis p {
  margin: 0;
}

/* ── Chronik-Zeitstrahl ── */

.spvgg-zeitstrahl {
  position: relative;
  margin: 2.5rem 0 3rem;
  padding-left: 0.4rem;
}

.spvgg-zeitstrahl::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 5.4rem;
  width: 1px;
  background: var(--wp--preset--color--kante);
}

.spvgg-zeit-eintrag {
  position: relative;
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 2rem;
  padding: 0 0 2.2rem;
}

.spvgg-zeit-eintrag::before {
  content: "";
  position: absolute;
  left: 5.15rem;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  transform: rotate(45deg);
  background: var(--wp--preset--color--secondary);
}

.spvgg-zeit-jahr {
  font-family: var(--wp--preset--font-family--league-gothic);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--wp--preset--color--secondary);
  text-align: right;
}

.spvgg-zeit-inhalt h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  line-height: 1.15;
}

.spvgg-zeit-inhalt p {
  margin: 0 0 0.6rem;
  color: var(--wp--preset--color--gedimmt);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .spvgg-zeitstrahl::before { left: 0.35rem; }
  .spvgg-zeit-eintrag { grid-template-columns: 1fr; gap: 0.3rem; padding-left: 1.6rem; }
  .spvgg-zeit-eintrag::before { left: 0.08rem; }
  .spvgg-zeit-jahr { text-align: left; }
}

/* ── Info-Karten-Raster (Gremien u. ä.) ── */

.spvgg-karten-grid {
  display: grid;
  /* Max three cards per row (decision Ben 02.09.2026; consolidation of
     all card grids: tasks/karten-system-konsolidieren.md). The contact
     page left this grid on 16.10.2026 (compact rows, see .spvgg-ap-liste). */
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 1.5rem 0 2.5rem;
}

.spvgg-info-karte {
  background: var(--spvgg-karte);
  border: 1px solid var(--wp--preset--color--kante);
  border-top: 2px solid var(--wp--preset--color--secondary);
  padding: 1.2rem 1.4rem 1.1rem;
}

.spvgg-info-karte h3 {
  font-family: var(--wp--preset--font-family--league-gothic);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.35rem;
  margin: 0 0 0.7rem;
}

.spvgg-info-karte ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.spvgg-info-karte li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--wp--preset--color--kante);
}

.spvgg-info-karte li:last-child {
  border-bottom: 0;
}

.spvgg-info-karte li b {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}

.spvgg-info-karte li span {
  color: var(--wp--preset--color--gedimmt);
  font-size: 0.82rem;
}

.spvgg-info-karte p {
  margin: 0.8rem 0 0;
  color: var(--wp--preset--color--gedimmt);
  font-size: 0.88rem;
}

/* Club-wide contact lists from the Ansprechpartner entries
   (/kontakt/ directory, /verein/gremien/ Vereinsrat). */
.spvgg-info-karte h3 a {
  color: inherit;
  text-decoration: none;
}

.spvgg-info-karte h3 a:hover {
  color: var(--wp--preset--color--secondary);
}

.spvgg-ap-verzeichnis .spvgg-ap-kontakt {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

/* ── Sportstätten: Übersichtskarte + Anlagen-Karten ──
   (rebuilt 25.11.2026: eight stacked text boxes read as a list of
   notes — now an overview map with numbered pins, then cards with a
   picture each, grouped outdoor / halls). Maps are static files of the
   theme (bin/karten-erzeugen.py), slightly desaturated to sit in the
   Flutlicht palette. */

.spvgg-anlagen-uebersicht {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr);
  gap: 2rem;
  align-items: start;
  margin: 1.5rem 0 3rem;
}

.spvgg-anlagen-uebersicht--ohne-karte {
  grid-template-columns: 1fr;
}

.spvgg-anlagen-karte {
  margin: 0;
}

.spvgg-anlagen-karte-bild {
  position: relative;
  border: 1px solid var(--wp--preset--color--kante);
  border-top: 3px solid var(--wp--preset--color--secondary);
  overflow: hidden;
}

.spvgg-anlagen-karte-bild img,
.spvgg-anlage-bild--karte img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.55) contrast(0.96);
}

.spvgg-anlagen-karte figcaption {
  margin-top: 0.35rem;
  text-align: right;
}

.spvgg-karten-credit,
.spvgg-karten-credit a {
  font-size: 0.72rem;
  color: var(--wp--preset--color--gedimmt);
}

.spvgg-karten-pin {
  position: absolute;
  width: 1.9rem;
  height: 1.9rem;
  margin: -0.95rem 0 0 -0.95rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wp--preset--color--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s;
}

.spvgg-karten-pin:hover,
.spvgg-karten-pin:focus-visible {
  transform: scale(1.2);
  z-index: 1;
}

.spvgg-anlagen-liste-titel {
  margin: 0 0 0.5rem;
  font-family: var(--wp--preset--font-family--league-gothic);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.spvgg-anlagen-liste ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.spvgg-anlagen-liste a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--wp--preset--color--kante);
}

.spvgg-anlagen-liste a:hover {
  color: var(--wp--preset--color--primary);
}

.spvgg-anlage-nr {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--wp--preset--color--primary);
  color: #fff;
  font-family: var(--wp--preset--font-family--metropolis);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.spvgg-anlagen-gruppe {
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--wp--preset--color--kante);
}

.spvgg-sportstaetten {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.spvgg-anlage {
  display: flex;
  flex-direction: column;
  background: var(--spvgg-karte);
  border: 1px solid var(--wp--preset--color--kante);
  scroll-margin-top: 6rem;
}

/* The card a pin or a training-times link jumped to. */
.spvgg-anlage:target {
  border-color: var(--wp--preset--color--primary);
  box-shadow: 0 0 0 1px var(--wp--preset--color--primary);
}

.spvgg-anlage-bild {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--spvgg-bild-1), var(--spvgg-bild-2));
  border-bottom: 2px solid var(--wp--preset--color--secondary);
}

.spvgg-anlage-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spvgg-anlage-bild--karte .spvgg-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.4rem;
  height: 2.4rem;
  margin: -2.4rem 0 0 -1.2rem;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}

.spvgg-anlage-bild--karte .spvgg-karten-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0.1rem 0.4rem;
  background: rgba(255, 255, 255, 0.8);
  color: #333;
}

.spvgg-anlage-bild--karte .spvgg-karten-credit a {
  color: #333;
}

.spvgg-anlage-bild--leer {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 120% at -10% 0%, var(--spvgg-beam-rot), transparent 100%),
    radial-gradient(ellipse 70% 120% at 110% 100%, var(--spvgg-beam-gold), transparent 100%),
    linear-gradient(135deg, var(--spvgg-bild-1), var(--spvgg-bild-2));
}

.spvgg-anlage-bild--leer .spvgg-pin {
  width: 3rem;
  height: 3rem;
  color: var(--wp--preset--color--secondary);
}

.spvgg-anlage-text {
  padding: 1.3rem 1.5rem 1.1rem;
}

.spvgg-anlage h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
  font-size: 1.7rem;
  line-height: 1.05;
}

.spvgg-anlage-adresse {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.7rem;
  color: var(--wp--preset--color--gedimmt);
  font-size: 0.92rem;
}

.spvgg-pin {
  width: 1em;
  height: 1em;
  flex: none;
  color: var(--wp--preset--color--primary);
}

.spvgg-anlage-adresse .spvgg-pin {
  margin-top: 0.3em;
}

.spvgg-anlage-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.spvgg-anlage-sportarten {
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.spvgg-anlage-sportarten .spvgg-badge {
  margin-left: 0;
}

.spvgg-anlage-genutzt {
  color: var(--wp--preset--color--gedimmt);
  font-size: 0.85rem;
  margin-right: 0.25rem;
}

.spvgg-anlage-inhalt {
  font-size: 0.95rem;
  border-top: 1px solid var(--wp--preset--color--kante);
  padding-top: 0.9rem;
}

.spvgg-anlage-inhalt p {
  margin: 0 0 0.7rem;
}

/* Odd number of cards in a group: the first one (the main venue) takes
   the full width, picture left and text right — no hole in the grid. */
@media (min-width: 56.01rem) {
  .spvgg-sportstaetten > .spvgg-anlage:first-child:nth-last-child(odd) {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .spvgg-sportstaetten > .spvgg-anlage:first-child:nth-last-child(odd) > .spvgg-anlage-bild {
    flex: 0 0 50%;
    aspect-ratio: auto;
    min-height: 20rem;
    border-bottom: 0;
    border-right: 2px solid var(--wp--preset--color--secondary);
  }

  .spvgg-sportstaetten > .spvgg-anlage:first-child:nth-last-child(odd) > .spvgg-anlage-bild img {
    position: absolute;
    inset: 0;
  }

  .spvgg-sportstaetten > .spvgg-anlage:first-child:nth-last-child(odd) > .spvgg-anlage-text {
    align-self: center;
  }
}

@media (max-width: 56rem) {
  .spvgg-anlagen-uebersicht,
  .spvgg-sportstaetten {
    grid-template-columns: 1fr;
  }
}

a.spvgg-badge {
  text-decoration: none;
}

/* "Wo wir trainieren" under the training plan (derived facilities). */
.spvgg-wo-wir-trainieren {
  margin-top: 2rem;
}

.spvgg-wo-wir-trainieren ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.spvgg-wo-adresse {
  color: var(--wp--preset--color--gedimmt);
  font-size: 0.9rem;
}


/* ── Sponsoren-Slots (fixe Flächen, Konzept Abschnitt 6) ── */

.spvgg-sponsor-haupt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  border: 1px dashed var(--wp--preset--color--secondary);
  padding: 2rem;
  margin-bottom: 1.5rem;
  color: var(--wp--preset--color--gedimmt);
}

.spvgg-sponsor-haupt b {
  font-family: var(--wp--preset--font-family--league-gothic);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--secondary);
  font-size: 1.2rem;
}

.spvgg-sponsor-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
}

/* Band tiers on the homepage: premium slots run larger than partner
   slots, mirroring the /sponsoren/ pyramid (Ben, 15.09.2026). */
.spvgg-sponsor-band + .spvgg-sponsor-band {
  margin-top: 0.8rem;
}
.spvgg-sponsor-band--premium {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.spvgg-sponsor-band--premium .spvgg-sponsor-slot {
  padding: 1.5rem 1.1rem;
  font-size: 1rem;
}
.spvgg-sponsor-band--partner {
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
}
.spvgg-sponsor-band--partner .spvgg-sponsor-slot {
  padding: 0.8rem 0.9rem;
  font-size: 0.7rem;
}

/* Occupied slots: solid instead of dashed placeholder framing. */
.spvgg-sponsor-haupt.ist-belegt,
.spvgg-sponsor-slot.ist-belegt {
  border-style: solid;
  border-color: var(--wp--preset--color--kante);
  background: var(--spvgg-karte);
  text-decoration: none;
  transition: border-color 0.2s;
}

.spvgg-sponsor-slot.ist-belegt {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spvgg-sponsor-haupt.ist-belegt:hover,
.spvgg-sponsor-slot.ist-belegt:hover {
  border-color: var(--wp--preset--color--secondary);
}

.spvgg-sponsor-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.spvgg-sponsor-mark {
  width: 1.6em;
  height: 1.6em;
  flex: none;
}

.spvgg-sponsor-logo b {
  font-family: var(--wp--preset--font-family--league-gothic);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 1.45em;
  line-height: 1;
  color: var(--wp--preset--color--contrast);
  white-space: nowrap;
}

.spvgg-sponsor-haupt.ist-belegt .spvgg-sponsor-logo {
  font-size: 1.35rem;
}

.spvgg-sponsor-stufe {
  color: var(--wp--preset--color--secondary);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.spvgg-sponsoren-wand h2 {
  margin: 2.2rem 0 0.2rem;
}

.spvgg-sponsor-stufen-hinweis {
  color: var(--wp--preset--color--gedimmt);
  font-size: 0.88rem;
  margin: 0 0 1rem;
}

.spvgg-sponsor-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.spvgg-sponsor-grid--haupt {
  grid-template-columns: 1fr;
}

.spvgg-sponsor-grid--premium {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.spvgg-sponsor-karte {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--spvgg-karte);
  border: 1px solid var(--wp--preset--color--kante);
  padding: 1.8rem 1.4rem;
}

.spvgg-sponsor-grid--haupt .spvgg-sponsor-karte {
  padding: 2.8rem 1.4rem;
  font-size: 1.4rem;
  border-top: 2px solid var(--wp--preset--color--secondary);
}

.spvgg-sponsor-slot {
  border: 1px dashed var(--wp--preset--color--kante);
  padding: 1.1rem;
  text-align: center;
  color: var(--spvgg-slot);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Leselicht: helle Leseflächen für lange Inhalte ── */

.spvgg-leselicht {
  background: var(--spvgg-lese-grund);
  color: var(--spvgg-lese-text);
  border: 1px solid var(--wp--preset--color--kante);
  border-radius: 3px;
  padding: clamp(1.8rem, 5vw, 3.5rem);
  margin: 2.5rem auto 5rem;
  max-width: 55rem;
}

.spvgg-leselicht :where(p, li) {
  color: var(--spvgg-lese-muted);
}

/* Byline from the news form (plugin news-formular.php): "Von … · Fotos: …" */
.spvgg-leselicht .spvgg-byline {
  font-family: var(--wp--preset--font-family--metropolis);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--spvgg-lese-muted);
  margin: 0 0 1.4rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--wp--preset--color--kante);
}

.spvgg-leselicht :where(h1, h2, h3, h4) {
  color: var(--spvgg-lese-text);
}

/* Not the buttons: a red link colour on the red button was invisible
   ("Zur Anmeldung", 25.11.2026). */
.spvgg-leselicht a:not(.wp-element-button) {
  color: var(--wp--preset--color--primary);
}

.spvgg-leselicht blockquote,
.spvgg-leselicht .wp-block-pullquote {
  border-left: 3px solid var(--wp--preset--color--secondary);
  padding: 0.6rem 1.2rem;
  background: rgba(179, 146, 98, 0.07);
  font-size: 0.95rem;
  margin: 1.6rem 0;
}

.spvgg-leselicht table {
  border-collapse: collapse;
  width: 100%;
}

.spvgg-leselicht th,
.spvgg-leselicht td {
  border-bottom: 1px solid #E3DFD6;
  padding: 0.5rem 0.75rem;
  text-align: left;
}

/* ── Seiten-Hero (Unterseiten) ── */

.spvgg-seiten-hero {
  padding: 4rem 0 1rem;
  position: relative;
  overflow: hidden;
}

/* An eyebrow ("Abteilung") sits in the headroom instead of adding to
   it: title and subnav stay at the same height on every page — the
   department pages were 31px taller and the subnav jumped (review Ben
   02.10.2026). The eyebrow gets a fixed line box (its "normal" line
   height varies by OS and font rendering — 1–2px off on Windows), and
   the headroom shrinks by exactly that + the title's 0.8rem margin. */
.spvgg-seiten-hero > .spvgg-eyebrow {
  height: 1.2rem;
  line-height: 1.2rem;
}

.spvgg-seiten-hero:has(> .spvgg-eyebrow) {
  padding-top: calc(4rem - 1.2rem - 0.8rem);
}

/* With a subnav in between, the hero needs far less headroom — 4rem is
   sized for sitting directly under the main nav. */
.spvgg-subnav + .spvgg-seiten-hero {
  padding-top: 2rem;
}

.spvgg-seiten-hero::before {
  /* Diffuse light falling in from the sides — red from the left, gold
     from the right, the front page's arrangement without its cones
     (Ben 02.10.2026; the old skewed gold panel ended in a hard edge
     that read as a triangle). Each side reaches ~40% of the width, only
     the middle fifth stays neutral. Fades out downwards so heroes
     without a subnav below end softly too. */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 48% 150% at -4% 40%, var(--spvgg-beam-rot), transparent 100%),
    radial-gradient(ellipse 48% 150% at 104% 40%, var(--spvgg-beam-gold), transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  pointer-events: none;
}

.spvgg-seiten-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 0.9;
  margin: 0.8rem 0 0.4rem;
  position: relative;
}

.spvgg-seiten-hero .spvgg-eyebrow,
.spvgg-seiten-hero p {
  position: relative;
}

/* ── Datenaufbereitung auf dunkler Bühne ── */

/* Core-Tabellen (Redakteurs-Content) erben die Flutlicht-Tabellenoptik */
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
  padding: 0.6rem 0.85rem;
  border: 0;
  border-bottom: 1px solid var(--wp--preset--color--kante);
  text-align: left;
}

.wp-block-table thead th {
  font-family: var(--wp--preset--font-family--league-gothic);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.02rem;
  border-bottom: 2px solid var(--wp--preset--color--secondary);
}

.wp-block-table a {
  color: var(--wp--preset--color--secondary);
  text-decoration: none;
}

/* Personen-Karten (Vorstand & Co.) */
.spvgg-personen {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.9rem;
  margin: 1.2rem 0;
}

.spvgg-person {
  background: var(--spvgg-karte);
  border: 1px solid var(--wp--preset--color--kante);
  border-top: 2px solid var(--wp--preset--color--secondary);
  padding: 1.2rem 1.3rem 1.1rem;
}

.spvgg-person .funktion {
  display: block;
  color: var(--wp--preset--color--secondary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.spvgg-person b {
  font-family: var(--wp--preset--font-family--league-gothic);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  display: block;
  line-height: 1;
}

.spvgg-person p {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--wp--preset--color--gedimmt);
}

.spvgg-person a {
  color: var(--wp--preset--color--contrast);
  text-decoration: none;
}

.spvgg-person a:hover {
  color: var(--wp--preset--color--primary);
}

/* Zeitstrahl (Chronik): Gold-Linie, Rauten-Marker, League-Gothic-Jahre */
.spvgg-zeitstrahl {
  list-style: none;
  margin: 1.8rem 0;
  padding: 0.2rem 0 0.2rem 1.6rem;
  border-left: 2px solid var(--wp--preset--color--secondary);
  display: grid;
  gap: 1.15rem;
}

.spvgg-zeitstrahl li {
  position: relative;
}

.spvgg-zeitstrahl li::before {
  content: '';
  position: absolute;
  left: calc(-1.6rem - 6px);
  top: 0.5em;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: var(--wp--preset--color--primary);
}

.spvgg-zeitstrahl b {
  font-family: var(--wp--preset--font-family--league-gothic);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--wp--preset--color--secondary);
  margin-right: 0.6rem;
  line-height: 1;
}

.spvgg-zeitstrahl li.meilenstein::before {
  background: var(--wp--preset--color--secondary);
}

/* ── Strukturtabellen (Trainingszeiten) ── */

.spvgg-table {
  width: 100%;
  border-collapse: collapse;
}

.spvgg-table th,
.spvgg-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--wp--preset--color--kante);
  text-align: left;
}

.spvgg-table thead th {
  font-family: var(--wp--preset--font-family--league-gothic);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  border-bottom: 2px solid var(--wp--preset--color--secondary);
}

.spvgg-table a {
  text-decoration: none;
  color: var(--wp--preset--color--secondary);
}

.spvgg-kontakt-liste {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spvgg-kontakt-liste li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--wp--preset--color--kante);
}

.spvgg-kontakt-liste a {
  color: var(--wp--preset--color--secondary);
  text-decoration: none;
}

.spvgg-section {
  margin-top: 3rem;
}

.spvgg-extern-teaser {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--kante);
  border-top: 2px solid var(--wp--preset--color--secondary);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

/* ── Footer: in beiden Modi dunkel (Flutlicht-Zitat) ── */

.spvgg-footer {
  border-top: 2px solid var(--wp--preset--color--primary);
  background: #0C0C0C;
  color: #EFEDE8;
  padding: 3.5rem 0 1.8rem;
}

.spvgg-footer a {
  color: #9C9A94;
  text-decoration: none;
  transition: color 0.15s;
}

.spvgg-footer a:hover {
  color: var(--wp--preset--color--primary);
}

.spvgg-footer h4 {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--wp--preset--color--primary);
  display: inline-block;
  padding-bottom: 0.3rem;
  margin: 0 0 0.9rem;
  color: #EFEDE8;
}

.spvgg-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.spvgg-footer-bottom {
  border-top: 1px solid #2A2A2A;
  margin-top: 2.4rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: #5A5852;
  font-size: 0.82rem;
}

.spvgg-footer-bottom a {
  color: #5A5852;
}

.spvgg-footer-bottom a:hover {
  color: #9C9A94;
}

/* ── Archiv-Kacheln ── */

.spvgg-kachel {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--kante);
  border-top: 2px solid var(--wp--preset--color--secondary);
}

.spvgg-kachel .wp-block-post-title a {
  text-decoration: none;
  color: inherit;
}

/* ── Mannschaften: Kachel-Übersicht + Team-Unterseite ── */

.spvgg-team-kategorie {
  margin: 2.2rem 0 1rem;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.spvgg-team-grid {
  display: grid;
  /* 19% track floor caps the row at 5 tiles on wide screens; the 200px
     floor keeps tiles readable (and the count responsive) below that. */
  grid-template-columns: repeat(auto-fill, minmax(max(200px, 19%), 1fr));
  gap: 0.9rem;
  margin: 0 0 1.5rem;
}

.spvgg-team-kachel {
  background: var(--spvgg-karte);
  border: 1px solid var(--wp--preset--color--kante);
  border-top: 2px solid var(--wp--preset--color--secondary);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

.spvgg-team-kachel:hover {
  border-color: var(--wp--preset--color--secondary);
}

.spvgg-team-kachel-titel {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem 0.7rem;
}

.spvgg-team-kachel-titel b {
  font-size: 0.98rem;
}

.spvgg-team-kachel-titel small {
  color: var(--wp--preset--color--gedimmt);
  font-size: 0.78rem;
  text-align: right;
}

img.spvgg-team-foto {
  width: 100%;
  /* height:auto is load-bearing: WP renders a height="…" attribute on the
     img, which otherwise beats aspect-ratio and stretches the box portrait. */
  height: auto;
  display: block;
}

/* Uniform 16:10 crop ONLY on the overview tiles. Never set
   aspect-ratio (not even "auto") on the detail image: an author value
   would override the UA's attr(width)/attr(height) hint, and with
   loading=lazy + sizes=auto the box then falls back to WP's
   contain-intrinsic-size placeholder (3000×1500). */
.spvgg-team-kachel img.spvgg-team-foto {
  /* 16:9 = the crop preset every phone offers — photos delivered in
     16:9 render uncropped here AND on the detail page (WYSIWYG). */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  /* slightly off 16:9: keep the heads, lose a bit of ground */
  object-position: 50% 15%;
}

/* clearly taller than 16:9 (wrapper set in spvgg_team_foto for tiles):
   the whole photo, sides filled with a blurred, enlarged copy of itself —
   cropping cut people, plain bars looked empty */
.spvgg-team-foto-ganz {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.spvgg-team-foto-ganz::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: var(--spvgg-unscharf) center / cover no-repeat;
  filter: blur(14px) brightness(0.85);
}

.spvgg-team-kachel .spvgg-team-foto-ganz img.spvgg-team-foto {
  position: relative;
  height: 100%;
  object-fit: contain;
  /* centred: banners wider than 16:9 get the fill above AND below */
  object-position: 50% 50%;
}

/* Success banner ("Meister 2025/2026"): gold pennant over the lower left
   of the photo — tile and detail page, layout-neutral */
.spvgg-team-foto-erfolg {
  position: relative;
  display: block;
}

.spvgg-team-erfolg {
  position: absolute;
  left: 0;
  bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.4em;
  max-width: calc(100% - 1rem);
  padding: 0.3em 1.4em 0.2em 0.8em;
  background: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--base);
  font-family: var(--wp--preset--font-family--league-gothic);
  font-size: clamp(1.3rem, 3.2vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.6em) 50%, 100% 100%, 0 100%);
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.45);
}

.spvgg-team-erfolg svg {
  flex: none;
  width: 0.8em;
  height: 0.8em;
  margin-top: -0.1em;
}

.spvgg-team-kachel .spvgg-team-erfolg {
  bottom: 0.6rem;
  font-size: 1.05rem;
}

.spvgg-team-foto--fehlt {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 20% -20%, var(--spvgg-beam-gold), transparent 60%),
    linear-gradient(160deg, var(--spvgg-bild-1), var(--spvgg-bild-2));
}

/* Underlay: the crest at full box height, soft and at 20% — the plain
   gradient looked empty (Ben, 08.10.2026). The name sits on top and
   gets a halo in the box colour so it stays legible over the crest's
   white parts. */
.spvgg-team-foto--fehlt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/logo.png") center / auto 100% no-repeat;
  opacity: 0.2;
  filter: blur(2px);
  pointer-events: none;
}

.spvgg-team-foto--fehlt span {
  position: relative;
  text-shadow: 0 0 0.35em var(--spvgg-bild-1), 0 0 0.9em var(--spvgg-bild-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  padding: 0 0.75rem;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
  color: var(--spvgg-slot);
}

.spvgg-team-foto--fehlt small {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.spvgg-team-zurueck {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.spvgg-team-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr);
  gap: 1.6rem;
  align-items: start;
}

@media (max-width: 760px) {
  .spvgg-team-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.spvgg-team-detail-foto img,
.spvgg-team-detail-foto .spvgg-team-foto--fehlt {
  border: 1px solid var(--wp--preset--color--kante);
}

/* Club crest bottom right over the big photo on the team page — a CSS
   overlay, not baked into the file (a saved/shared photo has no crest).
   Bottom right: top left covered faces on some photos, bottom right at
   worst feet (Ben, 08.10.2026); clear of the success pennant (bottom
   left). Anchored to the photo wrapper, not the column (the note box
   may sit below). Not on offers (partner banners/photos), not on the
   placeholder (crest underlay already), not on the overview tiles. */
.spvgg-team-detail-bild {
  position: relative;
  display: block;
}

.spvgg-team-detail:not(.spvgg-team-detail--angebot) .spvgg-team-detail-bild:not(:has(.spvgg-team-foto--fehlt))::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  width: clamp(2.75rem, 11%, 4.5rem);
  aspect-ratio: 244 / 250;
  background: url("assets/logo.png") center / contain no-repeat;
  /* soft shadow: the white rim otherwise vanishes against bright grass */
  filter: drop-shadow(0 1px 3px rgb(0 0 0 / 0.55));
  pointer-events: none;
}

.spvgg-team-detail-info h3 {
  margin: 1.4rem 0 0.6rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--wp--preset--color--secondary);
}

.spvgg-team-detail-info h3:first-child {
  margin-top: 0;
}

/* Paused squad / team note: red hint in the tile title row, note box
   under the detail photo — neither changes the page structure. */
/* Own centred line across the tile, no separator (a wrapped "Klasse ·"
   left a dangling dot). */
.spvgg-team-kachel-titel:has(.spvgg-team-gesucht) {
  flex-wrap: wrap;
  row-gap: 0.2rem;
}

.spvgg-team-kachel-titel .spvgg-team-gesucht {
  flex-basis: 100%;
  text-align: center;
  font-size: 0.78rem;
  color: var(--wp--preset--color--primary);
  font-weight: 700;
}

.spvgg-team-hinweis {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  background: var(--spvgg-karte);
  border: 1px solid var(--wp--preset--color--kante);
  border-left: 3px solid var(--wp--preset--color--primary);
}

.spvgg-team-hinweis h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary);
}

.spvgg-team-hinweis p {
  margin: 0 0 0.6rem;
}

.spvgg-team-hinweis p:last-child {
  margin-bottom: 0;
}

.spvgg-team-spielklasse {
  margin: 0;
  display: inline-block;
  border: 1px solid var(--wp--preset--color--kante);
  color: var(--wp--preset--color--secondary);
  padding: 0.1rem 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.spvgg-trainer-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 1.2rem 0.8rem;
}

.spvgg-trainer-liste li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.15rem;
  font-size: 0.95rem;
}

.spvgg-trainer-foto,
.spvgg-trainer-foto--initial {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  object-fit: cover;
  /* portrait shots carry the face in the upper third — crop there */
  object-position: 50% 25%;
  flex-shrink: 0;
  margin-bottom: 0.4rem;
}

.spvgg-trainer-foto--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--spvgg-bild-1);
  color: var(--spvgg-slot);
  font-weight: 700;
  font-size: 2.2rem;
}

.spvgg-trainer-name {
  font-weight: 600;
}

.spvgg-trainer-rolle {
  color: var(--wp--preset--color--gedimmt);
  font-size: 0.85rem;
}

.spvgg-trainer-mail {
  margin-top: 0.35rem;
}

.spvgg-mail-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--wp--preset--color--kante);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.spvgg-mail-chip:hover,
.spvgg-mail-chip:focus-visible {
  border-color: currentColor;
}

.spvgg-team-kontakt {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Training times of one team/offer (blocks.php, spvgg_team_trainingszeiten_markup). */
.spvgg-team-zeiten {
  list-style: none;
  margin: 0;
  padding: 0;
}

.spvgg-team-zeiten li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--wp--preset--color--kante);
}

.spvgg-team-zeiten small {
  opacity: 0.75;
}

.spvgg-team-training-link {
  margin: 1.4rem 0 0;
  font-size: 0.92rem;
}

.spvgg-team-extern-link {
  margin: 1rem 0 0;
}

/* ── BFV match data: team page section + Spieltag (plugin bfv.php) ── */

.spvgg-bfv {
  margin-top: 2.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--wp--preset--color--kante);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem 2.4rem;
  align-items: start;
}

.spvgg-bfv-tabelle-box,
.spvgg-bfv-saison,
.spvgg-bfv > .spvgg-bfv-quelle {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .spvgg-bfv {
    /* minmax(0, …): a long team name must wrap, not widen the page */
    grid-template-columns: minmax(0, 1fr);
  }
}

.spvgg-bfv-tabelle td {
  overflow-wrap: anywhere;
}

.spvgg-bfv h3,
.spvgg-spieltag h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--wp--preset--color--secondary);
}

.spvgg-bfv-naechstes {
  padding: 1rem 1.2rem;
  background: var(--spvgg-karte);
  border: 1px solid var(--wp--preset--color--kante);
  border-left: 3px solid var(--wp--preset--color--primary);
}

.spvgg-bfv-naechstes p {
  margin: 0;
}

.spvgg-bfv-wann {
  font-family: var(--wp--preset--font-family--league-gothic);
  font-size: 1.7rem;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.spvgg-bfv-gegner {
  font-weight: 700;
  margin-top: 0.2rem !important;
}

.spvgg-bfv-info,
.spvgg-bfv-ort {
  font-size: 0.9rem;
  color: var(--wp--preset--color--gedimmt);
  margin-top: 0.35rem !important;
}

.spvgg-bfv-liste {
  list-style: none;
  margin: 0;
  padding: 0;
}

.spvgg-bfv-liste li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--wp--preset--color--kante);
  font-size: 0.95rem;
}

.spvgg-bfv-datum {
  flex: 0 0 4.6rem;
  color: var(--wp--preset--color--gedimmt);
}

.spvgg-bfv-saison .spvgg-bfv-datum {
  flex-basis: 6.2rem;
}

.spvgg-bfv-zeit {
  flex: 0 0 2.8rem;
  color: var(--wp--preset--color--gedimmt);
  font-variant-numeric: tabular-nums;
}

.spvgg-bfv-ha {
  flex: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wp--preset--color--gedimmt);
}

.spvgg-bfv-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.spvgg-bfv-name small {
  color: var(--wp--preset--color--gedimmt);
}

.spvgg-bfv-ergebnis {
  flex: 0 0 auto;
  min-width: 2.8rem;
  text-align: center;
  padding: 0.05rem 0.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: var(--wp--preset--color--gedimmt);
}

.spvgg-bfv-ergebnis--s {
  background: #2e7d32;
}

.spvgg-bfv-ergebnis--n {
  background: var(--wp--preset--color--primary);
}

/* called off ("abgesetzt", "ausgefallen" …): a label, not a score */
.spvgg-bfv-ergebnis--ausfall {
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--contrast);
  background: transparent;
  border: 1px solid var(--wp--preset--color--gedimmt);
}

.spvgg-bfv-abgesagt {
  margin-bottom: 0.6rem !important;
  font-size: 0.92rem;
  color: var(--wp--preset--color--gedimmt);
}

.spvgg-bfv-tabelle {
  margin: 0;
}

.spvgg-bfv-tabelle th,
.spvgg-bfv-tabelle td {
  padding: 0.45rem 0.6rem;
  font-variant-numeric: tabular-nums;
}

.spvgg-bfv-tabelle tr.ist-wir td {
  font-weight: 700;
  background: var(--spvgg-karte);
}

.spvgg-bfv-tabelle tr.ist-auf td:first-child {
  box-shadow: inset 3px 0 0 #2e7d32;
}

.spvgg-bfv-tabelle tr.ist-ab td:first-child {
  box-shadow: inset 3px 0 0 var(--wp--preset--color--primary);
}

@media (max-width: 560px) {
  .spvgg-bfv-tabelle .spvgg-bfv-snu,
  .spvgg-bfv-tabelle .spvgg-bfv-tore {
    display: none;
  }
}

.spvgg-bfv-saison summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.5rem 0;
}

.spvgg-bfv-quelle {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--wp--preset--color--gedimmt);
}

.spvgg-spieltag-spalten {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 2.4rem;
}

@media (max-width: 760px) {
  .spvgg-spieltag-spalten {
    grid-template-columns: minmax(0, 1fr);
  }
}

.spvgg-spieltag--kompakt {
  padding-top: 3rem;
}

/* Size steps (League Gothic is condensed — it needs more size than the
   body font to read at the same level): group 1.9 > column 1.3 (gold)
   > day 1.1 > match rows (body font). The day was 0.8rem and read
   smaller than the team names below it (review Ben 02.10.2026). */
.spvgg-spieltag h3 {
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.spvgg-spieltag-tag {
  margin: 1.2rem 0 0.15rem;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--contrast);
}

.spvgg-spieltag-tag:first-of-type {
  margin-top: 0;
}

.spvgg-spieltag-team {
  /* min width aligns the usual names; "C-Juniorinnen" may take more */
  flex: 0 0 auto;
  min-width: 5.4rem;
  font-weight: 700;
  color: inherit;
}

.spvgg-spieltag-gruppe .spvgg-team-kategorie {
  margin-top: 3rem;
  padding-bottom: 0.4rem;
  font-size: 1.9rem;
  border-bottom: 1px solid var(--wp--preset--color--kante);
}

.spvgg-spieltag-gruppe:first-of-type .spvgg-team-kategorie {
  margin-top: 0.4rem;
}

@media (max-width: 560px) {
  .spvgg-spieltag .spvgg-bfv-liste li {
    gap: 0.5rem;
    font-size: 0.9rem;
  }

  .spvgg-spieltag .spvgg-bfv-zeit {
    flex-basis: 2.5rem;
  }

  .spvgg-spieltag-team {
    min-width: 4.4rem;
  }
}

.spvgg-spieltag-leer {
  color: var(--wp--preset--color--gedimmt);
  margin: 0;
}

.spvgg-spieltag h3.spvgg-spieltag-stand-titel {
  margin-top: 1.8rem;
}

.spvgg-spieltag-stand {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.8rem;
}

.spvgg-spieltag-stand li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.8rem 1rem;
  background: var(--spvgg-karte);
  border: 1px solid var(--wp--preset--color--kante);
}

.spvgg-spieltag-stand a {
  color: inherit;
}

.spvgg-spieltag-stand span {
  font-size: 0.88rem;
  color: var(--wp--preset--color--gedimmt);
}

.spvgg-spieltag-stand .spvgg-spieltag-platz {
  color: inherit;
  font-weight: 600;
}

/* MFS camps on the offer page (feed via spvgg_mfs_camps) */
.spvgg-mfs-alter {
  margin: -0.2rem 0 0.6rem;
  color: var(--wp--preset--color--gedimmt);
  font-size: 0.92rem;
}

.spvgg-mfs-camps {
  max-width: 40rem;
  margin: 0;
}

.spvgg-mfs-camps td.spvgg-mfs-zeitraum {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .spvgg-mfs-camps th,
  .spvgg-mfs-camps td {
    padding: 0.5rem 0.4rem;
  }
}

/* Banner-wide image (offer pages): full width, info below it. */
.spvgg-team-detail-grid--breit {
  grid-template-columns: 1fr;
}

/* ── Trainingsplan: Tageszeilen mit Zeitblöcken + Team-Chips ── */

.spvgg-tz-hinweis {
  color: var(--wp--preset--color--gedimmt);
  font-size: 0.9rem;
  margin: -0.5rem 0 1.4rem;
}

.spvgg-trainingsplan {
  display: flex;
  flex-direction: column;
}

.spvgg-tz-tag {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--wp--preset--color--kante);
}

.spvgg-tz-tag:last-child {
  border-bottom: 1px solid var(--wp--preset--color--kante);
}

.spvgg-tz-tag h3 {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--secondary);
}

@media (max-width: 600px) {
  .spvgg-tz-tag {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.spvgg-tz-bloecke {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.spvgg-tz-block {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: baseline;
}

@media (max-width: 600px) {
  .spvgg-tz-block {
    grid-template-columns: 5.5rem minmax(0, 1fr);
  }
}

.spvgg-tz-zeit {
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
  color: var(--wp--preset--color--gedimmt);
  white-space: nowrap;
}

.spvgg-tz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.spvgg-tz-chip {
  background: var(--spvgg-karte);
  border: 1px solid var(--wp--preset--color--kante);
  border-left: 3px solid var(--spvgg-slot);
  padding: 0.2rem 0.6rem;
  font-size: 0.88rem;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  transition: border-color 0.2s;
}

a.spvgg-tz-chip:hover {
  border-color: var(--wp--preset--color--secondary);
}

.spvgg-tz-chip small {
  color: var(--wp--preset--color--gedimmt);
  font-size: 0.75rem;
}

/* Platz-Farbcode (angelehnt an den alten Trainingsplan) */
.spvgg-tz--kunstrasen { border-left-color: var(--wp--preset--color--secondary); }
.spvgg-tz--hauptplatz,
.spvgg-tz--rasenplatz { border-left-color: var(--wp--preset--color--primary); }
.spvgg-tz--bolzplatz  { border-left-color: #5E7B52; }

/* Downloads (block spvgg/downloads): plain link list with file info. */
.spvgg-downloads-liste {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.spvgg-download-info {
  color: var(--wp--preset--color--gedimmt);
  font-size: 0.85rem;
}

.spvgg-tz-legende {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--wp--preset--color--gedimmt);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  align-items: center;
}

.spvgg-tz-legende-punkt {
  border-left: 3px solid var(--spvgg-slot);
  padding-left: 0.45rem;
}

/* ── Abteilungs-Unterseite (z. B. Jugend, Training) ── */

.spvgg-abteilung-unterseite .spvgg-unterseite-inhalt {
  max-width: 760px;
}

.spvgg-abteilung-unterseite h2 {
  margin-top: 0;
}

/* Second subnav row (Infos tab: all free pages of the Einheit,
   subnav.php): the same component, one step quieter than the tab row. */
.spvgg-subnav--ebene2 {
  background: transparent;
}

.spvgg-subnav--ebene2 .spvgg-subnav-titel {
  color: var(--wp--preset--color--gedimmt);
}

/* Child pages of a free page: a contents box inside the page instead of
   a third subnav row (block D, Ben 31.10.2026). */
.spvgg-seiten-inhalt {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--wp--preset--color--secondary);
  background: var(--wp--preset--color--surface);
}
.spvgg-seiten-inhalt ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
}
.spvgg-seiten-inhalt a[aria-current] {
  color: var(--wp--preset--color--primary);
  font-weight: 600;
  text-decoration: none;
}

/* ── Ansprechpartner-Karten (Design wie Vorstand/Gremien-Karten) ── */

/* Max three contact cards per row (decision Ben 02.09.2026) — big
   photo-on-top cards, not the earlier compact rows. */
@media (max-width: 960px) {
  .spvgg-karten-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .spvgg-karten-grid { grid-template-columns: 1fr; }
}

/* Ansprechpartner: compact person rows in groups (Fußball / Orga-Team),
   round portrait like the trainers on the team pages — the 3:4 photo
   cards were too big on large screens (Ben, 16.10.2026). */
.spvgg-ap-gruppe + .spvgg-ap-gruppe { margin-top: 2rem; }

.spvgg-ap-gruppe-titel {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--secondary);
}

.spvgg-ap-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  column-gap: 2.5rem;
}

.spvgg-ap-person {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--wp--preset--color--kante);
}

.spvgg-ap-foto,
.spvgg-ap-foto--initial {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  object-fit: cover;
  /* 3:4 portraits with the face in the upper third — crop there */
  object-position: 50% 25%;
  flex-shrink: 0;
}

.spvgg-ap-foto--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--spvgg-slot);
  background:
    radial-gradient(ellipse at 20% -20%, var(--spvgg-beam-gold), transparent 60%),
    linear-gradient(160deg, var(--spvgg-bild-1), var(--spvgg-bild-2));
}

.spvgg-ap-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.spvgg-ap-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.spvgg-ap-funktion {
  color: var(--wp--preset--color--secondary);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.spvgg-ap-vita {
  font-size: 0.9rem;
  max-width: 60ch;
}

.spvgg-ap-kontakt {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ── Trainingsplan mit Platz-Spalten (z. B. Kunstrasen/Hauptplatz) ── */

.spvgg-trainingsplan--plaetze {
  display: grid;
  grid-template-columns: 6.5rem repeat(var(--spvgg-tz-spalten, 2), minmax(0, 1fr));
  gap: 0.55rem 1.1rem;
  align-items: start;
}

.spvgg-tz-spalte-titel {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--spvgg-slot);
}

.spvgg-tz-spalte-titel.spvgg-tz--kunstrasen {
  color: var(--wp--preset--color--secondary);
  border-bottom-color: var(--wp--preset--color--secondary);
}

.spvgg-tz-spalte-titel.spvgg-tz--hauptplatz,
.spvgg-tz-spalte-titel.spvgg-tz--rasenplatz {
  color: var(--wp--preset--color--primary);
  border-bottom-color: var(--wp--preset--color--primary);
}

.spvgg-tz-spalte-titel.spvgg-tz--bolzplatz {
  color: #5E7B52;
  border-bottom-color: #5E7B52;
}

.spvgg-tz-tag-titel {
  grid-column: 1 / -1;
  margin: 1.1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--wp--preset--color--kante);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--secondary);
}

.spvgg-tz-zelle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.spvgg-tz-zelle--breit {
  grid-column: 2 / -1;
}

@media (max-width: 640px) {
  .spvgg-trainingsplan--plaetze {
    grid-template-columns: 4.6rem repeat(var(--spvgg-tz-spalten, 2), minmax(0, 1fr));
    gap: 0.5rem 0.6rem;
  }
  .spvgg-trainingsplan--plaetze .spvgg-tz-zeit {
    font-size: 0.78rem;
    white-space: normal;
  }
  .spvgg-tz-chip {
    white-space: normal;
  }
}

/* Legende: sichtbare Farb-Kästchen statt nur Balken */
.spvgg-tz-legende-punkt {
  border-left: none;
  padding-left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.spvgg-tz-legende-punkt::before {
  content: '';
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  background: var(--spvgg-slot);
}

.spvgg-tz-legende-punkt.spvgg-tz--kunstrasen::before { background: var(--wp--preset--color--secondary); }
.spvgg-tz-legende-punkt.spvgg-tz--hauptplatz::before,
.spvgg-tz-legende-punkt.spvgg-tz--rasenplatz::before { background: var(--wp--preset--color--primary); }
.spvgg-tz-legende-punkt.spvgg-tz--bolzplatz::before  { background: #5E7B52; }

/* First section right under the subnav (department tab pages): the 3rem
   section spacing is meant between sections, not against the nav. */
main > .spvgg-section:first-child {
  margin-top: 1.75rem;
}

/* ══════════════════════════════════════════════════════════════════════
   Runde-2-Verbesserungen (Design-Runde 2, 12.08.2026 — siehe
   docs/design-briefing-runde2/ergebnisse/verbesserung-a-aenderungen.md)
   ══════════════════════════════════════════════════════════════════════ */

:root { --spvgg-pad: clamp(1.25rem, 4vw, 2.5rem); }

/* Content hugged the viewport edge below ~1300px: side padding on all
   full-width containers, hero/subnav metrics aligned to it. */
.spvgg-nav,
.spvgg-hero,
.spvgg-seiten-hero,
main.wp-block-group.alignfull,
.spvgg-footer {
  padding-left: var(--spvgg-pad);
  padding-right: var(--spvgg-pad);
}
.spvgg-hero { --spvgg-inhalt-rand: max(var(--spvgg-pad), calc((100% - 77.5rem) / 2)); }
.spvgg-subnav-inner {
  max-width: calc(77.5rem + 2 * var(--spvgg-pad));
  padding: 0 var(--spvgg-pad);
}

/* Phones: no sideways-scrolling strip (tabs sat off-screen, finding
   02.10.2026) — the section title on its own row, the tabs as a
   three-column grid, every item visible, the active one filled red. */
@media (max-width: 720px) {
  .spvgg-subnav-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    overflow: visible;
  }

  .spvgg-subnav-titel {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0.5rem var(--spvgg-pad);
    border-right: 0;
    border-bottom: 1px solid var(--wp--preset--color--kante);
  }

  .spvgg-subnav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.4rem 0.3rem;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 0.92rem;
    line-height: 1.15;
    border-bottom: 0;
    /* lines per item (right + bottom): a part-filled last row leaves its
       empty cells blank instead of a grey block */
    box-shadow: inset -1px -1px 0 var(--wp--preset--color--kante);
  }

  .spvgg-subnav a.ist-aktiv {
    color: #fff;
    background: var(--wp--preset--color--primary);
  }
}

/* Light mode: beams strong enough to still read as Flutlicht. */
html.hell {
  --spvgg-beam-rot: rgba(200, 16, 46, 0.16);
  --spvgg-beam-gold: rgba(179, 146, 98, 0.34);
}

/* Gold hairline under every section head — the line language carries
   data-heavy pages too. */
.spvgg-section-head {
  border-bottom: 1px solid var(--wp--preset--color--kante);
  padding-bottom: 0.9rem;
}

/* Crest in the nav: present on every page. */
.spvgg-nav-wappen-link {
  display: flex;
  align-self: center;
}

.spvgg-nav-wappen {
  width: 40px;
  height: auto;
  flex: none;
  align-self: center;
  margin-right: 0.9rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

/* Department cards: gold sport pictograms (decision 12.08.: instead of
   the proposed 01–12 numbering). Masks shared with variant B. */
.spvgg-abt-karte {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.spvgg-abt-karte::before {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  background: var(--wp--preset--color--secondary);
  -webkit-mask: var(--spvgg-pikto, none) center / contain no-repeat;
  mask: var(--spvgg-pikto, none) center / contain no-repeat;
}
.spvgg-abt-karte:hover::before { background: var(--wp--preset--color--primary); }
.spvgg-abt-karte--extern b::after { font-size: 0.7em; opacity: 0.75; }

/* Contacts: the compact row-card override (from the no-photos era) is
   gone — cards are photo-on-top again now that real portraits exist. */

/* Training schedule as a structured table (Härtetest: stays readable
   with 10+ groups; the grid with Platz columns is unaffected). */
.spvgg-tz-tabelle { margin-top: 0.5rem; }
.spvgg-tz-tabelle .spvgg-tz-tagzelle {
  font-family: var(--wp--preset--font-family--league-gothic);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.2rem;
  color: var(--wp--preset--color--primary);
  vertical-align: top;
  width: 8.5rem;
}
.spvgg-tz-tabelle td { font-variant-numeric: tabular-nums; }
.spvgg-tz-tabelle tbody tr.tz-neuer-tag:not(:first-child) th,
.spvgg-tz-tabelle tbody tr.tz-neuer-tag:not(:first-child) td {
  border-top: 2px solid var(--wp--preset--color--kante);
}
@media (max-width: 640px) {
  .spvgg-tz-tabelle .spvgg-tz-tagzelle { width: 5.5rem; font-size: 1.05rem; }
  .spvgg-tz-tabelle th,
  .spvgg-tz-tabelle td { padding: 0.5rem 0.5rem; }
  /* Long German compounds ("Mehrzweckhalle") would push the 4-column
     table past 390 px; let them hyphenate instead of scrolling sideways. */
  .spvgg-tz-tabelle td { hyphens: auto; overflow-wrap: anywhere; }
}

/* In-page jumps (section ids stay as link targets; the subnav itself
   has real tab pages since block D). */
.spvgg-section { scroll-margin-top: 7.5rem; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Facts line in the page hero ("Zwei Herrenmannschaften · …"). */
.spvgg-seiten-fakten {
  position: relative;
  color: var(--wp--preset--color--gedimmt);
  margin: 0.6rem 0 0;
}

/* Instagram link of the Einheit at the end of the facts line (hero). */
.spvgg-seiten-fakten:has(.spvgg-social-chip) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.spvgg-social-chip {
  color: var(--wp--preset--color--contrast);
  background: transparent;
  /* Larger than the mail chips: the only call to action in the hero
     (Ben, 25.11.2026). */
  padding: 0.5rem 1.1rem;
  gap: 0.5em;
  font-size: 1rem;
}

.spvgg-social-chip svg {
  width: 1.25em;
  height: 1.25em;
}

/* Department picture next to the intro text (Ben, 25.11.2026: the
   full-width image above the text was a block of its own, not part of
   the page). Text keeps its reading width on the left, the picture sits
   to the right at its own ratio; stacked on narrow screens, picture
   first. Without a picture the text column stays as before. */
.spvgg-abteilung-intro > .wp-block-post-content {
  max-width: 47.5rem;
}

.spvgg-abteilung-intro > .wp-block-post-featured-image {
  margin: 0.75rem 0 1.5rem;
  border-top: 3px solid var(--wp--preset--color--secondary);
}

.spvgg-abteilung-intro > .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 60rem) {
  .spvgg-abteilung-intro:has(> .wp-block-post-featured-image) {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }

  .spvgg-abteilung-intro > .wp-block-post-featured-image {
    order: 2;
    margin: 1.25rem 0 0;
  }

  .spvgg-abteilung-intro > .wp-block-post-content {
    margin-top: 0;
  }
}

/* The twelve pictogram masks (drawn for variant B, reused here). */
.spvgg-abt-karte[href*="basketball/"], .spvgg-news-bild[data-abt="basketball"] { --spvgg-pikto: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="8.5"/><path d="M12 3.5v17M3.5 12h17M6 5.9a11.5 11.5 0 0 1 0 12.2M18 5.9a11.5 11.5 0 0 0 0 12.2"/></svg>'); }
.spvgg-abt-karte[href*="bogenschiessen/"], .spvgg-news-bild[data-abt="bogenschiessen"] { --spvgg-pikto: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="13" r="7.5"/><circle cx="11" cy="13" r="3.6"/><path d="M11 13 20 4M20 4h-4M20 4v4"/></svg>'); }
.spvgg-abt-karte[href*="feldhockey/"], .spvgg-news-bild[data-abt="feldhockey"] { --spvgg-pikto: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8.5 3v9a5 5 0 0 0 5 5h3.5"/><circle cx="17" cy="20.3" r="1.6" fill="white" stroke="none"/></svg>'); }
.spvgg-abt-karte[href*="fussball/"], .spvgg-news-bild[data-abt="fussball"] { --spvgg-pikto: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linejoin="round"><circle cx="12" cy="12" r="8.5"/><path fill="white" stroke="none" d="M12 8.1l3.7 2.7-1.4 4.4H9.7l-1.4-4.4z"/></svg>'); }
.spvgg-abt-karte[href*="gymnastik/"], .spvgg-news-bild[data-abt="gymnastik"] { --spvgg-pikto: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round"><path d="M18.5 3.5c0 3.2-2.6 4.6-5.1 6.1s-5 3.1-6.3 5.6c-.9 1.7-1.1 3.4-1.1 5"/><circle cx="18.5" cy="3.5" r="1.5" fill="white" stroke="none"/></svg>'); }
.spvgg-abt-karte[href*="karate/"], .spvgg-news-bild[data-abt="karate"] { --spvgg-pikto: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3.5 9.5h17M3.5 13h17"/><rect x="9.6" y="8.4" width="4.8" height="5.6" rx="1" fill="white" stroke="none"/><path d="M10.6 15l-2.4 5M13.4 15l2.4 5"/></svg>'); }
.spvgg-abt-karte[href*="laufsport/"], .spvgg-news-bild[data-abt="laufsport"] { --spvgg-pikto: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2"><rect x="3.5" y="7" width="17" height="10" rx="5"/><rect x="8.2" y="10.3" width="7.6" height="3.4" rx="1.7"/></svg>'); }
.spvgg-abt-karte[href*="radsport/"], .spvgg-news-bild[data-abt="radsport"] { --spvgg-pikto: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="6.2" cy="16" r="3.7"/><circle cx="17.8" cy="16" r="3.7"/><path d="M6.2 16l3.6-6.8h5l3 6.8M9.8 9.2L12.8 16H6.2M14.8 9.2l1.4-1.7M8.4 7.5h2.8"/></svg>'); }
.spvgg-abt-karte[href*="schach/"], .spvgg-news-bild[data-abt="schach"] { --spvgg-pikto: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="6.8" r="2.9"/><path d="M12 9.7v3.3M8.2 20h7.6l-1.5-7h-4.6z"/></svg>'); }
.spvgg-abt-karte[href*="stockschiessen/"], .spvgg-news-bild[data-abt="stockschiessen"] { --spvgg-pikto: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round"><rect x="4.5" y="14.5" width="15" height="4.5" rx="2.2"/><path d="M12 14.5V8"/><circle cx="12" cy="6" r="1.8"/></svg>'); }
.spvgg-abt-karte[href*="tischtennis/"], .spvgg-news-bild[data-abt="tischtennis"] { --spvgg-pikto: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round"><circle cx="9.5" cy="9.5" r="6"/><path d="M9.5 15.5v5"/><path d="M6.5 20.5h6"/><circle cx="18.8" cy="13.5" r="1.7" fill="white" stroke="none"/></svg>'); }
.spvgg-abt-karte[href*="volleyball/"], .spvgg-news-bild[data-abt="volleyball"] { --spvgg-pikto: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="8.5"/><path d="M12 3.5c.4 5.4-3 8.8-8.2 9.7M12 3.5c6.8 2 9.4 7.4 7.4 12.8M4.8 17.3c4.8-3.3 11.2-2.9 14.6.6"/></svg>'); }

/* ── Dashboard (/dashboard/, plugin includes/statistik.php) ──
   Statistics for the department lead: stat tiles, one daily line chart
   (both sources), bar lists and an hour-of-day column chart. Marks carry
   the source colour (--spvgg-dash-farbe set inline on <main>); text
   always wears text tokens. Charts are inline SVG, tables sit behind
   <details> as the accessible alternative. */
.spvgg-dash-inhalt {
  max-width: 77.5rem;
  margin: 0 auto;
  padding: 1.5rem var(--spvgg-inhalt-rand, 2rem) 4rem;
  display: grid;
  gap: 1.2rem;
}

.spvgg-dash-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  align-items: center;
}

.spvgg-dash-filter-gruppe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.spvgg-dash-filter-gruppe a {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.45em 0.9em;
  border: 1px solid var(--wp--preset--color--kante);
  background: var(--spvgg-karte);
  color: inherit;
  text-decoration: none;
  font-family: var(--wp--preset--font-family--league-gothic);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spvgg-dash-filter-gruppe a i {
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
}

.spvgg-dash-filter-gruppe a.ist-aktiv {
  background: var(--wp--preset--color--contrast);
  color: var(--wp--preset--color--base);
  border-color: var(--wp--preset--color--contrast);
}

.spvgg-dash-kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.9rem;
}

.spvgg-dash-kachel {
  background: var(--spvgg-karte);
  border: 1px solid var(--wp--preset--color--kante);
  border-top: 2px solid var(--wp--preset--color--secondary);
  padding: 0.9rem 1.1rem 1rem;
  display: grid;
  gap: 0.15rem;
}

.spvgg-dash-kachel-label,
.spvgg-dash-karte h3 {
  margin: 0;
  font-family: var(--wp--preset--font-family--league-gothic);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--secondary);
}

.spvgg-dash-kachel b {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.spvgg-dash-kachel small {
  color: var(--wp--preset--color--gedimmt);
  font-size: 0.8rem;
}

.spvgg-dash-karte {
  background: var(--spvgg-karte);
  border: 1px solid var(--wp--preset--color--kante);
  padding: 1rem 1.1rem 1.1rem;
  min-width: 0;
}

.spvgg-dash-karte h3 {
  margin-bottom: 0.8rem;
}

.spvgg-dash-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.2rem;
}

.spvgg-dash-leer {
  color: var(--wp--preset--color--gedimmt);
  margin: 0;
}

/* bar lists: label | track | value — bars ≤ 24px, rounded data end only */
.spvgg-dash-balken {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.spvgg-dash-balken li {
  display: grid;
  grid-template-columns: minmax(6rem, 2fr) 3fr auto;
  gap: 0.7rem;
  align-items: center;
  font-size: 0.9rem;
  min-width: 0;
}

.spvgg-dash-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.spvgg-dash-spur {
  display: block;
  height: 14px;
  background: var(--wp--preset--color--kante);
}

.spvgg-dash-fuellung {
  display: block;
  height: 100%;
  min-width: 2px;
  background: var(--spvgg-dash-farbe, var(--wp--preset--color--primary));
  border-radius: 0 4px 4px 0;
}

.spvgg-dash-wert {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.spvgg-dash-wert small {
  color: var(--wp--preset--color--gedimmt);
  font-size: 0.78rem;
}

.spvgg-dash-tabelle {
  margin-top: 0.8rem;
  font-size: 0.85rem;
}

.spvgg-dash-tabelle summary {
  cursor: pointer;
  color: var(--wp--preset--color--gedimmt);
}

.spvgg-dash-tabelle table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.spvgg-dash-tabelle th,
.spvgg-dash-tabelle td {
  text-align: left;
  padding: 0.3rem 0.5rem 0.3rem 0;
  border-bottom: 1px solid var(--wp--preset--color--kante);
  font-variant-numeric: tabular-nums;
}

.spvgg-dash-tabelle th {
  font-weight: 500;
  color: var(--wp--preset--color--gedimmt);
}

/* SVG charts */
.spvgg-dash-plot {
  position: relative;
}

.spvgg-dash-verlauf,
.spvgg-dash-stunden {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.spvgg-dash-grid {
  stroke: var(--wp--preset--color--kante);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.spvgg-dash-achse {
  fill: var(--wp--preset--color--gedimmt);
  font-family: var(--wp--preset--font-family--metropolis);
  font-size: 12px;
}

.spvgg-dash-linie {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.spvgg-dash-punkt {
  stroke: var(--spvgg-karte);
  stroke-width: 2;
}

.spvgg-dash-cursor {
  stroke: var(--wp--preset--color--gedimmt);
  stroke-width: 1;
  pointer-events: none;
}

.spvgg-dash-saeule {
  fill: var(--spvgg-dash-farbe, var(--wp--preset--color--primary));
}

.spvgg-dash-legende {
  list-style: none;
  margin: 0 0 0.6rem;
  padding: 0;
  display: flex;
  gap: 1.2rem;
  font-size: 0.85rem;
}

.spvgg-dash-legende i {
  display: inline-block;
  width: 1.4em;
  height: 3px;
  vertical-align: middle;
  margin-right: 0.4em;
  border-radius: 2px;
}

.spvgg-dash-tooltip {
  position: absolute;
  top: 2.4rem;
  left: 0;
  background: var(--spvgg-karte);
  border: 1px solid var(--wp--preset--color--kante);
  padding: 0.4rem 0.6rem;
  font-size: 0.82rem;
  display: grid;
  gap: 0.1rem;
  pointer-events: none;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.15);
  z-index: 2;
}

.spvgg-dash-tooltip[hidden] {
  display: none;
}

/* Phones: SVG text scales with the viewBox, so larger units keep it
   legible; bars move under their label so paths get the full width. */
@media (max-width: 640px) {
  .spvgg-dash-achse {
    font-size: 24px;
  }

  .spvgg-dash-punkt {
    r: 8px;
  }

  .spvgg-dash-balken li {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0.2rem;
  }

  .spvgg-dash-spur {
    grid-column: 1 / -1;
    height: 10px;
  }
}

.spvgg-dash-hinweis {
  color: var(--wp--preset--color--gedimmt);
  font-size: 0.85rem;
}

.spvgg-dash-hinweis p {
  margin: 0 0 0.4rem;
}

/* ── Hallentraining: saisonaler Plan, eingeklappt über dem Trainingsplan ── */

.spvgg-tz-halle {
  margin: 0 0 1.6rem;
  background: var(--spvgg-karte);
  border: 1px solid var(--wp--preset--color--kante);
  border-left: 4px solid var(--wp--preset--color--secondary);
}

.spvgg-tz-halle > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.9rem;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  list-style: none;
}

.spvgg-tz-halle > summary::-webkit-details-marker { display: none; }

.spvgg-tz-halle > summary::before {
  content: "";
  flex: none;
  align-self: center;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--wp--preset--color--secondary);
  border-bottom: 2px solid var(--wp--preset--color--secondary);
  transform: rotate(-45deg);
  transition: transform 0.2s;
}

.spvgg-tz-halle[open] > summary::before { transform: rotate(45deg); }

.spvgg-tz-halle-titel {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--secondary);
}

.spvgg-tz-halle-zeitraum { font-weight: 600; }

.spvgg-tz-halle-mehr {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--wp--preset--color--gedimmt);
}

.spvgg-tz-halle[open] .spvgg-tz-halle-mehr { display: none; }

.spvgg-tz-halle-inhalt { padding: 0 1.1rem 1.1rem; }
.spvgg-tz-halle-inhalt .spvgg-tz-hinweis { margin: 0 0 1rem; }
.spvgg-tz-halle-inhalt .spvgg-tz-tag-titel:first-of-type { margin-top: 0.4rem; }

/* Hallen-Farbcode (Spalten des Hallenplans) */
.spvgg-tz--gymnasium { border-left-color: #3F6E9E; }
.spvgg-tz--erich-kaestner-halle { border-left-color: #8A5A9E; }
.spvgg-tz-spalte-titel.spvgg-tz--gymnasium { color: #3F6E9E; border-bottom-color: #3F6E9E; }
.spvgg-tz-spalte-titel.spvgg-tz--erich-kaestner-halle { color: #8A5A9E; border-bottom-color: #8A5A9E; }
.spvgg-tz-legende-punkt.spvgg-tz--gymnasium::before { background: #3F6E9E; }
.spvgg-tz-legende-punkt.spvgg-tz--erich-kaestner-halle::before { background: #8A5A9E; }

/* ── Unterabteilungen (ADR 0018): Hero-Eyebrow, Zurück-Link, Gruppen auf der Abteilungsseite ── */

.spvgg-seiten-hero .spvgg-eyebrow a {
  color: inherit;
  text-decoration: none;
}
.spvgg-seiten-hero .spvgg-eyebrow a:hover,
.spvgg-seiten-hero .spvgg-eyebrow a:focus-visible { text-decoration: underline; }

.spvgg-subnav a.spvgg-subnav-zurueck {
  font-family: inherit;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
  color: var(--wp--preset--color--gedimmt);
  padding-left: 0;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .spvgg-subnav a.spvgg-subnav-zurueck {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
    padding: 0.45rem var(--spvgg-pad) 0;
  }
}

/* News card of a sub-department on its department page: the badge is a
   link of its own (no nested anchors), placed into the card's corner. */
.spvgg-news-eintrag { position: relative; }
.spvgg-news-eintrag > .spvgg-news-karte--einfach { padding-right: 11rem; }
.spvgg-news-eintrag > .spvgg-badge--einheit {
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  margin: 0;
  text-decoration: none;
  background: var(--wp--preset--color--surface);
}
.spvgg-news-eintrag > .spvgg-badge--einheit:hover { border-color: currentColor; text-decoration: underline; }
@media (max-width: 600px) {
  .spvgg-news-eintrag > .spvgg-news-karte--einfach { padding-right: 1.4rem; padding-top: 2.6rem; }
  .spvgg-news-eintrag > .spvgg-badge--einheit { top: 0.8rem; left: 1.4rem; right: auto; }
}

.spvgg-tz-einheit { margin-top: 2rem; }
details.spvgg-tz-einheit { margin: 1rem 0 0; }
.spvgg-tz-einheit-titel,
.spvgg-ap-einheit-titel { margin: 0 0 0.8rem; }
.spvgg-tz-einheit-titel a,
.spvgg-ap-einheit-titel a,
.spvgg-team-einheit a { color: inherit; text-decoration: none; }
.spvgg-tz-einheit-titel a::after,
.spvgg-ap-einheit-titel a::after,
.spvgg-team-einheit a::after { content: " →"; color: var(--wp--preset--color--secondary); }
.spvgg-tz-einheit-titel a:hover,
.spvgg-ap-einheit-titel a:hover,
.spvgg-team-einheit a:hover { text-decoration: underline; }
.spvgg-ap-einheit { margin-top: 2rem; }
/* Tab label of a sub-department on its department's Angebote tab ("· Gruppen"). */
.spvgg-einheit-zusatz { font-weight: 400; opacity: 0.75; }

/* ── Sparten (block D): tiles of the sub-departments on the Sparten tab,
   a short strip of links on Aktuelles ── */

.spvgg-sparten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 0.9rem;
}
.spvgg-sparte-kachel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--spvgg-karte);
  border: 1px solid var(--wp--preset--color--kante);
  border-top: 2px solid var(--wp--preset--color--secondary);
  padding: 1.2rem 1.3rem 1.1rem;
  text-decoration: none;
  color: inherit;
}
.spvgg-sparte-kachel:hover,
.spvgg-sparte-kachel:focus-visible { border-color: var(--wp--preset--color--secondary); }
.spvgg-sparte-kachel b {
  font-family: var(--wp--preset--font-family--league-gothic);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.spvgg-sparte-kachel p { margin: 0; color: var(--wp--preset--color--gedimmt); }
.spvgg-sparte-mehr { margin-top: auto; color: var(--wp--preset--color--primary); font-size: 0.9rem; }

.spvgg-sparten-leiste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.2rem;
  margin-top: 3rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--wp--preset--color--kante);
  border-bottom: 1px solid var(--wp--preset--color--kante);
}
.spvgg-sparten-leiste-titel {
  color: var(--wp--preset--color--secondary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.spvgg-termine-vorbei { margin-top: 2rem; }
.spvgg-termine-liste--vorbei { opacity: 0.75; }

/* ── Mitmachen / Einstieg (einstieg.php) ──
   Teaser on the department's Aktuelles tab and the list on
   /mitglied-werden/ — same fields, two renderings. */
.spvgg-mitmachen {
  background: var(--spvgg-karte);
  border: 1px solid var(--wp--preset--color--kante);
  border-left: 3px solid var(--wp--preset--color--secondary);
  padding: 1.4rem 1.6rem;
  max-width: 47.5rem;
}

.spvgg-mitmachen .spvgg-eyebrow {
  margin: 0 0 0.4rem;
}

.spvgg-mitmachen-einladung {
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
}

.spvgg-mitmachen-zeile {
  color: var(--wp--preset--color--gedimmt);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.spvgg-mitmachen-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.2rem;
  margin: 0;
}

/* Second teaser button (an info page of the Einheit): the ghost look of
   .spvgg-btn-ghost, so the red "So steigst du ein" stays the main action. */
.spvgg-mitmachen-links .spvgg-btn-zweit {
  background: transparent;
  color: var(--wp--preset--color--contrast);
  border: 1px solid var(--wp--preset--color--gedimmt);
}

.spvgg-mitmachen-links .spvgg-btn-zweit:hover,
.spvgg-mitmachen-links .spvgg-btn-zweit:focus-visible {
  background: transparent;
  border-color: var(--wp--preset--color--contrast);
}

/* Einstiegs-Liste: one collapsed row per department (Ben 31.10.2026: the
   open list was a wall of text). Summary = name + access chip + who +
   trial; the body opens on click or via a hash. */
.spvgg-einstieg-liste {
  margin: 1rem 0 0;
  border-top: 1px solid var(--wp--preset--color--kante);
}

.spvgg-einstieg {
  border-bottom: 1px solid var(--wp--preset--color--kante);
  scroll-margin-top: 6rem;
}

.spvgg-einstieg > summary {
  display: grid;
  grid-template-columns: 0.55rem minmax(8rem, 12rem) 1fr;
  align-items: center;
  gap: 0.4rem 1rem;
  padding: 0.8rem 0.2rem;
  cursor: pointer;
  list-style: none;
}

.spvgg-einstieg > summary::-webkit-details-marker { display: none; }

.spvgg-einstieg > summary::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--wp--preset--color--secondary);
  border-bottom: 2px solid var(--wp--preset--color--secondary);
  transform: rotate(-45deg);
  transition: transform 0.2s;
}

.spvgg-einstieg[open] > summary::before { transform: rotate(45deg); }

.spvgg-einstieg-name {
  font-family: var(--wp--preset--font-family--league-gothic);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.25rem;
  line-height: 1.1;
}

.spvgg-einstieg--unter .spvgg-einstieg-name {
  font-size: 1.05rem;
}

.spvgg-einstieg-kurz {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.5rem;
  font-size: 0.92rem;
  color: var(--wp--preset--color--gedimmt);
}

.spvgg-einstieg-trenner { color: var(--wp--preset--color--kante); }

.spvgg-einstieg-zugang {
  padding: 0.1rem 0.6rem;
  font-size: 0.78rem;
  border-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--secondary);
}

.spvgg-einstieg-inhalt {
  padding: 0.2rem 0 1rem calc(0.55rem + 1rem);
}

.spvgg-einstieg--unter {
  border-bottom: 0;
  border-top: 1px dashed var(--wp--preset--color--kante);
}

.spvgg-einstieg-einladung {
  margin: 0 0 0.8rem;
  max-width: 48rem;
}

@media (max-width: 600px) {
  .spvgg-einstieg > summary {
    grid-template-columns: 0.55rem 1fr;
  }

  .spvgg-einstieg-kurz {
    grid-column: 2;
  }

  .spvgg-einstieg-inhalt {
    padding-left: 0;
  }
}

.spvgg-steckbrief {
  display: grid;
  grid-template-columns: minmax(7rem, max-content) 1fr;
  gap: 0.35rem 1rem;
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
}

.spvgg-steckbrief dt {
  color: var(--wp--preset--color--gedimmt);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.spvgg-steckbrief dd {
  margin: 0;
}

@media (max-width: 480px) {
  .spvgg-steckbrief {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .spvgg-steckbrief dd {
    margin-bottom: 0.4rem;
  }
}

.spvgg-einstieg-besonders,
.spvgg-einstieg-links {
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}

/* The chosen contact person stands on a line of its own below the free
   contact text ("… beim Jugendleiter. Tobias Eder (Jugendleiter)" ran
   together as one sentence). */
.spvgg-einstieg-person {
  display: block;
  margin-top: 0.3rem;
}

.spvgg-einstieg-seite {
  font-weight: 700;
}

/* "[offen: …]" gaps — only rendered for people who may edit the Einheit. */
mark.spvgg-offen {
  background: #fde68a;
  color: #5b4300;
  padding: 0 0.2em;
}


/* ── Mobile audit 25.11.2026: fixes for 320–390 px phones ── */

/* Contact rows: a 20rem minimum column is wider than a 320 px phone. */
.spvgg-ap-liste {
  grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
}

.spvgg-ap-text {
  overflow-wrap: anywhere;
}

/* Wide editor tables (four or more columns, e.g. the fee table on
   /mitglied-werden/): scroll sideways inside the figure instead of
   breaking words letter by letter in fixed-width columns. Two- and
   three-column tables keep wrapping as before. */
@media (max-width: 640px) {
  figure.wp-block-table:has(tr > :nth-child(4)) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    margin-inline: 0;
  }

  figure.wp-block-table:has(tr > :nth-child(4)) > table,
  figure.wp-block-table:has(tr > :nth-child(4)) > table.has-fixed-layout {
    table-layout: auto;
    width: max-content;
    min-width: 100%;
    /* prose tables wrap at word boundaries instead of growing endlessly */
    max-width: 40rem;
  }

  figure.wp-block-table:has(tr > :nth-child(4)) th,
  figure.wp-block-table:has(tr > :nth-child(4)) td {
    padding: 0.55rem 0.6rem;
    word-break: normal;
    overflow-wrap: normal;
  }
}

/* Three-column editor tables (e.g. date / time / tournament in a news
   post): size the columns by their content instead of three equal
   fixed ones, so "19.12.2026" and "Vorrunde" stay whole. Long text
   still wraps at word boundaries; the figure scrolls only if a single
   word is wider than the phone. */
@media (max-width: 640px) {
  figure.wp-block-table:has(tr > :nth-child(3)):not(:has(tr > :nth-child(4))) {
    overflow-x: auto;
    max-width: 100%;
    margin-inline: 0;
  }

  figure.wp-block-table:has(tr > :nth-child(3)):not(:has(tr > :nth-child(4))) > table {
    table-layout: auto;
  }

  figure.wp-block-table:has(tr > :nth-child(3)):not(:has(tr > :nth-child(4))) th,
  figure.wp-block-table:has(tr > :nth-child(3)):not(:has(tr > :nth-child(4))) td {
    padding: 0.55rem 0.6rem;
    word-break: normal; /* core sets break-word on fixed-layout cells */
  }
}

/* League table: only the team name may break; "+24" and "10" must not
   wrap digit by digit. */
.spvgg-bfv-tabelle td {
  overflow-wrap: normal;
  white-space: nowrap;
}

.spvgg-bfv-tabelle td:nth-child(2) {
  overflow-wrap: anywhere;
  white-space: normal;
}

@media (max-width: 560px) {
  /* "Nicht angetreten"/"abgesetzt" label: wrap inside the badge so the
     opponent's name keeps its width. */
  .spvgg-bfv-ergebnis--ausfall {
    flex: 0 1 auto;
    max-width: 5.6rem;
    line-height: 1.25;
    padding-block: 0.15rem;
  }

  /* Section head: the "all …" link drops below the heading instead of
     pushing out of the viewport. */
  .spvgg-section-head {
    flex-wrap: wrap;
  }

  .spvgg-section-head .spvgg-link-all {
    white-space: normal;
  }

  /* News cards: teaser capped to four lines, the page was 18 screens long. */
  .spvgg-news-text > p:not(.spvgg-news-meta),
  .spvgg-news-karte--einfach > p:not(.spvgg-news-meta) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
  }

  /* Entry accordion on /mitglied-werden/: as flex items the "·"
     separators ended up alone at line ends; flow them inline instead. */
  .spvgg-einstieg-kurz {
    display: block;
  }

  .spvgg-einstieg-kurz .spvgg-einstieg-zugang {
    margin-right: 0.3rem;
  }
}

/* Imported articles: bare <img> without size classes, pasted URLs and
   long compound words must not widen the page. */
.wp-block-post-content img,
.spvgg-unterseite-inhalt img {
  max-width: 100%;
  height: auto;
}

.wp-block-post-content,
.spvgg-unterseite-inhalt {
  overflow-wrap: break-word;
}

.wp-block-post-content a,
.spvgg-unterseite-inhalt a {
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  /* minmax(0, …): a long headline must wrap, not widen the card */
  .spvgg-news-karte--bild {
    grid-template-columns: minmax(0, 1fr);
  }

  .spvgg-news-text {
    min-width: 0;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  /* Menu button: 24 px icon, 44 px touch area. */
  .spvgg-nav .wp-block-navigation__responsive-container-open {
    padding: 10px;
    margin: -10px;
    box-sizing: content-box;
  }
}

/* Multi-day event in the home page box: "bis 17.01." under the first day. */
.spvgg-termin time small {
  display: block;
  font-family: var(--wp--preset--font-family--metropolis);
  font-size: 0.72rem;
  color: var(--wp--preset--color--gedimmt);
}

/* Time of a stand-alone event in the list rows: after the date, quieter. */
.spvgg-termin-zeile time small {
  font-family: var(--wp--preset--font-family--metropolis);
  font-size: 0.8rem;
  color: var(--wp--preset--color--gedimmt);
  margin-left: 0.5rem;
}

/* One title column for rows with and without a time. */
@media (min-width: 641px) {
  .spvgg-termine-liste:has(time small) .spvgg-termin-zeile time { min-width: 15rem; }
}

@media (max-width: 560px) {
  /* A date range does not fit beside the title on a phone. */
  .spvgg-termin-zeile {
    flex-wrap: wrap;
    gap: 0.15rem 1.2rem;
  }
}

/* News card of an event: posting date as usual, the event day after it
   as a red label of its own line. */
.spvgg-news-meta:has(.spvgg-news-termin-marke) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.spvgg-news-termin-marke {
  /* after date and department badge, on a line of its own */
  order: 3;
  flex-basis: 100%;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--wp--preset--color--primary);
}

/* Single event news: the day of the event as a banner under the title. */
.spvgg-termin-banner {
  /* Centred above the article card (Ben 25.11.2026); !important beats
     the constrained layout's own side margins. */
  display: flex;
  width: fit-content;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.9rem;
  margin: 1.2rem auto 0.6rem !important;
  padding: 0.7rem 1.1rem 0.6rem;
  background: var(--wp--preset--color--primary);
  color: #fff;
}

.spvgg-termin-banner-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}

.spvgg-termin-banner time {
  font-family: var(--wp--preset--font-family--league-gothic);
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Past event: still stated, no longer shouting. */
.spvgg-termin-banner.ist-vorbei {
  background: transparent;
  color: var(--wp--preset--color--gedimmt);
  border: 1px solid var(--wp--preset--color--kante);
}
