/* Eigenes Stylesheet, angelehnt an den Look des Supercell-Stores.
   Schriften: Clash Regular und Clash Bold aus dem offiziellen Supercell Fan Kit
   (Nutzung nach der Fan-Content-Richtlinie). Nunito (SIL OFL) nur als Ersatz
   für Zeichen, die in den Clash-Schriften fehlen (z. B. ★ ☆ →). */

@font-face { font-family: "Clash Regular"; src: url("../fonts/clash-regular.otf") format("opentype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Clash Bold"; src: url("../fonts/clash-bold.otf") format("opentype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --parchment: #d8c4ad;
  --parchment-dark: #c9b293;
  --card: #e6d6c2;
  --ink: #191919;
  --muted: #5d5146;
  --gold: #f4c245;
  --gold-dark: #c99413;
  --sky: #c0efff;
  --red: #c8352b;
  --green: #3f9b3a;
  --radius: 16px;
  --shadow: 0 2px 0 #000, 0 10px 30px rgba(0, 0, 0, .2);
  --display: "Clash Bold", "Nunito", system-ui, sans-serif;
  --text: "Clash Regular", "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-synthesis: none; /* kein künstliches Fett: Fließtext bleibt in Clash Regular */
  background: var(--parchment);
  color: var(--ink);
  font: 16px/1.5 var(--text);
}
a { color: inherit; }
code { background: rgba(0,0,0,.08); padding: .1em .35em; border-radius: 4px; }
img { max-width: 100%; }

/* ---------- Kopfzeile mit Papierkante ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
  padding: .75rem max(16px, calc((100% - 1100px) / 2));
  background: #ece2d4;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand span { font: 1.5rem var(--display); }
nav { display: flex; gap: .4rem; flex-wrap: wrap; }
nav a {
  text-decoration: none; font-weight: 800;
  padding: .45rem 1rem; border-radius: 40px;
  border: 2px solid transparent;
}
nav a:hover { border-color: var(--ink); }
nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.torn {
  height: 14px; background: #ece2d4;
  clip-path: polygon(0 0,100% 0,100% 40%,96% 90%,92% 45%,87% 100%,82% 50%,77% 85%,71% 35%,66% 95%,60% 45%,55% 80%,49% 30%,44% 100%,38% 50%,33% 90%,27% 40%,22% 85%,16% 35%,11% 100%,6% 45%,3% 80%,0 40%);
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.15));
}

main { max-width: 1100px; margin: 1.5rem auto; padding: 0 16px; display: grid; gap: 1.5rem; }

/* ---------- Überschriften im Spiel-Stil ---------- */
.clash {
  font-family: var(--display); font-weight: 400; color: #fff;
  -webkit-text-stroke: 3px #000; paint-order: stroke fill;
  text-shadow: 0 3px 0 #000, -1px 4px 0 #000;
  letter-spacing: .02em; margin: 0 0 .75rem; line-height: 1.15;
}
h1.clash { font-size: clamp(2rem, 5vw, 3rem); }
h2.clash { font-size: 1.6rem; }
.clash.small-head { font-size: 1.3rem; margin-top: 1.5rem; }

/* ---------- Karten und Bausteine ---------- */
.card {
  background: var(--card);
  border: 2px solid #000; border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
}
.hero { display: flex; gap: 1.5rem; align-items: center; background: linear-gradient(160deg, #f0e4d3, var(--card)); }
.hero .badge { width: 140px; height: auto; flex: none; filter: drop-shadow(0 4px 0 rgba(0,0,0,.35)); }
.hero .tag { font-weight: 800; color: var(--muted); margin: 0 0 .5rem; }
.hero .desc { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.stat {
  background: var(--ink); color: #fff; border-radius: 12px; padding: .8rem 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 2px 0 #000;
  display: flex; flex-direction: column;
}
.stat .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #c7c7cc; font-weight: 700; }
.stat .value { font: 1.35rem var(--display); color: var(--gold); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 800;
  background: var(--gold); color: var(--ink);
  border: 2px solid #000; border-radius: 40px; padding: .5rem 1.25rem;
  box-shadow: inset 0 2.5px 0 rgba(255,255,255,.6), 0 3px 0 #000;
  transition: transform .08s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 1px 0 #000; }

.ranking { list-style: none; counter-reset: r; padding: 0; margin: 0 0 1rem; }
.ranking li {
  counter-increment: r; display: flex; justify-content: space-between; align-items: center;
  padding: .45rem .25rem; border-bottom: 1px dashed rgba(0,0,0,.2);
}
.ranking li::before { content: counter(r); font: 1.1rem var(--display); width: 1.8rem; color: var(--gold-dark); }
.ranking li span { flex: 1; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table th, .table td { padding: .55rem .6rem; text-align: left; border-bottom: 1px solid rgba(0,0,0,.12); }
.table thead th { background: var(--ink); color: #fff; font-weight: 800; white-space: nowrap; }
.table thead th:first-child { border-top-left-radius: 10px; }
.table thead th:last-child { border-top-right-radius: 10px; }
.table thead a { color: #fff; text-decoration: none; }
.table thead th[aria-sort] a { color: var(--gold); }
.table thead a:hover { text-decoration: underline; }
.table tbody tr:nth-child(even) { background: rgba(255,255,255,.25); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.th {
  display: inline-block; min-width: 2rem; text-align: center;
  background: var(--sky); border: 2px solid #000; border-radius: 8px; font-weight: 800;
}
.role { font-size: .85rem; font-weight: 700; padding: .1rem .55rem; border-radius: 40px; background: rgba(0,0,0,.08); white-space: nowrap; }
.role-leader { background: var(--gold); }
.role-coLeader { background: #f6d98a; }

/* ---------- Krieg ---------- */
.score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; text-align: center; }
.side { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.side-name { font-weight: 800; overflow-wrap: anywhere; }
.stars { font: 2rem var(--display); color: var(--gold); -webkit-text-stroke: 1.5px #000; paint-order: stroke fill; }
.vs { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.pill { background: var(--ink); color: #fff; font-weight: 800; padding: .25rem .8rem; border-radius: 40px; white-space: nowrap; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { background: #fff; border: 2px solid #000; border-radius: 40px; padding: .2rem .75rem; font-weight: 700; }
.atk { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; white-space: nowrap; }
.atk .pct { font-size: .85rem; font-weight: 700; color: var(--muted); }
.star-row { display: inline-flex; gap: .1rem; line-height: 1; }
.star {
  font-size: 1.9rem; color: rgba(0,0,0,.15);
  -webkit-text-stroke: 1.5px rgba(0,0,0,.35); paint-order: stroke fill;
}
.star.on { color: var(--gold); -webkit-text-stroke: 2px #000; text-shadow: 0 2px 0 #000; }
.atk.def .star.on { color: #ef6b5f; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- Fußzeile ---------- */
.footer { background: #000; color: #d6d6d6; padding: 1.5rem 16px; margin-top: 2rem; font-size: .9rem; }
.footer p { max-width: 1100px; margin: .3rem auto; }
.footer .muted { color: #9a9a9a; }

@media (max-width: 600px) {
  .hero { flex-direction: column; text-align: center; }
  .card { padding: 1rem; }
  .score { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- Archiv und Statistik ---------- */
.btn-small { padding: .2rem .8rem; font-size: .85rem; box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 2px 0 #000; }
.result { font-weight: 800; padding: .1rem .6rem; border-radius: 40px; border: 2px solid #000; background: #eee; white-space: nowrap; font-size: .85rem; }
.result-win { background: #8fd47f; }
.result-lose { background: #f19a90; }
.result-tie { background: #f6d98a; }
.result-run { background: var(--sky); }
.note { background: var(--sky); border: 2px solid #000; border-radius: 10px; padding: .5rem .8rem; font-weight: 700; }
.small-th { font-size: .8rem; min-width: 1.6rem; margin-left: .3rem; }
.table thead th.num { text-align: right; }
.result-cwl { background: #d9c2f0; }

/* ---------- Clan-Auswahl ---------- */
.clan-switch select {
  font: 800 1rem var(--text); color: var(--ink);
  background: var(--gold); border: 2px solid #000; border-radius: 40px;
  padding: .4rem 2.2rem .4rem 1rem; cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 2px 0 #000;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.clan-switch button { margin-left: .4rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Spielerseite ---------- */
.player-link { text-decoration: none; border-bottom: 2px solid var(--gold-dark); }
.player-link:hover { background: var(--gold); }
.th-big { font: 2.4rem var(--display); min-width: 4.5rem; padding: .6rem .4rem; border-width: 3px; border-radius: 14px; box-shadow: 0 3px 0 #000; }
.labels { margin: 0 0 .4rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.chip-sm { display: inline-block; font-size: .8rem; font-weight: 700; background: #fff; border: 1.5px solid #000; border-radius: 40px; padding: .05rem .5rem; margin: .1rem .2rem .1rem 0; white-space: nowrap; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.section-head .clash { margin: 0; }
.stack { display: grid; gap: 1.5rem; align-content: start; }
.levels { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.levels li { display: grid; grid-template-columns: minmax(7rem, 1fr) 2fr auto; gap: .6rem; align-items: center; }
.levels .lv-name { font-weight: 700; overflow-wrap: anywhere; }
.levels .lv-num { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; min-width: 4.2rem; }
.levels .lv-equip { grid-column: 1 / -1; margin-top: -.2rem; }
.levels li.maxed .lv-num { color: var(--gold-dark); }
progress { appearance: none; width: 100%; height: 14px; border: 2px solid #000; border-radius: 8px; background: rgba(0,0,0,.12); overflow: hidden; }
progress::-webkit-progress-bar { background: rgba(0,0,0,.12); }
progress::-webkit-progress-value { background: linear-gradient(#ffd96b, var(--gold)); }
progress::-moz-progress-bar { background: linear-gradient(#ffd96b, var(--gold)); }
.levels li.maxed progress::-webkit-progress-value { background: linear-gradient(#9de08f, var(--green)); }
.levels li.maxed progress::-moz-progress-bar { background: linear-gradient(#9de08f, var(--green)); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0; }
.facts dt { color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; font-weight: 800; text-align: right; }
details summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "▸"; font-size: 1.4rem; }
details[open] summary::before { content: "▾"; }
.clash.inline { display: inline; margin: 0; }
.achievements { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.achievements li { display: flex; gap: .6rem; align-items: flex-start; }
.small-stars .star { font-size: 1.1rem; -webkit-text-stroke-width: 1px; }
@media (max-width: 600px) {
  .levels li { grid-template-columns: 1fr auto; }
  .levels progress { grid-column: 1 / -1; grid-row: 2; }
}
.stats.compact { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-bottom: .5rem; }
.dir { font-weight: 800; white-space: nowrap; }
.dir-atk { color: var(--gold-dark); }
.dir-def { color: var(--red); }
.loot { white-space: nowrap; font-variant-numeric: tabular-nums; }
.loot::after { content: ""; display: inline-block; width: .7em; height: .7em; margin-left: .3em; border: 1.5px solid #000; border-radius: 50%; vertical-align: -.05em; }
.loot-gold::after { background: #f6c936; }
.loot-elixir::after { background: #d34fd8; }
.loot-dark::after { background: #3b2a4a; }
details.season { border: 2px solid #000; border-radius: 12px; background: rgba(255,255,255,.3); margin: .75rem 0; }
details.season > summary { padding: .6rem .9rem; display: grid; grid-template-columns: auto 1fr; gap: .1rem 1rem; align-items: baseline; }
details.season > summary::before { grid-row: span 2; }
details.season .season-title { font: 1.15rem var(--display); }
details.season .season-meta { grid-column: 2; font-weight: 700; }
details.season[open] > summary { border-bottom: 2px solid #000; }
details.season .table-wrap { padding: .5rem; }

/* ---------- Kriegsanmeldung ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .9rem; }
.filter { text-decoration: none; font-weight: 800; padding: .3rem .9rem; border: 2px solid #000; border-radius: 40px; background: #fff; }
.filter:hover { background: var(--gold); }
.filter.active { background: var(--ink); color: #fff; }
.war-pref { display: inline-block; font-weight: 800; font-size: .85rem; padding: .1rem .55rem; border: 2px solid #000; border-radius: 40px; white-space: nowrap; }
.war-in { background: #8fd47f; }
.war-out { background: #f19a90; }

/* ---------- CWL-Planer ---------- */
.planner { display: grid; grid-template-columns: minmax(300px, 2fr) 3fr; gap: 1.5rem; align-items: start; }
.planner-list { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); display: flex; flex-direction: column; }
.planner-filters { display: grid; gap: .6rem; margin-bottom: .6rem; }
.planner-filters .filter-bar { margin: 0; }
.planner-filters button.filter { font: inherit; font-weight: 800; cursor: pointer; color: var(--ink); }
.planner-filters button.filter.active { color: #fff; }
.filter-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.planner input[type="search"], .planner input[type="text"], .planner select {
  font: 700 1rem var(--text); color: var(--ink); background: #fff;
  border: 2px solid #000; border-radius: 10px; padding: .4rem .6rem; max-width: 100%;
}
.planner input[type="search"] { width: 100%; }
.check { display: inline-flex; gap: .35rem; align-items: center; font-weight: 700; }
.pl-list { list-style: none; margin: 0; padding: .3rem; overflow-y: auto; flex: 1; min-height: 200px; border-radius: 10px; }
.pl-item {
  display: flex; gap: .5rem; align-items: center;
  background: #fff; border: 2px solid #000; border-radius: 10px; padding: .35rem .5rem; margin-bottom: .35rem;
  cursor: grab; user-select: none; box-shadow: 0 2px 0 #000;
}
.pl-item:active { cursor: grabbing; }
.pl-item.is-assigned { opacity: .55; }
.pl-item.selected { outline: 3px solid var(--gold-dark); outline-offset: 1px; background: #fff6d6; opacity: 1; }
.pl-item.dragging { opacity: .4; }
.pl-item.reserve { border-style: dashed; background: #f3ece2; }
.pl-item.unknown { color: var(--muted); }
.pl-item .war-pref { font-size: .8rem; padding: 0 .4rem; }
.pl-main { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.pl-stats { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-size: .8rem; font-weight: 800; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-three { color: #9a6b00; }
.st-stars { color: #1f5fa8; }
.st-destr { color: #a3352b; }
.pl-assigned { display: inline-block; margin-top: .15rem; font-size: .75rem; font-weight: 800; background: var(--sky); border: 1.5px solid #000; border-radius: 40px; padding: 0 .45rem; white-space: nowrap; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; }
.pl-remove { font: 800 1.1rem var(--text); line-height: 1; width: 1.8rem; height: 1.8rem; border: 2px solid #000; border-radius: 50%; background: #f19a90; cursor: pointer; }
.pl-empty { padding: .5rem; }
.planner-lineups { display: grid; gap: 1.5rem; }
.form-row { display: flex; gap: .8rem; flex-wrap: wrap; align-items: flex-end; }
.form-row label { display: grid; gap: .2rem; font-weight: 800; }
.form-row button.btn { font: inherit; font-weight: 800; cursor: pointer; }
.lu-list { display: grid; gap: 1.5rem; }
.lineup-meta { margin: 0 0 .6rem; }
.lu-zone { list-style: none; margin: 0; padding: .5rem; min-height: 90px; border: 3px dashed rgba(0,0,0,.35); border-radius: 12px; background: rgba(255,255,255,.35); counter-reset: pos; }
.lu-zone .pl-item { counter-increment: pos; }
.lu-zone .pl-item::before { content: counter(pos) "."; font: 1rem var(--display); color: var(--muted); min-width: 1.8rem; }
.lu-hint { color: var(--muted); font-weight: 700; text-align: center; padding: 1.5rem 0; }
.dropzone.drop-over { background: #fff6d6; border-color: var(--gold-dark); }
.pill-full { background: var(--green); }
.pill-over { background: var(--red); }
.lineup-actions { display: flex; gap: .6rem; justify-content: space-between; align-items: center; margin-top: .8rem; flex-wrap: wrap; }
.btn-danger { background: #f19a90; }
button.btn { font: inherit; font-weight: 800; cursor: pointer; color: var(--ink); }
.planner-tools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.file-btn { cursor: pointer; position: relative; }
.file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.lu-text { width: 100%; min-height: 10rem; font: .9rem ui-monospace, monospace; border: 2px solid #000; border-radius: 10px; padding: .5rem; }
@media (max-width: 900px) {
  .planner { grid-template-columns: 1fr; }
  .planner-list { position: static; max-height: 70vh; }
}

/* ---------- Login ---------- */
.login-card { max-width: 440px; margin: 0 auto; width: 100%; }
.login-form { display: grid; gap: .8rem; }
.login-form label { display: grid; gap: .2rem; font-weight: 800; }
.login-form input { font: 700 1rem var(--text); border: 2px solid #000; border-radius: 10px; padding: .5rem .7rem; }
.login-form button { font: inherit; font-weight: 800; cursor: pointer; justify-self: start; }
.note-error { background: #f19a90; }
.userbox { display: flex; align-items: center; gap: .5rem; }
.save-state { font-weight: 800; }
.save-state.saving { color: var(--muted); }
.save-state.saved { color: var(--green); }
.save-state.error { color: var(--red); }
.three-rate { font-weight: 800; color: var(--gold-dark); }
.filter-sep { width: 2px; align-self: stretch; background: rgba(0,0,0,.25); margin: 0 .3rem; }

/* ---------- Liga-Icons ---------- */
.league-cell { width: 44px; text-align: center; padding-left: .3rem; padding-right: .3rem; }
.league-icon { width: 32px; height: 32px; object-fit: contain; vertical-align: middle; filter: drop-shadow(0 1px 0 rgba(0,0,0,.35)); }
.pl-item .league-icon { width: 30px; height: 30px; }
.pl-item .league-wrap { flex: none; }
.pl-league-empty { width: 30px; flex: none; }
.opp-league { width: 28px; height: 28px; margin-right: .4rem; vertical-align: -8px; }
.hero-side { display: flex; flex-direction: column; align-items: center; gap: .6rem; flex: none; }
.league-big { width: clamp(56px, 7vw, 72px); height: clamp(56px, 7vw, 72px); }
@media (max-width: 600px) { .hero-side { flex-direction: row; } }

/* ---------- Stufen-Abzeichen (Legende I–III) im Stil der Kriegsliga-Symbole ---------- */
.league-wrap { position: relative; display: inline-block; line-height: 0; vertical-align: middle; }
.league-wrap .league-icon { display: block; }
.tier-badge {
  /* Maße für kleine Symbole (~30 px); große Symbole skalieren über die Variablen */
  --bar-w: 2px; --bar-h: 9px; --gap: 2px; --pad: 3px;
  position: absolute; right: -4px; bottom: -3px;
  display: flex; align-items: center; gap: var(--gap);
  padding: var(--pad) calc(var(--pad) + 1px);
  background: linear-gradient(#3c3c3c, #111);
  border: 1.5px solid #f2f2f2; border-radius: 3px;
  box-shadow: 0 0 0 1px #000, 0 1px 1px rgba(0,0,0,.5);
}
.tier-badge i { display: block; width: var(--bar-w); height: var(--bar-h); background: #fff; border-radius: 1px; }
.league-big .tier-badge { --bar-w: 3px; --bar-h: 14px; --gap: 3px; --pad: 4px; right: -5px; bottom: -3px; border-width: 2px; border-radius: 4px; }
.league-big .league-icon { width: 100%; height: 100%; }

/* ---------- Rathaus-Bilder ---------- */
.th-icon { width: 32px; height: 32px; object-fit: contain; vertical-align: middle; filter: drop-shadow(0 1px 0 rgba(0,0,0,.3)); }
img.th-icon[width="24"] { width: 24px; height: 24px; }
.th-icon-big { width: clamp(64px, 8vw, 84px); height: clamp(64px, 8vw, 84px); }
.pl-item .th-icon { width: 30px; height: 30px; flex: none; }
.th-col { text-align: center; width: 44px; padding-left: .2rem; padding-right: .2rem; }
.table thead th.th-col { text-align: center; }

/* ---------- Verwaltung ---------- */
.admin-table td { vertical-align: middle; }
.inline-form { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; margin: 0; }
.inline-form input[type="password"], .admin-form input { font: 700 .95rem var(--text); border: 2px solid #000; border-radius: 8px; padding: .3rem .5rem; }
.admin-form { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; }
.admin-form label { display: grid; gap: .2rem; font-weight: 800; }
.admin-checks { display: flex; gap: .8rem; flex-wrap: wrap; padding-bottom: .4rem; }
.admin-sub { margin: 1.4rem 0 .6rem; font: 1.15rem var(--display); }
.perm-form .check { font-size: .85rem; }
button.btn-small { font: inherit; font-weight: 800; cursor: pointer; }
/* Planer im Nur-ansehen-Modus */
.readonly .lineup-form, .readonly .lu-resize, .readonly .lineup-actions .btn-danger,
.readonly .pl-remove, .readonly #lu-reset, .readonly .file-btn { display: none; }
.readonly .pl-item { cursor: default; }

/* ---------- Personen ---------- */
.person-card .facts dd { text-align: left; }
.linked-acc { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .3rem; }
.person-forms { display: grid; gap: 1rem; margin-top: 1rem; }
.person-forms select { font: 700 .95rem var(--text); border: 2px solid #000; border-radius: 8px; padding: .3rem .5rem; max-width: 100%; }
.real-name { font-weight: 800; color: darkgoldenrod; }
.alt-count { font-weight: 800; color: darkgrey; }
.clan-checks { border: 0; margin: 0; padding: 0; display: grid; gap: .3rem; }
.clan-check { display: flex; align-items: center; gap: .5rem; font-weight: 800; }
.clan-check-name { flex: 1; }
.clan-check-count { font-size: .8rem; }
.sort-label { display: block; margin-top: .2rem; }
.planner-filters .sort-bar { flex-wrap: nowrap; gap: .4rem; }
.sort-bar .filter { padding: .3rem .7rem; white-space: nowrap; }
