:root {
  --bg: #f3f3f5;
  --paper: #ffffff;
  --ink: #17171a;
  --muted: #5b5b63;
  --line: #dedee4;
  --accent: #d50018;
  --accent-dark: #b30014;
  --sidebar-bg: #121214;
  --sidebar-line: #2b2b31;
  --sidebar-ink: #ededf2;
  --sidebar-muted: #adadb7;
  --rang-head-dark: #2a2b34;
  --rang-head-olive: #5f5637;
  --rang-head-blue: #2d7f9d;
  --rang-head-green: #6f8a43;
  --rang-head-black: #17181d;
  --rang-col-manager: #d6cea9;
  --rang-col-points: #d8ceab;
  --rang-col-blue: #bfe0ec;
  --rang-col-green: #d0ddb0;
  --rang-col-orange: #efc086;
  --rang-col-lilac: #d6d0e4;
  --rang-col-row: #eceef4;
  --rang-col-black: #111319;
  --rang-col-black-alt: #171a22;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.login-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(165deg, #0f1117 0%, #181b23 55%, #11131a 100%);
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 10px;
  background: #20232d;
  border: 1px solid #3a3f4d;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.login-card h1 {
  margin: 0;
  color: #f1f3f8;
}

.login-card p {
  margin: 0 0 2px;
  color: #cfd5e3;
}

.login-card input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #4a5163;
  border-radius: 9px;
  background: #151821;
  color: #f7f8fc;
}

.login-card button {
  margin-top: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(213, 0, 24, 0.8);
  border-radius: 9px;
  background: #d50018;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.login-card button:hover {
  background: #bb0015;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
}

.sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-ink);
  padding: 18px 16px;
}

.sidebar h1 { margin: 0; font-size: 1.5rem; }
.sub { margin: 4px 0 16px; color: var(--sidebar-muted); font-size: 0.9rem; }

.nav { display: grid; gap: 8px; }
.nav-group {
  display: grid;
  gap: 6px;
}
.nav-btn {
  text-align: left;
  border: 1px solid var(--sidebar-line);
  background: transparent;
  color: #d8d8e2;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.nav-btn:hover {
  background: rgba(213, 0, 24, 0.12);
  border-color: rgba(213, 0, 24, 0.55);
}
.nav-btn.active {
  background: rgba(213, 0, 24, 0.22);
  border-color: rgba(213, 0, 24, 0.8);
  color: #ffffff;
}
.nav-btn-test {
  border-style: dashed;
  border-color: rgba(214, 184, 96, 0.6);
  color: #f2d788;
}
.nav-btn-test:hover {
  background: rgba(214, 184, 96, 0.12);
  border-color: rgba(214, 184, 96, 0.85);
}
.nav-btn-test.active {
  background: rgba(214, 184, 96, 0.2);
  border-color: rgba(214, 184, 96, 0.9);
  color: #fff6d8;
}
.subnav {
  display: none;
  gap: 6px;
  padding-left: 12px;
}
.subnav.open {
  display: grid;
}
.subnav-btn {
  text-align: left;
  border: 1px solid #34343d;
  background: rgba(255, 255, 255, 0.03);
  color: #c4c4ce;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.subnav-btn:hover {
  background: rgba(213, 0, 24, 0.12);
  border-color: rgba(213, 0, 24, 0.6);
}
.subnav-btn.active {
  background: rgba(213, 0, 24, 0.2);
  border-color: rgba(213, 0, 24, 0.75);
  color: #ffffff;
}

.content { padding: 20px; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  border-bottom: 2px solid #ececf1;
  padding-bottom: 10px;
}
.topbar h2 { margin: 0 0 4px; }
.topbar p { margin: 0; color: var(--muted); }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-box {
  display: flex;
  align-items: center;
  gap: 6px;
}
.auth-box .status {
  margin: 0;
  font-size: 0.82rem;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.85rem;
  background: #fafafa;
}

.view { display: none; }
.view.active { display: block; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(18, 30, 44, 0.04);
}
.card span { color: var(--muted); font-size: 0.85rem; display: block; }
.card strong { font-size: 1.6rem; }

.start-excel-wrap {
  overflow-x: hidden;
  border: 1px solid #9ea3b0;
  border-radius: 8px;
  background: #989ba4;
}
.start-excel-board {
  min-width: 0;
  width: 100%;
  color: #0f1218;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}
.se-top {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  background: #3e4046;
  border-bottom: 2px solid #43a06d;
}
.se-logo {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d70018;
  color: #fff;
  font-size: 2.9rem;
  font-weight: 900;
}
.se-logo-right {
  font-size: 1.7rem;
}
.se-top h3 {
  margin: 0;
  text-align: center;
  color: #a99f5a;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.se-top-center {
  display: grid;
  gap: 4px;
  padding: 4px 8px;
}
.se-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.se-action-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.25);
  color: #f2f3f7;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 700;
}
.se-action-btn:hover {
  background: rgba(0, 0, 0, 0.4);
}
.se-action-btn-muted {
  background: rgba(255, 255, 255, 0.15);
}
.se-row {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
}
.se-cell {
  border-right: 1px solid #8a8f9f;
  border-bottom: 1px solid #8a8f9f;
  padding: 4px 5px;
  background: #a7a8ad;
  text-align: center;
}
.se-cell strong {
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}
.se-name-row .se-cell span {
  font-size: 0.72em;
  font-weight: 700;
}
.se-group-row .se-cell {
  background: #c9c9cc;
  border-bottom: 2px solid #111;
  border-right: 2px solid #111;
  font-weight: 900;
  font-size: 1.25rem;
}
.se-group-row .se-fail-head {
  background: #21232a;
  color: #0a0a0a;
}
.se-name-row .se-cell {
  font-size: 0.88rem;
  font-weight: 700;
}
.se-nick-row .se-cell {
  font-size: 0.73rem;
  font-weight: 700;
  padding-top: 2px;
  padding-bottom: 3px;
}
.se-photo-row .se-cell {
  padding-top: 6px;
  padding-bottom: 6px;
}
.se-photo {
  width: 84px;
  height: 84px;
  margin: 0 auto 6px;
  background: #1e232b center/cover no-repeat;
  color: #f5f7fd;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  font-weight: 900;
}
.se-photo-tobias { background-image: url("/images/tobias.jpg"); }
.se-photo-arne { background-image: url("/images/arne.jpg"); }
.se-photo-martin { background-image: url("/images/martin.jpg"); }
.se-photo-wichtel { background-image: url("/images/wichtel.jpg"); }
.se-photo-timo { background-image: url("/images/timo.jpg"); }
.se-photo-konto { background-image: url("/images/konto.jpg"); }
.se-photo-mb1 { background-image: url("/images/michael-brinsa.jpg"); }
.se-photo-mb2 { background-image: url("/images/martin-brinsa.jpg"); }
.se-photo-lutz { background-image: url("/images/lutz-knemeyer.jpg"); }
.se-fail-photo {
  background: #2f3440;
  width: 62px;
  height: 62px;
}
.se-metric {
  font-size: 0.74rem;
  font-weight: 700;
}
.se-out {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff;
  color: #d00018;
  font-weight: 800;
}
.se-section-row .se-cell {
  background: #ccc7a8;
  font-weight: 900;
  font-size: 0.86rem;
}
.se-list-row .se-cell,
.se-record-row .se-cell {
  min-height: 108px;
  line-height: 1.34;
  font-size: 0.78rem;
  font-weight: 700;
}
.se-guv-row .se-cell {
  background: #1aa3c0;
  color: #06131a;
  font-weight: 900;
  font-size: 0.82rem;
}
.se-editable {
  outline: none;
}
.se-editable:focus {
  box-shadow: inset 0 0 0 2px rgba(213, 0, 24, 0.45);
  background: #eef2fb;
}
.se-fail-cell {
  background: #24262c;
  color: #0b0b0f;
}
.se-fail-cell .se-out {
  color: #db0018;
}

.panel, .view > .table-wrap, .view > .panel-head {
  margin-top: 12px;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(18, 30, 44, 0.04);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}
.dashboard-matchday {
  width: 180px;
}

.dashboard-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.form-row.compact {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  margin-bottom: 0;
}
.kicker-test-controls {
  grid-template-columns: minmax(160px, 180px) minmax(120px, 140px) minmax(200px, 240px);
  justify-content: start;
}
.import-panel {
  display: grid;
  gap: 10px;
}
.import-controls {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid #d7dbe4;
  border-radius: 10px;
  background: #f8f9fc;
}
.import-status {
  margin: 2px 0 0;
}
.import-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.import-meta-card {
  border: 1px solid #d7dbe4;
  border-radius: 10px;
  background: #fbfcff;
  padding: 10px;
}
.import-meta-card h4 {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 800;
}
.import-meta-card .status {
  margin: 0;
}
.import-meta-card-wide {
  grid-column: 1 / -1;
}
.import-log {
  white-space: pre-wrap;
  max-height: 180px;
  overflow: auto;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.3;
}
.import-table-wrap {
  margin-top: 10px;
}

input, select, button {
  font: inherit;
}
input, select {
  width: 100%;
  border: 1px solid #cfcfd8;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}
input[type="number"] {
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
button {
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
button:hover {
  background: var(--accent-dark);
}

.table-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  box-shadow: 0 1px 2px rgba(18, 30, 44, 0.03);
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 0.84rem;
  color: #3f3f49;
  background: #f3f3f6;
  border-top: 2px solid #d50018;
}
#view-sheet td[contenteditable="true"] {
  background: #fffbe6;
  outline: 1px dashed #d50018;
  outline-offset: -2px;
}
#view-sheet td[contenteditable="true"]:focus {
  background: #fff6c5;
}
.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.neg {
  color: #c40015;
  font-weight: 700;
}

/* Spieltagsauswertung -> Statistik (Top 11): kompakte, sauber ausgerichtete Tabelle */
#spieltagStatsPanel .table-wrap {
  overflow-x: auto;
}
#spieltagStatsPanel table {
  table-layout: fixed;
  width: 100%;
  min-width: 860px;
}
#spieltagStatsPanel th,
#spieltagStatsPanel td {
  padding: 8px 10px;
  font-size: 0.92rem;
}
#spieltagStatsPanel th:nth-child(1),
#spieltagStatsPanel td:nth-child(1) {
  width: 200px;
}
#spieltagStatsPanel th:nth-child(2),
#spieltagStatsPanel td:nth-child(2) {
  width: 70px;
}
#spieltagStatsPanel th:nth-child(3),
#spieltagStatsPanel td:nth-child(3),
#spieltagStatsPanel th:nth-child(4),
#spieltagStatsPanel td:nth-child(4),
#spieltagStatsPanel th:nth-child(5),
#spieltagStatsPanel td:nth-child(5) {
  width: 56px;
}
#spieltagStatsPanel th:nth-child(6),
#spieltagStatsPanel td:nth-child(6) {
  width: 130px;
}
#spieltagStatsPanel th:nth-child(7),
#spieltagStatsPanel td:nth-child(7) {
  width: 110px;
}
#spieltagStatsPanel th:nth-child(8),
#spieltagStatsPanel td:nth-child(8) {
  width: 96px;
}
#spieltagStatsPanel td:nth-child(n + 3),
#spieltagStatsPanel th:nth-child(n + 3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
#spieltagStatsPanel td:nth-child(1) {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rangliste-report {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.bl-stats-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 12px;
}
.bl-stats-grid .rang-card:last-child {
  grid-column: 1 / -1;
}
#blTable td:nth-child(1),
#blTable td:nth-child(3),
#blTable td:nth-child(4),
#blTable td:nth-child(5),
#blTable td:nth-child(6),
#blTable td:nth-child(7),
#blTable td:nth-child(8),
#blTable td:nth-child(9),
#blScorersTable td:nth-child(1),
#blScorersTable td:nth-child(4),
#blScorersTable td:nth-child(5),
#blAssistsTable td:nth-child(1),
#blAssistsTable td:nth-child(4),
#blAssistsTable td:nth-child(5) {
  text-align: right;
}
#blTable th,
#blScorersTable th,
#blAssistsTable th {
  white-space: nowrap;
}

.bl-players-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
  gap: 14px;
}

.bl-stats-nav-wrap {
  margin: 8px 0 10px;
  border-bottom: 1px solid #d7d7d7;
  overflow-x: auto;
}

.bl-stats-nav {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: max-content;
}

.bl-stats-tab {
  border: 0;
  background: transparent;
  color: #6a6a6a;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 12px 9px;
  border-bottom: 3px solid transparent;
  border-radius: 0;
}

.bl-stats-tab:hover {
  background: #f3f3f3;
  color: #2d2d2d;
}

.bl-stats-tab.active {
  color: #1a1a1a;
  border-bottom-color: #2c2c2c;
  background: #f7f7f7;
}

.bl-players-stats-view {
  margin-top: 10px;
}

.bl-players-list-card,
.bl-player-detail-card {
  min-height: 640px;
  border: 1px solid #cfcfcf;
  background: #ffffff;
}

.bl-players-club-list {
  max-height: 73vh;
  overflow: auto;
  padding-right: 4px;
}

.bl-team-group {
  border: 1px solid #d2d2d2;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  margin-bottom: 10px;
}

.bl-team-group h5 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: #1c2230;
}

.bl-team-group h5 span {
  color: #6d7381;
  font-size: 0.8rem;
  font-weight: 600;
}

.bl-team-players {
  display: grid;
  gap: 8px;
}

.bl-player-category {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #f8f8f8;
  padding: 8px;
}

.bl-player-category h6 {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: #242424;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
}

.bl-player-category-items {
  display: grid;
  gap: 6px;
}

.bl-team-players.hidden {
  display: none;
}

.bl-team-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #c8c8c8;
  border-radius: 10px;
  background: #f1f1f1;
  padding: 8px 10px;
  margin: 0 0 8px;
  cursor: pointer;
}

.bl-team-toggle:hover {
  background: #e9e9e9;
}

.bl-team-toggle.active {
  border-color: #9f9f9f;
  background: #e3e3e3;
}

.bl-team-toggle h5 {
  margin: 0;
  font-size: 0.96rem;
  color: #111111;
  font-weight: 800;
}

.bl-team-caret {
  font-size: 1rem;
  font-weight: 800;
  color: #333333;
}

.bl-player-item {
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #cfcfcf;
  border-radius: 9px;
  background: #ffffff;
  color: #111111;
  padding: 8px 10px;
  font-weight: 700;
}

.bl-player-item:hover {
  background: #f2f2f2;
  border-color: #a9a9a9;
}

.bl-player-item.active {
  border-color: #6f6f6f;
  background: #e8e8e8;
  color: #000000;
}

.bl-player-name {
  font-size: 0.94rem;
  line-height: 1.25;
}

.bl-player-pos {
  font-size: 0.72rem;
  font-weight: 800;
  color: #1f1f1f;
  border: 1px solid #adadad;
  border-radius: 999px;
  padding: 2px 7px;
  background: #efefef;
}

.bl-player-detail-card .status {
  margin-top: 2px;
  margin-bottom: 10px;
  color: #4a556a;
}

#view-spieler h3,
#view-spieler h4 {
  color: #101010;
}

#view-spieler .table-wrap.compact thead th,
#view-spieler table thead th {
  background: #1f1f1f;
  color: #ffffff;
  border-top: 2px solid #3a3a3a;
  border-bottom: 1px solid #4a4a4a;
}

#view-spieler .table-wrap,
#view-spieler .rang-card {
  border-color: #cfcfcf;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

#view-spieler .bl-player-item:hover {
  background: #f2f2f2;
  border-color: #a9a9a9;
}

#view-spieler button.bl-player-item,
#view-spieler button.bl-team-toggle {
  background-image: none !important;
}

#view-spieler button.bl-player-item {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #cfcfcf !important;
}

#view-spieler button.bl-player-item:hover {
  background: #f2f2f2 !important;
  border-color: #a9a9a9 !important;
}

#view-spieler button.bl-player-item.active {
  background: #e8e8e8 !important;
  color: #000000 !important;
  border-color: #6f6f6f !important;
}

#view-spieler button.bl-team-toggle {
  background: #f1f1f1 !important;
  color: #111111 !important;
  border-color: #c8c8c8 !important;
}

#view-spieler button.bl-team-toggle:hover {
  background: #e9e9e9 !important;
}

#view-spieler button.bl-team-toggle.active {
  background: #e3e3e3 !important;
  border-color: #9f9f9f !important;
}

#view-spieler .bl-stats-tab,
#view-spieler .bl-stats-tab:hover,
#view-spieler .bl-stats-tab.active {
  background-image: none !important;
}

#view-spieler input:focus {
  outline: none;
  border-color: #767676;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
}

.bl-player-detail-card table th,
.bl-player-detail-card table td {
  padding: 9px 11px;
}

.bl-player-detail-card tbody tr:nth-child(2n) td {
  background: #f7f9fc;
}

.bl-player-stats-table-wrap {
  max-height: 360px;
  overflow: auto;
}

.bl-player-history-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bl-history-item {
  border: 1px solid #d3d3d3;
  border-radius: 10px;
  background: #f7f7f7;
  padding: 8px 10px;
  display: grid;
  gap: 6px;
  min-height: 112px;
}

.bl-history-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #111111;
}

.bl-history-main strong {
  font-size: 0.95rem;
}

.bl-history-main span {
  color: #3d3d3d;
  font-size: 0.88rem;
}

.bl-history-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bl-history-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  padding: 3px 8px;
  background: #ffffff;
  font-size: 0.82rem;
  color: #1e1e1e;
}

@media (max-width: 980px) {
  .bl-player-history-list {
    grid-template-columns: 1fr;
  }
}

.edt-pitch-wrap {
  margin-top: 10px;
  margin-bottom: 10px;
}

.edt-pitch {
  position: relative;
  border: 2px solid #d6dbe5;
  border-radius: 12px;
  padding: 14px 10px 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%),
    repeating-linear-gradient(0deg, #1f7a3b 0, #1f7a3b 42px, #238543 42px, #238543 84px);
  min-height: 420px;
  display: grid;
  gap: 14px;
}

.edt-pitch-manager {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(7, 18, 10, 0.72);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.edt-pitch-manager-face,
.edt-pitch-manager-fallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
}

.edt-pitch-manager-name {
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
}

.edt-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 86px;
}

.edt-card {
  min-width: 114px;
  max-width: 150px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  background: rgba(8, 22, 13, 0.72);
  color: #f4f7f2;
  text-align: center;
  padding: 8px 8px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.edt-card-photo {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  margin: 0 auto;
  display: inline-block;
}

.edt-card-photo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.7);
}

.edt-card-name {
  display: block;
  margin-top: 8px;
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rangliste-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 12px;
}
.rang-card {
  background: linear-gradient(180deg, #fafafc 0%, #f3f3f7 100%);
  border: 1px solid #d7d9e1;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(15, 18, 28, 0.05);
}
.rang-card h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #181a22;
}
.table-wrap.compact th,
.table-wrap.compact td {
  padding: 7px 10px;
  border-bottom-color: #c9ccd7;
}
.table-wrap.compact thead th {
  background: var(--rang-head-dark);
  color: #f4f4f7;
  border-top: 2px solid #12141a;
  border-bottom: 1px solid #3d414f;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.rang-day-table th,
.rang-pps-table th,
.rang-total-table th,
.rang-dist-table th,
.rang-day-table td,
.rang-pps-table td,
.rang-total-table td,
.rang-dist-table td {
  text-align: center;
}
.rang-day-table thead th:nth-child(2) {
  background: var(--rang-head-olive);
}
.rang-day-table thead th:nth-child(3),
.rang-day-table thead th:nth-child(4),
.rang-day-table thead th:nth-child(5) {
  background: var(--rang-head-blue);
}
.rang-total-table thead th:nth-child(n + 2) {
  background: var(--rang-head-green);
}
.rang-dist-table thead th:nth-child(n + 2) {
  background: var(--rang-head-black);
}
.table-wrap.compact thead th.points-col {
  background: var(--rang-head-olive);
  text-align: center;
}
.table-wrap.compact td.points-col {
  background: var(--rang-col-points);
  text-align: center;
  font-weight: 800;
  color: #12151d;
}
.rang-day-table td:nth-child(3),
.rang-day-table td:nth-child(4),
.rang-day-table td:nth-child(5) {
  background: var(--rang-col-blue);
}
.rang-total-table td:nth-child(n + 2) {
  background: var(--rang-col-green);
}
.jahreswertung-table-wrap table th,
#jahreswertungTable th,
#jahreswertungTable td {
  padding: 5px 6px;
  font-size: 0.78rem;
  line-height: 1.15;
  text-align: center;
  border-bottom: 1px solid #c3c8d4;
  white-space: nowrap;
}
#jahreswertungTable td:first-child,
#jahreswertungTable th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #d5cda9;
  text-align: left;
  min-width: 120px;
}
#jahreswertungTable thead tr:first-child th {
  background: #2a2d39;
  color: #f4f4f8;
  border-bottom: 1px solid #4d5368;
  border-top: 2px solid #12141b;
  font-weight: 800;
  font-size: 0.8rem;
}
#jahreswertungTable thead tr:nth-child(2) th {
  background: #3a4257;
  color: #f0f2f7;
  font-weight: 700;
  font-size: 0.75rem;
}
#jahreswertungTable td.points-cell {
  background: #e8f0f7;
}
#jahreswertungTable td.gain-cell {
  background: #f5e7cd;
}
#jahreswertungTable td.sum-cell {
  background: #d8f0d8;
  font-weight: 700;
}
#jahreswertungTable tr.meta-row td {
  background: #eef1f7;
  color: #2a3143;
  font-weight: 700;
}
#jahreswertungTable tr.meta-row td.label-row {
  background: #c9c19d;
}
#jahreswertungTable td.winner-cell {
  background: #d5ecff;
}
#jahreswertungTable td.factor-cell {
  background: #ece2cf;
}
#jahreswertungTable tbody tr:nth-child(odd):not(.meta-row) td:first-child {
  background: #d0c8a2;
}
#view-jahreswertung .panel-head h3 {
  font-size: 1.35rem;
}
#view-jahreswertung .table-wrap {
  max-height: 74vh;
}
.jahreswertung-extra-wrap {
  margin-top: 10px;
  max-height: none;
}
#jahreswertungExtraTable th,
#jahreswertungExtraTable td {
  padding: 5px 6px;
  font-size: 0.78rem;
  line-height: 1.15;
  text-align: center;
  border-bottom: 1px solid #c3c8d4;
  white-space: nowrap;
}
#jahreswertungExtraTable thead tr:first-child th {
  background: #2a2d39;
  color: #f4f4f8;
  border-bottom: 1px solid #4d5368;
  border-top: 2px solid #12141b;
  font-weight: 800;
  font-size: 0.8rem;
}
#jahreswertungExtraTable thead tr:nth-child(2) th {
  background: #3a4257;
  color: #f0f2f7;
  font-weight: 700;
  font-size: 0.75rem;
}
#jahreswertungExtraTable td.label-row {
  text-align: left;
  background: #d7d0b0;
  font-weight: 700;
  min-width: 170px;
}
#jahreswertungExtraTable tr.meta-row td {
  background: #eef1f7;
  font-weight: 700;
}
#jahreswertungExtraTable tr.sum-row td {
  background: #d8f0d8;
  font-weight: 800;
}
#ewigeTable th,
#ewigeTable td {
  padding: 8px 10px;
  font-size: 0.9rem;
  text-align: center;
}
#ewigeTable th {
  background: #242733;
  color: #f5f6fb;
  border-top: 2px solid #12151d;
}
#ewigeTable td:first-child,
#ewigeTable th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  text-align: left;
  background: #d3c9a1;
}
#ewigeTable td.num {
  font-variant-numeric: tabular-nums;
}
#ewigeTable td.xcell {
  color: #7b8294;
  font-weight: 700;
}
#ewigeTable tbody tr:nth-child(odd) td:not(:first-child) {
  background: #eef2f8;
}
#ewigeTable tbody tr:nth-child(even) td:not(:first-child) {
  background: #e4e9f2;
}
#wettenTable th,
#wettenTable td {
  padding: 8px 10px;
}
#wettenTable th {
  background: #242733;
  color: #f5f6fb;
  border-top: 2px solid #12151d;
}
#wettenTable td input {
  width: 100%;
  min-width: 140px;
  padding: 8px 9px;
}
#wettenTable td:nth-child(3) input,
#wettenTable td:nth-child(6) input {
  min-width: 260px;
}
.wetten-delete-btn {
  background: #c8142f;
  color: #fff;
  padding: 7px 10px;
  border-radius: 8px;
}
.wetten-delete-btn:hover {
  background: #a70f25;
}
.rang-dist-table td {
  background: var(--rang-col-black);
  color: #f6f7fb;
  border-bottom: 1px solid #ffffff !important;
}
.rang-dist-table {
  table-layout: fixed;
  width: 100%;
}
.rang-dist-table th:first-child,
.rang-dist-table td:first-child {
  width: 19%;
}
.rang-dist-table th:not(:first-child),
.rang-dist-table td:not(:first-child) {
  width: calc(81% / 7);
}
.rang-dist-table th,
.rang-dist-table td {
  border-right: 1px solid #ffffff !important;
}
.rang-dist-table th:last-child,
.rang-dist-table td:last-child {
  border-right: 0;
}
.rang-dist-table th:first-child,
.rang-dist-table td:first-child {
  border-right: 2px solid #ffffff !important;
}
.rang-dist-table th {
  border-bottom: 1px solid #ffffff !important;
}
.rang-dist-table tbody tr:nth-child(even) td {
  background: var(--rang-col-black-alt);
}
.rang-dist-table tbody td:first-child,
.rang-dist-table tbody tr:nth-child(even) td:first-child,
.rang-dist-table .sum-row td:first-child,
.rang-dist-table .pct-row td:first-child {
  background: var(--rang-col-manager);
  color: #15171f;
}
.rang-dist-table .sum-row td {
  background: #22262f;
  color: #ffffff;
}
.rang-dist-table .pct-row td {
  background: #0f1116;
  color: #f5f6fb;
}
.table-wrap.compact tfoot th,
.table-wrap.compact tfoot td {
  background: var(--rang-col-points);
  font-weight: 700;
}
.sum-row td {
  background: #e3d9bd;
  font-weight: 700;
}
.pct-row td {
  background: var(--rang-col-lilac);
}
.rang-day-table tbody tr:nth-child(even) td,
.rang-pps-table tbody tr:nth-child(even) td,
.rang-total-table tbody tr:nth-child(even) td {
  background-color: var(--rang-col-row);
}
.rang-pps-table td:nth-child(2),
.rang-pps-table td:nth-child(3),
.rang-pps-table tfoot th,
.rang-pps-table tfoot td {
  background: var(--rang-col-orange);
}
.rang-total-table td:nth-child(1),
.rang-day-table td:nth-child(1),
.rang-dist-table td:nth-child(1) {
  background: var(--rang-col-manager);
  color: #15171f;
}
.rang-day-table tbody tr:hover td,
.rang-pps-table tbody tr:hover td,
.rang-total-table tbody tr:hover td {
  background-color: var(--rang-col-row);
}

#spieltagTable th:first-child,
#spieltagTable td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 2;
}
#spieltagTable thead th:first-child {
  background: #f3f3f6;
  z-index: 3;
}

.center { text-align: center; }
.role-cell {
  font-size: 0.82rem;
  font-weight: 700;
  color: #5b5b65;
  text-transform: uppercase;
}
#spieltagTable input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.feed {
  max-height: 180px;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.transfer-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 10px;
}

.transfer-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #ffffff;
}

.transfer-card h4 {
  margin: 0 0 8px;
}

.transfer-line {
  display: grid;
  grid-template-columns: 56px 1fr 160px 30px;
  gap: 6px;
  margin-bottom: 6px;
}

.transfer-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7d7df;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #484852;
  background: #f6f6f9;
}
.manager-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 8px;
}
.manager-tab {
  border: 1px solid #d1d1da;
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f8 100%);
  color: #2a2a32;
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 600;
  cursor: pointer;
}
.manager-tab.active {
  background: linear-gradient(180deg, rgba(213, 0, 24, 0.2) 0%, rgba(213, 0, 24, 0.08) 100%);
  border-color: rgba(213, 0, 24, 0.7);
  color: #561018;
}
.lineup-board {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  column-gap: 12px;
  margin-top: 10px;
  align-items: start;
}
.lineup-pitch-panel {
  grid-column: 1 / -1;
}
.lineup-pitch {
  position: relative;
  border: 2px solid #d6dbe5;
  border-radius: 12px;
  padding: 18px 10px 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%),
    repeating-linear-gradient(0deg, #1f7a3b 0, #1f7a3b 42px, #238543 42px, #238543 84px);
  min-height: 430px;
  display: grid;
  gap: 10px;
}
.lineup-pitch-manager {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(7, 18, 10, 0.72);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 2;
}
.lineup-pitch-manager-face,
.lineup-pitch-manager-fallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
}
.lineup-pitch-manager-name {
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
}
.lineup-pitch-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  flex-wrap: wrap;
}
.lineup-pitch-card {
  min-width: 108px;
  max-width: 145px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  background: rgba(8, 22, 13, 0.72);
  color: #f4f7f2;
  text-align: center;
  padding: 8px 8px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}
.lineup-pitch-photo {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  margin: 0 auto;
  display: inline-block;
  background: rgba(248, 250, 252, 0.95);
}
.lineup-pitch-photo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin: 0 auto;
}
.lineup-pitch-note {
  position: absolute;
  top: -9px;
  right: -9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ffffff;
  color: #c1121f;
  border: 1px solid #d9d9df;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.lineup-pitch-edt {
  position: absolute;
  top: -9px;
  left: -9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f5c542;
  color: #111827;
  border: 1px solid #d9d9df;
  font-weight: 900;
  font-size: 0.9rem;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.lineup-pitch-photo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.7);
}
.lineup-pitch-name {
  display: block;
  margin-top: 8px;
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lineup-pitch-stats {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
}
.lineup-pitch-stats.empty {
  visibility: hidden;
}
.lineup-pitch-stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #ffffff;
  background: rgba(15, 23, 42, 0.42);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}
.lineup-pitch-stat.goal {
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.98) 0%, rgba(22, 163, 74, 0.98) 100%);
  color: #052e16;
  border-color: rgba(255, 255, 255, 0.8);
}
.lineup-pitch-stat.ga {
  background: linear-gradient(180deg, rgba(252, 165, 165, 0.98) 0%, rgba(220, 38, 38, 0.98) 100%);
  color: #450a0a;
  border-color: rgba(255, 255, 255, 0.8);
}
.lineup-pitch-stat.assist {
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.95) 0%, rgba(56, 189, 248, 0.95) 100%);
  color: #0f172a;
  border-color: rgba(255, 255, 255, 0.8);
}
.lineup-main {
  display: grid;
  gap: 6px;
}
.lineup-side {
  align-self: start;
  display: grid;
  gap: 8px;
}
.lineup-column {
  border: 1px solid #d7d7df;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f6f9 100%);
  padding: 10px;
}
.lineup-role-gk,
.lineup-role-def,
.lineup-role-off {
  padding: 8px;
}
.lineup-role-bench {
  padding: 8px;
}
.lineup-column h4 {
  margin: 0 0 6px;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  color: #2b2b35;
}
.bench-stack {
  display: grid;
  gap: 6px;
}
.bench-sub h5 {
  margin: 0 0 4px;
  font-size: 0.78rem;
  color: #5d5d68;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.lineup-dropzone {
  min-height: 72px;
  display: grid;
  gap: 5px;
  padding: 6px;
  border: 1px dashed #d6d6de;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

#dashboardLineupBoard.lineup-board {
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr) minmax(260px, 0.8fr);
  column-gap: 8px;
}

#dashboardLineupBoard .lineup-main {
  gap: 4px;
}

#dashboardLineupBoard .lineup-column {
  padding: 7px;
  border-radius: 10px;
}

#dashboardLineupBoard .lineup-column h4 {
  margin: 0 0 4px;
}

#dashboardLineupBoard .lineup-dropzone {
  min-height: 44px;
  padding: 4px;
  gap: 4px;
  border-radius: 8px;
}

#dashboardLineupBoard .bench-stack {
  gap: 4px;
}

#dashboardLineupBoard .bench-sub h5 {
  margin: 0 0 2px;
}

#dashboardLineupBoard .player-chip {
  padding: 3px 6px;
  border-radius: 8px;
  gap: 6px;
}

#dashboardLineupBoard .player-chip .chip-name {
  font-size: 0.88rem;
}

#dashboardLineupBoard .lineup-side,
#dashboardLineupBoard .lineup-side-fixtures {
  align-self: start;
}

.lineup-role-fixtures .fx-list {
  display: grid;
  gap: 4px;
}

.lineup-role-fixtures .fx-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 6px;
  align-items: center;
  padding: 4px 5px;
  border: 1px solid #d6dbe5;
  border-radius: 8px;
  background: #ffffff;
}

.lineup-role-fixtures .fx-teams {
  font-size: 0.82rem;
  color: #1e2530;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lineup-role-fixtures .fx-result {
  font-size: 0.8rem;
  font-weight: 800;
  color: #111722;
}

.lineup-role-fixtures .fx-kickoff {
  font-size: 0.72rem;
  color: #2e3442;
  font-weight: 600;
  white-space: nowrap;
}

.lineup-role-fixtures .fx-status {
  font-size: 0.7rem;
  color: #5a6272;
  white-space: nowrap;
}

.lineup-role-fixtures .fx-empty {
  font-size: 0.84rem;
  color: #5f6777;
  padding: 6px 2px;
}
.lineup-dropzone.over {
  border-color: var(--accent);
  background: rgba(213, 0, 24, 0.08);
}
.player-chip {
  border: 1px solid #d4d4dd;
  border-radius: 9px;
  background: #ffffff;
  padding: 5px 7px;
  cursor: grab;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 1px rgba(22, 35, 49, 0.05);
}
.player-chip:active {
  cursor: grabbing;
}
.player-chip .chip-pos {
  font-size: 0.68rem;
  color: #4e4e59;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid #d5d5de;
  border-radius: 999px;
  padding: 2px 7px;
  background: #f5f5f8;
}
.player-chip .chip-name {
  font-weight: 600;
  font-size: 0.93rem;
  color: #22222b;
}
.availability-wrap {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.availability-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  border: 1px solid transparent;
}
.availability-icon.injured {
  background: #fff4df;
  color: #b35d00;
  border-color: #f2c57b;
}
.availability-icon.suspended {
  background: #ffe6e8;
  color: #b3001c;
  border-color: #f19aa7;
}
.spieltag-board .lineup-dropzone {
  min-height: 0;
  padding: 0;
  gap: 4px;
  justify-items: start;
  align-content: start;
  border: 0;
  background: transparent;
  width: 100%;
  max-width: 100%;
}
.spieltag-board .lineup-column.over {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}
.spieltag-board {
  grid-template-columns: minmax(0, 2.6fr) minmax(190px, 0.9fr);
}
.spieltag-board .lineup-main {
  justify-items: start;
}
.spieltag-board .lineup-side {
  max-width: 280px;
}
.spieltag-board .lineup-column {
  padding: 6px;
  width: 100%;
  max-width: none;
  min-height: 84px;
}
.spieltag-board .lineup-column h4 {
  margin: 0 0 4px;
  font-size: 0.8rem;
}
.spieltag-player {
  border: 1px solid #d4d4dd;
  border-radius: 8px;
  background: #ffffff;
  padding: 6px 8px;
  display: grid;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 1px 2px rgba(20, 20, 28, 0.05);
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.spieltag-player:focus-within {
  border-color: rgba(213, 0, 24, 0.45);
  box-shadow: 0 0 0 2px rgba(213, 0, 24, 0.12);
  background: #fffdfd;
}
.spieltag-player-head {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 8px;
  align-items: center;
}
.spieltag-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #d2d2db;
  border-radius: 6px;
  background: #f6f6f9;
  color: #676772;
  font-size: 0.7rem;
  cursor: grab;
  user-select: none;
}
.spieltag-drag-handle:active {
  cursor: grabbing;
}
.spieltag-player-head .chip-pos {
  font-size: 0.64rem;
  padding: 2px 7px;
}
.spieltag-player-head input {
  padding: 4px 8px;
  height: 32px;
  width: min(360px, 62vw);
  font-size: 0.98rem;
}
.spieltag-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.spieltag-fields label {
  display: grid;
  grid-template-rows: auto auto;
  gap: 3px;
  align-items: start;
  justify-items: start;
  min-width: 66px;
}
.spieltag-fields label span {
  font-size: 0.62rem;
  color: #5f5f69;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.spieltag-fields label:first-child {
  min-width: 52px;
}
.spieltag-fields input[type="checkbox"] {
  width: 16px;
  height: 16px;
}
.spieltag-fields input:not([type="checkbox"]) {
  padding: 3px 6px;
  height: 30px;
  font-size: 0.9rem;
  width: 72px;
  text-align: center;
}
.spieltag-bench-player {
  border: 1px solid #d4d4dd;
  border-radius: 8px;
  background: #fff;
  padding: 5px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  cursor: grab;
}
.spieltag-bench-player:hover {
  border-color: #c8c8d2;
  background: #fdfdff;
}
.spieltag-bench-player .chip-pos {
  font-size: 0.62rem;
  padding: 1px 6px;
}
.spieltag-bench-player .chip-name {
  font-size: 0.9rem;
  color: #22222b;
  font-weight: 600;
}
.feed .item {
  padding: 8px 0;
  border-bottom: 1px dashed #e2e7ed;
}

.status {
  margin-top: 14px;
  color: var(--muted);
}

.spieltag-checklist-panel {
  margin-top: 8px;
}

.spieltag-checklist-dropdown summary {
  cursor: pointer;
  font-weight: 800;
  color: #2d3443;
  list-style: none;
}

.spieltag-checklist-dropdown summary::-webkit-details-marker {
  display: none;
}

.spieltag-checklist-dropdown summary::after {
  content: "▸";
  float: right;
  color: #636f84;
}

.spieltag-checklist-dropdown[open] summary::after {
  content: "▾";
}

.spieltag-checklist {
  margin: 6px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.spieltag-checklist li {
  font-size: 0.92rem;
  line-height: 1.35;
}

#view-kicker-test td:nth-child(6),
#view-kicker-test td:nth-child(7) {
  white-space: normal;
  min-width: 220px;
}

#view-noten .table-wrap.compact td input[type="number"] {
  width: 110px;
  text-align: right;
}

#view-noten .manager-tab {
  min-width: 110px;
}

.kicker-ui {
  --bg: #eceef2;
  --paper: #ffffff;
  --ink: #14161b;
  --muted: #5b606b;
  --line: #d4d8e1;
  --accent: #d60017;
  --accent-dark: #b40014;
  --sidebar-bg: #1a1d24;
  --sidebar-line: #323846;
  --sidebar-ink: #f3f5f9;
  --sidebar-muted: #aeb4c2;
  font-family: "Segoe UI", "Arial Narrow", Arial, sans-serif;
  letter-spacing: 0.01em;
}

.kicker-ui .shell {
  grid-template-columns: 260px 1fr;
}

.kicker-ui .sidebar {
  background: linear-gradient(180deg, #191c23 0%, #13161d 100%);
  border-right: 1px solid #2b3140;
  padding: 16px 14px;
}

.kicker-ui .sidebar h1 {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.kicker-ui .nav {
  gap: 6px;
}

.kicker-ui .nav-btn,
.kicker-ui .subnav-btn {
  border-radius: 6px;
  border-color: #313746;
  background: #181c25;
  color: #d7dce8;
  font-weight: 700;
  padding: 9px 10px;
}

.kicker-ui .nav-btn:hover,
.kicker-ui .subnav-btn:hover {
  background: #252a36;
  border-color: #495063;
}

.kicker-ui .nav-btn.active,
.kicker-ui .subnav-btn.active {
  background: linear-gradient(180deg, #df0018 0%, #c30016 100%);
  border-color: #ff4b60;
  color: #ffffff;
}

.kicker-ui .nav-btn-test,
.kicker-ui .nav-btn-test:hover,
.kicker-ui .nav-btn-test.active {
  border-style: solid;
}

.kicker-ui .content {
  padding: 16px;
  background: #f0f2f6;
}

.kicker-ui .topbar {
  background: #ffffff;
  border: 1px solid #d2d7e0;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.kicker-ui .topbar h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0;
}

.kicker-ui .topbar p {
  margin-top: 3px;
}

.kicker-ui .pill {
  border-radius: 5px;
  background: #f5f7fa;
  border-color: #ccd2dd;
  font-weight: 700;
}

.kicker-ui .auth-box button {
  border-radius: 5px;
  font-weight: 800;
}

.kicker-ui .panel,
.kicker-ui .view > .table-wrap {
  border-radius: 8px;
  border-color: #d0d5df;
  box-shadow: 0 1px 1px rgba(20, 24, 32, 0.06);
}

.kicker-ui .panel-head h3,
.kicker-ui h3 {
  font-weight: 800;
}

.kicker-ui .table-wrap {
  border-radius: 8px;
}
.kicker-ui .import-controls,
.kicker-ui .import-meta-card {
  border-color: #cad1de;
  background: #f6f8fb;
}

.import-shell {
  display: grid;
  gap: 12px;
}

.import-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.import-head-sub {
  margin: 0;
  font-size: 0.84rem;
}

.import-toolbar {
  border: 1px solid #cfd6e4;
  border-radius: 12px;
  background: linear-gradient(180deg, #f9fbff 0%, #f2f6fc 100%);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.import-toolbar-main {
  display: grid;
  grid-template-columns: 170px 150px 1fr;
  gap: 10px;
  align-items: end;
}

.import-field {
  display: grid;
  gap: 4px;
}

.import-field span {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5f6a7c;
}

.import-actions {
  display: grid;
  gap: 8px;
}

.import-actions-primary,
.import-actions-sync {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.import-actions button {
  border-radius: 7px;
  padding: 9px 12px;
  font-weight: 800;
}

#kickerTestLoadBtn {
  background: #1f3b63;
}

#kickerTestApplyBtn {
  background: #18753b;
}

#kickerSyncImportSeasonBtn,
#edtSyncSeasonBtn,
#kickerSyncPlayersBtn {
  background: #d60017;
}

#kickerTestResetBtn {
  background: #7b1118;
}

.import-source-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
}

.import-source-label {
  font-weight: 800;
  color: #4c5566;
}

.import-source-line a {
  color: #143a8f;
  text-decoration: none;
  border-bottom: 1px dotted #143a8f;
}

.import-source-line a:hover {
  color: #0b2969;
  border-bottom-color: #0b2969;
}

.import-status {
  margin: 2px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #d8deea;
  color: #202736;
  font-weight: 700;
}

.import-meta-grid-clean {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.import-meta-grid-clean .import-meta-card {
  border-radius: 12px;
  padding: 10px 12px;
}

.import-meta-grid-clean .import-meta-card h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2e3340;
}

.import-log {
  margin: 0;
  white-space: pre-wrap;
  max-height: 190px;
  overflow: auto;
  font-size: 0.8rem;
  line-height: 1.36;
  color: #e8edf7;
  background: #1c2332;
  border: 1px solid #303d58;
  border-radius: 8px;
  padding: 10px;
}

.import-dropdown {
  border: 1px solid #d4dbe7;
  border-radius: 10px;
  background: #ffffff;
  padding: 8px 10px;
}

.import-dropdown summary {
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 800;
  color: #2d3443;
  list-style: none;
}

.import-dropdown summary::-webkit-details-marker {
  display: none;
}

.import-dropdown summary::after {
  content: "▾";
  float: right;
  color: #636f84;
}

.import-dropdown:not([open]) summary::after {
  content: "▸";
}

.import-dropdown .import-log,
.import-dropdown .import-status {
  margin-top: 8px;
}

.import-table-wrap-clean {
  margin-top: 12px;
  border-radius: 12px;
}

.import-table-wrap-clean table {
  border-collapse: separate;
  border-spacing: 0;
}

.import-table-wrap-clean thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #222734 0%, #1a1f2c 100%);
  color: #eef3ff;
  font-size: 0.9rem;
  border-bottom: 1px solid #39425a;
}

.import-table-wrap-clean tbody td {
  background: #ffffff;
  border-bottom: 1px solid #e3e8f2;
  vertical-align: top;
}

.import-table-wrap-clean tbody tr:nth-child(2n) td {
  background: #f8fafd;
}

.import-table-wrap-clean tbody td input {
  border-radius: 7px;
  min-height: 34px;
  font-size: 0.88rem;
}

.import-table-wrap-clean tbody td:nth-child(8) {
  min-width: 360px;
}

@media (max-width: 1180px) {
  .import-toolbar-main {
    grid-template-columns: 1fr 1fr;
  }
  .import-actions {
    grid-column: 1 / -1;
  }
  .import-actions-primary,
  .import-actions-sync {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .import-meta-grid-clean {
    grid-template-columns: 1fr;
  }
  .import-head {
    display: grid;
    gap: 2px;
  }
}
.kicker-ui .import-meta-card h4 {
  color: #1f2430;
}

.kicker-ui table {
  font-size: 0.96rem;
}

.kicker-ui th {
  background: #20242e;
  color: #f7f8fb;
  border-top: 2px solid #d60017;
  border-bottom: 1px solid #3d4454;
  font-weight: 800;
  font-size: 0.92rem;
}

.kicker-ui td {
  background: #ffffff;
}

.kicker-ui tbody tr:nth-child(even) td {
  background: #f7f9fc;
}

/* Keep dedicated Rangliste category table contrast inside kicker-ui pages. */
.kicker-ui .rang-dist-table td {
  background: var(--rang-col-black);
  color: #f6f7fb;
}
.kicker-ui .rang-dist-table tbody tr:nth-child(even) td {
  background: var(--rang-col-black-alt);
}
.kicker-ui .rang-dist-table tbody td:first-child,
.kicker-ui .rang-dist-table tbody tr:nth-child(even) td:first-child,
.kicker-ui .rang-dist-table .sum-row td:first-child,
.kicker-ui .rang-dist-table .pct-row td:first-child {
  background: var(--rang-col-manager);
  color: #15171f;
}
.kicker-ui .rang-dist-table .sum-row td {
  background: #22262f;
  color: #ffffff;
}
.kicker-ui .rang-dist-table .pct-row td {
  background: #0f1116;
  color: #f5f6fb;
}

.kicker-ui input,
.kicker-ui select {
  border-radius: 6px;
  border-color: #c7ceda;
  background: #ffffff;
}

.kicker-ui button {
  border-radius: 6px;
  background: linear-gradient(180deg, #dd0018 0%, #c10015 100%);
  font-weight: 800;
}

.kicker-ui button:hover {
  background: linear-gradient(180deg, #c90016 0%, #ac0012 100%);
}

.kicker-ui .manager-tab {
  border-radius: 999px;
  border-color: #bfc6d3;
  background: #f3f5f9;
  color: #2a2f3a;
  font-weight: 800;
}

.kicker-ui .manager-tab.active {
  border-color: #e55465;
  background: #fff0f3;
  color: #6d0b17;
}

.kicker-ui .lineup-column,
.kicker-ui .lineup-dropzone,
.kicker-ui .spieltag-player,
.kicker-ui .spieltag-bench-player {
  border-radius: 8px;
}

.kicker-ui .chip-pos {
  background: #e9edf4;
  border-color: #c4cad7;
  color: #394253;
  font-weight: 800;
}

.kicker-ui .login-gate {
  background: linear-gradient(165deg, #12151d 0%, #1b202a 100%);
}

.kicker-ui .login-card {
  border-radius: 10px;
  border-color: #3b4354;
  background: #222733;
}

.kicker-ui .login-card h1 {
  font-weight: 800;
}

.kicker-ui .login-card button {
  border-radius: 6px;
}

.kicker-ui .login-card input {
  background: #ffffff;
  color: #111318;
  border-color: #b8c0cf;
}

.kicker-ui .login-card input::placeholder {
  color: #5a6272;
  opacity: 1;
}

#view-start .start-excel-wrap {
  border-radius: 8px;
  border-color: #808796;
}

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 10; }
  .cards { grid-template-columns: 1fr 1fr; }
  .se-top h3 { font-size: 1.3rem; }
  .se-logo { height: 52px; font-size: 2rem; }
  .grid-two, .form-row, .form-row.compact, .transfer-board, .lineup-board { grid-template-columns: 1fr; }
  .bl-stats-grid { grid-template-columns: 1fr; }
  .bl-stats-grid .rang-card:last-child { grid-column: auto; }
  .bl-players-layout { grid-template-columns: 1fr; }
  .bl-players-list-card,
  .bl-player-detail-card {
    min-height: 0;
  }
  .bl-players-club-list {
    max-height: 44vh;
  }
  .edt-pitch {
    min-height: 360px;
  }
  .lineup-pitch {
    min-height: 360px;
  }
  .edt-card {
    min-width: 110px;
    max-width: 150px;
    padding: 8px 10px;
  }
  .import-meta-grid { grid-template-columns: 1fr; }
  .rangliste-grid { grid-template-columns: 1fr; }
  .spieltag-player-head input { width: min(280px, 72vw); }
  .spieltag-fields { gap: 4px; }
  .spieltag-fields input:not([type="checkbox"]) { width: 64px; }
  .kicker-ui .topbar {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}
