/* Spieler-, Trainer- und Schiedsrichter-Profile - moderne Optik (21.11.2026). Ueberschreibt spieler_profil_gemeinsam.css + Inline-Styles,
   alle bisherigen Daten/Klassen bleiben; Desktop und Mobil. */
html body .pp-wrap { max-width: 980px; }
html body .sp-profil { border-radius: 22px; box-shadow: 0 6px 28px rgba(60,20,20,.12); background: #fff; overflow: hidden; }

/* ---------- HERO ---------- */
html body .sp-kopf { position: relative; overflow: hidden; gap: 18px; padding: 26px 24px 62px; border-bottom: 0;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.14), transparent 55%), linear-gradient(135deg, #5a0e11 0%, #a70909 58%, #7b0c0f 100%); color: #fff; }
html body .sp-kopf::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px); pointer-events: none; }
html body .pm-wappen { position: absolute; right: -28px; top: 50%; transform: translateY(-50%) rotate(-8deg); height: 250px; width: auto; max-width: 300px; object-fit: contain; opacity: .14; filter: grayscale(.15) drop-shadow(0 6px 18px rgba(0,0,0,.35)); pointer-events: none; }
html body .sp-kopf-foto, html body .sp-kopf-foto-platz { position: relative; width: 108px; height: 108px; border: 4px solid rgba(255,255,255,.92); box-shadow: 0 8px 22px rgba(0,0,0,.4); background: #fff; flex: 0 0 108px; z-index: 1; }
html body .sp-kopf-foto { object-fit: cover; object-position: center top; }
html body .sp-kopf-foto-platz { color: #b98a8a; font-size: 1.4rem; }
html body .sp-kopf-info { position: relative; z-index: 1; }
html body .sp-kopf-name { font-size: 1.9rem; font-weight: 900; color: #fff; letter-spacing: -.01em; text-shadow: 0 2px 8px rgba(0,0,0,.25); line-height: 1.15; }
html body .sp-kopf-nummer { background: rgba(255,255,255,.2); color: #fff; font-size: .9rem; padding: 3px 11px; border: 1px solid rgba(255,255,255,.35); }
html body .sp-kopf-meta { color: rgba(255,255,255,.88); font-size: .92rem; margin-top: 5px; }
html body .sp-kopf-verein { margin-top: 10px; padding: 5px 14px 5px 6px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); color: #fff; font-size: .9rem; backdrop-filter: blur(4px); }
html body .sp-kopf-verein img { height: 26px; width: 26px; padding: 3px; background: #fff; border-radius: 50%; box-sizing: border-box; }
html body .sp-kopf-verein:hover { text-decoration: none; background: rgba(255,255,255,.26); }
html body .pm-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
html body .pm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 6px; border-radius: 999px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: .78rem; font-weight: 700; text-decoration: none; }
html body .pm-chip img { height: 20px; width: 20px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; box-sizing: border-box; }
html body .pm-chip.ohne-bild { padding-left: 11px; }
html body .sp-kopf-badge { background: rgba(255,255,255,.95); color: #1a7a3d; font-size: .72rem; margin-left: 4px; }
html body .sp-kopf-badge.alt { background: rgba(255,255,255,.35); color: #fff; }
html body .glocke-abo-btn { z-index: 1; }

/* ---------- KENNZAHLEN (ueberlappen den Hero) ---------- */
html body .sp-marktwert, html body .sp-bilanz { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 22px; margin: -38px 18px 0; padding: 14px 18px; background: #fff; border: 0; border-radius: 18px; box-shadow: 0 6px 22px rgba(60,20,20,.16); }
html body .sp-marktwert .wert { font-size: 1.55rem; font-weight: 900; color: #1a8a3d; }
html body .sp-bilanz span { text-align: center; font-size: .66rem; letter-spacing: .06em; color: #8a7d7d; }
html body .sp-bilanz b { display: block; font-size: 1.5rem; margin: 0 0 1px; color: #1a8a3d; line-height: 1.1; }
html body .sp-bilanz b.n { color: #c81414; } html body .sp-bilanz b.u { color: #777; }
html body .pm-kenn { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin: 10px 18px 0; }
html body .pm-kenn div { background: #faf6f6; border: 1px solid #f1e6e6; border-radius: 14px; padding: 9px 8px; text-align: center; }
html body .pm-kenn b { display: block; font-size: 1.02rem; color: #2b2020; font-weight: 800; }
html body .pm-kenn span { display: block; font-size: .62rem; color: #9a8a8a; text-transform: uppercase; letter-spacing: .05em; margin-top: 1px; }
html body .sp-ausfaelle { margin: 12px 18px 0; }

/* ---------- TABS ---------- */
html body .subtab-nav { position: sticky; top: 0; z-index: 5; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; padding: 14px 18px 10px; margin-top: 4px; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid #f1eaea; }
html body .subtab-nav::-webkit-scrollbar { display: none; }
html body .subtab-nav a { flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; background: #f4eeee; color: #5a4848; font-weight: 800; font-size: .84rem; white-space: nowrap; transition: background .15s; }
html body .subtab-nav a:hover { background: #ecdede; }
html body .subtab-nav a.aktiv { background: linear-gradient(180deg, #b50b0b, #8d0808); color: #fff; box-shadow: 0 3px 10px rgba(150,10,10,.3); }

/* ---------- INHALT ---------- */
html body .sp-tab-inhalt { padding: 20px 20px 24px; }
html body .spieler-abschnitt-titel { display: flex; align-items: center; gap: 8px; font-size: .78rem; margin: 26px 0 12px; padding: 0 0 0 11px; border: 0; border-left: 4px solid #a70909; line-height: 1.2; color: #8d0808; }
html body .spieler-abschnitt-titel i { opacity: .8; }
html body .spieler-daten-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
html body .spieler-daten-grid > div { background: #faf6f6; border: 1px solid #f2e8e8; border-radius: 14px; padding: 11px 14px; min-width: 0; }
html body .spieler-daten-grid .label { font-size: .62rem; font-weight: 700; color: #a09090; letter-spacing: .06em; }
html body .spieler-daten-grid .wert { font-size: .98rem; font-weight: 800; margin-top: 3px; overflow-wrap: anywhere; }
html body .spieler-daten-grid a, html body .sp-tab-inhalt a.sp-lnk { color: #a70909; text-decoration: none; }
html body .spieler-daten-grid a:hover { text-decoration: underline; }
html body .spieler-stat-grid { gap: 8px; }
html body .spieler-stat-box { background: linear-gradient(180deg, #fff, #faf3f3); border: 1px solid #f1e3e3; border-radius: 16px; padding: 14px 6px; box-shadow: 0 2px 8px rgba(60,20,20,.05); }
html body .spieler-stat-box strong { font-size: 1.55rem; font-weight: 900; }
html body .spieler-stat-box span { font-size: .64rem; letter-spacing: .05em; }
html body .spieler-stat-verein { font-size: .95rem; padding: 6px 12px 6px 6px; background: #faf6f6; border-radius: 999px; display: inline-flex; margin-bottom: 10px; }
html body .spieler-stat-verein img { width: 26px; height: 26px; }

/* Tabellen */
html body .sp-wb-wrap, html body .sp-trainer-liste { border-radius: 16px; }
html body .sp-wb-tabelle { border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid #f1e6e6; border-radius: 16px; overflow: hidden; }
html body .sp-wb-tabelle th { background: #fbf6f6; padding: 9px 10px; border: 0; color: #8d7a7a; }
html body .sp-wb-tabelle td { padding: 11px 10px; border-top: 1px solid #f4ecec; }
html body .sp-wb-tabelle tbody tr:nth-child(even) td { background: #fdfafa; }
html body .sp-wb-tabelle tfoot td { background: #fbf1f1; border-top: 2px solid #e6c3c3; }
html body .sp-wb-name img { width: 24px; height: 24px; }
html body .sx-tab { border-radius: 14px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
html body .sx-chips button { padding: 8px 14px; font-size: .82rem; }
html body .sx-gesamt { border-radius: 16px; }
html body .sp-transfer-karte { background: #faf6f6; border: 1px solid #f2e8e8; border-radius: 16px; padding: 14px 16px; }
html body .sp-transfer-verein img { width: 30px; height: 30px; }
html body .sp-saison-dropdown { padding: 6px 10px; border-radius: 10px; font-size: .84rem; }
html body .spieler-saison-titel { border-radius: 14px 14px 0 0; }

/* Zeilenlisten (Trainer/SR: Spiele, Stationen, Wettbewerbe, Forum) */
html body .sp-trainer-liste { margin: 0; display: flex; flex-direction: column; gap: 8px; }
html body .sp-trainer-liste .pp-zeile { background: #faf6f6; border: 1px solid #f2e8e8; border-radius: 16px; padding: 12px 14px; gap: 12px; transition: background .12s, transform .12s; }
html body .sp-trainer-liste a.pp-zeile:hover { background: #f6ecec; transform: translateY(-1px); }
html body .pp-zeile .t b { font-size: .95rem; }
html body .pp-zeile img.pm-logo { height: 30px; width: 30px; object-fit: contain; flex: 0 0 30px; }
html body .pp-zeile .r { font-size: 1rem; }
/* Spielzeile mit Wappen */
html body .pm-spiel { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; gap: 12px; align-items: center; }
html body .pm-spiel-datum { text-align: center; font-size: .66rem; color: #8a7a7a; line-height: 1.25; font-weight: 700; }
html body .pm-spiel-datum img { display: block; height: 22px; width: auto; max-width: 40px; margin: 0 auto 3px; object-fit: contain; }
html body .pm-spiel-teams { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
html body .pm-spiel-team { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; min-width: 0; }
html body .pm-spiel-team img { height: 22px; width: 22px; object-fit: contain; flex: 0 0 22px; }
html body .pm-spiel-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .pm-spiel-erg { font-size: 1.05rem; font-weight: 900; color: #fff; background: #993234; border-radius: 10px; padding: 6px 12px; min-width: 62px; text-align: center; }
html body .pm-spiel-erg.leer { background: #e9dede; color: #8a7a7a; }
html body .pm-spiel-liga { font-size: .68rem; color: #9a8a8a; font-weight: 600; }
html body .pm-spiel-erg.s { background: #1a8a3d; } html body .pm-spiel-erg.u { background: #8a8a8a; } html body .pm-spiel-erg.n { background: #c81414; }

/* ---------- MOBIL ---------- */
@media (max-width: 640px) {
  html body .pp-wrap { padding-left: 0; padding-right: 0; }
  html body .sp-profil { border-radius: 0 0 20px 20px; }
  html body .sp-kopf { gap: 14px; padding: 20px 16px 58px; align-items: flex-start; }
  html body .sp-kopf-foto, html body .sp-kopf-foto-platz { width: 84px; height: 84px; flex-basis: 84px; border-width: 3px; }
  html body .sp-kopf-name { font-size: 1.35rem; gap: 6px; }
  html body .sp-kopf-meta { font-size: .82rem; }
  html body .sp-kopf-verein { font-size: .82rem; margin-top: 8px; }
  html body .pm-wappen { height: 170px; right: -34px; }
  html body .sp-marktwert, html body .sp-bilanz { margin: -34px 12px 0; padding: 12px; gap: 6px 16px; }
  html body .sp-marktwert .wert { font-size: 1.3rem; }
  html body .sp-bilanz b { font-size: 1.25rem; }
  html body .pm-kenn { margin: 8px 12px 0; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  html body .pm-kenn div { padding: 8px 4px; border-radius: 12px; }
  html body .pm-kenn b { font-size: .88rem; }
  html body .pm-kenn span { font-size: .54rem; }
  html body .sp-ausfaelle { margin: 10px 12px 0; }
  html body .subtab-nav { padding: 12px 12px 8px; }
  html body .subtab-nav a { padding: 8px 14px; font-size: .8rem; }
  html body .sp-tab-inhalt { padding: 16px 12px 20px; }
  html body .spieler-daten-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  html body .spieler-daten-grid > div { padding: 9px 11px; }
  html body .spieler-daten-grid .wert { font-size: .9rem; }
  html body .spieler-stat-box { padding: 10px 3px; border-radius: 12px; }
  html body .spieler-stat-box strong { font-size: 1.15rem; }
  html body .spieler-stat-box span { font-size: .54rem; }
  html body .pm-spiel { grid-template-columns: 44px minmax(0,1fr) auto; gap: 9px; }
  html body .pm-spiel-team { font-size: .84rem; }
  html body .pm-spiel-erg { padding: 5px 9px; min-width: 52px; font-size: .95rem; }
  html body .sp-trainer-liste .pp-zeile { padding: 10px 11px; }
  html body .sp-wb-tabelle { min-width: 380px; }
}

html body .pm-form { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .62rem; font-weight: 800; color: #fff; margin: 0 1px; }
html body .pm-form.s { background: #17a34a; } html body .pm-form.u { background: #9a9a9a; } html body .pm-form.n { background: #dc3b2a; }
html body .pp-zeile .pm-logo { display: inline-block; }

/* ---------- Spieler "Spiele": Tabelle wird mobil zu Karten ---------- */
@media (max-width: 720px) {
  html body .sx-tab, html body .sx-tab tbody, html body .sx-tab tfoot, html body .sx-tab tr, html body .sx-tab td { display: block; }
  html body .sx-tab { border: 0; background: transparent; }
  html body .sx-tab thead { display: none; }
  html body .sp-wb-wrap:has(.sx-tab) { overflow: visible; }
  html body .sx-tab tbody tr { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 5px; padding: 10px; margin-bottom: 10px; background: #faf6f6; border: 1px solid #f2e8e8; border-radius: 16px; }
  html body .sx-tab tbody tr[hidden] { display: none; }
  html body .sx-tab td { padding: 0; border: 0; white-space: normal; background: none !important; text-align: left; }
  html body .sx-tab td:nth-child(1) { grid-column: 1 / 4; font-weight: 800; font-size: .84rem; color: #6a5252; }
  html body .sx-tab td:nth-child(2) { grid-column: 4 / 7; text-align: right; font-size: .72rem; color: #9a8a8a; }
  html body .sx-tab td:nth-child(3) { grid-column: 1 / 7; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 4px 0 6px; font-size: .9rem; }
  html body .sx-tab td:nth-child(n+4) { grid-column: span 2; background: #fff !important; border: 1px solid #f0e4e4; border-radius: 10px; padding: 4px 6px 5px; font-size: .84rem; text-align: center; font-weight: 800; }
  html body .sx-tab td:nth-child(n+4)::before { display: block; font-size: .56rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a49494; margin-bottom: 2px; }
  html body .sx-tab td:nth-child(4)::before { content: 'Einsatz'; } html body .sx-tab td:nth-child(5)::before { content: 'Minuten'; }
  html body .sx-tab td:nth-child(6)::before { content: 'Tore'; } html body .sx-tab td:nth-child(7)::before { content: 'Vorlagen'; }
  html body .sx-tab td:nth-child(8)::before { content: 'Karten'; } html body .sx-tab td:nth-child(9)::before { content: 'Note'; }
  html body .sx-tab tfoot tr { display: block; padding: 12px; background: #fbf1f1; border: 1px solid #ecd2d2; border-radius: 16px; }
  html body .sx-tab tfoot td { display: block; padding: 2px 0; border: 0; background: none; font-weight: 800; text-align: left !important; }
  html body .sx-tab tfoot td:empty { display: none; }
  html body .sx-team { font-size: .88rem; }
  html body .sx-erg { margin: 0 4px; font-size: 1rem; }
}
/* Statistik-/Karriere-Tabellen mobil: erste Spalte bleibt beim Seitwaertswischen stehen */
@media (max-width: 720px) {
  html body .sp-wb-tabelle th:first-child, html body .sp-wb-tabelle td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 6px 0 8px -6px rgba(60,20,20,.18); padding-left: 10px; }
  html body .sp-wb-tabelle th:first-child { background: #fbf6f6; }
  html body .sp-wb-tabelle tbody tr:nth-child(even) td:first-child { background: #fdfafa; }
  html body .sp-wb-tabelle tfoot td:first-child { background: #fbf1f1; }
  html body .sp-wb-tabelle { min-width: 460px; }
}
