/* ==========================================================================
   Magical Trident – Team-Hub
   System: 4px-Raster · Typo-Skala 1.25 · ein Akzent (Indigo) · neutrale Flächen
   ========================================================================== */
:root {
  /* Flächen (kühles Neutral, leicht zum Akzent getönt) */
  --bg: #0a0d13;
  --bg-2: #0d1118;
  --panel: #121722;
  --panel-2: #181e2b;
  --panel-3: #1e2533;
  --line: rgba(148, 163, 196, .10);
  --line-2: rgba(148, 163, 196, .18);
  /* Text */
  --text: #e9edf5;
  --text-2: #a3adc2;
  --muted: #6c7890;
  /* Ein Akzent */
  --accent: #8b9bff;
  --accent-2: #6f80f6;
  --accent-ink: #0b0f1d;
  --accent-soft: rgba(139, 155, 255, .13);
  --accent-line: rgba(139, 155, 255, .45);
  /* Bedeutung */
  --good: #4fd18b;
  --good-ink: #05230f;
  --good-soft: rgba(79, 209, 139, .14);
  --ok: #f2b44b;
  --ok-soft: rgba(242, 180, 75, .14);
  --bad: #f26a76;
  --bad-soft: rgba(242, 106, 118, .13);
  --blue: #5b9bff;
  --red: #ff6470;
  --gold: #e9bd62;
  /* Form */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --shadow: none;
  --shadow-pop: 0 12px 32px rgba(0, 0, 0, .45);
  /* Typo */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
  --fs-xs: 11px; --fs-sm: 12.5px; --fs: 14px; --fs-md: 16px; --fs-lg: 20px; --fs-xl: 26px; --fs-2xl: 34px; --fs-3xl: 44px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f5f8; --bg-2: #eceef3; --panel: #ffffff; --panel-2: #f5f6f9; --panel-3: #eceef4;
    --line: rgba(20, 30, 60, .09); --line-2: rgba(20, 30, 60, .16);
    --text: #121725; --text-2: #46506a; --muted: #6f7a91;
    --accent: #4b5bd8; --accent-2: #3d4cc4; --accent-ink: #ffffff; --accent-soft: rgba(75, 91, 216, .09); --accent-line: rgba(75, 91, 216, .45);
    --good: #138a4e; --good-ink: #ffffff; --good-soft: rgba(19, 138, 78, .11);
    --ok: #a86a00; --ok-soft: rgba(214, 150, 20, .14); --bad: #c9283c; --bad-soft: rgba(201, 40, 60, .09);
    --blue: #2563eb; --red: #dc2f3f; --gold: #a67812;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
    --shadow-pop: 0 12px 32px rgba(16, 24, 40, .16);
    color-scheme: light;
  }
}

/* ============================================================ Basis */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: var(--fs)/1.5 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; }
h1 { font-family: var(--display); font-size: var(--fs-2xl); line-height: 1.05; font-weight: 600; letter-spacing: -.005em; }
h2 { font-size: var(--fs-md); font-weight: 600; letter-spacing: -.01em; color: var(--text); }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.center { text-align: center; }
.pos { color: var(--good); }
.neg { color: var(--bad); }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); font-family: var(--display); font-size: var(--fs-lg); letter-spacing: .04em; }
.eyebrow { display: block; margin: 0 0 8px; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.eyebrow.accent { color: var(--accent); }

/* ============================================================ Layout */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--bg-2); border-right: 1px solid var(--line); padding: 20px 12px 12px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 24px; }
.logo { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(150deg, var(--accent) 0%, #4fd1c5 100%); color: #0b0f1d; display: grid; place-items: center; flex: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.logo svg { width: 22px; height: 22px; }
.brand-name { font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.05; letter-spacing: .005em; }
.brand-tag { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .03em; margin-top: 2px; }
.menu-btn { display: none; }
.nav { flex: 1; }
.nav-group { margin-bottom: 20px; }
.nav-title { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); padding: 0 10px 6px; font-weight: 600; }
.nav-link { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; color: var(--text-2); font-weight: 500; font-size: 13.5px; transition: background .12s, color .12s; }
.nav-link:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.nav-link.on { background: var(--panel-2); color: var(--text); }
.nav-link.on::before { content: ''; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav-link.on .ico { color: var(--accent); }
.ico { width: 17px; height: 17px; flex: none; }
.side-foot { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.who { width: 100%; }
.save-ind { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--muted); padding: 0 4px; }
.save-ind .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.save-ind .lbl::after { content: 'Alles gespeichert'; }
body.saving .save-ind .dot { background: var(--ok); animation: pulse 1s infinite; }
body.saving .save-ind .lbl::after { content: 'Speichert …'; }
@keyframes pulse { 50% { opacity: .35; } }

.main { padding: 32px 40px 72px; min-width: 0; }
.main.loading { opacity: .6; transition: opacity .2s .15s; }
.page { display: grid; gap: 24px; max-width: 1440px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; padding-bottom: 4px; }
.page-head .sub, .hero .sub { color: var(--text-2); margin: 8px 0 0; max-width: 68ch; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.section-title { display: flex; align-items: baseline; gap: 12px; margin-top: 8px; font-size: var(--fs-lg); font-family: var(--display); font-weight: 600; letter-spacing: 0; }
.section-title .hint { font-family: var(--font); font-size: var(--fs-sm); color: var(--muted); font-weight: 400; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 24px; align-items: start; }
.stack-col { display: grid; gap: 24px; }

/* ============================================================ Karten */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card > h2 { margin-bottom: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; min-height: 28px; }
.card.error { border-color: var(--bad); color: var(--bad); }
.card.highlight { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), transparent 70%), var(--panel); }
.notice { display: flex; gap: 8px; align-items: center; background: var(--ok-soft); color: var(--text); padding: 10px 14px; border-radius: var(--r); font-size: 13.5px; }
.notice::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; }
.notice.ok { background: var(--good-soft); } .notice.ok::before { background: var(--good); }
.count { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); background: var(--panel-2); border-radius: 99px; padding: 2px 8px; font-variant-numeric: tabular-nums; }

/* ============================================================ Bedienelemente */
input, select, textarea, button { font: inherit; color: inherit; }
input[type=text], input[type=number], input[type=date], input[type=password], input:not([type]), select, textarea {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 7px 10px; min-width: 0; outline: none; transition: border-color .12s, background .12s, box-shadow .12s;
}
input:hover, select:hover, textarea:hover { border-color: var(--line-2); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
::placeholder { color: var(--muted); opacity: .8; }
.bare { background: transparent !important; border-color: transparent !important; padding: 4px 6px !important; border-radius: var(--r-sm); width: 100%; box-shadow: none; }
.bare:hover { background: var(--panel-2) !important; }
.bare:focus { background: var(--panel-2) !important; border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-soft) !important; }
.num, input.num { text-align: right; font-variant-numeric: tabular-nums; }
input.num { width: 70px; }
textarea { resize: vertical; width: 100%; line-height: 1.55; }
textarea.auto { resize: none; overflow: hidden; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); border-radius: 8px; padding: 0 14px; font-weight: 500; font-size: 13.5px; cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: background .12s, border-color .12s, transform .05s; }
.btn:hover { background: var(--panel-2); border-color: var(--line-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.ghost:hover { background: var(--panel-2); }
.btn.sm { height: 28px; padding: 0 10px; font-size: var(--fs-sm); }
.btn.icon { width: 32px; padding: 0; font-size: 18px; line-height: 1; border-color: transparent; }
.btn.danger:hover, .danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); border-color: transparent; }
.btn:disabled { opacity: .5; cursor: wait; }
.tabs { display: inline-flex; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; width: max-content; max-width: 100%; overflow-x: auto; }
.tab { border: 0; background: transparent; height: 30px; padding: 0 14px; border-radius: 7px; cursor: pointer; color: var(--text-2); font-weight: 500; font-size: 13.5px; white-space: nowrap; transition: color .12s, background .12s; }
.tab:hover { color: var(--text); }
.tab.on { background: var(--panel-3); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.inline { display: inline-flex; align-items: center; gap: 8px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.title-input { font-family: var(--display); font-size: var(--fs-lg) !important; font-weight: 600; flex: 1; max-width: 520px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; font-size: var(--fs-xs); font-weight: 600; padding: 0 9px; border-radius: 99px; background: var(--panel-2); color: var(--text-2); border: 0; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.ok { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--ok-soft); color: var(--ok); }
button.badge { cursor: pointer; font-family: inherit; }
button.badge:hover { filter: brightness(1.15); }
/* Rollen: Kategorienfarben, gedämpft */
.role-tag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 2px 6px; border-radius: 4px; margin-left: 8px; background: var(--panel-2); color: var(--text-2); vertical-align: 2px; }
th > .role-tag, .coach .role-tag { margin-left: 0; }
.r-top { color: #f0a070; } .r-jungle { color: #78c98a; } .r-mid { color: #6fb1f2; } .r-adc { color: #ef7d95; } .r-support { color: #b9a2f5; } .r-sub { color: var(--gold); }
.you { font-size: 10px; font-weight: 700; color: var(--accent-ink); background: var(--accent); border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; letter-spacing: .04em; text-transform: uppercase; }
.scroll-x { overflow-x: auto; }

/* ============================================================ Tabellen */
table { border-collapse: collapse; }
table.data { width: 100%; }
table.data th { text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 0 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .1s; }
table.data tbody tr:hover { background: color-mix(in srgb, var(--panel-2) 60%, transparent); }
table.data td.num { padding-right: 10px; }
.links { white-space: nowrap; }
.links a { font-size: var(--fs-sm); font-weight: 500; }
input.w-riot { min-width: 190px; } input.w-rank { min-width: 120px; } input.w-tag { width: 90px; }
table.soloq select.bare { min-width: 120px; }

/* ============================================================ Kennzahlen (Signature: große, schmale Ziffern) */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--panel); padding: 16px 20px 18px; min-width: 0; }
.stat.big { background: linear-gradient(180deg, var(--accent-soft), transparent), var(--panel); }
.stat-l { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.stat-v { font-family: var(--display); font-size: var(--fs-2xl); font-weight: 600; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.big .stat-v { color: var(--accent); }
.stat-s { font-size: var(--fs-sm); color: var(--text-2); margin-top: 2px; }
.stat input[type=range] { width: 100%; accent-color: var(--accent); margin-top: 14px; }

/* ============================================================ Wochenplan */
.weeknav { display: flex; align-items: center; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.weeknav-label { display: grid; text-align: center; min-width: 190px; line-height: 1.25; padding: 2px 8px; }
.weeknav-label strong { font-size: 13.5px; font-weight: 600; }
.weeknav-label span { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.avail-table { border-collapse: separate; border-spacing: 3px; }
.avail-table th { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; text-align: center; padding: 2px 4px 6px; text-transform: uppercase; letter-spacing: .06em; }
.avail-table th small { display: block; font-weight: 400; font-size: 10.5px; text-transform: none; letter-spacing: 0; margin-top: 1px; }
.avail-table th.slot { text-align: right; padding-right: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; width: 1%; text-transform: none; letter-spacing: 0; }
.avail-table.summary { width: 100%; min-width: 620px; }
.avail-table.summary td { height: 36px; border-radius: 6px; text-align: center; font-weight: 600; font-size: var(--fs-sm); cursor: default; font-variant-numeric: tabular-nums; transition: transform .1s; }
.st.free { background: var(--good); color: var(--good-ink); }
.st.maybe { background: var(--ok-soft); color: var(--ok); }
.st.maybe.subfix { background: var(--good-soft); color: var(--good); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--good) 45%, transparent); }
.st.busy { background: var(--panel-2); color: var(--muted); font-weight: 500; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 16px; font-size: var(--fs-sm); color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw.free { background: var(--good); } .sw.maybe { background: var(--ok-soft); box-shadow: inset 0 0 0 1px var(--ok); }
.sw.subfix { background: var(--good-soft); box-shadow: inset 0 0 0 1px var(--good); } .sw.busy { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.legend-count { margin-left: auto; font-weight: 600; color: var(--text); }
.person-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.card.person { padding: 16px; }
.card.person.me { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line), var(--shadow); }
.person-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; }
.person-head strong { font-size: 15px; font-weight: 600; }
.avail-table.paint { width: 100%; user-select: none; touch-action: none; }
.avail-table.paint td { height: 22px; border-radius: 4px; background: var(--panel-2); cursor: pointer; transition: background .08s; }
.avail-table.paint td:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.avail-table.paint td.on { background: var(--good); }
.person-actions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 12px; }

/* ============================================================ Trainingsplan */
.tp-table { border-collapse: separate; border-spacing: 3px; width: 100%; min-width: 900px; table-layout: fixed; }
.tp-table th { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; padding: 2px 4px 6px; text-align: center; text-transform: uppercase; letter-spacing: .06em; }
.tp-table th small { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; }
.tp-table th.slot { width: 96px; text-align: right; white-space: nowrap; padding-right: 10px; text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.tp-table .notes-col { width: 18%; }
.tp-cell { position: relative; background: var(--panel-2); border-radius: 6px; padding: 0; }
.cell-in { display: block; width: 100%; border: 0 !important; background: transparent !important; resize: none; padding: 7px 8px 7px 15px; font-size: var(--fs-sm); min-height: 34px; border-radius: 6px; box-shadow: none !important; font-weight: 500; }
.tp-cell.notes .cell-in { padding-left: 8px; }
.cell-in:focus { box-shadow: inset 0 0 0 2px var(--accent) !important; }
.av-dot { position: absolute; left: 6px; top: 50%; translate: 0 -50%; width: 4px; height: 4px; border-radius: 50%; }
.av-dot.free { background: var(--good); } .av-dot.maybe { background: var(--ok); } .av-dot.busy { background: var(--line-2); }
/* Inhalts-Kategorien: gleiche Sättigung, verschiedene Töne */
.k-scrim { background: rgba(91,155,255,.20) !important; } .k-event { background: rgba(233,189,98,.22) !important; }
.k-flex { background: rgba(185,162,245,.20) !important; } .k-pl { background: rgba(242,106,118,.22) !important; }
.k-coaching { background: rgba(79,209,197,.20) !important; } .k-soloq { background: rgba(120,201,138,.20) !important; }
.k-talk { background: rgba(240,160,112,.20) !important; } .k-tryout { background: rgba(239,125,180,.20) !important; }
.k-other { background: var(--panel-3) !important; }
.kw-tag { padding: 2px 10px; border-radius: 99px; font-size: var(--fs-sm); font-weight: 500; }

/* ============================================================ Champions */
.cicons { display: inline-flex; flex: none; }
.cicons .cicon + .cicon { margin-left: -6px; box-shadow: 0 0 0 2px var(--panel); }
.cicon { border-radius: 6px; display: inline-grid; place-items: center; flex: none; object-fit: cover; background: var(--panel-3); }
.cicon.none { font-size: 9.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.cicon.empty { border: 1px dashed var(--line-2); background: transparent; }
.chiplist { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2); border-radius: 8px; padding: 2px 4px 2px 2px; font-size: var(--fs-sm); font-weight: 500; cursor: grab; max-width: 100%; transition: background .1s; }
.chip:hover { background: var(--panel-3); }
.chip.flat { cursor: default; padding-right: 8px; }
.chip.dim { opacity: .35; text-decoration: line-through; }
.chip.dragging { opacity: .4; }
.chip-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-x { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; padding: 2px 4px; border-radius: 4px; opacity: 0; transition: opacity .1s; }
.chip:hover .chip-x, .chip-x:focus-visible { opacity: 1; }
.chip-x:hover { color: var(--bad); background: var(--bad-soft); }
.chip-add { width: 118px; height: 30px; padding: 0 10px !important; font-size: var(--fs-sm); border: 1px dashed var(--line-2) !important; background: transparent !important; border-radius: 8px !important; }
.chip-add:focus { border-style: solid !important; }
.champ-input { display: flex; align-items: center; gap: 8px; min-width: 0; }
.champ-input .ci-input { flex: 1; min-width: 70px; padding: 5px 8px; background: transparent; border-color: transparent; }
.champ-input .ci-input:hover { background: var(--panel-2); }
.champ-input.stack { flex-direction: column; gap: 6px; }
.champ-input.stack .ci-input { width: 100%; text-align: center; font-size: 12px; padding: 3px; }
.champ-input.compact .ci-input { min-width: 90px; font-size: var(--fs-sm); padding: 3px 4px; }

/* ============================================================ Championpools */
.pool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; align-items: start; }
.card.pool { padding: 18px 18px 8px; }
.card.pool.me { border-color: var(--accent-line); }
.pool-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 6px; }
.pool-head strong { font-family: var(--display); font-size: var(--fs-lg); font-weight: 600; }
.pool-meta { font-size: var(--fs-xs); display: flex; align-items: center; gap: 8px; }
.tier { padding: 12px 0 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.tier-label { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.tier-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tier-priopick .tier-label { color: var(--gold); } .tier-confident .tier-label { color: var(--good); }
.tier-ben .tier-label { color: var(--blue); } .tier-flex .tier-label { color: #b9a2f5; } .tier-schmutz .tier-label { color: var(--muted); }
.tier-dot { width: 6px; height: 6px; border-radius: 50%; margin-right: 4px; background: var(--muted); flex: none; }
.tier-dot.tier-priopick { background: var(--gold); } .tier-dot.tier-confident { background: var(--good); } .tier-dot.tier-ben { background: var(--blue); } .tier-dot.tier-flex { background: #b9a2f5; }

/* ============================================================ Fearless */
.fl-avail { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 16px; overflow-x: auto; }
.fl-col { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.fl-col-head { display: flex; gap: 8px; align-items: baseline; width: 100%; margin-bottom: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.fl-col-head .count { margin-left: auto; }
.fl-gone { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; margin-top: 4px; border-top: 1px dashed var(--line-2); width: 100%; }
.games { display: grid; gap: 16px; }
.card.game { border-left: 3px solid var(--line-2); }
.card.game.win { border-left-color: var(--good); } .card.game.lose { border-left-color: var(--bad); }
.fl-team { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 6px 0; }
.fl-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.fl-label.us { color: var(--accent); } .fl-label.them { color: var(--muted); }
.fl-line { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 8px; }
.fl-slot { display: grid; gap: 2px; background: var(--panel-2); border-radius: 8px; padding: 6px 6px 4px; }
.fl-role { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; padding-left: 4px; font-weight: 600; }
.add-game { height: 52px; justify-content: center; border: 1px dashed var(--line-2); background: transparent; color: var(--text-2); }
.add-game:hover { color: var(--text); border-color: var(--accent-line); }

/* ============================================================ Teamcomps / Draft */
.comp-list { display: grid; gap: 24px; }
.comp-table { width: 100%; border-collapse: separate; border-spacing: 4px; min-width: 760px; }
.comp-table th { text-align: left; font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; padding: 0 4px 4px; }
.comp-table td { background: var(--panel-2); border-radius: 8px; padding: 4px; }
.comp-table td.counter { background: var(--bad-soft); }
.draft-tabs { margin-top: -8px; }
.draft-meta { display: flex; gap: 12px; align-items: center; }
.draft-board { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: start; }
.vs { align-self: center; font-family: var(--display); font-size: var(--fs-xl); color: var(--muted); font-weight: 600; letter-spacing: .06em; }
.draft-side { position: relative; overflow: hidden; }
.draft-side::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; }
.draft-side.blue::before { background: var(--blue); } .draft-side.red::before { background: var(--red); }
.draft-side-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.draft-side-head h2 { font-family: var(--display); font-size: var(--fs-xl); font-weight: 600; letter-spacing: 0; }
.draft-side.blue h2 { color: var(--blue); } .draft-side.red h2 { color: var(--red); }
.draft-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 12px 0 8px; }
.ban-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ban { position: relative; background: var(--panel-2); border-radius: 8px; padding: 10px 4px 4px; }
.ban .cicon { filter: grayscale(.9) brightness(.8); }
.ban-n { position: absolute; top: 4px; left: 7px; font-size: 10px; color: var(--muted); font-weight: 700; }
.pick-list { display: grid; gap: 6px; }
.pick { display: grid; grid-template-columns: 62px minmax(140px, 1.2fr) 86px 1fr; gap: 8px; align-items: center; background: var(--panel-2); border-radius: 10px; padding: 6px 10px; }
.pick-n { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); line-height: 1.15; }
.pick-n small { display: block; color: var(--muted); font-weight: 500; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.pick .ci-input { font-weight: 600; font-size: 15px; }
.role-sel { font-size: var(--fs-sm); }

/* ============================================================ Botlane / Kommunikation / Coaching */
.combo-cell { display: flex; align-items: center; gap: 10px; min-width: 240px; }
.combo-icons { flex: none; }
.wide-cell { min-width: 300px; width: 45%; }
.rank-in { width: 54px !important; font-weight: 700; }
.cat-card { position: relative; overflow: hidden; }
.cat-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--line-2); }
.cat-card.cat-prio::before { background: var(--good); } .cat-card.cat-counter::before { background: var(--ok); } .cat-card.cat-no::before { background: var(--bad); }
.call-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.call-list { margin: 0 0 10px; padding-left: 22px; display: grid; gap: 2px; }
.call-list li::marker { color: var(--muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.call { border: 1px solid transparent !important; background: transparent !important; resize: none; overflow: hidden; padding: 3px 6px; width: 100%; line-height: 1.45; }
.call:hover { background: var(--panel-2) !important; }
.call:focus { background: var(--panel-2) !important; border-color: var(--accent) !important; }
.coach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.coach-text { background: transparent; border-color: var(--line); }

/* ============================================================ Statistik */
.stats-top { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 24px; align-items: start; }
.radar { width: 100%; max-width: 340px; display: block; margin: 0 auto; }
.radar .ring { fill: none; stroke: var(--line-2); }
.radar .spoke { stroke: var(--line); }
.radar .area { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.radar .dot { fill: var(--accent); }
.radar .lbl { fill: var(--text-2); font-size: 11.5px; font-weight: 600; font-family: var(--font); }
.radar .val { fill: var(--muted); font-size: 10.5px; font-weight: 500; }
.wl { text-align: center; font-weight: 600; margin-top: 8px; font-variant-numeric: tabular-nums; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.metric { position: relative; background: var(--panel-2); border-radius: 10px; padding: 12px 14px; overflow: hidden; }
.metric::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--line-2); }
.metric.good::before { background: var(--good); } .metric.ok::before { background: var(--ok); } .metric.bad::before { background: var(--bad); }
.metric.good .metric-v { color: var(--good); } .metric.ok .metric-v { color: var(--ok); } .metric.bad .metric-v { color: var(--bad); }
.metric-l { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.metric-v { font-family: var(--display); font-size: var(--fs-xl); font-weight: 600; line-height: 1.15; margin: 2px 0; font-variant-numeric: tabular-nums; }
.metric-t { display: flex; align-items: center; gap: 2px; font-size: var(--fs-xs); color: var(--muted); }
.metric-t input { width: 64px !important; text-align: left; }
table.gamelog { min-width: 1500px; }
table.gamelog td { padding: 2px; }
table.gamelog input.num { width: 58px; }
table.gamelog select.bare { min-width: 72px; }
table.gamelog th.derived, table.gamelog td.derived { background: color-mix(in srgb, var(--accent-soft) 50%, transparent); color: var(--text-2); }
table.gamelog tr.win td:first-child { box-shadow: inset 3px 0 0 var(--good); } table.gamelog tr.lose td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
table.gamelog tr.excluded { opacity: .45; }
td.good { color: var(--good); font-weight: 600; } td.ok { color: var(--ok); font-weight: 600; } td.bad { color: var(--bad); font-weight: 600; }

/* ============================================================ Liga */
.standings tr.us { background: var(--accent-soft); }
.standings tr.us:hover { background: var(--accent-soft) !important; }
.standings tr.us td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.standings tr.promo td:first-child { color: var(--good); font-weight: 700; }
.standings tr.dq { opacity: .45; }
table.standings td { white-space: nowrap; }
table.standings input.num { width: 52px; }
table.standings td:nth-child(3) input[type=text].bare { min-width: 270px; }
table.standings td.pts-v { font-family: var(--display); font-weight: 600; font-size: 19px; }
.fixtures tr.us { background: var(--accent-soft); }
.fixtures tr.played td { opacity: .7; }
.fixtures tr.played.us td, .fixtures tr.played td:nth-child(5) { opacity: 1; }
table.fixtures select.bare { max-width: 190px; }
input.md-in { width: 44px !important; }
.points-table input.num { width: 90px; }
.bar { position: relative; height: 22px; min-width: 120px; background: var(--panel-2); border-radius: 6px; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--good) 40%, transparent); border-radius: 6px; }
.bar span { position: relative; font-size: var(--fs-sm); font-weight: 600; padding: 0 8px; line-height: 22px; font-variant-numeric: tabular-nums; }
.kv { list-style: none; padding: 0; margin: 0; display: grid; }
.kv li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.kv li:last-child { border-bottom: 0; }
.kv li span { color: var(--text-2); }

/* ============================================================ Ränge */
.rank { font-weight: 600; font-size: var(--fs-sm); letter-spacing: .02em; }
.t-iron { color: #9a948f; } .t-bronze { color: #c98f66; } .t-silver { color: #b7c2ce; } .t-gold { color: #e3b65c; }
.t-platinum { color: #5cc9b4; } .t-emerald { color: #4fc988; } .t-diamond { color: #82a8ff; } .t-master { color: #c08cf5; }
.t-grandmaster { color: #f27a7a; } .t-challenger { color: #f2cf6a; } .t-unranked { color: var(--muted); }
.rank input { color: inherit; font-weight: 600; }

/* ============================================================ Übersicht */
.hero { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; padding: 28px 32px; border-radius: 18px; border: 1px solid var(--line);
  background: radial-gradient(80% 140% at 100% 0%, var(--accent-soft), transparent 60%), var(--panel); }
.hero h1 { font-size: var(--fs-3xl); line-height: 1; max-width: 22ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.dash-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.dash-grid > .span-7 { grid-column: span 7; } .dash-grid > .span-5 { grid-column: span 5; }
.dash-grid > .span-4 { grid-column: span 4; } .dash-grid > .span-8 { grid-column: span 8; } .dash-grid > .span-6 { grid-column: span 6; }
.card-title { font-size: var(--fs-md); font-weight: 600; }
.card-sub { font-size: var(--fs-sm); color: var(--muted); margin-top: 2px; }
.slot-list, .today-list, .roster-list { list-style: none; margin: 0; padding: 0; display: grid; }
.slot-list li { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.slot-list li:last-child { border-bottom: 0; }
.slot-list .day { font-weight: 600; } .slot-list .day small { display: block; color: var(--muted); font-weight: 400; font-size: var(--fs-xs); }
.slot-list .time { font-family: var(--display); font-size: var(--fs-lg); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.slot-list .tag { font-size: var(--fs-xs); }
.slot-list li.free .tag { color: var(--good); } .slot-list li.maybe .tag { color: var(--ok); }
.today-list li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 10px 12px; border-radius: 8px; margin-bottom: 6px; }
.today-list .time { color: var(--text-2); font-variant-numeric: tabular-nums; font-size: var(--fs-sm); }
.roster-list li { display: grid; grid-template-columns: 82px 1fr auto 52px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.roster-list li:last-child { border-bottom: 0; }
.roster-list .role-tag { margin: 0; text-align: center; }
.roster-list .lp { text-align: right; color: var(--muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.people-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip { background: var(--ok-soft); color: var(--ok); padding: 4px 10px; border-radius: 99px; font-weight: 600; font-size: var(--fs-sm); }
.pchip small { opacity: .7; margin-left: 6px; font-weight: 500; }
.ok-text { color: var(--good); font-weight: 600; margin: 0; }
.empty { color: var(--muted); margin: 0; padding: 8px 0; }
.rules ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text-2); }
.rules li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ============================================================ Login & Toasts */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: min(380px, 100%); display: grid; gap: 14px; padding: 32px; }
.login-err { color: var(--bad); min-height: 1em; font-size: 13px; }
#toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 50; }
.toast { display: flex; gap: 10px; align-items: center; background: var(--panel-3); border: 1px solid var(--line-2); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow-pop); max-width: 380px; font-size: 13.5px; transition: opacity .3s, transform .3s; }
.toast::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.toast.warn::before { background: var(--ok); } .toast.error::before { background: var(--bad); } .toast.ok::before { background: var(--good); }
.toast.out { opacity: 0; transform: translateY(8px); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ============================================================ Responsive */
@media (max-width: 1180px) {
  .draft-board { grid-template-columns: 1fr; } .vs { display: none; }
  .stats-top { grid-template-columns: 1fr; }
  .dash-grid > [class*="span-"] { grid-column: span 12; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; height: auto; z-index: 20; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 92%, transparent); backdrop-filter: blur(10px); }
  .brand { padding: 0; flex: 1; }
  .menu-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-2); background: var(--panel); border-radius: 8px; font-size: 17px; cursor: pointer; }
  .nav, .side-foot { display: none; width: 100%; }
  body.menu-open .nav, body.menu-open .side-foot { display: block; }
  body.menu-open .nav { padding-top: 16px; max-height: 70vh; overflow-y: auto; }
  .nav-link.on::before { display: none; }
  .main { padding: 20px 16px 56px; }
  .page { gap: 20px; }
  h1 { font-size: 28px; } .hero h1 { font-size: 32px; }
  .hero { grid-template-columns: 1fr; padding: 22px 20px; }
  .two-col { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-v { font-size: var(--fs-xl); }
  .fl-line { grid-template-columns: repeat(5, 140px); overflow-x: auto; }
  .fl-team { grid-template-columns: 1fr; }
  .pick { grid-template-columns: 52px 1fr; } .pick .role-sel, .pick .note { grid-column: 2; }
  .weeknav-label { min-width: 150px; }
  .slot-list li { grid-template-columns: 1fr auto; } .slot-list .tag { grid-column: 1 / -1; margin-top: -6px; }
}
table.fixtures select.bare { min-width: 96px; font-weight: 600; }
@media (max-width: 860px) { .stats-row .stat:last-child:nth-child(odd) { grid-column: span 2; } }
