/* GoalEleven – Richtung B „Matchday-Programm“: hell, warm, wie ein gedrucktes Matchprogramm */

/* Schriften (SIL Open Font License, selbst gehostet in fonts/) */
@font-face { font-family: 'Barlow'; src: url(fonts/barlow-500.woff2) format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url(fonts/barlow-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url(fonts/barlow-700.woff2) format('woff2'); font-weight: 700 900; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url(fonts/barlow-condensed-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url(fonts/barlow-condensed-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url(fonts/barlow-condensed-800.woff2) format('woff2'); font-weight: 800 900; font-display: swap; }
@font-face { font-family: 'Zilla Slab'; src: url(fonts/zilla-slab-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* Papier */
  --bg: #f1e9d7;      /* Seitengrund (Papier) */
  --bg2: #e7ddc7;     /* dunkleres Papier: Balken-Grund, Felder */
  --card: #fffcf3;    /* Blatt */
  --card2: #f6efe0;   /* Fläche im Blatt */
  --line: #e3d7bd;
  --line2: #c9ba99;
  --text: #1f1b14;    /* Druckschwarz */
  --muted: #675c4a;
  /* Druckfarben */
  --green: #1f7a3f; --green2: #17632f; --green-dk: #0f4321; --green-lt: #e2f0df;
  --gold: #e0a514; --gold-lt: #fbedc3;
  --red: #c8302c; --red-dk: #7e1a17;
  --amber: #c77a00;
  --blue: #2b5ca8;
  --navy: #1b3160; --navy-dk: #0d1b38;
  --head: #15462a;    /* Kopfband */
  --pitch: #2f7f3c; --pitch2: #37894a;
  /* Textfarben für Hinweise (in app.js verwendet) */
  --c-hint: #875a00; --c-warn: #93500a; --c-pos: #1b7a3a; --c-neg: #b3261e;
  /* Schriften */
  --f-text: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-cond: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --f-slab: 'Zilla Slab', Rockwell, Georgia, serif;
  --radius: 10px; --nav-h: 66px;
  --shadow: 0 1px 0 rgba(90, 65, 20, .06), 0 2px 7px rgba(90, 65, 20, .09);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 500 16px/1.45 var(--f-text); }
body {
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); min-height: 100vh;
  /* feines Papierkorn */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .12 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.no-nav { padding-bottom: 0; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--green2); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Symbole */
.i { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -.24em; flex: none; }
.i.ib { width: 1.05em; height: 1.05em; vertical-align: -.17em; }
.i-check, .i-up, .i-sprout { color: var(--green); }
.i-warn, .i-knock, .i-hourglass { color: var(--amber); }
.i-trophy, .i-star { color: #c58a00; }
.i-injury, .i-down, .i-cross { color: var(--red); }
.btn .i, .chip.on .i, .pill .i, .nav .i, .hdr .i, .toast .i { color: inherit; }

/* Kopf (Titelband wie ein Matchprogramm) + Navigation */
.hdr {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; min-height: 62px;
  padding: 8px 12px 8px 14px; margin-bottom: 7px; color: #fff;
  background: var(--head) repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 34px, rgba(0,0,0,0) 34px 68px);
  box-shadow: 0 3px 0 var(--gold), 0 6px 0 var(--red), 0 9px 14px rgba(40, 25, 5, .16);
}
.hdr .ttl { flex: 1; min-width: 0; }
.hdr .ttl b { display: block; font: 700 21px/1.12 var(--f-slab); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .005em; }
.hdr .ttl small { display: block; color: #cfe3cf; font: 600 14.5px/1.25 var(--f-cond); letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr .brand { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--head); box-shadow: 0 0 0 2px var(--gold); }
.hdr .brand .i { width: 30px; height: 30px; }
.hdr .badge.crest { width: 38px; height: 44px; font-size: 13px; }
.hdr .back, .hdr .ico {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; flex: none;
  min-width: 48px; height: 48px; padding: 0 6px; border-radius: 9px; cursor: pointer; color: #fff;
  border: 1.5px solid rgba(255,255,255,.4); background: rgba(255,255,255,.09); font: 700 12px/1 var(--f-cond); letter-spacing: .04em;
}
.hdr .back { flex-direction: row; gap: 3px; padding: 0 12px 0 6px; max-width: 46%; font-size: 17px; letter-spacing: .02em; }
.hdr .back span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr .back .i { width: 24px; height: 24px; }
.hdr .ico .i { width: 22px; height: 22px; }
.hdr .back:active, .hdr .ico:active { background: rgba(255,255,255,.22); }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: var(--card);
  border-top: 1px solid var(--line2); box-shadow: 0 -4px 16px rgba(70, 50, 15, .12); padding-bottom: env(safe-area-inset-bottom);
}
.nav button {
  flex: 1; min-width: 0; background: none; border: 0; color: var(--muted); padding: 7px 1px 8px; cursor: pointer;
  font: 600 13.5px/1.1 var(--f-cond); letter-spacing: .01em; display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-height: var(--nav-h); justify-content: center;
}
.nav button span { position: relative; display: grid; place-items: center; width: 48px; height: 30px; border-radius: 15px; }
.nav button .i { width: 24px; height: 24px; }
.nav button.on { color: var(--green2); font-weight: 700; }
.nav button.on span { background: var(--green); color: #fff; box-shadow: inset 0 -2px 0 rgba(0,0,0,.22); }
body.no-nav .nav { display: none; }
.nav .side { display: none; }

/* PC: Leiste links statt unten (Verein oben, weitere Seiten, Kasse unten) */
@media (min-width: 1024px) {
  body:not(.no-nav) { padding-bottom: 0; padding-left: 236px; }
  .nav {
    top: 0; right: auto; width: 236px; flex-direction: column; align-items: stretch; justify-content: flex-start !important; gap: 3px;
    padding: 14px 12px calc(14px + env(safe-area-inset-bottom)); border-top: 0; border-right: 1px solid var(--line2); box-shadow: 4px 0 18px rgba(70, 50, 15, .09); overflow-y: auto;
  }
  .nav button, .nav button.side { display: flex; flex: none !important; flex-direction: row; justify-content: flex-start; gap: 10px; min-height: 48px; padding: 4px 10px 4px 6px; border-radius: 9px; font-size: 18px; text-align: left; }
  .nav button span { width: 42px; height: 34px; flex: none; }
  .nav button:hover { background: var(--card2); }
  .nav button.on { background: var(--green-lt); }
  .nav .side-club { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; margin-bottom: 8px; border-bottom: 2px solid var(--text); }
  .nav .side-club b { display: block; font: 700 18px/1.15 var(--f-slab); }
  .nav .side-club small { display: block; color: var(--muted); font: 600 14px/1.2 var(--f-cond); }
  .nav .side-sep { display: block; height: 0; margin: 8px 6px; border-top: 1px solid var(--line2); }
  .nav .side-money { display: block; margin-top: auto; padding: 12px 8px 4px; border-top: 1px solid var(--line2); color: var(--muted); font: 600 15px/1.3 var(--f-cond); }
  .nav .side-money b { display: block; color: var(--text); font: 800 22px/1.1 var(--f-cond); }
  .sheet { left: 236px; }
}

/* Grundraster, Blätter */
.wrap { max-width: 760px; margin: 0 auto; padding: 16px 14px 28px; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card.hl { border-top: 5px solid var(--green); }
.card.warn { border-left: 6px solid var(--amber); background: #fff6e3; }
.card.live { border-top: 6px solid var(--red); }
/* ganze Karte antippbar: leicht anheben, „Spielbericht ›“ als Knopf */
.card[data-act] { cursor: pointer; transition: transform .08s, box-shadow .15s; }
.card[data-act]:hover { box-shadow: 0 2px 0 rgba(90, 65, 20, .08), 0 6px 16px rgba(90, 65, 20, .14); }
.card[data-act]:active { transform: translateY(1px); }
.card[data-act] > .center.tiny:last-child { width: fit-content; margin: 12px auto 0 !important; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--card2); color: var(--green2); font: 700 15.5px/1 var(--f-cond); letter-spacing: .02em; }
/* Rubrik-Titel wie in der Sportzeitung */
.sec { display: flex; align-items: center; gap: 8px; font: 700 19px/1.2 var(--f-slab); color: var(--text); margin: 0 0 12px; }
.sec::before { content: ''; flex: none; width: 5px; height: 18px; border-radius: 1px; background: var(--red); }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrapx { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.tiny { font-size: 13px; }
.center { text-align: center; }
.big { font: 800 34px/1.05 var(--f-cond); font-variant-numeric: tabular-nums; }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nowrap { white-space: nowrap; flex-shrink: 0; }
.hide { display: none !important; }
h1 { font: 700 27px/1.15 var(--f-slab); margin: 8px 0 4px; }
h2 { font: 700 21px/1.2 var(--f-slab); margin: 0 0 8px; }

/* Knöpfe: klare Rangfolge – grün = Hauptaktion, umrandet = Nebenaktion */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 9px; padding: 10px 18px;
  background: var(--green); color: #fff; font: 700 18px/1.1 var(--f-cond); letter-spacing: .02em; cursor: pointer; min-height: 50px;
  text-decoration: none; box-shadow: 0 3px 0 var(--green-dk), 0 4px 8px rgba(15, 67, 33, .18); margin-bottom: 3px; transition: transform .06s, box-shadow .06s, filter .15s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--green-dk); }
.btn .i { width: 21px; height: 21px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.sec2 { background: var(--card); color: var(--text); border: 2px solid var(--text); box-shadow: 0 3px 0 var(--text); }
.btn.sec2:active { box-shadow: 0 1px 0 var(--text); }
.btn.danger { background: var(--red); box-shadow: 0 3px 0 var(--red-dk); }
.btn.sm { padding: 6px 14px; min-height: 46px; font-size: 17px; border-radius: 8px; }
.btn.block { width: 100%; }
/* früher kleine Text-Links – jetzt kleine Knöpfe */
.link {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 40px; padding: 4px 14px; border-radius: 999px; cursor: pointer;
  background: var(--card2); border: 1.5px solid var(--line2); color: var(--green2); font: 700 15.5px/1.1 var(--f-cond); letter-spacing: .02em; text-decoration: none;
}
.link:hover { border-color: var(--green); }
.link.small { min-height: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--line2); background: var(--card);
  border-radius: 8px; padding: 8px 14px; font: 600 16.5px/1.1 var(--f-cond); letter-spacing: .01em; color: var(--text); cursor: pointer; min-height: 44px;
  box-shadow: 0 2px 0 var(--line);
}
.chip:hover { border-color: var(--text); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; box-shadow: 0 2px 0 var(--navy-dk); }
.chip .i { width: 19px; height: 19px; }
.in { width: 100%; background: #fff; border: 1.5px solid var(--line2); border-radius: 8px; padding: 11px 12px; min-height: 50px; font-size: 16.5px; }
.in:focus { outline: 3px solid rgba(31, 122, 63, .3); border-color: var(--green); }
.lbl { display: block; font: 700 15.5px/1.2 var(--f-cond); letter-spacing: .02em; color: var(--muted); margin: 14px 0 6px; }
.err { color: var(--c-neg); font-size: 14.5px; font-weight: 600; min-height: 18px; margin-top: 8px; }
select.in { appearance: auto; }

/* Vereinswappen (Schild; ohne SVG: runder Knopf wie bisher) */
.badge { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; flex: none; font: 800 12px/1 var(--f-cond); letter-spacing: .01em; border: 2px solid rgba(0,0,0,.2); }
.badge.lg { width: 56px; height: 56px; font-size: 18px; }
.badge.sm { width: 24px; height: 24px; font-size: 9px; border-width: 1px; }
.badge.crest { border: 0; border-radius: 0; width: 34px; height: 40px; background: none; }
.badge.crest.lg { width: 56px; height: 66px; }
.badge.crest.sm { width: 24px; height: 28px; font-size: 9.5px; }
.badge.crest svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 1px rgba(40, 25, 5, .3)); }
.badge.crest b { position: relative; margin-top: -3px; font-weight: 800; }
.badge.crest.sm .pipe { display: none; }

/* Anzeigetafel */
.score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center; }
.score .t { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; font: 700 17px/1.15 var(--f-cond); }
.score .t span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.score .res {
  font: 800 42px/1 var(--f-cond); letter-spacing: .06em; font-variant-numeric: tabular-nums; min-width: 96px; padding: 9px 14px 7px; border-radius: 7px;
  background: #1c1d19; color: #ffd54a; text-shadow: 0 0 12px rgba(255, 200, 40, .35);
  box-shadow: inset 0 0 0 2px #3c3d36, inset 0 10px 16px rgba(255,255,255,.04), 0 3px 0 rgba(0,0,0,.25);
}
.score .res .muted, .score .res .small { color: #d9d0b0; letter-spacing: .02em; text-shadow: none; font: 700 14px var(--f-cond); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font: 700 14.5px/1.15 var(--f-cond); letter-spacing: .02em; background: var(--card2); border: 1.5px solid var(--line2); color: var(--text); }
.pill .i { width: 16px; height: 16px; }
.pill.live { background: var(--red); border-color: var(--red); color: #fff; animation: pulse 1.6s infinite; }
.pill.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.pill.ok { background: var(--green-lt); border-color: #9cc99d; color: var(--c-pos); }
.pill.warn { background: #fdebc8; border-color: #e3ad55; color: var(--c-warn); }
@keyframes pulse { 50% { opacity: .7; } }

/* Eintrittskarte: nächstes Spiel (Übersicht) */
.card.hl:has(> .row > .badge.lg) { border: 1px solid var(--line2); border-top: 0; padding-top: 0; overflow: visible; }
.card.hl:has(> .row > .badge.lg) > .sec {
  margin: 0 -16px 14px; padding: 11px 16px; border-radius: var(--radius) var(--radius) 0 0; color: #fff; font-size: 18px;
  background: var(--green) repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 26px, rgba(0,0,0,0) 26px 52px);
}
.card.hl:has(> .row > .badge.lg) > .sec::before { background: var(--gold); }
.card.hl:has(> .row > .badge.lg) > .row:last-child { margin-top: 16px !important; padding-top: 14px; border-top: 2px dashed var(--line2); }
.card.hl:has(> .row > .badge.lg)::before, .card.hl:has(> .row > .badge.lg)::after {
  content: ''; position: absolute; bottom: 67px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line2);
}
.card.hl:has(> .row > .badge.lg)::before { left: -13px; clip-path: inset(-2px -2px -2px 50%); }
.card.hl:has(> .row > .badge.lg)::after { right: -13px; clip-path: inset(-2px 50% -2px -2px); }
.card.hl:has(> .row > .badge.lg) > .row > .badge.lg + .grow b { font: 700 23px/1.1 var(--f-slab) !important; }

/* Tabelle wie in der Zeitung */
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th { text-align: right; color: var(--text); font: 700 13px/1.2 var(--f-cond); letter-spacing: .05em; text-transform: uppercase; padding: 6px 4px; border-bottom: 2px solid var(--text); }
td { text-align: right; padding: 9px 4px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
td:first-child { font: 700 16px var(--f-cond); }
tbody tr:nth-child(even) td { background: rgba(140, 110, 50, .045); }
th.l, td.l { text-align: left; }
td.l { width: 100%; max-width: 0; }
tr.mine td { background: #fbe39a !important; font-weight: 700; }
tr.up td:first-child { box-shadow: 4px 0 0 var(--green) inset; }
tr.down td:first-child { box-shadow: 4px 0 0 var(--red) inset; }
tr.click { cursor: pointer; }
tr.click:hover td { background: rgba(140, 110, 50, .09); }
.tclub { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tclub span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-dots { display: inline-flex; gap: 2px; }
.form-dots i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.fS { background: var(--green); } .fU { background: #a99a7c; } .fN { background: var(--red); }

/* Listen */
.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 2px; min-height: 54px; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; background: none; text-align: left; width: 100%; color: inherit; }
.item:last-child { border-bottom: 0; }
.list .item:hover { background: rgba(140, 110, 50, .05); }
.card.item { border: 1px solid var(--line); padding: 12px 16px; }
.item > span:first-child > .i:only-child { width: 26px; height: 26px; color: var(--green2); }
.item > span.muted:not(.tiny):last-child { font-size: 26px; line-height: 1; color: #a3937a; }
.tag { display: inline-flex; align-items: center; font: 700 13px/1 var(--f-cond); letter-spacing: .05em; text-transform: uppercase; padding: 4px 7px 3px; border-radius: 4px; background: var(--bg2); color: var(--text); white-space: nowrap; }
.tag.GK { background: #f1b520; color: #2b1f04; } .tag.D { background: var(--navy); color: #fff; } .tag.M { background: var(--green); color: #fff; } .tag.W { background: #6a3d9a; color: #fff; } .tag.F { background: var(--red); color: #fff; }
.skillchips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.sk { display: inline-flex; align-items: center; gap: 5px; font: 600 14.5px/1.2 var(--f-cond); padding: 2px 3px 2px 7px; border-radius: 5px; background: var(--card2); border: 1px solid var(--line); color: var(--muted); }
.sk:not(:has(b)) { padding-right: 7px; }
.sk b { color: var(--text); }

/* Zahlen als Farb-Plakette: Hintergrund = Wertfarbe (aus valColor), Ziffern immer dunkel → auch Gelb gut lesbar */
.sk b[style*="color:#"], .slot .val b, .item > b[style*="color:#"], .note {
  background: currentColor; -webkit-text-fill-color: var(--text); border-radius: 4px; padding: 1px 5px;
  font-family: var(--f-cond); font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: inset 0 -2px 0 rgba(0,0,0,.16);
}
.item > b[style*="color:#"] { font-size: 17px; padding: 3px 7px 2px; min-width: 48px; text-align: center; }

/* Fähigkeits-Balken (alt) */
.bar { height: 8px; border-radius: 6px; background: var(--bg2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: var(--green); }
.stars { color: var(--gold); letter-spacing: -1px; white-space: nowrap; }

/* Spielfeld (Aufstellung) – Taktiktafel mit Magnet-Kärtchen */
.pitch {
  position: relative; border-radius: 6px; padding: 16px 6px 22px; margin-top: 4px; overflow: hidden;
  background: repeating-linear-gradient(180deg, var(--pitch) 0 44px, var(--pitch2) 44px 88px);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.75), 0 0 0 5px #e4d9c1, 0 0 0 6px var(--line2);
  margin-left: 6px; margin-right: 6px;
}
.pitch::before { content: ''; position: absolute; left: 50%; top: -48px; width: 104px; height: 96px; margin-left: -52px; border: 2px solid rgba(255,255,255,.6); border-radius: 50%; }
.pitch::after { content: ''; position: absolute; left: 24%; right: 24%; bottom: 0; height: 46px; border: 2px solid rgba(255,255,255,.6); border-bottom: 0; }
.prow { display: flex; justify-content: space-around; gap: 5px; margin: 12px 0; position: relative; z-index: 1; }
.slot {
  flex: 1; max-width: 118px; min-width: 0; min-height: 64px; padding: 0 3px 6px; text-align: center; cursor: pointer; overflow: hidden;
  background: #fffcf3; color: var(--text); border: 0; border-radius: 6px; box-shadow: 0 2px 0 rgba(0,0,0,.3), 0 5px 10px rgba(0,0,0,.18);
}
.slot .pos { margin: 0 -3px 4px; padding: 3px 2px 2px; background: var(--navy); color: #fff; font: 700 12px/1.1 var(--f-cond); letter-spacing: .06em; }
.slot .nm { font: 700 15px/1.15 var(--f-cond); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot .nm .i { width: 14px; height: 14px; }
.slot .val { font: 700 13px/1.2 var(--f-cond); margin-top: 3px; color: var(--muted); }
.slot .val b { font-size: 14px; padding: 1px 5px; }
.slot.empty { background: rgba(255,255,255,.12); border: 2px dashed rgba(255,255,255,.8); color: #fff; box-shadow: none; }
.slot.empty .pos { background: rgba(0,0,0,.25); }
.slot.bad { background: #ffe9c2; box-shadow: 0 0 0 3px var(--amber), 0 5px 10px rgba(0,0,0,.18); }
.slot .ord { font-size: 11px; background: var(--gold); color: var(--text); border-radius: 3px; padding: 0 4px; letter-spacing: .02em; }
/* Aufstellung: Auswahl, Ziel-Vorschau, Bank/Reserve, Ziehen & Ablegen */
.lu-tabs { position: sticky; top: 72px; z-index: 15; }
.lu-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.seg2 { display: inline-flex; border: 2px solid var(--navy); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 0 var(--navy-dk); }
.seg2 button { border: 0; background: var(--card); color: var(--navy); font: 700 17px/1 var(--f-cond); padding: 0 14px; min-height: 44px; cursor: pointer; }
.seg2 button.on { background: var(--navy); color: #fff; }
.lu-str { display: flex; align-items: baseline; gap: 5px; font: 800 22px/1 var(--f-cond); font-variant-numeric: tabular-nums; }
.lu-str .opp { color: var(--blue); }
.lu-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 12px; margin-bottom: 10px; border-radius: 9px; background: #e3eaf7; border: 1.5px solid var(--navy); font-size: 15px; }
.lu-info.hint { background: var(--card2); border-color: var(--line2); color: var(--muted); font-size: 14px; }
.lu-info .link { min-height: 38px; }
.slot, .pc { user-select: none; -webkit-user-select: none; position: relative; }
.slot.sel, .pc.sel { outline: 3px solid var(--navy); outline-offset: 2px; transform: translateY(-2px); }
.slot.tgt.good, .pc.tgt.good { box-shadow: 0 0 0 3px #3fb35f, 0 5px 10px rgba(0,0,0,.18); }
.slot.tgt.ok, .pc.tgt.ok { box-shadow: 0 0 0 3px var(--gold), 0 5px 10px rgba(0,0,0,.18); }
.slot.tgt.weak, .pc.tgt.weak { opacity: .72; }
.slot.hover, .pc.hover { outline: 3px dashed var(--navy); outline-offset: 2px; }
.pv { margin-top: 3px; font: 700 12.5px/1.15 var(--f-cond); color: var(--text); white-space: nowrap; }
.pv i { font-style: normal; }
.pv.good i { color: var(--c-pos); } .pv.ok i { color: var(--c-warn); } .pv.weak i { color: var(--c-neg); }
.slot.empty .pv { color: #fff; } .slot.empty .pv i { color: #fff; }
.bdg { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 3px; border-radius: 50%; font: 800 11px/1 var(--f-cond); vertical-align: 1px; -webkit-text-fill-color: currentColor; }
.bdg.c { background: var(--gold); color: var(--text); } .bdg.s { background: #0f8a86; color: #fff; }
.bdg.st { background: var(--navy); color: #ffd54a; font-size: 11px; }
.lu-info.pin { background: #fbedc3; border-color: var(--gold); }
.lu-stamm { display: flex; align-items: center; gap: 6px; width: 100%; margin: 0 0 10px; padding: 6px 6px 6px 12px; border-radius: 9px; cursor: pointer; text-align: left;
  background: var(--card); border: 1.5px solid var(--line2); font: 500 15px/1.3 var(--f-text); color: var(--text); min-height: 48px; }
.lu-stamm .ellip { min-width: 0; color: var(--muted); }
.lu-stamm .link { min-height: 36px; flex: none; }
.plain { background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; cursor: pointer; min-width: 0; }
.link.inl { min-height: 0; padding: 0 8px; font-size: 14px; vertical-align: baseline; }
/* Regeln: Voreinstellungen, Reihenfolgen, Vorlagen */
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.preset { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 10px 12px; min-height: 76px; cursor: pointer; border-radius: 9px;
  background: var(--card); border: 1.5px solid var(--line2); box-shadow: 0 2px 0 var(--line); color: var(--text); }
.preset b { font: 700 17px/1.15 var(--f-cond); }
.preset .tiny { color: var(--muted); line-height: 1.3; }
.preset.on { border-color: var(--green); box-shadow: 0 0 0 2px var(--green) inset, 0 2px 0 var(--green-dk); background: var(--green-lt); }
.rank { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 14px/1 var(--f-cond); }
.list .item .link.small { min-height: 38px; min-width: 40px; padding: 2px 10px; }
.range { width: 100%; accent-color: var(--green); margin: 6px 0 2px; min-height: 32px; }
.tpl { padding: 12px; margin-top: 10px; border: 1.5px solid var(--line2); border-radius: 9px; background: var(--card2); }
.tpl.on { border-color: var(--green); background: var(--green-lt); }
.tpl .chip { min-height: 38px; padding: 5px 11px; font-size: 15px; }
.lu-btns { margin-top: 12px; }
.lu-btns .btn:disabled { opacity: .45; }
.lu-sec { display: flex; align-items: baseline; gap: 8px; margin: 14px 2px 6px; font: 700 18px/1.2 var(--f-slab); }
.lu-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x proximity; }
.pc {
  flex: none; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px 6px; scroll-snap-align: start;
  background: var(--card); border: 1.5px solid var(--line2); border-radius: 8px; cursor: pointer; text-align: center; box-shadow: 0 2px 0 var(--line);
}
.pc .nm { font: 700 15px/1.1 var(--f-cond); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc .val b { font-size: 15px; padding: 1px 6px; }
.pc .val b[style*="color:#"] { background: currentColor; -webkit-text-fill-color: var(--text); border-radius: 4px; font-family: var(--f-cond); font-weight: 700; }
.pc.empty { border-style: dashed; color: var(--muted); justify-content: center; min-height: 92px; box-shadow: none; }
.pc.bad { background: #fff1d6; }
.lu-ghost { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; opacity: .92; transform-origin: 0 0; box-shadow: 0 12px 26px rgba(0,0,0,.3) !important; }
body.lu-dragging, body.lu-dragging * { cursor: grabbing !important; user-select: none; }
.item .pos { color: var(--c-pos); font-weight: 700; } .item .neg { color: var(--c-neg); font-weight: 700; }
@media (min-width: 1024px) {
  .wrap.lu { max-width: 1120px; }
  .lu-grid { display: grid; grid-template-columns: minmax(420px, 560px) 1fr; gap: 22px; align-items: start; }
  .lu-right { position: sticky; top: 130px; }
  .lu-right .lu-strip { flex-wrap: wrap; overflow: visible; }
  .lu-right .lu-sec:first-child { margin-top: 0; }
  .lu-tabs { top: 70px; }
}
.cmp { display: grid; grid-template-columns: 52px 1fr 52px; gap: 8px; align-items: center; font-size: 14px; padding: 8px 0 4px; }
.cmp b { font: 700 18px/1 var(--f-cond); font-variant-numeric: tabular-nums; }
.cmp .l { text-align: right; } .cmp .c { text-align: center; color: var(--muted); font-size: 14px; line-height: 1.25; }
.cmpbar { display: flex; gap: 2px; height: 9px; border-radius: 5px; overflow: hidden; background: var(--bg2); }
.cmpbar i:first-child { background: var(--green); } .cmpbar i:last-child { background: var(--blue); }

/* Live-Ticker */
.ticker { display: flex; flex-direction: column; }
.ev { display: grid; grid-template-columns: 46px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line2); font-size: 16px; align-items: start; }
.ev .m { font: 700 15px/1 var(--f-cond); text-align: center; padding: 5px 0 4px; border-radius: 4px; background: var(--bg2); color: var(--text); font-variant-numeric: tabular-nums; }
.ev.side-h .m, .ev.side-me .m { background: var(--green); color: #fff; }
.ev.side-a .m, .ev.side-opp .m { background: var(--blue); color: #fff; }
.ev.goal.side-opp { background: #e2e9f5; border-left-color: var(--blue); }
/* eigene Mannschaft immer grün: als Gast die Farben der Vergleichsbalken tauschen */
.swap .cmpbar i:first-child { background: var(--blue); } .swap .cmpbar i:last-child { background: var(--green); }
.ev.goal { background: #e3f0de; border-left: 5px solid var(--green); border-bottom: 0; border-radius: 0 7px 7px 0; padding: 12px 10px 12px 6px; margin: 5px 0; }
.ev.goal.side-a { background: #e2e9f5; border-left-color: var(--blue); }
.ev.goal .txt { font: 700 17.5px/1.35 var(--f-text); }
.ev.key { background: var(--card2); border: 1px solid var(--line); border-radius: 7px; padding: 9px 8px 9px 6px; margin: 5px 0; align-items: center; font: 700 17px/1.3 var(--f-cond); letter-spacing: .01em; }
.ev.key .m { background: var(--text); color: #ffd54a; }
.ev.red .txt::before, .ev.yellow .txt::before { content: ''; display: inline-block; width: 11px; height: 15px; margin-right: 7px; border-radius: 2px; vertical-align: -2px; transform: rotate(8deg); box-shadow: 0 1px 1px rgba(0,0,0,.3); }
.ev.red .txt::before { background: #d42a26; }
.ev.yellow .txt::before { background: #f5c400; }
.ev.injury .txt::before, .ev.knock .txt::before { content: '+'; display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 7px; border-radius: 4px; color: #fff; font: 800 15px/1 var(--f-text); vertical-align: -2px; }
.ev.injury .txt::before { background: var(--red); }
.ev.knock .txt::before { background: var(--amber); content: '!'; }
.tabs { display: flex; gap: 4px; margin-bottom: 14px; padding: 4px; background: var(--bg2); border-radius: 11px; box-shadow: inset 0 1px 2px rgba(70, 50, 15, .15); }
.tabs button { flex: 1; }
.tabs .chip { border: 0; background: transparent; box-shadow: none; min-height: 44px; padding: 6px 8px; }
.tabs .chip.on { background: var(--navy); color: #fff; box-shadow: 0 2px 0 var(--navy-dk); }

/* Unteres Blatt (Auswahl) */
.sheet-bg { position: fixed; inset: 0; background: rgba(35, 25, 10, .5); z-index: 50; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; background: var(--card); border-top-left-radius: 16px; border-top-right-radius: 16px;
  max-height: 86vh; overflow: auto; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 5px solid var(--green);
  max-width: 760px; margin: 0 auto; box-shadow: 0 -12px 30px rgba(0,0,0,.25);
}
.sheet h3 { margin: 4px 0 12px; font: 700 22px/1.2 var(--f-slab); }
/* Kurze Meldung: unten über der Leiste (Mischu: oben verdeckte sie den Spieltag beim Vorspulen) */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom)); z-index: 60; max-width: min(92vw, 640px);
  background: var(--text); color: #fff; border-left: 5px solid #4cc36b; padding: 8px 14px; border-radius: 8px; font: 600 14.5px/1.3 var(--f-text);
  box-shadow: 0 6px 18px rgba(0,0,0,.25); display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
body.no-nav .toast { bottom: calc(16px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .toast { left: calc(50% + 118px); bottom: 20px; } }
.toast.bad { background: var(--red-dk); border-left-color: #ffb4a8; }

/* Neuigkeiten */
.news { border-bottom: 1px solid var(--line); padding: 12px 0; }
.news:last-child { border-bottom: 0; }
.news summary { cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: flex-start; min-height: 44px; }
.news summary::-webkit-details-marker { display: none; }
.news summary > span:first-child { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--card2); border: 1px solid var(--line); color: var(--green2); }
.news summary > span:first-child .i { width: 20px; height: 20px; }
.news summary::after { content: ''; flex: none; width: 9px; height: 9px; margin: 9px 6px 0 4px; border-right: 2.5px solid #a3937a; border-bottom: 2.5px solid #a3937a; transform: rotate(45deg); }
.news[open] summary::after { transform: rotate(-135deg); margin-top: 14px; }
.news summary b.small { font-size: 15.5px; line-height: 1.3; }
.news summary b.small > .i:first-child { display: none; }
.news ul { margin: 8px 0 0 46px; padding-left: 16px; font-size: 14.5px; color: var(--muted); }
.news > p { margin-left: 46px !important; }
.news > .link { margin: 8px 0 0 46px; }
.news li { margin: 3px 0; }

.auth { max-width: 420px; margin: 0 auto; padding: 40px 16px; }
.auth .logo { font-size: 54px; text-align: center; color: var(--green); }
/* Test-Instanz: Absperrband */
.test-banner { background: #fff5cc; border-color: #e8cd6a; padding-top: 24px; overflow: hidden; }
.test-banner::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: repeating-linear-gradient(-45deg, #2a2418 0 8px, #f2c200 8px 16px); }
.test-banner .sec::before { background: #2a2418; }
.sw { display: inline-block; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line2); cursor: pointer; }
.sw.on { outline: 3px solid var(--green); outline-offset: 2px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; }

@media (min-width: 900px) {
  .wrap.wide { max-width: 1100px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-items: start; }
  .wrap.wide > .full { grid-column: 1 / -1; }
  .hdr { padding-left: max(14px, calc((100% - 1100px) / 2 + 14px)); padding-right: max(12px, calc((100% - 1100px) / 2 + 14px)); }
  .nav { justify-content: center; }
  .nav button { flex: 0 1 136px; }
}

/* Zahlen-Darstellung 0.00–10.00: 10 Felder wie eine Anzeigetafel */
.sbar { position: relative; height: 14px; border-radius: 3px; background: var(--bg2); overflow: hidden; box-shadow: inset 0 1px 2px rgba(70, 50, 15, .25); }
.sbar i { position: absolute; left: 0; top: 0; bottom: 0; display: block; border-radius: 3px 0 0 3px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.35); }
.sbar::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 2px), var(--card) calc(10% - 2px), var(--card) 10%); }
.sbar.top i { box-shadow: 0 0 9px #00c864, inset 0 -3px 0 rgba(0,0,0,.12); }
.skillrow { display: grid; grid-template-columns: 104px 1fr 50px; gap: 10px; align-items: center; padding: 5px 0; font-size: 15px; }
.skillrow .w { font: 700 18px/1 var(--f-cond); font-variant-numeric: tabular-nums; text-align: right; }
/* Stärke-Plakette (Sammelkarten-Wert) */
.strength {
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; min-width: 58px; padding: 6px 4px 5px; border-radius: 7px;
  background: currentColor; -webkit-text-fill-color: var(--text); font: 800 22px/1 var(--f-cond); font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), inset 0 0 0 1px rgba(0,0,0,.08);
}
.strength small { font: 700 11.5px/1.1 var(--f-cond); letter-spacing: .08em; text-transform: uppercase; -webkit-text-fill-color: rgba(31, 27, 20, .72); margin-top: 2px; }
.strength.lg { font-size: 38px; min-width: 94px; padding: 11px 6px 9px; border-radius: 10px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), 0 0 0 3px var(--card), 0 0 0 4px var(--line2); }
.note { display: inline-block; min-width: 40px; text-align: center; font-size: 14.5px; padding: 2px 6px; border: 0 !important; }
.tstar { flex: none; vertical-align: middle; }
.sk b { font-variant-numeric: tabular-nums; }
.item .between > .row .tiny { white-space: nowrap; }

/* Trainingsplan: Prioritäten je Mannschaftsteil */
.trow { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.trow:last-of-type { border-bottom: 0; }
.seg { display: inline-flex; border: 1.5px solid var(--line2); border-radius: 9px; overflow: hidden; flex: none; box-shadow: 0 2px 0 var(--line); }
.seg button { background: var(--card); border: 0; border-left: 1.5px solid var(--line2); color: var(--text); font: 700 17px/1 var(--f-cond); min-width: 44px; min-height: 44px; cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg button.on { color: #fff; }
@media (max-width: 560px) {
  .trow { flex-wrap: wrap; row-gap: 8px; }
  .trow > .grow { flex: 1 1 100%; }
  .trow > .seg { flex: 1; }
  .trow > .seg button { flex: 1; }
}
.seg button.on.p0 { background: #8a8170; }
.seg button.on.p1 { background: #c98a0c; }
.seg button.on.p2 { background: #2f9a4f; }
.seg button.on.p3 { background: var(--green2); box-shadow: inset 0 0 0 3px var(--gold); }

/* Fenster schliessen, Markierungen, Hinweis-Punkt */
.sheet-x { position: sticky; top: 0; float: right; margin: -4px -4px 0 8px; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--text); background: var(--card); color: var(--text); cursor: pointer; z-index: 2; display: grid; place-items: center; box-shadow: 0 2px 0 var(--text); }
.sheet-x .i { width: 20px; height: 20px; }
.nav button span { position: relative; }
.ndot { position: absolute; top: -1px; right: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--card); }
.tag.elf { background: transparent; color: var(--c-pos); box-shadow: inset 0 0 0 1.5px currentColor; }
.tag.bank { background: transparent; color: var(--c-hint); box-shadow: inset 0 0 0 1.5px currentColor; }
details.card > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before { content: ''; flex: none; width: 9px; height: 9px; margin: 0 4px 0 3px; border-right: 2.5px solid var(--text); border-bottom: 2.5px solid var(--text); transform: rotate(-45deg); }
details.card[open] > summary::before { transform: rotate(45deg); margin-top: -4px; }
/* Filter-Kasten (Kader, Markt) */
.filters > summary .i { width: 20px; height: 20px; color: var(--green2); }
.frow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.frow > .tiny:first-child { width: 72px; flex: none; }
.filters .chip { min-height: 40px; padding: 6px 11px; font-size: 15.5px; }
.chip.eq { min-width: 54px; justify-content: center; }
.poss { color: var(--muted); margin-top: 2px; } .poss b { color: var(--text); font-family: var(--f-cond); }
.frow input.in.rng { width: 76px; min-height: 40px; padding: 6px 8px; font-size: 16px; text-align: center; }
.frow .bis { color: var(--muted); }
.spic { margin-left: 4px; }
.spic .i { width: 17px; height: 17px; vertical-align: -3px; }

/* Spieltag-Paket (02.10.): Wiedergabe im Zeitraffer – Anzeigetafel klebt oben, Knöpfe darunter, neueste Meldung oben */
.rp-board { position: sticky; top: 72px; z-index: 15; padding: 12px 14px; }
.rp-min { justify-content: center; min-width: 104px; margin-bottom: 8px; padding: 6px 14px; background: var(--text); border-color: var(--text); color: #ffd54a;
  font: 800 19px/1 var(--f-cond); letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.res.flash { animation: goalflash 1.1s ease-out; }
@keyframes goalflash {
  0% { transform: scale(1); }
  18% { transform: scale(1.13); color: #fff4b0; box-shadow: inset 0 0 0 2px #ffd54a, 0 0 0 5px rgba(255, 213, 74, .35), 0 3px 0 rgba(0,0,0,.25); }
  100% { transform: scale(1); }
}
.res.hidden { color: #9b9078; text-shadow: none; letter-spacing: .14em; }
.rp-ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin: 0 0 14px; padding: 10px 12px;
  background: var(--card2); border: 1px solid var(--line); border-radius: var(--radius); }
.rp-ctrl .btn { min-width: 136px; margin-bottom: 3px; }
.rp-speed { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; width: 100%; }
.rp-speed > .tiny { width: 100%; text-align: center; }
.rp-speed .chip { min-width: 66px; }
.ev.new { animation: evin .45s ease-out; }
.ev.goal.new { animation: evin .45s ease-out, goalrow 2.4s ease-out; }
@keyframes evin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes goalrow { 0%, 50% { box-shadow: 0 0 0 3px var(--gold); } 100% { box-shadow: 0 0 0 0 rgba(224, 165, 20, 0); } }
.ev .xtra { color: var(--green-dk); font-weight: 800; }
.ev.side-opp .xtra, .ev.side-a .xtra { color: var(--navy); }
.ev.story { background: #fbf4dd; border-color: #e7d39a; font: 600 16px/1.35 var(--f-text); letter-spacing: 0; }
.ev.story .m, .ev.potm .m { display: grid; place-items: center; background: var(--navy); color: #ffd54a; }
.ev.story .m .i, .ev.potm .m .i { width: 18px; height: 18px; }
.ev.potm { background: var(--gold-lt); border-color: var(--gold); }
.ev.potm .m { background: var(--gold); color: var(--text); }
.pill.play { padding: 5px 12px; background: var(--green); border-color: var(--green); color: #fff; }
.pill.play .i { width: 14px; height: 14px; }
.btn.rp-go { width: 100%; margin: 0 0 14px; min-height: 54px; font-size: 20px; }
.btn.rp-go small { font: 600 15px var(--f-cond); opacity: .75; }
.card.spoiler .btn.rp-go { margin: 14px 0 0; }
/* Spieler des Spiels */
.card.potm { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; color: var(--text);
  border: 1px solid #e7cf86; border-left: 6px solid var(--gold); background: linear-gradient(90deg, #fdf3cf, var(--card) 72%); }
.potm-star { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.potm-star .i { width: 26px; height: 26px; color: var(--text); }
.card.potm .grow { display: flex; flex-direction: column; gap: 1px; }
.potm-k { font: 700 13px/1.1 var(--f-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--c-hint); }
.potm-name { font: 700 20px/1.2 var(--f-slab); }
.card.potm .note { min-width: 52px; padding: 4px 8px; font-size: 18px; }
/* eigene Tabelle verdeckt (Spoilerschutz) */
.cover { position: relative; min-height: 150px; }
.cover-in { filter: blur(6px); opacity: .65; pointer-events: none; user-select: none; }
.cover-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; text-align: center; background: rgba(255, 252, 243, .5); }
.cover-msg b { max-width: 320px; font: 700 18px/1.3 var(--f-cond); }
/* Schalter (Einstellungen) */
.toggle-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 6px 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.toggle-row .grow { display: flex; flex-direction: column; gap: 4px; }
.toggle { position: relative; flex: none; width: 58px; height: 34px; border-radius: 17px; background: #b9ad92; box-shadow: inset 0 2px 3px rgba(0,0,0,.2); transition: background .15s; }
.toggle i { position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 3px rgba(0,0,0,.3); transition: left .15s; }
.toggle.on { background: var(--green); }
.toggle.on i { left: 27px; }
@media (min-width: 1024px) { .rp-board { top: 70px; } }
@media (prefers-reduced-motion: reduce) { .res.flash, .ev.new, .ev.goal.new { animation: none; } }

/* v13 Verträge & Prämien, Karriereende (02.10.2026) */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.offer { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 9px 7px 8px; border: 1.5px solid var(--line2); border-radius: 9px; background: var(--card2); font-size: 13px; }
.offer .oh { font: 700 16px/1.15 var(--f-cond); letter-spacing: .01em; }
.offer .oh .i { width: 18px; height: 18px; color: var(--green2); }
.offer .oname { line-height: 1.25; min-height: 2.5em; }
.offer .ofix { margin-top: 2px; padding: 4px 0; border-top: 1px dashed var(--line2); border-bottom: 1px dashed var(--line2); }
.offer .ofix b { font: 800 19px/1.1 var(--f-cond); font-variant-numeric: tabular-nums; }
.offer .obon { margin: 2px 0; padding-left: 14px; line-height: 1.3; min-height: 3.4em; }
.offer .oev { margin: 2px 0 6px; padding-top: 4px; border-top: 1px dashed var(--line2); font-variant-numeric: tabular-nums; }
.offer .oev > div:not(.tiny) { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 4px; }
.offer .oev span { color: var(--muted); }
.offer .oev b { margin-left: auto; white-space: nowrap; }
.offer .oev .me b { font: 800 16px/1.2 var(--f-cond); color: var(--green2); }
.offer .btn { margin-top: auto; min-height: 42px; padding: 4px 6px; font-size: 15.5px; }
@media (min-width: 600px) { .offers { gap: 10px; } .offer { padding: 12px 10px; font-size: 14px; } .offer .oh { font-size: 18px; } }
.mixbar { display: flex; height: 16px; border-radius: 5px; overflow: hidden; background: var(--bg2); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.mixbar i { display: block; height: 100%; min-width: 2px; }
.mixleg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 6px; color: var(--muted); }
.mdot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
table.mix td, table.prz td { padding: 6px 4px; }
table.mix td:not(.l), table.prz td:not(.l) { white-space: nowrap; }
table.mix td:first-child, table.prz td:first-child { font: 500 15px var(--f-text); }
table.mix thead + tbody + thead th { padding-top: 14px; }
table.mix td.neg { color: var(--c-neg); } table.mix td.pos { color: var(--c-pos); }
table.mix tfoot td { border-top: 2px solid var(--text); border-bottom: 0; }
table.prz td.l.tiny { width: auto; max-width: none; white-space: nowrap; color: var(--c-hint); font-weight: 700; }
.contracts .deal { padding: 10px 12px; border-radius: 8px; background: var(--card2); border: 1px solid var(--line); }
.contracts .deal .pill { padding: 2px 8px; font-size: 13px; }
.dealrow { display: flex; gap: 12px; align-items: flex-start; padding: 10px 2px 0; margin-top: 10px; border-top: 1px solid var(--line); font-size: 15px; }
.dealrow > span:first-child { width: 132px; flex: none; color: var(--muted); font-weight: 600; }
.allleagues > summary { list-style: none; cursor: pointer; width: fit-content; }
.allleagues > summary::-webkit-details-marker { display: none; }
.retire-box { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #fff6e3; border: 1px solid #e3c88f; border-left: 6px solid var(--amber); }
.retire-box.sure { border-left-color: var(--red); }
.rtag { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; padding: 1px 6px 0; border-radius: 999px; background: #fdebc8; color: var(--c-warn); font: 700 12.5px/1.3 var(--f-cond); white-space: nowrap; vertical-align: 1px; }
.rtag.sure { background: #f8d4cf; color: var(--red-dk); }
.rtag .i { width: 13px; height: 13px; }
.legends .item .note { margin: 0 auto; }

/* ---------- Aufräum-Runde Übersichtlichkeit (02.10.2026): gleiche Bausteine überall ---------- */
.pos { color: var(--c-pos); } .neg { color: var(--c-neg); }
.warn-t { color: var(--c-warn); font-weight: 700; }
.hl-num { font: 800 20px/1 var(--f-cond); color: var(--text); font-variant-numeric: tabular-nums; }
/* Kartenkopf: Rubrik links, Zusatz rechts */
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; margin: 0 0 10px; }
.sec-row > .sec { margin: 0; min-width: 0; }
.sec-r { flex: none; display: flex; align-items: center; gap: 6px; }
/* Listenkarte: wenig Rand, Kopf mit Abstand – überall gleich */
.card.lc { padding: 6px 14px 8px; }
.card.lc > .sec-row { margin: 8px 0 4px; }
details.card.lc > summary { padding: 4px 0; }
details.card > summary > .grow { min-width: 0; }
.sub-sec { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
/* Leerzustand */
.empty { margin: 0; padding: 16px 8px; text-align: center; color: var(--muted); font-size: 15px; }
/* „Weitere anzeigen“ */
.more-row { padding: 10px 0 6px; }
.more-row small, .btn small { font: 600 14px var(--f-cond); opacity: .7; }
/* ⓘ: Erklärung auf Wunsch (Tippfläche 44 px, sichtbar 24 px) */
.ibtn { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; margin: -10px -8px -10px 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--green2); cursor: pointer; vertical-align: middle; }
.ibtn .i { width: 24px; height: 24px; border-radius: 50%; }
.ibtn:hover .i { background: var(--green-lt); }
.ibtn.on .i { background: var(--green); color: #fff; }
.itext { margin: 8px 0 4px; padding: 10px 12px; border-radius: 8px; background: var(--card2); border-left: 4px solid var(--gold); font-size: 14.5px; line-height: 1.45; color: var(--text); }
.itext[hidden] { display: none !important; }
/* Kennzahlen: grosse Zahl, kleine Beschriftung */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.card.kpis { padding: 10px; }
.kpis.in-card { margin-top: 12px; }
.kpis > .kpi:first-child:nth-last-child(3) { grid-column: 1 / -1; }
.kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; min-height: 60px; padding: 8px 10px; border-radius: 8px; background: var(--card2); border: 1px solid var(--line); color: var(--text); text-align: left; font: inherit; }
button.kpi { cursor: pointer; box-shadow: 0 2px 0 var(--line); }
button.kpi:hover { border-color: var(--line2); }
.kpi small { font: 700 12.5px/1.15 var(--f-cond); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kpi b { font: 800 21px/1.15 var(--f-cond); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.kpi b .u { font: 600 14px var(--f-cond); color: var(--muted); }
.kpi > span { font-size: 13px; line-height: 1.25; color: var(--muted); }
@media (min-width: 600px) {
  .kpis { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
  .kpis > .kpi:first-child:nth-last-child(3) { grid-column: auto; }
}
/* Letztes Spiel: eine Zeile wie auf der Anzeigetafel */
.score.mini { gap: 8px; }
.score.mini .t { flex-direction: row; gap: 7px; font: 600 15.5px/1.2 var(--f-text); }
.score.mini .t:first-child { justify-content: flex-end; text-align: right; }
.score.mini .t:last-child { justify-content: flex-start; text-align: left; }
.score.mini .t > span, .score.mini .t > b { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.score.mini .res { font-size: 25px; min-width: 72px; padding: 6px 10px 4px; }
/* Zeitraffer-Karte in der Übersicht kompakt */
.test-banner.compact { padding-bottom: 10px; }
/* Saison wählen: ‹ Auswahl › */
.spick { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.spick select.in { flex: 1; min-height: 46px; font: 700 17px var(--f-cond); }
.spick .chip { min-width: 48px; min-height: 46px; padding: 6px 10px; }
.spick .chip:disabled { opacity: .35; cursor: default; }
/* Kader: zwei Kacheln, ruhige Zeilen */
.tiles2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.card.tile { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 64px; margin: 0; padding: 10px 10px 10px 12px; cursor: pointer; text-align: left; color: var(--text); font: inherit; }
.card.tile.hl { border-top-width: 5px; }
.tile .grow { display: flex; flex-direction: column; min-width: 0; }
.tile b { font: 700 16.5px/1.2 var(--f-cond); }
.tile small { font-size: 13px; line-height: 1.25; color: var(--muted); }
.tile-i { flex: none; font-size: 20px; }
.tile-i .bdg { width: 24px; height: 24px; margin: 0; font-size: 14px; }
.card.filters { padding: 10px 14px; }
.filters > summary .muted { font-weight: 600; }
.sq-meta { margin-top: 5px; font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.sq-meta b { color: var(--text); font-family: var(--f-cond); }
.sq-meta .tstar { vertical-align: -2px; }
@media (min-width: 700px) {   /* PC/Tablet: Fähigkeiten und Zusatzzeile nebeneinander → 2 Zeilen pro Spieler wie bisher */
  .item.sq .grow > .skillchips { display: inline-flex; vertical-align: middle; margin-right: 10px; }
  .item.sq .grow > .sq-meta { display: inline-block; vertical-align: middle; }
}
.fv { background: currentColor; -webkit-text-fill-color: var(--text); border-radius: 3px; padding: 0 4px; font-variant-numeric: tabular-nums; }
/* Markt */
.mk-top { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.mk-top .card { flex: 1; min-width: 0; margin: 0; padding: 10px 14px; }
.mk-price { flex: none; text-align: right; }
.item.mk .tiny { line-height: 1.35; }
.item.mk .tstar { vertical-align: -2px; }
.t-num { color: var(--text); font-family: var(--f-cond); }
/* Neuigkeiten: Filter + Wochen-Köpfe */
.news-kinds { margin-bottom: 10px; }
.wk { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 12px -14px 0; padding: 8px 14px 6px; background: var(--card2); border-top: 1px solid var(--line); border-bottom: 2px solid var(--text); font: 700 14.5px/1.2 var(--f-cond); letter-spacing: .04em; text-transform: uppercase; }
.wk:first-child { margin-top: -6px; border-top: 0; border-radius: var(--radius) var(--radius) 0 0; }
.wk span { color: var(--muted); font-weight: 600; letter-spacing: .02em; text-transform: none; }
/* Spieler: Statistik nebeneinander, Vereinsgeschichte als Tabelle */
table.stat td:not(.l), table.stat th:not(.l) { width: 92px; }
table.stat td.l { font: 500 15.5px var(--f-text); }
table.hist { font-size: 15px; }
table.hist td { padding: 7px 4px; }
table.hist td.l, table.hist th.l { width: auto; max-width: none; white-space: nowrap; }
table.hist td.l.tiny { color: var(--muted); font-size: 13.5px; }
/* Anleitung: ein Thema = eine Zeile zum Aufklappen */
.help .hq { border-bottom: 1px solid var(--line); }
.help .hq:last-child { border-bottom: 0; }
.help .hq > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; cursor: pointer; list-style: none; font: 700 17px/1.2 var(--f-cond); }
.help .hq > summary::-webkit-details-marker { display: none; }
.help .hq > summary::after { content: ''; flex: none; width: 9px; height: 9px; margin: -4px 6px 0 0; border-right: 2.5px solid #a3937a; border-bottom: 2.5px solid #a3937a; transform: rotate(45deg); }
.help .hq[open] > summary::after { transform: rotate(-135deg); margin-top: 6px; }
.help .hq > div { padding: 0 0 12px; font-size: 15px; line-height: 1.45; color: var(--muted); }
/* Aufstellung: Modus-Zeile + ⓘ, Hinweis und Auswahl gleich hoch (Spielfeld springt nicht) */
.lu-mode { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; }
.lu-mode .tiny { line-height: 1.35; }
.lu-info { min-height: 58px; }
/* Spielerseite blättern: Leiste „‹ Vorheriger · 3 / 20 · Nächster ›“, Seite folgt dem Finger (nur waagrecht, senkrecht scrollt normal) */
#app { overflow-x: clip; }
main.plmain { touch-action: pan-y pinch-zoom; }
.plnav { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.pn-btn { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 4px; min-height: 42px; padding: 6px 10px; border: 1.5px solid var(--line2); border-radius: 8px;
  background: var(--card); box-shadow: 0 2px 0 var(--line); font: 600 15px/1.15 var(--f-cond); color: var(--text); cursor: pointer; }
.pn-btn:hover { border-color: var(--text); }
.pn-btn.r { justify-content: flex-end; text-align: right; }
.pn-btn.l .i { transform: scaleX(-1); }
.pn-btn .i { width: 18px; height: 18px; flex: none; }
.pn-btn .ellip { min-width: 0; }
.pn-btn:disabled { visibility: hidden; }
.pn-n { flex: none; min-width: 58px; text-align: center; font: 600 15px/1.1 var(--f-cond); font-variant-numeric: tabular-nums; }
.pn-n small { display: block; color: var(--muted); font: 500 11.5px/1.2 var(--f-text); }
@media (hover: hover) and (pointer: fine) { .pn-n small { display: none; } }
@keyframes pl-in-r { from { transform: translateX(44px); opacity: 0; } }
@keyframes pl-in-l { from { transform: translateX(-44px); opacity: 0; } }
main.pl-in-r { animation: pl-in-r .2s ease-out; }
main.pl-in-l { animation: pl-in-l .2s ease-out; }
/* Freundes-Ligen: Einladungslink, Mitspieler-Kennzeichen in Tabellen */
.invite-link { background: var(--card2); border: 1.5px dashed var(--line2); border-radius: 8px; padding: 10px 12px; overflow-wrap: anywhere; }
.invite-link code { font: 600 14.5px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text); }
.tclub .hm { flex: none; display: inline-flex; color: var(--blue); }
.tclub .hm .i { width: 14px; height: 14px; }
