/* Jeremy Dust – Mannschaftskasse (öffentliche Subdomain) */

:root {
    --gold: #c6a24e;
    --gold-dark: #a8872e;
    --gold-light: #f9f3e5;
    --dark: #1a1a1a;
    --text: #1a1a1a;
    --muted: #777777;
    --bg: #faf8f4;
    --white: #ffffff;
    --border: rgba(0, 0, 0, 0.08);
    --pos: #2e7d32;
    --neg: #c0392b;
    --radius: 14px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Topbar ─────────────────────────────────────────── */
.topbar {
    background: var(--dark);
    color: var(--white);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand { text-decoration: none; line-height: 1.1; display: flex; flex-direction: column; }
.brand-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--gold); }
.brand-sub { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.back { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.9rem; }
.back:hover { color: var(--white); }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 56px 0 32px;
}
.hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; }
.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
}
.hero-balance {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.8rem, 9vw, 4.2rem);
    font-weight: 700;
    color: var(--gold-dark);
    line-height: 1.1;
    margin: 6px 0;
}
.hero-balance.neg { color: var(--neg); }
.hero-stand { font-size: 0.85rem; color: var(--muted); }
.lead {
    max-width: 620px;
    margin: 18px auto 0;
    color: #555;
    font-size: 0.98rem;
}

/* ─── Season pills ───────────────────────────────────── */
.seasons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 8px 0 28px;
}
.pill {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.15s;
}
.pill:hover { border-color: var(--gold); }
.pill.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

/* ─── KPI cards ──────────────────────────────────────── */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.kpi {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 18px;
    text-align: center;
}
.kpi-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}
.kpi-val.pos { color: var(--pos); }
.kpi-val.neg { color: var(--neg); }
.kpi-label { font-weight: 600; margin-top: 4px; }
.kpi-note { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

/* ─── Ledger table ───────────────────────────────────── */
.ledger { margin-bottom: 48px; }
.ledger h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 14px;
}
.ledger h2 .muted { color: var(--muted); font-weight: 500; font-size: 1rem; }
.empty {
    background: var(--white);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    color: var(--muted);
}
.table-scroll {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
thead th {
    background: var(--gold-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold-dark);
    font-weight: 700;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fcfaf5; }
.zweck { font-weight: 500; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.num { font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
td.num.pos { color: var(--pos); }
td.num.neg { color: var(--neg); }
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.tag-in  { background: #e7f3e8; color: var(--pos); }
.tag-out { background: var(--gold-light); color: var(--gold-dark); }

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 28px 0;
    text-align: center;
}
.foot-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.foot-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.9rem; }
.foot-links a:hover { color: var(--gold); }
.copy { font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ─── Responsive: Tabelle als Karten ─────────────────── */
@media (max-width: 600px) {
    .cards { grid-template-columns: 1fr; }
    thead { display: none; }
    table, tbody, tr, td { display: block; width: 100%; }
    tbody tr {
        padding: 12px 16px;
        border-bottom: 1px solid var(--border);
    }
    tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 4px 0;
        border: none;
    }
    tbody td[data-label]::before {
        content: attr(data-label);
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--muted);
        font-weight: 700;
    }
    td.num { text-align: right; }
}
