/* ═══════════════════════════════════════════════════════════════════════════
   DFL · Kader: positionsfremd (D81), Abschnitte (D98), Ziehen mit Mitscrollen (D79)
   js/dfl_position_patch.js · js/dfl_kaderliste_patch.js – Farben der Marken fest (wie Rookie/Star), Rest über die Tokens
   von Kenney Tag/Nacht.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── D81: Abzug je Platz („84 −2“) ───────────────────────────────────────── */
.dfl-abz { display: inline-block; margin-left: 4px; padding: 0 4px; border-radius: 5px; font: 800 9.5px/1.45 var(--font-zahl, system-ui);
  font-style: normal; letter-spacing: 0; white-space: nowrap; vertical-align: 1px; box-shadow: 0 1px 0 rgb(0 0 0 / .2); }
.dfl-abz.gelernt { background: #ffd75e; color: #4a3300; }          /* gelernte 2./3. Position */
.dfl-abz.fremd { background: #c0392b; color: #fff; }               /* nicht gelernt */
.dfl-abz.torwart { background: #7b1a12; color: #fff; }             /* Torwart ↔ Feld */
.pitch-wrap .p-ovr .dfl-abz { margin-left: 3px; font-size: 9px; line-height: 1.3; vertical-align: 0; box-shadow: none; }
#squad-list .squad-ovr .dfl-abz, .sqo-row .squad-ovr .dfl-abz { font-size: 10px; }
/* Spieler-Blatt: „In der Elf als AV: 84 (−2) → 82 · 2. Position“ */
.dfl-abz-zeile { margin-top: 6px; font: 600 12.5px/1.35 var(--font-text, system-ui); color: var(--text2, #a4b0be); }
.dfl-abz-zeile b { color: var(--text, #f5f6fa); font-weight: 800; }
.dfl-abz-t { font-style: normal; font-weight: 800; }
.dfl-abz-t.gelernt { color: var(--k-mittel-fg, #b58a00); }
.dfl-abz-t.fremd, .dfl-abz-t.torwart { color: var(--k-schlecht-fg, #d0402f); }

/* ── D98: Startelf · Bank · Tribüne · Development ──────────────────────── */
.kl-kopf { display: flex; align-items: center; gap: 6px; }
.kl-kopf .kl-zahl { font: 800 10px/1.6 var(--font-zahl, system-ui); letter-spacing: 0; text-transform: none; padding: 0 7px; border-radius: 999px;
  background: var(--bg3, #262a3a); color: var(--text2, #a4b0be); }
.sqo-list.kl-geteilt .kl-kopf { margin: 12px 2px 0; }
.sqo-list.kl-geteilt .kl-kopf:first-child { margin-top: 2px; }
.kl-leer { font: 600 11px/1.3 var(--font-text, system-ui); color: var(--text3, #7c8798); padding: 2px 10px 4px; }

/* ── D79: Ziehen per Touch (lange drücken) ───────────────────────────────── */
#squad-list .squad-row[draggable="true"] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
body.kl-zieht, body.kl-zieht * { -webkit-user-select: none; user-select: none; }
.kl-geist { position: fixed !important; z-index: 9000; margin: 0 !important; pointer-events: none; opacity: .96; will-change: transform;
  box-shadow: 0 10px 24px rgb(0 0 0 / .3), 0 0 0 2px var(--k-blau, #4aa3df); transform-origin: 50% 100%; }
/* Ablageziel beim Ziehen (Maus und Touch) – im Kenney-Stil schlug der Kachelrand die alte goldene Markierung */
html.kenney #squad-list .squad-row.drag-over { border-color: var(--k-gruen, #78bc61); box-shadow: 0 0 0 3px var(--k-gruen, #78bc61) inset; }

/* ── Bank neben dem Feld (dfl_bank_patch.js, Nutzer 2026-10-14) ──
   Feld links in seiner Form (68:100), so hoch, dass Feld und Bank auf einen Bildschirm passen; die Bank daneben ist genau so hoch. */
.bk-reihe { position: relative; padding-right: 98px; }
.bk-reihe > #pitch { width: min(100%, calc((100dvh - 340px) * 0.68)); min-width: 200px; max-width: none; margin: 0 auto 0 0; }
#dfl-bank { position: absolute; top: 0; right: 0; bottom: 0; width: 92px; display: flex; flex-direction: column; background: var(--bg2);
  border: 2px solid var(--border); border-radius: 14px; overflow: hidden; }
.bk-kopf { flex: 0 0 auto; padding: 6px 4px 4px; text-align: center; font: 800 11px/1 var(--font-display, system-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }
.bk-liste { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 4px 6px; display: flex; flex-direction: column; gap: 4px; }
.bk-spieler { display: flex; flex-direction: column; gap: 2px; padding: 5px 5px; border-radius: 9px; background: var(--bg3);
  cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.bk-gesicht { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--bg4); border: 2px solid var(--accent); }
.bk-gesicht svg { width: 100%; height: 100%; display: block; }
.bk-name { font: 700 11px/1.15 var(--font-text, system-ui); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-zeile { display: flex; gap: 3px; align-items: baseline; font-size: 11px; color: var(--text2); white-space: nowrap; }
.bk-zeile b { color: var(--text); font-weight: 800; }
.bk-zeile small { font-size: 10px; color: var(--text3); }
.bk-pos { padding: 0 4px; border-radius: 5px; background: var(--bg4); font-weight: 800; font-size: 10px; }
.bk-aus { opacity: .45; }
.bk-gewaehlt { outline: 3px solid var(--accent); }
.bk-leer { font-size: 11px; color: var(--text3); text-align: center; padding: 8px 4px; }
#pitch .p-slot { touch-action: none; }
#pitch .p-slot.bk-passt .p-token { outline: 3px dashed #fff; outline-offset: 3px; border-radius: 50%; }
.bk-zieht, .bk-zieht * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.bk-quelle { opacity: .35; }
.bk-ziel { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.bk-geist { position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; display: flex; flex-direction: column; align-items: center; width: 64px;
  filter: drop-shadow(0 6px 10px rgb(0 0 0 / .3)); }
.bk-geist .bk-name { background: var(--bg2); border-radius: 6px; padding: 1px 4px; max-width: 90px; }
.bk-reihe #pitch .p-slot { transform: translate(-50%, -50%) scale(.72); }   /* kompaktes Feld: Marken kleiner, damit nichts überlappt */
