/* ==========================================================================
   TEAMSEITEN HERREN & JUGEND (ergänzt style.css + volleyball.css)
   Seitenkopf mit Kennzahlen + Spielwochenende, Team-Tabs (sticky), Team-Ansichten mit Formkurve,
   nächstem Spiel, Spielplan (Monate → Spieltage → Spiele), Tabelle mit Zonen, Jugend-Turniertage,
   Kader-Spielfeld im dunklen Kasten, Training, Kontakt.
   Akzentfarben je Bereich kommen aus style.css (body[data-bereich]: --akzent-*, in <main> sind --red/--red-bright/
   --red-dark/--red-soft/--red-rgb auf den Akzent umgestellt – Herren schwarz-rot, Jugend blau). Hier deshalb nur
   var(--red…)/var(--akzent…), keine festen Rottöne. Eigentümer: Bereich „Teams“.
   ========================================================================== */

:root {
  --tm-win: #12804a;   /* Weiß darauf 5,0:1 */
  --tm-loss: #5d5d66;  /* Weiß darauf 6,3:1 */
  --tm-tabbar-h: 66px;
}
main {
  --tm-rgb: var(--red-rgb, 217 10 20);
  --tm-glow: rgb(var(--tm-rgb) / .28);
  --tm-match: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 55%, #0b0b0e 100%);
}
[data-bereich="herren"] main {
  /* schwarz-rot: Schwarz läuft ins Rot */
  --tm-match: linear-gradient(118deg, #17171c 0%, #2b080c 48%, var(--red-dark) 100%);
}

/* ---------- Seitenkopf ---------- */
.tm-hero {
  position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff;
  padding-block: clamp(36px, 5.5vw, 80px) clamp(48px, 7vw, 96px);
}
.tm-hero::before { /* Diagonal-Streifen */
  content: ""; position: absolute; z-index: -2; top: -25%; right: -9%; width: 40%; height: 160%;
  background: var(--akzent-flaeche, linear-gradient(180deg, #d90a14 0%, #a8070f 100%)); box-shadow: inset 6px 0 0 var(--akzent-kante, transparent);
  transform: skewX(-14deg);
}
.tm-hero::after { /* Schachbrett-Band am Streifen (Wappen) */
  content: ""; position: absolute; z-index: -1; top: -25%; right: calc(31% - 8px); width: 16px; height: 160%;
  background: repeating-linear-gradient(180deg, #fff 0 16px, var(--ink) 16px 32px); transform: skewX(-14deg); opacity: .9;
}
/* Herren (schwarz-rot): Schachbrett-Band in Rot-Weiß wie im Wappen, roter Schein hinter der Spielwochenende-Karte */
[data-bereich="herren"] .tm-hero::after { background: repeating-linear-gradient(180deg, #fff 0 16px, #d90a14 16px 32px); }
[data-bereich="herren"] .tm-hero__court {
  background:
    radial-gradient(42% 60% at 80% 45%, rgba(217, 10, 20, .34), transparent 70%),
    radial-gradient(50% 60% at 18% 0%, var(--tm-glow), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .06) 0 0) 0 30% / 100% 2px no-repeat,
    linear-gradient(rgba(255, 255, 255, .06) 0 0) 0 78% / 100% 2px no-repeat;
}
[data-bereich="herren"] .tm-weekend { border-color: rgba(217, 10, 20, .35); box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 90px rgba(217, 10, 20, .16); }
.tm-hero__court { /* Spielfeldlinien + Schein in der Akzentfarbe */
  position: absolute; z-index: -3; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 60% at 18% 0%, var(--tm-glow), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .06) 0 0) 0 30% / 100% 2px no-repeat,
    linear-gradient(rgba(255, 255, 255, .06) 0 0) 0 78% / 100% 2px no-repeat;
}
.tm-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.tm-hero .eyebrow, .tm-hero .text-red { color: var(--red-bright); }
.tm-hero h1 { color: #fff; font-style: italic; font-size: clamp(2.9rem, 7.2vw, 5.4rem); margin-bottom: .3em; }
.tm-hero .lead { color: var(--muted-on-dark); margin-bottom: 1.4em; }
.tm-hero .lead strong { color: #fff; }

/* Kennzahlen */
.tm-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 28px 0 0; max-width: 640px; }
.tm-kpi {
  display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px 12px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13);
}
.tm-kpi dt { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-dark); }
.tm-kpi dd { margin: 0; min-width: 0; }
.tm-kpi dd > span { display: block; }
.tm-kpi b { display: block; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1; color: #fff; }
.tm-kpi small { display: block; margin-top: 5px; font-size: .78rem; line-height: 1.35; color: var(--muted-on-dark); }
.tm-kpi:first-child b { color: var(--red-bright); }
.tm-kpi--next b { font-size: clamp(1.5rem, 2.6vw, 1.9rem); padding-top: .2em; }

/* Karte „Nächstes Spielwochenende“ */
.tm-weekend {
  position: relative; border-radius: var(--radius-lg); padding: clamp(20px, 2.6vw, 30px);
  background: rgba(15, 15, 18, .86); border: 1px solid rgba(255, 255, 255, .12); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
.tm-weekend::before { content: ""; position: absolute; left: 22px; right: 22px; top: -5px; height: 10px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--red) 0 18px, #fff 18px 36px); }
.tm-weekend__kicker { display: flex; align-items: center; gap: 10px; margin: 6px 0 6px; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-on-dark); }
.tm-weekend__title { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; margin: 0 0 6px; color: #fff; }
.tm-weekend__sum { margin: 0; color: #fff; font-weight: 600; }
.tm-weekend__rel { margin: 12px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; color: var(--red-bright); }
.tm-weekend__games { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; }
.tm-weekend__games li {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center;
  padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
}
.tm-weekend__time { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--red-bright); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-weekend__team { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; text-transform: uppercase; color: #fff; white-space: nowrap; }
.tm-weekend__opp { font-size: .88rem; color: var(--muted-on-dark); min-width: 0; }
.tm-weekend__res { display: inline-flex; gap: 4px; justify-self: end; }
/* schmale Karte (Tablet quer, Handy): Gegner in eine eigene Zeile, sonst bricht er in drei Zeilen um */
.tm-weekend { container-type: inline-size; }
@container (max-width: 460px) {
  .tm-weekend__games li { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "time team ha" "opp opp opp"; }
  .tm-weekend__time { grid-area: time; }
  .tm-weekend__team { grid-area: team; }
  .tm-weekend__games .tm-badge, .tm-weekend__res { grid-area: ha; }
  .tm-weekend__opp { grid-area: opp; }
}
.tm-weekend__res .tm-res { min-width: 0; padding: 1px 7px; font-size: .95rem; }
/* vorbei: gedämpfte Farben statt Deckkraft (die hätte Gegner und Zeit unter 4,5:1 gedrückt) */
.tm-weekend__games li.is-past { background: rgba(255, 255, 255, .025); }
.tm-weekend__games li.is-past .tm-weekend__time, .tm-weekend__games li.is-past .tm-weekend__team, .tm-weekend__games li.is-past .tm-weekend__opp { color: var(--muted-on-dark); }
.tm-weekend__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: #fff; font-weight: 650; text-decoration: none; }
.tm-weekend__link::after { content: "→"; transition: transform .2s var(--ease); }
.tm-weekend__link:hover { color: var(--red-bright); }
.tm-weekend__link:hover::after { transform: translateX(4px); }

@media (max-width: 960px) {
  .tm-hero__grid { grid-template-columns: 1fr; }
  .tm-hero::before { top: auto; bottom: -8%; height: 26%; width: 80%; right: -40%; }
  .tm-hero::after { top: auto; bottom: -8%; height: 26%; right: calc(40% + 8px); }
  .tm-weekend { background: var(--ink-2); }
}
@media (max-width: 560px) {
  .tm-kpis { grid-template-columns: 1fr 1fr; }
  .tm-kpi--next { grid-column: 1 / -1; }
  .tm-weekend__games li { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "time team ha" "opp opp opp"; }
  .tm-weekend__time { grid-area: time; }
  .tm-weekend__team { grid-area: team; }
  .tm-weekend__games .tm-badge, .tm-weekend__res { grid-area: ha; }
  .tm-weekend__opp { grid-area: opp; }
}

/* Pulsierender Punkt */
.tm-pulse { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 0 0 rgb(var(--tm-rgb) / .7); animation: tmpulse 1.8s infinite; }
.tm-match .tm-pulse { background: #fff; }
@keyframes tmpulse { 70% { box-shadow: 0 0 0 10px rgb(var(--tm-rgb) / 0); } 100% { box-shadow: 0 0 0 0 rgb(var(--tm-rgb) / 0); } }

/* Countdown */
.tm-cd { display: flex; gap: 8px; margin: 16px 0 4px; }
.tm-cd > div { flex: 1 1 0; max-width: 84px; padding: 9px 6px 7px; border-radius: 12px; text-align: center; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .14); }
.tm-cd b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 2.8vw, 2.1rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.tm-cd span { font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.tm-cd--hero > div { background: rgba(255, 255, 255, .06); }
.tm-cd .tm-cd__live { max-width: none; flex: 1; text-align: left; padding: 10px 14px; background: rgba(255, 255, 255, .1); }
.tm-cd__live b { font-size: 1.5rem; }

/* ---------- Badges Heim / Auswärts / Neutral ---------- */
.tm-badge {
  display: inline-flex; align-items: center; flex: none; padding: .22em .65em; border-radius: 999px;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; white-space: nowrap;
}
.tm-badge--heim { background: var(--red); color: #fff; }
.tm-badge--auswaerts { background: var(--ink); color: #fff; }
.tm-badge--neutral { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.tm-weekend .tm-badge--heim, .tm-match .tm-badge--heim { background: #fff; color: var(--red); }
.tm-weekend .tm-badge--auswaerts, .tm-match .tm-badge--auswaerts, .tm-card .tm-badge--auswaerts { background: rgba(255, 255, 255, .16); color: #fff; }
.tm-weekend .tm-badge--neutral, .tm-match .tm-badge--neutral, .tm-card .tm-badge--neutral { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }

/* ---------- Abschnitt Teams + Tab-Leiste (bleibt beim Scrollen stehen) ---------- */
.tm-section { position: relative; }
.tm-section .section-head { margin-bottom: clamp(24px, 3.5vw, 40px); }
/* Kalender-Abo des Bereichs (kalenderAbo) unter der Überschrift, vor den Team-Tabs */
.tm-abo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: calc(-1 * clamp(8px, 1.6vw, 18px)) 0 clamp(22px, 3vw, 32px); }
.tm-abo__hint { margin: 0; flex: 1 1 280px; max-width: 62ch; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.tm-tabbar {
  position: sticky; top: var(--header-h); z-index: 30;
  margin: 0 calc(-1 * var(--gutter)) clamp(20px, 3vw, 32px); padding: 10px var(--gutter);
  background: rgba(245, 244, 241, .94); -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px);
  transition: box-shadow .25s, border-color .25s; border-bottom: 1px solid transparent;
}
.tm-tabbar.is-stuck { border-color: var(--border); box-shadow: 0 10px 24px rgba(15, 15, 18, .07); }
.tm-tabs { margin: 0; background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.tm-tabs .tab { position: relative; }
.tm-tabs .tab:hover { background: var(--surface); }
.tm-tabs .tab[aria-selected="true"] { background: var(--ink); color: #fff; }
[data-bereich="herren"] .tm-tabs .tab[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--red-bright); }
[data-bereich="jugend"] .tm-tabs .tab[aria-selected="true"] { background: var(--red); }
/* Handy: eine Zeile, seitlich wischen (die Leiste bleibt flach, auch mit sieben Teams) */
@media (max-width: 560px) {
  .tm-tabs { display: flex; width: auto; border-radius: 999px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .tm-tabs.is-end { -webkit-mask-image: none; mask-image: none; }
  .tm-tabs .tab { padding: 0 14px; font-size: 1rem; min-height: 42px; scroll-snap-align: start; }
}

/* Ansichten: mit JavaScript nur das gewählte Team (ohne JS stehen alle untereinander) */
.tm-view { scroll-margin-top: calc(var(--header-h) + var(--tm-tabbar-h) + 12px); }
/* Fokus (z. B. beim Rückwärts-Tabben) landet nicht unter der klebenden Team-Leiste (WCAG 2.4.11) */
:root:has(.tm-tabbar) { scroll-padding-top: calc(var(--header-h) + var(--tm-tabbar-h) + 16px); }
.js .tm-view:not(.is-active) { display: none; }
.no-js .tm-tabbar { display: none; } /* ohne JS stehen alle Teams untereinander – Tabs hätten keine Funktion */
.no-js .tm-view + .tm-view { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(28px, 4vw, 48px); border-top: 3px solid var(--ink); }
.tm-view.is-active { animation: tmfade .35s var(--ease) both; }
@keyframes tmfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Kopf einer Team-Ansicht ---------- */
.tm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; margin-bottom: 18px; }
.tm-head .eyebrow { margin-bottom: .5rem; }
.tm-head__name { font-size: clamp(2.4rem, 5.4vw, 3.8rem); font-style: italic; text-transform: uppercase; line-height: .95; margin: 0; }
.tm-head__meta { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.tm-head__text { max-width: 62ch; margin-top: 10px; color: var(--muted); }
.tm-head__text p:last-child { margin: 0; }
.tm-head__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Kennzahlen eines Teams */
.tm-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tm-stat {
  display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; padding: 14px 16px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.tm-stat b { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-stat b small { font-size: .55em; font-style: normal; color: var(--muted); margin: 0 1px; }
.tm-stat > span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tm-stat > span small { font-size: inherit; letter-spacing: inherit; font-weight: 600; text-transform: none; }
.tm-stat--accent { background: var(--ink); border-color: var(--ink); }
.tm-stat--accent b { color: var(--red-bright); }
.tm-stat--accent b small, .tm-stat--accent > span { color: var(--muted-on-dark); }
[data-bereich="jugend"] .tm-stat--accent { background: var(--red); border-color: var(--red); }
[data-bereich="jugend"] .tm-stat--accent b, [data-bereich="jugend"] .tm-stat--accent b small, [data-bereich="jugend"] .tm-stat--accent > span { color: #fff; }
.tm-stat--form { gap: 9px; }
@media (max-width: 1020px) { .tm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tm-stat--form { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; } }
@media (max-width: 560px) { .tm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tm-stat { padding: 12px 14px; } }

/* Formkurve: S = Sieg (grün), N = Niederlage (grau) – Buchstabe zusätzlich zur Farbe */
.tm-form { display: inline-flex; gap: 5px; align-items: center; }
.tm-form__dot {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: .95rem; line-height: 1; color: #fff;
}
.tm-form__dot--s { background: var(--tm-win); }
.tm-form__dot--n { background: var(--tm-loss); }
.tm-form__dot.is-last { width: 32px; height: 32px; font-size: 1.05rem; box-shadow: 0 0 0 2px #fff, 0 0 0 4px currentColor; }
.tm-form__dot--s.is-last { color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--tm-win); }
.tm-form__dot--n.is-last { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--tm-loss); }
.tm-form--leer { font-size: .85rem; color: var(--muted); font-weight: 600; }
.tm-form--mini .tm-form__dot, .tm-form--mini .tm-form__dot.is-last { width: 20px; height: 20px; border-radius: 6px; font-size: .72rem; box-shadow: none; }
.tm-form--mini { gap: 3px; }

/* ---------- Nächstes Spiel ---------- */
.tm-next { margin-top: clamp(16px, 2.4vw, 24px); }
.tm-match {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: center;
  padding: clamp(20px, 3.2vw, 36px); border-radius: var(--radius-lg); background: var(--tm-match); color: #fff;
  box-shadow: 0 24px 60px rgba(15, 15, 18, .28), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.tm-match::before { /* Netz-Struktur */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .1;
  background: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 18px), repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 18px);
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000); mask-image: linear-gradient(90deg, transparent 35%, #000);
}
.tm-match__date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: .9;
  width: clamp(96px, 12vw, 132px); aspect-ratio: 1; border-radius: 20px; background: #fff; color: var(--ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35); transform: rotate(-4deg);
}
.tm-match__date span { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: clamp(.9rem, 1.4vw, 1.1rem); color: var(--red); }
.tm-match__date b { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: clamp(3rem, 5.4vw, 4.2rem); }
.tm-match__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .88); }
.tm-match__title { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-style: italic; text-transform: uppercase; margin: 0 0 6px; text-wrap: balance; }
.tm-match__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; color: rgba(255, 255, 255, .9); font-weight: 600; }
.tm-match__venue { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.tm-match__venue svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #fff; }
.tm-match__games { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; font-size: .92rem; }
.tm-match__games li { display: flex; gap: 10px; align-items: baseline; }
.tm-match__games li > span:first-child { font-family: var(--font-display); font-weight: 800; color: #fff; min-width: 3ch; }
.tm-match__games .is-us { font-weight: 750; color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tm-match .btn-row { margin-top: 18px; }
.tm-match--leer { display: block; background: #fff; color: var(--ink); border: 2px dashed var(--border); box-shadow: none; }
.tm-match--leer::before { display: none; }
.tm-match--leer .tm-match__kicker { color: var(--muted); }
.tm-match--leer .tm-match__title { color: var(--ink); font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.tm-match--leer .tm-match__meta { color: var(--muted); font-weight: 500; }
@media (max-width: 640px) {
  .tm-match { grid-template-columns: 1fr; gap: 14px; }
  .tm-match__date { flex-direction: row; gap: 8px; width: max-content; aspect-ratio: auto; padding: 8px 16px; border-radius: 14px; }
  .tm-match__date b { font-size: 2.2rem; }
  .tm-match .btn-row .btn { flex: 1 1 auto; }
}

/* ---------- Kästen, Spalten ---------- */
.tm-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); align-items: start; margin-top: clamp(16px, 2.4vw, 28px); }
.tm-split--single { grid-template-columns: minmax(0, 1fr); }
.tm-split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1020px) { .tm-split, .tm-split--even { grid-template-columns: minmax(0, 1fr); } }
.tm-box { min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(16px, 2.4vw, 28px); box-shadow: var(--shadow-sm); }
.tm-box__title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: clamp(1.4rem, 2.2vw, 1.75rem); text-transform: uppercase; margin: 0 0 16px; }
.tm-box__title svg { width: 24px; height: 24px; flex: none; color: var(--red); }
.tm-box__sub { margin-left: auto; font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
@media (min-width: 1021px) and (min-height: 720px) {
  .tm-tablebox { position: sticky; top: calc(var(--header-h) + var(--tm-tabbar-h) + 16px); }
}
.tm-empty { margin: 0; padding: 18px; border: 2px dashed var(--border); border-radius: var(--radius); color: var(--muted); text-align: center; }
.tm-source { margin: 14px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.tm-source a { white-space: nowrap; font-weight: 600; }
.tm-ext { display: inline-block; width: 13px; height: 13px; margin-left: 3px; vertical-align: -1px; }

/* ---------- Spielplan ---------- */
.tm-plan__tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin: -4px 0 12px; }
.tm-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.tm-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--border); background: #fff; color: var(--ink); font: inherit; font-size: .9rem; font-weight: 650; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.tm-chip span { min-width: 22px; padding: 1px 6px; border-radius: 999px; background: var(--surface-2); font-size: .74rem; font-weight: 700; text-align: center; }
.tm-chip:hover { border-color: var(--ink); }
.tm-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tm-chip[aria-pressed="true"] span { background: rgba(255, 255, 255, .18); }
.tm-plan__toggle { min-height: 40px; padding: 0 4px; border: 0; background: none; color: var(--red); font: inherit; font-size: .88rem; font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tm-plan__toggle:hover { color: var(--red-dark); }
@media (max-width: 560px) {
  .tm-chip { padding: 0 11px; font-size: .86rem; }
}

.tm-month { border-top: 1px solid var(--border); }
.tm-month:last-of-type { border-bottom: 1px solid var(--border); }
.tm-month > summary {
  position: relative; list-style: none; cursor: pointer; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 14px 44px 14px 2px;
  border-radius: 8px;
}
.tm-month > summary::-webkit-details-marker { display: none; }
.tm-month > summary::after { /* Kreis */
  content: ""; position: absolute; right: 2px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background: var(--surface); transition: background-color .2s;
}
.tm-month > summary::before { /* Pfeil in der Akzentfarbe */
  content: ""; position: absolute; z-index: 1; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(45deg);
  transition: transform .25s var(--ease), margin-top .25s var(--ease);
}
.tm-month[open] > summary::before { transform: rotate(-135deg); margin-top: -2px; }
.tm-month > summary:hover::after { background: var(--surface-2); }
.tm-month > summary:hover .tm-month__name { color: var(--red); }
.tm-month > summary:focus-visible { outline-offset: -2px; }
.tm-month__name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; color: var(--ink); letter-spacing: .02em; }
.tm-month__meta { font-size: .82rem; font-weight: 600; color: var(--muted); }
.tm-month > summary .tm-form { order: 8; }

.tm-days { list-style: none; margin: 0 0 10px; padding: 0; }
.tm-day { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px dashed var(--border); }
.tm-days > .tm-day:first-child { border-top: 0; padding-top: 4px; }
.tm-day__date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: start; height: 62px; border-radius: 12px;
  background: var(--ink); color: #fff; line-height: 1;
}
.tm-day__date span { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-on-dark); }
.tm-day__date b { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; margin: 2px 0; }
.tm-day.is-past .tm-day__date { background: var(--surface-2); color: var(--ink); }
.tm-day.is-past .tm-day__date span { color: var(--muted); }
.tm-day.is-next .tm-day__date { background: var(--red); box-shadow: 0 0 0 4px rgb(var(--tm-rgb) / .16); }
.tm-day.is-next .tm-day__date span { color: #fff; }
.tm-day__date--offen { background: var(--surface-2) !important; color: var(--muted) !important; }
.tm-day__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 2px 0 8px; }
.tm-day__st { font-size: .76rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.tm-day__st abbr { text-decoration: none; cursor: help; border-bottom: 1px dotted currentColor; }
.tm-day__next { display: none; }
.tm-day.is-next .tm-day__next { display: inline-flex; align-items: center; gap: 6px; padding: .22em .65em; border-radius: 999px; background: var(--red-soft); color: var(--red-dark); font-size: .68rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.tm-day__venue { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.tm-day__venue svg { width: 14px; height: 14px; flex: none; color: var(--red); }
.tm-day__venue a { font-weight: 650; }
.tm-day__venue a::after { content: " →"; }

.tm-games { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tm-game {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; grid-template-areas: "time teams res" "time sets sets";
  gap: 2px 10px; align-items: center;
}
.tm-game__time { grid-area: time; align-self: start; padding-top: 3px; font-family: var(--font-display); font-weight: 800; font-size: .95rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tm-game__teams { grid-area: teams; min-width: 0; font-weight: 600; font-size: .95rem; color: var(--ink); line-height: 1.35; }
.tm-game__teams .is-us { color: var(--red); font-weight: 750; }
.tm-vs { color: var(--muted); }
.tm-game__hint { display: inline-block; font-size: .74rem; font-weight: 600; color: var(--muted); }
.tm-game__res { grid-area: res; justify-self: end; }
.tm-game__sets { grid-area: sets; font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.tm-res {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 8px; min-width: 52px; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1.15; color: #fff; font-variant-numeric: tabular-nums;
}
.tm-res--s { background: var(--tm-win); }
.tm-res--n { background: var(--tm-loss); }
.tm-res--neutral { background: var(--surface-2); color: var(--ink); }
.tm-pending { display: inline-block; font-size: .78rem; font-weight: 650; color: var(--muted); white-space: nowrap; }
.tm-day.is-next .tm-pending { color: var(--red-dark); }
.tm-game--fremd .tm-game__teams { font-weight: 500; color: var(--muted); }

/* ---------- Tabelle mit Zonen ---------- */
.tm-tablewrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.tm-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tm-table th, .tm-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.tm-table th { font-family: var(--font-display); font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.tm-table th abbr { text-decoration: none; }
.tm-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-table tbody tr:last-child td { border-bottom: 0; }
.tm-table tbody tr:hover td { background: var(--surface); }
.tm-team { color: var(--ink); font-weight: 550; }
.tm-pos { width: 40px; }
.tm-pos span {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; background: var(--surface-2); color: var(--ink);
}
.tm-pts { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.zone-aufstieg .tm-pos span { background: var(--tm-win); color: #fff; }
.zone-relegation-auf .tm-pos span { background: #bfe5cd; color: #0c4f2e; }
.zone-relegation-ab .tm-pos span { background: #fbd9a4; color: #6b3d00; }
.zone-abstieg .tm-pos span { background: var(--red-dark); color: #fff; }
.tm-table tr.is-us td { background: var(--red-soft); }
.tm-table tr.is-us td:first-child { box-shadow: inset 4px 0 0 var(--red); }
.tm-table tr.is-us .tm-team strong { color: var(--red-dark); font-weight: 750; }
.tm-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 12px 0 0; padding: 0; font-size: .78rem; color: var(--muted); }
.tm-legend li { display: inline-flex; align-items: center; gap: 6px; }
.tm-legend__sw { width: 14px; height: 14px; border-radius: 50%; background: var(--surface-2); }
.tm-legend__sw--us { border-radius: 3px; background: var(--red-soft); box-shadow: inset 3px 0 0 var(--red); border: 1px solid #f1c4c4; }
.tm-legend__sw--aufstieg { background: var(--tm-win); }
.tm-legend__sw--relegation-auf { background: #bfe5cd; box-shadow: inset 0 0 0 1px #8cc9a4; }
.tm-legend__sw--relegation-ab { background: #fbd9a4; box-shadow: inset 0 0 0 1px #e5b467; }
.tm-legend__sw--abstieg { background: var(--red-dark); }
@media (max-width: 400px) { .tm-col-saetze { display: none; } .tm-table th, .tm-table td { padding: 9px 5px; } }
.tm-table--mini { font-size: .85rem; margin-top: 10px; }
.tm-table--mini .tm-pos span { width: 24px; height: 24px; font-size: .9rem; }
.tm-table--mini th, .tm-table--mini td { padding: 7px 6px; }

/* ---------- Jugend: Turniertage ---------- */
.tm-turniere { list-style: none; margin: 0; padding: 0; }
.tm-turnier { border-top: 1px solid var(--border); padding: 16px 0; }
.tm-turniere > .tm-turnier:first-child { border-top: 0; padding-top: 0; }
.tm-turnier__meta { margin: -2px 0 10px; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.tm-turnier__meta a { font-weight: 650; }
.tm-turnier__gruppe { margin: 12px 0 6px; font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tm-games--gruppe { gap: 6px; }
.tm-more { margin-top: 12px; border-radius: var(--radius-sm); background: var(--surface); }
.tm-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: .86rem; font-weight: 650; color: var(--ink); border-radius: var(--radius-sm); }
.tm-more > summary::-webkit-details-marker { display: none; }
.tm-more > summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--red); font-weight: 700; transition: transform .2s; }
.tm-more[open] > summary::before { transform: rotate(45deg); }
.tm-more > summary span { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: #fff; font-size: .74rem; color: var(--muted); }
.tm-more > summary:focus-visible { outline-offset: -2px; }
.tm-more__gruppe { padding: 0 12px 12px; }
.tm-subhead { margin: 20px 0 10px; font-size: 1.1rem; text-transform: uppercase; }
.tm-teilnehmer, .tm-places { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tm-teilnehmer li, .tm-places li { padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .84rem; font-weight: 600; color: var(--ink); }
.tm-teilnehmer li.is-us, .tm-places li.is-us { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Überblick „Alle“ ---------- */
.tm-cards { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 20px); }
@media (max-width: 1020px) { .tm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Handy: Team-Karten seitlich wischen statt vier volle Bildschirme untereinander */
@media (max-width: 560px) {
  .tm-cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
  .tm-card { flex: 0 0 min(84%, 320px); scroll-snap-align: start; }
}
.tm-card {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 20px 20px 18px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; text-decoration: none;
  box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s;
}
.tm-card::after { content: ""; position: absolute; z-index: -1; top: -64px; right: -64px; width: 130px; height: 130px; background: var(--red); transform: rotate(45deg); transition: transform .3s var(--ease); }
.tm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: #fff; }
.tm-card:hover::after { transform: rotate(45deg) scale(1.18); }
.tm-card__head { display: flex; flex-direction: column; gap: 2px; padding-right: 40px; }
.tm-card__name { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.75rem; line-height: 1; text-transform: uppercase; }
.tm-card__liga { font-size: .8rem; color: var(--muted-on-dark); line-height: 1.35; }
.tm-card__big { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.tm-card__big b { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 3.4rem; line-height: .9; color: var(--red-bright); }
.tm-card__big small { font-size: .78rem; font-weight: 600; color: var(--muted-on-dark); text-transform: uppercase; letter-spacing: .08em; }
.tm-card__big--date > span { display: flex; align-items: baseline; gap: 8px; }
.tm-card__big--date b { font-size: 2.6rem; }
.tm-card__stats { font-size: .86rem; font-weight: 600; color: #fff; }
.tm-card .tm-form__dot.is-last { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px #fff; }
.tm-card .tm-form--leer { color: var(--muted-on-dark); }
.tm-card__next, .tm-card__next > span { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; color: var(--muted-on-dark); line-height: 1.4; }
.tm-card__next[data-rotate] { display: block; }
.tm-card__next svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--red-bright); }
.tm-card__next b { color: #fff; }
.tm-card__last { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted-on-dark); }
.tm-card__last .tm-res { min-width: 0; padding: 1px 7px; font-size: .95rem; }
.tm-card__go { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .92rem; color: #fff; }
.tm-card__go::after { content: "→"; transition: transform .2s var(--ease); }
.tm-card:hover .tm-card__go::after { transform: translateX(4px); }
.tm-view--alle .tm-split { margin-top: clamp(20px, 3vw, 32px); }

.tm-list { list-style: none; margin: 0; padding: 0; }
.tm-list__item { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--border); }
.tm-list > .tm-list__item:first-child { border-top: 0; padding-top: 0; }
.tm-list__date { display: flex; flex-direction: column; font-size: .78rem; color: var(--muted); line-height: 1.3; }
.tm-list__date b { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.tm-list__main { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: .9rem; line-height: 1.35; }
.tm-list__main small { font-size: .74rem; color: var(--muted); }
.tm-list__team { font-family: var(--font-display); font-weight: 800; font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; color: var(--red); }
.tm-list__txt { color: var(--ink); font-weight: 550; }
.tm-list__txt .is-us { color: var(--red); font-weight: 750; }
.tm-list__item--leer { display: block; color: var(--muted); }
@media (max-width: 480px) {
  .tm-list__item { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; }
  .tm-list__item > .tm-badge { grid-column: 2; grid-row: 2; justify-self: start; margin-top: -4px; }
  .tm-list__item > .tm-res { min-width: 44px; padding: 2px 8px; font-size: 1.05rem; }
}

/* ---------- Kader (dunkler Kasten mit Spielfeld) ---------- */
.tm-kader {
  position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(28px, 4vw, 48px);
  padding: clamp(20px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--ink); color: #fff;
}
.tm-kader::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 45% at 90% 0%, var(--tm-glow), transparent 70%), radial-gradient(40% 40% at 0% 100%, rgb(var(--tm-rgb) / .12), transparent 70%);
}
.tm-kader .eyebrow { color: var(--red-bright); margin-bottom: .5rem; }
.tm-kader__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 32px; margin-bottom: 20px; }
.tm-kader__title { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); text-transform: uppercase; margin: 0; }
.tm-kader__lead { color: var(--muted-on-dark); max-width: 46ch; margin: 0; font-size: .95rem; }
.tm-kader .kader-head { margin-top: clamp(32px, 5vw, 56px); }
.tm-kader:has(.kader-grid--leer) .kader-head .tm-kader__lead { display: none; } /* „Karte antippen …“ ergibt ohne Spieler keinen Sinn */
.tm-kader .kader-head h4 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); text-transform: uppercase; margin: 0; }
.tm-kader .court-panel__title { margin: 0; }
.spot--leer .spot__btn { background: rgba(15, 15, 18, .55); border-style: dashed; }
.pcard--leer { cursor: default; }
.pcard--leer .pcard__front { background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(255, 255, 255, .025) 12px 24px), var(--ink-2); border: 2px dashed var(--ink-3); }
.pcard--leer .pcard__front::before { opacity: .35; }
.pcard__ghost {
  align-self: center; display: grid; place-items: center; width: 56%; aspect-ratio: 1; margin-bottom: 10px; border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, .28); font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; color: rgba(255, 255, 255, .35);
}
.pcard--leer .pcard__name { font-size: 1.15rem; }
.pcard--leer .pcard__role { color: var(--muted-on-dark); font-weight: 650; } /* „Kader folgt“: Rot auf #1c1c21 läge knapp unter 4,5:1 */
@media (hover: hover) { .pcard--leer:hover .pcard__inner { transform: none !important; } }
.kader-grid--leer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 900px) { .kader-grid--leer { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .kader-grid--leer { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pcard--leer .pcard__face { padding: 10px 6px 10px; }
  .pcard--leer .pcard__name { font-size: clamp(.8rem, 3.6vw, .92rem); letter-spacing: 0; hyphens: manual; overflow-wrap: anywhere; } /* „Annahme/Außen“ bricht nach dem Schrägstrich um (volleyball.js) */
  .pcard--leer .pcard__role { font-size: .68rem; }
  .pcard--leer .pcard__pos { top: 12px; right: 8px; }
  .pcard__ghost { font-size: 1.8rem; }
}
/* Team-Übersicht im Panel neben dem Feld (wie auf /mixed/, dort aus features.css) */
.tm-kader .team-chip { grid-column: 1 / -1; padding: 0; }
.tm-kader .team-chip button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 0; border-radius: 12px; background: none; color: #fff; font: inherit; cursor: pointer; text-align: left; }
.tm-kader .team-chip button::after { content: "→"; color: var(--red-bright); font-weight: 700; }
.tm-kader .team-chip button:hover { background: var(--ink-3); }
.tm-kader .team-chip__name { flex: none; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; white-space: nowrap; }
.tm-kader .team-chip small { min-width: 0; margin-left: auto; color: var(--muted-on-dark); font-size: .82rem; text-align: right; }
@media (max-width: 400px) { /* Name + Pfeil oben, Kader/Platz/Punkte darunter */
  .tm-kader .team-chip button { flex-wrap: wrap; row-gap: 2px; }
  .tm-kader .team-chip small { order: 1; flex-basis: 100%; margin-left: 0; text-align: left; }
}

/* ---------- Team-Info unten: Training, Ansprechpartner, Rückblicke ---------- */
.tm-view--unten { margin-top: clamp(16px, 2.4vw, 28px); }
.tm-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .tm-info { grid-template-columns: 1fr; } }
.tm-info__item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.tm-info__item > svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--red); }
.tm-info__item > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tm-info__label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tm-info__value { font-weight: 600; color: var(--ink); }
.tm-info__value a { font-weight: 600; white-space: nowrap; }
.tm-info__link { margin-top: 2px; font-size: .88rem; font-weight: 600; }
.tm-reviews { margin-top: clamp(16px, 2.4vw, 28px); }
.tm-reviews--leer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 20px; border-radius: var(--radius); border: 2px dashed var(--border); background: transparent; }
.tm-reviews--leer p { display: flex; gap: 12px; align-items: flex-start; margin: 0; color: var(--muted); max-width: 70ch; font-size: .95rem; }
.tm-reviews--leer p svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--red); }
.tm-reviews--leer strong { color: var(--ink); }

/* ---------- Kalender-Abo (Aufklapp-Menü) ---------- */
.tm-cal { position: relative; }
.tm-cal > summary { list-style: none; }
.tm-cal > summary::-webkit-details-marker { display: none; }
.tm-cal > summary::after { content: "▾"; font-size: .8em; margin-left: 2px; }
.tm-cal[open] > summary::after { content: "▴"; }
.tm-cal__list {
  position: absolute; z-index: 40; left: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 32px)); padding: 8px;
  display: grid; gap: 2px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.tm-cal__list a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.tm-cal__list a:hover { background: var(--surface); color: var(--red); }
.tm-cal__list small { padding: 6px 12px 4px; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.tm-cal.is-flip .tm-cal__list { left: auto; right: 0; } /* teams.js: rechts ausrichten, wenn links kein Platz ist */

/* ---------- Training ---------- */
.tm-soon {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 24px; align-items: center;
  padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  border-left: 6px solid var(--red);
}
.tm-soon__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--ink); color: #fff; }
.tm-soon__icon svg { width: 32px; height: 32px; }
.tm-soon h3 { margin: 0 0 6px; text-transform: uppercase; }
.tm-soon p { margin: 0; color: var(--muted); max-width: 60ch; }
.tm-soon__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@media (max-width: 900px) { .tm-soon { grid-template-columns: auto minmax(0, 1fr); } .tm-soon__actions { grid-column: 1 / -1; justify-content: flex-start; } }
@media (max-width: 480px) { .tm-soon { grid-template-columns: 1fr; } .tm-soon__icon { width: 52px; height: 52px; } }
.tm-hall { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(16px, 2.4vw, 28px); align-items: stretch; }
.tm-hall__text { display: flex; flex-direction: column; gap: 4px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.tm-hall__text h3 { text-transform: uppercase; }
.tm-hall__text .form__hint { margin-top: 14px; }
.tm-hall .map-consent { min-height: 280px; }
@media (max-width: 820px) { .tm-hall { grid-template-columns: 1fr; } }
.tm-why { margin-top: clamp(16px, 2.4vw, 28px); }

/* ---------- Kontakt (dunkel) ---------- */
.tm-join { position: relative; isolation: isolate; overflow: hidden; }
.tm-join::before { content: ""; position: absolute; z-index: -1; top: -30%; right: -12%; width: 30%; height: 160%; background: var(--akzent-flaeche, linear-gradient(180deg, #d90a14 0%, #a8070f 100%)); box-shadow: inset 6px 0 0 var(--akzent-kante, transparent); transform: skewX(-14deg); opacity: .9; }
.tm-join .text-red { color: var(--red-bright); }
.tm-contacts .card { background: var(--ink-2); border-color: var(--ink-3); color: #fff; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.tm-contacts .person__name { color: #fff; }
.tm-contacts .person__role, .tm-contacts .card p { color: var(--muted-on-dark); }
.tm-contacts .contact-list a, .tm-contacts .card a { color: #fff; }
.tm-contacts .contact-list a:hover, .tm-contacts .card a:hover { color: var(--red-bright); }
.tm-contacts .contact-list svg { color: var(--red-bright); }
@media (max-width: 760px) { .tm-join::before { width: 50%; right: -38%; opacity: .7; } }

/* ---------- Druck ---------- */
@media print {
  .tm-tabbar, .tm-kader, .tm-plan__tools, .tm-cal, .tm-cd { display: none !important; }
  .js .tm-view:not(.is-active) { display: block; }
  .tm-month:not([open]) > *:not(summary) { display: block; }
  .tm-hero, .tm-join { background: #fff !important; color: #000 !important; }
  .tm-hero::before, .tm-hero::after, .tm-join::before { display: none; }
  .tm-hero h1, .tm-weekend, .tm-weekend__title, .tm-match, .tm-match__title { color: #000 !important; background: #fff !important; box-shadow: none !important; }
}
