/* ===================================================================
 * UTC Krems-Süd — Stylesheet
 * Public site (light, classic) + Crew-Lounge (dark, expressive)
 * =================================================================== */

/* === Default-Palette: Vereins-Blau aus dem Logo ===
   Theme-Override "Erdton" via theme-erdton.css überschreibt diese Werte. */
:root {
    --clay: #3525a0;
    --clay-dark: #1d1666;
    --clay-soft: #ebe7f8;
    --clay-gradient-end: #5a4ad0;     /* Lichter Akzent für Verläufe */
    --clay-soft-end: #d8d1f0;         /* Pale Endfarbe für Slot-Verläufe */
    --accent-red: #a83442;            /* gedämpftes Rot statt knallig */
    --accent-red-soft: #f4dde0;
    --admin-active: #a83442;          /* Active-Admin-Pill — pro Theme anpassbar */
    --admin-active-hover: #832433;
    --grass: #2f6b34;
    --grass-soft: #e3efde;
    --ink: #1c1f1c;
    --ink-soft: #4a4f4a;
    --paper: #fbfbfd;
    --paper-2: #f0eff5;
    --line: #d2d0dd;
    --shadow: 0 8px 28px rgba(29, 22, 102, 0.10);
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--clay-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.center { text-align: center; }
.muted { color: var(--ink-soft); }
.muted.small { font-size: 0.85rem; }

/* -------------------- Stale-data banner -------------------- */

.stale-banner {
    background: #fff4d6;
    color: #6b4d00;
    border-bottom: 2px solid #e6b800;
    padding: 0.7rem 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.4;
}
.stale-banner strong { color: #4a3500; }

/* -------------------- Header / Nav -------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 248, 241, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.5rem;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink);
    text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
    background: var(--clay);
    color: white;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}
.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.brand-name {
    display: block;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.1;
}
.brand-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--ink-soft);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
}
.site-nav a {
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s, color 0.15s;
}
.site-nav a:hover {
    color: var(--clay);
    text-decoration: none;
    border-color: var(--clay-soft);
}
.site-nav a.is-active {
    color: var(--clay);
    border-color: var(--clay);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.4rem 0.7rem;
    font-size: 1.2rem;
    cursor: pointer;
}

@media (max-width: 880px) {
    .nav-toggle { display: inline-block; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--paper);
        padding: 0.4rem 0;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        z-index: 100;
    }
    body.nav-open .site-nav { display: flex; }

    .site-nav > a,
    .site-nav > .nav-group {
        border-bottom: 1px solid var(--line);
        padding: 0;
    }
    .site-nav > a:last-child,
    .site-nav > .nav-group:last-child { border-bottom: none; }

    .site-nav > a {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }
    .site-nav > a.is-active {
        background: rgba(200, 16, 46, 0.06);
        border-left: 3px solid var(--clay);
        padding-left: calc(1.5rem - 3px);
    }

    /* Group-Label im Mobile: klickbare Zeile, gleicher Stil wie plain Links */
    .nav-group .nav-group-label {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        background: transparent;
        color: var(--ink);
    }
    .nav-group.is-active .nav-group-label {
        background: rgba(200, 16, 46, 0.06);
        border-left: 3px solid var(--clay);
        padding-left: calc(1.5rem - 3px);
    }
    .nav-caret { font-size: 0.85em; opacity: 0.55; transition: transform 0.2s; }
    .nav-group.is-open .nav-caret { transform: rotate(180deg); opacity: 1; }

    /* Submenu als inline Akkordeon — nur sichtbar wenn .is-open */
    .nav-submenu {
        position: static !important;
        display: none !important;
        box-shadow: none !important;
        border: none !important;
        background: rgba(0,0,0,0.03);
        padding: 0 !important;
        min-width: auto;
        max-height: none;
    }
    .nav-group.is-open .nav-submenu { display: block !important; }
    .nav-submenu a {
        display: block !important;        /* damit Items untereinander stehen */
        padding: 0.75rem 1.5rem 0.75rem 2.5rem;
        font-size: 0.93rem;
        border-bottom: 1px solid var(--line);
        white-space: normal;               /* falls Text umbrechen muss */
    }
    .nav-submenu a:last-child { border-bottom: none; }
}

/* -------------------- New landing hero -------------------- */

.landing-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% -10%, rgba(184, 88, 57, 0.18), transparent 55%),
        radial-gradient(ellipse at 110% 110%, rgba(47, 107, 52, 0.18), transparent 55%),
        var(--paper);
    padding: 5rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
}
@media (max-width: 920px) {
    .landing-hero { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; text-align: center; }
}
.landing-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 16px;
    background: white;
    padding: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}
@media (max-width: 920px) {
    .landing-logo { margin: 0 auto 1.2rem; }
}
.landing-eyebrow {
    color: var(--clay);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.landing-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.95;
    letter-spacing: 0.01em;
    color: var(--ink);
    margin-bottom: 1.2rem;
}
.landing-lead {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--ink-soft);
    margin-bottom: 2rem;
    max-width: 36em;
    line-height: 1.5;
}
@media (max-width: 920px) { .landing-lead { margin-left: auto; margin-right: auto; } }
.landing-cta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}
@media (max-width: 920px) { .landing-cta { justify-content: center; } }
.landing-photo img {
    width: 100%;
    border-radius: 16px;
    box-shadow:
        0 25px 50px rgba(28, 31, 28, 0.15),
        0 0 0 6px rgba(255, 255, 255, 0.6);
    transform: rotate(-1.5deg);
}

.btn--lg { padding: 1rem 1.8rem; font-size: 1rem; }

.kpi-grid--wide {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 700px) { .kpi-grid--wide { grid-template-columns: 1fr 1fr; } }

/* -------------------- Quick-link cards -------------------- */
.quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}
@media (max-width: 600px) { .quick-links { grid-template-columns: 1fr; } }
.quick-card {
    display: block;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.3rem;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}
.quick-card:hover {
    transform: translateY(-3px);
    border-color: var(--clay);
    box-shadow: var(--shadow);
    text-decoration: none;
}
.quick-label {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: var(--clay);
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}
.quick-desc {
    display: block;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

/* -------------------- CTA band -------------------- */
.cta-band {
    background: linear-gradient(135deg, var(--clay), var(--clay-dark));
    color: white;
    padding: 3.5rem 1.5rem;
}
.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.cta-band h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: 0.03em;
    color: white;
    margin-bottom: 0.3rem;
}
.cta-band p { color: rgba(255,255,255,0.85); }
.cta-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.btn--ghost-light {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.4);
}
.btn--ghost-light:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
    text-decoration: none;
    color: white;
}

/* -------------------- Old hero / Page head -------------------- */

.hero--landing {
    background:
        linear-gradient(135deg, rgba(184, 88, 57, 0.05), rgba(47, 107, 52, 0.05)),
        var(--paper);
    padding: 4rem 1.5rem 3rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
@media (max-width: 880px) {
    .hero--landing { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 1.5rem; }
}
.hero-eyebrow {
    color: var(--clay);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.hero-inner h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.6rem, 7vw, 5rem);
    line-height: 0.95;
    letter-spacing: 0.01em;
    color: var(--ink);
    margin-bottom: 1.2rem;
}
.hero-lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--ink-soft);
    margin-bottom: 1.8rem;
    max-width: 32em;
}
.hero-cta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}
.hero-photo img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: rotate(-1deg);
}

.page-head {
    padding: 3rem 1.5rem 2rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper-2);
}
.page-head h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    letter-spacing: 0.02em;
    color: var(--ink);
}
.page-head .lead {
    color: var(--ink-soft);
    font-size: 1.1rem;
    margin-top: 0.4rem;
}

/* -------------------- Buttons -------------------- */

.btn {
    display: inline-block;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.15s, background 0.2s, border-color 0.2s;
    text-decoration: none;
    line-height: 1;
}
.btn--primary {
    background: var(--clay);
    color: white;
}
.btn--primary:hover {
    background: var(--clay-dark);
    text-decoration: none;
    transform: translateY(-1px);
}
.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn--ghost:hover {
    border-color: var(--clay);
    color: var(--clay);
    text-decoration: none;
}
.btn--sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }

/* -------------------- Sections -------------------- */

.section {
    padding: 4rem 0;
}
.section--alt {
    background: var(--paper-2);
}
.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: 0.03em;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--ink);
}
.sub-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    margin: 2rem 0 1rem;
    color: var(--ink);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.two-col--wide-right {
    grid-template-columns: 1fr 1.4fr;
}
@media (max-width: 800px) {
    .two-col, .two-col--wide-right { grid-template-columns: 1fr; gap: 2rem; }
}
.two-col h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.03em;
    margin-bottom: 0.8rem;
}
.two-col p { margin-bottom: 1rem; color: var(--ink-soft); }
.two-col h2 + h2 { margin-top: 1.8rem; }

/* -------------------- KPI grid -------------------- */

.kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}
.kpi {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
    text-align: center;
}
.kpi-num {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.4rem;
    color: var(--clay);
    line-height: 1;
}
.kpi-lbl {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ink-soft);
    margin-top: 0.4rem;
}

/* -------------------- Tables (light) -------------------- */

.table-wrap--light {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 760px;
    margin: 0 auto;
}
.table-wrap--light .ranking-table { color: var(--ink); }
.table-wrap--light .ranking-table th {
    background: var(--paper-2);
    color: var(--ink-soft);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.7rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
}
.table-wrap--light .ranking-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--paper-2);
}
.table-wrap--light .ranking-table tr:last-child td { border-bottom: none; }
.table-wrap--light .ranking-table tr:hover {
    background: var(--paper-2);
}
.table-wrap--light .ranking-table tr.is-team {
    background: linear-gradient(90deg, rgba(184, 88, 57, 0.08), rgba(47, 107, 52, 0.04));
}
.table-wrap--light .ranking-table .rank-cell {
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
    width: 3rem;
}
.table-wrap--light .ranking-table tr.is-team .rank-cell {
    color: var(--clay);
    font-weight: 700;
}
.table-wrap--light .ranking-table .year-cell {
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
    width: 5rem;
}
.table-wrap--light .ranking-table .num-col { text-align: right; }
/* Nav dropdowns — NUR Desktop. Mobile-Regeln stehen in @media (max-width: 880px) weiter oben. */
.nav-group { position: relative; cursor: pointer; outline: none; }
@media (min-width: 881px) {
    .nav-group .nav-group-label {
        display: inline-block;
        color: var(--ink);
        font-weight: 500;
        font-size: 0.95rem;
        padding: 0.3rem 0;
        border-bottom: 2px solid transparent;
        transition: border-color 0.15s, color 0.15s;
        line-height: inherit;
    }
    .nav-group:hover .nav-group-label,
    .nav-group:focus-within .nav-group-label { color: var(--clay); border-bottom-color: var(--clay-soft); }
    .nav-group.is-active .nav-group-label { color: var(--clay); border-bottom-color: var(--clay); }
    .nav-caret { font-size: 0.7em; opacity: 0.55; margin-left: 0.15em; }
}
@media (min-width: 881px) {
    .nav-submenu {
        position: absolute; top: 100%; left: 0;
        min-width: 240px;
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.12);
        padding: 0.4rem 0;
        display: none;
        z-index: 100;
    }
    .nav-group:hover .nav-submenu,
    .nav-group:focus-within .nav-submenu { display: block; }
    .nav-submenu a {
        display: block;
        padding: 0.55rem 1rem;
        color: var(--ink, #222);
        font-size: 0.95rem;
        white-space: nowrap;
    }
    .nav-submenu a:hover, .nav-submenu a.is-active {
        background: rgba(200, 16, 46, 0.08);
        color: var(--clay);
    }
}

table.sortable thead th { position: relative; }
table.sortable thead th[data-sort-dir="asc"]::after { content: " ▲"; font-size: 0.7em; opacity: 0.6; }
table.sortable thead th[data-sort-dir="desc"]::after { content: " ▼"; font-size: 0.7em; opacity: 0.6; }
table.sortable thead th[data-sort]:hover { background: rgba(0,0,0,0.04); }
.doppel-itn-note {
    background: var(--clay-soft);
    border-left: 4px solid var(--clay);
    padding: 1rem 1.4rem;
    border-radius: 8px;
    margin: 1rem auto 1.6rem;
    max-width: 760px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--ink);
}
.doppel-itn-note strong { color: var(--clay-dark); }
.dr-photo-hint {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1.4rem 1.6rem;
    background: var(--clay-soft);
    border-left: 4px solid var(--clay);
    border-radius: 8px;
    max-width: 860px;
    margin: 0 auto;
    line-height: 1.55;
    color: var(--ink);
}
.dr-photo-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.dr-photo-link {
    display: inline-block;
    margin-top: 0.4rem;
    font-weight: 600;
    color: var(--clay-dark);
}
.dr-photo-link:hover { text-decoration: underline; }
.doppel-itn-note strong { color: var(--clay); }
.doppel-itn-note a { color: #8a4500; text-decoration: underline; }
.table-wrap--light .ranking-table .itn-cell {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    color: var(--clay);
    width: 5rem;
}
.country {
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    padding: 0.1rem 0.4rem;
    background: var(--paper-2);
    border-radius: 4px;
    color: var(--ink-soft);
    vertical-align: middle;
}
.crew-tag {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.1rem 0.5rem;
    background: var(--clay);
    color: white;
    border-radius: 999px;
    font-weight: 800;
    vertical-align: middle;
}
@media (max-width: 520px) {
    /* Sehr kompaktes Mobile-Tabellen-Layout damit alle 4 Spalten reinpassen */
    .hide-on-mobile { display: none !important; }

    /* Tabelle nimmt 100% verfügbare Breite, niemals breiter */
    .table-wrap--light .ranking-table,
    .lineup-table {
        width: 100% !important;
        table-layout: fixed;
        max-width: 100vw;
    }

    .table-wrap, .table-wrap--light { padding: 0; margin: 0 -0.5rem; }

    .table-wrap--light .ranking-table th,
    .table-wrap--light .ranking-table td,
    .lineup-table th,
    .lineup-table td {
        padding: 0.5rem 0.3rem;
        font-size: 0.82rem;
    }

    .table-wrap--light .ranking-table th,
    .lineup-table th {
        font-size: 0.62rem;
        letter-spacing: 0;        /* Letter-spacing am Mobile weg — Headers würden sich überlappen */
    }

    /* Spalten-Breiten als Prozent damit Summe = 100% bei table-layout:fixed */
    .table-wrap--light .ranking-table th:nth-child(1),
    .table-wrap--light .ranking-table td:nth-child(1),
    .lineup-table th:nth-child(1),
    .lineup-table td:nth-child(1) {
        width: 8%;              /* # */
        padding-left: 0.2rem;
        padding-right: 0.05rem;
        text-align: left;
    }
    .table-wrap--light .ranking-table th:nth-child(2),
    .table-wrap--light .ranking-table td:nth-child(2),
    .lineup-table th:nth-child(2),
    .lineup-table td:nth-child(2) {
        width: 38%;             /* Name — wraps in 2 Zeilen wenn nötig */
        white-space: normal;
        word-break: break-word;
        line-height: 1.2;
    }
    /* Drei Zahlen-Spalten (Gesamt, Doppel, Einzel) = nth-child 5/6/7 */
    .table-wrap--light .ranking-table th:nth-child(5),
    .table-wrap--light .ranking-table td:nth-child(5),
    .table-wrap--light .ranking-table th:nth-child(6),
    .table-wrap--light .ranking-table td:nth-child(6),
    .table-wrap--light .ranking-table th:nth-child(7),
    .table-wrap--light .ranking-table td:nth-child(7),
    .lineup-table th:nth-child(5),
    .lineup-table td:nth-child(5),
    .lineup-table th:nth-child(6),
    .lineup-table td:nth-child(6),
    .lineup-table th:nth-child(7),
    .lineup-table td:nth-child(7) {
        width: 18%;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    /* Header: Sup-Sternchen am Mobile weglassen, sonst zu wenig Platz */
    .table-wrap--light .ranking-table th sup,
    .lineup-table th sup { display: none; }
    /* Header darf in 2 Zeilen umbrechen damit "Einzel"/"Doppel" voll lesbar */
    .table-wrap--light .ranking-table thead th,
    .lineup-table thead th {
        white-space: normal;
        line-height: 1.15;
        vertical-align: bottom;
        word-break: keep-all;
    }

    .table-wrap--light .ranking-table .itn-cell,
    .lineup-table .itn-cell {
        font-size: 0.85rem;
        padding-left: 0.15rem;
        padding-right: 0.25rem;
    }
    /* doppel-itn-note kompakter auf Mobile */
    .doppel-itn-note {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
        line-height: 1.45;
        margin: 0.8rem 0 1.2rem;
    }

    /* Rank-Zelle (#) — kein zusätzliches Padding rechts */
    .table-wrap--light .ranking-table .rank-cell,
    .lineup-table .rank-cell {
        width: 1.6rem;
        padding-left: 0.3rem;
        padding-right: 0.1rem;
    }

    /* Container: full bleed damit kein seitlicher Padding-Raum verloren geht */
    .container { padding-left: 0.5rem; padding-right: 0.5rem; }
}

/* -------------------- Mannschaften / Player cards (light) -------------------- */

.team-block {
    margin-bottom: 3rem;
}

/* -------------------- Compact team grid (details/summary) -------------------- */

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    max-width: 1000px;
    margin: 1rem auto 0;
}
.team-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.team-card[open] {
    border-color: var(--clay);
    box-shadow: var(--shadow);
}
.team-summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    user-select: none;
}
.team-summary::-webkit-details-marker { display: none; }
.team-summary::before {
    content: "▸";
    display: inline-block;
    width: 1rem;
    color: var(--clay);
    font-size: 0.85rem;
    transition: transform 0.15s;
    flex: 0 0 auto;
}
.team-card[open] .team-summary::before { transform: rotate(90deg); }
.team-summary:hover { background: var(--paper-2); }
.team-summary-main {
    flex: 1 1 auto;
    min-width: 0;
}
.team-card-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    margin: 0;
    line-height: 1;
}
.team-card-league {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-top: 0.2rem;
}
.team-summary-side {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 0 0 auto;
    font-size: 0.85rem;
    color: var(--ink-soft);
}
.team-rank-badge {
    background: var(--clay);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.team-pcount {
    font-variant-numeric: tabular-nums;
}
.team-card-body {
    padding: 0 1.2rem 1.2rem;
    border-top: 1px solid var(--paper-2);
}
.team-card-body .team-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    color: var(--ink-soft);
    font-size: 0.9rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--paper-2);
    margin-bottom: 1rem;
}
.team-card-body .team-meta strong { color: var(--ink); font-weight: 600; }
.team-card-body .btn { margin-left: auto; }
@media (max-width: 560px) {
    .team-summary-side { display: none; }
    .team-card-body .btn { margin-left: 0; }
}
.team-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--clay);
}
.team-head h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.4rem;
    letter-spacing: 0.02em;
    line-height: 1;
}
.team-meta {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin-top: 0.3rem;
}
.team-tagline {
    color: var(--clay);
    font-style: italic;
    margin: 1rem 0 1.5rem;
}
.player-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
}
.player-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.player-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.player-rating {
    display: inline-block;
    background: var(--clay);
    color: white;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.player-initials {
    float: right;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--grass);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: -0.2rem;
}
.player-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    clear: right;
    margin-bottom: 0.1rem;
}
.player-nick {
    color: var(--clay);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.7rem;
}
.player-spec {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

/* -------------------- Spielplan / Match list -------------------- */

.match-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 880px;
    margin: 0 auto;
}
.match-row {
    display: grid;
    grid-template-columns: 100px 1fr 40px 1fr 140px;
    align-items: center;
    gap: 1rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
}
.match-date { display: flex; flex-direction: column; }
.match-date .date {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    color: var(--clay);
    line-height: 1;
}
.match-date .time {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-top: 0.2rem;
}
.match-team .team-name {
    font-weight: 700;
    margin-left: 0.5rem;
}
.match-team a.team-name,
.match-opp a {
    text-decoration: none;
    color: inherit;
    border-bottom: 1px dashed var(--line);
    transition: border-color 0.15s, color 0.15s;
}
.match-team a.team-name:hover,
.match-opp a:hover {
    color: var(--clay);
    border-color: var(--clay);
    text-decoration: none;
}
.match-vs {
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.match-opp { font-weight: 600; }
.match-venue {
    text-align: right;
    color: var(--ink-soft);
    font-size: 0.85rem;
}
.match-venue .group-name {
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.2rem;
}
.badge {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-weight: 700;
}
.badge--home { background: var(--grass-soft); color: var(--grass); }
.badge--away { background: var(--clay-soft); color: var(--clay-dark); }

@media (max-width: 700px) {
    .match-row {
        grid-template-columns: 80px 1fr;
        grid-template-areas:
            "date team"
            "date opp"
            "venue venue";
    }
    .match-date { grid-area: date; }
    .match-team { grid-area: team; }
    .match-vs { display: none; }
    .match-opp { grid-area: opp; }
    .match-venue { grid-area: venue; text-align: left; padding-top: 0.4rem; }
}

.match-row--raw {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    grid-template-columns: none;
}
.match-row--raw .cell {
    font-size: 0.9rem;
    color: var(--ink);
}
.match-row--raw .cell:first-child {
    font-weight: 700;
    color: var(--clay);
}

.import-form {
    display: flex;
    gap: 0.6rem;
    max-width: 760px;
    margin: 1rem auto 0;
}
.import-form input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.95rem;
}
.alert {
    max-width: 760px;
    margin: 1rem auto;
    padding: 0.8rem 1rem;
    border-radius: 8px;
}
.alert--error {
    background: #fdecec;
    color: #8b1a1a;
    border: 1px solid #f1b8b8;
}

/* -------------------- Reservierung Form -------------------- */

.resv-form {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
}
.resv-form h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}
.field { margin-bottom: 0.9rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.field--check { padding: 0.4rem 0; }
.check-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--ink);
}
.check-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--clay);
    cursor: pointer;
}
.field label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-soft);
    margin-bottom: 0.3rem;
    font-weight: 600;
}
.field input, .field select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--paper);
}
.field input:focus, .field select:focus {
    outline: 2px solid var(--clay-soft);
    border-color: var(--clay);
}

.resv-list { display: flex; flex-direction: column; gap: 0.6rem; }
.resv-row {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 1rem;
    align-items: center;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.9rem 1.1rem;
}
.resv-when { display: flex; flex-direction: column; line-height: 1.1; }
.resv-date {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    color: var(--clay);
}
.resv-time { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.2rem; }
.resv-court { font-weight: 700; }
.resv-name { color: var(--ink-soft); font-size: 0.9rem; }
.resv-note { font-size: 0.85rem; color: var(--ink-soft); font-style: italic; margin-top: 0.2rem; }
.resv-created { font-size: 0.7rem; color: var(--ink-soft); white-space: nowrap; }
.resv-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    white-space: nowrap;
}
.resv-cancel-form { margin: 0; }
.btn-link--danger {
    color: #b03030;
}
.btn-link--danger:hover { color: #8b1a1a; }
.empty {
    background: var(--paper-2);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    color: var(--ink-soft);
}

/* -------------------- Booking grid -------------------- */

.date-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    padding: 0.7rem 1rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    flex-wrap: wrap;
}
.date-bar label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: var(--ink-soft);
}
.date-bar input {
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
}
.date-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--paper-2);
    color: var(--ink);
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.15s, color 0.15s;
}
.date-nav:hover {
    background: var(--clay);
    color: white;
    text-decoration: none;
}
.date-current {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 9rem;
    line-height: 1.1;
}
.date-current-day {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink);
}
.date-current-iso {
    font-size: 0.8rem;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}
.date-bar-form { margin: 0; display: inline-flex; }
.date-today {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.85rem;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}
.date-today:hover {
    border-color: var(--clay);
    color: var(--clay);
    text-decoration: none;
}
.date-count { margin-left: auto; }

.booking-wrap {
    overflow-x: auto;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.booking-grid {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}
.booking-grid th {
    background: var(--paper-2);
    padding: 0.7rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    text-align: center;
}
.booking-grid td {
    padding: 0;
    border-bottom: 1px solid var(--paper-2);
    border-left: 1px solid var(--paper-2);
    height: 56px;
    text-align: center;
    vertical-align: middle;
}
.booking-grid .slot-col {
    background: var(--paper-2);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    color: var(--clay);
    width: 70px;
    text-align: center;
    border-left: none;
}
.booking-grid .slot-col.slot-col {
    border-right: 1px solid var(--line);
}
.booking-grid .ft { color: var(--clay); font-size: 0.9rem; }

.slot-cell.is-free { background: var(--grass-soft); }
.slot-cell.is-booked {
    background: linear-gradient(135deg, var(--clay-soft), var(--clay-soft-end));
    padding: 0.3rem 0.5rem;
    position: relative;
    cursor: grab;
}
.slot-cell.is-booked:active { cursor: grabbing; }
.slot-cell.drag-source {
    opacity: 0.4;
}
.slot-cell.is-free.drag-over {
    background: var(--clay-soft);
    outline: 2px dashed var(--clay);
    outline-offset: -3px;
}
.booked-content { position: relative; }
.slot-cancel-btn {
    position: absolute;
    top: -0.2rem;
    right: -0.2rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(184, 88, 57, 0.15);
    color: var(--clay-dark);
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slot-cell.is-booked:hover .slot-cancel-btn {
    opacity: 1;
}
.slot-cancel-btn:hover {
    background: var(--clay);
    color: white;
}
.slot-book-btn {
    background: transparent;
    border: 1px dashed transparent;
    color: var(--grass);
    padding: 0.4rem 0.6rem;
    width: 100%;
    height: 100%;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    transition: background 0.12s;
}
.slot-cell.is-free:hover { background: #d4e9ce; }
.slot-cell.is-free:hover .slot-book-btn { color: var(--ink); }
.booked-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--clay-dark);
    line-height: 1.1;
}
.booked-note {
    font-size: 0.7rem;
    color: var(--ink-soft);
    font-style: italic;
    margin-top: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* -------------------- Dialog -------------------- */
.book-dialog {
    border: none;
    border-radius: var(--radius);
    padding: 1.8rem;
    max-width: 420px;
    width: calc(100% - 2rem);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    background: white;
}
.book-dialog::backdrop {
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
}
.book-dialog h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}
.dialog-summary {
    color: var(--clay);
    font-weight: 600;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--line);
}
.dialog-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    margin-top: 1.2rem;
}

/* -------------------- Spielpartner / Verfügbarkeit -------------------- */

.avail-list { display: flex; flex-direction: column; gap: 0.7rem; }
.avail-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
}
.avail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--paper-2);
}
.avail-date {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    color: var(--clay);
    margin-right: 0.5rem;
}
.avail-time {
    font-weight: 600;
    color: var(--ink);
}
.avail-tags { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.tag {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-weight: 700;
}
.tag--form { background: var(--grass-soft); color: var(--grass); }
.tag--level { background: var(--clay-soft); color: var(--clay-dark); }
.avail-name { font-weight: 700; font-size: 1rem; }
.avail-note { color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.3rem; }
.avail-contact { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.4rem; }
.avail-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.7rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--paper-2);
}
.avail-created { font-size: 0.7rem; color: var(--ink-soft); }
.btn-link {
    background: transparent;
    border: none;
    color: var(--ink-soft);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}
.btn-link:hover { color: var(--clay); }

/* -------------------- Lineup table -------------------- */
.lineup {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 1rem;
}
.lineup-table {
    width: 100%;
    border-collapse: collapse;
}
.lineup-table th {
    background: var(--paper-2);
    color: var(--ink-soft);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.7rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
}
.lineup-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--paper-2);
}
.lineup-table tr:last-child td { border-bottom: none; }
.lineup-table .num-col { text-align: right; }
.lineup-table .itn-cell {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    color: var(--clay);
    width: 5rem;
}
.lineup-table .rank-cell { width: 3rem; color: var(--ink-soft); }
.lineup-table .year-cell { width: 5rem; color: var(--ink-soft); }

/* -------------------- News -------------------- */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    max-width: 980px;
    margin: 0 auto;
}
.news-grid--full { max-width: 1100px; }
.news-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
}
.news-card time {
    color: var(--clay);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.news-card h3 {
    font-size: 1.2rem;
    margin: 0.4rem 0 0.6rem;
}
.news-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* -------------------- Anlage / Hours / Kontakt -------------------- */

.hours-grid {
    max-width: 560px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid var(--paper-2);
    font-size: 0.95rem;
}
.hours-row:last-child { border-bottom: none; }
.hours-row span:last-child { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.hours-row--note { background: var(--paper-2); font-style: italic; }

.people-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 1rem;
}
.people-list li {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
}

/* -------------------- Footer -------------------- */

.site-footer {
    background: var(--clay-dark);
    color: rgba(255, 255, 255, 0.92);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 4rem;
}
.foot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.foot-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    color: white;
    margin-bottom: 0.5rem;
}
.foot-sub { font-size: 0.95rem; color: rgba(255,255,255,0.9); line-height: 1.55; }
.site-footer ul { list-style: none; }
.site-footer ul a { color: rgba(255,255,255,0.85); display: inline-block; padding: 0.15rem 0; font-size: 0.95rem; }
.site-footer ul a:hover { color: white; }
.foot-bottom {
    max-width: 1100px;
    margin: 2rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.18);
    font-size: 0.85rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.88);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.foot-bottom a { color: rgba(255, 255, 255, 0.95); text-decoration: underline; }
.foot-bottom a:hover { color: white; }
.foot-source { font-size: 0.85rem; }
.foot-optout {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.78);
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    max-width: 720px;
    margin: 0 auto;
}
.foot-copy { font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); }

/* Theme-Switcher im Admin */
.admin-theme-switcher { margin: 0 0 2.5rem 0; }
.theme-buttons {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
    max-width: 520px; margin-top: 0.6rem;
}
@media (max-width: 520px) { .theme-buttons { grid-template-columns: 1fr; } }
.theme-btn {
    padding: 1.2rem 1rem;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.3;
    transition: transform 0.15s, box-shadow 0.15s;
    text-align: center;
}
.theme-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.theme-btn.is-active { outline: 3px solid #ffd54f; outline-offset: 2px; }
.theme-btn-desc { font-size: 0.78rem; opacity: 0.85; font-weight: normal; }
.theme-btn--blau { background: linear-gradient(135deg, #3525a0, #5a4ad0); }
.theme-btn--erdton { background: linear-gradient(135deg, #b85839, #e87a3e); }

/* Top-10 Herren/Damen Grid: Desktop nebeneinander (breiterer Bereich), Mobile gestapelt */
.top10-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
    margin: 1.5rem auto;
    max-width: 1380px;
    width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-right: -2rem;
}
@media (max-width: 1200px) {
    .top10-grid { width: 100%; margin-left: 0; margin-right: 0; }
}
@media (max-width: 880px) {
    .top10-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}
.top10-block { min-width: 0; }
.top10-title {
    font-size: 1.05rem;
    margin: 0 0 0.6rem 0;
    color: var(--clay-dark);
    border-bottom: 2px solid var(--clay-soft);
    padding-bottom: 0.3rem;
}
.top10-title .muted { font-size: 0.85rem; font-weight: normal; }

/* Top-10-Tabellen: Jahrgang/Nat IMMER ausblenden — im 2-spaltigen Grid passt sonst nichts. */
.top10-grid .year-cell,
.top10-grid thead th:nth-child(3),
.top10-grid thead th:nth-child(4) { display: none; }

/* Datenschutz-Callout */
.callout-soft {
    background: var(--paper-2);
    border-left: 4px solid var(--clay);
    padding: 1rem 1.4rem;
    border-radius: 8px;
    margin: 1rem 0 1.5rem;
    line-height: 1.55;
}

/* Doppel-ITN-Stern + Hinweis-Box im Spielbericht */
.dpl-mark {
    display: inline-block;
    margin-left: 0.15rem;
    color: var(--clay);
    font-size: 0.85em;
    font-weight: bold;
    cursor: help;
}
.sb-doppel-itn-note {
    background: var(--clay-soft);
    border-left: 4px solid var(--clay);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--ink);
}
.sb-doppel-itn-note strong { color: var(--clay-dark); }
.sb-doppel-itn-note a { color: var(--clay-dark); font-weight: 600; }
.foot-sync {
    display: inline;
    opacity: 0.85;
    font-variant-numeric: tabular-nums;
}

.maps-link {
    display: inline-block;
    color: var(--clay);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    margin-top: 0.3rem;
}

/* -------------------- ITN Rechner -------------------- */
.itn-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.itn-tab {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font: inherit;
    color: var(--ink);
}
.itn-tab[aria-selected="true"] {
    background: var(--clay);
    color: white;
    border-color: var(--clay);
}
.itn-form {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
    max-width: 600px;
}
.itn-form .field { margin-bottom: 0.9rem; }
.itn-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.itn-form .field--check { display: flex; align-items: center; gap: 0.4rem; }
.combo { position: relative; }
.combo-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
}
.combo-list {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-top: 4px;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: var(--shadow);
    z-index: 20;
    display: none;
}
.combo-list.open { display: block; }
.combo-option {
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--paper-2);
}
.combo-option:last-child { border-bottom: none; }
.combo-option:hover { background: var(--paper-2); }
.combo-name { font-weight: 600; }
.combo-meta { font-size: 0.78rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.itn-result {
    background: white;
    border: 2px solid var(--clay);
    border-radius: var(--radius);
    padding: 1.4rem;
    margin-top: 1.5rem;
    max-width: 700px;
}
.itn-result h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--clay);
    letter-spacing: 0.03em;
}
.itn-result-row {
    display: grid;
    grid-template-columns: 1fr 70px 30px 70px 100px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--paper-2);
    font-variant-numeric: tabular-nums;
}
.itn-result-row:last-child { border-bottom: none; }
.itn-result-label { font-weight: 600; }
.itn-result-old { color: var(--ink-soft); }
.itn-result-arrow { color: var(--ink-soft); text-align: center; }
.itn-result-new { font-weight: 700; font-size: 1.1rem; color: var(--clay); }
.itn-result-delta { text-align: right; font-weight: 700; font-size: 0.95rem; }
.itn-result-delta.up { color: #2f7a3a; }
.itn-result-delta.down { color: #b03030; }

.itn-advanced {
    margin: 0.6rem 0 1rem;
    border-top: 1px solid var(--paper-2);
    padding-top: 0.6rem;
}
.itn-advanced summary {
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--ink-soft);
    padding: 0.3rem 0;
    user-select: none;
}
.itn-advanced summary:hover { color: var(--clay); }
.adv-body { margin-top: 0.6rem; }
@media (max-width: 560px) {
    .itn-result-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "label delta"
            "old new";
        row-gap: 0.2rem;
    }
    .itn-result-label { grid-area: label; }
    .itn-result-delta { grid-area: delta; }
    .itn-result-old::before { content: 'vorher: '; color: var(--ink-soft); }
    .itn-result-old { grid-area: old; }
    .itn-result-new::before { content: '→ '; }
    .itn-result-new { grid-area: new; text-align: right; }
    .itn-result-arrow { display: none; }
}
.maps-link:hover { text-decoration: underline; }
.site-footer .maps-link { color: rgba(255,255,255,0.95); text-decoration: underline; }
.site-footer .maps-link:hover { color: #fff; }

/* ===================================================================
 * CREW LOUNGE — scoped under .crew-standalone
 * =================================================================== */

body.crew-standalone {
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
}
body.crew-standalone .court-bg {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #c75c2c 0%, #e87a3e 35%, #4a9952 65%, #2f6b34 100%);
    z-index: -2;
}
body.crew-standalone .court-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent 0 80px, rgba(255,255,255,0.04) 80px 81px),
        repeating-linear-gradient(90deg, transparent 0 80px, rgba(255,255,255,0.04) 80px 81px);
}
body.crew-standalone .ball {
    position: fixed;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #e8ff4d 0%, #b8d927 70%, #7a8f1a 100%);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35), inset -6px -8px 12px rgba(0,0,0,0.2);
    pointer-events: none;
    z-index: 0;
    animation: bounce 4s ease-in-out infinite;
    top: 100px; left: -100px;
}
body.crew-standalone .ball::before, body.crew-standalone .ball::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    border-color: rgba(255,255,255,0.7) transparent transparent transparent;
    transform: rotate(20deg);
}
body.crew-standalone .ball::after { transform: rotate(-160deg); }
@keyframes bounce {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(40vw, 40vh) rotate(180deg); }
    50%  { transform: translate(80vw, 10vh) rotate(360deg); }
    75%  { transform: translate(30vw, 60vh) rotate(540deg); }
    100% { transform: translate(0, 0) rotate(720deg); }
}

body.crew-standalone .crew-back {
    position: fixed;
    top: 1rem; left: 1rem;
    z-index: 100;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
}
body.crew-standalone .crew-back:hover { background: rgba(0,0,0,0.7); text-decoration: none; }

body.crew-standalone .hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center;
    padding: 4rem 1.5rem;
    color: var(--paper);
    position: relative;
    z-index: 1;
}
body.crew-standalone .hero .badge {
    display: inline-block;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    color: #f4ead3;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.15);
}
body.crew-standalone h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 11vw, 9rem);
    line-height: 0.9;
    letter-spacing: 0.02em;
    text-shadow: 0 6px 30px rgba(0,0,0,0.4);
}
body.crew-standalone h1 span { display: block; }
body.crew-standalone h1 .line2 {
    background: linear-gradient(90deg, #fff7c2, #fff 50%, #ffe88a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
body.crew-standalone h1 .line3 { font-size: 0.6em; opacity: 0.92; }
body.crew-standalone .subtitle {
    margin-top: 1.5rem;
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    max-width: 640px;
    opacity: 0.92;
    font-weight: 400;
}
body.crew-standalone .team-photo {
    margin: 2.5rem auto 0;
    max-width: 720px;
    width: 100%;
}
body.crew-standalone .team-photo img {
    width: 100%;
    border-radius: 18px;
    box-shadow:
        0 25px 60px rgba(0,0,0,0.45),
        0 0 0 6px rgba(255,255,255,0.08),
        0 0 0 7px rgba(255,255,255,0.15);
    transform: rotate(-1deg);
    transition: transform 0.4s ease;
}
body.crew-standalone .team-photo img:hover {
    transform: rotate(0deg) scale(1.02);
}
body.crew-standalone .team-photo figcaption {
    margin-top: 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.7;
    text-align: center;
}
body.crew-standalone .stats {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
body.crew-standalone .stat {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 1.2rem 1.8rem;
    border-radius: 16px;
    min-width: 130px;
}
body.crew-standalone .stat .num {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    line-height: 1;
    color: #fff7c2;
}
body.crew-standalone .stat .lbl {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 0.4rem;
}
body.crew-standalone .actions {
    margin-top: 2rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}
body.crew-standalone .actions .btn {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(6px);
}
body.crew-standalone .actions .btn:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
body.crew-standalone .actions .btn.primary {
    background: linear-gradient(135deg, #ffd54a, #ff8a3d);
    color: #2a1500;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(255, 138, 61, 0.45);
}

body.crew-standalone .roster {
    background: var(--paper);
    padding: 6rem 1.5rem;
    position: relative;
    z-index: 1;
}
body.crew-standalone .roster h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    text-align: center;
    color: var(--ink);
    margin-bottom: 3rem;
    letter-spacing: 0.04em;
}
body.crew-standalone .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
body.crew-standalone .card {
    background: #fff;
    border-radius: 22px;
    padding: 1.8rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.25s, box-shadow 0.25s;
    animation: pop 0.6s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: calc(var(--i) * 80ms);
}
body.crew-standalone .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
body.crew-standalone .card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
body.crew-standalone .rating {
    background: linear-gradient(135deg, var(--clay), var(--clay-gradient-end));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(199, 92, 44, 0.35);
}
body.crew-standalone .initials {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2f6b34, #4a9952);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(47, 107, 52, 0.35);
}
body.crew-standalone .card h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.2rem; }
body.crew-standalone .nick { color: var(--clay); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.8rem; }
body.crew-standalone .spec { color: #4a4a4a; line-height: 1.5; margin-bottom: 1rem; font-size: 0.95rem; }
body.crew-standalone .drink {
    font-size: 0.85rem;
    color: #6b6b6b;
    border-top: 1px dashed #e0d8c0;
    padding-top: 0.8rem;
}
body.crew-standalone .drink span {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    color: #999;
    display: block;
    margin-bottom: 0.2rem;
}
@keyframes pop {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
body.crew-standalone .motto {
    background: var(--ink);
    color: var(--paper);
    padding: 5rem 1.5rem;
    text-align: center;
}
body.crew-standalone .motto-inner { max-width: 720px; margin: 0 auto; }
body.crew-standalone .motto h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #ffd54a;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}
body.crew-standalone .motto p {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-style: italic;
    line-height: 1.5;
}
body.crew-standalone .motto p.small {
    font-size: 0.9rem;
    opacity: 0.5;
    margin-top: 1.5rem;
    font-style: normal;
}
body.crew-standalone .crew-footer {
    background: #0a0e0b;
    color: rgba(255,255,255,0.4);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
}
body.crew-standalone .bump-flash { animation: flash 0.4s ease-out; }
@keyframes flash {
    0%   { transform: scale(1); color: #fff7c2; }
    50%  { transform: scale(1.4); color: #ffd54a; text-shadow: 0 0 30px #ffd54a; }
    100% { transform: scale(1); color: #fff7c2; }
}

/* ============================================================
   Spielbericht — Upload / Edit / Print
   ============================================================ */

.sb-upload { display: flex; flex-direction: column; gap: 1.2rem; max-width: 560px; margin: 0 auto; }
.sb-upload-drop {
    border: 2px dashed #ccc; border-radius: 12px; padding: 2.5rem 1.5rem; text-align: center;
    cursor: pointer; transition: border-color 0.2s, background 0.2s; background: #fafafa;
    display: flex; flex-direction: column; gap: 0.8rem; align-items: center;
}
.sb-upload-drop:hover { border-color: var(--clay); background: var(--clay-soft); }
.sb-upload-icon { font-size: 3rem; line-height: 1; }
.sb-upload-text { display: flex; flex-direction: column; gap: 0.3rem; }
.sb-upload-drop input[type="file"] { display: none; }
#sb-preview img { max-width: 100%; max-height: 320px; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
#sb-preview-name { margin-top: 0.4rem; }

.sb-edit { display: flex; flex-direction: column; gap: 1.4rem; }
.sb-meta-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem; padding: 1rem; background: #f7f7f7; border-radius: 8px;
}
.sb-meta-grid label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 500; font-size: 0.9rem; }
.sb-meta-grid input { padding: 0.5rem; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }

.sb-table-wrap { overflow-x: auto; }
.sb-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.sb-table th { background: #eee; padding: 0.5rem; text-align: left; font-weight: 600; }
.sb-table td { padding: 0.5rem; border-bottom: 1px solid #eee; vertical-align: top; }
.sb-match-label { font-weight: 700; color: var(--clay); white-space: nowrap; }
.sb-lic { width: 70px; padding: 0.35rem; border: 1px solid #ccc; border-radius: 3px; margin-right: 0.3rem; font-size: 0.85rem; }
.sb-name { width: calc(100% - 80px); padding: 0.35rem; border: 1px solid #ccc; border-radius: 3px; font-size: 0.9rem; }
.sb-name--match { background: #fff8d8; }
.sb-name--confirmed { background: #d8f5d8; }
.sb-set { white-space: nowrap; }
.sb-set input { width: 36px; padding: 0.35rem; border: 1px solid #ccc; border-radius: 3px; text-align: center; font-size: 0.9rem; margin-right: 2px; }
.sb-cands { margin-top: 0.4rem; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.sb-cand {
    background: #fff; border: 1px solid #ddd; border-radius: 16px; padding: 0.25rem 0.6rem;
    font-size: 0.78rem; cursor: pointer; color: inherit; transition: background 0.15s;
}
.sb-cand:hover { background: var(--clay-soft); border-color: var(--clay); }

/* Print-view */
.sb-print-actions { display: flex; gap: 0.8rem; margin-top: 0.8rem; }
.sb-doc {
    background: #fff; padding: 2rem; max-width: 850px; margin: 0 auto;
    box-shadow: 0 2px 18px rgba(0,0,0,0.08); border-radius: 8px;
}
.sb-doc-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    border-bottom: 3px double #222; padding-bottom: 1rem; margin-bottom: 1.5rem;
}
.sb-doc-band {
    background: #222; color: #fff; padding: 0.3rem 0.8rem; font-size: 0.75rem;
    letter-spacing: 0.15em; font-weight: 600; display: inline-block; margin-bottom: 0.4rem;
}
.sb-doc-title h1 { margin: 0; font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.08em; }
.sb-doc-meta { display: grid; grid-template-columns: repeat(2, auto); gap: 0.4rem 1.4rem; font-size: 0.9rem; }
.sb-doc-meta div { display: flex; flex-direction: column; }

.sb-doc-teams {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    gap: 1rem; padding: 1rem; background: #f7f7f7; border-radius: 8px; margin-bottom: 1.5rem;
}
.sb-doc-team strong { font-size: 1.2rem; display: block; margin-top: 0.2rem; }
.sb-doc-team--away { text-align: right; }
.sb-doc-score { font-family: 'Bebas Neue', sans-serif; font-size: 2.6rem; padding: 0 1rem; }

.sb-doc-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1.5rem; font-size: 0.92rem; }
.sb-doc-table th { background: #eee; padding: 0.5rem; text-align: left; border-bottom: 2px solid #999; }
.sb-doc-table td { padding: 0.55rem 0.5rem; border-bottom: 1px solid #eee; vertical-align: top; }
.sb-row-heim { background: #f0f8e8; }
.sb-row-gast { background: #fce7ea; }

.sb-doc-foot {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #ccc;
}
.sb-doc-foot div { display: flex; flex-direction: column; gap: 0.2rem; }

@media print {
    .no-print, .site-header, .site-footer, .stale-banner { display: none !important; }
    .sb-doc { box-shadow: none; padding: 0; max-width: none; }
    body { background: #fff; }
}

/* Spielbericht — loading state + live score */
.sb-loading[hidden] { display: none; }
.sb-loading {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.2rem; background: #f0f4ff; border-radius: 8px;
    border-left: 4px solid #4a6cf7;
}
.sb-spinner {
    width: 28px; height: 28px; border-radius: 50%;
    border: 3px solid #cbd5ff; border-top-color: #4a6cf7;
    animation: sb-spin 0.7s linear infinite;
}
@keyframes sb-spin { to { transform: rotate(360deg); } }

.sb-tips { margin-top: 1rem; padding: 0.5rem 0.8rem; background: #fafafa; border-radius: 6px; }
.sb-tips summary { cursor: pointer; font-weight: 500; padding: 0.3rem 0; }
.sb-tips ul { margin: 0.4rem 0 0.4rem 1.2rem; padding: 0; }
.sb-tips li { margin-bottom: 0.3rem; }

.sb-live-score {
    display: inline-flex; align-items: center; gap: 0.8rem;
    padding: 0.5rem 1rem; background: #fff; border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06); margin-top: 0.8rem;
}
.sb-live-score strong { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.05em; }

.sb-doc-itn {
    display: inline-block; margin-left: 0.4rem;
    padding: 0.1rem 0.4rem; font-size: 0.78rem;
    background: #eef3ff; color: #4a6cf7; border-radius: 3px;
    font-weight: 500; white-space: nowrap;
}

.sb-itn {
    width: 56px; padding: 0.35rem; border: 1px solid #ccc; border-radius: 3px;
    font-size: 0.85rem; text-align: center; margin-left: 0.3rem;
    background: #f8faff;
}
.sb-itn:focus { background: #fff; border-color: #4a6cf7; outline: none; }

/* ============================================================
   Admin-Konsole
   ============================================================ */
.admin-login { max-width: 380px; margin: 2rem auto; }
.admin-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.admin-head h1 { margin: 0; }

.admin-cmd { display: flex; flex-direction: column; gap: 0.8rem; max-width: 720px; }
.admin-input-wrap { position: relative; }
.admin-input-wrap textarea {
    width: 100%; padding: 0.8rem 3rem 0.8rem 0.8rem; border: 1px solid #ccc; border-radius: 8px;
    font-family: inherit; font-size: 1rem; resize: vertical; min-height: 80px;
}
.admin-input-wrap textarea:focus { border-color: #4a6cf7; outline: none; }

.mic-btn {
    position: absolute; right: 0.5rem; top: 0.5rem;
    width: 44px; height: 44px; border-radius: 50%;
    border: 2px solid #ddd; background: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; transition: all 0.2s;
}
.mic-btn:hover { border-color: #4a6cf7; background: #f0f4ff; }
.mic-btn.listening {
    background: #ff4d6d; border-color: #ff4d6d; color: #fff;
    animation: mic-pulse 1.2s ease-in-out infinite;
}
@keyframes mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.5); }
    50% { box-shadow: 0 0 0 12px rgba(255, 77, 109, 0); }
}

.admin-quick { margin: 2rem 0; padding: 1rem; background: #f7f7f7; border-radius: 8px; }
.admin-quick summary { cursor: pointer; font-weight: 600; padding: 0.4rem 0; }
.admin-quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.admin-form { background: #fff; padding: 1rem; border-radius: 8px; display: flex; flex-direction: column; gap: 0.6rem; }
.admin-form h3 { margin: 0 0 0.4rem; }
.admin-form .field input, .admin-form .field select, .admin-form .field textarea {
    width: 100%; padding: 0.4rem; border: 1px solid #ccc; border-radius: 4px;
}

.admin-audit { list-style: none; padding: 0; }
.admin-audit li { padding: 0.5rem 0.7rem; border-bottom: 1px solid #eee; font-size: 0.92rem; }
.admin-audit li:hover { background: #fafafa; }

.admin-preview-card, .admin-result-card {
    background: #fff; padding: 1.2rem; border-radius: 8px; margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06); border-left: 4px solid #4a6cf7;
}
.admin-preview-card h3, .admin-result-card h3 { margin-top: 0; }
.admin-preview-list { max-height: 220px; overflow-y: auto; font-size: 0.9rem; }
.admin-confirm { display: flex; gap: 0.8rem; margin-top: 1.5rem; }
.admin-result-actions { display: flex; gap: 0.8rem; margin-top: 1.5rem; }
.success-text { color: #2d6e30; font-weight: 500; }
.alert--warn {
    background: var(--accent-red-soft); border-left: 4px solid var(--accent-red); padding: 0.8rem 1rem;
    border-radius: 4px; margin: 0.8rem 0;
}

/* Admin-Pill im Header */
.admin-pill {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.4rem 0.8rem; margin-left: 0.6rem;
    background: #f0f0f0; border: 1px solid #ccc; border-radius: 16px;
    text-decoration: none; color: #666; font-size: 0.85rem; font-weight: 500;
    transition: all 0.15s;
    white-space: nowrap;
}
.admin-pill:hover { background: #e0e0e0; border-color: #888; color: #333; }
.admin-pill--active {
    background: var(--admin-active); border-color: var(--admin-active); color: #fff;
}
.admin-pill--active:hover { background: var(--admin-active-hover); border-color: var(--admin-active-hover); color: #fff; }

@media (max-width: 760px) {
    .admin-pill { font-size: 0.78rem; padding: 0.3rem 0.6rem; margin-left: 0.4rem; }
}

.resv-cmd { margin-top: 1rem; padding: 0.6rem 0.9rem; background: rgba(255,255,255,0.5); border-radius: 8px; }
.resv-cmd summary { cursor: pointer; font-weight: 600; padding: 0.3rem 0; }
.resv-cmd .admin-cmd { margin-top: 0.6rem; }

/* Doppelrechner */
.dr-form { display: flex; flex-direction: column; gap: 1rem; }
.dr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.6rem 0.8rem; }
.dr-grid .field { margin: 0; }
.dr-grid select, .dr-grid input { width: 100%; padding: 0.45rem; border: 1px solid #ccc; border-radius: 4px; font-size: 0.95rem; }
.dr-result h2 { margin-top: 2rem; }
.dr-card { background: #fff; padding: 1rem 1.2rem; border-radius: 8px; margin: 0.8rem 0; box-shadow: 0 1px 4px rgba(0,0,0,0.06); border-left: 4px solid #aaa; }
.dr-card--best { border-left-color: #2d6e30; background: #f5fbf5; }
.dr-card-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.6rem; }
.dr-rank { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; line-height: 1; padding: 0.2rem 0.7rem; background: #eee; border-radius: 50%; }
.dr-card--best .dr-rank { background: #2d6e30; color: #fff; }
.dr-score strong { font-size: 1.4rem; }
.dr-pairs { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.dr-pairs th { background: #f5f5f5; padding: 0.4rem; text-align: left; }
.dr-pairs td { padding: 0.5rem 0.4rem; border-bottom: 1px solid #eee; vertical-align: top; }
.dr-pairs .dr-prob { text-align: center; font-size: 1.05rem; }

/* Doppel-Analyse */
.dr-formula { background: #f0f4ff; padding: 1rem; border-left: 4px solid #4a6cf7; border-radius: 4px; font-size: 1.05rem; overflow-x: auto; }
.dr-chart-wrap { margin: 1.5rem 0; text-align: center; }
.dr-chart { max-width: 100%; height: auto; border-radius: 6px; box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.dr-bucket-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.dr-bucket-table th { background: #eee; padding: 0.5rem; text-align: left; }
.dr-bucket-table td { padding: 0.5rem; border-bottom: 1px solid #eee; }
.dr-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1rem 0; }
.dr-team { background: #f7f7f7; padding: 1rem; border-radius: 8px; }
.dr-team h3 { margin-top: 0; }
.dr-team ol { padding-left: 1.4rem; margin: 0.5rem 0 0; }
.dr-team li { padding: 0.2rem 0; }
@media (max-width: 720px) { .dr-teams { grid-template-columns: 1fr; } }

.dr-spread { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.dr-spread-card { background: #fff; padding: 1.2rem; border-radius: 8px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.08); border-top: 4px solid #aaa; display: flex; flex-direction: column; gap: 0.3rem; }
.dr-spread-card--best { border-top-color: #2d6e30; }
.dr-spread-card--worst { border-top-color: var(--clay); }
.dr-spread-card--diff { border-top-color: #4a6cf7; }
.dr-spread-card strong { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; letter-spacing: 0.05em; line-height: 1; }

.dr-card--bad { border-left-color: var(--clay); background: var(--clay-soft); }
.dr-insights li { padding: 0.5rem 0; }
.dr-cta { text-align: center; margin: 2rem 0 1rem; padding: 1.2rem; background: #f5fbf5; border-radius: 8px; }
.dr-cta p { margin: 0 0 0.6rem; font-weight: 500; }

.dr-atleast { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; list-style: none; padding: 0.5rem 0.8rem; margin: 0.4rem 0 0.8rem; background: #fafbff; border-radius: 6px; }
.dr-atleast li { display: flex; align-items: baseline; gap: 0.4rem; font-size: 0.95rem; }
.dr-atleast li strong { font-family: 'Bebas Neue', sans-serif; font-size: 1.25rem; letter-spacing: 0.04em; color: #2d6e30; }
.dr-atleast-label { color: #666; }

/* Spielbericht — Doppel-Empfehlung Card */
.sb-doppel-rec {
    background: #f0fff4; border: 1px solid #c8e6c9; border-radius: 10px;
    padding: 1.2rem 1.4rem; margin: 1.5rem 0; box-shadow: 0 1px 6px rgba(45,110,48,0.08);
}
.sb-doppel-rec--unavailable { background: #f7f7f7; border-color: #ddd; }
.sb-doppel-rec h2 { margin-top: 0; }
.sb-doppel-tabs { display: flex; gap: 0.4rem; margin: 0.8rem 0; flex-wrap: wrap; }
.sb-doppel-tab {
    padding: 0.4rem 1rem; background: #fff; border: 1.5px solid #c8e6c9; border-radius: 16px;
    cursor: pointer; font-weight: 500; color: #2d6e30; transition: all 0.15s;
}
.sb-doppel-tab.is-active { background: #2d6e30; border-color: #2d6e30; color: #fff; }
.sb-doppel-tab:hover { border-color: #2d6e30; }
.sb-doppel-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 0.5rem 0; }
.sb-doppel-table th { background: rgba(45,110,48,0.1); padding: 0.5rem; text-align: left; }
.sb-doppel-table td { padding: 0.6rem 0.5rem; border-bottom: 1px solid #d8e8d8; vertical-align: top; background: #fff; }
.sb-doppel-table .dr-prob { text-align: center; font-size: 1.05rem; }
.sb-doppel-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.8rem; }
.sb-doppel-pane[hidden] { display: none; }

/* -------------------- Mobile-Optimierung (umfassend) -------------------- */

@media (max-width: 600px) {
    /* Container etwas mehr Luft */
    .container { padding-left: 0.85rem; padding-right: 0.85rem; }

    /* Sections kompakter */
    .section { padding: 2rem 0; }
    .section-title { font-size: 1.6rem; margin-bottom: 1rem; }

    /* Landing Hero — Padding reduzieren */
    .landing-hero { padding: 2rem 1rem 2.5rem; gap: 1.4rem; }
    .landing-logo { width: 90px; height: 90px; margin: 0 auto 0.8rem; }
    .landing-title { font-size: clamp(2.4rem, 11vw, 4rem); margin-bottom: 0.8rem; }
    .landing-lead { font-size: 1rem; margin-bottom: 1.4rem; }

    /* CTA-Buttons im Hero → full-width gestapelt */
    .landing-cta { flex-direction: column; align-items: stretch; gap: 0.6rem; }
    .landing-cta .btn { width: 100%; text-align: center; padding: 0.85rem 1.4rem; }
    .btn--lg { padding: 0.9rem 1.4rem; font-size: 0.95rem; }

    /* Hero-Photo: kein Rotations-Tilt am Handy (zentrierter) */
    .landing-photo img { transform: none; }

    /* Generic .hero--landing (andere Seiten) */
    .hero--landing { padding: 2rem 1rem; gap: 1.4rem; }
    .hero-inner h1 { font-size: clamp(2.2rem, 9vw, 3.5rem); }
    .hero-lead { font-size: 1rem; }

    /* KPIs etwas kompakter */
    .kpi { padding: 0.9rem 0.6rem; }
    .kpi-num { font-size: 2rem; }
    .kpi-lbl { font-size: 0.65rem; letter-spacing: 0.1em; }

    /* Quick-link-Karten kompakter */
    .quick-card { padding: 0.95rem 1.1rem; }

    /* Match-Liste mehr Lesbarkeit */
    .match-row {
        gap: 0.5rem 0.8rem;
        padding: 0.85rem 1rem;
        grid-template-columns: 75px 1fr !important;
    }
    .match-date .date { font-size: 1.15rem; }
    .match-date .time { font-size: 0.8rem; }
    .match-team .team-name { margin-left: 0.35rem; font-size: 0.95rem; }
    .match-opp { font-size: 0.95rem; }
    .badge { font-size: 0.65rem; padding: 0.18rem 0.55rem; }

    /* News-Karten kompakter */
    .news-grid { grid-template-columns: 1fr; gap: 0.8rem; }
    .news-card { padding: 1rem 1.1rem; }
    .news-card h3 { font-size: 1.05rem; margin: 0.3rem 0 0.4rem; }
    .news-card p { font-size: 0.9rem; }

    /* Doppel-ITN-Note — kompakter (zusätzlich zu max-width:520) */
    .doppel-itn-note { padding: 0.75rem 0.95rem; font-size: 0.82rem; }

    /* Top10-Grid (Herren+Damen) — am Handy untereinander */
    .top10-grid { grid-template-columns: 1fr !important; gap: 1.4rem; }

    /* CTA-Band kompakter */
    .cta-band { padding: 2.2rem 1rem; }
    .cta-inner { flex-direction: column; gap: 1rem; align-items: stretch; text-align: center; }
    .cta-actions { justify-content: center; }

    /* Footer — kleinere Schrift */
    .site-footer { padding: 2rem 1rem 1.2rem; margin-top: 2.5rem; }
    .foot-grid { gap: 1.2rem; }
    .foot-title { font-size: 1rem; }
    .foot-grid li { padding: 0.3rem 0; }

    /* Formulare — Inputs nicht über 100% laufen lassen */
    input[type="text"], input[type="email"], input[type="password"],
    input[type="date"], input[type="time"], input[type="search"],
    input[type="tel"], textarea, select {
        max-width: 100%;
        font-size: 16px;  /* verhindert iOS-Auto-Zoom bei Focus */
    }

    /* People-Liste 1-spaltig */
    .people-list { grid-template-columns: 1fr; }

    /* Section-head Titel-Hierarchie */
    .page-head h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
}

/* Sehr kleine Phones (≤375px) */
@media (max-width: 380px) {
    .container { padding-left: 0.6rem; padding-right: 0.6rem; }
    .landing-title { font-size: 2.1rem; }
    .section-title { font-size: 1.4rem; }
    .match-row { grid-template-columns: 68px 1fr !important; padding: 0.7rem 0.85rem; }
    .kpi-num { font-size: 1.7rem; }
}

/* ============================================================
   Spielbericht-Edit — Mobile Card-Layout (≤700px)
   Jede Match-Zeile wird zu einer Karte.
   TD-Reihenfolge: 1=Label, 2=Heim, 3=Gast, 4-6=Sätze, 7=Sieger
   Flex-Box mit order: lässt uns sets nebeneinander stellen, Sieger nach oben rechts.
   ============================================================ */
@media (max-width: 700px) {
    .sb-edit { gap: 1rem; }
    .sb-meta-grid { grid-template-columns: 1fr; padding: 0.7rem; gap: 0.5rem; }
    .sb-meta-grid label { font-size: 0.85rem; }

    .sb-table-wrap { overflow: visible; }
    .sb-table, .sb-table tbody { display: block; }
    .sb-table thead { display: none; }

    .sb-table tr.sb-match {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.45rem 0.5rem;
        background: white;
        border: 1px solid var(--line);
        border-left: 3px solid var(--clay);
        border-radius: 8px;
        padding: 0.75rem 0.85rem;
        margin-bottom: 0.7rem;
    }
    .sb-table td {
        padding: 0 !important;
        border: none !important;
        display: block;
    }
    /* td-1: Label (1.E etc.) — links oben */
    .sb-table td.sb-match-label {
        order: 1;
        font-size: 1rem;
        font-weight: 700;
        color: var(--clay);
        flex: 0 0 auto;
        margin-right: auto;
    }
    /* td-7 (letzte): Sieger-Select — rechts oben */
    .sb-table tr.sb-match td:nth-last-child(1) {
        order: 2;
        flex: 0 0 auto;
    }
    .sb-table tr.sb-match td:nth-last-child(1) select {
        padding: 0.35rem 0.5rem;
        border-radius: 5px;
        font-size: 0.85rem;
        border: 1px solid #ccc;
    }
    /* td-2: Heim-Spieler — volle Breite */
    .sb-table tr.sb-match td:nth-child(2) {
        order: 3;
        flex: 1 1 100%;
        display: grid;
        grid-template-columns: 1.5em 1fr 4rem;
        gap: 0.4rem;
        align-items: center;
    }
    .sb-table tr.sb-match td:nth-child(2)::before {
        content: "H";
        font-size: 0.7rem;
        font-weight: 700;
        color: var(--ink-soft);
        text-align: center;
        background: var(--paper-2);
        border-radius: 50%;
        width: 1.5em;
        height: 1.5em;
        line-height: 1.5em;
    }
    /* td-3: Gast-Spieler */
    .sb-table tr.sb-match td:nth-child(3) {
        order: 4;
        flex: 1 1 100%;
        display: grid;
        grid-template-columns: 1.5em 1fr 4rem;
        gap: 0.4rem;
        align-items: center;
    }
    .sb-table tr.sb-match td:nth-child(3)::before {
        content: "G";
        font-size: 0.7rem;
        font-weight: 700;
        color: var(--ink-soft);
        text-align: center;
        background: var(--paper-2);
        border-radius: 50%;
        width: 1.5em;
        height: 1.5em;
        line-height: 1.5em;
    }
    .sb-table tr.sb-match td:nth-child(2) .sb-name,
    .sb-table tr.sb-match td:nth-child(3) .sb-name {
        width: 100% !important;
    }
    .sb-table tr.sb-match td:nth-child(2) .sb-itn,
    .sb-table tr.sb-match td:nth-child(3) .sb-itn {
        margin-left: 0;
        width: 100%;
    }
    /* Position-Hinweise / source-Tags + Kandidaten erhalten eine eigene Reihe */
    .sb-table tr.sb-match .sb-src,
    .sb-table tr.sb-match .sb-cands {
        grid-column: 1 / -1;
    }

    /* td-4, td-5, td-6: Sätze (jeweils zwei kleine Inputs) — nebeneinander */
    .sb-table tr.sb-match td.sb-set {
        order: 5;
        flex: 0 0 auto;
        display: flex;
        gap: 0.18rem;
        align-items: center;
    }
    .sb-table tr.sb-match td.sb-set::before {
        content: "S" attr(data-set-nr);
        font-size: 0.65rem;
        font-weight: 700;
        color: var(--ink-soft);
        margin-right: 0.25rem;
    }
    .sb-set input {
        width: 32px !important;
        font-size: 0.85rem;
        padding: 0.3rem 0.15rem;
    }
    /* Kandidaten kompakter */
    .sb-cands { margin-top: 0.3rem; gap: 0.25rem; }
    .sb-cand { font-size: 0.7rem; padding: 0.2rem 0.45rem; }

    /* Page-Head kompakter */
    .sb-live-score { font-size: 0.85rem; padding: 0.4rem 0.8rem; }
    .sb-live-score strong { font-size: 1.2rem; }

    /* Doppel-Empfehlung */
    .sb-doppel-rec { padding: 0.9rem 1rem; margin: 1rem 0; }
    .sb-doppel-tab { padding: 0.35rem 0.7rem; font-size: 0.85rem; }
    .sb-doppel-table { font-size: 0.8rem; }
    .sb-doppel-table th, .sb-doppel-table td { padding: 0.35rem 0.3rem; }
}

/* Spieler-Links + ITN-Klick-Links in Ranglisten → /spieler-matches */
.player-link, .itn-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted rgba(120,40,30,0.3);
    transition: all 0.15s;
}
.player-link:hover {
    color: var(--clay);
    border-bottom-color: var(--clay);
}
.itn-link:hover {
    color: var(--clay);
    border-bottom: 1px solid var(--clay);
}

/* News-Card: Featured-Variante + Bild-Einbindung */
.news-card--featured {
    border: 2px solid var(--clay);
    background: var(--clay-soft);
    position: relative;
}
.news-card--featured::before {
    content: "✨ Story";
    position: absolute;
    top: -0.7rem;
    left: 1.2rem;
    background: var(--clay);
    color: white;
    padding: 0.15rem 0.7rem;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    border-radius: 4px;
    text-transform: uppercase;
}
.news-image {
    margin: 0.8rem 0 1rem;
}
.news-image img {
    width: 100%;
    max-width: 540px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
