/* =====================================================================
   WIS – Schießauswertung · Designsystem (v1.23)
   1 Tokens · 2 Basis · 3 Kopf/Navigation/Fuß · 4 Komponenten
   5 Seitenmodule · 6 Responsive · 7 Druck
   ===================================================================== */

/* ---------- 1 Tokens ---------- */
:root {
    --green: #0e7c3a;
    --green-dark: #0a5f2c;
    --green-light: #e8f5ee;
    --green-mid: #bfe6cd;
    --ink: #1c2530;
    --muted: #6b7684;
    --line: #e3e7ec;
    --line-strong: #cfd6dd;
    --bg: #f5f7f9;
    --bg-soft: #fafbfc;
    --surface: #fff;
    --gold: #c9a227;
    --red: #c0392b;
    --red-light: #fdecea;
    --red-mid: #f5c6c0;
    --amber: #b26a00;
    --amber-light: #fff6e5;
    --amber-mid: #f1e3c2;
    --blue: #2563a8;
    --blue-light: #e8f0fb;
    --live: #e5352b;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(16,24,32,.06), 0 8px 24px rgba(16,24,32,.06);
    --shadow-sm: 0 1px 2px rgba(16,24,32,.06);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --fs-xs: 11.5px;
    --fs-sm: 12.5px;
    --fs: 14px;
    --fs-md: 15px;
    --fs-lg: 17px;
    /* Einheitliche Seitenbreite für alle Seiten. Nur wo eine Tabelle mehr Platz braucht, verbreitert app.js
       den Inhaltsbereich genau so weit wie nötig (höchstens bis zum Bildschirmrand, Rand bleibt). */
    --wrap: 1120px;
    --gutter: 20px;
}

/* ---------- 2 Basis ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
    line-height: 1.5; font-size: var(--fs); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.005em; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(14,124,58,.35); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--green-dark); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.klein { font-size: var(--fs-sm); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.rechts { text-align: right; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.hidden { display: none !important; }

/* Icons (Inline-SVG-Sprite) */
.icon { width: 1em; height: 1em; vertical-align: -.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-lg { width: 1.35em; height: 1.35em; }

/* ---------- 3 Kopf, Navigation, Fuß ---------- */
.site-header { background: linear-gradient(135deg, #123a28 0%, #0e7c3a 100%); color: #fff; position: relative; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand .logo-img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #000; border: 2px solid rgba(255,255,255,.5); flex-shrink: 0; }
.brand b { font-size: 17px; letter-spacing: .2px; display: block; white-space: nowrap; }
.brand small { color: rgba(255,255,255,.75); font-size: 12px; display: block; }
.nav-toggle {
    display: none; margin-left: auto; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff;
    border-radius: 10px; padding: 8px 12px; cursor: pointer; align-items: center; gap: 8px; font-weight: 600;
}
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a {
    color: rgba(255,255,255,.88); padding: 7px 13px; border-radius: 999px; font-size: var(--fs); font-weight: 500;
    transition: background .15s, color .15s; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.nav a:hover { background: rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.nav a.active { background: #fff; color: var(--green-dark); }
.nav .nav-live.ist-live { color: #ffd7d3; font-weight: 700; }
.nav .nav-live.ist-live.active { color: #b42318; }
.nav .nav-live .live-dot { background: #ff6b60; }
.nav .nav-live.active .live-dot { background: var(--live); }
.nav-sek { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; flex-basis: 100%; justify-content: flex-end; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.16); }
.nav-sek a { font-size: var(--fs-sm); padding: 5px 11px; color: rgba(255,255,255,.8); }
.nav-trenner { width: 1px; height: 22px; background: rgba(255,255,255,.3); margin: 0 6px; }
.nav-user { color: rgba(255,255,255,.7); font-size: var(--fs-sm); padding: 0 6px; white-space: nowrap; }
a.nav-user:hover { color: #fff; }

main { padding: 28px 0 56px; }
.page-head { margin-bottom: 22px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; }
.page-head > div { min-width: 0; }
.page-head h1 { margin: 0 0 4px; font-size: 26px; }
.page-head p { margin: 0; color: var(--muted); }
.page-head .page-aktionen { display: flex; gap: 8px; flex-wrap: wrap; }

.site-footer { border-top: 1px solid var(--line); padding: 20px 0 24px; color: var(--muted); font-size: 13px; background: #fff; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sponsor-wrap { justify-content: center !important; margin-bottom: 16px; }
.sponsor-strip { max-width: 100%; height: auto; opacity: .92; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.footer-version { color: var(--muted); font-variant-numeric: tabular-nums; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--green); }

/* ---------- 4 Komponenten ---------- */

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 18px; border-radius: 10px; font-weight: 600;
    font-size: var(--fs-md); cursor: pointer; border: 1px solid transparent; transition: .15s; line-height: 1.25; text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: #fff; color: var(--green); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); }
.btn-danger { background: #fff; color: var(--red); border-color: var(--red-mid); }
.btn-danger:hover { background: var(--red-light); border-color: var(--red); }
.btn-danger.btn-solid { background: var(--red); color: #fff; border-color: var(--red); }
.btn-live { background: var(--live); color: #fff; border-color: var(--live); }
.btn-live:hover { background: #c22b22; }
.btn-sm { padding: 6px 12px; font-size: var(--fs-sm); border-radius: 8px; }
.btn-xs { padding: 3px 9px; font-size: var(--fs-xs); border-radius: 7px; }
.btn-block { width: 100%; }
.btn-icon { padding: 7px; width: 34px; height: 34px; border-radius: 9px; }
.btn[disabled], button[disabled] { opacity: .6; cursor: default; }
.btn.laedt, .laedt[data-request] { opacity: .7; pointer-events: none; }
.link-danger { color: var(--red); }
.aktionen { display: inline-flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.aktionen a, .aktionen button { white-space: nowrap; }
.aktionen .trenn { color: var(--line-strong); }

/* Ladeanzeige */
[data-attach-loading].jax-attach-loader::after {
    content: ''; display: inline-block; width: 13px; height: 13px; margin-left: 8px;
    border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; vertical-align: -2px; animation: spin .7s linear infinite;
}
.btn-ghost [data-attach-loading].jax-attach-loader::after { border-color: rgba(14,124,58,.3); border-top-color: var(--green); }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line-strong); border-top-color: var(--green); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; }
.skeleton { background: linear-gradient(90deg, #eef1f4 25%, #f6f8fa 37%, #eef1f4 63%); background-size: 400% 100%; animation: schimmer 1.4s ease infinite; border-radius: 6px; color: transparent !important; }
@keyframes schimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Karten */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.card-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; }
.card-head h3 { margin: 0; font-size: var(--fs-lg); display: flex; align-items: center; gap: 8px; }
.card-head .tag-link { text-decoration: none; }
.card-head .tag-link:hover { background: var(--green); color: #fff; }
.card-body { padding: 6px 4px; }
.card-body.pad { padding: 16px 18px; }
.card-body.pad-sm { padding: 10px 14px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line); background: var(--bg-soft); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.card.hervor { border-color: var(--green-mid); box-shadow: 0 0 0 2px var(--green-light), var(--shadow); }
.card.warn { border-color: var(--amber-mid); }
.card.fehler { border-color: var(--red-mid); }

/* Tabellen */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs); }
table.tbl th, table.tbl td { padding: 9px 12px; text-align: left; white-space: nowrap; vertical-align: middle; }
table.tbl thead th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--line); font-weight: 600; background: #fff; }
table.tbl tbody tr { border-bottom: 1px solid var(--line); }
table.tbl tbody tr:last-child { border-bottom: 0; }
table.tbl tbody tr:hover { background: var(--bg-soft); }
table.tbl td.umbruch, table.tbl th.umbruch { white-space: normal; }
table.tbl tr.row-link { cursor: pointer; }
table.tbl tr.row-link:hover td { background: var(--green-light); }
table.tbl tr.row-link.aktiv td { background: rgba(30,120,60,.08); }
table.tbl.kompakt th, table.tbl.kompakt td { padding: 6px 8px; font-size: var(--fs-sm); }
.tbl-sticky thead th { position: sticky; top: 0; z-index: 1; }
.rank { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #eef1f4; font-weight: 700; font-size: 13px; color: var(--ink); }
.rank.r1 { background: var(--gold); color: #fff; }
.rank.r2 { background: #b8c0c8; color: #fff; }
.rank.r3 { background: #cd8b52; color: #fff; }
.rank.rq { background: var(--green); color: #fff; }
.akt { font-weight: 700; color: var(--green-dark); }
.dim { color: #c2c9d0; }

/* Formulare */
.field { display: block; margin-bottom: 14px; min-width: 0; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.field.required > span:first-child::after { content: ' *'; color: var(--red); }
.field input, .field select, .field textarea, .input, .select {
    width: 100%; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 9px; font-size: var(--fs-md);
    background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; min-height: 40px;
}
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus, .select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-light); }
.field input[type="checkbox"], .field input[type="radio"] { width: auto; min-height: 0; }
.field input:invalid:not(:placeholder-shown) { border-color: var(--red-mid); }
.field-hint { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field-row-3 { grid-template-columns: repeat(3, 1fr); }
.field-row-4 { grid-template-columns: repeat(4, 1fr); }
.field-error { display: block; color: var(--red); font-size: var(--fs-sm); margin-top: 5px; }
.check { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: var(--fs); color: var(--muted); cursor: pointer; }
.check input { width: auto; margin: 0; accent-color: var(--green); }
.form-section { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 2px; margin: 0 0 16px; background: var(--bg-soft); }
.form-section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--green-dark); font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.form-section-title .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.form-actions .muted { font-size: var(--fs-sm); }
select.select-sm, input.input-sm { min-height: 34px; padding: 6px 10px; font-size: var(--fs-sm); border-radius: 8px; }
.auth-card { max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }

/* Autocomplete */
.ac { position: relative; }
.ac-liste { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin-top: 4px; background: #fff; border: 1px solid var(--line); border-radius: 9px; max-height: 280px; overflow: auto; box-shadow: 0 10px 28px rgba(0,0,0,.14); }
.ac-eintrag { padding: 8px 12px; cursor: pointer; font-size: var(--fs); display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ac-eintrag:hover, .ac-eintrag.aktiv { background: var(--green-light); }
.ac-eintrag small { color: var(--muted); white-space: nowrap; }

/* Hinweise / Meldungen */
.flash { padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; font-size: var(--fs); font-weight: 500; }
.flash-success { background: var(--green-light); color: var(--green-dark); border: 1px solid var(--green-mid); }
.flash-error { background: var(--red-light); color: #b0281a; border: 1px solid var(--red-mid); }
.flash-warning { background: var(--amber-light); color: #8a6100; border: 1px solid var(--amber-mid); }
.flash-info { background: var(--blue-light); color: var(--blue); border: 1px solid #c9dbf4; }
.hinweis-zeile { font-size: var(--fs-sm); color: #6b5a2a; background: #fffaf0; border: 1px solid var(--amber-mid); border-radius: 8px; padding: 8px 12px; margin: 8px 0; }
.hinweis-zeile.hinweis-fehler { color: #8f1d12; background: var(--red-light); border-color: var(--red-mid); }
.hinweis-zeile.hinweis-ok { color: var(--green-dark); background: var(--green-light); border-color: var(--green-mid); }
.empty { background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 36px 20px; text-align: center; color: var(--muted); }
.empty.empty-klein { padding: 16px; }
.live-hinweis { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--live); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); font-size: var(--fs); margin-bottom: 16px; }
.live-hinweis a { font-weight: 600; white-space: nowrap; }
.live-hinweis.hinweis-gruen { border-left-color: var(--green); }
.live-hinweis.hinweis-rot { border-left-color: var(--red); }

/* Abzeichen, Status, Chips */
.tag { background: var(--green-light); color: var(--green-dark); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.tag.tag-warn { background: var(--amber-light); color: #8a5a00; }
.tag.tag-grau { background: #eef1f4; color: var(--muted); }
.tag.tag-rot { background: var(--red-light); color: #b0281a; }
.tag.tag-blau { background: var(--blue-light); color: var(--blue); }
.tbl tr.zeile-warn td { background: var(--amber-light); }
.plan-termine { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 6px; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 6px; white-space: nowrap; line-height: 1.6; }
.status-quali, .status-ok, .status-offiziell { background: var(--green-light); color: var(--green-dark); }
.status-vorl, .status-geplant, .status-grau { background: #eef1f4; color: #4a5560; }
.status-gleich, .status-pruefung, .status-warn, .status-entwurf { background: var(--amber-light); color: #8a5a00; }
.status-verzicht, .status-fehler { background: var(--red-light); color: #b0281a; }
.status-live { background: var(--live); color: #fff; }
.status-live .live-dot { background: #fff; width: 6px; height: 6px; }
.status-bereit { background: var(--blue-light); color: var(--blue); }
.status-unterbrochen { background: var(--amber-light); color: #8a5a00; }
.status-beendet { background: #e2e6ea; color: #3b4652; }
.status-bestaetigt { background: var(--green-light); color: var(--green-dark); }
.status-vollstaendig { background: var(--blue-light); color: var(--blue); }
.status-offen { background: #eef1f4; color: var(--muted); }
.kat { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; margin-left: 6px; background: #eef1f4; color: #4a5560; text-transform: uppercase; letter-spacing: .03em; }
.kat-1 { background: #fbf3d9; color: #7a5d00; }
.kat-2 { background: #eef1f4; color: #4a5560; }
.badge-l { background: #eef1f4; color: var(--muted); font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; margin-left: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.tag.tag-gruen { background: var(--green); color: #fff; }
.card-head-aktionen { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* Mannschaftsrunde („R2“) neben dem Mannschaftsnamen */
.runde-chip { display: inline-block; font-size: 10.5px; font-weight: 800; line-height: 1.5; padding: 0 6px; border-radius: 5px; background: var(--blue-light); color: var(--blue); vertical-align: 1px; white-space: nowrap; letter-spacing: .02em; }
.runde-chip.fehlt { background: var(--amber-light); color: #8a5a00; }
.badge-n { background: var(--amber-light); color: #8a5a00; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; margin-left: 6px; }
.field-schmal { max-width: 140px; }
.field-row:has(.field-schmal) { grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr) 120px; }
/* Zeitplan: Standbelegung eingeben, Probe/Start berechnet */
.zeitplan { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr); align-items: start; }
.zeitplan input.berechnet { background: var(--bg-soft); color: var(--muted); }
.zeitplan-abw .check { margin: 24px 0 6px; }
.zeitplan-hinweis { grid-column: 1 / -1; margin: -6px 0 8px; min-height: 0; }
.zeitplan-hinweis:empty { display: none; }
.orga-details { margin: 4px 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 12px; }
.orga-details > summary { cursor: pointer; padding: 9px 0; font-weight: 600; }
.orga-details[open] > summary { margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.team-zelle { overflow-wrap: anywhere; hyphens: auto; }
/* Begegnungsplan (Spielplan) und vorläufige Ergebnisse */
.spielplan-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 4px 0 16px; }
.card-head h3.spielplan-titel, .spielplan-titel { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; text-align: left; }
.pill-test { display: inline-block; margin-left: 2px; padding: 0 5px; border-radius: 999px; background: #fff3cd; color: #7a5a00; font-size: 10px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; vertical-align: 1px; }
.auswahl-hinweis { display: block; margin-top: 4px; font-size: var(--fs-sm); color: #7a5a00; }
.spielplan-titel small { font-size: var(--fs-sm); font-weight: 500; color: var(--muted); overflow-wrap: anywhere; }
.spielplan-termin.naechster { border-color: var(--green-mid); box-shadow: 0 0 0 3px var(--green-light), var(--shadow-sm); }
.spielplan-termin.zustand-live { border-color: #f3b4ae; }
.spielplan-termin .card-head { flex-wrap: wrap; gap: 8px 12px; }
.spielplan-fuss { margin: 8px 14px 12px; }
.spielplan-tbl td.akt strong { color: var(--green-dark); }
.vorlaeufig-bereich { margin: 18px 0; border: 1px dashed var(--amber-mid); border-radius: var(--radius); padding: 0 14px; background: #fffdf7; }
.vorlaeufig-bereich > summary { cursor: pointer; padding: 12px 0; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.vorlaeufig-bereich[open] { padding-bottom: 14px; }
/* Mannschaftslogo: Seitenverhältnis bleibt (contain), ohne Logo neutrales Symbol */
.team-logo { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; vertical-align: middle; }
.team-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.team-logo.ersatz { background: var(--bg-soft); color: var(--line-strong); }
.team-logo-klein { width: 28px; height: 28px; border-radius: 6px; }
.team-logo-klein .icon { width: 15px; height: 15px; }
.team-logo-mittel { width: 48px; height: 48px; }
.team-logo-gross { width: 84px; height: 84px; border-radius: 12px; }
.team-logo-gross .icon { width: 34px; height: 34px; }
.team-logo-verwaltung { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.team-logo-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.team-logo-datei { flex: 1 1 240px; min-width: 0; }
.team-logo-datei input[type="file"] { max-width: 100%; width: 100%; }
.team-logo-vorschau { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #fff; }
.team-mit-logo { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.team-kopf { display: flex; align-items: center; gap: 16px; min-width: 0; }
.team-kopf h1 { overflow-wrap: anywhere; }
.logo-wahl { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 0 14px; }
.logo-wahl legend { font-weight: 700; padding: 0 6px; }
.logo-optionen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.logo-option { display: grid; grid-template-columns: auto 72px minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: var(--fs-sm); }
.logo-option.gesperrt { opacity: .6; cursor: not-allowed; }
.logo-option:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-light); }
.logo-box { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow: hidden; }
.logo-box img { width: 100%; height: 100%; object-fit: contain; }
.logo-ersatz { color: var(--line-strong); background: var(--bg-soft); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); font-weight: 600; padding: 2px 8px; border-radius: 6px; background: #eef1f4; color: #4a5560; white-space: nowrap; }
.chip-bl { background: var(--blue-light); color: var(--blue); }
.chip-ok { background: var(--green-light); color: var(--green-dark); }
.chip-warn { background: var(--amber-light); color: #8a5a00; }
.chip-fehler { background: var(--red-light); color: #b0281a; }
.sp { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.sp::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #b8c0c8; flex-shrink: 0; }
.sp-ok { color: var(--green-dark); } .sp-ok::before { background: var(--green); }
.sp-warn { color: #8a5a00; } .sp-warn::before { background: #e3a008; }
.sp-fehler { color: #b0281a; } .sp-fehler::before { background: var(--red); }
.dok { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--green-light); color: var(--green-dark); font-size: var(--fs-sm); font-weight: 600; border: 1px solid var(--green-mid); white-space: nowrap; }
.dok:hover { background: var(--green); color: #fff; border-color: var(--green); text-decoration: none; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); vertical-align: middle; animation: livePuls 1.4s infinite; }
@keyframes livePuls { 0% { box-shadow: 0 0 0 0 rgba(229,53,43,.55); } 70% { box-shadow: 0 0 0 7px rgba(229,53,43,0); } 100% { box-shadow: 0 0 0 0 rgba(229,53,43,0); } }
.live-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--live); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; }
.live-badge .live-dot { background: #fff; animation: livePulsW 1.4s infinite; }
@keyframes livePulsW { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 70% { box-shadow: 0 0 0 6px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.live-badge.ruhig .live-dot { animation: none; }
.live-badge.badge-grau { background: #6b7684; }
.live-badge.badge-blau { background: var(--blue); }
.live-badge.badge-amber { background: var(--amber); }
.live-badge.badge-gruen { background: var(--green); }
@media (prefers-reduced-motion: reduce) { .live-dot, .live-badge .live-dot { animation: none; } }

/* Fortschritt */
.progress { height: 8px; background: #e6eaee; border-radius: 999px; overflow: hidden; min-width: 60px; }
.progress > i { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width .5s ease; }
.progress.klein { height: 5px; }
.progress-zeile { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--muted); }
.progress-zeile .progress { flex: 1; }

/* Werkzeugleisten, Filter, Tabs */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .spacer { flex: 1; }
.filterbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; padding: 12px 16px; margin-bottom: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.filterbar label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; min-width: 0; }
.filterbar select, .filterbar input { min-height: 36px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: var(--fs); background: #fff; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink); min-width: 150px; }
.filterbar input[type="search"] { min-width: 220px; }
.filterbar label.filter-suche { flex: 1 1 240px; max-width: 420px; }
.filterbar label.filter-suche input { width: 100%; }
.filterbar select:focus, .filterbar input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-light); }
.filterbar .filter-aktionen { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.filterbar .zaehler { font-size: var(--fs-sm); color: var(--muted); align-self: center; }
.verw-tabs, .tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.verw-tabs a, .tabs a, .tabs button { background: transparent; border: 0; padding: 8px 14px; border-radius: 9px; font-size: var(--fs); font-weight: 600; cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; }
.verw-tabs a:hover, .tabs a:hover, .tabs button:hover { background: var(--bg); text-decoration: none; }
.verw-tabs a.active, .tabs a.active, .tabs button.active { background: var(--green); color: #fff; }
.verw-tabs a.verw-extern { margin-left: auto; color: var(--green); }
.verw-h2 { font-size: 20px; margin: 6px 0 14px; }
.verw-h2 .muted { font-size: var(--fs); font-weight: 400; }
/* Verwaltung › Anleitungen: PDF-Liste */
.anleitungen { list-style: none; margin: 0; padding: 0; }
.anleitungen li { display: flex; justify-content: space-between; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.anl-text { display: flex; flex-direction: column; gap: 3px; flex: 1 1 320px; }
.anl-meta { font-size: var(--fs-sm); }
.anl-aktionen { display: flex; gap: 8px; flex-wrap: wrap; }
/* Verwaltung › Benutzer: Online-Status */
.online-punkt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #1faa59; box-shadow: 0 0 0 3px rgba(31,170,89,.18); vertical-align: middle; }
.tag-online { background: #e3f6ea; color: #14703a; }
.benutzer-status { white-space: nowrap; }
/* Verwaltung › Statistik (Diagrammfarbe bewusst eigenständig: Blau, nicht die Seitenfarbe) */
.stat { --stat-1: #2a78d6; --stat-raster: #e6e9ed; --stat-achse: #8a94a0; }
.stat-leiste { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 14px; }
.stat-leiste .btn { margin-left: auto; }
.stat-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
#stat-live { display: contents; }
.stat-kachel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat-kachel-titel { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat-zahl { font-size: 28px; line-height: 1.15; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-zahl-gross { font-size: 48px; }
.stat-kachel-fuss { font-size: var(--fs-xs); color: var(--muted); line-height: 1.35; }
.stat-kachel-live { grid-row: span 2; }
.stat-kachel-live.aktiv { border-color: #f1c1bd; background: #fff8f7; }
.stat-live-liste { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.stat-live-liste li { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.stat-live-liste strong { font-variant-numeric: tabular-nums; }
.stat-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 0 16px; }
.stat-karte .card-head h3 { font-size: var(--fs-md); }
.stat-diagramm { display: flex; gap: 8px; height: 190px; padding-bottom: 20px; position: relative; }
.stat-achse-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 10.5px; color: var(--stat-achse); text-align: right; min-width: 26px; font-variant-numeric: tabular-nums; line-height: 1; }
.stat-achse-y span:first-child { transform: translateY(-3px); }
.stat-achse-y span:last-child { transform: translateY(3px); }
.stat-balken { flex: 1; display: flex; align-items: stretch; gap: 2px; min-width: 0; border-bottom: 1px solid var(--stat-achse);
    background: linear-gradient(var(--stat-raster), var(--stat-raster)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--stat-raster), var(--stat-raster)) 0 50% / 100% 1px no-repeat; }
.stat-spalte { flex: 1; min-width: 0; position: relative; display: flex; align-items: flex-end; justify-content: center; cursor: default; }
.stat-spalte i { display: block; width: 100%; max-width: 24px; min-height: 0; background: var(--stat-1); border-radius: 4px 4px 0 0; transition: opacity .12s; }
.stat-balken.tage-90 .stat-spalte i { border-radius: 2px 2px 0 0; }
.stat-balken.tage-90 { gap: 1px; }
.stat-spalte:hover { background: rgba(42,120,214,.08); }
.stat-spalte.zukunft { opacity: .45; }
.stat-x { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 5px; font-size: 10.5px; color: var(--stat-achse); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat-linie .stat-flaeche { flex: 1; position: relative; min-width: 0; border-bottom: 1px solid var(--stat-achse);
    background: linear-gradient(var(--stat-raster), var(--stat-raster)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--stat-raster), var(--stat-raster)) 0 50% / 100% 1px no-repeat; }
.stat-flaeche svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stat-punkt { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; }
.stat-punkt:hover::after, .stat-punkt.spitze::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--stat-1); box-shadow: 0 0 0 2px var(--surface); }
.stat-marke { position: absolute; transform: translate(-50%, -165%); font-size: 11px; font-weight: 600; color: var(--ink); white-space: nowrap; background: var(--surface); padding: 0 4px; border-radius: 4px; pointer-events: none; }
.stat-x-zeile { position: absolute; left: 0; right: 0; top: 100%; height: 18px; }
.stat-x-zeile span { position: absolute; transform: translateX(-50%); margin-top: 5px; font-size: 10.5px; color: var(--stat-achse); font-variant-numeric: tabular-nums; }
.stat-bereiche .stat-anteil { width: 45%; }
.stat-streifen { display: block; height: 8px; border-radius: 4px; background: var(--stat-raster); overflow: hidden; }
.stat-streifen i { display: block; height: 100%; border-radius: 4px; background: var(--stat-1); }
.stat-tabelle { padding: 0; }
.stat-hinweis { margin: 4px 2px 16px; line-height: 1.5; }
.stat-herkunft { align-items: start; }
.stat-ips .stat-ip { font-variant-numeric: tabular-nums; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.stat-ips .stat-streifen { min-width: 70px; }
.stat-hinweis { margin: 10px 14px 12px; }
.stat-flagge { font-size: 15px; line-height: 1; vertical-align: -1px; }
.stat-land { white-space: nowrap; }
.stat-tip { position: fixed; z-index: 60; pointer-events: none; background: #1c2530; color: #fff; font-size: 12px; line-height: 1.35; padding: 6px 9px; border-radius: 7px; box-shadow: 0 4px 14px rgba(0,0,0,.22); max-width: 260px; white-space: nowrap; }
@media (max-width: 640px) { .stat-kachel-live { grid-row: auto; } .stat-zahl-gross { font-size: 40px; } .stat-bereiche .stat-anteil, .stat-bereiche .stat-anteil-kopf { display: none; } }
/* Schützenprofil: Sprung zu den Schussbildern einer Runde */
.sb-runde-link { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; padding: 2px 9px; border: 1px solid var(--green-mid); border-radius: 999px; background: var(--green-light); color: var(--green-dark); font-size: var(--fs-xs); font-weight: 600; text-decoration: none; vertical-align: 1px; }
.sb-runde-link:hover { background: var(--green); border-color: var(--green); color: #fff; text-decoration: none; }
.sb-runde-link .icon { width: 13px; height: 13px; }
.sb-karte { scroll-margin-top: 16px; }
.sb-karte:target { box-shadow: 0 0 0 3px var(--green-mid), var(--shadow); }
/* Mein Konto */
.konto-card { max-width: 640px; }
.konto-rolle-text { padding: 8px 0 2px; }
.konto-h3 { font-size: var(--fs-lg); margin: 18px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.konto-h3 .muted { font-size: var(--fs-sm); font-weight: 400; }
.konto-aktionen { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }

/* Auswahlbalken (Saison, Liga, Disziplin, Region) */
.auswahl { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.auswahl-zeile { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.auswahl-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; min-width: 58px; }
.auswahl-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-block; padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; transition: .15s; cursor: pointer; }
.pill:hover { border-color: var(--green); color: var(--green-dark); text-decoration: none; }
.pill.aktiv { background: var(--green); border-color: var(--green); color: #fff; }

/* Wettbewerbsphasen */
.phasen { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin: -6px 0 18px; }
.phase { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); }
.phase:hover { border-color: var(--green); text-decoration: none; }
.phase .phase-name { font-weight: 700; font-size: var(--fs); }
.phase .phase-status { font-size: var(--fs-xs); color: var(--muted); }
.phase.phase-keine { background: var(--bg-soft); }
.phase.phase-keine .phase-name { color: #8a94a0; }
.phase.phase-laufend .phase-status { color: var(--amber); font-weight: 600; }
.phase.aktiv { background: var(--green); border-color: var(--green); color: #fff; }
.phase.aktiv .phase-status, .phase.aktiv .phase-name { color: #fff; }
.seiten-aktionen { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.druck-steuerung { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.druck-steuerung .btn[aria-disabled="true"] { opacity: .6; }
.druck-steuerung .druck-team { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.druck-steuerung select { min-height: 32px; padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: var(--fs-sm); background: #fff; max-width: 260px; }
.druck-wahl { display: flex; gap: 16px; align-items: center; justify-content: flex-end; margin: 14px 2px -6px; font-size: var(--fs-sm); color: var(--muted); }
.druck-wahl label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.druck-wahl a { display: inline-flex; gap: 4px; align-items: center; }
.druck-wahl.gewaehlt label { color: var(--green-dark); font-weight: 700; }
/* Druck je Begegnung in der Kopfleiste der Karte (Ergebnisse): Link + Häkchen „Zum Druck“ für die Auswahl oben */
.duell-kopf-band .duell-druck-link { display: inline-flex; align-items: center; gap: 4px; color: #ffe08a; }
.duell-kopf-band .duell-druck-link .icon { width: 14px; height: 14px; }
.duell-kopf-band .duell-druck { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; color: #cfe6d8; }
.duell-kopf-band .duell-druck input { margin: 0; accent-color: #ffe08a; }
.duell-kopf-band .duell-druck.gewaehlt { color: #ffe08a; font-weight: 700; }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.stat .n { font-size: 28px; font-weight: 700; color: var(--green-dark); line-height: 1; overflow-wrap: anywhere; }
.stat .l { color: var(--muted); font-size: 13px; margin-top: 6px; text-transform: uppercase; letter-spacing: .04em; }
.stat.stat-link { display: block; color: inherit; }
.stat.stat-link:hover { border-color: var(--green); text-decoration: none; }
.stats-kompakt { grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 12px 4px; }
.stats-kompakt .stat { padding: 12px 14px; box-shadow: none; background: var(--bg-soft); }
.stats-kompakt .stat .n { font-size: 22px; }
.stats-kompakt .stat .l { font-size: var(--fs-xs); margin-top: 4px; }

/* ---------- 5 Seitenmodule ---------- */

/* Startseite */
.start-kopf { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px; margin-bottom: 22px; display: grid; grid-template-columns: 84px 1fr 84px; gap: 22px; align-items: center; }
.start-kopf .logo-osb, .start-kopf .logo-bl { width: 84px; height: 84px; object-fit: contain; }
.start-kopf .logo-bl { border-radius: 50%; }
.start-titel { text-align: center; }
.start-titel h1 { margin: 0 0 8px; font-size: 25px; }
.start-titel p { margin: 0 auto; color: var(--muted); max-width: 62ch; }
.hero { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; margin-bottom: 28px; border: 1px solid var(--line); }
.hero h1 { margin: 0 0 8px; font-size: 32px; }
.hero p { margin: 0 0 20px; color: var(--muted); max-width: 60ch; }
.hero .btns, .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-live { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.start-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.schnellzugriff { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; padding: 14px 16px; }
.schnell-karte { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); }
.schnell-karte:hover { border-color: var(--green); background: var(--green-light); }
.schnell-titel { display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.schnell-titel:hover { text-decoration: none; }
.schnell-titel strong { color: var(--green-dark); }
.schnell-titel small { color: var(--muted); }
.schnell-links { display: flex; flex-wrap: wrap; gap: 6px; }
.schnell-links a { font-size: var(--fs-sm); padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--green-dark); }
.schnell-links a:hover { border-color: var(--green); text-decoration: none; }
.termin-liste { list-style: none; margin: 0; padding: 4px 0; }
.termin-liste li { display: grid; grid-template-columns: 62px 1fr; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.termin-liste li:last-child { border-bottom: 0; }
.termin-datum { text-align: center; background: var(--green-light); border-radius: 9px; padding: 5px 4px; color: var(--green-dark); line-height: 1.1; }
.termin-datum b { display: block; font-size: 18px; }
.termin-datum small { font-size: 11px; text-transform: uppercase; }
.termin-text strong { display: block; }
.termin-text span { color: var(--muted); font-size: var(--fs-sm); }

/* Offizieller Titelblock */
.liga-kopf { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 26px; margin-bottom: 22px; display: grid; grid-template-columns: 72px 1fr 72px; gap: 18px; align-items: center; }
.liga-kopf .logo-osb, .liga-kopf .logo-bl { width: 72px; height: 72px; object-fit: contain; }
.liga-kopf .logo-bl { border-radius: 50%; }
.liga-kopf .titel { text-align: center; min-width: 0; }
.liga-kopf .titel .t1 { font-size: 20px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.liga-kopf .titel .t2 { font-size: 16px; font-weight: 700; color: var(--green-dark); text-transform: uppercase; }
.liga-kopf .titel .t3 { font-size: var(--fs); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.liga-kopf .titel .t4 { margin-top: 6px; font-size: var(--fs); font-weight: 600; }
.liga-kopf .titel .logo-t9f { display: block; height: 68px; width: auto; margin: 8px auto 0; }
.liga-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 20px; font-size: 13.5px; background: var(--green-light); border: 1px solid var(--green-mid); border-radius: 10px; padding: 12px 16px; }
.liga-meta b { color: var(--green-dark); }
.termin-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.termin-meta { display: flex; gap: 8px 22px; flex-wrap: wrap; margin: -4px 0 16px; background: var(--green-light); border: 1px solid var(--green-mid); border-radius: 10px; padding: 12px 16px; font-size: 13.5px; color: var(--muted); }
.termin-meta b { color: var(--green-dark); font-weight: 700; margin-right: 4px; }
.bx-abschnitt { margin: 26px 0 12px; font-size: 16px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.bx-abschnitt::after { content: ''; flex: 1; height: 2px; background: var(--line); }
.bewerb-block.aktiv { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-light), var(--shadow); }
.bewerb-titel { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bewerb-saison { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }

/* Infos (PDF) */
.pdf-aktionen { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.pdf-seiten { display: flex; flex-direction: column; gap: 14px; background: #eef1f0; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); }
.pdf-seiten img { display: block; width: 100%; max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.pdf-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.regelwerk-info { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin: 0 0 14px; font-size: 13.5px; background: var(--green-light); border: 1px solid var(--green-mid); border-radius: 10px; padding: 10px 14px; }
.regelwerk-info b { color: var(--green-dark); }
/* Infos: Verweise auf die ÖSB-Seiten (Linkpille + kurze Erklärung) */
.info-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.info-links li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.info-links .muted { font-size: 13.5px; }
.info-links .dok::after { content: " ↗"; font-weight: 400; }
.regel-hinweise { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: #fffdf7; }
.regel-hinweise summary { cursor: pointer; }
.regel-hinweise td { vertical-align: top; font-size: var(--fs-sm); }
.regel-text { font-size: var(--fs-sm); color: var(--muted); margin: 6px 14px 10px; }

/* Volltabelle (Setzliste offiziell) */
.offiziell table.tbl th, .offiziell table.tbl td { padding: 6px 8px; font-size: 13px; }
.offiziell .team-title { font-weight: 800; font-size: var(--fs-md); }
.offiziell tr.summe td { border-top: 2px solid var(--ink); font-weight: 700; background: #f3f6f4; }
.offiziell tr.leer td { color: #c2c9d0; }
.team-block { padding: 0; }
.team-summary { list-style: none; cursor: pointer; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid transparent; }
.team-block[open] .team-summary { border-bottom-color: var(--line); }
.team-summary::-webkit-details-marker { display: none; }
.team-summary::before { content: '▸'; color: var(--green); font-size: 13px; margin-right: 8px; transition: transform .15s; display: inline-block; }
.team-block[open] .team-summary::before { transform: rotate(90deg); }
.team-summary:hover { background: var(--bg-soft); }
.setzliste-breit { width: calc(100vw - 44px); margin-left: calc(50% - 50vw + 22px); margin-right: calc(50% - 50vw + 22px); border-radius: var(--radius); border: 1px solid #cfe8da; overflow: hidden; box-shadow: 0 1px 3px rgba(10,95,44,.10), 0 16px 40px rgba(10,95,44,.13); }
.setzliste-breit > .card-body { padding: 6px 16px 10px; }
.setzliste-breit .team-summary { padding-left: 16px; padding-right: 16px; }
.setzliste-breit .tbl th, .setzliste-breit .tbl td { padding: 8px 8px; }
@media screen and (min-width: 1180px) { .setzliste-breit { width: auto; margin-left: 0; margin-right: 0; } }

/* Saison-Übersicht */
.saison-tbl td, .saison-tbl th { white-space: normal; vertical-align: middle; }
.saison-tbl .doks { display: flex; flex-wrap: wrap; gap: 6px; }
/* Saisonübersicht: Datum mit Wochentag, Gruppenbeginn (neuer Tag bzw. neue Bundesliga) durch kräftigere Linie */
.saison-uebersicht td.saison-datum { white-space: nowrap; }
.saison-uebersicht td.saison-datum .klein { display: block; }
.saison-uebersicht tbody tr.gruppe-start td { border-top: 2px solid var(--line-strong); }
.saison-uebersicht tbody tr:first-child.gruppe-start td { border-top: 0; }
.sort-wahl { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* Schützenseite: Meldedaten als beschriftete Liste */
.meldeliste { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 24px; margin: 6px 10px; }
.meldeliste > div { min-width: 0; }
.meldeliste dt { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.meldeliste dd { margin: 2px 0 0; font-size: var(--fs); overflow-wrap: anywhere; }

/* ===== Begegnung (Duell) ===== */
.duell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; }
.duell-kopf { background: #fff; border-bottom: 1px solid var(--line); }
.duell-kopf-band { padding: 14px 18px 13px; background: linear-gradient(135deg, #123a28 0%, #0e7c3a 100%); color: #fff; }
.duell-kopf-band .duell-meta { color: #cfe6d8; }
.duell-kopf-band .duell-runde { color: #fff; }
.duell-kopf-band .duell-nr::before, .duell-kopf-band .duell-reg::before { color: rgba(255,255,255,.45); }
.duell-kopf-band .duell-team, .duell-kopf-band .duell-team a { color: #fff; }
.duell-kopf-band .duell-team a:hover { color: #d7f0e0; }
.duell-kopf-band .duell-mplabel { color: #cfe6d8; }
.duell-kopf-band .duell-team.sieger, .duell-kopf-band .duell-team.sieger a { color: #ffe08a; }
.duell-kopf-band .duell-team.sieger::after { content: ' ✓'; color: #ffe08a; font-weight: 800; }
.duell-kopf-band .duell-team-r.sieger::after { content: ''; }
.duell-kopf-band .duell-team-r.sieger::before { content: '✓ '; color: #ffe08a; font-weight: 800; }
.duell-kopf-band .duell-setz { color: #cfe6d8; }
.duell-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 10px; }
.duell-runde { font-weight: 700; color: var(--green-dark); }
.duell-nr::before, .duell-reg::before { content: '·'; margin-right: 8px; color: #c7cdd4; }
.duell-status { margin-left: auto; font-weight: 700; background: rgba(255,255,255,.16); border-radius: 999px; padding: 1px 8px; letter-spacing: .04em; }
.duell-kopf-band .duell-status { color: #fff; }
.duell-kopf-band .duell-status.status-live { background: var(--live); }
.duell-kopf-band .duell-status.status-bestaetigt { background: #ffd54a; color: #3a2d00; }
.duell-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px 16px; }
.duell-team { font-size: 16px; font-weight: 700; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.duell-team-r { text-align: left; }
.duell-team a { color: var(--ink); }
.duell-team.sieger a, .duell-team.sieger { color: var(--green-dark); }
.duell-score { display: flex; flex-direction: column; align-items: center; }
.duell-mp { font-size: 20px; font-weight: 800; color: var(--ink); background: #f2f5f7; border-radius: 8px; padding: 2px 14px; white-space: nowrap; }
.duell-mp i { font-style: normal; color: var(--muted); margin: 0 5px; font-weight: 600; }
.duell-mplabel { font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 3px; }
.duell-setz { font-size: 11px; font-weight: 600; opacity: .75; }
.duell-runde-team { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 0 6px; border-radius: 5px; background: rgba(255,255,255,.18); color: inherit; vertical-align: 2px; margin: 0 4px; }
.duell-zeiten { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 18px 14px; padding: 8px 12px; border: 1px solid #cfe8da; border-radius: 8px; background: var(--green-light); font-size: var(--fs-sm); color: var(--muted); }
.duell-zeiten b { color: var(--ink); font-weight: 600; margin-right: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.duell-kampflos { padding: 16px 18px; margin: 0; color: var(--muted); }
.duell-tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.duell-tbl th, .duell-tbl td { padding: 6px 8px; text-align: center; white-space: nowrap; }
.duell-tbl thead th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.duell-tbl .st { width: 28px; color: #aab2ba; font-size: var(--fs-xs); }
.duell-tbl .nm { text-align: right; min-width: 140px; font-weight: 600; }
.duell-tbl .nm-r { text-align: left; }
.duell-tbl .nm-zeile { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 100%; }
.duell-tbl .nm-r .nm-zeile { justify-content: flex-start; }
.duell-tbl .nm-zeile .live-schuetze-fortschritt, .duell-tbl .nm-zeile .badge-l { margin: 0; flex: none; }
.duell-tbl .nm-verein { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); line-height: 1.25; margin-top: 1px; }
body.vollbild .duell-tbl .nm-verein { color: #9fb8aa; }
.duell-tbl .nm a { color: var(--ink); }
.duell-tbl .nm a:hover { color: var(--green); }
.duell-tbl .na { color: #b0281a; font-style: italic; font-weight: 600; }
.duell-tbl .serie { width: 36px; color: #4a5560; background: #f7faf8; }
.duell-tbl .serie.quelle-anlage { box-shadow: inset 0 -2px 0 var(--blue); }
.duell-tbl .sum { width: 48px; font-weight: 700; }
.duell-tbl .ep { width: 32px; font-weight: 700; color: var(--muted); }
.duell-tbl .ep.sieger { color: var(--green-dark); background: var(--green-light); border-radius: 4px; }
.duell-tbl tr.haupt td { border-top: 1px solid var(--line); }
.duell-tbl tr.punkte td { font-size: 10px; color: #b3bcc4; padding: 0 8px 5px; }
.duell-tbl tr.gesamt td { border-top: 2px solid var(--ink); font-weight: 700; background: #fafbfc; text-align: right; font-size: 12px; }
.duell-tbl tr.gesamt td.rechts { text-align: left; }
.duell-tbl tr.gesamt td.sum, .duell-tbl tr.gesamt td.ep { text-align: center; }
.duell-tbl tr.stechen td { background: var(--green-light); border-top: 1px solid var(--green-mid); font-weight: 700; text-align: right; font-size: 12px; color: var(--green-dark); }
.duell-tbl tr.stechen td.rechts { text-align: left; font-weight: 400; font-size: var(--fs-xs); }
.duell-tbl tr.stechen td.sum, .duell-tbl tr.stechen td.ep { text-align: center; }
.duell-tbl tr.kein-stechen td { color: var(--red); font-weight: 600; font-size: var(--fs-xs); padding: 6px 8px; text-align: right; }
.duell-tbl tr.kein-stechen td.rechts { text-align: left; }
.duell-tbl td.geaendert { animation: hervorheben 2.2s ease-out; }
@keyframes hervorheben { 0% { background: #fff1b8; } 100% { background: transparent; } }
.stechen-manuell { margin: 0; padding: 8px 18px; font-size: var(--fs-sm); color: #8a5a00; background: #fffaf0; border-top: 1px solid var(--amber-mid); }

/* Begegnungen (alte kompakte Darstellung) */
.begegnung { margin-bottom: 22px; }
.beg-head { background: linear-gradient(135deg, #123a28 0%, #0e7c3a 100%); color: #fff; padding: 12px 18px; }
.beg-nr { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; text-align: center; margin-bottom: 8px; }
.beg-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px 14px; font-size: 16px; }
.beg-team { font-weight: 700; text-align: right; }
.beg-team-r { text-align: left; }
.beg-team a { color: #fff; }
.beg-team.sieger { color: #ffe08a; }
.beg-score { display: flex; flex-direction: column; align-items: center; }
.beg-mp { font-size: 20px; font-weight: 800; background: rgba(255,255,255,.15); padding: 2px 12px; border-radius: 8px; white-space: nowrap; }
.beg-mp-label { font-size: 11px; opacity: .8; margin-top: 2px; }
.beg-tbl { min-width: 700px; }
.beg-tbl th, .beg-tbl td { padding: 5px 7px; font-size: var(--fs-sm); text-align: center; }
.beg-tbl th:nth-child(2), .beg-tbl td:nth-child(2), .beg-tbl th:nth-child(16), .beg-tbl td:nth-child(16) { text-align: left; min-width: 120px; }
.beg-tbl .sum { font-weight: 700; background: #f6f8f7; }
.beg-tbl .sep { background: #f0f3f1; }
.beg-tbl .sep.sieger { color: var(--green-dark); font-weight: 800; }
.beg-tbl tr.beg-dp td { color: #9aa4ad; font-size: 11px; padding-top: 0; padding-bottom: 4px; border: 0; }
.beg-tbl tr.beg-main td { border-bottom: 0; }

/* Stechen */
.stechen-detail { padding: 14px 18px 18px; border-top: 1px solid var(--line); background: #f4faf6; }
.stechen-titel { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--green-dark); font-weight: 700; margin-bottom: 8px; }
.stechen-grid { border-collapse: collapse; font-size: var(--fs-sm); min-width: 720px; margin: 0 auto; }
.stechen-grid th, .stechen-grid td { border: 1px solid #d9e3da; padding: 5px 8px; text-align: center; white-space: nowrap; }
.stechen-grid thead th { background: #eef3ee; font-weight: 700; font-size: 11px; color: #5a6b5e; }
.stechen-grid th.pkt, .stechen-grid td.pkt { width: 54px; font-weight: 800; background: #f4f7f4; color: #4a5560; }
.stechen-grid td.pkt.sieger { color: var(--green-dark); background: var(--green-light); }
.stechen-grid .lbl { width: 82px; font-weight: 700; color: var(--green-dark); background: #eaf6ee; }
.stechen-grid .stand { color: #8a94a0; font-size: 11px; background: var(--bg-soft); }
.stechen-grid td.hl { background: #eef7ee; font-weight: 600; color: #3a4a3e; }
.stechen-grid tr.tr-punkte td { color: #6a747e; font-size: var(--fs-xs); }
.stechen-grid tr.tr-punkte td.sieger { color: var(--green-dark); font-weight: 800; background: var(--green-light); }
.stechen-grid tr.stand-nr th { background: var(--bg-soft); color: #8a94a0; font-size: 10.5px; font-weight: 600; padding: 3px 8px; }
.eing-stechen { min-width: 760px; }
.eing-stechen td { padding: 3px 4px; }
.eing-stechen input.st-tr { width: 56px; text-align: center; padding: 5px 4px; font-size: var(--fs-sm); border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.eing-stechen input.st-tr:focus { border-color: var(--green); outline: none; }
.eing-stechen td.pkt { font-size: var(--fs-md); }
.eing-stechen td.pkt.sieger { color: var(--green-dark); background: var(--green-light); }
.card.stechen-noetig { border-color: #9ccdb0; }
.card.stechen-noetig .card-head { background: var(--green-light); }

/* Ergebnis-Eingabe */
.eing-tbl th, .eing-tbl td { padding: 6px 8px; vertical-align: middle; }
.eing-tbl select { width: 100%; min-width: 150px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; }
.eing-nr { width: 58px; text-align: center; padding: 6px 4px; border: 1px solid var(--line-strong); border-radius: 7px; font-size: var(--fs-md); min-height: 38px; }
.eing-nr.quelle-anlage { border-color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); }
.eing-st { width: 46px; text-align: center; padding: 6px 4px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; }
.eing-info td { background: var(--bg-soft); font-size: 12px; color: var(--muted); }
.eing-breit { width: calc(100vw - 44px); margin-left: calc(50% - 50vw + 22px); margin-right: calc(50% - 50vw + 22px); border-radius: var(--radius); border: 1px solid #cfe8da; box-shadow: 0 1px 3px rgba(10,95,44,.10), 0 16px 40px rgba(10,95,44,.13); }
.eing-breit > .card-body { padding: 8px 18px 12px; }
.eing-breit .eing-tbl { width: 100%; }
.eing-breit .eing-tbl th, .eing-breit .eing-tbl td { padding: 6px 6px; }
.eing-breit .eing-tbl select { min-width: 130px; }
.eing-breit .table-scroll { overflow-x: auto; }
@media screen and (min-width: 1180px) { .eing-breit { width: auto; margin-left: 0; margin-right: 0; } }
.eing-verify { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; background: linear-gradient(135deg, #123a28 0%, #0e7c3a 100%); color: #fff; border-radius: var(--radius); padding: 16px 22px; margin-bottom: 16px; box-shadow: var(--shadow); }
.eing-verify .ev-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.eing-verify .ev-runde { font-size: 26px; font-weight: 800; line-height: 1; }
.eing-verify .ev-nr { font-size: 20px; font-weight: 700; background: #ffd54a; color: #3a2d00; padding: 5px 14px; border-radius: 9px; }
.eing-verify .ev-reg { font-size: var(--fs); opacity: .85; margin-left: auto; }
.eing-verify .ev-status { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 999px; }
.eing-verify .ev-status.status-bestaetigt { background: #ffd54a; color: #3a2d00; }
.eing-verify .ev-status.status-vollstaendig { background: #d7f0e0; color: var(--green-dark); }
.eing-verify .ev-status.status-live { background: var(--live); color: #fff; }
.eing-zuletzt { font-size: var(--fs-sm); margin: -8px 0 14px; }
.eingabe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.aufstellung-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.aufstellung-tbl td, .aufstellung-tbl th { padding: 5px 8px; }
.aufstellung-tbl tr.gleich td { background: #fffaf0; }
.na-check { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.na-check input { width: auto; }
.eing-sel.na-aktiv { opacity: .45; pointer-events: none; }
.eing-aktionen { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 6px 0 22px; }
.eing-aktion-zeile { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.eing-aktion-zeile input[name="grund"], .eing-aktion input[name="grund"] { flex: 1 1 280px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 7px; font-size: 13.5px; min-height: 36px; }
.live-steuerung-karte .card-body { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.live-steuerung-karte .status { font-size: 12px; padding: 4px 10px; margin: 0; }
.quelle-legende { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--muted); }
.quelle-legende i { width: 14px; height: 3px; background: var(--blue); border-radius: 2px; display: inline-block; }

/* Tabellen/K.-o. */
.tbl-gesamt tr.quali td { background: #f5fbf7; }
.tbl-gesamt tr.quali-grenze td { border-bottom: 2px dashed var(--green); }
.tbl-gesamt tr.verzicht td { text-decoration: line-through; color: #a0a8b0; }
.tbl-gesamt tr.ohne-rang td { color: #8a94a0; }
.setzung-box .krit span { display: inline-block; margin-right: 10px; white-space: nowrap; }
.ko-baum { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 14px; padding: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ko-spalte { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; min-width: 0; }
.ko-spalte h4 { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ko-spalte.aktiv h4 { color: var(--green-dark); }
.ko-spiel { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.ko-spalte.aktiv .ko-spiel { border-color: #9ccdb0; }
.ko-titel { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--green-dark); background: var(--green-light); padding: 3px 10px; }
.ko-team { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 6px; align-items: center; padding: 6px 10px; font-size: 13px; }
.ko-team + .ko-team { border-top: 1px solid var(--line); }
.ko-team.sieger { font-weight: 700; background: #f2faf5; }
.ko-team.sieger .ko-name { color: var(--green-dark); }
.ko-team.verlierer { color: #8a94a0; }
.ko-setz { font-size: 11px; color: #8a94a0; text-align: right; }
.ko-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ko-mp { font-weight: 800; min-width: 14px; text-align: right; }
.ko-ringe { font-size: 11px; color: #8a94a0; min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.ko-info { font-size: 11px; color: var(--muted); padding: 2px 10px 6px; }
.ko-leer { font-size: var(--fs-sm); color: #8a94a0; border: 1px dashed var(--line); border-radius: 10px; padding: 16px 10px; text-align: center; }
.tbl tr.ko-strich td { border-top: 2px solid var(--text, #1c2530); }
.tbl tr.ko-ausgeschieden td { color: var(--muted); background: var(--bg-soft, #f7f8f9); }
.rank-ohne { background: transparent; color: var(--muted); box-shadow: none; }
.ko-verw-phasen { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.ko-verw-phasen .phase { box-shadow: none; }
.ko-reihung input { width: 56px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; text-align: center; }

/* Verwaltung */
.regionen-box { border-top: 1px solid var(--line); padding: 12px 0; margin: 6px 0 12px; }
.regionen-box summary { cursor: pointer; }
.region-zeile { display: grid; grid-template-columns: 160px 1fr 1fr; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.region-zeile input[type="text"], .region-zeile .region-name, .region-zeile .region-beschluss { padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; width: 100%; }
.region-bl { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: var(--fs-sm); }
.region-bl label { display: flex; gap: 3px; align-items: center; white-space: nowrap; }
.protokoll-tbl td { white-space: normal; vertical-align: top; font-size: var(--fs-sm); }
.protokoll-tbl .details { color: var(--muted); max-width: 520px; overflow-wrap: anywhere; }
.ak-zeile { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.ak-feld { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.ak-feld input { width: 74px; padding: 5px 6px; border: 1px solid var(--line); border-radius: 6px; }
.kader-box { margin: 18px 0; border-top: 1px solid var(--line); padding-top: 16px; }
.sp-liste li { margin: 2px 0; }

/* Kaderpflege: zwei Spalten */
.kader-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.kader-spalte { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.kader-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.kader-kopf strong { font-size: var(--fs); }
.kader-suche { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.kader-suche input { width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 8px; }
.kader-liste { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow: auto; }
.kader-eintrag { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.kader-eintrag:last-child { border-bottom: 0; }
.kader-eintrag:hover { background: var(--bg-soft); }
.kader-eintrag.ersatz { background: #fcfcf6; }
.kader-eintrag .k-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.kader-eintrag .k-meta { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }
.kader-eintrag .k-schnitt { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--green-dark); text-align: right; min-width: 56px; }
.kader-eintrag .k-schnitt small { display: block; font-weight: 400; color: var(--muted); font-size: 10.5px; }
.kader-pos { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-weight: 700; font-size: 12.5px; background: var(--green); color: #fff; }
.kader-pos.ersatz { background: #e2e6ea; color: var(--muted); }
.kader-leer { padding: 18px 12px; color: var(--muted); font-size: var(--fs-sm); text-align: center; }
.kader-trenner { padding: 6px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #f3f5f7; border-bottom: 1px solid var(--line); }

/* ===== Live ===== */
.btn-sm { padding: 6px 12px; font-size: var(--fs-sm); }
.live-steuerung { margin-bottom: 16px; }
.live-liga { margin-bottom: 26px; }
.live-liga-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.live-liga-kopf strong { font-size: var(--fs-md); }
.live-abschluss { margin-left: auto; }
.live-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.live-kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.live-kopf-titel { display: flex; flex-direction: column; }
.live-kopf-titel strong { font-size: 16px; }
.live-kopf-titel span { color: var(--muted); font-size: 13px; }
.conn-status { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-sm); color: var(--muted); padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.conn-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #b8c0c8; }
.conn-status.ok::before { background: var(--green); }
.conn-status.warn::before { background: #e3a008; }
.conn-status.aus::before { background: var(--red); }
.ticker { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ticker-gruppe { margin-bottom: 22px; }
.ticker-gruppe h2 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ticker-gruppe h2 .muted { font-weight: 400; font-size: var(--fs-sm); }
/* Startseite: nur die Zeile „Jetzt live“ als schmaler Streifen – die Begegnungen zeigt der Live-Ticker */
.start-live { margin: 0 0 18px; }
.start-live h2 { margin: 0; padding: 10px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--live); border-radius: var(--radius); box-shadow: var(--shadow); }
.start-live h2 .muted { font-size: var(--fs-base, 14px); }
.start-live h2 .muted a { font-weight: 700; }
.ticker-karte { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); overflow: hidden; transition: border-color .15s, transform .15s; }
.ticker-karte:hover { text-decoration: none; border-color: var(--green); }
.ticker-karte.ist-live { border-color: #f3b2ab; }
.ticker-karte.ist-demo { border-style: dashed; border-color: var(--blue); }
.ticker-kopf { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--bg-soft); flex-wrap: wrap; }
.ticker-kopf .status { margin-left: auto; }
.ticker-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 14px 14px 8px; }
.ticker-team { font-weight: 700; font-size: var(--fs-md); min-width: 0; overflow-wrap: anywhere; }
.ticker-team.rechts { text-align: right; }
.ticker-team.sieger { color: var(--green-dark); }
.ticker-team small { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.ticker-score { text-align: center; }
.ticker-mp { font-size: 26px; font-weight: 800; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticker-mp i { font-style: normal; color: var(--muted); margin: 0 4px; font-weight: 600; }
.ticker-ep { font-size: var(--fs-sm); color: var(--muted); margin-top: 3px; white-space: nowrap; }
.ticker-fuss { display: flex; align-items: center; gap: 10px; padding: 8px 14px 12px; font-size: var(--fs-xs); color: var(--muted); }
.ticker-fuss .progress { flex: 1; }
.ticker-fuss time { white-space: nowrap; }
.demo-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--blue-light); border: 1px dashed var(--blue); color: var(--blue); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: var(--fs-sm); font-weight: 600; }
.demo-steuerung { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.demo-steuerung .tempo { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.demo-steuerung .tempo button { border: 0; background: #fff; padding: 6px 10px; font-size: var(--fs-sm); cursor: pointer; }
.demo-steuerung .tempo button.active { background: var(--green); color: #fff; }

/* Live-Detail */
.live-detail-kopf { background: linear-gradient(135deg, #123a28 0%, #0e7c3a 100%); color: #fff; border-radius: var(--radius); padding: 18px 22px; margin-bottom: 16px; box-shadow: var(--shadow); }
.live-detail-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: #cfe6d8; margin-bottom: 12px; align-items: center; }
.live-detail-meta .status { margin-left: auto; }
.live-detail-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px 20px; align-items: center; }
.live-detail-team { font-size: 22px; font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.live-detail-team.rechts { text-align: right; }
.live-detail-team.sieger { color: #ffe08a; }
.live-detail-team small { display: block; font-size: var(--fs-sm); font-weight: 500; color: #cfe6d8; }
.live-detail-score { text-align: center; }
.live-detail-mp { font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.live-detail-mp i { font-style: normal; color: #cfe6d8; margin: 0 6px; font-weight: 600; }
.live-detail-ep { font-size: var(--fs); color: #cfe6d8; margin-top: 4px; }
.live-detail-ep b { color: #fff; }
.live-fuehrt { text-align: center; margin-top: 10px; font-size: var(--fs-sm); color: #d7f0e0; }
.live-fuehrt b { color: #ffe08a; }
.live-serie-laeuft { font-size: 10.5px; color: var(--blue); font-weight: 600; display: block; }
.live-schuetze-fortschritt { display: inline-flex; gap: 2px; vertical-align: middle; margin-left: 6px; }
.live-schuetze-fortschritt i { width: 7px; height: 7px; border-radius: 2px; background: #dde3e8; display: inline-block; }
.live-schuetze-fortschritt i.voll { background: var(--green); }
.live-schuetze-fortschritt i.laeuft { background: var(--blue); }
.live-leiste { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.live-leiste .spacer { flex: 1; }
.live-letzte { font-size: var(--fs-sm); color: var(--muted); }

/* Vollbild (Fernseher/Beamer) */
body.vollbild { background: #0f1a14; color: #fff; }
body.vollbild main { padding: 16px 0; }
body.vollbild .wrap { max-width: 1600px; }
body.vollbild .live-detail-kopf { border-radius: 14px; }
body.vollbild .live-detail-team { font-size: 34px; }
body.vollbild .live-detail-mp { font-size: 72px; }
body.vollbild .live-detail-ep { font-size: 20px; }
body.vollbild .duell { background: #16241c; border-color: #27392f; color: #fff; }
body.vollbild .duell-tbl { font-size: 20px; }
body.vollbild .duell-tbl th, body.vollbild .duell-tbl td { padding: 9px 10px; }
body.vollbild .duell-tbl thead th { background: #1c2f25; color: #9fb8aa; border-color: #27392f; }
body.vollbild .duell-tbl .serie { background: #1b2b22; color: #e8f0eb; }
body.vollbild .duell-tbl .nm a, body.vollbild .duell-tbl .nm { color: #fff; }
body.vollbild .duell-tbl .st { color: #7d9488; }
body.vollbild .duell-tbl .ep { color: #cfe6d8; }
body.vollbild .duell-tbl .ep.sieger { background: #1f5a36; color: #fff; }
body.vollbild .duell-tbl tr.haupt td { border-color: #27392f; }
body.vollbild .duell-tbl tr.gesamt td { background: #1c2f25; border-color: #cfe6d8; color: #fff; }
body.vollbild .duell-tbl tr.stechen td { background: #1f5a36; color: #fff; border-color: #27392f; }
body.vollbild .duell-tbl tr.punkte td { color: #6f8a7a; }
body.vollbild .duell-tbl td.geaendert { animation: hervorhebenDunkel 2.2s ease-out; }
@keyframes hervorhebenDunkel { 0% { background: #5a4a00; } 100% { background: transparent; } }
body.vollbild .conn-status { background: #16241c; border-color: #27392f; color: #cfe6d8; }
body.vollbild .live-letzte { color: #9fb8aa; }
body.vollbild .btn-ghost { background: #16241c; color: #cfe6d8; border-color: #27392f; }
body.vollbild .stechen-detail { background: #1b2b22; border-color: #27392f; }
body.vollbild .stechen-grid th, body.vollbild .stechen-grid td { border-color: #27392f; color: #e8f0eb; background: transparent; }
body.vollbild .stechen-grid thead th, body.vollbild .stechen-grid .lbl, body.vollbild .stechen-grid th.pkt, body.vollbild .stechen-grid td.pkt { background: #1c2f25; color: #cfe6d8; }
body.vollbild .live-serie-laeuft { color: #8fc2ff; }
body.vollbild .live-schuetze-fortschritt i { background: #2d4035; }
body.vollbild .duell-kopf { background: #16241c; border-color: #27392f; }
body.vollbild .duell-zeiten { background: #1b2b22; border-color: #27392f; color: #cfe6d8; }
body.vollbild .duell-zeiten b { color: #fff; }
#live-inhalt:fullscreen { background: var(--bg); padding: 26px 30px; overflow: auto; }
#live-inhalt:fullscreen .live-kopf { font-size: 112%; }

/* Meyton: Assistent, Anlagen, Schlüssel */
.wizard { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; }
.wizard-schritte { list-style: none; margin: 0; padding: 6px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 12px; }
.wizard-schritte li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 10px 14px; color: var(--muted); font-size: var(--fs); cursor: pointer; }
.wizard-schritte li:hover { background: var(--bg-soft); }
.wizard-schritte li.wizard-kopf { cursor: default; border-bottom: 1px solid var(--line); margin-bottom: 4px; grid-template-columns: 30px 1fr; }
.wizard-schritte li.wizard-kopf:hover { background: transparent; }
.wizard-schritte li.wizard-kopf .kopf-aktionen { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wizard-schritte li.schritt { display: block; padding: 0; }
.wizard-schritte li > button.wizard-schritt { all: unset; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; width: 100%; box-sizing: border-box; padding: 10px 14px; cursor: pointer; color: inherit; font: inherit; text-align: left; }
.wizard-schritte li > button.wizard-schritt:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }
.wizard-schritte li.aktiv > button.wizard-schritt { color: var(--ink); font-weight: 600; }
.wizard-intro { margin: 0 0 14px; padding: 12px 14px; background: var(--green-light); border-radius: var(--radius); font-size: var(--fs-sm); display: grid; gap: 4px; }
.wizard-intro strong { color: var(--green-dark); }
.wizard-schritte li .nr { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); font-weight: 700; font-size: 13px; color: var(--muted); }
.wizard-schritte li.erledigt .nr { background: var(--green); border-color: var(--green); color: #fff; }
.wizard-schritte li.aktiv { color: var(--ink); font-weight: 600; background: var(--green-light); }
.wizard-schritte li.aktiv .nr { border-color: var(--green); color: var(--green-dark); }
.wizard-schritte li span small { display: block; font-size: var(--fs-xs); font-weight: 400; color: var(--muted); }
.wizard-inhalt .card-head h3 .nr { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-size: 13px; }
.key-box { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; background: #fffaf0; border: 1px solid var(--amber-mid); border-radius: 10px; padding: 12px 14px; word-break: break-all; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.key-box code { flex: 1; min-width: 0; }
.code-block { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; background: #1c2530; color: #e8f0eb; border-radius: 10px; padding: 12px 14px; overflow: auto; white-space: pre; line-height: 1.5; margin: 8px 0 12px; }
.anlagen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.anlage-karte { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.anlage-karte.aktiv-anlage { border-color: var(--green); }
.anlage-karte h4 { margin: 0; font-size: var(--fs-md); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.anlage-karte dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: var(--fs-sm); }
.anlage-karte dt { color: var(--muted); }
.anlage-karte dd { margin: 0; overflow-wrap: anywhere; }
.anlage-karte .aktionen { margin-top: 4px; }
.anleitung ol { padding-left: 20px; margin: 0; }
.anleitung li { margin: 6px 0; }
.anleitung code { background: #eef1f4; padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.eingaenge-tbl td { white-space: normal; font-size: var(--fs-sm); vertical-align: top; }

/* Rechtstexte */
.rechtstext { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 30px; max-width: 820px; line-height: 1.65; }
.rechtstext h2 { font-size: 17px; margin: 22px 0 8px; color: var(--green-dark); }
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext p { margin: 0 0 12px; }
.rechtstext .platzhalter { color: #b26a00; background: #fff6e5; padding: 0 5px; border-radius: 4px; font-style: italic; }

/* Versionshistorie (/versionen) */
.versionen { display: grid; gap: 16px; max-width: 780px; }
.version-eintrag { margin: 0; }
.version-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.version-kopf h2 { margin: 0; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.version-kopf time { margin-left: auto; color: var(--muted); font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.version-inhalt { padding: 4px 20px 18px; }
.version-kat { display: flex; align-items: center; gap: 7px; margin: 16px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.version-kat .icon { color: var(--green); }
.version-kat-behoben .icon { color: var(--blue); }
.version-liste { margin: 0; padding-left: 20px; line-height: 1.6; }
.version-liste li + li { margin-top: 5px; }
.version-liste:first-child { margin-top: 14px; }
body.farbschema-auto main { --muted: #636e7b; } /* Beschreibung auf grauem Grund: Kontrast ≥ 4,5:1 */

/* Farbschema nach Systemeinstellung – nur Seiten mit body.farbschema-auto (bisher /versionen).
   Kopfbereich bleibt im grünen Markenverlauf; Inhalt und Fuß übernehmen dunkle Tokens. */
@media (prefers-color-scheme: dark) {
    body.farbschema-auto { background: #0f1519; }
    body.farbschema-auto main, body.farbschema-auto .site-footer {
        --ink: #e3e9ee; --muted: #9daab6; --line: #26323b; --line-strong: #35434e;
        --bg: #0f1519; --bg-soft: #141c21; --surface: #172028;
        --green: #5ccb8c; --green-dark: #91ddb0; --green-light: #173525; --green-mid: #2a5e40;
        --blue: #7fb0ec; --blue-light: #17263a;
        --shadow: 0 1px 2px rgba(0,0,0,.45); --shadow-sm: none;
    }
    body.farbschema-auto main { color: var(--ink); }
    body.farbschema-auto .site-footer { background: #121a1f; }
    body.farbschema-auto .sponsor-strip { border-radius: 6px; opacity: .85; }
}

/* ---------- 6 Responsive ---------- */
@media screen and (max-width: 1000px) {
    .wizard { grid-template-columns: 1fr; }
    .wizard-schritte { position: static; display: flex; flex-wrap: wrap; padding: 4px; }
    .wizard-schritte li { padding: 6px 10px; }
    .wizard-schritte li.schritt { padding: 0; }
    .wizard-schritte li > button.wizard-schritt { padding: 6px 10px; width: auto; }
    .wizard-schritte li span small { display: none; }
    .start-grid { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .site-header .nav, .site-header .nav-sek { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 0 4px; }
    .site-header.offen .nav, .site-header.offen .nav-sek { display: flex; }
    .site-header.offen .nav-sek { border-top: 1px solid rgba(255,255,255,.2); margin-top: 2px; }
    .nav a, .nav-sek a { border-radius: 8px; padding: 10px 12px; font-size: var(--fs-md); }
    .nav-trenner { display: none; }
    .aufstellung-grid { grid-template-columns: 1fr; }
    .kader-grid { grid-template-columns: 1fr; }
    .kader-liste { max-height: 360px; }
    .eing-breit > .card-body { padding: 6px 10px; }
}
@media screen and (max-width: 800px) { .region-zeile { grid-template-columns: 1fr; } }
@media screen and (max-width: 720px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: 28px 22px; }
    .hero h1 { font-size: 26px; }
    .eingabe-grid { grid-template-columns: 1fr; }
    .field-row, .field-row-3, .field-row-4 { grid-template-columns: 1fr; }
    .field-row:has(.field-schmal) { grid-template-columns: minmax(0, 1fr) 96px; }
    .field-schmal { max-width: none; }
    .zeitplan { grid-template-columns: 1fr 1fr; }
    .zeitplan .field:first-child, .zeitplan-abw { grid-column: 1 / -1; }
    .zeitplan-abw .check { margin-top: 0; }
    .filterbar { padding: 10px 12px; gap: 8px 10px; }
    .filterbar label { flex: 1 1 calc(50% - 5px); }
    .filterbar label.filter-suche { flex: 1 1 100%; max-width: none; order: -1; }
    .filterbar select, .filterbar input, .filterbar input[type="search"] { min-width: 0 !important; width: 100%; }
    .filterbar .filter-aktionen { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 6px 8px; }
    .filterbar .filter-aktionen .btn { flex: 1 1 auto; justify-content: center; }
    .filterbar .filter-aktionen .zaehler { flex: 1 1 100%; }
    .card, .card-body, [data-panel], .table-scroll { min-width: 0; max-width: 100%; }
    .chip { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
    table.tbl-cards td { flex-wrap: wrap; }
    .kader-suche { padding: 8px 10px; }
    .kader-liste { max-height: 320px; }
    .kader-eintrag { grid-template-columns: 26px 1fr auto; grid-template-areas: "pos name schnitt" "pos aktion aktion"; padding: 8px 10px; }
    .kader-eintrag .kader-pos { grid-area: pos; }
    .kader-eintrag .k-name { grid-area: name; }
    .kader-eintrag .k-schnitt { grid-area: schnitt; }
    .kader-eintrag .btn { grid-area: aktion; justify-self: start; }
    .page-head h1 { font-size: 22px; }
    main { padding: 18px 0 40px; }
    .card-head { padding: 12px 14px; }
    .card-body.pad { padding: 14px; }
    .live-detail-team { font-size: 17px; }
    .live-detail-mp { font-size: 34px; }
    .ticker { grid-template-columns: 1fr; }
    /* Tabellen als Karten */
    table.tbl-cards, table.tbl-cards tbody, table.tbl-cards tr, table.tbl-cards td { display: block; width: 100%; }
    table.tbl-cards thead { display: none; }
    table.tbl-cards tbody tr { width: auto; border: 1px solid var(--line); border-radius: 10px; margin: 8px 6px; padding: 6px 0; background: #fff; }
    table.tbl-cards td { white-space: normal; display: flex; justify-content: space-between; gap: 12px; padding: 5px 12px; text-align: left !important; border: 0; }
    table.tbl-cards td::before { content: attr(data-label); color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; flex-shrink: 0; }
    table.tbl-cards td:not([data-label])::before { content: none; }
    table.tbl-cards td.num { justify-content: space-between; }
    table.tbl-cards td.zeile-aktionen { justify-content: flex-end; }
}
@media screen and (max-width: 600px) {
    .liga-kopf { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 28px; padding: 16px 14px; text-align: center; }
    .liga-kopf .logo-osb { order: 1; width: 52px; height: 52px; }
    .liga-kopf .logo-bl { order: 2; width: 52px; height: 52px; }
    .liga-kopf .titel { order: 3; flex: 1 0 100%; }
    .liga-kopf .titel .t1 { font-size: 16px; overflow-wrap: anywhere; }
    .liga-kopf .titel .t2 { font-size: 14px; overflow-wrap: anywhere; }
    .liga-kopf .titel .t3 { font-size: 12px; }
    .start-kopf { grid-template-columns: 52px 1fr 52px; gap: 12px; padding: 18px 16px; }
    .start-kopf .logo-osb, .start-kopf .logo-bl { width: 52px; height: 52px; }
    .start-titel h1 { font-size: 20px; }
    .start-titel p { font-size: 13.5px; }
    .beg-teams { font-size: 14px; gap: 8px; }
    .beg-mp { font-size: 17px; padding: 2px 9px; }
    .duell-team { font-size: 14px; }
    .duell-mp { font-size: 17px; padding: 2px 10px; }
    .duell-kopf-band { padding: 12px 14px 10px; }
    .auswahl-label { min-width: 0; }
    .pill { padding: 5px 11px; font-size: var(--fs-sm); }
    .phasen { grid-template-columns: repeat(3, 1fr); }
    .phase { padding: 7px 8px; }
    .phase .phase-name { font-size: var(--fs-sm); }
    .phase .phase-status { font-size: 10.5px; }
    .seiten-aktionen { justify-content: flex-start; }
    .druck-steuerung { justify-content: flex-start; }
    .druck-steuerung .druck-team, .druck-steuerung select { width: 100%; max-width: none; }
    .druck-wahl { justify-content: space-between; }
    .eing-verify .ev-runde { font-size: 22px; }
    .eing-verify .ev-nr { font-size: 17px; }
    .eing-verify .ev-reg { margin-left: 0; }
    .brand b { font-size: 15px; }
    .brand small { display: none; }
    .wrap { padding: 0 14px; }
    .eing-breit, .setzliste-breit { width: calc(100vw - 28px); margin-left: calc(50% - 50vw + 14px); margin-right: calc(50% - 50vw + 14px); }
    .ticker-mp { font-size: 22px; }
    .stats { gap: 10px; }
    .stat { padding: 14px; }
    .stat .n { font-size: 22px; }
}

/* ---------- 7 Druck ---------- */
/* Hülle um den Seiteninhalt (default.htm): am Bildschirm gewöhnliche Blöcke ohne Tabellenverhalten; die Abstandhalter
   und das fest positionierte Druckband (druck_band.htm) sind unsichtbar. */
.druck-tabelle, .druck-tabelle > tbody, .druck-tabelle > tbody > tr, .druck-tabelle > tbody > tr > td { display: block; padding: 0; border: 0; width: auto; }
.druck-tabelle > thead.db-abstand, .druck-tabelle > tfoot.db-abstand, .db-fix { display: none; }

@media print {
    .site-header, .site-footer, .no-print, .btns, .btn, .nav-toggle, .conn-status, .live-leiste { display: none !important; }
    body { background: #fff; }
    .card, .liga-kopf { box-shadow: none; border-color: #999; }
    main { padding: 0; }
    .offiziell table.tbl th, .offiziell table.tbl td { padding: 3px 5px; font-size: 11px; }
    a { color: #000; text-decoration: none; }
    details .card-body { display: block !important; }
    .team-summary::before { display: none; }
    details:not([open]) .card-body { display: block !important; }
    .phasen, .termin-filter, .seiten-aktionen, .live-toolbar, .verw-tabs, .filterbar, .toolbar { display: none !important; }
    .duell { break-inside: avoid; page-break-inside: avoid; break-after: page; page-break-after: always; box-shadow: none; border-color: #999; }
    .duell-tbl { min-width: 0 !important; font-size: 10px; }
    .duell-kopf-band { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .duell-kopf-band .duell-team.sieger, .duell-kopf-band .duell-team.sieger a { color: #fff; }
    .eing-breit, .setzliste-breit { width: auto !important; margin-left: 0 !important; margin-right: 0 !important; box-shadow: none; }
    .ko-baum { grid-auto-columns: minmax(0, 1fr); overflow: visible; }
    .card { break-inside: avoid; }
    .table-scroll { overflow: visible; }
    /* Druckband auf JEDER gedruckten Seite (A4 hoch): Kopf (Logos, Titel, Überschrift) fest oben, Partnerleiste des ÖSB
       fest unten – Browser wiederholen fest positionierte Elemente je Seite. Damit sie den Inhalt nicht überdecken, wird
       die Hülle (default.htm) zur Tabelle, deren <thead>/<tfoot> sich je Seite als leere Abstandhalter in Kopf- bzw.
       Fußhöhe wiederholen (position:fixed allein überdeckte den Inhalt – geprüft 11/2026). Größen: druckband.css. */
    @page { size: A4 portrait; margin: 8mm 10mm; }
    body { margin: 0; }
    .db-fix { display: block; position: fixed; left: 0; right: 0; z-index: 5; }
    .db-fix-kopf { top: 0; }
    .db-fix-fuss { bottom: 0; }
    .druck-tabelle { display: table; width: 100%; border-collapse: collapse; }
    .druck-tabelle > thead.db-abstand { display: table-header-group; }
    .druck-tabelle > tbody { display: table-row-group; }
    .druck-tabelle > tfoot.db-abstand { display: table-footer-group; }
    .druck-tabelle > thead > tr, .druck-tabelle > tbody > tr, .druck-tabelle > tfoot > tr { display: table-row; }
    .druck-tabelle > thead > tr > td, .druck-tabelle > tbody > tr > td, .druck-tabelle > tfoot > tr > td { display: table-cell; vertical-align: top; padding: 0; border: 0; }
    .druck-tabelle > thead.db-abstand > tr > td { height: calc(var(--db-kopf-h) + 4mm); }
    .druck-tabelle > tfoot.db-abstand > tr > td { height: calc(var(--db-fuss-h) + 3mm); }
    /* Titelblock und Seitenüberschrift stehen im Druckband – nicht doppelt */
    .liga-kopf, .page-head h1, .page-head .team-kopf .team-logo { display: none !important; }
    .wrap { max-width: none; padding: 0; }
    .card, .auswahl { break-inside: auto; }
    table.tbl thead { display: table-header-group; }
    table.tbl tr { break-inside: avoid; }
}
}

/* Ausgeblendete Elemente (hidden-Attribut, z. B. Suchfilter) bleiben auch mit eigener display-Regel unsichtbar. */
[hidden] { display: none !important; }

/* ---------- Auditlog (Verwaltung) ---------- */
.audit-filter label { min-width: 0; }
.audit-filter input[type="date"] { min-width: 150px; }
.audit-bez { font-weight: 600; margin-top: 2px; }
.audit-link { font-size: var(--fs-sm); }
.audit-tbl { table-layout: fixed; width: 100%; }
.audit-tbl col.c-zeit { width: 9%; } .audit-tbl col.c-benutzer { width: 12%; } .audit-tbl col.c-aktion { width: 14%; } .audit-tbl col.c-objekt { width: 19%; }
.audit-tbl col.c-aenderung { width: 24%; } .audit-tbl col.c-grund { width: 11%; } .audit-tbl col.c-herkunft { width: 11%; }
table.audit-tbl td, table.audit-tbl th { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
table.audit-tbl th { overflow-wrap: normal; }   /* Überschriften und Feldnamen nicht mitten im Wort trennen */
table.audit-tbl td.audit-zeit { font-variant-numeric: tabular-nums; }
table.audit-tbl td.audit-zeit span { display: block; }
.audit-tbl .chip { white-space: normal; overflow-wrap: normal; }
.audit-objekt { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.audit-row td.details { max-width: none; }
.audit-detail summary { cursor: pointer; color: var(--blue); font-size: var(--fs-sm); }
.audit-detail[open] summary { margin-bottom: 6px; }
.audit-diff { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin: 4px 0 6px; }
.audit-diff th, .audit-diff td { padding: 3px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.audit-diff td { word-break: break-word; }
.audit-diff th { word-break: normal; overflow-wrap: normal; }
.audit-diff thead th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.audit-diff tbody th { font-weight: 600; }
.audit-diff td.alt { color: #b0281a; background: var(--red-light); }
.audit-diff td.neu { color: var(--green-dark); background: var(--green-light); }
.audit-details-text { white-space: pre-wrap; font-size: var(--fs-sm); color: var(--ink); }
.audit-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 4px 2px; flex-wrap: wrap; }
.audit-pager .btn.disabled { pointer-events: none; opacity: .45; }
.audit-herkunft-manuell { background: var(--blue-light); color: var(--blue); }
.audit-herkunft-import { background: var(--amber-light); color: #8a5a00; }
.audit-herkunft-anlage { background: #ece6fb; color: #5b3fb3; }
.audit-herkunft-system { background: #eef1f4; color: #4a5560; }
.audit-herkunft-ohne { background: #f4f4f4; color: var(--muted); }
@media screen and (max-width: 760px) {
    .audit-tbl { table-layout: auto; }
    .audit-tbl colgroup { display: none; }
    table.audit-tbl td.audit-zeit span { display: inline; }
    table.tbl-cards td.details .audit-objekt { width: 100%; }
    /* verschachtelte Vorher/Nachher-Tabelle bleibt eine Tabelle (Karten-Darstellung gilt nur für die äußere) */
    table.tbl-cards .audit-diff { display: table; width: 100%; margin: 4px 0 6px; }
    table.tbl-cards .audit-diff thead { display: table-header-group; }
    table.tbl-cards .audit-diff tbody { display: table-row-group; }
    table.tbl-cards .audit-diff tr { display: table-row; border: 0; margin: 0; padding: 0; background: transparent; width: auto; }
    table.tbl-cards .audit-diff th, table.tbl-cards .audit-diff td { display: table-cell; width: auto; padding: 3px 6px; }
    table.tbl-cards .audit-diff td::before { content: none; }
    table.tbl-cards td.details { display: block; }
    table.tbl-cards td.details::before { display: block; margin-bottom: 4px; }
}

.small { font-size: var(--fs-sm); }

/* Meyton-Assistent: hervorgehobener Befehlskasten (Linux-Einzeiler) */
.code-kasten { border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 10px 14px; margin: 10px 0 12px; background: #fff; }
.code-kasten .code-block { margin: 8px 0; white-space: pre-wrap; word-break: break-all; }

/* Mannschaftslogo einheitlich links vor dem Namen – auch bei rechtsbündigen Gastmannschaften; nichts ragt über andere Inhalte */
.team-mit-logo { max-width: 100%; }
.team-mit-logo .team-name { min-width: 0; overflow-wrap: anywhere; }
.duell-team .team-mit-logo, .ticker-team .team-mit-logo, .live-detail-team .team-mit-logo { display: inline-flex; align-items: center; gap: 8px; text-align: left; max-width: 100%; vertical-align: middle; }
.duell-team.duell-team-r .team-mit-logo { text-align: left; }
.ticker-team.rechts .team-mit-logo, .live-detail-team.rechts .team-mit-logo { justify-content: flex-end; width: 100%; }
.live-detail-team .team-mit-logo { gap: 12px; }
.team-zelle .team-mit-logo { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; }
.leih-verein { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; margin-left: 4px; }
.legende { margin: 8px 2px 0; }
@media screen and (max-width: 640px) {
    .duell-team .team-mit-logo { gap: 6px; }
    .live-detail-team .team-mit-logo .team-logo-mittel { width: 36px; height: 36px; }
}

/* Endreihung */
.er-tbl th.gruppe { text-align: center; border-bottom: 1px solid var(--line-strong); }
.er-tbl td.sieg { font-weight: 800; }
.er-tbl tr.podest td { background: var(--green-light, #eef6f0); }
.er-tbl tr.offen td { color: var(--muted); }

/* Schusszettel: zu prüfende Zettel (nicht automatisch zugeordnet) */
.sz-pruef-tag { background: #fff3d6; color: #8a5a00; border-color: #f0d28a; }
tr.sz-pruefen > td { background: #fffaf0; }
.sz-pruef-blaetter > td { padding: 4px 12px 12px; }
.sz-pruef-kopf { font-size: var(--fs-sm); font-weight: 600; color: #8a5a00; margin-bottom: 6px; }
.sz-pruef-blatt { border: 1px solid #f0d28a; border-radius: 9px; background: #fff; padding: 9px 12px; margin-bottom: 8px; }
.sz-pruef-info { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; font-size: var(--fs-sm); }
.sz-pruef-wahl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.sz-pruef-wahl select { flex: 1 1 320px; min-width: 0; max-width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: var(--fs-sm); }
.sz-pruef-wahl .btn { padding: 6px 14px; font-size: var(--fs-sm); }

/* Schussbild-Ampel (nur Administratoren): Punkt hinter dem Rundenergebnis */
.sb-ampel-wert { white-space: nowrap; }
.sb-ampel { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 4px; vertical-align: middle; background: #b8c0c8; }
.sb-ampel.gruen { background: #1f9d55; }
.sb-ampel.rot { background: #d93025; }
.legende .sb-ampel { margin: 0 3px 1px 0; }
.sb-kontrolle-zahlen { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.sb-kontrolle-ok { color: #1f7a45; font-weight: 600; }
@media print { .sb-ampel { display: none; } }
.tbl td.sb-kontrolle-namen { white-space: normal; min-width: 280px; line-height: 1.7; }

/* Schusszettel: „zu prüfen“ als Karten mit durchsuchbarer Startauswahl, zugewiesene eingeklappt */
.sz-leiste { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sz-leiste .input { flex: 1 1 260px; max-width: 380px; }
.sz-zettel { margin: 14px 16px; border: 1px solid #f0d28a; border-radius: 12px; background: #fffaf0; overflow: hidden; }
.sz-zettel[hidden], .sz-kand[hidden] { display: none; }
.sz-zettel-kopf { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 10px 14px; border-bottom: 1px solid #f0d28a; font-size: var(--fs-sm); }
.sz-zettel-kopf strong { font-size: 15px; }
.sz-zettel-kopf .rechts { margin-left: auto; display: flex; gap: 14px; }
.sz-zettel-inhalt { padding: 12px 14px 4px; }
.sz-pruef-blatt { margin-bottom: 10px; }
.sz-pruef-info strong { font-size: 14.5px; }
.sz-kand-suche { width: 100%; max-width: 420px; margin-top: 10px; }
.sz-kand-liste { display: grid; gap: 6px; margin-top: 8px; max-height: 236px; overflow-y: auto; padding: 2px; }
.sz-kand { display: flex; gap: 10px; align-items: flex-start; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; font-size: var(--fs-sm); line-height: 1.4; }
.sz-kand:hover { border-color: var(--green); }
.sz-kand:has(input:checked) { border-color: var(--green); background: var(--green-light); box-shadow: 0 0 0 1px var(--green) inset; }
.sz-kand input { margin-top: 2px; accent-color: var(--green); }
.sz-kand b { display: block; color: var(--ink); }
.sz-kand span span { color: var(--muted); }
.sz-kand-fuss { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
details.sz-zugewiesen > summary { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 14px 18px; }
details.sz-zugewiesen > summary::-webkit-details-marker { display: none; }
details.sz-zugewiesen > summary h3 { margin: 0; }
details.sz-zugewiesen > summary .auf { margin-left: auto; color: var(--green-dark); font-size: var(--fs-sm); font-weight: 600; }
details.sz-zugewiesen > summary .auf::after { content: 'anzeigen ▾'; }
details.sz-zugewiesen[open] > summary .auf::after { content: 'einklappen ▴'; }
details.sz-zugewiesen[open] > summary { border-bottom: 1px solid var(--line); }

/* Startseite: „Zuletzt offiziell bestätigt“ bricht um, damit die rechte Spalte (Termine) nie aus dem Bild rutscht */
.start-grid .tbl.start-letzte td { white-space: normal; overflow-wrap: anywhere; }
.start-grid .tbl.start-letzte td.num { white-space: nowrap; overflow-wrap: normal; }
