/* Liveboard – mobile-first (Admin bleibt am PC) */

.liveboard-seite.container {
    max-width: 100%;
    margin: 0;
    padding: 12px;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.liveboard-kopf {
    text-align: center;
    margin-bottom: 16px;
}

.liveboard-banner-link {
    display: block;
    line-height: 0;
    margin-bottom: 10px;
}

.liveboard-banner {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 0 auto;
}

.liveboard-kopf .seiten-logo-oben {
    width: 64px;
    height: 64px;
}

.liveboard-turnier-titel {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--cm-text);
    margin-top: 8px;
    line-height: 1.3;
}

.liveboard-untertitel {
    font-size: 0.9rem;
    color: var(--cm-text-muted);
    margin-top: 4px;
}

.liveboard-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}

.liveboard-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 6px;
    border-radius: 6px;
    background: #e2e6eb;
    color: #2c3138;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.82rem;
    text-align: center;
    line-height: 1.2;
    border: 1px solid var(--cm-border);
}

.liveboard-tab-aktiv {
    background: #007bff;
    color: #fff;
    border-color: #0056b3;
}

.liveboard-unter-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 14px;
}

.liveboard-abschnitt {
    margin-bottom: 18px;
}

.liveboard-abschnitt-titel {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--cm-text);
}

.liveboard-karte {
    background: var(--cm-bg-weiss);
    border: 1px solid var(--cm-border);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.liveboard-tabelle-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.liveboard-tabelle {
    width: 100%;
    min-width: 280px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.liveboard-tabelle th,
.liveboard-tabelle td {
    padding: 8px 6px;
    border-bottom: 1px solid var(--cm-border-hell);
    text-align: center;
    white-space: nowrap;
}

.liveboard-tabelle th {
    background: var(--cm-bg-panel);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.liveboard-tabelle th.liveboard-team,
.liveboard-tabelle td.liveboard-team {
    text-align: left;
    white-space: normal;
    min-width: 110px;
}

.liveboard-tabelle td.liveboard-team a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.liveboard-spalte-kompakt,
.liveboard-spalte-saetze {
    display: none;
}

.liveboard-spiel-karte {
    border: 1px solid var(--cm-border-hell);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    background: #fff;
}

.liveboard-spiel-meta {
    font-size: 0.78rem;
    color: var(--cm-text-muted);
    margin-bottom: 6px;
    font-weight: bold;
}

.liveboard-spiel-teams {
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 6px;
}

.liveboard-spiel-team {
    display: inline;
}

.liveboard-spiel-team-gewonnen {
    color: #155724;
    font-weight: bold;
}

.liveboard-spiel-team-verloren {
    color: #777;
}

.liveboard-spiel-vs {
    color: var(--cm-text-muted);
    margin: 0 4px;
}

.liveboard-zurueck-link {
    margin: 0 0 14px;
    font-size: 0.9rem;
}

.liveboard-zurueck-link a {
    color: #1a5276;
    text-decoration: none;
    font-weight: bold;
}

.liveboard-inhalt .liveboard-spiel-karte .liveboard-spiel-teams,
.liveboard-spiel-karte-team-details .liveboard-spiel-teams {
    text-align: center;
}

.liveboard-inhalt .liveboard-spiel-karte .liveboard-spiel-ergebnis-box,
.liveboard-spiel-karte-team-details .liveboard-spiel-ergebnis-box {
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--cm-border-hell);
}

.liveboard-inhalt .liveboard-spiel-karte .liveboard-spiel-ergebnis,
.liveboard-spiel-karte-team-details .liveboard-spiel-ergebnis {
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: 0.04em;
}

.liveboard-inhalt .liveboard-spiel-karte .liveboard-spiel-ergebnis-saetze,
.liveboard-spiel-karte-team-details .liveboard-spiel-ergebnis-saetze {
    margin-top: 4px;
    font-size: 0.85rem;
    font-weight: normal;
    color: var(--cm-text-muted);
}

.liveboard-inhalt .liveboard-spiel-karte .liveboard-spiel-ergebnis-geplant,
.liveboard-spiel-karte-team-details .liveboard-spiel-ergebnis-geplant {
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--cm-border-hell);
    font-size: 1rem;
}

.liveboard-spiel-ergebnis {
    font-weight: bold;
    font-size: 1rem;
}

.liveboard-spiel-ergebnis-geplant {
    color: var(--cm-text-muted);
    font-weight: normal;
    font-size: 0.9rem;
}

.liveboard-baum-runde {
    margin-bottom: 16px;
}

.liveboard-baum-runde-titel {
    background: var(--cm-nav);
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.liveboard-turnier-wahl-oben {
    margin-bottom: 16px;
}

.liveboard-turnier-wahl-oben .liveboard-leer {
    padding-bottom: 8px;
}

.liveboard-archiv-hinweis {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #664d03;
    font-size: 0.88rem;
    line-height: 1.4;
    margin: 0 0 14px;
    padding: 10px 12px;
    text-align: center;
}

.liveboard-archiv {
    margin-top: 20px;
    border: 1px solid var(--cm-border);
    border-radius: 8px;
    padding: 10px 12px;
    background: var(--cm-bg-panel-hell);
}

.liveboard-archiv summary {
    cursor: pointer;
    font-weight: bold;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.liveboard-archiv-inhalt {
    margin-top: 10px;
}

.liveboard-fuss {
    margin-top: 24px;
    text-align: center;
    font-size: 0.85rem;
}

.liveboard-fuss a {
    color: #1a5276;
}

.liveboard-leer {
    text-align: center;
    color: var(--cm-text-muted);
    padding: 20px 10px;
}

.liveboard-legende {
    font-size: 0.8rem;
    color: var(--cm-text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}

.liveboard-inhalt .spielplan-klapp {
    margin-bottom: 8px;
}

.liveboard-inhalt .spielplan-klapp-inhalt {
    padding: 8px 6px 6px;
}

.liveboard-status-karte {
    background: linear-gradient(135deg, #1a5276 0%, #2471a3 100%);
    color: #fff;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.liveboard-status-phase {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 6px;
}

.liveboard-status-detail {
    font-size: 0.9rem;
    opacity: 0.95;
    line-height: 1.4;
}

.liveboard-pokalsieger {
    margin-top: 10px;
    font-size: 1.05rem;
    font-weight: bold;
}

.liveboard-mehr-link {
    text-align: right;
    font-size: 0.85rem;
    margin: 4px 0 0;
}

.liveboard-mehr-link a {
    color: #1a5276;
    text-decoration: none;
    font-weight: bold;
}

.liveboard-kurz-gruppe-titel {
    font-size: 0.95rem;
    margin: 0 0 8px;
}

.liveboard-tabelle-kurz {
    table-layout: fixed;
}

.liveboard-tabelle-gruppe {
    table-layout: fixed;
}

.liveboard-tabelle-gruppe .liveboard-spalte-sp,
.liveboard-tabelle-gruppe .liveboard-spalte-kompakt,
.liveboard-tabelle-gruppe .liveboard-spalte-diff,
.liveboard-tabelle-gruppe .liveboard-spalte-pkt,
.liveboard-tabelle-gruppe .liveboard-spalte-saetze {
    text-align: center;
}

.liveboard-tabelle-gruppe .liveboard-spalte-sp {
    width: 2.25rem;
}

.liveboard-tabelle-gruppe .liveboard-spalte-kompakt {
    width: 2rem;
}

.liveboard-tabelle-gruppe .liveboard-spalte-diff {
    width: 2.75rem;
}

.liveboard-tabelle-kurz .liveboard-spalte-pkt,
.liveboard-tabelle-gruppe .liveboard-spalte-pkt {
    width: 2.75rem;
    text-align: center;
}

.liveboard-tabelle-gruppe .liveboard-spalte-saetze {
    width: 3rem;
    font-size: 0.85rem;
    color: var(--cm-text-muted);
}

.liveboard-tabelle-kurz .liveboard-platz {
    color: var(--cm-text-muted);
    font-weight: normal;
    margin-right: 4px;
}

.liveboard-ko-hinweis {
    margin: 0 0 8px;
    font-size: 0.95rem;
}

@media (min-width: 640px) {
    .liveboard-seite.container {
        max-width: 720px;
        margin: 12px auto;
        padding: 20px;
        border-radius: 8px;
        border: 1px solid var(--cm-border-hell);
    }

    .liveboard-tabs {
        grid-template-columns: repeat(4, 1fr);
    }

    .liveboard-tab {
        font-size: 0.95rem;
    }

    .liveboard-spalte-kompakt,
    .liveboard-spalte-saetze {
        display: table-cell;
    }
}

.liveboard-baum-desktop {
    display: none;
}

.liveboard-baum-mobil {
    display: block;
}

@media (min-width: 900px) {
    .liveboard-seite.container {
        max-width: 960px;
    }

    .liveboard-baum-mobil {
        display: none;
    }

    .liveboard-baum-desktop {
        display: block;
    }
}
