/* Vereinsfarben (--primary, --accent, …-ink) kommen aus /theme.css */
:root {
  --bg: #f3f6fa;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --text: #16202c;
  --muted: #566476;
  --line: #dde4ec;
  --primary-text: var(--primary);
  --yes: #1d8f4e;
  --maybe: #b87500;
  --no: #c9403f;
  --danger: #c0392b;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(16 32 48 / 6%), 0 6px 18px rgb(16 32 48 / 7%);

  --c-training: var(--primary);
  --c-training-ink: var(--primary-ink);
  --c-home: var(--accent);
  --c-home-ink: var(--accent-ink);
  --c-away: color-mix(in srgb, var(--primary) 30%, #2a3040);
  --c-away-ink: #ffffff;
  --c-tournament: #7b4bb7;
  --c-tournament-ink: #ffffff;
  --c-other: #64748b;
  --c-other-ink: #ffffff;

  --tabbar-h: 64px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1218;
    --surface: #17202a;
    --surface-2: #202b37;
    --text: #e9eff6;
    --muted: #9aa9ba;
    --line: #2b3745;
    --primary-text: color-mix(in srgb, var(--primary) 55%, #ffffff);
    --yes: #43c07a;
    --maybe: #e6a73a;
    --no: #ef7473;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 6px 18px rgb(0 0 0 / 28%);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary-text); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ----- Kopfzeile ----- */
.app-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) 14px 10px;
  background: var(--primary); color: var(--primary-ink);
  box-shadow: 0 2px 10px rgb(0 0 0 / 18%);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 12px; padding: 3px; flex: none; }
.brand-text { display: grid; min-width: 0; line-height: 1.2; }
.brand-text strong { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { display: flex; gap: 4px; align-items: center; }
.role-chip { font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: rgb(255 255 255 / 22%); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: transparent; color: inherit; cursor: pointer;
}
.icon-btn:hover { background: rgb(128 128 128 / 18%); }
.icon-btn .icon { width: 1.4em; height: 1.4em; }
.icon-btn.on { background: rgb(255 255 255 / 20%); }

/* ----- Navigation unten ----- */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  display: flex; justify-content: center; gap: 2px;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding: 6px 8px env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--line);
}
.tab {
  flex: 1 1 0; max-width: 140px; display: grid; place-items: center; align-content: center; gap: 2px;
  color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; border-radius: 12px;
}
.tab .icon { width: 1.5em; height: 1.5em; }
.tab[aria-current='page'] { color: var(--primary-text); background: color-mix(in srgb, var(--primary) 12%, transparent); }

main { max-width: 720px; margin: 0 auto; padding: 14px 14px 28px; outline: none; }

/* ----- Allgemeine Bausteine ----- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card + .card { margin-top: 14px; }
.card h2 { font-size: 1.1rem; margin-bottom: 10px; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font-weight: 600;
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.08); background: var(--primary); }
.btn.danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.small { min-height: 36px; padding: 4px 12px; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 14px; }

.field { display: grid; gap: 4px; }
.field + .field, .field-grid + .field, .field + .field-grid, .field-grid + .field-grid { margin-top: 12px; }
.field-label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
}
.field textarea { min-height: 84px; resize: vertical; }
.field input[type='color'] { padding: 3px; }
.field input:focus, .field select:focus, .field textarea:focus, .btn:focus-visible, .icon-btn:focus-visible, .tab:focus-visible, .chip:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 1px;
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-grid.three { grid-template-columns: repeat(3, 1fr); }
.hint { color: var(--muted); font-size: .8rem; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }
.error { color: var(--danger); font-weight: 600; }

/* ----- Dialog ----- */
dialog {
  width: min(560px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); padding: 0; border: 0; border-radius: 20px;
  background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgb(0 0 0 / 40%);
}
dialog::backdrop { background: rgb(8 14 22 / 55%); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 4px 20px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.dlg-head h2 { font-size: 1.15rem; }
.dlg-body { padding: 8px 20px 20px; }

#toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); z-index: 40;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .2s;
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 12px; background: #1b2633; color: #fff; font-weight: 600;
  box-shadow: 0 6px 24px rgb(0 0 0 / 30%);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.error { background: var(--danger); }

/* ----- Filter & Hinweise ----- */
.whoami { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.whoami .who { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 4px 14px; border-radius: 99px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: .9rem;
}
.chip[aria-pressed='true'] { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.banner {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 12px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--primary) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
}
.banner .grow { flex: 1; min-width: 0; }
.banner strong { display: block; }
.banner .btn-row { justify-content: flex-start; margin-top: 8px; }

/* ----- Zeitstrahl ----- */
.timeline { list-style: none; margin: 0; padding: 0; }
.tl-month {
  position: sticky; top: calc(62px + env(safe-area-inset-top)); z-index: 5; margin: 18px 0 8px; padding: 6px 12px; width: fit-content;
  border-radius: 99px; background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: .85rem; letter-spacing: .02em; text-transform: uppercase;
}
.tl-item { --c: var(--c-other); --c-ink: var(--c-other-ink); display: grid; grid-template-columns: 46px 40px 1fr; gap: 0 6px; position: relative; padding-bottom: 14px; }
.type-training { --c: var(--c-training); --c-ink: var(--c-training-ink); }
.type-home { --c: var(--c-home); --c-ink: var(--c-home-ink); }
.type-away { --c: var(--c-away); --c-ink: var(--c-away-ink); }
.type-tournament { --c: var(--c-tournament); --c-ink: var(--c-tournament-ink); }
.type-other { --c: var(--c-other); --c-ink: var(--c-other-ink); }
.tl-item.is-cancelled, .tl-card.is-cancelled { --c: #8a96a5; --c-ink: #fff; }

.tl-date { text-align: center; line-height: 1.1; padding-top: 4px; }
.tl-date .wd { display: block; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.tl-date .day { display: block; font-size: 1.45rem; font-weight: 800; }
.tl-date .mon { display: block; font-size: .72rem; color: var(--muted); }
.tl-rail { position: relative; display: flex; justify-content: center; }
.tl-rail::before { content: ''; position: absolute; top: 0; bottom: -14px; width: 3px; border-radius: 3px; background: var(--line); }
.tl-item:last-child .tl-rail::before { bottom: 14px; }
.tl-dot {
  position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: var(--c-ink); box-shadow: 0 0 0 4px var(--bg);
}
.tl-dot .icon { width: 1.3em; height: 1.3em; }

.tl-card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border-left: 5px solid var(--c); overflow: hidden; min-width: 0;
}
.tl-item.is-next .tl-card { outline: 2px solid var(--c); outline-offset: 0; }
.tl-card.is-past { opacity: .72; }
.tl-card.is-cancelled { background: color-mix(in srgb, var(--surface) 85%, #8a96a5); }
.tl-card.is-cancelled .tl-title h3 { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--muted); }
.tl-item.flash .tl-card { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 4px var(--c); } 100% { box-shadow: var(--shadow); } }

.tl-head { display: block; width: 100%; padding: 12px 14px 8px; border: 0; background: none; text-align: left; cursor: pointer; }
.tl-kind { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: color-mix(in srgb, var(--c) 78%, var(--text)); }
.tl-title h3 { font-size: 1.1rem; line-height: 1.25; margin-top: 2px; overflow-wrap: anywhere; }
.tl-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: var(--muted); font-size: .92rem; }
.tl-meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.tl-meta .icon { width: 1.05em; height: 1.05em; }

.badge { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .7rem; font-weight: 700; letter-spacing: .02em; background: var(--surface-2); color: var(--text); }
.badge.red { background: var(--no); color: #fff; }
.badge.next { background: var(--c); color: var(--c-ink); }
.badge.warn { background: var(--maybe); color: #fff; }

.tl-body { padding: 0 12px 12px 14px; }
.counts { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-weight: 700; font-size: .92rem; }
.count { display: inline-flex; align-items: center; gap: 4px; }
.count.yes { color: var(--yes); } .count.maybe { color: var(--maybe); } .count.no { color: var(--no); }
.meter { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 8px 0 4px; }
.meter > i { display: block; height: 100%; background: var(--yes); border-radius: 99px; }
.meter-note { font-size: .85rem; font-weight: 600; }
.meter-note.ok { color: var(--yes); } .meter-note.low { color: var(--maybe); }

.rsvp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.rsvp button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; padding: 4px 2px;
  border-radius: 12px; cursor: pointer; border: 2px solid var(--line); background: var(--surface); font-weight: 700; font-size: .82rem;
}
.rsvp button[aria-pressed='true'].yes { background: var(--yes); border-color: var(--yes); color: #fff; }
.rsvp button[aria-pressed='true'].maybe { background: var(--maybe); border-color: var(--maybe); color: #fff; }
.rsvp button[aria-pressed='true'].no { background: var(--no); border-color: var(--no); color: #fff; }
.rsvp button:not([aria-pressed='true']).yes { color: var(--yes); }
.rsvp button:not([aria-pressed='true']).maybe { color: var(--maybe); }
.rsvp button:not([aria-pressed='true']).no { color: var(--no); }
.who-prompt { width: 100%; margin-top: 10px; }

.tl-details { border-top: 1px solid var(--line); padding: 12px 14px 14px; display: grid; gap: 12px; }
.tl-details p { overflow-wrap: anywhere; white-space: pre-wrap; }
.addr { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.addr .grow { flex: 1; min-width: 160px; }
.people h4 { margin: 0 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.people + .people { margin-top: 10px; }
.names { display: flex; flex-wrap: wrap; gap: 6px; }
.name { padding: 3px 10px; border-radius: 99px; background: var(--surface-2); font-size: .9rem; }
.name.me { background: color-mix(in srgb, var(--primary) 20%, var(--surface)); font-weight: 700; }
.people.yes h4 { color: var(--yes); } .people.maybe h4 { color: var(--maybe); } .people.no h4 { color: var(--no); }
.staff-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.past-toggle { display: block; margin: 0 auto 6px; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .icon { width: 2.6em; height: 2.6em; opacity: .6; }

.fab {
  position: fixed; right: 16px; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); z-index: 15;
  width: 58px; height: 58px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px rgb(0 0 0 / 30%);
}
.fab .icon { width: 1.7em; height: 1.7em; }

/* Terminart-Auswahl im Editor */
.type-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.type-pick label { cursor: pointer; }
.type-pick input { position: absolute; opacity: 0; pointer-events: none; }
.type-pick span {
  display: grid; justify-items: center; gap: 2px; padding: 8px 2px; border: 2px solid var(--line); border-radius: 12px; font-size: .7rem; font-weight: 700; text-align: center;
}
.type-pick input:checked + span { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary-text); }
.type-pick input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); }

/* ----- Verein & Verwaltung ----- */
.club-hero { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 8px 0 4px; }
.club-hero img { width: 110px; height: 110px; object-fit: contain; background: #fff; border-radius: 24px; padding: 8px; box-shadow: var(--shadow); }
.info-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.info-row:first-of-type { border-top: 0; }
.info-row .icon { margin-top: 3px; color: var(--primary-text); }
.info-row p { white-space: pre-wrap; overflow-wrap: anywhere; }

details.section { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; }
details.section > summary { display: flex; align-items: center; gap: 10px; padding: 16px; font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none; }
details.section > summary::-webkit-details-marker { display: none; }
details.section > summary .chev { margin-left: auto; transition: transform .2s; }
details.section[open] > summary .chev { transform: rotate(180deg); }
details.section > .section-body { padding: 0 16px 16px; }
.list-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.list-row .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.list-row small { display: block; color: var(--muted); }
.switch-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.switch-row .grow { flex: 1; }
.logo-edit { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo-edit img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 16px; padding: 4px; border: 1px solid var(--line); }
.post { padding: 12px 0; border-top: 1px solid var(--line); }
.post:first-of-type { border-top: 0; }
.post h3 { font-size: 1.05rem; display: flex; gap: 6px; align-items: center; }
.post p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 4px; }
.post small { color: var(--muted); }

@media (min-width: 720px) {
  .tl-item { grid-template-columns: 56px 44px 1fr; }
  .tabbar { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 380px) {
  .field-grid.three { grid-template-columns: 1fr 1fr; }
  .tl-item { grid-template-columns: 40px 36px 1fr; }
  .tl-dot { width: 34px; height: 34px; }
}

.info-row > div { flex: 1; min-width: 0; }
.club-hero + .btn-row { justify-content: center; }
.dlg-body hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0 12px; }
.dlg-body ol { padding-left: 1.2em; }
.dlg-body .stack .btn { width: 100%; justify-content: flex-start; }

a.btn { color: var(--text); text-decoration: none; }
a.btn.primary { color: var(--primary-ink); }
.type-pick { margin-bottom: 14px; }

/* ----- Online-Status & Update ----- */
.brand-mark { position: relative; flex: none; display: block; width: 44px; height: 44px; }
.net-dot {
  position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%;
  background: #2fbf71; border: 2px solid var(--primary);
}
.net-dot.offline { background: #e5484d; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgb(229 72 77 / 35%); } }

#bars { max-width: 720px; margin: 0 auto; padding: 0 14px; }
.netbar {
  display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--no) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--no) 55%, transparent); font-weight: 600; font-size: .92rem;
}

.update-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); z-index: 30;
  max-width: 696px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px;
  border-radius: 14px; background: #1b2633; color: #fff; box-shadow: 0 8px 30px rgb(0 0 0 / 35%);
}
.update-bar span { flex: 1; font-weight: 600; font-size: .92rem; }
.update-bar .btn { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.update-bar .btn.ghost { background: transparent; color: #fff; }

.status-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; }
.status-grid dt { color: var(--muted); font-size: .85rem; }
.status-grid dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.pill-dot { width: 10px; height: 10px; border-radius: 50%; background: #2fbf71; flex: none; }
.pill-dot.offline { background: #e5484d; }

.type-pick.two { grid-template-columns: 1fr 1fr; }
.type-pick.two span { grid-auto-flow: column; justify-content: center; gap: 8px; font-size: .9rem; padding: 12px 6px; }
.contact-actions { display: grid; gap: 8px; }
.contact-actions .btn { justify-content: flex-start; }
.secure-line { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--yes); margin-bottom: 8px; }
.secure-line.warn { color: var(--no); }
.facts { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.badge-new { background: var(--accent); color: var(--accent-ink); }
.msg { padding: 10px 0; border-top: 1px solid var(--line); }
.msg.unread { font-weight: 600; }
.msg p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 2px 0 6px; font-weight: 400; }
.msg small { color: var(--muted); font-weight: 400; }

/* Geteilter Termin: Auswärtsspiel + Freies Spielen */
.tl-split {
  display: grid; gap: 10px; min-width: 0; padding: 8px; border-radius: 20px;
  border: 1.5px dashed color-mix(in srgb, var(--muted) 55%, transparent);
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
}
.split-label { display: flex; align-items: center; gap: 6px; padding: 2px 6px 0; font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.split-label .icon { width: 1.1em; height: 1.1em; }
.tl-kind .icon { width: 1.15em; height: 1.15em; }
.sub-dot {
  position: absolute; right: -7px; bottom: -7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-training); color: var(--c-training-ink); border: 2px solid var(--bg);
}
.sub-dot .icon { width: 12px; height: 12px; }

/* ----- Anleitung ----- */
.sym {
  display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; margin: 0 .15em; vertical-align: middle;
  border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
}
.sym .icon { width: 1.1em; height: 1.1em; }
.steps { list-style: none; counter-reset: step; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; line-height: 1.55; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink); font-weight: 800;
}
.callout {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: 10px 0; border-radius: 14px;
  background: color-mix(in srgb, var(--primary) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
}
.callout .icon { margin-top: 2px; color: var(--primary-text); }
.callout > div { flex: 1; min-width: 0; }
details.faq { border-top: 1px solid var(--line); padding: 4px 0; }
details.faq summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
details.faq p { margin: 0 0 10px; color: var(--muted); }
.icon.back { transform: rotate(90deg); }

.share-text { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); line-height: 1.5; resize: vertical; }

/* Hinweis des Trainer-Teams direkt auf der Karte */
.tl-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: .92rem; overflow-wrap: anywhere; }
.tl-note .icon { margin-top: 2px; width: 1.05em; height: 1.05em; color: var(--primary-text); }
.tl-note.cancel { background: color-mix(in srgb, var(--no) 12%, var(--surface)); font-weight: 600; }
.tl-note.cancel .icon { color: var(--no); }

/* Feiertags-/Ferien-Badges: nur für das Trainer-Team */
.tl-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.tl-badges > .icon { width: .95em; height: .95em; color: var(--muted); }
.badge.holiday { background: color-mix(in srgb, #b45309 22%, var(--surface)); color: color-mix(in srgb, #b45309 85%, var(--text)); }
.badge.school { background: color-mix(in srgb, #0f766e 20%, var(--surface)); color: color-mix(in srgb, #0f766e 85%, var(--text)); }

.reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip.small { min-height: 32px; padding: 2px 12px; font-size: .82rem; }
.hint .icon { width: .95em; height: .95em; vertical-align: -2px; }

/* Status von Spielterminen */
.badge.ok { background: var(--yes); color: #fff; }
.tl-card.is-requested { border-left-style: dashed; }
.tl-note.info { background: color-mix(in srgb, var(--maybe) 14%, var(--surface)); }
.tl-note.info .icon { color: var(--maybe); }
.type-pick.three { grid-template-columns: repeat(3, 1fr); margin-bottom: 0; }
.type-pick.three span { grid-auto-flow: column; justify-content: center; gap: 4px; font-size: .8rem; padding: 10px 2px; white-space: nowrap; }
