/* ── Fonts ─────────────────────────────────────── */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #000;
  color: #ccc;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
}

/* ── Splashscreen ──────────────────────────────── */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #000;
  opacity: 1;
  transition: opacity 0.5s ease;
}
#splash-title {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: 0.02em;
}
#splash-subtitle {
  color: #999;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
#splash-page-title {
  color: #63C1FF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
#splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ── Nav ───────────────────────────────────────── */
#topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #111;
  border-bottom: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

/* Scoped to the burger-menu header shape (only present once .nav-page-title
   exists), so this doesn't affect auslosung/index.html's shorter, unmigrated
   3-child header, which never gets a .nav-page-title. */
#topnav:has(.nav-page-title) {
  align-items: flex-start;
  padding-bottom: 26px;
}

.nav-toggle {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ccc;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.nav-toggle-bar:nth-child(1) { top: 0; }
.nav-toggle-bar:nth-child(2) { top: 8px; }
.nav-toggle-bar:nth-child(3) { top: 16px; }

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { top: 8px; transform: rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { top: 8px; transform: rotate(-45deg); }

.nav-brand {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

/* Scoped to the burger-menu header shape (brand follows the toggle button)
   so this doesn't affect auslosung/index.html's unmigrated 3-child header,
   which also uses .nav-brand but keeps it in normal flex flow. */
.nav-toggle + .nav-brand {
  position: absolute;
  left: 48px;
  transform: translateX(0);
  transition: left 0.2s ease, transform 0.2s ease;
}
body.nav-open .nav-toggle + .nav-brand {
  left: 50%;
  transform: translateX(-50%);
}

.nav-page-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  text-align: center;
  color: #888;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.15s ease;
}
body.nav-open .nav-page-title {
  opacity: 0;
  pointer-events: none;
}

.nav-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 99;
  display: flex;
  flex-direction: column;
  background: #111;
  border-bottom: 1px solid #222;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}
/* Same [hidden]-vs-author-display cascade fix as .auslosung-actions[hidden]
   below: without this, display:flex above wins over the UA [hidden] rule,
   leaving the closed panel's links keyboard-focusable and tabbable. */
.nav-panel[hidden] {
  display: none;
}
.nav-panel.is-open {
  max-height: 420px;
  opacity: 1;
}

.nav-panel-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: #eee;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #1c1c1c;
}
.nav-panel-link:last-of-type { border-bottom: none; }
.nav-panel-link:active { background: #1a1a1a; }

/* ── Sections ──────────────────────────────────── */
main { max-width: 680px; margin: 0 auto; padding: 0 16px 60px; }

section {
  padding: 24px 0;
  border-bottom: 1px solid #1a1a1a;
  scroll-margin-top: 52px;
}

section:last-child { border-bottom: none; }

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.section-bar {
  width: 3px;
  height: 18px;
  background: #63C1FF;
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

/* Top-level section headers (Tabelle / Pokal / CL) */
section > .section-header {
  background: rgba(99, 193, 255, 0.18);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0 -12px 16px;
}

section > .section-header .section-bar {
  height: 22px;
}

section > .section-header .section-title {
  font-size: 20px;
  letter-spacing: 0.2px;
}

.section-description {
  color: #aaa;
  font-size: 13px;
  margin: 6px 0 12px;
  line-height: 1.5;
}

/* ── Gap Controls ──────────────────────────────── */
.gap-controls {
  margin-bottom: 12px;
  font-size: 14px;
  color: #888;
}

.gap-toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.gap-toggle-label input { cursor: pointer; }

.gap-size-wrapper {
  margin-top: 8px;
  padding-left: 20px;
}

.gap-size-wrapper select {
  background: #1e1e1e;
  border: 1px solid #333;
  color: #ccc;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: inherit;
  margin-left: 6px;
}

.hidden { display: none; }

/* ── WhatsApp Admin Export ─────────────────────── */
.wa-copy-btn {
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}
.wa-copy-btn:hover { background: rgba(255,255,255,0.16); }

.wa-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e1e1e;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 200;
}
.wa-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.wa-action-row {
  text-align: right;
  margin-top: 6px;
}

.league-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.league-header .league-name { margin-bottom: 0; }

.cl-leg-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Table ─────────────────────────────────────── */
.league-block { margin-bottom: 20px; }

.league-name {
  color: #63C1FF;
  font-size: 14px;
  font-style: italic;
  margin-bottom: 8px;
}

.league-table {
  background: #1e1e1e;
  border-radius: 6px;
  overflow: hidden;
}

.table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  border-bottom: 1px solid #2a2a2a;
  transition: background 0.2s;
}

.table-row:last-child { border-bottom: none; }

.table-row:hover:not(.gap-row) {
  background: #2a2a2a;
}

.table-row.gap-row {
  height: 16px;
  padding: 0 10px;
}

.gap-label {
  color: #444;
  font-size: 10px;
  text-align: right;
  flex: 1;
}

.row-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.pos-bar {
  width: 3px;
  height: 14px;
  border-radius: 1px;
  flex-shrink: 0;
}

.pos-bar.top    { background: #138F16; }
.pos-bar.middle { background: #545454; }
.pos-bar.bottom { background: #D75452; }

.row-pos  { color: #888; font-size: 14px; min-width: 18px; }

.form-arrow       { font-size: 12px; width: 14px; text-align: center; flex-shrink: 0; line-height: 1; }
.form-up-strong   { color: #138F16; font-size: 15px; }
.form-up          { color: #138F16; font-size: 15px; }
.form-neutral     { color: #B8A000; font-size: 9px; }
.form-down        { color: #D75452; }
.form-down-strong { color: #D75452; font-size: 15px; }

.row-name {
  color: #ccc;
  font-size: 12px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-badge { font-size: 12px; margin-left: 1px; }

.row-right {
  display: flex;
  align-items: center;
  gap: 9px;
}

.row-mv-full  { color: #888; font-size: 12px; min-width: 70px; text-align: right; }
.row-mv-short { display: none; color: #888; font-size: 12px; min-width: 28px; text-align: right; }

@media (max-width: 480px) {
  .row-mv-full  { display: none; }
  .row-mv-short { display: inline; }
  .row-name     { font-size: 13px; }
}

.row-pts   { color: #fff; font-size: 14px; font-weight: 700; }
.row-last  { color: #888; font-size: 12px; min-width: 32px; text-align: right; }
.row-gap-rel { color: #888; font-size: 12px; min-width: 28px; text-align: right; }
.row-gap-abs { color: #888; font-size: 12px; min-width: 36px; text-align: right; }

/* ── Placeholder ───────────────────────────────── */
.placeholder {
  background: #1e1e1e;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  color: #555;
  font-size: 14px;
  font-style: italic;
}

/* ── Loading / Error ───────────────────────────── */
.loading {
  color: #555;
  font-size: 14px;
  padding: 10px 0;
}

.error-msg {
  color: #D75452;
  font-size: 14px;
  padding: 10px 0;
}

/* ── Pokal ─────────────────────────────────────── */
.cup-round {
  margin-bottom: 24px;
}

.cup-match {
  background: #1e1e1e;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.cup-match--open {
  padding: 12px 10px;
}

.cup-match-header {
  padding: 3px 10px;
  color: #444;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #161616;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cup-match-open-label {
  color: #444;
  font-size: 14px;
  font-style: italic;
}

.cup-team {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-bottom: 1px solid #2a2a2a;
}

.cup-team:last-child { border-bottom: none; }

.cup-team-name {
  font-size: 14px;
  color: #ccc;
}

.cup-team--winner .cup-team-name { color: #fff; font-weight: 700; }
.cup-team--loser  .cup-team-name { color: #555; }

.cup-score {
  font-size: 14px;
  font-weight: 700;
  min-width: 20px;
  text-align: right;
}

.cup-score--winner {
  background: #138F16;
  color: #fff;
  padding: 1px 7px;
  border-radius: 3px;
}

.cup-score--loser   { color: #fff; padding: 1px 7px; }
.cup-score--draw    { color: #888; padding: 1px 7px; }
.cup-score--pending { color: #555; padding: 1px 7px; }

/* ── Champions League ──────────────────────────── */
.cl-group { margin-bottom: 28px; }

/* Gruppenphase Tabelle */
.cl-table {
  background: #1e1e1e;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
  font-size: 14px;
}

.cl-table-row {
  display: grid;
  grid-template-columns: 1fr 28px 24px 24px 24px 44px 36px 28px;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid #2a2a2a;
}

.cl-table-row:last-child { border-bottom: none; }

.cl-table-header { background: #161616; }
.cl-table-header span { color: #666; font-size: 11px; text-transform: uppercase; }

.cl-table-name { color: #ccc; }
.cl-table-qualified { color: #63C1FF; font-weight: 700; }
.cl-table-out { color: #555; }

.cl-table-cell { color: #888; text-align: center; font-size: 12px; }
.cl-table-pkt  { color: #fff; font-weight: 700; text-align: center; }

/* Gruppenphase Spielliste */
.cl-match-details { margin-top: 8px; }

.cl-match-list-label {
  color: #555;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cl-match-list-label::-webkit-details-marker { display: none; }

.cl-match-list-label::before {
  content: '›';
  font-size: 15px;
  color: #444;
  display: inline-block;
  transition: transform 0.15s;
}

.cl-match-details.is-open .cl-match-list-label::before {
  transform: rotate(90deg);
}

.cl-match-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s ease;
  overflow: hidden;
}

.cl-match-details.is-open .cl-match-content {
  grid-template-rows: 1fr;
}

.cl-match-content > * {
  min-height: 0;
}

.cl-match-list {
  background: #1e1e1e;
  border-radius: 6px;
  overflow: hidden;
}

.cl-match-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid #2a2a2a;
  font-size: 14px;
}

.cl-match-row:last-child { border-bottom: none; }

.cl-match-teams { color: #ccc; }

.cl-match-scores {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.cl-score-label { color: #444; font-size: 11px; }
.cl-score       { color: #fff; font-size: 12px; min-width: 24px; text-align: center; }

/* Gruppenphase Spielkarten */
.cl-group-matches { display: flex; flex-direction: column; gap: 12px; }
.cl-group-match   { display: flex; flex-direction: column; gap: 4px; }
.cl-group-match .cl-ko-match { margin-bottom: 0; }

.cl-leg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 10px;
  color: #555;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #161616;
  border-bottom: 1px solid #2a2a2a;
}

.cl-leg-spieltag { color: #3a3a3a; letter-spacing: 0; text-transform: none; }

.cl-ko-col-spieltag {
  display: block;
  font-size: 10px;
  color: #3a3a3a;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 1px;
}

/* KO-Phase */
.cl-ko { margin-top: 4px; }

.cl-ko-match--cols .cl-ko-col-header,
.cl-ko-match--cols .cl-ko-team {
  display: grid;
  grid-template-columns: 1fr 40px 40px 54px;
  align-items: center;
  padding-left: 10px;
  padding-right: 10px;
}

.cl-ko-col-header {
  padding-top: 4px;
  padding-bottom: 4px;
  color: #444;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #161616;
  border-bottom: 1px solid #2a2a2a;
}

.cl-ko-col-header span:not(:first-child) { text-align: center; }

.cl-ko-col-score {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 1px 6px;
}

.cl-ko-col-score--leg-win {
  background: #3a3a3a;
  color: #ccc;
  border-radius: 3px;
}

.cl-ko-match--cols .cl-finale-score--winner,
.cl-ko-match--cols .cl-finale-score--loser,
.cl-ko-match--cols .cl-finale-score--draw,
.cl-ko-match--cols .cl-finale-score--pending {
  justify-self: center;
}

.cl-ko-match {
  background: #1e1e1e;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.cl-ko-match--open {
  padding: 12px 10px;
}

.cl-open-label {
  color: #444;
  font-size: 14px;
  font-style: italic;
}

.cl-ko-team {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-bottom: 1px solid #2a2a2a;
}

.cl-ko-team:last-child { border-bottom: none; }

.cl-ko-name { font-size: 14px; color: #ccc; }

.cl-ko-team--winner .cl-ko-name { color: #fff; font-weight: 700; }
.cl-ko-team--loser  .cl-ko-name { color: #555; }

.cl-ko-scores {
  display: flex;
  gap: 6px;
  align-items: center;
}

.cl-ko-agg {
  padding: 3px 10px;
  color: #555;
  font-size: 11px;
  border-top: 1px solid #2a2a2a;
  background: #161616;
}

/* Finale Score */
.cl-finale-score--winner {
  background: #138F16;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 3px;
}

.cl-finale-score--draw    { color: #888; font-size: 14px; font-weight: 700; padding: 1px 7px; }
.cl-finale-score--loser   { color: #fff; font-size: 14px; font-weight: 700; padding: 1px 7px; }
.cl-finale-score--pending { color: #555; font-size: 14px; padding: 1px 7px; }

/* ── Winner Banner ─────────────────────────────── */
.winner-banner {
  background: linear-gradient(135deg, #1a1500, #252000);
  border: 1px solid #FFD700;
  border-radius: 6px;
  padding: 20px 16px;
  margin-top: 12px;
  text-align: center;
}

.winner-banner-trophy { font-size: 33px; margin-bottom: 6px; }

.winner-banner-label {
  color: #FFD700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.winner-banner-name {
  color: #FFD700;
  font-size: 23px;
  font-weight: 700;
}

/* ── Stats Page ──────────────────────────────────── */
.nav-back {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 10px;
  border: 1px solid #333;
  border-radius: 4px;
}
.nav-back:hover { color: #fff; border-color: #555; }

.stats-table {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 8px;
}
.stats-row {
  display: flex;
  align-items: center;
  padding: 5px 4px;
  gap: 6px;
}
.stats-header {
  font-size: 11px;
  color: #666;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 5px;
  margin-bottom: 3px;
}
.stats-rank {
  width: 18px;
  text-align: right;
  flex-shrink: 0;
  color: #666;
  font-size: 12px;
}
.stats-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.stats-cell {
  width: 36px;
  text-align: right;
  flex-shrink: 0;
  font-size: 13px;
  color: #ccc;
}
.stats-pts {
  font-weight: 700;
  color: #fff;
  width: 52px;
}
.stats-avg {
  color: #666;
  width: 44px;
}
.stats-season {
  width: 38px;
  color: #888;
}
.stats-cell--best {
  color: #FFD700;
  font-weight: 700;
}
.stats-row--current {
  background: rgba(99, 193, 255, 0.07);
  border-radius: 4px;
}
.stats-row--current .stats-season {
  color: #63c1ff;
}

/* ── Ewige Tabelle Detail ─────────────────────────── */
.ewige-compact { display: block; }
.ewige-wrap {
  display: none;
  overflow-x: auto;
  margin-top: 8px;
}
@media (min-width: 600px) {
  .ewige-compact { display: none; }
  .ewige-wrap { display: block; }
}
.ewige-table {
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 13px;
  width: 100%;
}
.ewige-th {
  font-weight: normal;
  font-size: 11px;
  color: #555;
  padding: 5px 6px;
  text-align: right;
  border-bottom: 1px solid #2a2a2a;
}
.ewige-td {
  padding: 5px 6px;
  text-align: right;
  color: #888;
  border-bottom: 1px solid #1a1a1a;
}
.ewige-col-rank {
  position: sticky;
  left: 0;
  background: #000;
  z-index: 2;
  width: 22px;
}
.ewige-col-name {
  position: sticky;
  left: 22px;
  background: #000;
  z-index: 2;
  min-width: 90px;
  text-align: left;
  padding-left: 8px;
  padding-right: 10px;
  border-right: 1px solid #2a2a2a;
}
.ewige-col-season {
  min-width: 44px;
}
.ewige-col-current {
  background: rgba(99, 193, 255, 0.07);
  color: #63c1ff;
}
.ewige-col-total {
  position: sticky;
  right: 44px;
  background: #000;
  z-index: 2;
  min-width: 56px;
  font-weight: 700;
  color: #fff;
  border-left: 1px solid #2a2a2a;
}
.ewige-col-avg {
  position: sticky;
  right: 0;
  background: #000;
  z-index: 2;
  min-width: 44px;
  color: #555;
}
.ewige-miss {
  color: #333;
}
.ewige-row {
  border-bottom: 1px solid #1a1a1a;
}

/* ── Stats Cards ──────────────────────────────────── */
.stat-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 4px;
}
.stat-card {
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #272727;
}
.stat-card-header {
  padding: 6px 9px 5px;
  border-bottom: 1px solid #242424;
  display: flex;
  align-items: center;
  gap: 5px;
}
.stat-card-icon { font-size: 11px; }
.stat-card-title {
  font-size: 10px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.stat-card-description {
  padding: 0 9px 6px;
  font-size: 11px;
  color: #666;
  line-height: 1.4;
}
.stat-card-body { padding: 3px 0; }
.stat-entry {
  display: flex;
  align-items: center;
  padding: 3px 9px;
  border-bottom: 1px solid #1e1e1e;
  gap: 4px;
}
.stat-entry:last-child { border-bottom: none; }
.stat-entry-pos {
  color: #444;
  font-size: 10px;
  width: 10px;
  flex-shrink: 0;
}
.stat-entry-player {
  color: #bbb;
  flex: 1;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-entry-manager {
  color: #555;
  font-size: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.stat-entry-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
  margin-left: auto;
}
.stat-entry-prices span {
  font-size: 11px;
  color: #777;
  white-space: nowrap;
}
.stat-entry-val {
  color: #63C1FF;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
}
.stat-entry-count {
  color: #fff;
  font-size: 12px;
  flex-shrink: 0;
}
.stat-card--loading .stat-entry-player {
  background: #2a2a2a;
  border-radius: 3px;
  color: transparent;
  width: 60%;
}
.stat-card--loading .stat-entry-val,
.stat-card--loading .stat-entry-count {
  background: #2a2a2a;
  border-radius: 3px;
  color: transparent;
  width: 28px;
}
.stat-card--error .stat-card-body {
  padding: 8px 9px;
  font-size: 11px;
  color: #555;
}

/* ── Rahmenterminplan ─────────────────────────────── */
.tp-table {
  width: 100%;
  border-collapse: collapse;
}
.tp-th {
  font-size: 10px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px 6px;
  text-align: left;
  border-bottom: 1px solid #2a2a2a;
}
.tp-th--spieltag {
  width: 52px;
}
.tp-row {
  background: #1a1a1a;
  transition: background 0.15s;
}
.tp-row:hover {
  background: #222;
}
.tp-row td {
  padding: 7px 8px;
  border-bottom: 1px solid #222;
  vertical-align: middle;
}
.tp-spieltag {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  width: 52px;
}
.tp-spieltag--ew {
  color: #888;
}
.tp-event {
  font-size: 13px;
  color: #ccc;
}
.tp-icon {
  margin-right: 5px;
}
.tp-row--pause {
  background: #111;
}
.tp-row--pause:hover {
  background: #111;
}
.tp-row--pause td {
  padding: 5px 8px;
  text-align: center;
  font-size: 10px;
  color: #444;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid #1e1e1e;
}

/* ── Auslosung ─────────────────────────────────── */
.auslosung-main { max-width: 960px; margin: 0 auto; padding: 24px 16px 60px; }

.auslosung-no-access {
  max-width: 960px;
  margin: 80px auto;
  text-align: center;
  color: #555;
  font-size: 17px;
}

.auslosung-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #222;
  margin-bottom: 20px;
}

.auslosung-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #666;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  padding: 10px 18px;
  cursor: pointer;
}

.auslosung-tab:hover { color: #aaa; }

.auslosung-tab--active {
  color: #63C1FF;
  border-bottom-color: #63C1FF;
}

.auslosung-section-label {
  color: #888;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.auslosung-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.auslosung-chip {
  background: #111;
  border: 1px solid #333;
  color: #666;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  padding: 10px 8px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
}

.auslosung-chip:hover:not(:disabled) { border-color: #555; color: #aaa; }

.auslosung-chip--selected {
  background: #1a1a1a;
  border-color: #63C1FF;
  color: #fff;
  font-weight: 700;
}

.auslosung-chip:disabled { opacity: 0.3; cursor: default; }

.auslosung-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.auslosung-start-btn {
  background: #63C1FF;
  color: #000;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.auslosung-start-btn:disabled { opacity: 0.3; cursor: default; }

.auslosung-reset-btn {
  background: none;
  color: #888;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid #333;
  cursor: pointer;
}

.auslosung-reset-btn:hover { color: #fff; border-color: #555; }

.auslosung-stage {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  min-height: 40px;
}

/* .auslosung-actions sets display:flex, which (same specificity, author
   origin) overrides the UA [hidden]{display:none} rule on elements like
   #cl-export-row that carry both the class and the hidden attribute.
   Restore standard hidden behaviour. */
.auslosung-actions[hidden] {
  display: none;
}

.slot-window {
  width: 220px;
  height: 40px;
  overflow: hidden;
  border: 1px solid #333;
  border-radius: 6px;
  background: #111;
}

.slot-strip {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
}

.slot-strip div {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  padding: 0 10px;
}

.auslosung-groups {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.auslosung-group-col {
  flex: 1;
  background: #1e1e1e;
  border-radius: 6px;
  overflow: hidden;
}

.auslosung-group-title {
  background: #161616;
  color: #FFD700;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 10px;
}

.auslosung-group-team {
  padding: 8px 10px;
  font-size: 14px;
  color: #fff;
  border-bottom: 1px solid #2a2a2a;
}

.auslosung-group-team:last-child { border-bottom: none; }

.auslosung-duels {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.auslosung-duel {
  background: #1e1e1e;
  border-radius: 6px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 15px;
}

.auslosung-duel-team { color: #fff; font-weight: 700; }
.auslosung-duel-team--pending { color: #555; font-weight: 400; }
.auslosung-duel-vs { color: #555; font-size: 13px; }

.auslosung-team-label,
.auslosung-duel-team {
  display: inline-block;
  transition: transform 0.3s ease-out, text-shadow 0.3s ease-out, color 0.3s ease-out;
}

.auslosung-celebrate--pulse {
  transform: scale(1.08);
  color: #FFD700;
  text-shadow: 0 0 14px rgba(255, 215, 0, 0.7);
}

.auslosung-spark {
  position: fixed;
  z-index: 300;
  font-size: 15px;
  pointer-events: none;
}

/* ── Spielplan ─────────────────────────────────── */
.spielplan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.spielplan-col {
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #272727;
}
.spielplan-col-header {
  padding: 6px 8px 5px;
  border-bottom: 1px solid #242424;
  font-size: 10px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.spielplan-col-matches { padding: 3px 0; }
.spielplan-match {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 6px;
  border-bottom: 1px solid #1e1e1e;
}
.spielplan-match:last-child { border-bottom: none; }
.spielplan-team-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}
.spielplan-match-mid {
  font-size: 11px;
  font-weight: 700;
  min-width: 30px;
  text-align: center;
  flex-shrink: 0;
}
.spielplan-match-mid--time {
  color: #888;
  font-weight: 400;
}
.spielplan-match-mid--score {
  color: #63C1FF;
}
.spielplan-match--skeleton .spielplan-team-icon {
  background: #2a2a2a;
  border-radius: 50%;
  display: inline-block;
}
.spielplan-match--skeleton .spielplan-match-mid { color: #333; }
.spielplan-error {
  grid-column: 1 / -1;
  padding: 12px;
  text-align: center;
  color: #555;
  font-size: 12px;
  font-style: italic;
}

/* ── Vereinswerte ──────────────────────────────── */
.vereinswerte-chart-card {
  background: #1a1a1a;
  border-radius: 8px;
  border: 1px solid #272727;
  padding: 12px 8px 8px;
  margin-bottom: 10px;
}
.vereinswerte-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 8px;
}
.vereinswerte-legend-item {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 10px;
  color: #c3c2b7;
  white-space: nowrap;
  cursor: pointer;
}
.vereinswerte-legend-item--hidden {
  color: #555;
  text-decoration: line-through;
}
.vereinswerte-canvas-wrap {
  position: relative;
  height: 300px;
}
.vereinswerte-table-wrap { margin-top: 4px; }
.vereinswerte-table-label {
  padding: 10px 0 4px;
  font-size: 11px;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  user-select: none;
}
.vereinswerte-table-chevron {
  font-size: 9px;
  display: inline-block;
  margin-right: 3px;
}
.vereinswerte-table { margin-top: 4px; }
.vereinswerte-table--collapsed { display: none; }
.vereinswerte-row {
  display: flex;
  align-items: center;
  padding: 5px 9px;
  border-bottom: 1px solid #1e1e1e;
  gap: 4px;
}
.vereinswerte-row:last-child { border-bottom: none; }
.vereinswerte-row--header {
  color: #555;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.vereinswerte-cell-name {
  flex: 1;
  color: #ccc;
  font-size: 12px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vereinswerte-cell {
  min-width: 52px;
  text-align: right;
  color: #888;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.vereinswerte-delta-up   { color: #138F16; }
.vereinswerte-delta-down { color: #D75452; }
.vereinswerte-swatch {
  display: inline-block;
  width: 14px;
  height: 0;
  border-top: 2px solid;
  margin-right: 6px;
  flex-shrink: 0;
}
.vereinswerte-swatch--dashed { border-top-style: dashed; }
