/* ==========================================================================
   PlayerVW — "Eishalle bei Nacht"
   Dunkles Eis-Blau, Neon-Cyan-Akzent, Glas-Karten. Light-Mode über html[data-theme=light].
   ========================================================================== */

:root {
    --bg: #050a14;
    --bg-2: #0a1426;
    --surface: rgba(148, 197, 255, 0.045);
    --surface-2: rgba(148, 197, 255, 0.08);
    --surface-solid: #0d182c;
    --border: rgba(148, 197, 255, 0.13);
    --border-strong: rgba(148, 197, 255, 0.25);
    --text: #e7eefb;
    --muted: #8397b6;
    --accent: #38bdf8;
    --accent-2: #22d3ee;
    --accent-3: #818cf8;
    --accent-glow: rgba(56, 189, 248, 0.35);
    --success: #34d399;
    --warn: #fbbf24;
    --danger: #fb7185;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Barlow Condensed", "Inter", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    --sidebar-w: 256px;
    color-scheme: dark;
}

html[data-theme="light"] {
    --bg: #eef3fa;
    --bg-2: #ffffff;
    --surface: rgba(255, 255, 255, 0.75);
    --surface-2: rgba(10, 40, 90, 0.05);
    --surface-solid: #ffffff;
    --border: rgba(15, 50, 100, 0.10);
    --border-strong: rgba(15, 50, 100, 0.22);
    --text: #0c1a2e;
    --muted: #5b6d88;
    --accent: #0284c7;
    --accent-2: #0891b2;
    --accent-3: #6366f1;
    --accent-glow: rgba(2, 132, 199, 0.25);
    --success: #059669;
    --warn: #d97706;
    --danger: #e11d48;
    --shadow: 0 18px 40px -22px rgba(15, 40, 80, 0.35);
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(56, 189, 248, 0.14), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(129, 140, 248, 0.12), transparent 60%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

html[data-theme="light"] body::before {
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(56, 189, 248, 0.18), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(129, 140, 248, 0.12), transparent 60%),
        linear-gradient(180deg, #eef3fa 0%, #f8fbff 100%);
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: 2.3rem; letter-spacing: 0.01em; }
h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; }
h3 { font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
p { margin: 0.25rem 0; }
code { font-family: var(--mono); font-size: 0.85em; background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 6px; }
small, .small { font-size: 0.82rem; }

.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.88em; letter-spacing: 0.02em; }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warn { color: var(--warn); }
.text-danger { color: var(--danger); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.grow { flex: 1; }
.mt-2 { margin-top: 0.75rem; }
.mt-3 { margin-top: 1.25rem; }
.mb-2 { margin-bottom: 0.75rem; }
.mb-3 { margin-bottom: 1.25rem; }
.span-2 { grid-column: span 2; }
.ellipsis { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 0.9rem; }
.icon { flex-shrink: 0; }

.glass {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

/* ── Shell ───────────────────────────────────────────────────────────────── */

.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0.9rem;
    border-right: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(10, 20, 38, 0.85), rgba(5, 10, 20, 0.85));
    backdrop-filter: blur(16px);
    z-index: 40;
}

html[data-theme="light"] .sidebar { background: rgba(255, 255, 255, 0.85); }

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0 0.5rem 1.25rem;
}
.brand-lg { font-size: 1.9rem; padding: 0 0 1rem; }
.brand-accent { color: var(--accent); }
.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    color: #03121f;
    background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
    box-shadow: 0 6px 20px -6px var(--accent-glow);
}

.nav { display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.nav-section { margin: 1.1rem 0.75rem 0.35rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active {
    color: var(--text);
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.16), rgba(56, 189, 248, 0.02));
}
.nav-item.active::before {
    content: "";
    position: absolute;
    left: -0.9rem;
    top: 20%;
    bottom: 20%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}
.nav-item.active .icon { color: var(--accent); }

.sidebar-footer { border-top: 1px solid var(--border); padding-top: 0.9rem; display: flex; flex-direction: column; gap: 0.6rem; }
.me { display: flex; align-items: center; gap: 0.6rem; padding: 0 0.4rem; }
.me-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.me-text small { color: var(--muted); }
.sidebar-actions { display: flex; gap: 0.3rem; padding: 0 0.2rem; }

.main { min-width: 0; }
.content { padding: 2rem 2.25rem 4rem; max-width: 1400px; margin: 0 auto; }
.topbar-mobile { display: none; }
.nav-backdrop { display: none; }

@media (max-width: 960px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        left: 0;
        width: var(--sidebar-w);
        transform: translateX(-105%);
        transition: transform 0.25s ease;
    }
    .shell.nav-open .sidebar { transform: none; }
    .shell.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 30; }
    .topbar-mobile {
        position: sticky;
        top: 0;
        z-index: 20;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.6rem 1rem;
        background: color-mix(in srgb, var(--bg) 85%, transparent);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
    }
    .topbar-mobile .brand { padding: 0; font-size: 1.3rem; }
    .topbar-mobile .brand-mark { width: 30px; height: 30px; }
    .content { padding: 1.25rem 1rem 3rem; }
    h1 { font-size: 1.9rem; }
}

/* ── Page header ─────────────────────────────────────────────────────────── */

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.header-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.header-badges { margin-top: 0.4rem; display: flex; gap: 0.5rem; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.2rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--muted); font-size: 0.88rem; margin-bottom: 0.35rem; }
.back-link:hover { color: var(--accent); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 1.05rem;
    border-radius: 11px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.1s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
    color: var(--text);
    background: var(--surface-2);
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary {
    color: #03121f;
    background: linear-gradient(135deg, var(--accent-2), var(--accent) 45%, var(--accent-3));
    box-shadow: 0 8px 24px -10px var(--accent-glow);
}
html[data-theme="light"] .btn-primary { color: #fff; }
.btn-primary:hover:not(:disabled) { box-shadow: 0 10px 30px -8px var(--accent-glow); }
.btn-secondary { background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.3); color: var(--accent); }
.btn-secondary:hover:not(:disabled) { background: rgba(56, 189, 248, 0.2); }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.btn-danger-ghost:hover:not(:disabled) { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.82rem; border-radius: 9px; }
.btn-lg { padding: 0.85rem 1.2rem; font-size: 1rem; }
.btn .count {
    background: rgba(3, 18, 31, 0.25);
    padding: 0 0.45rem;
    border-radius: 999px;
    font-size: 0.78rem;
}
.btn-secondary .count { background: rgba(56, 189, 248, 0.2); }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.danger:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }

.link { color: var(--accent); display: inline-flex; align-items: center; gap: 0.3rem; background: none; border: none; padding: 0; font: inherit; cursor: pointer; }
.link:hover { text-decoration: underline; }

/* ── Forms ───────────────────────────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field > span { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.field-hint { color: var(--muted); }
.field-hint.warn { color: var(--warn); }

.input {
    width: 100%;
    padding: 0.62rem 0.8rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 55%, transparent);
    color: var(--text);
    font: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
html[data-theme="light"] .input { background: #fff; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.input:disabled { opacity: 0.6; }
select.input { cursor: pointer; }
textarea.input { resize: vertical; }
.input-sm { padding: 0.4rem 0.6rem; }
.input-xs { width: 80px; padding: 0.3rem 0.5rem; }
.input-xl { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; max-width: 200px; padding: 0.3rem 0.8rem; }

.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-right: 2.6rem; }
.input-group .icon-btn { position: absolute; right: 4px; }
.input-group .input-prefix { position: absolute; left: 0.75rem; color: var(--muted); display: flex; }
.input-group .input-prefix + .input { padding-left: 2.3rem; }
.input-row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }

.form-layout { display: flex; flex-direction: column; gap: 1.25rem; max-width: 900px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.form-actions { display: flex; gap: 0.6rem; align-items: center; }
@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
}

.switch-label { display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer; font-size: 0.9rem; user-select: none; }
.switch-label.compact { gap: 0; }
.switch {
    appearance: none;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    position: relative;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
    margin: 0;
}
.switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--muted);
    transition: transform 0.2s, background 0.2s;
}
.switch:checked { background: color-mix(in srgb, var(--success) 25%, transparent); border-color: var(--success); }
.switch:checked::after { transform: translateX(18px); background: var(--success); box-shadow: 0 0 10px var(--success); }

fieldset { border: none; padding: 0; margin: 0; min-width: 0; }

/* ── Cards & layout ──────────────────────────────────────────────────────── */

.card { padding: 1.25rem 1.35rem; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 960px) { .grid-2 { grid-template-columns: 1fr; } }

.alert { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.75rem 0.9rem; border-radius: 12px; font-size: 0.9rem; }
.alert-error { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }
.alert-info { background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.2); color: var(--text); }
.alert .icon { margin-top: 2px; }

/* ── Badges, chips, pills ────────────────────────────────────────────────── */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--surface-2);
    color: var(--muted);
    white-space: nowrap;
}
.badge .dot, .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.dot.live { background: var(--success); box-shadow: 0 0 8px var(--success); }
.badge-live { color: var(--success); background: color-mix(in srgb, var(--success) 13%, transparent); }
.badge-live .dot { animation: pulse 2s infinite; }
.badge-active { color: var(--success); background: color-mix(in srgb, var(--success) 13%, transparent); }
.badge-muted { color: var(--muted); }
.status-confirmed { color: var(--success); background: color-mix(in srgb, var(--success) 13%, transparent); }
.status-suggested { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); }
.status-pending { color: var(--muted); }
.status-over { color: var(--danger); background: color-mix(in srgb, var(--danger) 13%, transparent); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.chips { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.chip {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
}
.chip:hover { color: var(--text); }
.chip.active { color: var(--accent); border-color: rgba(56, 189, 248, 0.45); background: rgba(56, 189, 248, 0.1); }
.chip-count { font-size: 0.75rem; opacity: 0.8; }

.points-pill {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    height: 32px;
    padding: 0 0.55rem;
    border-radius: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}
.points-pill.confirmed { color: #03121f; background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 4px 14px -6px var(--accent-glow); }
html[data-theme="light"] .points-pill.confirmed { color: #fff; }
.points-pill.suggested { color: var(--warn); border: 1.5px dashed color-mix(in srgb, var(--warn) 60%, transparent); font-size: 1.05rem; }
.points-pill.pending { color: var(--muted); border: 1.5px dashed var(--border-strong); }

.avatar {
    --hue: 200;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    flex-shrink: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.03em;
    color: hsl(var(--hue) 90% 80%);
    background: linear-gradient(135deg, hsl(var(--hue) 70% 35% / 0.55), hsl(calc(var(--hue) + 40) 70% 30% / 0.35));
    border: 1px solid hsl(var(--hue) 80% 60% / 0.3);
    text-align: center;
}
html[data-theme="light"] .avatar { color: hsl(var(--hue) 70% 30%); background: hsl(var(--hue) 80% 90%); }
.avatar-sm { width: 32px; height: 32px; border-radius: 10px; font-size: 0.9rem; }
.avatar-lg { width: 96px; height: 96px; border-radius: 26px; font-size: 2.3rem; }

/* ── Tables ──────────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 600;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
}
.table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: var(--surface-2); }
.table th.text-right, .table td.text-right { text-align: right; }
.table th.text-center, .table td.text-center { text-align: center; }
.table-compact th, .table-compact td { padding: 0.45rem 0.6rem; font-size: 0.85rem; }
.row-archived { opacity: 0.55; }
.row-danger td { background: color-mix(in srgb, var(--danger) 6%, transparent); }

.player-cell { display: flex; align-items: center; gap: 0.75rem; }
.player-cell span { display: flex; flex-direction: column; line-height: 1.25; }
.player-cell:hover strong { color: var(--accent); }
.season-cell { display: inline-flex; gap: 0.5rem; align-items: center; }
.season-cell .points-pill { height: 28px; min-width: 36px; font-size: 1.05rem; }

@media (max-width: 760px) {
    .table-cards thead { display: none; }
    .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
    .table-cards tr { padding: 0.75rem 0.25rem; border-bottom: 1px solid var(--border); }
    .table-cards td { border: none; padding: 0.3rem 0.9rem; display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
    .table-cards td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 0.8rem; text-align: left; }
    .table-cards td:first-child::before { content: none; }
    .table-cards td.text-center { text-align: right; }
}

/* ── Toolbar & search ────────────────────────────────────────────────────── */

.toolbar {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    padding: 0.7rem 0.8rem;
    margin-bottom: 1rem;
    border-radius: 14px;
}
.search { position: relative; flex: 1; min-width: 220px; display: flex; align-items: center; }
.search .icon { position: absolute; left: 0.75rem; color: var(--muted); }
.search .input { padding-left: 2.3rem; }

/* ── Budget ring ─────────────────────────────────────────────────────────── */

.budget-ring { position: relative; width: var(--size); height: var(--size); flex-shrink: 0; }
.budget-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-track { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.ring-value {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    filter: drop-shadow(0 0 6px var(--ring-glow, var(--accent-glow)));
}
.state-ok .ring-stop-a { stop-color: var(--accent-2); }
.state-ok .ring-stop-b { stop-color: var(--accent-3); }
.state-tight { --ring-glow: rgba(251, 191, 36, 0.45); }
.state-tight .ring-stop-a { stop-color: var(--warn); }
.state-tight .ring-stop-b { stop-color: #f97316; }
.state-over { --ring-glow: rgba(251, 113, 133, 0.55); }
.state-over .ring-stop-a { stop-color: var(--danger); }
.state-over .ring-stop-b { stop-color: #f43f5e; }
.state-over .ring-value-text { color: var(--danger); }

.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-value-text { font-family: var(--font-display); font-weight: 700; font-size: calc(var(--size) * 0.28); line-height: 0.95; }
.ring-max { color: var(--muted); font-size: calc(var(--size) * 0.075 + 4px); }
.ring-pending { margin-top: 0.2rem; color: var(--warn); font-size: calc(var(--size) * 0.055 + 4px); font-weight: 600; }
.budget-ring[style*="--size:92px"] .ring-pending { display: none; }

/* ── Dashboard ───────────────────────────────────────────────────────────── */

.hero {
    display: flex;
    gap: 2.25rem;
    align-items: center;
    padding: 1.75rem 2rem;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid rgba(56, 189, 248, 0.08);
    box-shadow: 0 0 0 40px rgba(56, 189, 248, 0.025), 0 0 0 80px rgba(56, 189, 248, 0.02);
    pointer-events: none;
}
.hero-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.hero-title { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; }
.hero-title h2 { font-size: 2.6rem; }
.hero-status { display: flex; gap: 0.5rem; align-items: center; color: var(--muted); font-size: 0.9rem; }
.hero-status.ok { color: var(--success); }
@media (max-width: 760px) {
    .hero { flex-direction: column; padding: 1.5rem 1.1rem; }
    .hero-title { align-items: center; }
}

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; }
.stat { display: flex; flex-direction: column; padding: 0.8rem 1rem; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--border); }
.stat-label { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1.1; }

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: none; }
.list-main { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.list-main a:hover strong { color: var(--accent); }

.season-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.season-bar-row { display: grid; grid-template-columns: 110px 1fr 80px; gap: 0.75rem; align-items: center; padding: 0.45rem 0.5rem; border-radius: 10px; }
.season-bar-row:hover { background: var(--surface-2); }
.season-bar-name { font-weight: 600; display: flex; align-items: center; gap: 0.4rem; }
.season-bar-value { text-align: right; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }

.bar { display: block; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar-fill.over { background: linear-gradient(90deg, var(--danger), #f43f5e); }

/* ── Seasons ─────────────────────────────────────────────────────────────── */

.season-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.1rem; }
.season-card { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; transition: transform 0.18s, border-color 0.18s; }
.season-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.season-card.current { border-color: rgba(52, 211, 153, 0.35); }
.season-card-head { display: flex; justify-content: space-between; align-items: flex-start; }
.season-card-head h2 { font-size: 2rem; margin-bottom: 0.35rem; }
.season-card-stats { display: flex; gap: 1rem; font-size: 0.88rem; color: var(--muted); }
.season-card-stats strong { color: var(--text); font-size: 1rem; }
.season-card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 0.84rem; border-top: 1px solid var(--border); padding-top: 0.75rem; color: var(--muted); }
.season-card-foot span { display: inline-flex; gap: 0.3rem; align-items: center; }
.season-preview { color: var(--muted); }
.season-preview strong { color: var(--accent); font-family: var(--font-display); font-size: 1.3rem; }

/* ── Roster ──────────────────────────────────────────────────────────────── */

.roster-layout { display: grid; grid-template-columns: 290px 1fr; gap: 1.25rem; align-items: start; }
.roster-summary { position: sticky; top: 1.25rem; padding: 1.5rem 1.25rem; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.summary-rows { width: 100%; display: flex; flex-direction: column; }
.summary-rows > div { display: flex; justify-content: space-between; padding: 0.45rem 0.1rem; border-bottom: 1px dashed var(--border); font-size: 0.9rem; }
.summary-rows > div:last-child { border-bottom: none; }
.summary-rows span { color: var(--muted); }
.summary-rows strong { font-family: var(--font-display); font-size: 1.2rem; }
.export-state { width: 100%; display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.7rem 0.8rem; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 0.85rem; }
.export-state.ok { color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); }
.export-state .icon { margin-top: 2px; }

.roster-main { min-width: 0; }
.roster-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; align-items: start; }
.roster-column { display: flex; flex-direction: column; gap: 0.5rem; }
.column-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding: 0 0.3rem 0.3rem; }
.column-title .muted { font-weight: 500; }
.column-points { margin-left: auto; color: var(--accent); font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.02em; }
.column-empty { padding: 1.25rem; text-align: center; border: 1px dashed var(--border); border-radius: 14px; font-size: 0.88rem; }

.roster-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.65rem 0.6rem 0.7rem;
    border-radius: 14px;
    box-shadow: none;
    transition: border-color 0.2s, transform 0.2s, opacity 0.2s, box-shadow 0.4s;
}
.roster-row:hover { border-color: var(--border-strong); }
.roster-row.busy { opacity: 0.5; pointer-events: none; }
.roster-row.highlight { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.roster-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.roster-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roster-name span { font-weight: 400; color: var(--muted); }
.roster-name:hover { color: var(--accent); }
.roster-row-main small { display: flex; gap: 0.3rem; align-items: center; }
.ep-tag { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.05em; color: var(--accent); border: 1px solid rgba(56, 189, 248, 0.4); border-radius: 5px; padding: 0 0.3rem; margin-left: 0.2rem; }
.points-btn { background: none; border: none; padding: 0; cursor: pointer; border-radius: 10px; }
.points-btn:hover .points-pill { transform: scale(1.06); }
.points-btn .points-pill { transition: transform 0.15s; }
.row-menu { display: flex; opacity: 0.35; transition: opacity 0.15s; }
.roster-row:hover .row-menu { opacity: 1; }

.danger-zone { margin-top: 2.5rem; display: flex; justify-content: flex-end; }


@media (max-width: 1180px) {
    .roster-columns { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .roster-layout { grid-template-columns: 1fr; }
    .roster-summary { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .summary-rows { max-width: 360px; }
    .row-menu { opacity: 1; }
}

/* ── Points dialog ───────────────────────────────────────────────────────── */

.points-dialog { display: grid; grid-template-columns: 1fr 260px; gap: 1.5rem; }
.suggestion-panel { display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.big-number { font-family: var(--font-display); font-weight: 700; font-size: 3.2rem; line-height: 1; color: var(--accent); min-width: 56px; text-align: center; }
.big-number.muted { color: var(--muted); }

.confirm-panel { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.1rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); align-self: start; }
.stepper { display: flex; align-items: center; gap: 0.4rem; }
.stepper .icon-btn { width: 44px; height: 44px; border: 1px solid var(--border); }
.stepper-input { text-align: center; font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; padding: 0.2rem; -moz-appearance: textfield; }
.stepper-input::-webkit-outer-spin-button, .stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.budget-preview { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; color: var(--muted); }
.budget-preview strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); }
.budget-preview.over strong, .budget-preview.over small { color: var(--danger); }

@media (max-width: 760px) {
    .points-dialog { grid-template-columns: 1fr; }
}

/* ── Player profile ──────────────────────────────────────────────────────── */

.profile { display: flex; gap: 1.75rem; padding: 1.75rem; align-items: flex-start; }
.profile-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.profile-main h1 { font-size: 2.6rem; }
.profile-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; margin: 0.4rem 0 0; }
.facts dt { color: var(--muted); font-size: 0.78rem; display: flex; gap: 0.35rem; align-items: center; }
.facts dd { margin: 0.1rem 0 0; font-weight: 600; }
.notes { color: var(--muted); white-space: pre-wrap; border-left: 3px solid var(--border-strong); padding-left: 0.75rem; }
.profile-points { display: flex; flex-direction: column; align-items: center; padding: 1rem 1.25rem; border-radius: 16px; background: var(--surface-2); }
.profile-points .big-number { font-size: 4rem; }
@media (max-width: 760px) {
    .profile { flex-direction: column; align-items: center; text-align: center; }
    .profile-tags { justify-content: center; }
}

.history-chart { display: flex; gap: 0.75rem; align-items: flex-end; height: 200px; padding: 0.5rem 0.25rem 0; overflow-x: auto; }
.history-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.35rem; height: 100%; min-width: 64px; flex: 1; max-width: 110px; }
.history-bar {
    width: 100%;
    max-width: 52px;
    border-radius: 10px 10px 4px 4px;
    background: linear-gradient(180deg, var(--accent-2), var(--accent-3));
    box-shadow: 0 0 18px -6px var(--accent-glow);
    transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.history-bar.inactive { background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: none; }
.history-bar.pending { background: transparent; border: 1.5px dashed var(--warn); box-shadow: none; }
.history-value { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.history-label { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.history-col:hover .history-label { color: var(--accent); }
.legend { display: flex; gap: 1.1rem; margin-top: 0.9rem; font-size: 0.78rem; color: var(--muted); flex-wrap: wrap; }
.legend span { display: inline-flex; gap: 0.35rem; align-items: center; }
.legend-swatch { width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(180deg, var(--accent-2), var(--accent-3)); }
.legend-swatch.inactive { background: var(--surface-2); border: 1px solid var(--border-strong); }
.legend-swatch.pending { background: transparent; border: 1.5px dashed var(--warn); }

/* ── Player form ─────────────────────────────────────────────────────────── */

.ep-card { border-color: rgba(56, 189, 248, 0.3); background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(129, 140, 248, 0.05)); }
.ep-card > p { margin-bottom: 0.8rem; font-size: 0.9rem; }
.ep-preview { margin-top: 0.9rem; display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem; border-radius: 12px; background: var(--surface-2); }
.ep-preview img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; }
.ep-preview > div { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }

/* ── Settings ────────────────────────────────────────────────────────────── */

.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1.25rem; }
@media (max-width: 1000px) { .settings-layout { grid-template-columns: 1fr; } }
.highlight-card { background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(129, 140, 248, 0.06)); border-color: rgba(56, 189, 248, 0.3); }
.big-setting { display: flex; flex-direction: column; gap: 0.9rem; }
.big-setting p { font-size: 0.88rem; }

/* ── Modal ───────────────────────────────────────────────────────────────── */

.modal-backdrop { position: fixed; inset: 0; background: rgba(2, 6, 14, 0.65); backdrop-filter: blur(4px); z-index: 90; animation: fade 0.15s ease; }
.modal-shell { position: fixed; inset: 0; display: grid; place-items: center; z-index: 91; padding: 1rem; pointer-events: none; }
.modal-card {
    pointer-events: auto;
    width: min(520px, 100%);
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    background: var(--surface-solid);
    animation: pop 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-wide .modal-card { width: min(920px, 100%); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.2rem 1.35rem 0.6rem; }
.modal-header h2 { font-size: 1.55rem; }
.modal-body { padding: 0.6rem 1.35rem 1.2rem; overflow-y: auto; }
.modal-footer { display: flex; gap: 0.6rem; justify-content: flex-end; align-items: center; padding: 0.9rem 1.35rem; border-top: 1px solid var(--border); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

.picker-actions { display: flex; gap: 1rem; margin-bottom: 0.5rem; }
.picker-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.5rem; max-height: 50vh; overflow-y: auto; padding: 2px; }
.picker-item { display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0.7rem; border-radius: 12px; border: 1px solid var(--border); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.picker-item:hover { border-color: var(--border-strong); }
.picker-item.picked { border-color: var(--accent); background: rgba(56, 189, 248, 0.08); }
.picker-item input { accent-color: var(--accent); width: 16px; height: 16px; }
.picker-item span { display: flex; flex-direction: column; line-height: 1.25; }

/* ── Toasts ──────────────────────────────────────────────────────────────── */

.toast-stack { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 200; display: flex; flex-direction: column; gap: 0.5rem; max-width: min(420px, calc(100vw - 2rem)); }
.toast {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.8rem 1rem;
    border-radius: 13px;
    background: var(--surface-solid);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    cursor: pointer;
    animation: slide-in 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.toast .icon { margin-top: 2px; }
.toast-success { border-left: 3px solid var(--success); }
.toast-success .icon { color: var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-error .icon { color: var(--danger); }
.toast-info .icon { color: var(--accent); }
@keyframes slide-in { from { opacity: 0; transform: translateX(20px); } }

/* ── Empty & loading ─────────────────────────────────────────────────────── */

.empty-state { text-align: center; padding: 3.5rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.empty-icon { width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); margin-bottom: 0.5rem; }
.empty-text { color: var(--muted); }

.page-loading { display: grid; place-items: center; min-height: 40vh; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface-2); border-top-color: var(--accent); animation: spin 0.8s linear infinite; display: inline-block; }
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Auth screen ─────────────────────────────────────────────────────────── */

.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; position: relative; overflow: hidden; }
.auth-card { width: min(420px, 100%); padding: 2.2rem 2rem; display: flex; flex-direction: column; gap: 1rem; position: relative; z-index: 1; }
.auth-card h1 { font-size: 2rem; }
.auth-hint { display: flex; gap: 0.4rem; align-items: center; justify-content: center; color: var(--muted); font-size: 0.78rem; }

/* Eisfläche im Hintergrund: Mittellinie, blaue Linien, Bullykreis */
.auth-rink { position: absolute; inset: -10%; pointer-events: none; opacity: 0.6; }
.rink-line { position: absolute; top: 0; bottom: 0; width: 6px; }
.rink-line.red { left: 50%; background: rgba(251, 113, 133, 0.25); box-shadow: 0 0 30px rgba(251, 113, 133, 0.25); }
.rink-line.blue { background: rgba(56, 189, 248, 0.22); box-shadow: 0 0 30px rgba(56, 189, 248, 0.3); width: 12px; }
.rink-line.blue.left { left: 28%; }
.rink-line.blue.right { right: 28%; }
.rink-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 520px;
    height: 520px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 5px solid rgba(56, 189, 248, 0.14);
    animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.04); border-color: rgba(56, 189, 248, 0.22); } }

/* ── Blazor defaults ─────────────────────────────────────────────────────── */

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 1.25rem;
    background: var(--danger);
    color: #fff;
}
#blazor-error-ui .reload { color: #fff; text-decoration: underline; margin-left: 0.5rem; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 1rem; top: 0.6rem; }

.loading-progress { position: relative; display: block; width: 7rem; height: 7rem; margin: 30vh auto 1rem; }
.loading-progress circle { fill: none; stroke: rgba(148, 197, 255, 0.12); stroke-width: 0.5rem; transform-origin: 50% 50%; transform: rotate(-90deg); }
.loading-progress circle:last-child {
    stroke: #38bdf8;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}
.loading-progress-text { position: absolute; text-align: center; font-weight: 600; inset: calc(30vh + 3rem) 0 auto 0; color: #8397b6; }
.loading-progress-text::after { content: var(--blazor-load-percentage-text, "Lädt"); }

h1:focus { outline: none; }

/* ── Punkte-Dialog: Info-Kacheln ─────────────────────────────────────────── */
.info-tile { display: flex; gap: 0.8rem; padding: 0.9rem 1rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.info-tile > .icon { color: var(--accent); margin-top: 2px; }
.info-tile p { font-size: 0.9rem; }
.small-number { font-size: 2rem; min-width: 0; }

/* ── Vergleich zur Vorsaison ─────────────────────────────────────────────── */
.compare { width: 100%; display: flex; flex-direction: column; gap: 0.2rem; padding: 0.75rem 0.9rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); transition: border-color 0.15s; }
.compare:hover { border-color: var(--border-strong); }
.compare-line { display: flex; align-items: center; gap: 0.35rem; font-family: var(--font-display); font-size: 1.5rem; }
.compare-line .icon { color: var(--muted); }
.delta { font-family: var(--font); font-size: 0.72rem; font-weight: 700; padding: 0.05rem 0.4rem; border-radius: 6px; white-space: nowrap; }
.compare-line .delta { font-size: 0.85rem; margin-left: 0.2rem; }
.delta.up { color: var(--danger); background: color-mix(in srgb, var(--danger) 13%, transparent); }
.delta.down { color: var(--success); background: color-mix(in srgb, var(--success) 13%, transparent); }
.delta.same { color: var(--muted); background: var(--surface-2); }
.delta.new { color: var(--accent); background: rgba(56, 189, 248, 0.12); text-transform: uppercase; letter-spacing: 0.05em; }

.departures { margin-top: 1.5rem; }
.departure-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.5rem; }
.departure { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.7rem; border-radius: 14px; box-shadow: none; opacity: 0.8; transition: opacity 0.15s, border-color 0.15s; }
.departure:hover { opacity: 1; border-color: var(--border-strong); }
.departure-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.points-pill.ghost { color: var(--muted); border: 1.5px solid var(--border-strong); text-decoration: line-through; text-decoration-thickness: 1.5px; }

/* ── Mobile Tab-Leiste ───────────────────────────────────────────────────── */
.tabbar { display: none; }

@media (max-width: 960px) {
    .tabbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 25;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom));
        background: color-mix(in srgb, var(--bg) 88%, transparent);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-top: 1px solid var(--border);
    }
    .tab {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.15rem;
        padding: 0.35rem 0;
        border: none;
        background: none;
        color: var(--muted);
        font: inherit;
        font-size: 0.68rem;
        font-weight: 600;
        cursor: pointer;
        border-radius: 12px;
        -webkit-tap-highlight-color: transparent;
    }
    .tab.active { color: var(--accent); }
    .tab.active .icon { filter: drop-shadow(0 0 6px var(--accent-glow)); }
    .topbar-mobile { padding-top: calc(0.6rem + env(safe-area-inset-top)); }
    .content { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
    .toast-stack { bottom: calc(5.5rem + env(safe-area-inset-bottom)); left: 1rem; right: 1rem; max-width: none; }
    .sidebar { padding-top: calc(1.25rem + env(safe-area-inset-top)); padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}

/* ── Handy-Layout ────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
    /* iOS zoomt bei Eingabefeldern < 16px hinein */
    .input, select.input, textarea.input { font-size: 16px; }
    h1 { font-size: 1.7rem; }
    .page-header { margin-bottom: 1rem; align-items: flex-start; }
    .page-header > div:first-child { flex: 1; min-width: 0; }
    .header-actions { width: 100%; }
    .header-actions .btn { flex: 1; }
    .back-link { margin-bottom: 0.2rem; }
    .btn { min-height: 44px; }
    .btn-sm { min-height: 36px; }
    .icon-btn { width: 40px; height: 40px; }

    /* Kader: kompakte Übersicht statt großem Ring */
    .roster-summary {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0.9rem 1rem;
        padding: 1rem;
        align-items: center;
    }
    .roster-summary .budget-ring { --size: 124px !important; }
    .roster-summary .ring-pending { display: none; }
    .roster-summary .summary-rows { max-width: none; }
    .roster-summary .summary-rows > div { padding: 0.25rem 0; font-size: 0.82rem; }
    .roster-summary .summary-rows strong { font-size: 1.05rem; }
    .roster-summary .compare, .roster-summary .export-state { grid-column: 1 / -1; }
    .toolbar { padding: 0.5rem; gap: 0.5rem; }
    .toolbar .search { min-width: 0; flex-basis: 100%; }
    /* Filter umbrechen statt seitlich scrollen */
    .toolbar .chips { flex-wrap: wrap; }
    .chip { padding: 0.45rem 0.85rem; }

    .roster-row { gap: 0.6rem; padding: 0.55rem 0.5rem 0.55rem 0.6rem; }
    .roster-row .avatar { width: 36px; height: 36px; }
    .roster-name { font-size: 0.95rem; }
    .roster-row-main small { flex-wrap: wrap; row-gap: 0.15rem; }
    .points-pill { min-width: 46px; height: 38px; font-size: 1.35rem; }
    .row-menu .icon-btn { width: 32px; height: 32px; }
    .departure-list { grid-template-columns: 1fr; }
    .danger-zone { justify-content: center; }

    /* Dashboard */
    .hero { gap: 1rem; padding: 1.25rem 1rem; }
    .hero .budget-ring { --size: 170px !important; }
    .hero-title h2 { font-size: 2rem; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .stat { padding: 0.6rem 0.75rem; }
    .stat-value { font-size: 1.6rem; }
    .season-bar-row { grid-template-columns: 86px 1fr 64px; gap: 0.5rem; }

    /* Spielerliste als Karten */
    .table-cards tr { position: relative; padding: 0.8rem 0.4rem; }
    .table-cards td { padding: 0.15rem 0.6rem; font-size: 0.88rem; }
    .table-cards td:first-child { padding-bottom: 0.4rem; }
    .table-cards td.text-right:last-child { position: absolute; top: 0.7rem; right: 0.4rem; width: auto; padding: 0; }
    .table-cards td[data-label="Eliteprospects"]:has(.muted), .table-cards td[data-label="Steuernummer"]:not(:has(*)) { display: none; }

    /* Dialoge als Bottom-Sheet */
    .modal-shell { place-items: end stretch; padding: 0; }
    .modal-card, .modal-wide .modal-card {
        width: 100%;
        max-height: 92vh;
        border-radius: 22px 22px 0 0;
        border-bottom: none;
        animation: sheet-up 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .modal-card::before { content: ""; width: 40px; height: 4px; border-radius: 4px; background: var(--border-strong); margin: 0.6rem auto 0; }
    .modal-header { padding: 0.6rem 1rem 0.4rem; }
    .modal-header h2 { font-size: 1.3rem; }
    .modal-body { padding: 0.4rem 1rem 1rem; }
    .modal-footer { padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); flex-wrap: wrap; }
    .modal-footer .btn-primary { flex: 1; }
    .confirm-panel { order: -1; }
    .stepper .icon-btn { width: 52px; height: 52px; }
    .picker-list { grid-template-columns: 1fr; max-height: 55vh; }

    .profile { padding: 1.25rem; gap: 1rem; }
    .profile-main h1 { font-size: 2rem; }
    .facts { grid-template-columns: 1fr 1fr; text-align: left; }
    .settings-layout { gap: 0.9rem; }
}
@keyframes sheet-up { from { transform: translateY(100%); } }

/* ── Handy-Feinschliff ───────────────────────────────────────────────────── */
@media (max-width: 760px) {
    /* Ring + Kennzahlen nebeneinander, Vergleich und Export-Status darunter */
    .roster-summary .budget-ring { order: 1; }
    .roster-summary .summary-rows { order: 2; }
    .roster-summary .compare { order: 3; }
    .roster-summary .export-state { order: 4; }

    /* Spielerkarten: Label links, Wert rechts, mehrere Inline-Elemente bleiben zusammen */
    .table-cards td { display: block; text-align: right; }
    .table-cards td[data-label]::before { float: left; margin-right: 1rem; }
    .table-cards td:first-child { text-align: left; padding-right: 3rem; }
    .table-cards td:first-child .player-cell span { align-items: flex-start; }
}

/* ── Teamname unter dem Logo ─────────────────────────────────────────────── */
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-team {
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
    margin-top: 0.2rem;
}
.topbar-mobile .brand-team { font-size: 0.68rem; max-width: 60vw; }

/* ── Aktiv / nicht aktiv auf einen Blick ─────────────────────────────────── */
.roster-row.is-active {
    border: 1.5px solid color-mix(in srgb, var(--success) 55%, transparent);
    background: linear-gradient(90deg, color-mix(in srgb, var(--success) 9%, transparent), var(--surface) 55%);
    box-shadow: inset 3px 0 0 var(--success);
}
.roster-row.is-active:hover { border-color: var(--success); }
.roster-row.is-inactive {
    border: 1.5px solid color-mix(in srgb, var(--muted) 45%, transparent);
    background: var(--surface);
}
.roster-row.is-inactive .roster-name, .roster-row.is-inactive .avatar { opacity: 0.75; }
.roster-row.is-inactive:hover { border-color: var(--muted); }
.departure { border: 1.5px solid color-mix(in srgb, var(--danger) 45%, transparent); }
.roster-row.highlight { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

@media (max-width: 960px) {
    .tabbar.tabbar-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ── Spieler-Kaderansicht ────────────────────────────────────────────────── */
.team-hero { display: flex; align-items: center; gap: 1.5rem; padding: 1.25rem 1.5rem; }
.team-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; flex: 1; }
.team-hero-stats > div { display: flex; flex-direction: column; }
.team-hero-stats strong { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; }
.team-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0.5rem; }
.team-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.8rem; border-radius: 14px; box-shadow: none; }
.team-row.is-confirmed { border: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.team-row.is-open { border: 1.5px dashed color-mix(in srgb, var(--warn) 45%, transparent); }
.team-row.is-me { box-shadow: 0 0 0 2px var(--success), 0 6px 20px -8px var(--success); }
.team-name { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.4rem; line-height: 1.3; }
.team-name small { flex-basis: 100%; }
.team-name span:not(.badge) { color: var(--muted); }
.team-points { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.team-points small { display: inline-flex; align-items: center; gap: 0.2rem; font-size: 0.7rem; font-weight: 600; }
@media (max-width: 760px) {
    .team-hero { padding: 1rem; gap: 1rem; }
    .team-hero .budget-ring { --size: 110px !important; }
    .team-hero-stats { grid-template-columns: 1fr; gap: 0.35rem; }
    .team-hero-stats strong { font-size: 1.3rem; }
    .team-list { grid-template-columns: 1fr; }
}

/* ── Audit-Log ───────────────────────────────────────────────────────────── */
.audit-list { display: flex; flex-direction: column; gap: 0.5rem; }
.audit-item { padding: 0.7rem 0.9rem; border-radius: 12px; box-shadow: none; }
.audit-item header { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.9rem; }
.audit-angelegt { color: var(--success); background: color-mix(in srgb, var(--success) 13%, transparent); }
.audit-geändert { color: var(--accent); background: rgba(56, 189, 248, 0.12); }
.audit-gelöscht { color: var(--danger); background: color-mix(in srgb, var(--danger) 13%, transparent); }
.audit-login { color: var(--muted); }
.audit-changes { list-style: none; margin: 0.5rem 0 0; padding: 0.5rem 0.7rem; border-radius: 10px; background: var(--surface-2); display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.84rem; }
.audit-changes li { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.audit-field { color: var(--muted); min-width: 110px; }
.audit-old { text-decoration: line-through; color: var(--muted); }
.audit-new { font-weight: 600; }

/* ── Handynummer: Vorwahl + gruppierte Nummer ────────────────────────────── */
.phone-input { display: flex; gap: 0.4rem; }
.phone-cc { flex: 0 0 auto; width: auto; min-width: 104px; }
.phone-number { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* ── Ansichtsmodus ("Ansicht als …") ─────────────────────────────────────── */
.impersonation-banner {
    position: sticky;
    top: 0;
    z-index: 22;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding: 0.55rem 1.25rem;
    color: #1a1200;
    background: repeating-linear-gradient(135deg, #fbbf24 0 14px, #f59e0b 14px 28px);
    font-size: 0.9rem;
    box-shadow: 0 4px 18px -6px rgba(245, 158, 11, 0.6);
}
.impersonation-banner > span { flex: 1; min-width: 0; }
.impersonation-banner small { opacity: 0.75; }
.impersonation-banner .btn { background: #1a1200; color: #fbbf24; }
@media (max-width: 960px) {
    .impersonation-banner { top: calc(3.3rem + env(safe-area-inset-top)); padding: 0.5rem 1rem; }
}

.btn-suggest { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.btn-suggest:hover:not(:disabled) { background: color-mix(in srgb, var(--warn) 26%, transparent); }

/* ── Spielseite / Größenauswahl ──────────────────────────────────────────── */
.segmented, .size-picker { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.segmented button, .size-picker button {
    min-width: 52px;
    min-height: 42px;
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 55%, transparent);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.segmented button { flex: 1; max-width: 180px; }
.segmented button:hover, .size-picker button:hover { border-color: var(--border-strong); }
.segmented button.active, .size-picker button.active {
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
fieldset:disabled .segmented button, fieldset:disabled .size-picker button { cursor: default; }

/* ══ Spiele ══════════════════════════════════════════════════════════════════ */

.team-logo {
    --logo-size: 44px;
    width: var(--logo-size);
    height: var(--logo-size);
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #ffffff, #dfe8f3);
    box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    overflow: hidden;
}
.team-logo img { width: 84%; height: 84%; object-fit: contain; }
.team-logo-fallback { font-family: var(--font-display); font-weight: 700; color: #0b3d6b; font-size: calc(var(--logo-size) * 0.38); }

/* Paarung */
.matchup { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.75rem; }
.matchup-team { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; text-align: center; min-width: 0; }
.matchup-name { font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
.matchup-name.own { color: var(--accent); }
.matchup-vs { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; }
.matchup-lg .matchup-name { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: 0.01em; }
.matchup-lg .matchup-vs { font-size: 1.8rem; }

/* Spiel-Hero / nächstes Spiel */
.game-hero, .next-game { padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 1.1rem; position: relative; overflow: hidden; }
.game-hero::before, .next-game::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(600px 220px at 50% 0%, rgba(56, 189, 248, 0.14), transparent 70%);
}
.game-hero.home::before, .next-game.home::before { background: radial-gradient(600px 220px at 50% 0%, rgba(52, 211, 153, 0.14), transparent 70%); }
.game-hero-meta, .next-game-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; position: relative; }
.next-game-head .eyebrow { display: inline-flex; gap: 0.35rem; align-items: center; margin: 0; }
.countdown { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--warn); }
.next-game-link { position: relative; }
.game-hero-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.2rem; color: var(--muted); font-size: 0.9rem; position: relative; }
.game-hero-info span { display: inline-flex; align-items: center; gap: 0.35rem; }
.game-hero-rsvp { position: relative; }
.my-slot { text-align: center; color: var(--success); display: flex; justify-content: center; gap: 0.35rem; align-items: center; position: relative; }
.next-game-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; position: relative; }
.next-game-stats > div { display: flex; flex-direction: column; align-items: center; padding: 0.55rem; border-radius: 12px; background: var(--surface-2); }
.next-game-stats strong { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; }
.next-game-actions { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; position: relative; }

/* Zu-/Absage */
.rsvp { display: flex; gap: 0.35rem; justify-content: center; position: relative; }
.rsvp-btn {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.4rem 0.7rem; border-radius: 10px; border: 1.5px solid var(--border-strong);
    background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 0.82rem; cursor: pointer;
    transition: all 0.15s;
}
.rsvp-btn.yes:hover { border-color: var(--success); color: var(--success); }
.rsvp-btn.no:hover { border-color: var(--danger); color: var(--danger); }
.rsvp-btn.yes.active { background: var(--success); border-color: var(--success); color: #03210f; box-shadow: 0 6px 18px -6px var(--success); }
.rsvp-btn.no.active { background: var(--danger); border-color: var(--danger); color: #2a0008; box-shadow: 0 6px 18px -6px var(--danger); }
.rsvp-lg { gap: 0.7rem; }
.rsvp-lg .rsvp-btn { flex: 1; max-width: 220px; justify-content: center; padding: 0.85rem 1rem; font-size: 1.02rem; border-radius: 14px; }
.rsvp-note { display: flex; gap: 0.5rem; max-width: 460px; margin: 0 auto; width: 100%; position: relative; }
.rsvp-final { font-weight: 700; font-size: 0.8rem; padding: 0.2rem 0.6rem; border-radius: 8px; }
.rsvp-final.status-yes { color: var(--success); background: color-mix(in srgb, var(--success) 14%, transparent); }
.rsvp-final.status-no { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
.rsvp-final.status-open { color: var(--muted); }

/* Spielliste */
.game-list { display: flex; flex-direction: column; gap: 0.5rem; }
.game-row { display: flex; align-items: center; gap: 0.85rem; padding: 0.6rem 0.75rem; border-radius: 14px; box-shadow: none; }
.game-row.home { box-shadow: inset 3px 0 0 var(--success); }
.game-row.away { box-shadow: inset 3px 0 0 var(--accent-3); }
.game-row.past { opacity: 0.55; }
.game-date {
    display: flex; flex-direction: column; align-items: center; min-width: 50px;
    padding: 0.3rem 0.2rem; border-radius: 10px; background: var(--surface-2); line-height: 1.05;
}
.game-dow { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.game-day { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; }
.game-mon { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 700; }
.game-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.game-opponent { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.game-opponent strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-main small { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.game-side { flex-shrink: 0; }
.game-counts { display: flex; gap: 0.55rem; font-weight: 700; font-size: 0.85rem; }

/* Kalender */
.calendar { padding: 1rem; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.calendar-head h2 { font-size: 1.5rem; text-transform: capitalize; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calendar-dow { text-align: center; font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; padding: 0.3rem 0; }
.calendar-day { min-height: 92px; border-radius: 10px; background: var(--surface-2); padding: 0.3rem; display: flex; flex-direction: column; gap: 0.25rem; }
.calendar-day.other { opacity: 0.35; }
.calendar-day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.calendar-num { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.calendar-day.has-game .calendar-num { color: var(--text); }
.calendar-game {
    display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 0.25rem 0.1rem;
    border-radius: 8px; font-size: 0.72rem; font-weight: 700; border: 1.5px solid transparent;
}
.calendar-game.home { background: color-mix(in srgb, var(--success) 16%, transparent); }
.calendar-game.away { background: color-mix(in srgb, var(--accent-3) 18%, transparent); }
.calendar-game.past { opacity: 0.55; }
.calendar-game.rsvp-yes { border-color: var(--success); }
.calendar-game.rsvp-no { border-color: var(--danger); }
.legend-swatch.home { background: color-mix(in srgb, var(--success) 40%, transparent); }
.legend-swatch.away { background: color-mix(in srgb, var(--accent-3) 45%, transparent); }
.legend-swatch.yes { background: transparent; border: 2px solid var(--success); }
.legend-swatch.no { background: transparent; border: 2px solid var(--danger); }

/* Zusagen-Liste */
.attendance-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.45rem; }
.attendance-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.65rem; border-radius: 12px; box-shadow: none; }
.attendance-row.att-yes { border-color: color-mix(in srgb, var(--success) 45%, transparent); }
.attendance-row.att-no { border-color: color-mix(in srgb, var(--danger) 40%, transparent); opacity: 0.8; }
.attendance-row.att-open { opacity: 0.7; border-style: dashed; }
.attendance-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.att-actions { display: flex; }
.att-actions .icon-btn.on-yes { color: var(--success); background: color-mix(in srgb, var(--success) 14%, transparent); }
.att-actions .icon-btn.on-no { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
.pos-dot {
    display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
    font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; background: var(--surface-2); color: var(--muted);
}
.pos-dot.pos-g { color: #fbbf24; background: rgba(251, 191, 36, 0.14); }
.pos-dot.pos-d { color: #38bdf8; background: rgba(56, 189, 248, 0.14); }
.pos-dot.pos-f { color: #a78bfa; background: rgba(167, 139, 250, 0.16); }

/* Linien */
.lineup { display: flex; flex-direction: column; gap: 0.9rem; }
.lineup-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.6rem 0.7rem; border-radius: 14px; box-shadow: none; }
.lineup-dirty { color: var(--warn); font-size: 0.85rem; display: flex; gap: 0.3rem; align-items: center; margin: -0.3rem 0 0; }
.lineup-stats { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.88rem; }
.lineup-group h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 0.4rem; font-weight: 700; }
.lineup-row { display: grid; gap: 0.5rem; }
.lineup-g { grid-template-columns: repeat(2, minmax(0, 220px)); }
.lineup-d { grid-template-columns: repeat(2, minmax(0, 220px)); }
.lineup-f { grid-template-columns: repeat(3, minmax(0, 220px)); }
.lineup-slot {
    position: relative; min-height: 64px; padding: 0.45rem 0.6rem; border-radius: 12px; text-align: left;
    border: 1.5px solid color-mix(in srgb, var(--success) 45%, transparent); background: var(--surface);
    color: var(--text); font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 0.1rem;
    transition: border-color 0.15s, transform 0.1s;
}
.lineup-slot:disabled { cursor: default; }
.lineup-slot:not(:disabled):hover { transform: translateY(-1px); border-color: var(--accent); }
.lineup-slot.empty { border-style: dashed; border-color: var(--border-strong); align-items: flex-start; }
.lineup-slot.is-open { border-color: var(--border-strong); border-style: dashed; opacity: 0.55; filter: grayscale(0.8); }
.lineup-slot.is-no { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, transparent); }
.lineup-slot.is-no .slot-player { text-decoration: line-through; opacity: 0.75; }
.lineup-slot.mine { box-shadow: 0 0 0 3px var(--success), 0 8px 24px -10px var(--success); }
.slot-label { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; color: var(--accent); }
.slot-player { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.slot-player strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-player small { color: var(--muted); }
.slot-flag { position: absolute; top: 0.35rem; right: 0.45rem; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.lineup-slot.is-no .slot-flag { color: var(--danger); }
.slot-pos { position: absolute; bottom: 0.35rem; right: 0.45rem; font-size: 0.65rem; font-weight: 800; color: var(--warn); }
.slot-add { color: var(--muted); margin-top: 0.3rem; }
.bench { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.bench-chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.55rem 0.25rem 0.25rem; border-radius: 999px; background: var(--surface-2); font-size: 0.85rem; }
.bench-chip .pos-dot { width: 22px; height: 22px; font-size: 0.78rem; border-radius: 50%; }
.picker-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0.8rem 0 0.4rem; }
.picker-list .picker-item { text-align: left; font: inherit; color: var(--text); background: transparent; }
.picker-item.is-open { opacity: 0.6; }
.picker-item.is-no { opacity: 0.55; }
.picker-item.is-no strong { text-decoration: line-through; }

@media (max-width: 760px) {
    .matchup-lg .matchup-name { font-size: 1.1rem; }
    .matchup-lg .team-logo { --logo-size: 72px !important; }
    .game-hero, .next-game { padding: 1.1rem 1rem; }
    .next-game-stats { grid-template-columns: repeat(2, 1fr); }
    .game-row { gap: 0.6rem; padding: 0.55rem 0.6rem; }
    .game-row .rsvp-btn { padding: 0.45rem 0.55rem; }
    .calendar { padding: 0.6rem; }
    .calendar-grid { gap: 2px; }
    .calendar-day { min-height: 64px; padding: 0.2rem; border-radius: 7px; }
    .calendar-game span { display: none; }
    .calendar-game .team-logo { --logo-size: 22px !important; }
    .lineup-g, .lineup-d { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lineup-f { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem; }
    .lineup-slot { min-height: 58px; padding: 0.4rem 0.45rem; }
    .lineup-f .slot-player small { display: none; }
    .lineup-toolbar .btn { flex: 1 1 auto; }
    .attendance-list { grid-template-columns: 1fr; }
}

.public-endpoint { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.5rem 0.7rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.public-endpoint:hover { border-color: var(--accent); }
.public-endpoint code { background: none; padding: 0; color: var(--accent); }

/* Rückennummer vor dem Namen */
.jersey { display: inline-block; min-width: 2.1em; margin-right: 0.3rem; padding: 0 0.3rem; border-radius: 6px; font-family: var(--font-display); font-weight: 700; font-size: 0.95em; text-align: center; color: var(--accent) !important; background: rgba(56, 189, 248, 0.12); }

/* ── Kader am Handy: nie breiter als der Bildschirm ─────────────────────────
   "1fr" entspricht minmax(auto, 1fr) und wächst mit der längsten (nicht umbrechenden) Namenszeile —
   minmax(0, 1fr) hält die Spalte auf Bildschirmbreite, lange Namen werden mit "…" gekürzt. */
@media (max-width: 1180px) {
    .roster-columns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .roster-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .roster-column, .roster-row, .roster-row-main { min-width: 0; max-width: 100%; }
    .roster-row { gap: 0.45rem; }
    .roster-row .points-pill { min-width: 42px; }
    .roster-row .jersey { min-width: 0; margin-right: 0.2rem; }
    .row-menu .icon-btn { width: 28px; }
}
@media (max-width: 380px) {
    /* Sehr schmale Handys: Avatar weg, Rückennummer reicht zur Orientierung */
    .roster-row .avatar { display: none; }
}

/* ── Trainings ───────────────────────────────────────────────────────────── */
.training-badge {
    display: inline-grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%;
    color: #03121f; background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
}
.training-badge.big { width: 88px; height: 88px; box-shadow: 0 10px 30px -10px var(--accent-glow); }
.training-hero { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.game-row.training { box-shadow: inset 3px 0 0 var(--accent); }
.calendar-game.training { background: rgba(56, 189, 248, 0.14); }
.calendar-game .training-badge { width: 22px; height: 22px; }
.legend-swatch.training { background: rgba(56, 189, 248, 0.4); }
@media (max-width: 760px) {
    .training-badge.big { width: 72px; height: 72px; }
    .calendar-game .training-badge { width: 20px; height: 20px; }
    .toolbar .chips + .chips { flex-basis: 100%; }
}

/* ── Dokumente (Sportärztliche Visite) ───────────────────────────────────── */
.badge-warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.badge-info { color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); }
.badge-danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 13%, transparent); }

.capture { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.capture-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.capture-option {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem;
    text-align: center; padding: 1.6rem 1rem; border-radius: 16px; cursor: pointer;
    border: 1.5px dashed var(--border-strong); background: var(--surface); color: var(--text);
    transition: border-color 0.15s, background 0.15s;
}
.capture-option:hover { border-color: var(--accent); background: var(--surface-2); }
.capture-option .icon { color: var(--accent); }
.capture-option small { color: var(--muted); font-size: 0.8rem; }
.capture-option input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.capture-camera { border-style: solid; border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: rgba(56, 189, 248, 0.07); }
.capture-busy { display: flex; align-items: center; justify-content: center; gap: 0.8rem; min-height: 180px; color: var(--muted); }
.capture-hint { display: flex; gap: 0.4rem; align-items: center; margin: 0; }
.capture-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.capture-pdf { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1.5rem; color: var(--muted); border-radius: 14px; background: var(--surface-2); }

/* Ecken-Editor: Bild in voller Breite, Griffe groß genug für Finger */
.corner-stage { position: relative; align-self: center; max-width: 100%; touch-action: none; user-select: none; line-height: 0; border-radius: 10px; }
.corner-stage img { display: block; max-width: 100%; max-height: 62vh; border-radius: 10px; -webkit-user-drag: none; }
.corner-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.corner-shade { fill: rgba(3, 10, 20, 0.55); }
.corner-poly { fill: none; stroke: var(--accent); stroke-width: 3; vector-effect: non-scaling-stroke; }
.corner-handle {
    position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; cursor: grab; touch-action: none;
    background: rgba(56, 189, 248, 0.25); border: 3px solid var(--accent); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}
.corner-handle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; }
.corner-handle.dragging { cursor: grabbing; transform: scale(1.25); background: rgba(56, 189, 248, 0.45); }

.rectified { position: relative; display: grid; place-items: center; padding: 0.6rem; border-radius: 14px; background: var(--surface-2); }
.rectified img { max-width: 100%; max-height: 52vh; border-radius: 6px; box-shadow: var(--shadow); background: #fff; }
.rectified-busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(3, 10, 20, 0.35); border-radius: 14px; }

.qr-box { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; text-align: center; }
.qr-code { width: min(260px, 70vw); padding: 10px; background: #fff; border-radius: 14px; line-height: 0; }
.qr-code svg { width: 100%; height: auto; }
.qr-steps { text-align: left; margin: 0; padding-left: 1.2rem; color: var(--text); font-size: 0.92rem; }
.qr-box .muted { display: flex; align-items: center; gap: 0.5rem; justify-content: center; }
.qr-done { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; padding: 1.5rem 0.5rem; }
.qr-done > .icon { color: var(--success); }

.doc-status { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.75rem 0.9rem; border-radius: 12px; margin-bottom: 0.5rem; }
.doc-status .icon { margin-top: 2px; flex-shrink: 0; }
.doc-status strong { display: block; }
.doc-status small { color: var(--text); opacity: 0.8; }
.doc-list { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-direction: column; }
.doc-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); min-width: 0; }
.doc-item:last-child { border-bottom: none; }
.doc-item.rejected .doc-main strong { text-decoration: line-through; opacity: 0.7; }
.doc-thumb { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; border: 1px solid var(--border); background: var(--surface-2); color: var(--accent); cursor: pointer; }
.doc-thumb:hover { border-color: var(--accent); }
.doc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.doc-actions { display: flex; gap: 0.1rem; flex-shrink: 0; }
.doc-view { display: grid; place-items: center; }
.doc-view img { max-width: 100%; max-height: 72vh; border-radius: 8px; background: #fff; }

.doc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; margin-bottom: 1rem; }
.doc-stat {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; padding: 0.9rem 1rem; border-radius: 14px; cursor: pointer;
    border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-align: left;
}
.doc-stat .big-number { font-size: 2.3rem; min-width: 0; text-align: left; }
.doc-stat .big-number small { font-size: 1.1rem; color: var(--muted); }
.doc-stat.danger .big-number { color: var(--danger); }
.doc-stat.info .big-number { color: var(--accent-3); }
.doc-stat.warn .big-number { color: var(--warn); }
.doc-stat.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.doc-table { padding: 0.3rem 0.8rem; margin-top: 0.8rem; }
.doc-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0; border-bottom: 1px solid var(--border); min-width: 0; }
.doc-row:last-child { border-bottom: none; }
.doc-row.inactive { opacity: 0.6; }
.doc-player { display: flex; align-items: center; gap: 0.7rem; flex: 1; min-width: 0; color: inherit; }
.doc-player:hover strong { color: var(--accent); }
.doc-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.doc-name strong, .doc-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.doc-banner { display: flex; align-items: center; gap: 0.8rem; padding: 0.9rem 1rem; border-radius: 14px; margin-bottom: 1rem; flex-wrap: wrap; }
.doc-banner.badge-danger, .doc-status.badge-danger { border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.doc-banner.badge-warn, .doc-status.badge-warn { border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.doc-banner .grow { min-width: 180px; }
.doc-banner strong { display: block; color: var(--text); }
.doc-banner small { color: var(--muted); }
.doc-status.badge-active, .doc-status.badge-info, .doc-status.badge-warn, .doc-status.badge-danger,
.doc-banner.badge-danger, .doc-banner.badge-warn { font-size: 0.9rem; font-weight: 400; white-space: normal; }

.doc-summary { display: flex; align-items: center; gap: 0.8rem; padding: 0.9rem 1.1rem; color: inherit; flex-wrap: wrap; }
.doc-summary > .icon:first-child { color: var(--accent); }
.doc-summary.has-missing > .icon:first-child { color: var(--danger); }
.doc-summary .grow { display: flex; flex-direction: column; min-width: 160px; line-height: 1.3; }
.doc-summary:hover { border-color: var(--accent); }

/* Handy-Scan-Seite (ohne Anmeldung) */
.bare { max-width: 640px; margin: 0 auto; padding: 1rem 16px 3rem; }
.bare-brand { padding: 0.5rem 0 1rem; font-size: 1.3rem; }
.scan-card { padding: 1.2rem; border-radius: var(--radius); }
.scan-card h1 { font-size: 1.8rem; margin: 0; }
.scan-card > .muted { margin: 0.2rem 0 1rem; }

@media (max-width: 760px) {
    .doc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .doc-row { flex-wrap: wrap; }
    .doc-row .doc-player { flex-basis: 100%; }
    .doc-row .badge { margin-left: 46px; }
    .doc-row .doc-actions { margin-left: auto; }
    .doc-item { flex-wrap: wrap; }
    .doc-item .doc-main { flex-basis: calc(100% - 56px); }
    .doc-item .badge { margin-left: 50px; }
    .doc-item .doc-actions { margin-left: auto; }
}
@media (max-width: 480px) {
    .capture-pick { grid-template-columns: minmax(0, 1fr); }
    .corner-handle { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
}
.capture-pick { position: relative; }
.capture-overlay { position: absolute; inset: 0; z-index: 2; min-height: 0; border-radius: 16px; background: color-mix(in srgb, var(--bg) 80%, transparent); }

/* ── Ergebnisse, Scorer, Tabelle, Verein ─────────────────────────────────── */
.score-badge {
    display: inline-grid; place-items: center; min-width: 64px; padding: 0.3rem 0.6rem; border-radius: 10px;
    font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; white-space: nowrap;
}
.score-badge.win { color: var(--success); background: color-mix(in srgb, var(--success) 14%, transparent); }
.score-badge.loss { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.matchup-score { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; white-space: nowrap; }
.matchup-lg .matchup-score { font-size: 3rem; }
.matchup-score.win { color: var(--success); }
.matchup-score.loss { color: var(--danger); }

.score-entry { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; }
.score-side { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; min-width: 0; flex: 1; max-width: 200px; }
.score-side span { font-weight: 600; color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.score-side .input-xl { text-align: center; max-width: 120px; }
.score-colon { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; padding-bottom: 0.4rem; }
.score-type { justify-content: center; }

.stat-lines { display: flex; flex-direction: column; }
.stat-line { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.stat-line:last-child { border-bottom: none; }
.stat-name { display: flex; align-items: center; gap: 0.5rem; flex: 1; min-width: 150px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 11px; overflow: hidden; }
.stepper.has-value { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.stepper-label { font-size: 0.72rem; font-weight: 700; color: var(--muted); padding: 0 0.45rem; }
.stepper-btn { width: 34px; height: 34px; border: none; background: var(--surface-2); color: var(--text); font-size: 1.15rem; cursor: pointer; }
.stepper-btn:disabled { opacity: 0.35; cursor: default; }
.stepper-value { min-width: 26px; text-align: center; font-weight: 700; }
.stepper.has-value .stepper-value { color: var(--accent); }
.result-check { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 0.9rem; padding: 0.6rem 0.8rem; border-radius: 10px; background: var(--surface-2); font-size: 0.88rem; }
.result-check.bad { border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); }

.stat-table th.num, .stat-table td.num { text-align: center; width: 1%; white-space: nowrap; padding-left: 0.5rem; padding-right: 0.5rem; }
.stat-table .jersey { color: var(--muted); font-size: 0.8rem; margin-right: 0.35rem; }
.stat-table tr.row-me td { background: rgba(56, 189, 248, 0.08); }
.team-cell { display: inline-flex; align-items: center; gap: 0.55rem; }
.input-num { width: 64px; padding: 0.35rem 0.4rem; text-align: center; }

.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.podium-card { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 1rem 0.6rem; border-radius: var(--radius); text-align: center; position: relative; }
.podium-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.podium-card .big-number { font-size: 2.6rem; }
.podium-rank { position: absolute; top: 0.5rem; left: 0.7rem; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--muted); }
.podium-card.rank-1 { border-color: color-mix(in srgb, #fbbf24 55%, transparent); box-shadow: 0 10px 30px -18px #fbbf24; }
.podium-card.rank-1 .podium-rank { color: #fbbf24; }
.podium-card.me { outline: 2px solid var(--accent); }

.row-actions { display: flex; gap: 0.1rem; flex-shrink: 0; }
.list-row.inactive { opacity: 0.55; }
.person-photo { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.person-photo.lg { width: 72px; height: 72px; border-radius: 18px; }
.photo-row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.8rem; }
.sponsor-tile { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.7rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); min-width: 0; }
.sponsor-tile.inactive { opacity: 0.5; }
.sponsor-tile small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sponsor-logo { display: grid; place-items: center; height: 80px; border-radius: 10px; background: #fff; padding: 0.5rem; }
.sponsor-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sponsor-logo.sm { width: 120px; height: 56px; }
.webhook-facts { margin: 0.4rem 0 0.8rem; }

@media (max-width: 640px) {
    .hide-sm { display: none; }
    .podium { gap: 0.4rem; }
    .podium-card { padding: 0.8rem 0.3rem; }
    .podium-card .big-number { font-size: 2rem; }
    .podium-card small { font-size: 0.7rem; }
    .stat-line { gap: 0.4rem; }
    .stat-name { flex-basis: calc(100% - 44px); }
    .stepper-btn { width: 36px; height: 36px; }
    .score-entry { gap: 0.5rem; }
    .stat-table th, .stat-table td { padding: 0.55rem 0.4rem; }
}
.sponsor-logo { overflow: hidden; }
.sponsor-logo img { max-height: 64px; }
.sponsor-logo.sm img { max-height: 40px; }

/* ── Profilbilder ─────────────────────────────────────────────────────────── */
img.avatar-photo { object-fit: cover; padding: 0; background: var(--surface-2); }
.photo-upload { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.photo-upload-avatar { position: relative; }
.photo-busy { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 26px; background: rgba(3, 10, 20, 0.5); }
.photo-upload-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; }
.goalie-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; flex-basis: 100%; padding-left: 2.2rem; font-size: 0.82rem; color: var(--muted); }
.goalie-line label { display: inline-flex; align-items: center; gap: 0.35rem; }

/* ── Kader: nach Position gruppiert (wie Spieler-Ansicht) ─────────────────── */
.roster-block { margin-top: 1.1rem; }
.roster-block > .column-title { display: flex; align-items: center; gap: 0.45rem; }
.roster-block > .column-title .column-points { margin-left: auto; }
.pos-group { margin-top: 0.6rem; }
.pos-title { display: flex; align-items: baseline; gap: 0.45rem; margin: 0.4rem 0.3rem 0.45rem; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.02em; }
.pos-title .muted { font-family: var(--font); font-size: 0.8rem; font-weight: 500; }
.pos-points { margin-left: auto; font-family: var(--font); font-size: 0.78rem; font-weight: 600; color: var(--accent); }
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 0.5rem; }
.is-inactive-block .pos-title { color: var(--muted); }
.departures.roster-block { margin-top: 1.6rem; }
@media (max-width: 760px) {
    .roster-grid { grid-template-columns: minmax(0, 1fr); }
    .pos-title { font-size: 0.98rem; margin-top: 0.3rem; }
}

/* Tabelle/Statistik am Handy: alle Spalten ohne seitliches Scrollen */
@media (max-width: 480px) {
    .stat-table th, .stat-table td { padding: 0.5rem 0.22rem; font-size: 0.84rem; }
    .stat-table th { font-size: 0.66rem; letter-spacing: 0.04em; }
    .stat-table th.num, .stat-table td.num { padding-left: 0.22rem; padding-right: 0.22rem; }
    .stat-table .team-cell { gap: 0.35rem; }
    .stat-table .team-cell .team-logo { --logo-size: 20px !important; }
    .stat-table .team-cell strong { font-size: 0.84rem; }
}

/* Trainingsspieler */
.game-main small.trainee-note { display: block; white-space: pre-line; overflow-wrap: anywhere; }
.trainee-card { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem 1.1rem; }
.trainee-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.trainee-head .grow { min-width: 0; }
.trainee-head strong, .trainee-head .grow > div { overflow-wrap: anywhere; }
.trainee-message { margin: 0; padding: 0.6rem 0.8rem; border-radius: 10px; background: color-mix(in srgb, var(--accent) 7%, transparent);
    white-space: pre-line; overflow-wrap: anywhere; }
.trainee-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.trainee-row { flex-wrap: wrap; }
.trainee-row .trainee-reason { flex-basis: 100%; display: flex; gap: 0.5rem; }
.trainee-row .trainee-reason .input { flex: 1; min-width: 0; }
@media (max-width: 600px) {
    .trainee-row .game-side { flex-basis: 100%; }
    .trainee-row .game-side .rsvp { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .trainee-row .game-side .rsvp-btn { justify-content: center; }
}

/* Öffentliche Konto-Seiten */
.auth-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.1rem; font-size: 0.88rem; }
.auth-links a { color: var(--muted); }
.auth-links a:hover { color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.auth-card .switch-label { align-items: flex-start; line-height: 1.4; }
.alert-success { background: color-mix(in srgb, var(--success) 13%, transparent); color: var(--success); }
.alert-info { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.pick-list { max-height: 55vh; overflow-y: auto; }
