
:root { --n1:#17a34a; --n2:#65b32e; --n3:#d4a500; --n4:#ee8a17; --n5:#dc3b2a; --n0:#b8aaaa; }
.tsa-leiste { margin-top:12px; display:flex; flex-direction:column; gap:10px; }
.tsa-seg { display:flex; background:#f3eded; border-radius:16px; padding:4px; gap:4px; }
.tsa-item {
    flex:1 1 0; min-width:0; min-height:56px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
    padding:6px 4px; border:0; border-radius:12px; background:transparent; font:inherit; color:#6f6262 !important; cursor:pointer; text-decoration:none !important;
    transition:background .15s, color .15s, box-shadow .15s; touch-action:manipulation;
}
.tsa-item:hover { background:#fff; color:#993234 !important; box-shadow:0 1px 4px rgba(60,20,20,.12); }
.tsa-item:active { transform:scale(.97); }
.tsa-ico { height:24px; display:flex; align-items:center; justify-content:center; font-size:1.05rem; color:#993234; }
.tsa-lbl { font-size:.72rem; font-weight:800; line-height:1.1; white-space:nowrap; }
.tsa-sub { font-size:.62rem; font-weight:700; color:#a29494; line-height:1; }
.tsa-item-folgt { opacity:.75; }
.tsa-item-aktiv .tsa-ico { color:#17a34a; }
.tsa-item-bewertung { background:#fff; box-shadow:0 1px 4px rgba(60,20,20,.12); }
.tsa-ring { min-width:34px; height:24px; padding:0 7px; border-radius:999px; color:#fff; font-size:.82rem; font-weight:800; display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; }
.tsa-mvp {
    display:flex; align-items:center; gap:12px; width:100%; padding:10px 12px; border-radius:16px; border:1.5px solid #f3dd9a; cursor:pointer; text-align:left; font:inherit;
    background:linear-gradient(135deg,#fff9e6,#fff);
}
.tsa-mvp[hidden] { display:none; }
.tsa-mvp img, .tsa-mvp-foto-leer { width:46px; height:46px; border-radius:50%; object-fit:cover; flex-shrink:0; border:2px solid #fff; box-shadow:0 2px 8px rgba(60,20,20,.2); background:#f0e6e6; }
.tsa-mvp-foto-leer { display:flex; align-items:center; justify-content:center; color:#c9a5a5; }
.tsa-mvp-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.tsa-mvp-text small { font-size:.68rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; color:#b58900; }
.tsa-mvp-text small i { margin-right:3px; }
.tsa-mvp-text b { font-size:1rem; color:#2b2020; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tsa-mvp-note { min-width:44px; text-align:center; padding:6px 10px; border-radius:12px; color:#fff; font-weight:800; font-size:1rem; }
.tsa-mvp-note.n1{background:var(--n1)} .tsa-mvp-note.n2{background:var(--n2)} .tsa-mvp-note.n3{background:var(--n3)} .tsa-mvp-note.n4{background:var(--n4)} .tsa-mvp-note.n5{background:var(--n5)} .tsa-mvp-note.n0{background:var(--n0)}
.tsa-ring.n1{background:var(--n1)} .tsa-ring.n2{background:var(--n2)} .tsa-ring.n3{background:var(--n3)} .tsa-ring.n4{background:var(--n4)} .tsa-ring.n5{background:var(--n5)} .tsa-ring.n0{background:var(--n0)}
.nchip.n1,.sa-note.n1{background:var(--n1)} .nchip.n2,.sa-note.n2{background:var(--n2)}
.nchip.n3,.sa-note.n3{background:var(--n3)} .nchip.n4,.sa-note.n4{background:var(--n4)}
.nchip.n5,.sa-note.n5{background:var(--n5)} .nchip.n0,.sa-note.n0{background:var(--n0)}

.tsa-overlay { position:fixed; inset:0; z-index:10050; background:rgba(30,10,10,.55); backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px);
    display:flex; align-items:flex-end; justify-content:center; }
.tsa-overlay[hidden] { display:none; }
.tsa-sheet { background:#fff; width:100%; max-width:560px; max-height:92vh; max-height:92dvh; border-radius:22px 22px 0 0; display:flex; flex-direction:column;
    box-shadow:0 -10px 40px rgba(0,0,0,.25); animation:tsaHoch .28s ease; padding-bottom:env(safe-area-inset-bottom); }
@keyframes tsaHoch { from { transform:translateY(40px); opacity:0; } to { transform:none; opacity:1; } }
.tsa-griff { width:42px; height:4px; border-radius:4px; background:#ddd; margin:8px auto 0; flex-shrink:0; }
.tsa-kopf { display:flex; align-items:center; gap:8px; padding:8px 12px 10px; border-bottom:1px solid #f1eaea; flex-shrink:0; }
.tsa-tabs { display:flex; flex:1; background:#f3eded; border-radius:12px; padding:3px; gap:3px; }
.tsa-tab { flex:1; border:0; background:transparent; font:inherit; font-weight:700; font-size:.85rem; color:#6f6262; padding:9px 6px; border-radius:9px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.tsa-tab.aktiv { background:#fff; color:#993234; box-shadow:0 1px 4px rgba(60,20,20,.12); }
.tsa-zu { width:40px; height:40px; border-radius:50%; border:0; background:#f3eded; color:#6f6262; font-size:1rem; cursor:pointer; flex-shrink:0; }
.tsa-inhalt { overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; padding:14px 14px 22px; }
.tsa-laden, .tsa-info { text-align:center; color:#6f6262; padding:34px 10px; font-size:.9rem; line-height:1.5; }
.tsa-info i, .tsa-laden i { display:block; font-size:1.6rem; color:#d9c5c5; margin-bottom:10px; }
@media (min-width:700px) { .tsa-overlay { align-items:center; } .tsa-sheet { border-radius:22px; max-height:88vh; } .tsa-griff { display:none; } }
body.tsa-offen { overflow:hidden; }

/* ---- Aufstellung / Spielfeld ---- */
.sa-teams { display:flex; gap:8px; margin-bottom:12px; }
.sa-team-tab { flex:1; min-width:0; display:flex; align-items:center; justify-content:center; gap:8px; padding:10px; border-radius:12px; border:1.5px solid #ece4e4; background:#fff; font:inherit; font-weight:700; font-size:.82rem; color:#2b2020; cursor:pointer; }
.sa-team-tab img { width:22px; height:22px; object-fit:contain; flex-shrink:0; }
.sa-team-tab span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sa-team-tab.aktiv { border-color:#993234; background:#fdf3f3; color:#993234; }
.sa-team-pane { display:none; } .sa-team-pane.aktiv { display:block; }
.sa-formation { text-align:center; font-size:.78rem; font-weight:700; color:#6f6262; margin-bottom:8px; }
.sa-formation i { color:#993234; margin-right:4px; }
.sa-feld {
    position:relative; border-radius:16px; padding:16px 6px 14px; display:flex; flex-direction:column; justify-content:space-between; gap:12px; min-height:440px;
    background:
      linear-gradient(rgba(255,255,255,.18),rgba(255,255,255,.18)) center/100% 2px no-repeat,
      radial-gradient(circle at 50% 50%, transparent 0 34px, rgba(255,255,255,.28) 34px 36px, transparent 36px),
      repeating-linear-gradient(180deg,#2e8b4f 0 56px,#2a8049 56px 112px);
    box-shadow:inset 0 0 0 2px rgba(255,255,255,.35);
}
.sa-zeile { display:flex; justify-content:space-around; align-items:flex-start; gap:2px; }
.sa-spieler { display:flex; flex-direction:column; align-items:center; gap:4px; flex:1 1 0; min-width:0; text-decoration:none; color:#fff; }
.sa-av-wrap { position:relative; display:inline-block; }
.sa-av { position:relative; display:inline-flex; width:48px; height:48px; border-radius:50%; background:#fff; border:2px solid #fff; box-shadow:0 2px 8px rgba(0,0,0,.3); overflow:visible; align-items:center; justify-content:center; }
.sa-av img { width:100%; height:100%; border-radius:50%; object-fit:cover; }
.sa-av-leer { background:#993234; }
.sa-nr { position:absolute; left:-5px; bottom:-4px; min-width:20px; height:20px; padding:0 4px; border-radius:10px; background:#993234; color:#fff; font-size:.68rem; font-weight:800; display:flex; align-items:center; justify-content:center; border:1.5px solid #fff; }
.sa-av-leer .sa-nr { position:static; background:none; border:0; font-size:1rem; }
.sa-name { font-size:.72rem; font-weight:700; text-shadow:0 1px 3px rgba(0,0,0,.6); max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sa-marker { position:absolute; top:-6px; right:-16px; display:flex; flex-direction:column; gap:2px; align-items:flex-start; }
.sa-m { display:inline-flex; align-items:center; gap:2px; font-size:.62rem; font-weight:800; color:#fff; background:rgba(0,0,0,.55); border-radius:9px; padding:1px 5px; line-height:1.3; white-space:nowrap; }
.sa-m-tor { background:#17a34a; } .sa-m-vorl { background:#2563eb; }
.sa-m-rot,.sa-m-gelb { width:10px; height:14px; padding:0; border-radius:2px; } .sa-m-rot { background:#dc2626; } .sa-m-gelb { background:#facc15; }
.sa-m-raus { background:#dc2626; } .sa-m-rein { background:#17a34a; }
.sa-note { position:absolute; bottom:-6px; right:-12px; min-width:28px; text-align:center; padding:1px 5px; border-radius:9px; font-size:.68rem; font-weight:800; color:#fff; border:1.5px solid #fff; }
.sa-h { margin:18px 2px 8px; font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; color:#6f6262; }
.sa-h i { color:#993234; margin-right:5px; }
.sa-bank { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.sa-bank-zeile { display:flex; align-items:center; gap:12px; padding:8px 10px; background:#faf6f6; border-radius:12px; text-decoration:none; color:#2b2020; }
.sa-bank-zeile .sa-av { width:38px; height:38px; box-shadow:none; border-color:#eee; flex-shrink:0; }
.sa-bank-name { flex:1; min-width:0; font-weight:700; font-size:.88rem; }
.sa-bank-name small { display:block; font-weight:500; color:#8a7c7c; font-size:.72rem; }
.sa-bank-marker { display:flex; gap:4px; align-items:center; }
.sa-bank-marker .sa-note { position:static; }
.sa-trainer { margin-top:14px; font-size:.85rem; color:#6f6262; } .sa-trainer i { color:#993234; margin-right:5px; }
.sa-leer { text-align:center; color:#6f6262; padding:24px 8px; }

/* ---- Bewertung ---- */
.bw-kopf { display:flex; align-items:center; gap:14px; padding:14px; border-radius:16px; background:linear-gradient(180deg,#fdf3f3,#fff); border:1.5px solid #f1d9da; margin-bottom:12px; }
.bw-gross { width:64px; height:64px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.5rem; font-weight:800; flex-shrink:0; }
.bw-kopf-text b { display:block; font-size:.95rem; } .bw-kopf-text span { font-size:.78rem; color:#6f6262; line-height:1.4; }
.bw-hinweis { padding:11px 13px; border-radius:12px; background:#fff7e6; color:#8a5a00; font-size:.82rem; margin-bottom:12px; line-height:1.45; }
.bw-hinweis a { color:#993234; font-weight:700; }
.bw-liste { display:flex; flex-direction:column; gap:10px; }
.bw-spieler { border:1.5px solid #ece4e4; border-radius:14px; padding:10px 10px 12px; background:#fff; }
.bw-zeile { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.bw-zeile .sa-av { width:42px; height:42px; box-shadow:none; border-color:#eee; flex-shrink:0; }
.bw-info { flex:1; min-width:0; } .bw-info b { display:block; font-size:.92rem; line-height:1.2; }
.bw-info small { color:#8a7c7c; font-size:.72rem; }
.bw-info .bw-icons { margin-left:4px; } .bw-icons i { font-size:.7rem; margin-right:3px; }
.bw-avg { text-align:center; flex-shrink:0; } .bw-avg .nchip { display:inline-block; min-width:40px; padding:4px 8px; border-radius:10px; color:#fff; font-weight:800; font-size:.9rem; }
.bw-avg small { display:block; font-size:.62rem; color:#8a7c7c; margin-top:2px; }
.bw-noten { display:grid; grid-template-columns:repeat(6,1fr); gap:6px; }
.bw-note { height:46px; border-radius:12px; border:1.5px solid #e4dada; background:#fff; font:inherit; font-size:1.05rem; font-weight:800; color:#4a3a3a; cursor:pointer; transition:transform .1s, background .15s; touch-action:manipulation; }
.bw-note:active { transform:scale(.94); }
.bw-note[data-n="1"].aktiv { background:var(--n1); border-color:var(--n1); color:#fff; } .bw-note[data-n="2"].aktiv { background:var(--n2); border-color:var(--n2); color:#fff; }
.bw-note[data-n="3"].aktiv { background:var(--n3); border-color:var(--n3); color:#fff; } .bw-note[data-n="4"].aktiv { background:var(--n4); border-color:var(--n4); color:#fff; }
.bw-note[data-n="5"].aktiv { background:var(--n5); border-color:var(--n5); color:#fff; } .bw-note[data-n="6"].aktiv { background:#b3121a; border-color:#b3121a; color:#fff; }
.bw-note:disabled { opacity:.45; cursor:not-allowed; }
.bw-skala { display:flex; justify-content:space-between; font-size:.66rem; color:#a29494; margin-top:4px; padding:0 2px; }
.bw-admin { font-size:.74rem; color:#993234; background:#fdf3f3; border-radius:10px; padding:7px 10px; margin-bottom:12px; }
.bw-toast { position:sticky; bottom:0; text-align:center; font-size:.8rem; font-weight:700; color:#fff; background:#17a34a; border-radius:999px; padding:8px 14px; margin-top:12px; }
