/* ===== h2h- = Head-to-Head (h2h.php, added 2026-08-23) =====
   Neue eigenstaendige Seite (kein halloffame.php-Reiter, siehe dortiges ?view=-Schema: das ist
   saisonbezogen, ein GM-vs-GM-Vergleich aggregiert dagegen ueber ALLE Saisons - passt strukturell
   nicht in die Tab-Logik). Struktur/Tokens 1:1 aus docs/design-system.md uebernommen (wie
   halloffame.css: .h2h-page/.h2h-content/.h2h-eyebrow/.h2h-title analog zu .hof-*). Team-Pills
   in der Spielliste nutzen bewusst die GETEILTE .trp-teampill/.epp-teampill-Klasse aus dyne.css
   (kleiner, sekundaerer Team-Verweis INNERHALB einer Zeile) statt einer eigenen Kopie - anders als
   halloffame.css's .hof-teampill (dort historisch separat gehalten). Die groessen Team-Chips im
   Kopf (aktuelles Team je GM) nutzen die geteilte .team-chip/.team-chip-badge-Klasse (eigene
   Identitaet einer Zeile/Seite), siehe design-system.md §1 fuer die Abgrenzung beider Familien.
   GM-Auswahl (2 Dropdowns + Tauschen-Button) sitzt in der Nav-Leiste (.h2h-navlocal,
   $page_local_html) statt als Block im Content - Standardmuster, siehe CLAUDE.md "Page-local nav
   controls". Die Dropdowns selbst nutzen die geteilte .season-select-Familie (dyne.css) direkt,
   keine eigene h2h-select-Kopie noetig. */

.h2h-page { max-width: 1360px; margin: 0 auto; background: #ffffff; }
.h2h-content { padding: 22px 24px 44px; box-sizing: border-box; }

.h2h-eyebrow { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #66707c !important; text-shadow: none !important; margin: 0 0 2px; }
.h2h-title { font-size: 22px; font-weight: 800; color: #1b2733 !important; text-shadow: none !important; margin: 0 0 6px; }
.h2h-intro { font-size: 12.5px; color: #66707c !important; text-shadow: none !important; margin: 0 0 20px; max-width: 620px; }

/* ---- Nav-local controls (GM-Namensfelder mit Vorschlagsliste) ---- */
.h2h-navlocal { display: flex; align-items: center; gap: 10px; min-width: 0; }
.h2h-namefield { max-width: 170px; }
.h2h-namefield::placeholder { color: rgba(255,255,255,.55); }
.h2h-vs { color: rgba(255,255,255,.55); font-size: 10.5px; font-weight: 800; letter-spacing: .05em; flex: 0 0 auto; }
.h2h-go-btn { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 14px; cursor: pointer; font-family: inherit; }
.h2h-go-btn:hover { border-color: rgba(255,255,255,.6); }
@media (max-width: 767px) {
	.h2h-navlocal { flex: 1 1 auto; }
	.h2h-namefield { max-width: 110px; }
}

/* ---- Summary Card ---- */
.h2h-summary { border: 1px solid #dde1e6; border-radius: 10px; padding: 22px 24px; margin-bottom: 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.h2h-side { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.h2h-avatar { width: 56px; height: 56px; border-radius: 50%; background: #f1eee8; border: 1px solid #e2e4e7; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: #8b95a1; flex-shrink: 0; }
.h2h-name { font-size: 14.5px; font-weight: 800; color: #1b2733 !important; text-shadow: none !important; text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2h-name:hover { text-decoration: underline; }
.h2h-noteam { font-size: 10.5px; color: #a9b0b8; font-style: italic; }

.h2h-score { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 140px; }
.h2h-score .nums { font-size: 34px; font-weight: 800; color: #1b2733; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
.h2h-score .lbl { font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: #a9b0b8; text-align: center; }
.h2h-bar { width: 150px; height: 7px; border-radius: 4px; overflow: hidden; display: flex; background: #eee; margin-top: 4px; }
.h2h-bar div { height: 100%; }

.h2h-breakdown { display: flex; justify-content: center; gap: 8px; margin: 0 0 20px; flex-wrap: wrap; }
.h2h-chip { font-size: 10.5px; font-weight: 600; color: #4a5a6b; background: #f4f6f8; border: 1px solid #dde1e6; border-radius: 6px; padding: 4px 10px; }
.h2h-chip b { color: #1b2733; }

/* ---- Toolbar (RS/PO-Umschalter, rein clientseitig - Zeilen sind bereits vollstaendig gerendert) ---- */
.h2h-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.h2h-seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 16px; background: #1a2733; }
.h2h-seg button { border: 0; background: transparent; color: rgba(255,255,255,.65); font-size: 11.5px; font-weight: 700; padding: 7px 14px; border-radius: 13px; cursor: pointer; font-family: inherit; }
.h2h-seg button.active { background: #2c3e50; color: #fff; }
.h2h-count { margin-left: auto; font-size: 11.5px; color: #66707c; white-space: nowrap; }

/* ---- Game List ---- */
.h2h-table { border: 1px solid #e2e4e7; border-radius: 8px; overflow: hidden; }
.h2h-row { display: grid; grid-template-columns: 70px 90px 1fr 90px; align-items: center; gap: 10px; padding: 10px 16px; background: #fff; border-bottom: 1px solid #eef0f2; font-size: 12.5px; }
.h2h-row:last-child { border-bottom: 0; }
.h2h-row:nth-child(even) { background: #fbfbfc; }
.h2h-row.h2h-row-hidden { display: none; }
.h2h-row .season { font-weight: 700; color: #4a5a6b; }
.h2h-row .date { color: #8b95a1; font-size: 11.5px; }
.h2h-matchup { display: flex; align-items: center; justify-content: center; gap: 10px; }
.h2h-matchup .side { display: flex; align-items: center; gap: 6px; min-width: 96px; }
.h2h-matchup .side.left { justify-content: flex-end; }
.h2h-matchup .side.right { justify-content: flex-start; }
.h2h-matchup .pts { font-weight: 700; color: #a9b0b8; font-variant-numeric: tabular-nums; }
.h2h-matchup .side.win .pts { color: #1b2733; font-weight: 800; }
.h2h-matchup .dash { color: #ccd3da; font-weight: 700; }
.h2h-type { text-align: right; }
.h2h-type-pill { display: inline-block; font-size: 9.5px; font-weight: 700; padding: 3px 8px; border-radius: 8px; letter-spacing: .02em; }
.h2h-type-pill.rs { background: #eef1f4; color: #5c6b7a; }
.h2h-type-pill.po { background: #fdf1dc; color: #a86a3d; }

.h2h-empty { padding: 40px 20px; text-align: center; color: #a9b0b8; font-style: italic; font-size: 12.5px; }
.h2h-same-warn { padding: 16px 20px; text-align: center; color: #a86a3d; background: #fdf1dc; border: 1px solid #f3ddb0; border-radius: 8px; font-size: 12.5px; font-weight: 600; margin-bottom: 22px; }

@media (max-width: 720px) {
	.h2h-summary { grid-template-columns: 1fr; }
	.h2h-score { order: -1; margin: 0 auto 10px; }
	.h2h-row { grid-template-columns: 1fr; row-gap: 4px; }
	.h2h-row .date::before { content: "\00b7 "; }
	.h2h-type { text-align: left; }
}
