:root {
  --grund: #0f1115;
  --flaeche: #181b22;
  --flaeche-hell: #1f232c;
  --rand: #262b35;
  --text: #e6e8ec;
  --leise: #9aa1ad;
  --gold: #c8aa6e;
  --rot: #e57373;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: anywhere;
}
a { color: var(--gold); }
p { margin: 0; }

/* ---------- Kopf: Team | Reiter | Status | Aktualisieren ---------- */
header { background: var(--flaeche); border-bottom: 1px solid var(--rand); }
.kopf, main { max-width: 1600px; margin: 0 auto; padding: 12px 24px; }
/* Kopf kompakt in einer Zeile; lange Status-Texte werden gekürzt (voller Text im Tooltip) */
.kopf { display: flex; align-items: center; gap: 4px 20px; padding-block: 6px; }
.kopf-team, .kopf-status { flex: 0 1 auto; min-width: 0; max-width: 24rem; }
.kopf-team > *, .kopf-status > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
h1 { margin: 0; font-size: 1.4rem; line-height: 1.3; color: var(--gold); }
.stand { color: var(--leise); font-size: .75rem; line-height: 1.3; }
.kw { font-weight: 600; font-size: 1.05rem; }
.kopf-status { margin-left: auto; text-align: right; }
#aktualisieren { padding: 3px 10px; font-size: .8rem; flex: none; }

nav { display: flex; gap: 2px; flex: 1 1 auto; min-width: 0; }
nav a {
  color: var(--leise); text-decoration: none; padding: 4px 9px; border-radius: 6px; font-weight: 500; font-size: .9rem; white-space: nowrap;
}
nav a:hover { color: var(--text); background: var(--flaeche-hell); }
nav a[aria-current] { color: var(--gold); background: var(--grund); box-shadow: inset 0 -2px 0 var(--gold); }

button {
  background: var(--flaeche); color: var(--text);
  border: 1px solid var(--rand); border-radius: 8px;
  padding: 7px 12px; font: inherit; font-size: .9rem; cursor: pointer;
}
button:hover { border-color: var(--gold); }
button:disabled { opacity: .5; cursor: wait; }
button.klein { padding: 3px 10px; font-size: .8rem; }

.meldung { color: var(--leise); margin-bottom: 12px; }
.meldung.fehler { color: var(--rot); }
.meldung:empty { display: none; }
.leer { color: var(--leise); padding: 12px 16px; list-style: none; }
.fuss { color: var(--leise); font-size: .85rem; margin-bottom: 12px; }

/* ---------- Kästen ---------- */
.panel { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 10px; overflow: hidden; }
/* Filter im Kastenkopf: gleiche Schrift wie die kleine graue Zusammenfassung daneben */
.kopf-filter { margin-left: auto; }
.kopf-filter label { display: flex; align-items: center; gap: 6px; color: var(--leise); font-size: .8rem; }
.kopf-filter select { width: auto; padding: 3px 8px; font: inherit; color: var(--text); }
.panel-kopf {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--rand);
}
h2 { margin: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--leise); }
.knopf-link { font-size: .9rem; }

.raster { display: grid; gap: 16px; margin-top: 16px; align-items: start; }
.stapel { display: grid; gap: 16px; }
@media (min-width: 1000px) {
  .raster { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}

/* ---------- Kacheln ---------- */
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.kachel { background: var(--flaeche); border: 1px solid var(--rand); border-left: 3px solid var(--gold); border-radius: 10px; padding: 12px 16px; }
.kachel .titel { color: var(--leise); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.kachel .haupt { font-weight: 600; font-size: 1.05rem; margin-top: 4px; }
.kachel .info { color: var(--leise); font-size: .85rem; margin-top: 2px; }

/* ---------- Zeilen (Wochenplan, Tasks, Topics) ---------- */
.zeilen { list-style: none; margin: 0; padding: 0; }
.zeilen > * + * { border-top: 1px solid var(--rand); }
.zeile-knopf {
  display: grid; align-items: baseline; gap: 4px 16px; width: 100%;
  padding: 10px 16px; text-align: left; font-size: .95rem;
  background: none; border: 0; border-radius: 0;
}
.zeile-knopf:hover { background: var(--flaeche-hell); }
.zeile-knopf:focus-visible { outline-offset: -2px; }

.termin-spalten, .termin { grid-template-columns: 7.5rem 8.5rem minmax(0, 1fr) 7rem; }
.tabellenkopf {
  display: grid; gap: 16px; padding: 6px 16px; border-bottom: 1px solid var(--rand);
  color: var(--leise); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
}
.termin .tag { font-weight: 600; }
.termin .zeit { color: var(--leise); font-variant-numeric: tabular-nums; }
.termin .was { display: grid; gap: 2px; }
.termin .details { color: var(--leise); font-size: .85rem; font-style: italic; }
.typ:not(:empty) {
  justify-self: start; padding: 1px 8px; border: 1px solid var(--gold); border-radius: 999px;
  color: var(--gold); font-size: .8rem;
}
.typ-Liga { background: var(--gold); color: #1a1a1a !important; }

.aufgabe { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-right: 12px; }
.aufgabe .zeile-knopf { grid-template-columns: 6.5rem minmax(0, 1fr) auto; }
.aufgabe .wer { color: var(--gold); font-size: .85rem; }
.aufgabe .bis { color: var(--leise); font-size: .85rem; white-space: nowrap; }
.aufgabe select.status { width: auto; padding: 3px 6px; font-size: .85rem; }
.status-in-Arbeit select.status { border-color: var(--gold); color: var(--gold); }
.status-erledigt .text, .status-besprochen .text { color: var(--leise); }
.status-erledigt .text { text-decoration: line-through; }

/* ---------- Roster-Tabelle ---------- */
.tabelle-rahmen { overflow-x: auto; }
table.roster { width: 100%; border-collapse: collapse; font-size: .95rem; }
.roster th {
  text-align: left; padding: 8px 16px; border-bottom: 1px solid var(--rand); white-space: nowrap;
  color: var(--leise); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
}
.roster td { padding: 10px 16px; border-bottom: 1px solid var(--rand); vertical-align: middle; }
.roster tr:last-child td { border-bottom: 0; }
.roster tbody tr:hover { background: var(--flaeche-hell); }
.roster .rolle { color: var(--gold); font-weight: 600; white-space: nowrap; }
.roster .name { font-weight: 600; }
.roster .riotid, .roster .geburtstag { color: var(--leise); white-space: nowrap; }
.roster .notiz { color: var(--leise); font-style: italic; }
.roster .profile { white-space: nowrap; }
.roster .profile a + a { margin-left: 12px; }
.roster .aktion { text-align: right; }

/* ---------- Links ---------- */
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.linkgruppe h2 { padding: 10px 16px; border-bottom: 1px solid var(--rand); }
.linkgruppe ul { list-style: none; margin: 0; padding: 12px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }

/* ---------- Skripte ---------- */
.skripte { list-style: none; margin: 0; padding: 12px 16px; display: grid; gap: 14px; }
.skripte li { display: grid; gap: 4px; justify-items: start; }
.skripte span { color: var(--leise); font-size: .85rem; }
.skripte label { display: grid; gap: 4px; width: 100%; }
.skripte output { font-size: .9rem; }
.skripte output.fehler { color: var(--rot); }
.skripte .fuss { margin: 0; }

/* ---------- Team-Menü (Hover, Tastatur per Fokus) ---------- */
.menue { position: relative; }
.menue > a { display: block; }
.untermenue {
  display: none; position: absolute; top: 100%; left: 0; z-index: 10; min-width: 180px; padding: 6px;
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: 8px; box-shadow: 0 8px 24px rgb(0 0 0 / .4);
}
.untermenue a { display: block; }
.menue:hover .untermenue, .menue:focus-within .untermenue { display: grid; gap: 2px; }

/* ---------- Week Planer: Summary + Heatmap ---------- */
/* immer 2 Spalten; bei schmalem Fenster seitlich scrollen statt untereinander */
.wochen { display: grid; gap: 16px; align-items: start; grid-template-columns: repeat(2, minmax(520px, 1fr)); overflow-x: auto; }
.raster-tabelle { width: 100%; border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; table-layout: fixed; }
.raster-tabelle th, .raster-tabelle td { padding: 5px 6px; border-bottom: 1px solid var(--rand); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.raster-tabelle tr > :first-child { width: 5.5rem; text-align: left; color: var(--leise); font-weight: 500; padding-left: 16px; }
.raster-tabelle tr:first-child th { color: var(--leise); font-size: .75rem; font-weight: 500; }
.raster-tabelle th.heute { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.summary td { white-space: normal; }
.summary .gut { color: #81c784; font-weight: 600; }
.summary .schlecht { color: var(--rot); }
.heatmap td { font-size: .78rem; border-left: 1px solid var(--grund); }
.heatmap th, .heatmap td { padding: 3px 6px; }
.stufe-alle { background: #2e7d32; color: #fff; font-weight: 600; }
.stufe-vier { background: #6b5a2a; color: #fff3d6; }
.stufe-wenige { background: #2a2f3a; color: var(--leise); }

.rollen-nav { display: contents; }
.menue-titel { padding: 4px 12px 2px; color: var(--leise); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
nav { flex-wrap: wrap; }

/* ---------- Woche blättern ---------- */
.wochen-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.wochen-nav .zeitraum { font-weight: 600; min-width: 9rem; text-align: center; }

/* ---------- Spielerseite ---------- */
.spieler-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; padding: 14px 16px; margin-bottom: 16px; border-left: 3px solid var(--gold); }
.rolle-titel { color: var(--gold); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.spieler-name { font-size: 1.4rem; font-weight: 700; }
.spieler-infos { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center; }
.spieler-infos p { display: grid; }
.spieler-infos .profile { display: flex; gap: 12px; }

/* ---------- Schedule: Raster zum Bemalen ---------- */
.werkzeuge { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 12px; }
.werkzeug { display: inline-flex; align-items: center; gap: 6px; }
.werkzeug::before { content: ''; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--rand); background: var(--mal-farbe); }
.werkzeug[aria-checked="true"] { border-color: var(--gold); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.mal-j { --mal-farbe: #2e7d32; }
.mal-n { --mal-farbe: #a33a3a; }
.mal-leer { --mal-farbe: transparent; }
/* drei Raster nebeneinander (Regel | Woche 1 | Woche 2), bei schmalem Fenster seitlich scrollen */
.mal-raster { display: grid; gap: 16px; align-items: start; grid-template-columns: repeat(3, minmax(420px, 1fr)); overflow-x: auto; }
.malen { user-select: none; border-collapse: separate; border-spacing: 0; background: var(--grund); }
.malen th { background: var(--flaeche); }
.malen td { padding: 0; height: 22px; background: var(--muster, none) var(--mal-farbe); border-left: 1px solid var(--grund); border-bottom: 1px solid var(--grund); cursor: crosshair; touch-action: none; }
.malen td.mal-leer { background: var(--flaeche-hell); }
/* Kann nicht: schraffiert, damit es nicht nur über die Farbe erkennbar ist */
.malen td.mal-n { --muster: repeating-linear-gradient(135deg, transparent 0 5px, rgb(0 0 0 / .3) 5px 7px); }
/* folgt den Regelzeiten: „durchgepaust“ gestreift statt nur blass */
.malen td.regel:not(.mal-leer) { background: repeating-linear-gradient(45deg, transparent 0 3px, rgb(15 17 21 / .6) 3px 5px), var(--muster, none) var(--mal-farbe); }
/* Muster am Fenster ausrichten statt an jeder Zelle → Striche laufen über Stunden und Tage durch */
.malen td.mal-n, .malen td.regel:not(.mal-leer) { background-attachment: fixed; }
/* gleiche Nachbarn verschmelzen zu einem Block mit runden Enden */
.malen td.weiter-unten { border-bottom-width: 0; }
.malen td:not(.mal-leer):not(.weiter-oben) { border-top-left-radius: 4px; border-top-right-radius: 4px; }
.malen td:not(.mal-leer):not(.weiter-unten) { border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; }
.malen th.zeit { font-size: .78rem; padding-top: 0; padding-bottom: 0; vertical-align: middle; line-height: 1; color: var(--text); }
/* Stundenstrich quer durch die ganze Tabelle, auch durch gemalte Blöcke */
.malen tr.halb > td { border-bottom-color: var(--rand); }
.malen tr.halb > td.weiter-unten { box-shadow: inset 0 -1px 0 var(--rand); }
.malen tr:first-child th { padding: 4px 2px; white-space: nowrap; }
.panel.vorlage { border-style: dashed; }
.tag-knopf { padding: 2px 6px; font-size: .75rem; border: 0; background: none; color: inherit; }
.tag-knopf:hover { color: var(--gold); }
.ganz-zeile th { padding: 2px; font-size: .7rem; }
.ganz-knopf { width: 100%; padding: 1px 0; font-size: .8rem; line-height: 1.2; border-color: var(--mal-farbe); color: #81c784; background: none; }
.ganz-knopf:hover { background: var(--mal-farbe); color: #fff; }
.zurueck { padding: 0 4px; font-size: .8rem; border: 0; background: none; color: var(--gold); }

/* ---------- Champs-Seite einer Rolle ---------- */
.rc-raster { display: grid; gap: 16px; margin-top: 16px; align-items: start; }
@media (min-width: 1200px) { .rc-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }
.champ-tabelle.log td { white-space: nowrap; }
.champ-tabelle.log td.notiz { white-space: normal; font-style: italic; color: var(--leise); }
.wl-W { color: #81c784; font-weight: 600; }
.wl-L { color: var(--rot); font-weight: 600; }
.wr-gut-text { color: #81c784; }
.wr-mittel-text { color: var(--gold); }
.wr-schlecht-text { color: var(--rot); }

/* ---------- Champion-Stats ---------- */
/* eine Tabelle je Spieler über die volle Breite; feste Spalten, damit alle gleich aussehen */
.champs { display: grid; gap: 16px; }
.champs .champ-tabelle { table-layout: fixed; min-width: 820px; }
.champs .champ-tabelle th:first-child { width: 24%; }
.leise { color: var(--leise); }
.klein { font-size: .8rem; }
.champ-tabelle { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.champ-tabelle th { text-align: left; padding: 6px 10px; color: var(--leise); font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--rand); }
.champ-tabelle td { padding: 4px 10px; border-bottom: 1px solid var(--rand); }
.champ-tabelle tr:last-child td { border-bottom: 0; }
.champ-tabelle tr.duo-oben td { border-bottom: 0; }   /* Botlane-Partner steht ohne Strich darunter */
/* kein display:flex auf td – sonst ist es keine Tabellenzelle mehr und zwei Champ-Spalten landen untereinander */
.champ-tabelle .champ { white-space: nowrap; }
.champ-bild { width: 28px; height: 28px; border-radius: 4px; vertical-align: middle; margin-right: 8px; background: var(--flaeche-hell); }
.champ-tabelle .zahl { white-space: nowrap; }
.champ-tabelle .abschnitt th { padding-top: 12px; color: var(--gold); }
.champ-tabelle tr.summe td { font-weight: 600; }
.champ-tabelle td.hoechst { background: rgba(129, 199, 132, .18); color: #81c784; font-weight: 600; }
.champ-tabelle td.tiefst { background: rgba(229, 115, 115, .18); color: var(--rot); font-weight: 600; }
.wr-gut .wr { color: #81c784; font-weight: 600; }
.wr-mittel .wr { color: var(--gold); }
.wr-schlecht .wr { color: var(--rot); }
.wr-wenig { opacity: .55; }

/* ---------- Dialoge ---------- */
dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--flaeche); color: var(--text); border: 1px solid var(--rand); border-radius: 12px; padding: 16px;
}
dialog::backdrop { background: rgb(0 0 0 / .6); }
dialog h3 { margin: 0 0 12px; color: var(--gold); }
.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.felder label { display: grid; gap: 4px; font-size: .85rem; color: var(--leise); min-width: 0; }
.felder .breit { grid-column: 1 / -1; }
.felder fieldset.kda { border: 0; padding: 0; margin: 0; display: flex; align-items: center; gap: 4px; font-size: .85rem; color: var(--leise); min-width: 0; flex-wrap: wrap; }
.felder fieldset.kda legend { padding: 0; margin-bottom: 4px; width: 100%; }
.felder fieldset.kda input { width: 0; flex: 1; min-width: 0; }
input, select, textarea {
  width: 100%; min-width: 0; background: var(--grund); color: var(--text);
  border: 1px solid var(--rand); border-radius: 6px; padding: 8px; font: inherit; font-size: 1rem;
}
input:focus, select:focus, textarea:focus, button:focus-visible, nav a:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.formfehler { color: var(--rot); min-height: 1.2em; margin: 8px 0 0; font-size: .9rem; }
.knoepfe { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.knoepfe .loeschen { margin-right: auto; color: var(--rot); }
.knoepfe .haupt { background: var(--gold); color: #1a1a1a; border-color: var(--gold); font-weight: 600; }

/* ---------- Schmale Fenster (Handy) ---------- */
@media (max-width: 699px) {
  .kopf, main { padding: 12px 16px; }
  .kopf { flex-wrap: wrap; }
  .kopf-status { margin-left: 0; text-align: left; flex-basis: 100%; max-width: none; order: 3; }
  nav { order: 4; flex-basis: 100%; }
  .tabellenkopf { display: none; }
  .termin { grid-template-columns: minmax(0, 1fr) auto; }
  .termin .was { grid-column: 1 / -1; }
  .termin .typ { grid-row: 1; grid-column: 2; }
  .termin .zeit { grid-column: 1; }
  .aufgabe .zeile-knopf { grid-template-columns: minmax(0, 1fr) auto; }
  .aufgabe .text { grid-column: 1 / -1; }
}
#mu-filter { margin-top: 12px; }
#mu-filter label { display: flex; align-items: center; gap: 6px; color: var(--leise); font-size: .85rem; }
#mu-filter select { width: auto; padding: 5px 8px; font-size: .9rem; }

/* ---------- Comp: Matches & Scouting ---------- */
.ms-wahl { display: flex; align-items: center; gap: 8px; color: var(--leise); font-size: .85rem; }
.ms-wahl select { width: auto; max-width: min(420px, 60vw); padding: 5px 8px; font-size: .9rem; }
.ms-detail { padding: 12px 16px 16px; }
.ms-kopf { display: grid; gap: 6px; justify-items: start; }
.ms-titel { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ms-gegner { font-size: 1.4rem; }
.ms-score { font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ms-kopf p { margin: 0; }
.ms-links { display: flex; flex-wrap: wrap; gap: 16px; }
.warnung { color: var(--gold); }
.ms-raster { display: grid; gap: 16px; margin-top: 16px; align-items: start; }
@media (min-width: 1100px) { .ms-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }
.ms-abschnitt { margin: 4px 0 0; font-size: .75rem; color: var(--leise); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
.ms-notiz { white-space: pre-wrap; margin: 0; }
.ms-bilanz { margin: 16px 0; }
.ms-liste .aktion { white-space: nowrap; text-align: right; }
.ms-liste .aktion button + button { margin-left: 6px; }
.ms-liste tr.gewaehlt td { background: var(--flaeche-hell); }
.seite-Blue { color: #64b5f6; }
.seite-Red { color: var(--rot); }
[data-reiter="matches"] > .panel + .panel { margin-top: 16px; }

dialog.breit { width: min(860px, calc(100vw - 32px)); }
dialog h4 { margin: 16px 0 8px; font-size: .8rem; color: var(--leise); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.felder.drei { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.felder.drei .breit2 { grid-column: span 2; }
.block { display: grid; gap: 4px; font-size: .85rem; color: var(--leise); margin-top: 12px; }
.match-accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.match-accounts:not(:has(> :not([hidden])))::before { content: attr(data-leer); color: var(--leise); font-size: .85rem; }
.acc-zeile { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem; align-items: center; gap: 8px; font-size: .9rem; }
.acc-zeile .acc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-zeile select { padding: 5px; }
.game-zeile { display: grid; grid-template-columns: 4rem 4.5rem 5rem minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; align-items: center; margin-bottom: 6px; }
.game-zeile select, .game-zeile input { padding: 5px 6px; font-size: .9rem; }
@media (max-width: 700px) {
  .felder.drei { grid-template-columns: 1fr 1fr; }
  .game-zeile { grid-template-columns: 4rem 1fr 1fr; }
  .game-zeile input { grid-column: 1 / -1; }
}

/* ---------- Comp: Champ-Pool & Picks ---------- */
.pool-oben { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 900px) { .pool-oben { grid-template-columns: 1fr 1fr; } }
.ziele { display: grid; gap: 6px; padding: 12px 16px 16px; }
.ziele input { padding: 6px 8px; font-size: .95rem; }
.pool-karte { padding: 8px 12px 12px; display: grid; gap: 10px; }
.pool-titel { margin: 0 0 4px; font-size: .72rem; color: var(--leise); text-transform: uppercase; letter-spacing: .06em; }
.pool-felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.champ-feld { display: flex; align-items: center; gap: 6px; min-width: 0; }
.champ-feld .champ-bild { margin-right: 0; flex: none; }
.champ-feld input { padding: 4px 6px; font-size: .85rem; }
.champ-feld input:invalid { border-color: var(--rot); }
#pool { margin-bottom: 16px; }
.pool-leiste { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.champ-feld .entfernen { padding: 2px 7px; flex: none; }
.ziel { margin: 0; }
.blind { display: grid; gap: 12px; padding: 12px 16px 16px; }
.blind-zeile { display: grid; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rand); }
.blind-zeile:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 1100px) { .blind-zeile { grid-template-columns: 5fr 6fr 4fr; } }
.typ-Scrim:not(:empty) { border-color: #64b5f6; color: #64b5f6; }

/* Champs-Seite: weitere Accounts */
.accounts { list-style: none; margin: 0; padding: 8px 12px 4px; display: grid; gap: 4px; }
.accounts li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.accounts .entfernen { padding: 2px 7px; }
.account-neu { display: flex; gap: 6px; padding: 4px 12px 12px; }
.account-neu input { flex: 1; min-width: 0; padding: 4px 6px; font-size: .85rem; }

/* Gegner-Scouting */
.scout-form { display: flex; gap: 8px; align-items: center; }
.scout-form input { width: 4.5em; }
#scout { display: grid; gap: 16px; margin-top: 12px; }
#scout .stapel { padding: 0 12px; }
#scout .champ-bild + .champ-bild { margin-left: 2px; }

/* ---------- Konto / Login ---------- */
.nutzer-zeile { display: flex; align-items: center; gap: 8px; padding: 8px 16px; }
.nutzer-zeile > span { flex: 1; }
.login { max-width: 360px; margin: 12vh auto; }
.login .panel { padding: 20px; }
.login h1 { margin: 0 0 16px; font-size: 1.3rem; }
