:root {
  --brand: #f8c400;
  --on-brand: #111111;
  --head: #111111;
  --link: #7a5c00;
  --bg: #f2f3f5;
  --card: #ffffff;
  --text: #16181d;
  --muted: #6b7280;
  --line: #e4e6ea;
  --yes: #15803d;
  --yes-bg: #dcfce7;
  --maybe: #b45309;
  --maybe-bg: #fef3c7;
  --no: #b91c1c;
  --no-bg: #fee2e2;
  --open: #6b7280;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .04);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115; --card: #1a1d23; --text: #eceef2; --muted: #9aa1ad; --line: #2b2f37;
    --yes: #4ade80; --yes-bg: #14351f; --maybe: #fbbf24; --maybe-bg: #3a2c0b;
    --no: #f87171; --no-bg: #3b1515; --shadow: none; --link: #f8c400;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; }
body {
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--link); text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.2; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: .4rem 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.right { text-align: right; }
.grow { flex: 1; min-width: 0; }

/* Kopf + Navigation */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: var(--head); color: #fff; border-bottom: 3px solid var(--brand);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.05rem; }
.logo {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: .85rem; overflow: hidden;
}
.logo img { width: 100%; height: 100%; object-fit: contain; }
.logo.big { display: grid; width: 72px; height: 72px; font-size: 1.6rem; background: var(--head); color: var(--brand); margin: 0 auto 12px; }
.logo.has-img { background: transparent; border-radius: 0; }
.view { max-width: 640px; margin: 0 auto; padding: 14px 14px calc(90px + env(safe-area-inset-bottom)); }
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-around;
  background: var(--card); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--muted); font-size: .72rem; padding: 4px 0; border-radius: 10px;
}
.tabbar a .ico { font-size: 1.25rem; filter: grayscale(1); opacity: .7; }
.tabbar a.active { color: var(--text); font-weight: 700; box-shadow: inset 0 3px 0 var(--brand); border-radius: 0; }
.tabbar a.active .ico { filter: none; opacity: 1; }

/* Karten */
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; margin: 0 0 12px; border: 1px solid var(--line);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.card-head h2, .card-head h3 { margin: 0; }
details.card summary { cursor: pointer; font-weight: 600; }
details.card[open] summary { margin-bottom: 8px; }
.month { margin: 18px 4px 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.back { display: inline-block; margin: 0 0 10px; font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.note { padding: 10px 12px; border-radius: 10px; background: var(--line); margin: 0 0 12px; font-size: .92rem; }
.note.warn { background: var(--maybe-bg); color: var(--text); }
.note.err { background: var(--no-bg); }
.note.ok { background: var(--yes-bg); }

/* Termin-Karte */
.ev { padding: 0; overflow: hidden; display: flex; align-items: stretch; border-left: 4px solid transparent; }
.ev.t-match { border-left-color: var(--brand); }
.ev.me-yes { box-shadow: inset 0 0 0 1px var(--yes); }
.ev-main { flex: 1; display: flex; gap: 12px; padding: 12px; color: inherit; min-width: 0; }
.datebox {
  flex: 0 0 48px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--bg); padding: 4px 0; font-size: .72rem; color: var(--muted); line-height: 1.15;
}
.datebox b { font-size: 1.3rem; color: var(--text); }
.ev-info { min-width: 0; }
.ev-title { font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ev-sub { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cancelled .ev-title, .cancelled h2 { text-decoration: line-through; opacity: .6; }
.counts { display: flex; gap: 10px; font-size: .82rem; margin-top: 4px; flex-wrap: wrap; }
.c.yes { color: var(--yes); } .c.maybe { color: var(--maybe); } .c.no { color: var(--no); } .c.open { color: var(--open); }

.pill {
  display: inline-block; font-size: .7rem; font-weight: 600; padding: 2px 7px; border-radius: 99px;
  background: var(--line); color: var(--text); vertical-align: middle; white-space: nowrap;
}
.pill.match { background: var(--brand); color: var(--on-brand); }
.pill.cancel { background: var(--no-bg); color: var(--no); }
.pill.demo { background: rgba(255, 255, 255, .25); color: #fff; }
.pill.ghost { background: transparent; border: 1px dashed var(--muted); color: var(--muted); }

/* Zu-/Absage-Knöpfe */
.rsvp { display: flex; gap: 8px; margin: 8px 0; }
.rsvp.small { flex-direction: column; gap: 0; margin: 0; border-left: 1px solid var(--line); }
.rs {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px;
  border: 2px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 12px; padding: 10px 6px; font: inherit; font-weight: 600; cursor: pointer;
}
.rs span { font-size: 1.05rem; }
.rsvp.small .rs { border: 0; border-radius: 0; width: 52px; padding: 0; font-size: 1.1rem; color: var(--muted); }
.rsvp.small .rs + .rs { border-top: 1px solid var(--line); }
.rs.yes.on { background: var(--yes); border-color: var(--yes); color: #fff; }
.rs.maybe.on { background: var(--maybe); border-color: var(--maybe); color: #fff; }
.rs.no.on { background: var(--no); border-color: var(--no); color: #fff; }
.rs:active { transform: scale(.97); }

/* Filter */
.seg { display: flex; background: var(--line); border-radius: 12px; padding: 3px; margin-bottom: 10px; }
.seg button, .seg label {
  flex: 1; border: 0; background: transparent; padding: 8px; border-radius: 9px; font: inherit;
  font-weight: 600; color: var(--muted); text-align: center; cursor: pointer;
}
.seg label input { display: none; }
.seg .on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.chips { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; padding-bottom: 2px; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 99px;
  padding: 6px 12px; font: inherit; font-size: .88rem; cursor: pointer; white-space: nowrap;
}
.chip.on { background: var(--text); color: var(--card); border-color: var(--text); }

/* Termin-Detail */
.hero { border-top: 4px solid var(--line); }
.hero.t-match { border-top-color: var(--brand); }
.hero h2 { font-size: 1.45rem; margin: 4px 0; }
.hero-type { color: var(--muted); font-size: .85rem; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.hero-date { font-weight: 600; }
.notes { white-space: pre-wrap; background: var(--bg); padding: 8px 10px; border-radius: 10px; }
.grp { margin: 14px 0 6px; font-size: .9rem; }
.grp.yes { color: var(--yes); } .grp.maybe { color: var(--maybe); } .grp.no { color: var(--no); } .grp.open { color: var(--open); }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.plist li:last-child { border-bottom: 0; }
.plist li.sub { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 14px; border-bottom: 0; }
.plist li.dim { opacity: .5; }
.plist li.cur { background: var(--yes-bg); border-radius: 8px; }
.plist.pick li { cursor: pointer; padding: 9px 6px; }
.prow { display: flex; align-items: center; gap: 10px; width: 100%; color: inherit; }
.avatar {
  flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line); font-weight: 700; font-size: .85rem;
}
.avatar.xl { width: 80px; height: 80px; font-size: 1.6rem; margin: 6px auto 10px; display: grid; }
.comment { font-size: .85rem; color: var(--muted); font-style: italic; }
.stat { text-align: right; font-weight: 700; font-size: .95rem; }
.stat small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; }
.st { width: 22px; text-align: center; font-weight: 700; }
.st.yes { color: var(--yes); } .st.maybe { color: var(--maybe); } .st.no { color: var(--no); } .st.open { color: var(--open); }
select.mini { padding: 4px; font-size: .85rem; width: auto; }

/* Formulare */
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row > label { min-width: 90px; }
.row-form { display: flex; gap: 8px; margin-top: 4px; }
.row-form input { flex: 1; }
label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
label.check, label.radio { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-weight: 500; font-size: .95rem; }
label.check input, label.radio input { width: 20px; height: 20px; flex: 0 0 20px; accent-color: var(--brand); }
.radios { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow: auto; padding: 4px; border: 1px solid var(--line); border-radius: 10px; }
.weekdays { display: flex; gap: 6px; }
.weekdays label { flex: 1; }
.weekdays input { display: none; }
.weekdays span {
  display: block; text-align: center; padding: 10px 0; border-radius: 10px; border: 1px solid var(--line);
  color: var(--text); font-weight: 600; cursor: pointer;
}
.weekdays input:checked + span { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.evform:not(.type-match) .only-match { display: none; }
.evform.type-match .only-other { display: none; }
.file { display: block; text-align: center; padding: 18px; border: 2px dashed var(--line); border-radius: 12px; color: var(--text); cursor: pointer; }
.file input { display: block; margin: 8px auto 0; width: auto; max-width: 100%; border: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  padding: 11px 16px; border-radius: 12px; font: inherit; font-weight: 600; cursor: pointer;
}
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.danger { color: var(--no); border-color: var(--no-bg); }
.btn.wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn.small { padding: 6px 12px; font-size: .88rem; }
.btn.block { display: flex; width: 100%; margin-top: 8px; }
.btn:disabled { opacity: .5; cursor: default; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.actions .btn { flex: 1; }
.x { border: 0; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 0 2px; }
.x.big { font-size: 1.8rem; line-height: 1; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 10px; text-align: center; color: var(--text); font-weight: 600; font-size: .92rem;
}
.tile span { display: block; font-size: 1.6rem; margin-bottom: 4px; }

/* Spielfeld */
.pitch {
  position: relative; width: 100%; aspect-ratio: 68 / 100; max-height: 70vh; margin: 8px auto;
  border-radius: 12px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .7);
  background: repeating-linear-gradient(0deg, #2f8a3e 0 10%, #2a7d38 10% 20%);
}
.pl-line.half { position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid rgba(255, 255, 255, .6); }
.pl-circle { position: absolute; left: 50%; top: 50%; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px solid rgba(255, 255, 255, .6); border-radius: 50%; }
.pl-box { position: absolute; left: 22%; right: 22%; height: 14%; border: 2px solid rgba(255, 255, 255, .6); }
.pl-box.pl-top { top: -2px; } .pl-box.pl-bottom { bottom: -2px; }
.formation-label { position: absolute; left: 8px; top: 6px; color: rgba(255, 255, 255, .85); font-weight: 700; font-size: .8rem; }
.slot {
  position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center;
  gap: 2px; background: none; border: 0; padding: 0; font: inherit; color: #fff; width: 76px;
}
button.slot { cursor: pointer; }
.dot {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1rem;
  background: rgba(255, 255, 255, .2); border: 2px dashed rgba(255, 255, 255, .85); color: #fff;
}
.dot.filled { background: var(--brand); border: 2px solid #fff; color: var(--on-brand); }
.dot.warn { background: #b45309; }
.slot-name {
  font-size: .72rem; font-weight: 700; background: rgba(0, 0, 0, .45); padding: 1px 5px; border-radius: 6px;
  max-width: 76px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Auswahl-Fenster */
.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 30; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; max-height: 78vh; overflow: auto;
  background: var(--card); border-radius: 18px 18px 0 0; padding: 12px 14px calc(16px + env(safe-area-inset-bottom));
  max-width: 640px; margin: 0 auto; animation: up .18s ease-out;
}
@keyframes up { from { transform: translateY(40px); opacity: .6; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; }

/* Anmeldung */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: 100%; max-width: 380px; background: var(--card); border-radius: 20px; padding: 24px 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.auth-card h1 { text-align: center; font-size: 1.4rem; margin-bottom: 14px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; margin: 16px 0 4px; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.splash { min-height: 100vh; display: grid; place-content: center; text-align: center; color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: #16181d; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: .92rem;
  opacity: 0; pointer-events: none; transition: .2s; z-index: 50; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--no); }
.widget { min-height: 200px; }
.ask .sheet-bg { z-index: 60; }
.ask-card {
  position: fixed; z-index: 61; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(340px, 90vw); background: var(--card); border-radius: 16px; padding: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.ask-card p { margin: 0 0 6px; font-size: 1rem; }

/* Fotos */
.avatar { overflow: hidden; }
.avatar.photo { background: var(--line); }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.lg { flex: 0 0 56px; width: 56px; height: 56px; }
.avatar.xl.photo { padding: 0; }
.photo-edit { display: flex; gap: 14px; align-items: center; margin: 8px 0 14px; }
.photo-box {
  flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--bg);
  border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; color: var(--muted);
}
.photo-box img { width: 100%; height: 100%; object-fit: cover; }
.photo-btns { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.dot.photo { position: relative; width: 58px; height: 58px; padding: 0; background: #fff; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.dot.photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.dot.warn.photo { border-color: #f59e0b; }
.dot .num {
  position: absolute; right: -7px; bottom: -5px; min-width: 19px; height: 19px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 99px; background: var(--brand); color: var(--on-brand);
  border: 2px solid #fff; font-size: .66rem; line-height: 1;
}
.top-actions { margin: 0 0 10px; }
.ask-card p { white-space: pre-line; }

/* Aufstellung: größere Fotos, freier Modus, Bank */
.slot { width: 86px; }
.slot-name { font-size: .74rem; max-width: 86px; }
.slot.empty .dot { width: 34px; height: 34px; border-style: dashed; background: rgba(255,255,255,.1); }
.slot.empty .slot-name { background: rgba(0,0,0,.25); }
.pitch { max-height: 82vh; }
.pitch.edit .slot.free { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.slot.free img { pointer-events: none; -webkit-user-drag: none; }
.slot.dragging { z-index: 5; cursor: grabbing; }
.slot.dragging .dot { transform: scale(1.12); box-shadow: 0 6px 16px rgba(0,0,0,.45); }
.actions.tight { margin: 0 0 6px; }
.actions.tight .btn { flex: 1; }

.bench-area {
  margin: 10px 0 6px; border-radius: 12px; padding: 10px 10px 0;
  background: linear-gradient(#3b4250, #2a2f3a); color: #fff; overflow: hidden;
}
.bench-title { font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; opacity: .85; margin-bottom: 6px; }
.bench-seats { display: flex; flex-wrap: wrap; gap: 6px 2px; justify-content: center; position: relative; z-index: 1; padding-bottom: 2px; }
.seat {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 74px;
  background: none; border: 0; color: #fff; font: inherit; padding: 0;
}
.seat .slot-name { max-width: 74px; }
.seat.add { cursor: pointer; }
.seat.add .dot { border-style: dashed; }
.seat-x {
  position: absolute; top: -4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  border: 0; background: #fff; color: #333; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.bench-wood { height: 14px; margin: -18px -10px 0; background: linear-gradient(#a8743f, #7b5129); border-top: 2px solid #c48b53; }
.sheet-head .row { align-items: center; gap: 10px; }

.pitch.crowded .dot.photo { width: 50px; height: 50px; }
.pitch.crowded .dot { width: 42px; height: 42px; }
.pitch.crowded .slot { width: 78px; }
.pitch.crowded .slot-name { font-size: .7rem; max-width: 78px; }
.img-card {
  position: fixed; z-index: 61; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(460px, 94vw); max-height: 92vh; overflow: auto; background: var(--card); border-radius: 16px; padding: 12px;
}
.img-card img { width: 100%; border-radius: 10px; display: block; }
.card-head .row { gap: 6px; align-items: center; flex-wrap: nowrap; }

/* Mannschaftsfoto */
.team-hero { position: relative; margin: -14px -14px 14px; overflow: hidden; background: var(--head); }
.team-hero img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: center 35%; }
.team-hero .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; color: #fff; font-weight: 800; font-size: 1.1rem;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
}
.team-hero .cap small { display: block; font-weight: 600; font-size: .8rem; color: var(--brand); }
.auth-team { display: block; width: calc(100% + 40px); margin: -24px -20px 16px; border-radius: 20px 20px 0 0; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 35%; }

.logo.has-img { width: 30px; height: 36px; border-radius: 0; background: transparent; }
.logo.has-img img { object-fit: contain; }
.logo.big.has-img { width: 84px; height: 100px; background: transparent; }
.auth-crest { display: block; width: 64px; height: auto; margin: -52px auto 6px; position: relative; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.note.bday { background: var(--brand); color: var(--on-brand); font-size: 1rem; }

/* Lauf-Challenge & Statistik */
.monthnav { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.monthnav b { font-size: 1.05rem; }
.run-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: center; }
.run-hero .big { font-size: 1.8rem; font-weight: 800; }
.bar { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 5px; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.bar.wide { grid-column: 1 / -1; height: 8px; }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.rank li:last-child { border-bottom: 0; }
.rank li.me { background: color-mix(in srgb, var(--brand) 14%, transparent); border-radius: 10px; }
.rank .pos { width: 28px; text-align: center; font-weight: 800; font-size: 1rem; }
.rank .km { text-align: right; font-weight: 800; font-size: 1.1rem; min-width: 52px; }
.rank .km small { font-weight: 500; color: var(--muted); font-size: .7rem; margin-left: 2px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: .8rem; color: var(--muted); padding: 4px; }
.tbl td { padding: 6px 4px; border-top: 1px solid var(--line); }
.tbl td:nth-child(n+3), .tbl th:nth-child(n+3) { text-align: center; width: 38px; }
.tbl tr.me td { background: color-mix(in srgb, var(--brand) 14%, transparent); }
.cellp { display: flex; align-items: center; gap: 8px; }
.cellp .avatar { flex-basis: 30px; width: 30px; height: 30px; }
.score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center; margin: 6px 0 10px; }
.score span { font-weight: 700; font-size: .95rem; }
.score b { font-size: 2.2rem; font-weight: 900; background: var(--head); color: var(--brand); border-radius: 12px; padding: 2px 14px; }
.goals { list-style: none; margin: 0; padding: 0; }
.goals li { padding: 5px 0; border-top: 1px solid var(--line); }
.goals .min { display: inline-block; width: 34px; color: var(--muted); font-weight: 700; }
.score-in { display: flex; align-items: flex-end; justify-content: center; gap: 12px; margin: 10px 0 16px; }
.score-in label { text-align: center; max-width: 130px; }
.score-in input { text-align: center; font-size: 1.6rem; font-weight: 800; width: 90px; margin: 0 auto; }
.score-in b { font-size: 1.8rem; padding-bottom: 8px; }
.goal-row { display: flex; gap: 6px; align-items: flex-end; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.goal-row .gnum { font-weight: 800; padding-bottom: 12px; width: 22px; }
.goal-row label.grow { min-width: 120px; }
.goal-row label.min { width: 64px; }
.goal-row .x { padding-bottom: 10px; font-size: 1.4rem; }
.checks { display: flex; flex-direction: column; gap: 8px; }
.note.invite .actions { margin-top: 8px; }
.tabbar a span:last-child { font-size: .68rem; }

/* Abwesenheiten, Anwesenheit, Grund */
.absent { display: flex; align-items: center; justify-content: center; padding: 0 12px; font-size: 1.3rem; border-left: 1px solid var(--line); color: var(--text); }
.absent:not(.small) { border: 1px dashed var(--line); border-radius: 12px; padding: 10px; font-size: .95rem; font-weight: 600; margin: 8px 0; }
.pill.abs { background: var(--no-bg); color: var(--no); }
.note.abs-note { display: block; background: var(--no-bg); color: var(--text); }
.reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.reasons input { display: none; }
.reasons span { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--text); font-weight: 600; cursor: pointer; }
.reasons input:checked + span { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.plist.pres li { cursor: pointer; padding: 8px 6px; border-radius: 10px; }
.plist.pres li.on { background: var(--yes-bg); }
.plist.pres .tick { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 900; color: #fff; }
.plist.pres li.on .tick { background: var(--yes); border-color: var(--yes); }
details > summary.btn { list-style: none; display: inline-flex; }
details > summary.btn::-webkit-details-marker { display: none; }
.team-hero img { aspect-ratio: 16 / 7; }
.card.greet { border-left: 5px solid var(--brand); }
.card.greet p { margin: 2px 0; font-size: 1rem; }
.card.greet a { color: inherit; text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; }
.greet-head { display: flex; gap: 12px; align-items: flex-start; }
.greet-head .avatar { flex: 0 0 56px; }
.card.greet p.stats { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }

/* Begrüßungsbildschirm */
.welcome { position: fixed; inset: 0; z-index: 20; overflow-y: auto; color: #fff; -webkit-overflow-scrolling: touch; animation: wfade .35s ease-out; }
@keyframes wfade { from { opacity: 0; } }
.w-bg { position: fixed; inset: 0; background: #111 center 30% / cover no-repeat; }
.w-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,17,17,.3) 0%, rgba(17,17,17,.85) 40%, #111 75%); }
.w-inner { position: relative; max-width: 520px; margin: 0 auto; padding: calc(24px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom)); text-align: center; }
.w-crest { width: 64px; height: auto; filter: drop-shadow(0 3px 8px rgba(0,0,0,.5)); animation: wpop .5s ease-out; }
@keyframes wpop { from { transform: scale(.6); opacity: 0; } }
.w-me { margin: 8px auto 4px; }
.w-me .avatar.xl { width: 104px; height: 104px; border: 4px solid var(--brand); box-shadow: 0 6px 24px rgba(0,0,0,.5); margin: 0 auto; animation: wpop .55s ease-out; }
.welcome h1 { font-size: 2.3rem; font-weight: 900; margin: 6px 0 2px; color: #fff; letter-spacing: -.01em; }
.w-sub { color: var(--brand); font-weight: 700; font-size: 1.05rem; margin: 0 0 16px; }
.w-tile { text-align: left; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 12px 14px; margin: 0 0 10px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: wup .45s ease-out both; }
@keyframes wup { from { transform: translateY(14px); opacity: 0; } }
.w-tile-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .95rem; color: var(--brand); margin-bottom: 4px; }
.w-tile-head span:first-child { font-size: 1.2rem; }
.w-count { margin-left: auto; font-size: .78rem; background: var(--brand); color: #111; padding: 2px 8px; border-radius: 99px; }
.w-tile p { margin: 4px 0; }
.w-small { font-size: .82rem; color: rgba(255,255,255,.7); }
.w-news { white-space: pre-wrap; font-size: 1rem; }
.w-news-tile { border-color: var(--brand); }
.w-bday { background: var(--brand); color: #111; border-color: var(--brand); }
.w-bday .w-tile-head { color: #111; }
.w-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: center; margin: 6px 0; }
.w-stats > div { display: flex; flex-direction: column; }
.w-big { font-size: 2rem; font-weight: 900; color: #fff; }
.w-big small { font-size: .9rem; font-weight: 600; margin-left: 2px; color: rgba(255,255,255,.7); }
.w-alert { background: rgba(248,196,0,.15); border-left: 3px solid var(--brand); padding: 6px 10px; border-radius: 8px; font-size: .9rem; }
.welcome .rsvp .rs { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.welcome .rsvp .rs.yes.on { background: var(--yes); border-color: var(--yes); }
.welcome .rsvp .rs.no.on { background: var(--no); border-color: var(--no); }
.welcome .rsvp .rs.maybe.on { background: var(--maybe); border-color: var(--maybe); }
.welcome .absent { color: #fff; border-color: rgba(255,255,255,.3); }
.w-go { font-size: 1.15rem; padding: 15px; margin-top: 14px; animation: wup .45s ease-out both; }
.w-foot { margin-top: 14px; }
.greet-head { cursor: pointer; }
.card.greet p.news { background: var(--maybe-bg); border-radius: 8px; padding: 6px 10px; margin-top: 8px; }
.widget-holder { position: absolute; left: -10000px; top: 0; width: min(600px, 100vw); visibility: hidden; }
.seg button { padding: 8px 4px; }
