/* ===========================================================================
   Blitz-Info – die öffentliche Ergebnisseite der Ligaspieltage.
   Ergänzt assets/style.css und benutzt dessen Farbvariablen; hier steht nur,
   was es dort nicht gibt.

   AUSGELEGT AUF DEN HANDY-BILDSCHIRM: Die Seite wird im Center abfotografiert
   und in Gruppen herumgeschickt. Deshalb große Zahlen, klare Blöcke und
   Tabellen, die auf dem Handy Spalten zusammenlegen, statt seitwärts zu
   rutschen.

   SYSTEMSCHRIFT, KEINE WEBFONTS: Eine Schrift von Google-Servern zu laden
   hieße, jede Besucher-IP an Google zu geben – für eine Verbandsseite ein
   bekanntes Abmahnrisiko. Die Hierarchie kommt aus Größe und Gewicht.
   =========================================================================== */

.bi {
    --bi-r:       12px;
    --bi-soft:    #f6f8fb;
    --bi-gold:    #9a6b00;
    --bi-gold-bg: #fff5dc;
    --bi-gold-ln: #e6c46e;
    --bi-schatten: 0 1px 2px rgba(20, 40, 90, .05), 0 4px 16px rgba(20, 40, 90, .06);

    max-width: 1040px;
    margin: 0 auto;
    font-variant-numeric: tabular-nums;
}
.bi * { box-sizing: border-box; }
.bi a { text-decoration: none; }

/* ---- Grundbausteine ------------------------------------------------------ */
.bi-karte {
    background: var(--card);
    border-radius: var(--bi-r);
    box-shadow: var(--bi-schatten);
    border: 1px solid var(--line);
}
.bi-klein {
    font-size: .72rem; font-weight: 600; letter-spacing: .07em;
    text-transform: uppercase; color: var(--muted);
}
.bi-icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }

.bi-chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .75rem; font-weight: 600; letter-spacing: .02em;
    padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.bi-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bi-chip--vorl { background: var(--warn-bg); color: var(--warn); }
.bi-chip--amt  { background: var(--ok-bg);   color: var(--ok); }

/* Platzziffer im Kreis – für alle Plätze gleich, damit jede gleich gut lesbar
   ist; eine Abstufung nach Rang hat hier nichts zu sagen. */
.bi-rang {
    display: inline-grid; place-items: center; flex: none;
    width: 28px; height: 28px; border-radius: 50%;
    font-size: .82rem; font-weight: 700;
    color: var(--blue); background: var(--card); box-shadow: inset 0 0 0 2px var(--blue);
}

/* ---- Kopf eines Blatts --------------------------------------------------- */
.bi-kopf { padding: 22px 24px 20px; }
.bi-brot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin: 0 0 10px; }
.bi-brot a { color: var(--blue); font-weight: 500; }
.bi-kopf__zeile { display: flex; gap: 12px 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.bi-titel { font-size: clamp(1.45rem, 4vw, 1.95rem); line-height: 1.15; margin: 0; color: var(--blue-dark); letter-spacing: -.015em; }
.bi-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; color: var(--muted); font-size: .95rem; }
.bi-meta b { color: var(--ink); font-weight: 600; }

.bi-kennzahlen {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px; margin: 20px 0 0; background: var(--line);
    border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.bi-kennzahl { background: var(--bi-soft); padding: 12px 14px; }
.bi-kennzahl b { display: block; font-size: 1.45rem; line-height: 1.2; color: var(--blue-dark); margin-top: 2px; }

/* Starttag-Umschalter */
.bi-tage { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 0; }
.bi-tage a, .bi-tage span {
    font-size: .88rem; font-weight: 500; padding: 7px 14px; border-radius: 8px;
    border: 1px solid var(--line); color: var(--blue); background: var(--card);
}
.bi-tage a:hover { border-color: var(--blue); background: var(--info-bg); }
.bi-tage .bi-tage--hier { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }

/* ---- Hinweis vorläufig / geprüft ----------------------------------------- */
.bi-hinweis {
    display: flex; gap: 12px; align-items: flex-start;
    margin: 14px 0 0; padding: 12px 16px; border-radius: 10px; font-size: .9rem;
    border: 1px solid transparent;
}
.bi-hinweis .bi-icon { margin-top: 2px; }
.bi-hinweis--vorl { background: var(--warn-bg); color: var(--warn); border-color: #f0dcae; }
.bi-hinweis--amt  { background: var(--ok-bg);   color: var(--ok);   border-color: #bfe3cf; }
.bi-hinweis b { font-weight: 700; }

/* ---- Sprungleiste -------------------------------------------------------- */
.bi-sprung { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 0; }
.bi-sprung a {
    font-size: .85rem; font-weight: 500; color: var(--ink);
    padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
}
.bi-sprung a:hover { border-color: var(--blue); color: var(--blue); }

/* ---- Abschnitte ---------------------------------------------------------- */
.bi-abschnitt { margin: 30px 0 0; scroll-margin-top: 110px; }
.bi-abschnitt__kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin: 0 0 12px; }
.bi-h2 { font-size: 1.15rem; margin: 0; color: var(--blue-dark); letter-spacing: -.005em; }
.bi-abschnitt__notiz { color: var(--muted); font-size: .85rem; }

/* ---- Tabellen ------------------------------------------------------------ */
.bi-tabelle { width: 100%; border-collapse: collapse; font-size: .93rem; }
.bi-tabelle th {
    font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
    color: var(--muted); text-align: left; padding: 12px 12px 8px; border-bottom: 1px solid var(--line);
}
.bi-tabelle td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.bi-tabelle tbody tr:last-child td { border-bottom: 0; }
.bi-tabelle th:first-child, .bi-tabelle td:first-child { padding-left: 18px; }
.bi-tabelle th:last-child,  .bi-tabelle td:last-child  { padding-right: 18px; }
.bi-tabelle .bi-r { text-align: right; }
.bi-tabelle .bi-team-zelle { font-weight: 600; }
.bi-tabelle .bi-pkt { font-weight: 700; font-size: 1.05rem; color: var(--blue-dark); }
.bi-tabelle .bi-grau { color: var(--muted); }
.bi-mb { display: none; font-size: .75rem; color: var(--muted); font-weight: 500; }

/* Tageszeile unter jeder Mannschaft (ab dem 2. Starttag): die Werte des
   gezeigten Starttags in denselben Spalten, grau hinterlegt, damit sie sich
   von den Gesamtwerten absetzen. Die Gesamtzeile darüber verliert ihre
   Trennlinie – beide Zeilen lesen sich als ein Paar. */
.bi-tabelle tr.bi-mit-tag td { border-bottom: 0; padding-bottom: 7px; }
.bi-tabelle tr.bi-tagzeile td {
    background: #f1f4f8; color: var(--muted); font-size: .84rem;
    padding-top: 5px; padding-bottom: 6px;
}
.bi-tabelle tr.bi-tagzeile td:nth-child(2) { font-size: .76rem; font-weight: 600; letter-spacing: .03em; }

/* Quote: die Zahl, darunter ein schmaler Balken – wie voll das Konto ist,
   sieht man so schneller als an der Prozentzahl. */
.bi-q { display: inline-block; min-width: 62px; white-space: nowrap; }
.bi-q::after {
    content: ""; display: block; height: 4px; margin-top: 4px; border-radius: 2px;
    background: linear-gradient(90deg, var(--blue) var(--w, 0%), var(--line) var(--w, 0%));
}

/* Schnitt mit Balken dahinter – macht die Einzelwertung überfliegbar. */
.bi-balkenzelle { position: relative; min-width: 92px; }
.bi-balkenzelle::before {
    content: ""; position: absolute; left: 12px; right: 18px; top: 50%; height: 22px; transform: translateY(-50%);
    background: linear-gradient(90deg, var(--info-bg) var(--w, 0%), transparent var(--w, 0%));
    border-radius: 4px;
}
.bi-balkenzelle span { position: relative; font-weight: 700; color: var(--blue-dark); }

/* ---- Höchstergebnisse ---------------------------------------------------- */
.bi-hoechst { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bi-hw { padding: 16px 18px; position: relative; }
.bi-hw__zahl { font-size: 2.1rem; font-weight: 800; line-height: 1.1; color: var(--blue-dark); margin: 6px 0 4px; letter-spacing: -.02em; }
.bi-hw__wer { font-weight: 600; }
.bi-hw__team { color: var(--muted); font-size: .88rem; }
/* Ein 300er ist selten genug, dass es auffallen darf – die Mappe klebte dafür
   von Hand einen Glückwunsch-Aufkleber ein. */
.bi-hw--perfekt { background: var(--bi-gold-bg); border-color: var(--bi-gold-ln); }
.bi-hw--perfekt .bi-hw__zahl { color: var(--bi-gold); }
.bi-perfekt {
    position: absolute; top: 14px; right: 14px;
    font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: var(--bi-gold); border: 1.5px solid var(--bi-gold-ln); border-radius: 999px; padding: 3px 9px;
    background: var(--card);
}

/* ---- Mannschaften des Tages --------------------------------------------- */
/* Eine Karte je Mannschaft, untereinander: Wer seine Mannschaft sucht, liest
   von oben nach unten und nicht im Zickzack über zwei Spalten. Links steht,
   was die Mannschaft geholt hat, rechts, wer dafür gespielt hat. */

/* Feste Breiten für die drei Zahlenspalten: Ohne sie bemisst jede Karte ihre
   Spalten nach dem eigenen Inhalt – ein langer Name oder eine Auszeichnung
   schiebt die Zahlen, und untereinander stehen sie dann versetzt. So sitzen
   Spiele, Pins und Schnitt in jeder Karte an derselben Stelle ganz rechts;
   der Name bekommt, was übrig bleibt. */
.bi-kader { width: 100%; border-collapse: collapse; font-size: .88rem; table-layout: fixed; }
.bi-kader th:nth-child(2), .bi-kader th:nth-child(3) { width: 74px; }
.bi-kader th:nth-child(4) { width: 92px; }
.bi-kader th {
    font-size: .66rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
    color: var(--muted); text-align: right; padding: 10px 12px 4px;
}
.bi-kader th:first-child { text-align: left; padding-left: 18px; }
.bi-kader td { padding: 5px 12px; text-align: right; border-top: 1px solid var(--bi-soft); }
.bi-kader td:first-child { text-align: left; padding-left: 18px; }
.bi-kader td:last-child, .bi-kader th:last-child { padding-right: 18px; }
.bi-kader tbody tr:first-child td { border-top: 0; }
.bi-kader tr:last-child td { padding-bottom: 12px; }
.bi-kader__schnitt { font-weight: 700; color: var(--blue-dark); }
.bi-kader__neben td { color: var(--muted); font-style: italic; }
.bi-orden {
    display: inline-block; margin-left: 6px; font-size: .62rem; font-weight: 700; letter-spacing: .04em;
    color: var(--bi-gold); background: var(--bi-gold-bg); border-radius: 4px; padding: 1px 5px;
    font-style: normal; vertical-align: .1em; white-space: nowrap;
}

.bi-breit-liste { display: grid; gap: 12px; }
.bi-breit { display: grid; grid-template-columns: minmax(250px, 310px) minmax(0, 1fr); overflow: hidden; }
.bi-breit__links {
    display: flex; flex-direction: column; gap: 12px; padding: 16px 18px;
    background: var(--bi-soft); border-right: 1px solid var(--line);
}
.bi-breit__name { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.bi-breit__punkte { display: flex; align-items: baseline; gap: 8px; }
.bi-breit__punkte b { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--blue-dark); letter-spacing: -.02em; }
.bi-breit__punkte span { font-size: .82rem; color: var(--muted); }
.bi-breit__werte { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: .82rem; }
.bi-breit__werte b { display: block; font-size: .98rem; color: var(--ink); }
.bi-breit__rechts .bi-kader th { padding-top: 14px; }

/* ---- Nächster Start und Fuß --------------------------------------------- */
.bi-naechster {
    display: flex; gap: 14px; align-items: center; margin: 30px 0 0; padding: 16px 20px;
    background: var(--info-bg); border-radius: var(--bi-r); color: var(--blue-dark);
}
.bi-naechster .bi-icon { width: 28px; height: 28px; }
.bi-naechster b { font-size: 1.05rem; }
.bi-fuss {
    display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap;
    margin: 22px 0 8px; padding-top: 16px; border-top: 1px solid var(--line);
    color: var(--muted); font-size: .88rem;
}
.bi-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }
.bi-knopf {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    font: inherit; font-size: .9rem; font-weight: 600; padding: 9px 16px; border-radius: 8px;
    border: 1px solid var(--blue); background: var(--card); color: var(--blue);
}
.bi-knopf:hover { background: var(--info-bg); }
.bi-knopf--voll { background: var(--blue); color: #fff; }
.bi-knopf--voll:hover { background: var(--blue-dark); }

/* ---- Übersicht ----------------------------------------------------------- */
.bi-start { padding: 24px 26px 22px; }
.bi-start p { margin: 8px 0 0; color: var(--muted); max-width: 62ch; }
.bi-gruppe { margin: 30px 0 0; }
.bi-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.bi-kachel {
    display: flex; gap: 12px; align-items: center; padding: 14px 16px;
    color: inherit; border-left: 4px solid var(--warn);
}
.bi-kachel--amt  { border-left-color: var(--ok); }
.bi-kachel--leer { border-left-color: var(--line); box-shadow: none; background: transparent; border-style: dashed; border-left-style: solid; }
a.bi-kachel:hover { border-color: var(--blue); border-left-color: var(--blue); }
.bi-kachel__text { flex: 1; min-width: 0; }
.bi-kachel__name { font-weight: 700; color: var(--ink); }
.bi-kachel__tag { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.bi-kachel__rechts { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.bi-kachel .bi-pfeil { color: var(--blue); width: 18px; height: 18px; }
.bi-kachel--leer .bi-kachel__name { color: var(--muted); font-weight: 600; }

/* ---- Handy --------------------------------------------------------------- */
@media (max-width: 760px) {
    .bi-hoechst { grid-template-columns: 1fr; }
    .bi-breit { grid-template-columns: 1fr; }
    .bi-breit__links { border-right: 0; border-bottom: 1px solid var(--line); }
    .bi-kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .bi-kopf, .bi-start { padding: 18px 16px; }
    /* Match und Bonus wandern unter die Punkte, statt eigene Spalten zu
       belegen – so passt die Tabelle ohne Seitwärtsrollen aufs Handy. */
    .bi-nur-breit { display: none; }
    .bi-mb { display: block; }
    .bi-tabelle { font-size: .88rem; }
    .bi-tabelle th, .bi-tabelle td { padding-left: 8px; padding-right: 8px; }
    .bi-tabelle th:first-child, .bi-tabelle td:first-child { padding-left: 12px; }
    .bi-tabelle th:last-child,  .bi-tabelle td:last-child  { padding-right: 12px; }
    .bi-naechster { padding: 14px 16px; }
}

/* ---- Papier -------------------------------------------------------------- */
@media print {
    .bi-sprung, .bi-tage, .bi-knoepfe, .bi-brot, .topbar, .site-header, .site-footer { display: none !important; }
    .site-top { position: static; }
    body { background: #fff; }
    .bi-karte { box-shadow: none; }
    .bi-breit, .bi-hw, .bi-kennzahlen { break-inside: avoid; }
}
