/* Managergame – Grundlayout */

/* Schriften (lokal gehostet, SIL Open Font License, siehe assets/fonts/OFL.txt) */
@font-face { font-family: 'IBM Plex Sans Condensed'; src: url('../fonts/IBMPlexSansCondensed-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Condensed'; src: url('../fonts/IBMPlexSansCondensed-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Condensed'; src: url('../fonts/IBMPlexSansCondensed-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Condensed'; src: url('../fonts/IBMPlexSansCondensed-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/IBMPlexMono-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/IBMPlexMono-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

/* Farben: hell („Eisfläche“, Standard) */
:root {
    --club: #FFD100;
    --club-accent: #F5C542;
    --color-bg: #eaf2f8;
    --color-surface: #ffffff;
    --color-surface-2: #f3f8fc;
    --color-text: #0e2747;
    --color-text-muted: #4b6078;
    --color-border: #c9d7e6;
    --color-line: #0e2747;
    --color-primary: #1e5aa8;
    --color-primary-text: #ffffff;
    --color-ink: #c8102e;
    --color-ink-text: #ffffff;
    --club-tint: #fff3c4;
    --color-accent-soft: #dcebfa;
    --color-sidebar: #0e2747;
    --color-sidebar-2: #173459;
    --color-sidebar-text: #dfe9f5;
    --color-sidebar-muted: #a3b6cf;
    --color-sidebar-active: #ffffff;
    --color-sidebar-active-text: #0e2747;
    --color-success: #1e6b3e;
    --color-danger: #b3261e;
    --radius: 6px;
    --space: 16px;
    --font: 'IBM Plex Sans Condensed', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, "SFMono-Regular", Consolas, monospace;
    --font-display: Bahnschrift, 'DIN Alternate', var(--font);
    /* Eishockey-Look A „Eisfläche“ */
    --kickplate: #f2b705;
    --goal-light: #c8102e;
    --radius-card: 14px;
    --radius-button: 999px;
    --card-edge: 4px solid var(--kickplate);
    --card-shadow: 0 10px 22px -18px rgba(14, 39, 71, 0.55);
    --button-secondary-width: 2px;
    --nav-active-radius: 999px;
    --section-title: var(--color-text-muted);
    --section-spacing: 0.12em;
    --countdown-bg: #0e2747;
    --countdown-text: #ffffff;
    --countdown-glow: none;
    --countdown-accent: var(--color-ink);
    --sidebar-club-bg: #ffffff;
    --sidebar-club-text: #0e2747;
    --sidebar-club-muted: #4b6078;
    --sidebar-club-edge: var(--kickplate);
    --app-bg:
        radial-gradient(circle at 50% 50%, transparent 0 116px, rgba(30, 90, 168, 0.11) 117px 121px, transparent 122px),
        radial-gradient(circle at 50% 50%, rgba(30, 90, 168, 0.12) 0 6px, transparent 7px),
        radial-gradient(circle at 16% 26%, transparent 0 64px, rgba(200, 16, 46, 0.08) 65px 68px, transparent 69px),
        radial-gradient(circle at 16% 74%, transparent 0 64px, rgba(200, 16, 46, 0.08) 65px 68px, transparent 69px),
        radial-gradient(circle at 84% 26%, transparent 0 64px, rgba(200, 16, 46, 0.08) 65px 68px, transparent 69px),
        radial-gradient(circle at 84% 74%, transparent 0 64px, rgba(200, 16, 46, 0.08) 65px 68px, transparent 69px),
        linear-gradient(90deg, transparent calc(50% - 3px), rgba(200, 16, 46, 0.10) calc(50% - 3px) calc(50% + 3px), transparent calc(50% + 3px)),
        linear-gradient(90deg, transparent calc(31% - 6px), rgba(30, 90, 168, 0.09) calc(31% - 6px) calc(31% + 6px), transparent calc(31% + 6px)),
        linear-gradient(90deg, transparent calc(69% - 6px), rgba(30, 90, 168, 0.09) calc(69% - 6px) calc(69% + 6px), transparent calc(69% + 6px));
    color-scheme: light;
}

/* Farben: dunkel („Arena bei Nacht“) */
:root[data-theme="dark"] {
    --color-bg: #070b14;
    --color-surface: #0f1729;
    --color-surface-2: #0b1222;
    --color-text: #e6edf7;
    --color-text-muted: #9aabc6;
    --color-border: #1f2b44;
    --color-line: #2a3a5c;
    --color-primary: #7fd4ff;
    --color-primary-text: #04121f;
    --color-ink: #7fd4ff;
    --color-ink-text: #04121f;
    --color-accent-soft: #13284a;
    --color-sidebar: #0a101c;
    --color-sidebar-2: #131d31;
    --color-sidebar-text: #c9d6ea;
    --color-sidebar-muted: #8597b3;
    --color-sidebar-active: #7fd4ff;
    --color-sidebar-active-text: #04121f;
    --color-success: #5fd08f;
    --color-danger: #ff6b61;
    /* Eishockey-Look B „Arena bei Nacht“ */
    --scoreboard: #ffb000;
    --goal-light: #ff3b30;
    --radius: 4px;
    --radius-card: 6px;
    --radius-button: 6px;
    --card-edge: 1px solid var(--color-border);
    --card-shadow: 0 14px 30px -22px rgba(0, 0, 0, 0.9);
    --button-secondary-width: 1px;
    --nav-active-radius: 4px;
    --nav-active-bg: linear-gradient(90deg, rgba(127, 212, 255, 0.20), rgba(127, 212, 255, 0.02));
    --nav-active-text: #7fd4ff;
    --nav-active-shadow: inset 3px 0 0 #7fd4ff;
    --section-title: #7fd4ff;
    --section-spacing: 0.2em;
    --countdown-bg: #04070d;
    --countdown-text: #ffb000;
    --countdown-glow: 0 0 10px rgba(255, 176, 0, 0.55);
    --countdown-accent: #ffb000;
    --sidebar-club-bg: #131d31;
    --sidebar-club-text: #e6edf7;
    --sidebar-club-muted: #8597b3;
    --sidebar-club-edge: #7fd4ff;
    --head-bg: #04070d;
    --app-bg:
        radial-gradient(ellipse 70% 45% at 50% -8%, rgba(127, 212, 255, 0.11), transparent 70%),
        radial-gradient(ellipse 40% 30% at 15% -5%, rgba(255, 255, 255, 0.04), transparent 70%),
        radial-gradient(ellipse 40% 30% at 85% -5%, rgba(255, 255, 255, 0.04), transparent 70%),
        linear-gradient(to top, rgba(127, 212, 255, 0.05), transparent 28%),
        repeating-linear-gradient(-14deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 11px),
        repeating-linear-gradient(21deg, rgba(255, 255, 255, 0.01) 0 1px, transparent 1px 17px);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] {
        --color-bg: #070b14;
        --color-surface: #0f1729;
        --color-surface-2: #0b1222;
        --color-text: #e6edf7;
        --color-text-muted: #9aabc6;
        --color-border: #1f2b44;
        --color-line: #2a3a5c;
        --color-primary: #7fd4ff;
        --color-primary-text: #04121f;
        --color-ink: #7fd4ff;
        --color-ink-text: #04121f;
        --color-accent-soft: #13284a;
        --color-sidebar: #0a101c;
        --color-sidebar-2: #131d31;
        --color-sidebar-text: #c9d6ea;
        --color-sidebar-muted: #8597b3;
        --color-sidebar-active: #7fd4ff;
        --color-sidebar-active-text: #04121f;
        --color-success: #5fd08f;
        --color-danger: #ff6b61;
        /* Eishockey-Look B „Arena bei Nacht“ */
        --scoreboard: #ffb000;
        --goal-light: #ff3b30;
        --radius: 4px;
        --radius-card: 6px;
        --radius-button: 6px;
        --card-edge: 1px solid var(--color-border);
        --card-shadow: 0 14px 30px -22px rgba(0, 0, 0, 0.9);
        --button-secondary-width: 1px;
        --nav-active-radius: 4px;
        --nav-active-bg: linear-gradient(90deg, rgba(127, 212, 255, 0.20), rgba(127, 212, 255, 0.02));
        --nav-active-text: #7fd4ff;
        --nav-active-shadow: inset 3px 0 0 #7fd4ff;
        --section-title: #7fd4ff;
        --section-spacing: 0.2em;
        --countdown-bg: #04070d;
        --countdown-text: #ffb000;
        --countdown-glow: 0 0 10px rgba(255, 176, 0, 0.55);
        --countdown-accent: #ffb000;
        --sidebar-club-bg: #131d31;
        --sidebar-club-text: #e6edf7;
        --sidebar-club-muted: #8597b3;
        --sidebar-club-edge: #7fd4ff;
        --head-bg: #04070d;
        --app-bg:
            radial-gradient(ellipse 70% 45% at 50% -8%, rgba(127, 212, 255, 0.11), transparent 70%),
            radial-gradient(ellipse 40% 30% at 15% -5%, rgba(255, 255, 255, 0.04), transparent 70%),
            radial-gradient(ellipse 40% 30% at 85% -5%, rgba(255, 255, 255, 0.04), transparent 70%),
            linear-gradient(to top, rgba(127, 212, 255, 0.05), transparent 28%),
            repeating-linear-gradient(-14deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 11px),
            repeating-linear-gradient(21deg, rgba(255, 255, 255, 0.01) 0 1px, transparent 1px 17px);
        color-scheme: dark;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-primary);
}

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 var(--space);
}

/* Kopfzeile */

.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space);
    min-height: 64px;
}

.brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-text);
}

.brand-name {
    font-weight: 700;
    font-size: 1.25rem;
}

.brand-tagline {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.lang-switch {
    display: flex;
    gap: 4px;
}

.lang-switch a {
    padding: 4px 10px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 600;
}

.lang-switch a.active {
    background: var(--color-accent-soft);
    color: var(--color-primary);
}

/* Inhalt */

.site-main {
    flex: 1;
    padding-top: calc(var(--space) * 2);
    padding-bottom: calc(var(--space) * 2);
}

.hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.2;
    margin: 0 0 12px;
}

.lead {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 60ch;
    margin: 0 0 calc(var(--space) * 2);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 calc(var(--space) * 2);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.feature {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius);
    padding: 14px var(--space);
}

.notice {
    background: var(--color-accent-soft);
    border-radius: var(--radius);
    padding: 12px var(--space);
    margin: 0;
}

.button {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-primary-text);
    padding: 10px 18px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
}

/* Fehlerseite */

.error-status {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin: 0;
}

.error-page h1 {
    margin-top: 0;
}

.debug pre {
    overflow-x: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 12px;
    font-size: 0.8rem;
}

/* Fußzeile */

.site-footer {
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    padding: 12px 0;
}

/* Kopfzeile: Navigation */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.main-nav a {
    text-decoration: none;
    font-weight: 600;
}

.nav-user {
    color: var(--color-text);
}

.inline-form {
    display: inline;
    margin: 0;
}

.link-button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    text-decoration: underline;
}

/* Hinweise */

.banner {
    background: #fff4d6;
    color: #4d3b00;
    font-size: 0.9rem;
}

.banner-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
}

.alert {
    border-radius: var(--radius);
    padding: 12px var(--space);
    margin: 0 0 var(--space);
    border: 1px solid transparent;
}

.alert-success { background: #e4f2ea; border-color: #b7dcc6; color: #134b30; }
.alert-info { background: #e7f1fb; border-color: #bcd6f2; color: #173f66; }
.alert-warning { background: #fff4d6; border-color: #ecd28a; color: #5c4400; }
.alert-error { background: #fbebeb; border-color: #f0c2c2; color: #7a1c1c; }

:root[data-theme="dark"] .banner { background: #3a3110; color: #f3e3a8; }
:root[data-theme="dark"] .alert-success { background: #17301f; border-color: #275a3a; color: #bfe8cd; }
:root[data-theme="dark"] .alert-info { background: #162736; border-color: #26415a; color: #c4dcf2; }
:root[data-theme="dark"] .alert-warning { background: #2a2110; border-color: #6b5216; color: #f2d58a; }
:root[data-theme="dark"] .alert-error { background: #3a1818; border-color: #6a2a2a; color: #f4c7c7; }
@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] .banner { background: #3a3110; color: #f3e3a8; }
    :root[data-theme="system"] .alert-success { background: #17301f; border-color: #275a3a; color: #bfe8cd; }
    :root[data-theme="system"] .alert-info { background: #162736; border-color: #26415a; color: #c4dcf2; }
    :root[data-theme="system"] .alert-warning { background: #2a2110; border-color: #6b5216; color: #f2d58a; }
    :root[data-theme="system"] .alert-error { background: #3a1818; border-color: #6a2a2a; color: #f4c7c7; }
}

/* Karten und Formulare */

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: calc(var(--space) * 1.5);
    margin-bottom: var(--space);
}

.card h2 {
    margin-top: 0;
    font-size: 1.15rem;
}

.auth-card {
    max-width: 440px;
    margin: 0 auto;
}

.auth-card h1 {
    margin-top: 0;
    font-size: 1.5rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-narrow {
    max-width: 420px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.field-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.field-row .field {
    min-width: 200px;
}

.field-small {
    flex: 0 0 110px;
    min-width: 0 !important;
}

.field label {
    font-weight: 600;
    font-size: 0.9rem;
}

.field input,
.field select {
    font: inherit;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-text);
    width: 100%;
}

.field input:focus,
.field select:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
}

.field input[readonly] {
    color: var(--color-text-muted);
}

.field input[aria-invalid="true"] {
    border-color: #c0392b;
}

.hint {
    margin: 0;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.field-error {
    margin: 0;
    font-size: 0.85rem;
    color: #c0392b;
}

.checkbox {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 0.9rem;
}

.checkbox input {
    margin-top: 3px;
}

button.button,
.button {
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    text-align: center;
}

.button-block {
    display: block;
    width: 100%;
}

.button-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.button-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.test-mail {
    display: block;
    margin-top: 12px;
}

.form-links,
.form-switch {
    font-size: 0.9rem;
    text-align: center;
    margin: 14px 0 0;
}

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin: 18px 0 12px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--color-border);
}

.provider-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.button-provider {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.provider-discord {
    background: #5865f2;
    color: #ffffff;
    border-color: #5865f2;
}

fieldset.provider-settings {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 12px var(--space);
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

fieldset.provider-settings legend {
    font-weight: 700;
    padding: 0 6px;
}

/* Konto und Verwaltung */

.facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 20px;
    margin: 0;
}

.facts dt {
    color: var(--color-text-muted);
}

.facts dd {
    margin: 0;
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
}

.badge-ok { background: var(--color-accent-soft); color: var(--color-primary); }
.badge-warn { background: #fff4d6; color: #6b5200; }

.provider-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.provider-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: calc(var(--space) * 1.5);
}

.stat {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: var(--space);
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.breadcrumb {
    margin: 0 0 6px;
    font-size: 0.85rem;
}

/* Fußzeile */

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}

.footer-links {
    display: flex;
    gap: 14px;
}

.footer-links a {
    color: var(--color-text-muted);
}

/* Allgemein */

.muted { color: var(--color-text-muted); }
.subtitle { margin: 0 0 var(--space); color: var(--color-text-muted); }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 calc(var(--space) * 1.5); }
.button-danger { background: #b3261e; color: #ffffff; }
.card-highlight { border-color: var(--color-primary); border-width: 2px; }
.report-link { margin: 12px 0 0; font-size: 0.85rem; text-align: right; }
.report-link a { color: var(--color-text-muted); }

.country-code {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--color-accent-soft);
    color: var(--color-primary);
    vertical-align: middle;
}

/* Länder und Pyramide */

.country-grid,
.league-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.country-card,
.league-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px var(--space);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.85rem;
    transition: border-color 0.15s;
}

.country-card:hover,
.league-card:hover { border-color: var(--color-primary); }

.country-name { font-size: 1.15rem; font-weight: 700; }
.league-card strong { font-size: 1rem; }

.pyramid-level { margin-bottom: calc(var(--space) * 1.5); }
.level-title { font-size: 0.95rem; color: var(--color-text-muted); margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.05em; }

.league-relations { list-style: none; padding: 0; margin: 0 0 var(--space); font-size: 0.9rem; }
.league-relations li { margin-bottom: 4px; }

/* Tabellen */

.table-wrap { overflow-x: auto; margin: 0 calc(var(--space) * -0.5); }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 8px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.data-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tbody tr:hover { background: var(--color-accent-soft); }

@media (max-width: 640px) {
    .hide-small { display: none; }
}

.club-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
}

.club-link:hover span { text-decoration: underline; }
.club-logo { flex: none; }

/* Verein */

.club-header,
.player-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: var(--space);
}

.club-header h1,
.player-header h1 { margin: 0 0 4px; line-height: 1.15; }
.club-header .subtitle,
.player-header .subtitle { margin-bottom: 8px; }

.color-chips { display: flex; gap: 6px; }
.color-chip { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--color-border); }

.pos {
    display: inline-block;
    min-width: 30px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 4px;
    background: #e7f1fb;
    color: #173f66;
}

.pos-gk { background: #fff4d6; color: #6b5200; }
.pos-cb, .pos-lb, .pos-rb { background: #e7f1fb; color: #173f66; }
.pos-dm, .pos-cm, .pos-lm, .pos-rm, .pos-am { background: #e4f2ea; color: #134b30; }
.pos-lw, .pos-rw, .pos-st { background: #fbebeb; color: #7a1c1c; }

:root[data-theme="dark"] .pos-gk { background: #3a3110; color: #f3e3a8; }
:root[data-theme="dark"] .pos-cb, :root[data-theme="dark"] .pos-lb, :root[data-theme="dark"] .pos-rb { background: #162736; color: #c4dcf2; }
:root[data-theme="dark"] .pos-dm, :root[data-theme="dark"] .pos-cm, :root[data-theme="dark"] .pos-lm, :root[data-theme="dark"] .pos-rm, :root[data-theme="dark"] .pos-am { background: #17301f; color: #bfe8cd; }
:root[data-theme="dark"] .pos-lw, :root[data-theme="dark"] .pos-rw, :root[data-theme="dark"] .pos-st { background: #3a1818; color: #f4c7c7; }
@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] .pos-gk { background: #3a3110; color: #f3e3a8; }
    :root[data-theme="system"] .pos-cb, :root[data-theme="system"] .pos-lb, :root[data-theme="system"] .pos-rb { background: #162736; color: #c4dcf2; }
    :root[data-theme="system"] .pos-dm, :root[data-theme="system"] .pos-cm, :root[data-theme="system"] .pos-lm, :root[data-theme="system"] .pos-rm, :root[data-theme="system"] .pos-am { background: #17301f; color: #bfe8cd; }
    :root[data-theme="system"] .pos-lw, :root[data-theme="system"] .pos-rw, :root[data-theme="system"] .pos-st { background: #3a1818; color: #f4c7c7; }
}

/* Spieler */

.player-strength {
    flex: none;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--color-primary);
    color: var(--color-primary-text);
}

.trait {
    display: inline-block;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--color-accent-soft);
    margin: 0 4px 4px 0;
}

.attribute-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.attribute-group h3 { margin: 0 0 8px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted); }

.attribute {
    display: grid;
    grid-template-columns: 1fr 90px 28px;
    gap: 8px;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.attribute-bar { height: 6px; border-radius: 3px; background: var(--color-border); overflow: hidden; }
.attribute-bar span { display: block; height: 100%; border-radius: 3px; }
.attribute-bar .high { background: var(--color-primary); }
.attribute-bar .mid { background: #d4a017; }
.attribute-bar .low { background: #c0392b; }
.attribute-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* Meldungen */

.radio-group { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.radio-group legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }

.field textarea {
    font: inherit;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-text);
    width: 100%;
    resize: vertical;
}

.report-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.report-reasons { margin: 10px 0; padding-left: 20px; font-size: 0.9rem; }
.report-comment { margin: 6px 0; padding: 6px 12px; border-left: 3px solid var(--color-border); font-size: 0.9rem; }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.stat-link { text-decoration: none; color: var(--color-text); }
.stat-alert { border-color: #c0392b; }
.stat-alert .stat-value { color: #c0392b; }

/* Flaggen und Schätzwerte */

.flag {
    display: inline-block;
    vertical-align: -2px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
    object-fit: cover;
}

.title-with-flag .flag { vertical-align: -4px; }
.country-name .flag { vertical-align: -5px; margin-right: 4px; }

.unknown { color: var(--color-text-muted); }

.player-strength.unknown { background: var(--color-border); color: var(--color-text-muted); }
.player-strength.range { font-size: 1.05rem; background: #d4a017; color: #1c2321; }

.attribute-bar .range { opacity: 0.85; }

.insight-hint {
    background: var(--color-accent-soft);
    border-radius: var(--radius);
    padding: 10px var(--space);
    margin-bottom: var(--space);
}

.admin-note {
    font-size: 0.85rem;
    background: #fff4d6;
    color: #6b5200;
    border-radius: var(--radius);
    padding: 8px var(--space);
}

:root[data-theme="dark"] .admin-note { background: #3a3110; color: #f3e3a8; }
:root[data-theme="dark"] .flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); }
@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] .admin-note { background: #3a3110; color: #f3e3a8; }
    :root[data-theme="system"] .flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); }
}

/* Tabelle und Spiele */

.standings tr.zone-up td:first-child { box-shadow: inset 4px 0 0 #2e9e5b; }
.standings tr.zone-down td:first-child { box-shadow: inset 4px 0 0 #c0392b; }
/* internationale Gruppen: weiter in der K.-o.-Phase des Bewerbs darunter */
.standings tr.zone-drop td:first-child { box-shadow: inset 4px 0 0 #d4a017; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.8rem; color: var(--color-text-muted); margin: 10px 0 0; }
.legend-item { padding-left: 10px; }
.legend-item.zone-up { box-shadow: inset 4px 0 0 #2e9e5b; }
.legend-item.zone-down { box-shadow: inset 4px 0 0 #c0392b; }

.matchday-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.matchday-nav h2 { margin: 0; text-align: center; }
.matchday-nav a[rel="next"] { text-align: right; }

.fixture-list { list-style: none; margin: 0; padding: 0; }

.fixture {
    display: grid;
    grid-template-columns: 110px 1fr 56px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px 4px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.fixture:last-child { border-bottom: 0; }
.fixture-time { color: var(--color-text-muted); font-size: 0.8rem; }
.fixture-home { justify-content: flex-end; text-align: right; }
.fixture .club-link { font-weight: 500; min-width: 0; }
.fixture .club-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fixture .club-link.own { font-weight: 700; }

.fixture-score {
    text-align: center;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: var(--color-bg);
    border-radius: 4px;
    padding: 2px 0;
}

.fixture.win .fixture-score { background: #2e9e5b; color: #ffffff; }
.fixture.draw .fixture-score { background: #d4a017; color: #1c2321; }
.fixture.loss .fixture-score { background: #c0392b; color: #ffffff; }

.fixture-date { white-space: nowrap; }
/* Pokaltermin ohne Gegner (Freilos, Gegner wird ausgelost) */
.fixture-pending-text { grid-column: 2 / -1; text-align: center; font-style: italic; color: var(--color-text-muted); }

@media (max-width: 560px) {
    .fixture { grid-template-columns: 1fr 48px 1fr; }
    .fixture-time { grid-column: 1 / -1; }
    .fixture-pending-text { grid-column: 1 / -1; }
}

/* Titel, Sterne, Historie */

.team-badge {
    display: inline-block;
    min-width: 20px;
    margin-left: 4px;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
    cursor: help;
}

.team-badge-champion { background: #F2C230; color: #4a3600; }
.team-badge-cup { background: #6f8fb8; color: #ffffff; }
.team-badge-champions { background: #6f8fb8; color: #ffffff; }
.team-badge-world { background: #7a5ea8; color: #ffffff; }
.team-badge-promoted { background: #2e9e5b; color: #ffffff; }
.team-badge-relegated { background: #c0392b; color: #ffffff; }

.legend .team-badge { margin-left: 0; }

.logo-with-stars {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: none;
}

.club-stars { display: inline-flex; gap: 1px; line-height: 0; cursor: help; }
.club-titles { margin: 0 0 8px; font-size: 0.9rem; }
.title-count { font-weight: 600; margin-right: 8px; }

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0 var(--space);
}

.title-list { list-style: none; margin: 0; padding: 0; }
.title-list li { padding: 6px 0; border-bottom: 1px solid var(--color-border); }
.title-list li:last-child { border-bottom: 0; }

.season-label {
    display: inline-block;
    min-width: 64px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

/* Spielbericht */
a.fixture-score { color: inherit; text-decoration: none; }
a.fixture-score:hover { outline: 2px solid var(--color-primary); }

.match-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space);
    text-align: center;
}
.match-team { display: flex; flex-direction: column; align-items: center; gap: 6px; color: inherit; text-decoration: none; min-width: 0; }
.match-team-name { font-weight: 700; font-size: 1.1rem; overflow-wrap: anywhere; }
.match-score { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.match-score strong { font-size: 2.4rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.match-score .muted { font-size: 0.8rem; }

.motm { text-align: center; margin: 0 0 var(--space); }
.motm-label { color: var(--color-text-muted); }
.motm-star { color: #d4a017; margin-left: 4px; }

.match-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space); }
@media (max-width: 760px) { .match-grid { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-event { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--color-border); }
.timeline-event.side-1 { flex-direction: row-reverse; text-align: right; }
.timeline-minute { font-variant-numeric: tabular-nums; color: var(--color-text-muted); min-width: 3.2em; }
.timeline-event.side-1 .timeline-minute { text-align: right; }
.timeline-icon { width: 1.4em; text-align: center; flex: none; }
.timeline-text { min-width: 0; }
.timeline-event.event-goal { font-weight: 500; }
.timeline-break { text-align: center; color: var(--color-text-muted); font-size: 0.85rem; padding: 6px 0; border-bottom: 1px solid var(--color-border); background: var(--color-bg); }

.card-icon { display: inline-block; width: 0.6em; height: 0.85em; border-radius: 2px; vertical-align: -0.1em; }
.card-yellow { background: #f2c200; }
.card-red { background: #d0312d; }
.card-second-yellow { background: linear-gradient(135deg, #f2c200 50%, #d0312d 50%); }

.match-stats { width: 100%; border-collapse: collapse; }
.match-stats td { padding: 6px 4px; }
.match-stats .num { width: 3.5em; font-variant-numeric: tabular-nums; font-weight: 600; }
.match-stats td:last-child { text-align: right; }
.match-stat-label { text-align: center; font-size: 0.9rem; color: var(--color-text-muted); }
.match-stat-bar { display: block; height: 6px; margin-top: 4px; border-radius: 3px; background: var(--color-border); overflow: hidden; }
.match-stat-bar span { display: block; height: 100%; background: var(--color-primary); }

.lineups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space); }
@media (max-width: 760px) { .lineups { grid-template-columns: 1fr; } }
.lineup h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1rem; }
.data-table.compact th, .data-table.compact td { padding-top: 4px; padding-bottom: 4px; }
.lineup-divider td { font-size: 0.8rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; background: var(--color-bg); }
.lineup-marks { white-space: nowrap; }
.mark { display: inline-block; margin-right: 3px; font-size: 0.8rem; }
.mark-assist { font-weight: 700; color: var(--color-primary); }
.mark-sub_in { color: #2e9e5b; }
.mark-sub_out { color: #c0392b; }
.mark-injury { color: var(--color-danger); font-weight: 700; }
.rating { font-variant-numeric: tabular-nums; font-weight: 600; }
.rating-good { color: #2e9e5b; }
.rating-bad { color: #c0392b; }

/* Torjäger und Vorlagen */
.leaders-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space); }
@media (max-width: 760px) { .leaders-grid { grid-template-columns: 1fr; } }
.leaders { margin: 0; padding-left: 1.6em; }
.leaders li { padding: 4px 0; border-bottom: 1px solid var(--color-border); }
.leaders li > * { vertical-align: middle; }
.leaders li { display: list-item; }
.leaders li .leader-name { display: inline-flex; align-items: center; gap: 6px; max-width: 70%; }
.leader-club { display: inline-flex; }
.leader-total { float: right; font-variant-numeric: tabular-nums; }
.leaders li .muted { font-size: 0.8rem; margin-left: 6px; }

.suspension { color: #c0392b; }

/* Live */
.live-badge { display: inline-block; background: #d0312d; color: #ffffff; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 1px 6px; border-radius: 3px; animation: live-pulse 2s ease-in-out infinite; vertical-align: middle; }
@keyframes live-pulse { 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .live-badge { animation: none; } }
.live-minute { font-weight: 700; color: #d0312d; font-variant-numeric: tabular-nums; }
.match-header.is-live { border-top: 3px solid #d0312d; }
.match-team.own .match-team-name { text-decoration: underline; text-decoration-color: var(--color-primary); text-underline-offset: 4px; }
.live-ticker { max-height: 32rem; overflow-y: auto; }
.timeline-event.event-shot_saved, .timeline-event.event-shot_missed { color: var(--color-text-muted); font-size: 0.9rem; }
.fixture.is-live .fixture-score { background: #d0312d; color: #ffffff; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; }
.live-dot.live-win { background: #2e9e5b; }
.live-dot.live-draw { background: #d4a017; }
.live-dot.live-loss { background: #c0392b; }

.live-control { margin-top: var(--space); }
.live-limits { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--color-text-muted); font-size: 0.9rem; }
.live-auto-on { color: var(--color-primary); font-weight: 600; }
.live-forms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space); }
@media (max-width: 860px) { .live-forms { grid-template-columns: 1fr; } }
.live-form { display: flex; flex-direction: column; gap: 6px; }
.live-form label { display: flex; flex-direction: column; gap: 2px; font-size: 0.9rem; }
.live-form select { width: 100%; min-width: 0; }
.live-control h3 { font-size: 0.95rem; margin: var(--space) 0 6px; }
.live-buttons .inline-form { display: inline-block; margin: 0 6px 6px 0; }
.live-feedback { min-height: 1.4em; margin: 8px 0 0; font-size: 0.9rem; }
.live-feedback.ok { color: var(--color-primary); }
.live-feedback.error { color: #c0392b; }
.fitness-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; }
.fitness-list li { display: flex; align-items: center; gap: 8px; }
.fitness-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fitness-bar { display: inline-block; width: 70px; height: 6px; background: var(--color-border); border-radius: 3px; overflow: hidden; flex: none; }
.fitness-bar span { display: block; height: 100%; background: #2e9e5b; }
.fitness-bar.mid span { background: #d4a017; }
.fitness-bar.low span { background: #c0392b; }
.fitness-bar.inline { width: 120px; vertical-align: middle; }
.fitness-value { width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.command-list { margin: 0; padding-left: 1.2em; font-size: 0.9rem; }
.command-rejected { color: #c0392b; }
.command-applied { color: var(--color-text-muted); }

/* Aufstellung & Taktik (aus managergame; .lineup-grid ist hier die Blocktabelle der Aufstellung, Regeln weiter unten) */
.slot-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.slot-row select { flex: 1; min-width: 0; }
.tactics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px var(--space); }
.tactics-grid label { display: flex; flex-direction: column; gap: 2px; }
.input-small { width: 4.5em; }
.conditions select { max-width: 14rem; }
.confidence { font-weight: 600; }
.confidence-low { color: #c0392b; }
.confidence-high { color: #2e9e5b; }

/* Wartung */
.maintenance-page { max-width: 640px; margin: 48px auto; text-align: center; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 0.8rem; background: var(--color-bg); border: 1px solid var(--color-border); }
.badge-active { background: #fbebeb; color: #7a1c1c; border-color: #f0c4c4; }
.badge-planned { background: #e7f1fb; color: #173f66; border-color: #c5dcf3; }

/* Spielrahmen: Schiedsrichter, Wetter, Zuschauer */
.match-info { list-style: none; margin: 0 0 var(--space); padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; font-size: 0.9rem; }
.match-info-label { color: var(--color-text-muted); }
.match-info .trait { font-size: 0.75rem; }
.timeline-event.event-mistake { color: var(--color-text-muted); font-size: 0.9rem; font-style: italic; }

/* Nachbarligen derselben Ebene */
.league-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.league-title h1 { margin: 0; }
.league-switch { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); text-decoration: none; font-weight: 600; }
.league-switch:hover { border-color: var(--color-primary); }
.league-switch span { font-size: 0.85rem; }

/* Wartungsleiste ganz oben */
.maintenance-bar { background: #fff4d6; color: #5b4500; border-bottom: 1px solid #f0dca0; font-size: 0.9rem; padding: 8px 0; }
.maintenance-bar-active { background: #fbebeb; color: #7a1c1c; border-bottom-color: #f0c4c4; }
.maintenance-bar a { color: inherit; font-weight: 600; }
.maintenance-countdown { font-weight: 600; }
:root[data-theme="dark"] .maintenance-bar { background: #3a3014; color: #f5e3a8; border-bottom-color: #5c4c1c; }
:root[data-theme="dark"] .maintenance-bar-active { background: #3d1c1c; color: #f5c6c6; border-bottom-color: #5e2a2a; }
@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] .maintenance-bar { background: #3a3014; color: #f5e3a8; border-bottom-color: #5c4c1c; }
    :root[data-theme="system"] .maintenance-bar-active { background: #3d1c1c; color: #f5c6c6; border-bottom-color: #5e2a2a; }
}

/* Saisonwechsel */
.deduction { color: #c0392b; font-size: 0.8rem; font-weight: 600; }
.outcome { font-size: 0.85rem; font-weight: 600; }
.outcome-promoted, .outcome-moved_up { color: #2e9e5b; }
.outcome-relegated, .outcome-forced { color: #c0392b; }
.trait-negative { background: #fbebeb; color: #7a1c1c; }

/* VAR */
.var-icon { display: inline-block; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.04em; padding: 1px 4px; border-radius: 3px; background: #173f66; color: #ffffff; vertical-align: middle; }
.timeline-event.event-var { background: color-mix(in srgb, #173f66 6%, transparent); }

/* Verein finden, gründen, Logo-Baukasten */
.nav-highlight { font-weight: 700; color: var(--color-primary); }
.start-found { display: flex; align-items: center; justify-content: space-between; gap: var(--space); flex-wrap: wrap; }
.start-found h2 { margin-top: 0; }
.filter-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--space); }
.takeover-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space); flex-wrap: wrap; }
.found-form label, .inline-fields label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; max-width: 32rem; }
.field-error { color: #c0392b; font-size: 0.85rem; margin: 2px 0 0; }
.logo-builder { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--space); align-items: start; }
@media (max-width: 760px) { .logo-builder { grid-template-columns: 1fr; } }
.logo-preview { position: sticky; top: 12px; display: flex; justify-content: center; padding: 8px; background: var(--color-bg); border-radius: var(--radius); }
.logo-options fieldset { border: 1px solid var(--color-border); border-radius: var(--radius); margin: 0 0 12px; padding: 8px 12px; }
.logo-options legend { font-weight: 600; padding: 0 4px; }
.tiles { display: flex; flex-wrap: wrap; gap: 6px; }
.tile { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 3px; border: 2px solid transparent; border-radius: 6px; cursor: pointer; background: var(--color-surface); }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile:has(input:checked) { border-color: var(--color-primary); background: var(--color-accent-soft); }
.tile:has(input:focus-visible) { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.tile-text span { font-size: 0.8rem; padding: 0 6px; min-height: 40px; display: inline-flex; align-items: center; }
.palette { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 6px; }
.palette-label { width: 9rem; font-size: 0.85rem; color: var(--color-text-muted); }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--swatch, transparent); border: 2px solid var(--color-border); font-size: 0.8rem; }
.swatch:has(input:checked) span { outline: 3px solid var(--color-primary); outline-offset: 1px; }
.swatch:has(input:focus-visible) span { outline: 3px dashed var(--color-primary); }
.logo-row { display: flex; flex-wrap: wrap; gap: 12px; }
.logo-row label { display: flex; flex-direction: column; gap: 2px; font-size: 0.9rem; }
.squad-move select { max-width: 8rem; }

/* Textticker */
.timeline-comment { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--color-border); color: var(--color-text-muted); font-size: 0.9rem; }
.timeline-comment.side-1 { flex-direction: row-reverse; text-align: right; }
.timeline-comment .timeline-minute { min-width: 3.2em; }
.timeline-break .timeline-minute { display: inline-block; min-width: 3.2em; }

/* Finanzen */
.finance-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space); align-items: start; }
.finance-balance { font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.forecast { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.traffic { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none; }
.traffic-green { background: #2e9d5b; }
.traffic-yellow { background: #e0a800; }
.traffic-red { background: #c62828; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.money-neg { color: #b3261e; }
.finance-table .group-row th { background: transparent; padding-top: 12px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-text-muted); }
.finance-table .total-row th, .finance-table .total-row td { border-top: 2px solid var(--color-border); }
.form-inline { display: flex; flex-wrap: wrap; gap: 8px var(--space); align-items: flex-end; }
.form-inline label { display: flex; flex-direction: column; gap: 2px; }
.contract-box .form-inline { margin-top: 8px; }
:root[data-theme="dark"] .money-neg { color: #f28b82; }
@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] .money-neg { color: #f28b82; }
}
.timeline-comment.timeline-note { color: var(--color-text); font-weight: 600; }
.kickoff-countdown { font-size: 1.15rem; text-align: center; margin: var(--space) 0; }
.kickoff-countdown strong { font-variant-numeric: tabular-nums; color: var(--color-primary); }

/* VAR: aberkanntes Tor bleibt im Verlauf sichtbar */
.cancelled-label { display: none; margin-left: 4px; font-size: 0.8rem; font-weight: 600; color: #b3261e; text-transform: uppercase; }
.timeline-event.is-cancelled .cancelled-label { display: inline; }
.timeline-event.is-cancelled .timeline-icon, .timeline-event.is-cancelled .timeline-text > strong { text-decoration: line-through; opacity: 0.6; }

/* Internationale Bewerbe */
.standings tr.zone-cut td { border-bottom: 2px dashed var(--color-border); }
.cup-badge { display: inline-block; min-width: 2.2em; padding: 0 4px; border-radius: 4px; font-size: 0.72rem; font-weight: 700; text-align: center; color: #fff; background: #5b6662; }
.cup-badge.cup-champions_cup { background: #1d3f8f; }
.cup-badge.cup-continental_cup { background: #b35c00; }
.cup-badge.cup-cup_winners_cup { background: #7a1f5c; }
.result-suffix { display: block; font-size: 0.72rem; font-weight: 600; color: var(--color-text-muted); }
.fixture-score .result-suffix { display: inline; margin-left: 4px; }
.season-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space); }
/* Gruppenphase der internationalen Bewerbe: Gruppen nebeneinander, Spiele je Gruppe aufklappbar */
.cup-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space); }
.cup-groups > .card { min-width: 0; overflow-x: auto; }
.cup-groups .standings { width: 100%; }
.cup-groups .standings th, .cup-groups .standings td { padding-left: 6px; padding-right: 6px; }
.cup-groups .standings .club-link span { white-space: normal; }
@media (max-width: 1100px) { .cup-groups { grid-template-columns: minmax(0, 1fr); } }
.cup-group h3 { margin: 0 0 6px; }
.cup-group-fixtures { margin-top: 6px; }
.cup-group-fixtures summary { cursor: pointer; color: var(--color-text-muted); font-size: .9em; }
.cup-group-fixtures h4 { margin: 10px 0 4px; font-size: .9em; }
.season-switch a { padding: 2px 10px; border: 1px solid var(--color-border); border-radius: 999px; }
.season-switch a.active { background: var(--color-primary); color: var(--color-primary-text); border-color: var(--color-primary); }
.cup-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

/* Navigation: Menü-Schalter auf kleinen Bildschirmen (ohne JavaScript) */
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle { display: none; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; padding: 6px 10px; border: 1px solid var(--color-border); border-radius: 8px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
@media (max-width: 760px) {
    .header-inner { flex-wrap: wrap; }
    .nav-toggle { display: inline-flex; }
    .header-actions { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: var(--space); }
    .nav-toggle-input:checked ~ .header-actions { display: flex; }
    .main-nav { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav a, .main-nav .inline-form { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
    .lang-switch { justify-content: flex-start; }
}

/* Vereinsreiter */
.club-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid var(--color-border); margin: 0 0 var(--space); scrollbar-width: thin; }
.club-tabs a { padding: 8px 14px; text-decoration: none; font-weight: 600; color: var(--color-text-muted); white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.club-tabs a:hover { color: var(--color-text); }
.club-tabs a.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

/* Manager-Büro */
.office-header { display: flex; align-items: center; gap: var(--space); margin-bottom: 8px; }
.office-header h1 { margin: 0; }
.office-header p { margin: 0; }
.office-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space); align-items: start; }
.office-grid .card { margin: 0; }
.next-match .next-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 8px 0; }
.next-match .next-teams .club-link { flex-direction: column; text-align: center; gap: 4px; }
.next-match .versus { font-size: 1.4rem; font-weight: 700; color: var(--color-text-muted); }
.next-match .kickoff-countdown { text-align: left; margin: 8px 0 0; }
.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.task a { display: block; padding: 8px 12px; border-radius: 8px; background: var(--color-accent-soft); text-decoration: none; font-weight: 600; }
.task-license a { background: #fbebeb; color: #7a1c1c; }
.form-strip { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 8px; }
.form-strip li a { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; color: #fff; font-weight: 700; text-decoration: none; }
.form-strip .form-win a { background: #2e9d5b; }
.form-strip .form-draw a { background: #8a948f; }
.form-strip .form-loss a { background: #c62828; }
.mini-table .own-row td { background: var(--color-accent-soft); font-weight: 700; }
.home-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space); margin: var(--space) 0; }
.home-stat { text-align: center; }
.home-stat strong { display: block; font-size: 1.6rem; color: var(--color-primary); font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .task-license a { background: #3a1818; color: #f4c7c7; }
@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] .task-license a { background: #3a1818; color: #f4c7c7; }
}

/* ======================================================================
   Kompakt-Layout: Seitenleiste, eckige Karten, dichte Tabellen, Monospace-Zahlen
   ====================================================================== */
body { font-size: 15px; line-height: 1.45; }
.app-shell { display: flex; flex-wrap: wrap; min-height: 100vh; align-items: stretch; }
.app-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; }
.app-main .container { max-width: 2400px; padding: 0 24px; }
.site-main { padding-top: 20px; }

/* Seitenleiste */
.sidebar { flex: 1 1 232px; max-width: 100%; background: var(--color-sidebar); color: var(--color-sidebar-text); padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; }
.sidebar a { color: var(--color-sidebar-text); text-decoration: none; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sidebar .brand { color: var(--color-sidebar-text); flex-direction: column; gap: 2px; }
.sidebar .brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; }
.sidebar .brand-tagline { color: var(--color-sidebar-muted); font-size: 0.78rem; }
.sidebar-body { display: flex; flex-direction: column; gap: 18px; }
.sidebar-club { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--color-sidebar-2); border-radius: var(--radius); }
.sidebar-club strong { display: block; line-height: 1.2; }
.sidebar-club span { font-size: 0.8rem; color: var(--color-sidebar-muted); }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
.sidebar-nav + .sidebar-nav { border-top: 1px solid var(--color-sidebar-2); padding-top: 12px; }
.sidebar-nav a, .sidebar-nav .link-button { display: block; padding: 8px 10px; border-radius: var(--radius); color: var(--color-sidebar-text); text-decoration: none; text-align: left; width: 100%; }
.sidebar-nav a:hover, .sidebar-nav .link-button:hover { background: var(--color-sidebar-2); }
.sidebar-nav a.active { background: var(--color-sidebar-active); color: var(--color-sidebar-active-text); }
.sidebar-nav .nav-highlight { color: var(--color-sidebar-active-text); background: var(--color-sidebar-active); }
.sidebar-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-sidebar-muted); padding: 0 10px; }
.sidebar-options { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px; font-size: 0.85rem; }
.sidebar-options a { padding: 4px 8px; border: 1px solid var(--color-sidebar-2); border-radius: var(--radius); }
.sidebar-options a.active { background: var(--color-sidebar-active); color: var(--color-sidebar-active-text); border-color: transparent; }
.sidebar .nav-toggle { color: var(--color-sidebar-text); border-color: var(--color-sidebar-2); }
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
    .sidebar { flex-basis: 100%; padding: 12px 16px; gap: 12px; }
    .sidebar .nav-toggle { display: inline-flex; }
    .sidebar-body { display: none; }
    .nav-toggle-input:checked ~ .sidebar-body { display: flex; }
    .app-main .container { padding: 0 16px; }
}

/* Seitenkopf */
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--color-line); padding-bottom: 10px; margin-bottom: 16px; }
.page-head h1 { margin: 0; font-size: 1.7rem; }
.page-head .meta { font-family: var(--font-mono); font-size: 0.85rem; color: var(--color-text-muted); }

/* Karten: eckig, klare Linie, Überschrift als kleine Versalien */
.card { border: 1px solid var(--color-line); border-radius: var(--radius); padding: 14px 16px; }
.card > h2:first-child, .card > header h2 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); margin: 0 0 8px; }
.card h3 { font-size: 0.95rem; margin: 12px 0 6px; }
h1 { font-weight: 700; letter-spacing: 0.01em; }

/* Knöpfe */
.button { background: var(--color-ink); color: var(--color-ink-text); border-radius: var(--radius); padding: 9px 14px; }
.button-secondary { background: transparent; color: var(--color-text); border: 1px solid var(--color-line); }
.button-small { padding: 5px 10px; }

/* Tabellen: dicht, Zahlen in Monospace */
.data-table { font-size: 0.92rem; }
.data-table th, .data-table td { padding: 5px 8px; }
.data-table th { border-bottom: 1px solid var(--color-line); }
.data-table .num, .num-mono, .fixture-score, .money, .finance-balance, .kickoff-countdown strong, .live-minute { font-family: var(--font-mono); }
.mini-table .own-row td, .standings tr.own td { background: var(--color-accent-soft); }
.standings tr.own .club-link span { font-weight: 700; }

/* Büro im Kompakt-Layout */
.office-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 12px; margin-bottom: 12px; }
.office-wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 12px; }
.office-row .card, .office-wide .card { margin: 0; min-width: 0; }
.office-wide .card { overflow-x: auto; }
.next-pairing { font-size: 1.1rem; font-weight: 700; }
.next-countdown { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 600; color: var(--color-primary); margin: 6px 0; }
.balance-big { font-family: var(--font-mono); font-size: 1.7rem; font-weight: 600; }
.balance-big.money-neg { color: var(--color-danger); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 6px 0; border-bottom: 1px solid var(--color-border); }
.plain-list li:last-child { border-bottom: 0; }
.result-win { color: var(--color-success); font-weight: 600; }
.result-loss { color: var(--color-danger); font-weight: 600; }
.schedule-current td { background: var(--color-accent-soft); font-weight: 600; }
.license-ok { color: var(--color-success); font-weight: 600; }
.license-warn { color: #8a6100; font-weight: 600; }
.license-bad { color: var(--color-danger); font-weight: 600; }
:root[data-theme="dark"] .license-warn { color: #f5c542; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .license-warn { color: #f5c542; } }

/* Darstellung „In Vereinsfarben“: Seitenleiste und Akzente aus den (lesbar gemachten) Vereinsfarben */
:root[data-theme="club"] {
    --color-sidebar: var(--club-bg);
    --color-sidebar-2: var(--club-bg-2);
    --color-sidebar-text: var(--club-on);
    --color-sidebar-muted: var(--club-on);
    --color-sidebar-active: var(--club-active);
    --color-sidebar-active-text: var(--club-active-on);
    --color-primary: var(--club-link);
    --color-ink: var(--club-button);
    --color-ink-text: var(--club-button-on);
    --color-accent-soft: var(--club-tint);
}
:root[data-theme="club"] .sidebar { border-right: 1px solid var(--club-edge); }
:root[data-theme="club"] .page-head { border-bottom-color: var(--club-edge); }
.sidebar-nav .link-button { text-decoration: none; font-weight: 600; }
.sidebar-nav .inline-form { display: block; }
.sidebar .nav-toggle { border-radius: var(--radius); }
.sidebar-settings { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.sidebar-club img, .sidebar-club svg { flex: 0 0 auto; }
@media (min-width: 861px) {
    .sidebar { position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow-y: auto; }
    .sidebar-body { flex: 1; }
}
.card > h2:not(:first-child) { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); margin: 16px 0 6px; }
.office-greeting { margin: -8px 0 12px; }
.forecast-table { margin: 6px 0; }
.forecast-table tr.strong td { font-weight: 600; color: var(--color-text); }
.strong-accent { color: var(--color-primary); font-weight: 600; }
.schedule td:first-child { width: 4.5em; text-align: left; }
.schedule td:nth-child(2) { width: 2em; text-align: center; }
.schedule td:last-child { white-space: nowrap; }
.theme-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-choice a { display: flex; flex-direction: column; gap: 6px; min-width: 130px; padding: 10px; border: 1px solid var(--color-border); border-radius: var(--radius); text-decoration: none; color: var(--color-text); font-weight: 600; }
.theme-choice a.active { border-color: var(--color-line); box-shadow: inset 0 0 0 1px var(--color-line); }
.theme-swatch { display: flex; height: 28px; border: 1px solid var(--color-border); }
.theme-swatch span { flex: 1; }

/* Seitenleiste für Manager: Vereinskarte oben (Wappen groß, Name, Liga), Menü in aufklappbaren Gruppen */
.sidebar-manager .sidebar-top { align-items: stretch; }
.sidebar-manager .sidebar-club { flex: 1; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 16px 10px 14px; background: var(--color-sidebar-2); color: var(--color-sidebar-text); text-decoration: none; border: 2px solid transparent; }
.sidebar-manager .sidebar-club:hover { border-color: var(--color-sidebar-muted); }
.sidebar-manager .sidebar-club.active { border-color: var(--color-sidebar-active); }
.sidebar-club-text { display: flex; flex-direction: column; gap: 2px; }
.sidebar-club-text strong { font-size: 1.1rem; line-height: 1.2; }
.sidebar-club-league { font-size: 0.85rem; color: var(--color-sidebar-muted); }
.sidebar-menu { display: flex; flex-direction: column; gap: 2px; }
.nav-group { border-bottom: 1px solid var(--color-sidebar-2); }
.nav-group summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-sidebar-text); border-radius: var(--radius); }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: '+'; font-family: var(--font-mono); font-weight: 600; color: var(--color-sidebar-muted); }
.nav-group[open] summary::after { content: '−'; }
.nav-group summary:hover { background: var(--color-sidebar-2); }
.nav-group-items { display: flex; flex-direction: column; gap: 1px; padding: 0 0 8px; }
.nav-group-items a, .nav-group-items .nav-soon, .nav-singles a { display: block; padding: 6px 10px 6px 16px; border-radius: var(--radius); color: var(--color-sidebar-text); text-decoration: none; font-weight: 600; }
.nav-singles { display: flex; flex-direction: column; gap: 1px; padding-top: 8px; }
.nav-singles a { padding-left: 10px; font-weight: 700; }
.nav-group-items a:hover, .nav-singles a:hover { background: var(--color-sidebar-2); }
.nav-group-items a.active, .nav-singles a.active { background: var(--color-sidebar-active); color: var(--color-sidebar-active-text); }
.nav-group-items .nav-soon { display: flex; justify-content: space-between; align-items: baseline; font-weight: 500; color: var(--color-sidebar-muted); opacity: 0.7; cursor: default; }
.nav-soon small { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 10px; border-top: 1px solid var(--color-sidebar-2); font-size: 0.9rem; }
.sidebar-foot a, .sidebar-foot .link-button { display: block; padding: 5px 10px; color: var(--color-sidebar-muted); text-decoration: none; font-weight: 600; text-align: left; width: 100%; }
.sidebar-foot a:hover, .sidebar-foot .link-button:hover { color: var(--color-sidebar-text); }
.sidebar-foot .inline-form { display: block; }
.sidebar-foot .brand-small .brand-name { font-size: 0.8rem; letter-spacing: 0.12em; }
.sidebar-foot a.active { color: var(--color-sidebar-text); }
/* Untermenü innerhalb einer Seite (z. B. A-Team · B-Team · Jugend) */
.sub-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid var(--color-border); margin: 0 0 var(--space); }
.sub-tabs a { padding: 6px 12px; text-decoration: none; font-weight: 600; color: var(--color-text-muted); white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.sub-tabs a.active { color: var(--color-text); border-bottom-color: var(--color-primary); }
.contracts-table tr.expiring td { background: var(--color-accent-soft); }
@media (max-width: 860px) {
    .sidebar-manager .sidebar-top { align-items: center; }
    .sidebar-manager .sidebar-club { flex-direction: row; text-align: left; padding: 6px 10px; gap: 10px; }
    .sidebar-manager .sidebar-club svg, .sidebar-manager .sidebar-club img { width: 40px; height: auto; }
}

/* Nachrichten */
.nav-badge { display: inline-block; min-width: 1.5em; padding: 0 6px; margin-left: 6px; border-radius: 9px; background: var(--color-sidebar-active); color: var(--color-sidebar-active-text); font-family: var(--font-mono); font-size: 0.72rem; text-align: center; line-height: 1.5; }
.nav-group-items a.active .nav-badge { background: var(--color-sidebar); color: var(--color-sidebar-text); }
.news-list { list-style: none; margin: 0 0 12px; padding: 0; }
.news-list li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0 6px 10px; border-bottom: 1px solid var(--color-border); border-left: 3px solid transparent; }
.news-list li:last-child { border-bottom: 0; }
.news-time { color: var(--color-text-muted); font-size: 0.85rem; flex: 0 0 auto; }
.news-unread { font-weight: 600; background: var(--color-accent-soft); }
.news-win { border-left-color: var(--color-success) !important; }
.news-loss { border-left-color: var(--color-danger) !important; }
.news-warning { border-left-color: #c98a00 !important; }
.news-money { border-left-color: var(--color-line) !important; }
.pager { display: flex; justify-content: space-between; gap: 12px; }
.office-news { margin-top: 10px; }
.office-news li { font-size: 0.9rem; }

/* A-Team: Aufstellung mit Spielfeld (links) und Kaderliste (rechts) */
.lineup-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 8px; }
.lineup-toolbar .button { margin-left: auto; }
.segmented { display: inline-flex; border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; }
.segmented label { display: flex; align-items: center; gap: 6px; padding: 6px 10px; cursor: pointer; font-weight: 600; margin: 0; }
.segmented label:has(input:checked) { background: var(--color-ink); color: var(--color-ink-text); }
.segmented input { accent-color: var(--color-primary); }
.inline-label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.toolbar-facts { display: flex; gap: 14px; color: var(--color-text-muted); font-size: 0.9rem; }
.lineup-hint { margin: 4px 0; }
.lineup-board { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 16px; align-items: start; margin: 10px 0 16px; }
@media (max-width: 1100px) { .lineup-board { grid-template-columns: 1fr; } .lineup-pitch-wrap { max-width: 440px; margin: 0 auto; width: 100%; } }
.lineup-pitch-wrap { position: sticky; top: 8px; }
.pitch { position: relative; aspect-ratio: 68 / 100; border-radius: var(--radius); overflow: hidden;
    background: repeating-linear-gradient(180deg, #2f7d3a 0 10%, #2a7134 10% 20%); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.85); }
.pitch-lines span { position: absolute; border: 2px solid rgba(255, 255, 255, 0.75); }
.pl-half { left: 0; right: 0; top: 50%; height: 0; border-width: 2px 0 0 !important; }
.pl-circle { width: 26%; aspect-ratio: 1; left: 37%; top: 50%; transform: translateY(-50%); border-radius: 50%; }
.pl-box { left: 22%; width: 56%; height: 15%; }
.pl-box-top { top: -2px; }
.pl-box-bottom { bottom: -2px; }
.pitch-slot { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 1px; width: 76px; transition: left 0.25s, top 0.25s; }
.slot-label { font-size: 0.68rem; font-weight: 700; color: rgba(255, 255, 255, 0.85); letter-spacing: 0.06em; }
.chip { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 76px; padding: 4px 2px 3px; border: 0; border-radius: var(--radius); background: rgba(0, 0, 0, 0.35); color: #fff; font: inherit; cursor: grab; line-height: 1.1; }
.chip:hover, .chip:focus-visible { background: rgba(0, 0, 0, 0.55); outline: 2px solid #fff; }
.chip.is-selected { outline: 3px solid #f5c542; }
.chip-number { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--club, #f3f1ec); color: var(--club-on, #1d1d1b); border: 2px solid #fff; font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; }
.chip-name { font-weight: 700; font-size: 0.78rem; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-meta { font-size: 0.68rem; font-family: var(--font-mono); opacity: 0.9; }
.chip-fresh { display: block; width: 44px; height: 3px; background: rgba(255, 255, 255, 0.3); }
.chip-fresh i { display: block; height: 100%; background: #7ee08a; }
.chip-empty { cursor: default; color: rgba(255, 255, 255, 0.8); border: 2px dashed rgba(255, 255, 255, 0.6); background: transparent; height: 58px; justify-content: center; font-size: 0.75rem; }
.pitch-slot.is-drop-target .chip, .pitch-slot.is-drop-target .chip-empty { outline: 3px solid #f5c542; }
.pitch-bench { margin-top: 8px; padding: 8px; border: 1px solid var(--color-line); border-radius: var(--radius); background: #24502b; min-height: 74px; }
.pitch-bench.is-drop-target { outline: 3px solid #f5c542; }
.pitch-bench-label { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); margin-bottom: 4px; }
.pitch-bench-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.lineup-table { font-size: 0.88rem; }
.lineup-table td, .lineup-table th { padding: 3px 6px; white-space: nowrap; }
.lineup-table .name-cell { white-space: normal; min-width: 140px; }
.lineup-table .group-row th { background: var(--color-surface-2); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); }
.lineup-table tbody[data-group="starters"] tr.lineup-row td { background: color-mix(in srgb, var(--color-success) 9%, transparent); }
.lineup-table tbody[data-group="bench"] tr.lineup-row td { background: color-mix(in srgb, var(--color-primary) 7%, transparent); }
.lineup-reserve tr.lineup-row { opacity: 0.55; }
.lineup-reserve tr.lineup-row:hover, .lineup-reserve tr.lineup-row.is-selected { opacity: 1; }
.lineup-row { cursor: grab; }
.lineup-row.is-selected td { outline: 2px solid var(--color-primary); outline-offset: -2px; }
.lineup-row.is-drop-target td { box-shadow: inset 0 2px 0 var(--color-primary); }
.lineup-row.is-dragging { opacity: 0.4; }
tbody.is-drop-target .group-row th { color: var(--color-primary); }
.lineup-row.is-suspended .name-cell a { text-decoration: line-through; }
.slot-cell { font-weight: 700; font-size: 0.8rem; }
.input-number { width: 3.4em; padding: 2px 4px; font-family: var(--font-mono); text-align: right; }
.v-good { color: var(--color-success); }
.v-low { color: var(--color-danger); }
.morale { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.25); vertical-align: middle; }
.morale-high { background: #2e9d4e; }
.morale-good { background: #9ccc3c; }
.morale-low { background: #f0b429; }
.morale-bad { background: #d64545; }
.stars { position: relative; display: inline-block; font-size: 0.85rem; letter-spacing: 1px; line-height: 1; color: var(--color-border); }
.stars::before { content: '★★★★★'; }
.stars::after { content: '★★★★★'; position: absolute; left: 0; top: 0; width: calc(var(--stars) / 5 * 100%); overflow: hidden; color: #e0a800; white-space: nowrap; }

/* Rückennummern und Wunschnummern */
.num-cell { white-space: nowrap; }
.wish-badge { display: inline-block; margin-left: 4px; padding: 0 4px; border-radius: var(--radius); font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; background: #fde3a7; color: #6b4a00; vertical-align: middle; }
.wish-badge.wish-met { background: transparent; color: #c0392b; font-size: 0.8rem; }
.numbers-form .hint { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 0; }

/* Training */
.training-plan select { min-width: 9em; }
.focus-legend { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; font-size: 0.85rem; color: var(--color-text-muted); margin: 10px 0; }
.focus-legend dt { font-weight: 600; color: var(--color-text); }
.focus-legend dd { margin: 0; }
.progress { display: inline-block; width: 60px; height: 6px; background: var(--color-border); vertical-align: middle; }
.progress span { display: block; height: 100%; background: var(--color-success); }
.camp-levels { border: 0; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 4px; }
.camp-levels legend { font-weight: 600; margin-bottom: 4px; }

/* Rückennummern-Seite: Raster 1–99 mit Trikots */
.sub-tab-extra { margin-left: auto; }
.number-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
@media (max-width: 1100px) { .number-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 600px) { .number-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.number-cell { position: relative; min-height: 58px; border: 1px dashed var(--color-border); border-radius: var(--radius); padding: 14px 3px 3px; background: var(--color-surface); }
.number-cell.is-taken { border-style: solid; border-color: var(--color-line); }
.cell-number { position: absolute; top: 2px; left: 5px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--color-text-muted); }
.number-cell.is-taken .cell-number { color: var(--color-text); }
.number-cell.is-wish { background: #fff3c4; border-color: #e0a800; box-shadow: inset 0 0 0 2px #e0a800; }
.number-cell.is-drop-target, .number-pool.is-drop-target { outline: 3px solid var(--color-primary); }
.shirt-chip { display: flex; flex-direction: column; align-items: flex-start; width: 100%; gap: 0; padding: 3px 5px; border: 0; border-radius: var(--radius); background: var(--club, #1d1d1b); color: var(--club-on, #fff); font: inherit; text-align: left; cursor: grab; line-height: 1.15; position: relative; }
.shirt-chip.is-selected { outline: 3px solid #e0a800; }
.shirt-chip.is-dragging { opacity: 0.4; }
.shirt-name { font-weight: 700; font-size: 0.8rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shirt-meta { font-size: 0.68rem; font-family: var(--font-mono); opacity: 0.85; }
.shirt-wish { position: absolute; top: 2px; right: 3px; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; }
.shirt-chip.wish-open .shirt-wish { background: #fde3a7; color: #6b4a00; padding: 0 3px; border-radius: 2px; }
.number-pool { margin-top: 10px; padding: 8px; border: 1px dashed var(--color-line); border-radius: var(--radius); min-height: 60px; }
.pool-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 4px; }
.pool-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 4px; }
.shirt-number { font-weight: 600; }

.sub-tab-extra + .sub-tab-extra { margin-left: 0; }
.secondary-cell { font-size: 0.78rem; color: var(--color-text-muted); }

/* Kaderverwaltung: drei Spalten mit Spielerkarten */
.squad-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 900px) { .squad-columns { grid-template-columns: 1fr; } }
.squad-column { border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-surface); padding: 8px; min-height: 200px; }
.squad-column.is-drop-target { outline: 3px solid var(--color-primary); }
.squad-column.is-blocked { opacity: 0.45; background: repeating-linear-gradient(135deg, var(--color-surface) 0 8px, var(--color-surface-2) 8px 16px); }
.squad-column-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.squad-column-head h2 { margin: 0; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.squad-count { margin-left: auto; font-size: 0.85rem; }
.squad-count.is-full { color: var(--color-danger); font-weight: 600; }
.squad-note { font-size: 0.78rem; width: 100%; }
.squad-cards { display: flex; flex-direction: column; gap: 3px; }
.squad-card { display: grid; grid-template-columns: 2.2em 2.6em 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; width: 100%; padding: 4px 6px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface-2); color: var(--color-text); font: inherit; text-align: left; cursor: grab; }
.squad-card:hover, .squad-card:focus-visible { border-color: var(--color-line); }
.squad-card.is-selected { outline: 3px solid #e0a800; }
.squad-card.is-dragging { opacity: 0.4; }
.squad-card.is-moved { border-color: var(--color-primary); box-shadow: inset 3px 0 0 var(--color-primary); }
.squad-card-number { grid-row: 1 / 3; font-family: var(--font-mono); font-weight: 600; text-align: right; }
.squad-card .pos { grid-row: 1 / 3; }
.squad-card-name { font-weight: 600; font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.squad-card-meta { grid-column: 3; font-size: 0.75rem; color: var(--color-text-muted); font-family: var(--font-mono); }

/* Teamdynamik */
.chip-number { position: relative; }
.chip-captain { position: absolute; right: -8px; top: -6px; width: 15px; height: 15px; border-radius: 50%; background: #f5c542; color: #1d1d1b; font-size: 0.6rem; font-weight: 700; display: grid; place-items: center; border: 1px solid #1d1d1b; }
.mood { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.mood-value { font-family: var(--font-mono); font-size: 2.2rem; font-weight: 600; }
.mood-great .mood-value { color: var(--color-success); }
.mood-bad .mood-value { color: var(--color-danger); }
.mood-bar { flex: 1 1 200px; height: 10px; background: var(--color-border); position: relative; }
.mood-bar span { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #d64545, #f0b429 45%, #2e9d4e 75%); }
.factor-list { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-size: 0.9rem; margin: 10px 0 0; }
.factor-list dd { margin: 0; font-family: var(--font-mono); text-align: right; }
.trend-up { color: var(--color-success); }
.trend-down { color: var(--color-danger); }
.share-bar { display: inline-block; width: 56px; height: 6px; background: var(--color-border); position: relative; vertical-align: middle; margin-right: 4px; }
.share-bar span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--color-line); }
.share-bar i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--color-primary); }
.inline-captain { position: static; display: inline-grid; vertical-align: middle; }

/* Kalender: Woche und Monat */
.segmented a { display: flex; align-items: center; padding: 6px 12px; font-weight: 600; color: var(--color-text); text-decoration: none; }
.segmented a + a { border-left: 1px solid var(--color-line); }
.segmented a.is-active { background: var(--color-ink); color: var(--color-ink-text); }
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.cal-label { min-width: 11em; text-align: center; font-size: 1.05rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--color-line); border-left: 1px solid var(--color-border); }
.cal-weekday { padding: 4px 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); background: var(--color-surface-2); border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-line); }
.cal-day { display: flex; flex-direction: column; gap: 3px; min-width: 0; min-height: 96px; padding: 4px; background: var(--color-surface); border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.cal-day.is-outside { background: var(--color-surface-2); }
.cal-day.is-outside .cal-date, .cal-day.is-outside .cal-entry { opacity: 0.55; }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--color-primary); }
.cal-date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--color-text-muted); }
.cal-day.is-today .cal-date { color: var(--color-primary); font-weight: 700; }
.cal-entry { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 3px 5px; border-left: 3px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface-2); color: var(--color-text); text-decoration: none; font-size: 0.78rem; line-height: 1.2; }
.cal-entry:hover, .cal-entry:focus-visible { background: var(--color-accent-soft); }
.cal-entry.result-win { border-left-color: var(--color-success); }
.cal-entry.result-draw { border-left-color: #9a968c; }
.cal-entry.result-loss { border-left-color: var(--color-danger); }
.cal-entry.is-live { border-left-color: var(--color-primary); }
.cal-entry.is-pending { border: 1px dashed var(--color-line); border-left: 3px dashed var(--color-line); background: transparent; color: var(--color-text-muted); font-style: italic; }
.cal-entry.is-bye { opacity: 0.8; }
.cal-ha { font-family: var(--font-mono); font-weight: 700; }
.cal-time { font-family: var(--font-mono); color: var(--color-text-muted); }
.cal-opponent { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-score { font-family: var(--font-mono); font-weight: 600; }
.comp-icon { display: inline-grid; place-items: center; flex: 0 0 16px; width: 16px; height: 16px; }
.comp-icon svg { width: 14px; height: 14px; fill: currentColor; }
.comp-league, .comp-friendly { color: var(--color-text-muted); }
.comp-cup { color: #a8780a; }
.comp-international { color: #2b6cb0; }
.comp-clan { color: #7b3fa0; }
:root[data-theme="dark"] .comp-cup { color: #f5c542; }
:root[data-theme="dark"] .comp-international { color: #7fb2ff; }
:root[data-theme="dark"] .comp-clan { color: #c79bff; }
@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] .comp-cup { color: #f5c542; }
    :root[data-theme="system"] .comp-international { color: #7fb2ff; }
    :root[data-theme="system"] .comp-clan { color: #c79bff; }
}
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 10px; font-size: 0.85rem; }
.cal-legend-item { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 760px) {
    .cal-month .cal-day { min-height: 70px; padding: 2px; }
    .cal-month .cal-entry { flex-wrap: wrap; font-size: 0.7rem; gap: 2px; padding: 2px 3px; }
    .cal-month .cal-opponent { flex-basis: 100%; }
}
.fixture-time .comp-icon { vertical-align: -3px; margin-right: 2px; }

/* Kalender, Woche: Zeitachse 0–24 Uhr, Spiele an ihrer Anstoßzeit, Höhe nach Spieldauer */
.cal-time-wrap { --hour: 42px; max-height: calc(var(--hour) * 15 + 36px); overflow: auto; border: 1px solid var(--color-line); background: var(--color-surface); }
.cal-time-grid { min-width: 760px; }
.cal-time-head, .cal-time-body { display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); }
.cal-time-head { position: sticky; top: 0; z-index: 3; background: var(--color-surface-2); border-bottom: 1px solid var(--color-line); }
.cal-time-dayhead { padding: 6px 8px; font-size: 0.82rem; border-left: 1px solid var(--color-border); }
.cal-time-dayhead span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); }
.cal-time-dayhead.is-today, .cal-time-dayhead.is-today span { color: var(--color-primary); }
.cal-time-body { position: relative; height: calc(var(--hour) * 24); }
.cal-hours { position: relative; }
.cal-hour { position: absolute; right: 6px; margin-top: 2px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--color-text-muted); }
.cal-time-day { position: relative; border-left: 1px solid var(--color-border); background-image: repeating-linear-gradient(to bottom, var(--color-border) 0, var(--color-border) 1px, transparent 1px, transparent var(--hour)); }
.cal-time-day.is-today { background-color: color-mix(in srgb, var(--color-primary) 6%, transparent); }
.cal-time-entry { position: absolute; left: 3px; right: 3px; z-index: 1; min-height: 22px; overflow: hidden; align-items: flex-start; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }
.cal-time-entry .cal-opponent { font-weight: 600; }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--color-danger); z-index: 2; pointer-events: none; }
.cal-now::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-danger); }
.cal-training { border-left: 3px solid #2a7f62; background: color-mix(in srgb, #2a7f62 12%, var(--color-surface)); z-index: 0; }
.cal-training .cal-opponent { font-weight: 500; }
.cal-training.is-camp { border-left-color: #a8780a; background: color-mix(in srgb, #a8780a 14%, var(--color-surface)); }
.cal-training.is-skipped { opacity: 0.55; background: var(--color-surface-2); border-left-style: dashed; }
.cal-training.is-skipped .cal-time, .cal-training.is-skipped .cal-opponent { text-decoration: line-through; }
.cal-skipped { font-size: 0.7rem; color: var(--color-text-muted); white-space: nowrap; }
.comp-training { color: #2a7f62; }
.comp-reserve, .comp-youth { color: var(--color-text-muted); }

/* Vereinsgelände */
.facility-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; }
.facility-card { display: flex; flex-direction: column; margin: 0; }
.facility-card h2 { margin-bottom: 6px; }
.facility-card form { margin-top: auto; }
.facility-card .button { width: 100%; white-space: normal; }
.facility-level { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.level-steps { display: inline-flex; gap: 3px; }
.level-steps span { width: 12px; height: 12px; border-radius: 3px; background: var(--color-border); box-sizing: border-box; }
.level-steps span.on { background: var(--color-primary); }
.level-steps span.standard { outline: 2px solid var(--color-text-muted); outline-offset: 1px; }
.facility-running { margin-top: auto; }
.facility-level.is-missing strong { color: var(--color-text-muted); }

/* Verletzungen */
.injury-badge { display: inline-block; color: var(--color-danger); font-weight: 700; line-height: 1; }
dd.injury { color: var(--color-danger); }
.facility-card .facts { grid-template-columns: 6.5em 1fr; gap: 6px 12px; margin-bottom: 14px; }
/* B-Team- und Jugendspiele: dezenter als die Spiele des A-Teams; in der Woche nebeneinander (beide um 23:00) */
.cal-entry.cal-squad { font-size: 0.72rem; background: color-mix(in srgb, var(--color-surface-2) 60%, transparent); }
.cal-entry.cal-squad .cal-opponent { font-weight: 500; }
.cal-time-entry.cal-squad-reserve { right: calc(50% + 1px); }
.cal-time-entry.cal-squad-youth { left: calc(50% + 1px); }
.fixture.fixture-squad { font-size: 0.92em; }
:root[data-theme="dark"] .comp-training { color: #6fd3ad; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .comp-training { color: #6fd3ad; } }
.cal-training { flex-wrap: wrap; align-content: flex-start; }
.cal-training .cal-opponent { flex-basis: 100%; white-space: normal; }

/* Verwaltung: Länder */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.admin-countries tr.is-inactive td { color: var(--color-text-muted); }
.admin-countries form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.admin-countries td:last-child { white-space: nowrap; }
.admin-countries select { width: auto; padding: 2px 6px; }

/* Transfermarkt */
.transfer-window { margin: 0 0 var(--space); padding: 8px 12px; border-left: 4px solid var(--color-success); background: var(--color-surface-2); font-weight: 600; }
.transfer-window.is-closed { border-left-color: var(--color-danger); }
.transfer-filter, .transfer-box .form-inline { flex-direction: row; align-items: flex-end; }
.transfer-filter { margin: 0 0 var(--space); }
.transfer-table td.num { white-space: nowrap; }
.transfer-table td.num .muted { font-size: 0.78rem; }
.transfer-player-name { margin: 0; font-size: 1.35rem; font-weight: 700; }
.transfer-filter select, .transfer-filter input { width: auto; min-width: 7em; }
.transfer-table tr.own td { background: var(--color-surface-2); }
.transfer-table tr.leading td { background: var(--color-accent-soft); }
.transfer-table tr.reversed td, .transfer-history li.reversed { color: var(--color-text-muted); text-decoration: line-through; }
.transfer-table td .flag { vertical-align: -3px; }
.transfer-table .club-link span, .transfer-history .club-link span { max-width: 14em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transfer-player .player-header { margin-bottom: 8px; }
.transfer-player h2 { margin: 0; }
.transfer-bid-form { max-width: 34em; margin-top: var(--space); padding-top: var(--space); border-top: 1px solid var(--color-border); }
.transfer-bid-form h3 { margin-top: 0; }
.transfer-box details > summary { cursor: pointer; font-weight: 600; margin: 6px 0; }
.transfer-box .form-inline input { width: 10em; }
.transfer-history li { padding: 3px 0; }
.transfer-history .club-link { display: inline-flex; gap: 4px; align-items: center; }
tr.bid-outbid td, tr.bid-lost td { color: var(--color-text-muted); }
tr.bid-won td { font-weight: 600; }
.pager { align-items: center; margin-top: 10px; }

/* Stadion */
.arena-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; }
.arena-top .card { margin: 0; }
.arena-plan { display: block; width: 100%; max-width: 280px; margin: 0 auto 10px; }
.arena-ice { fill: #eef5fb; stroke: #9fb3c8; stroke-width: 1; }
.arena-ice-line { fill: none; stroke-width: 1.6; }
.arena-ice-line.is-red { stroke: #c8102e; }
.arena-ice-line.is-blue { stroke: #1f5aa6; }
.arena-ice-line.is-thin { stroke-width: 0.8; }
.arena-crease { fill: #bcd8ef; stroke: #c8102e; stroke-width: 0.6; }
.arena-goal { fill: none; stroke: #c8102e; stroke-width: 0.6; }
.arena-dot { fill: #c8102e; }
.arena-stand rect { fill: var(--color-border); stroke: var(--color-text-muted); stroke-width: 1; }
.arena-stand.is-building rect { stroke-dasharray: 4 3; stroke-width: 2; opacity: 0.75; }
.arena-stand text { fill: var(--color-text); font-size: 11px; font-weight: 600; }
.requirement-list { list-style: none; padding: 0; margin: 0 0 8px; }
.requirement-list li { padding: 2px 0; }
.requirement-list li.is-ok span { color: var(--color-success); font-weight: 700; }
.requirement-list li.is-missing span { color: var(--color-danger); font-weight: 700; }
.license-status { font-weight: 600; }
.license-status.is-ok { color: var(--color-success); }
.license-status.is-missing { color: var(--color-danger); }
.arena-license h3 { margin: 10px 0 4px; font-size: 1rem; }
.arena-rebuild { margin-top: auto; }
.arena-rebuild > summary { cursor: pointer; font-weight: 600; margin: 6px 0; }
.arena-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; align-items: end; }
.arena-form label { display: flex; flex-direction: column; gap: 2px; font-size: 0.88rem; margin: 0; }
.arena-form label.checkbox { flex-direction: row; align-items: center; gap: 6px; }
.arena-form input[type="number"] { width: 100%; }
.arena-form .arena-preview, .arena-form .button { grid-column: 1 / -1; margin: 0; }
.arena-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px; margin-top: 0; }
.arena-legend .swatch { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-left: 8px; background: var(--color-border); border: 1px solid var(--color-text-muted); }
.arena-legend .swatch.is-roofed { background: color-mix(in srgb, #9aa6b8 55%, var(--color-surface)); border-color: #7d8aa0; }
.arena-legend .swatch.is-building { background: transparent; border: 2px dashed var(--color-text-muted); }
/* deaktivierte Knöpfe (z. B. zu wenig Geld) */
button:disabled, .button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Spieltaginfrastruktur */
.matchday-area { border: 1px solid var(--color-border); }
.matchday-area legend { padding: 0; }
.matchday-area legend h2 { margin: 0 0 4px; }
.matchday-option { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: start; padding: 6px 8px; margin: 0 0 4px; border-radius: var(--radius); cursor: pointer; }
.matchday-option input { margin-top: 3px; grid-row: span 2; }
.matchday-option.is-current { background: var(--color-surface-2); }
.matchday-option-effect { font-size: 0.85rem; color: var(--color-text-muted); }
.matchday-form > .button { margin: 0 0 var(--space); }

/* Trikots */
.kit { display: inline-block; vertical-align: middle; flex: none; }
.kit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 12px; }
.kit-card { margin: 0; }
.kit-preview { display: flex; justify-content: center; margin: 4px 0 12px; }
.kit-form fieldset { border: 0; padding: 0; margin: 0 0 10px; }
.kit-form legend { font-weight: 600; margin-bottom: 4px; }
.kit-patterns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.kit-pattern-option { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--color-border); border-radius: var(--radius); cursor: pointer; font-size: 0.78rem; text-align: center; }
.kit-pattern-option input { position: absolute; opacity: 0; pointer-events: none; }
.kit-pattern-option:has(input:checked) { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); }
.kit-pattern-option:has(input:focus-visible) { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.kit-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.kit-swatch { position: relative; cursor: pointer; }
.kit-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.kit-swatch span { display: block; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--color-border); }
.kit-swatch input:checked + span { border-color: var(--color-primary); box-shadow: 0 0 0 2px var(--color-primary); }
.kit-swatch input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.club-kits .kit { margin-right: 4px; }
.match-team-name .kit { vertical-align: -5px; }

/* Fanartikel */
.merch-table input[type="number"] { width: 5.5em; }
.merch-table .merch-order { white-space: nowrap; }
.merch-table .merch-order .button { padding: 2px 10px; }
.merch-table td.is-low { color: var(--color-danger); font-weight: 600; }

/* Mitarbeiter */
.staff-form { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.staff-form label { display: flex; flex-direction: column; gap: 2px; }
.staff-options { margin: 0 0 12px; padding-left: 1.1em; }

/* Fans */
.fan-gauge { display: block; width: 100%; max-width: 260px; margin: 0 auto; }
.fan-gauge path { fill: none; stroke-width: 14; }
.fan-gauge .gauge-rage { stroke: var(--color-danger); }
.fan-gauge .gauge-unrest { stroke: color-mix(in srgb, var(--color-danger) 55%, #e0b030); }
.fan-gauge .gauge-mixed { stroke: #e0b030; }
.fan-gauge .gauge-good { stroke: var(--color-success); }
.fan-gauge .gauge-needle { stroke: var(--color-text); stroke-width: 3; stroke-linecap: round; }
.fan-gauge .gauge-hub { fill: var(--color-text); }
.fan-mood-value { text-align: center; margin: 4px 0 10px; }
.fan-influences { margin: 0 0 8px; padding-left: 1.1em; }
.fan-influences .is-bad, td.is-bad { color: var(--color-danger); }
.fan-influences .is-good, td.is-good { color: var(--color-success); }
.fan-campaigns { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.fan-campaign { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--color-border); border-radius: var(--radius); }

/* Kaderplanung */
.planning-table td { vertical-align: top; }
.planning-player { display: inline-block; margin: 0 10px 2px 0; white-space: nowrap; }
.planning-table tr.planning-short td:last-child { color: var(--color-danger); font-weight: 600; }
.planning-table tr.planning-expiring td:last-child { color: #c98a00; font-weight: 600; }
dd.is-bad { color: var(--color-danger); font-weight: 600; }
dd.is-warn { color: #c98a00; font-weight: 600; }
dd.is-good { color: var(--color-success); font-weight: 600; }
.planning-note { display: flex; gap: 4px; align-items: center; margin: 0; }
.planning-note input { min-width: 10em; }
.planning-note .button { padding: 2px 8px; }
.watch-form { display: flex; gap: 10px; align-items: center; margin-top: 8px; }

/* Gate offene Beta: Konto löschen, Feedback, Betrieb */
.card-danger { border-color: var(--color-danger); }
.button-danger, button.button-danger { background: transparent; border: 1px solid var(--color-danger); color: var(--color-danger); }
.button-danger:hover, .button-danger:focus-visible { background: var(--color-danger); color: var(--color-bg); }
.badge-beta { background: var(--club-accent, #ffd200); border-color: transparent; color: #111; font-weight: 600; font-size: 0.72rem; vertical-align: middle; }
.feedback-categories { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.feedback-categories legend { padding: 0; margin-bottom: 4px; font-weight: 600; }
.feedback-categories input[type="radio"] { width: auto; flex: none; margin: 3px 0 0; }
.feedback-categories .checkbox { font-weight: normal; }
.feedback-entry { margin-bottom: 12px; }
.feedback-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-bottom: 6px; }
.feedback-message { white-space: normal; overflow-wrap: anywhere; }
.ops-table td:first-child { white-space: nowrap; }
.ops-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--color-success); vertical-align: middle; }
.ops-warn .ops-dot { background: #c98a00; }
.ops-fail .ops-dot { background: var(--color-danger); }
.badge.ops-ok { color: var(--color-success); }
.badge.ops-warn { color: #c98a00; }
.badge.ops-fail { color: var(--color-danger); }

/* Stadion: Schrägansicht (App\View\StadiumView), Varianten mit Vorschaubild (App\View\StadiumArt) */
.arena-hero { padding: 10px 12px; }
.arena-iso-wrap { width: 100%; }
.arena-iso { display: block; width: 100%; height: auto; max-height: 520px; }
.iso-ground { fill: color-mix(in srgb, #1d2633 14%, var(--color-surface)); }
.iso-ice { fill: #eaf3fb; stroke: #9fb3c8; stroke-width: 0.3; }
.iso-line { fill: none; stroke-width: 0.45; }
.iso-line.iso-red { stroke: #c8102e; }
.iso-line.iso-blue { stroke: #1f5aa6; }
.iso-line.iso-thin { stroke-width: 0.25; }
.iso-crease { fill: #9cc7ec; stroke: #c8102e; stroke-width: 0.15; }
.iso-goal { fill: none; stroke: #c8102e; stroke-width: 0.5; }
.iso-boards { fill: none; stroke: #ffffff; stroke-width: 0.7; }
.iso-rig .iso-truss { fill: none; stroke: #5b6470; stroke-width: 0.5; }
.iso-rig circle { fill: #ffe9a6; stroke: #c9a227; stroke-width: 0.2; }
.iso-rig.is-projection circle { fill: #c9b6ff; stroke: #7b5cd6; }
.iso-stand .iso-top { fill: #8a96a8; stroke: #556072; stroke-width: 0.35; }
.iso-stand.is-standing .iso-top { fill: #a3907c; stroke: #6b5a49; }
.iso-stand .iso-wall { fill: #5b6576; stroke: #3d4553; stroke-width: 0.35; }
.iso-stand .iso-end { fill: #6d7788; stroke: #3d4553; stroke-width: 0.35; }
.iso-stand .iso-row { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 0.35; }
.iso-stand.is-fanblock .iso-top { fill: var(--club-accent, #ffd200); stroke: color-mix(in srgb, var(--club-accent, #ffd200) 60%, #000); }
.iso-stand.is-away .iso-top { fill: #5d8fd6; stroke: #2f5a99; }
.iso-stand.is-building .iso-top, .iso-stand.is-building .iso-wall { stroke: #e08a00; stroke-width: 0.9; stroke-dasharray: 2 1.5; }
.iso-label { fill: var(--color-text); font-size: 5.2px; font-weight: 600; paint-order: stroke; stroke: var(--color-surface); stroke-width: 1.2px; }
.iso-board { fill: #2c2c2c; stroke: #111; stroke-width: 0.3; }
.iso-digit-text { fill: #ff4d3a; font: 700 4.4px var(--font-mono, monospace); }
.iso-screen { fill: #1f4f8f; stroke: #0d1f3a; stroke-width: 0.4; }
.iso-screen-side { fill: #173d70; }
.iso-cube-top { fill: #26313f; }
.iso-cable { fill: none; stroke: #6b7280; stroke-width: 0.4; }
.arena-legend .swatch.is-fanblock { background: var(--club-accent, #ffd200); border-color: color-mix(in srgb, var(--club-accent, #ffd200) 60%, #000); }
.arena-legend .swatch.is-away { background: #5d8fd6; border-color: #2f5a99; }
.iso-preview-note { margin-left: 10px; font-weight: 600; color: #e08a00; }
.arena-stand.is-fanblock rect { fill: var(--club-accent, #ffd200); }
.arena-stand.is-away rect { fill: #5d8fd6; }
.arena-layout-form { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; }
.arena-layout-form label { display: flex; flex-direction: column; gap: 2px; min-width: 14em; }
.variant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.variant-card { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 10px; }
.variant-card h3 { margin: 4px 0 0; font-size: 1rem; }
.variant-card.is-current { outline: 2px solid var(--color-success); }
.variant-card form { margin-top: auto; }
.variant-card .button { width: 100%; }
.variant-value { margin: 0; font-weight: 600; }
.hint.is-warn { color: #c98a00; }
.arena-art { display: block; width: 100%; height: auto; border-radius: 4px; }
.art-hall { fill: #1c2433; }
.art-ice { fill: #eaf3fb; }
.art-boards { fill: #ffffff; stroke: #9fb3c8; stroke-width: 0.8; }
.art-stand { fill: #8a96a8; stroke: #556072; stroke-width: 1; }
.art-row { stroke: rgba(255, 255, 255, 0.4); stroke-width: 1; }
.art-roof { fill: #3a4350; }
.art-post { stroke: #9aa6b8; stroke-width: 2; }
.art-truss { stroke: #5b6470; stroke-width: 2; }
.art-lamp { fill: #fff3a3; }
.art-light-cone { fill: rgba(255, 240, 160, 0.18); }
.art-light-cone.art-dim { opacity: 0.5; }
.art-beam { fill: rgba(255, 233, 166, 0.45); }
.art-beam-alt { fill: rgba(185, 164, 255, 0.45); }
.art-projection { fill: rgba(127, 208, 255, 0.55); }
.art-none { fill: #9aa6b8; font-size: 22px; }
.art-board { fill: #2c2c2c; stroke: #9aa6b8; stroke-width: 0.8; }
.art-sign-text { fill: #ffffff; font: 700 7px var(--font-mono, monospace); }
.art-panel { fill: #111111; stroke: #9aa6b8; stroke-width: 1; }
.art-digits { fill: #ff4d3a; font: 700 14px var(--font-mono, monospace); letter-spacing: 1px; }
.art-screen { fill: #1f5fae; stroke: #0d1f3a; stroke-width: 1; }
.art-screen-side { fill: #174a88; }
.art-screen-line { fill: none; stroke: #9fd0ff; stroke-width: 1.5; }
.art-cube-top { fill: #26313f; stroke: #0d1f3a; stroke-width: 1; }

/* Tutorial: geführte Tour (tour.js) und Hilfeseite */
.tour-shade { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 900; }
.tour-spot { position: fixed; z-index: 901; border-radius: 6px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55); outline: 2px solid var(--club-accent, #ffd200); pointer-events: none; transition: top 0.2s, left 0.2s, width 0.2s, height 0.2s; }
.tour-pop { position: fixed; z-index: 902; width: min(360px, calc(100vw - 24px)); padding: 14px 16px; border-radius: 8px; background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.tour-pop.is-center { top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); }
.tour-pop h3 { margin: 2px 0 6px; font-size: 1.05rem; }
.tour-pop p { margin: 0 0 10px; }
.tour-count { font-size: 0.78rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.tour-actions { display: flex; gap: 8px; justify-content: flex-end; }
.tour-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 0.82rem; }
.tutorial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tutorial-card { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.tutorial-card .button { align-self: flex-start; margin-top: auto; }
.tutorial-offer { border-color: var(--club-accent, #ffd200); }
.tutorial-offer .button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Paket 12: Auswärtsfarben, Identität, Finanzampel bei „Verein finden“ */
.color-chips-away { display: inline-flex; gap: 6px; margin-left: 4px; padding-left: 10px; border-left: 1px solid var(--color-border); }
.color-chips-away:empty { display: none; }
.identity-view { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.inline-fields .button { align-self: flex-start; }
.finance-light { display: inline-flex; align-items: center; gap: 6px; font-size: .9em; white-space: nowrap; }
.finance-light::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--finance-light, #8a8d8f); }
.finance-light.is-good { --finance-light: #2e8b57; }
.finance-light.is-tight { --finance-light: #d9a400; }
.finance-light.is-debt { --finance-light: var(--color-danger); }

/* Spielwelt (Paket 1): Vereinsfarben als Farbfelder */
.color-swatches { display: flex; gap: 6px; align-items: center; }
.color-swatch { display: inline-block; width: 22px; height: 22px; border-radius: 4px; border: 1px solid var(--color-border); }

/* Saison (Paket 2): Tabellenzonen, Serien, Ergebnisse */
.standings tr.zone-playoff td:first-child { box-shadow: inset 3px 0 0 #2e8b57; }
.standings tr.zone-relegation td:first-child { box-shadow: inset 3px 0 0 #d4a017; }
.zone-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; }
.zone-key.zone-playoff { background: #2e8b57; }
.zone-key.zone-relegation { background: #d4a017; }
.series-list { list-style: none; padding: 0; margin: 0 0 12px; }
.series-list li { padding: 4px 0; border-bottom: 1px solid var(--color-border); }
.series-winner { font-weight: 600; }
tr.result-win td:last-child { color: #2e8b57; }
tr.result-loss td:last-child { color: #b23a0a; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.title-list { margin: 0; padding-left: 18px; }
/* Spielbericht (Paket 3) */
.game-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; text-align: center; }
.game-head .club-link { display: inline-flex; align-items: center; gap: 8px; }
.game-score { font-size: 2.2rem; font-variant-numeric: tabular-nums; min-width: 4ch; }
.event-list { list-style: none; padding: 0; margin: 0 0 12px; }
.event-list li { padding: 5px 0; border-bottom: 1px solid var(--color-border); }
.event-time { display: inline-block; min-width: 5.5ch; font-variant-numeric: tabular-nums; color: var(--color-text-muted); }
.event-score { display: inline-block; min-width: 3.5ch; font-weight: 600; font-variant-numeric: tabular-nums; }
.badge-situation { margin-left: 6px; font-size: 0.75rem; }
/* Spielverlauf: Zeit | Spielstand oder Art | Text; Tore hervorgehoben, Strafen und weitere Ereignisse zurückhaltend */
.timeline li { display: grid; grid-template-columns: 5.5ch 4.5rem 1fr; gap: 6px; align-items: baseline; }
.timeline .event-time { min-width: 0; }
.timeline .event-kind { min-width: 0; }
.timeline .event-goal { background: color-mix(in srgb, var(--color-primary) 7%, transparent); }
.timeline .event-goal .event-score { font-size: 1.05rem; }
.badge-penalty { font-size: 0.72rem; background: color-mix(in srgb, #d97706 18%, transparent); color: inherit; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 5ch 3.6rem 1fr; } }
.badge-role { margin-left: 4px; padding: 0 5px; font-size: 0.7rem; font-weight: 700; }
.result-win { color: #2e8b57; }
.star-list { margin: 0; padding-left: 22px; }
.player-stats td, .player-stats th { white-space: nowrap; }
.period-table td .muted { font-size: 0.85em; }
@media (max-width: 640px) { .game-score { font-size: 1.6rem; } .player-stats { display: block; overflow-x: auto; } }
/* Live-Spiel (Paket 4) */
.live-board { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.live-clock { margin: 0; font-size: 1.2rem; }
.live-clock strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; margin-left: 6px; }
.live-meta { margin: 0; display: flex; gap: 16px; color: var(--color-text-muted); }
.ticker { list-style: none; margin: 0; padding: 0; max-height: 32rem; overflow-y: auto; }
.ticker-item { padding: 6px 0; border-bottom: 1px solid var(--color-border); }
.ticker-goal, .ticker-goal_overturned, .ticker-final { font-weight: 600; }
.ticker-penalty, .ticker-goalie_pulled, .ticker-challenge { color: var(--color-text); }
.ticker-comment { color: var(--color-text-muted); }
.control-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 10px; }
.control-label { min-width: 9rem; font-weight: 600; font-size: 0.9rem; }
.control-form { margin: 0 0 10px; }
.button-warn { background: #b23a0a; border-color: #b23a0a; color: #ffffff; }
tr.row-live td:first-child { box-shadow: inset 3px 0 0 #d0312d; }

/* ------------------------------------------------------------------ Aufstellung, Eisfeld, Verein finden (Paket 5) */
.lineup-layout { display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); gap: var(--space); align-items: start; margin-bottom: var(--space); }
.lineup-layout > .card { margin: 0; }
.lineup-rink-card { grid-row: span 2; position: sticky; top: var(--space); }
.lineup-grid-card, .lineup-squad-card { grid-column: 2; overflow-x: auto; }
@media (max-width: 900px) {
    .lineup-layout { grid-template-columns: minmax(0, 1fr); }
    .lineup-rink-card { grid-row: auto; position: static; }
    .lineup-grid-card, .lineup-squad-card { grid-column: auto; }
}
.lineup-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.lineup-tab { padding: 4px 8px; font: inherit; font-size: 0.8rem; line-height: 1.2; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); color: var(--color-text); cursor: pointer; }
.lineup-tab:hover { border-color: var(--color-primary); }
.lineup-tab.active { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-ink-text); }

.rink {
    --rink-ice: #eef5fb; --rink-board: #1d1d1b; --rink-red: #c8102e; --rink-blue: #1f5aa6; --rink-crease: #bcd8ef;
    position: relative; width: 100%; max-width: 320px; margin: 0 auto; aspect-ratio: 100 / 140;
}
:root[data-theme="dark"] .rink { --rink-ice: #1a2638; --rink-board: #9aa8bd; --rink-red: #e0566a; --rink-blue: #5b8fd6; --rink-crease: #24405f; }
@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] .rink { --rink-ice: #1a2638; --rink-board: #9aa8bd; --rink-red: #e0566a; --rink-blue: #5b8fd6; --rink-crease: #24405f; }
}
.rink-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.rink-board { fill: var(--rink-ice); stroke: var(--rink-board); stroke-width: 1; }
.rink-red { stroke: var(--rink-red); stroke-width: 1.2; }
.rink-thin { stroke-width: 0.5; }
.rink-blue { stroke: var(--rink-blue); stroke-width: 1.8; }
.rink-circle { fill: none; stroke: var(--rink-red); stroke-width: 0.5; }
.rink-dot { fill: var(--rink-red); }
.rink-crease { fill: var(--rink-crease); stroke: var(--rink-red); stroke-width: 0.4; }
.rink-goal { fill: none; stroke: var(--rink-red); stroke-width: 0.6; }
.rink-slot {
    position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 1px;
    width: 30%; min-height: 40px; padding: 4px 4px; border: 2px solid var(--color-ink); border-radius: 12px;
    background: var(--color-surface); color: var(--color-text); font: inherit; font-size: 0.78rem; line-height: 1.15;
    cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none;
}
.rink-slot:hover { border-color: var(--color-primary); }
.rink-slot.is-empty { border-style: dashed; color: var(--color-text-muted); }
.rink-goalie { cursor: default; border-color: var(--color-text-muted); }
.rink-goalie:hover { border-color: var(--color-text-muted); }
.rink-pos { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em; color: var(--color-text-muted); }
.rink-name { max-width: 100%; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

.lineup-grid { min-width: 560px; }
.lineup-grid td { padding: 3px 3px; }
.lineup-slot {
    display: block; width: 100%; min-width: 54px; min-height: 34px; padding: 4px 6px; overflow: hidden;
    border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); color: var(--color-text);
    font: inherit; font-size: 0.85rem; text-align: left; text-overflow: ellipsis; white-space: nowrap;
    cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none;
}
.lineup-slot:hover { border-color: var(--color-primary); }
.lineup-slot.is-empty { border-style: dashed; color: var(--color-text-muted); }
.lineup-slot.is-selected, .rink-slot.is-selected { outline: 3px solid var(--color-primary); outline-offset: 1px; }
.lineup-unused { opacity: 0.45; }

.lineup-squad { min-width: 520px; }
.lineup-squad-head th { padding-top: 10px; background: transparent; color: var(--color-text-muted); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; }
.lineup-player { cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.lineup-player:hover td { background: var(--color-accent-soft); }
.lineup-player.is-used td:nth-child(-n+6) { color: var(--color-text-muted); }
.lineup-player.is-selected td { background: var(--color-accent-soft); }
.lineup-player.is-selected td:first-child { box-shadow: inset 4px 0 0 var(--color-primary); }
.lineup-player:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -2px; }
.lineup-squad [data-use] { color: var(--color-text-muted); font-size: 0.8rem; white-space: nowrap; }

.finance-good { border-color: currentColor; color: var(--color-success); }
.finance-tight { border-color: currentColor; color: #8a6400; }
.finance-debt { border-color: currentColor; color: var(--color-danger); }
:root[data-theme="dark"] .finance-tight { color: #f2c14e; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .finance-tight { color: #f2c14e; } }

/* Geschäftsführer auf der Mitarbeiterseite */
.assistant-card { margin-top: 1rem; }
.assistant-tasks { display: grid; gap: .45rem; justify-items: start; margin: .75rem 0; }
.assistant-list { margin: .5rem 0; padding-left: 1.2rem; }
.checkbox.is-disabled { opacity: .6; }

/* Bewerbe (Paket 7): Sieger fett, Weltrunden aufklappbar, Siegerzeile */
.cup-games td.cup-winner .club-link span { font-weight: 600; }
.cup-round { margin-top: 6px; }
.cup-round summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.cup-champion { display: flex; align-items: center; gap: 8px; }
/* Verein gründen: Suchfeld über der Ortsauswahl */
.city-search { margin-bottom: 6px; }

/* Trikots: Vorlagen zum Übernehmen */
.kit-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.kit-preset { padding: 3px; border: 2px solid var(--color-border); border-radius: 6px; background: var(--color-surface); cursor: pointer; line-height: 0; }
.kit-preset:hover, .kit-preset:focus-visible { border-color: var(--color-primary); }
.kit-preset.is-selected { border-color: var(--color-primary); background: var(--color-accent-soft); }

/* Einrichtung nach der Gründung: Schritte */
.setup-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 var(--space); counter-reset: setup; }
.setup-steps li { counter-increment: setup; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-text-muted); }
.setup-steps li::before { content: counter(setup); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--color-border); color: var(--color-text); font-size: 0.75rem; font-weight: 700; }
.setup-steps li.is-current { border-color: var(--color-primary); color: var(--color-text); font-weight: 600; }
.setup-steps li.is-current::before { background: var(--color-primary); color: var(--color-primary-text); }
.setup-steps li.is-done::before { content: '✓'; background: var(--color-success); color: #fff; }
.setup-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: var(--space); }
.away-preview { display: flex; gap: var(--space); align-items: flex-end; flex-wrap: wrap; margin-top: 8px; }
.away-preview figure { margin: 0; text-align: center; }
.away-preview figcaption { font-size: 0.85rem; color: var(--color-text-muted); }
.tiles-label { margin: 6px 0 4px; font-size: 0.8rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* Hilfe & FAQ */
.faq-item { border-bottom: 1px solid var(--color-border); padding: 8px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { margin: 6px 0 0; }
.faq-schedule th[scope="row"] { width: 4rem; vertical-align: top; }
.faq-schedule .faq-day-start td, .faq-schedule .faq-day-start th { border-top: 2px solid var(--color-border); }
.faq-schedule .comp-icon { vertical-align: -3px; margin-right: 4px; }
.faq-schedule td { white-space: normal; }
.faq-schedule td:last-child { min-width: 12rem; }
.faq-schedule .faq-soon td { color: var(--color-text-muted); font-style: italic; }

/* Büro: Lanyard mit Vereinskarte (rechte Spalte; schmal darunter) */
.office-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.office-main { flex: 999 1 640px; min-width: 0; }
.office-aside { flex: 1 0 260px; display: flex; justify-content: center; margin-top: -20px; }
/* Strickschal links (Blockschal in den Vereinsfarben), hängt an einem Haken */
.office-scarf { flex: 0 0 84px; margin-top: 0; }
.scarf-sway { display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; animation: scarf-sway 7s ease-in-out infinite; }
.scarf-knit { display: block; margin-top: -3px; }
@keyframes scarf-sway { 0%, 100% { transform: rotate(.8deg); } 50% { transform: rotate(-.8deg); } }
@media (prefers-reduced-motion: reduce) { .scarf-sway { animation: none; } }
.lanyard { display: flex; flex-direction: column; align-items: center; --ly-font: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif; }
.lanyard-swing { display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; animation: lanyard-swing 6s ease-in-out infinite; }
@keyframes lanyard-swing { 0%, 100% { transform: rotate(1.6deg); } 50% { transform: rotate(-1.6deg); } }
@media (prefers-reduced-motion: reduce) { .lanyard-swing { animation: none; } }
.lanyard-band { width: 32px; height: 250px; box-sizing: border-box; background: var(--ly-band); border-left: 2px solid var(--ly-band-edge); border-right: 2px solid var(--ly-band-edge); display: flex; flex-direction: column; align-items: center; justify-content: space-around; overflow: hidden; padding: 6px 0; }
.lanyard-band span { writing-mode: vertical-rl; font-family: var(--ly-font); font-stretch: condensed; font-weight: 700; font-size: 12px; letter-spacing: .2em; color: var(--ly-band-text); white-space: nowrap; }
.lanyard-clip { margin-top: -2px; }
.lanyard-card { position: relative; margin-top: -10px; width: 240px; height: 340px; padding: 0; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; background: var(--ly-card); color: var(--ly-text); box-shadow: 0 28px 56px rgba(0, 0, 0, .45); cursor: pointer; overflow: hidden; font: inherit; transition: transform .25s ease; }
.lanyard-card:hover { transform: translateY(4px); }
.lanyard-card:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 4px; }
.lanyard-slot { position: absolute; left: 96px; top: 14px; width: 46px; height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .55); box-shadow: inset 0 1px 2px rgba(255, 255, 255, .12); }
.lanyard-frame { position: absolute; inset: 10px; border: 1px solid var(--ly-frame); border-radius: 10px; pointer-events: none; }
.lanyard-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 38px 18px 0; gap: 8px; text-align: center; }
.lanyard-back { display: none; padding-top: 44px; gap: 10px; }
.lanyard-card.is-flipped .lanyard-front { display: none; }
.lanyard-card.is-flipped .lanyard-back { display: flex; }
.lanyard-name { font-family: var(--ly-font); font-stretch: condensed; font-weight: 700; font-size: 28px; line-height: 1.05; color: var(--ly-text); }
.lanyard-league { font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ly-line); }
.lanyard-season { font-size: 11px; letter-spacing: .08em; color: var(--ly-muted); }
.lanyard-rule { position: absolute; left: 34px; right: 34px; bottom: 34px; height: 2px; background: var(--ly-accent); }
.lanyard-rule-short { position: static; width: 40px; flex: 0 0 2px; }
.lanyard-brand { position: absolute; left: 0; right: 0; bottom: 16px; font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--ly-muted); }
.lanyard-role { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--ly-muted); }
.lanyard-manager { font-family: var(--ly-font); font-stretch: condensed; font-weight: 700; font-size: 38px; line-height: 1; color: var(--ly-text); overflow-wrap: anywhere; }
.lanyard-club { font-size: 12px; font-weight: 600; color: var(--ly-line); }
.lanyard-hint { margin: 12px 0 0; font-size: 12px; color: var(--color-text-muted); }
@media (max-width: 1100px) { .office-scarf { display: none; } .office-layout { display: block; } .office-aside { margin-top: 24px; } .lanyard-band { height: 90px; } }

/* Seitenraster: breite Bildschirme nutzen – ab 1400 px zwei Spalten, darunter eine; .span-all über die volle Breite,
   .page-stack mehrere Karten untereinander in einer Spalte */
.page-grid { display: grid; gap: 16px; align-items: start; margin-bottom: 16px; }
.page-grid > *, .page-stack > * { min-width: 0; margin: 0; }
.page-grid .card, .page-stack .card { margin: 0; }
.page-grid > .card { overflow-x: auto; }
.page-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 1400px) {
    .page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-grid > .span-all { grid-column: 1 / -1; }
}

/* ======================================================================
   Eishockey-Look: hell = „Eisfläche“ (Spielfeldlinien, Bande), dunkel = „Arena bei Nacht“
   (Anzeigetafel, Torlicht). Gesteuert über die Variablen oben, damit alle Darstellungen
   (hell, dunkel, wie System, Vereinsfarben) dieselben Regeln nutzen.
   ====================================================================== */
.app-main { background-color: var(--color-bg); background-image: var(--app-bg, none); background-attachment: fixed; }

/* Karten: Bande mit Kickplate (hell) bzw. Tafel-Kante (dunkel) */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-bottom: var(--card-edge); border-radius: var(--radius-card); box-shadow: var(--card-shadow); }
.card > h2:first-child, .card > header h2, .card > h2:not(:first-child) { color: var(--section-title); letter-spacing: var(--section-spacing); }

/* Knöpfe */
.button { border-radius: var(--radius-button); }
.button:hover { filter: brightness(1.08); }
.button-secondary, button.button-secondary { background: transparent; color: var(--color-text); border: var(--button-secondary-width) solid var(--color-line); }
.button-secondary:hover, button.button-secondary:hover { background: var(--color-accent-soft); filter: none; }

/* Seitenkopf */
.page-head h1 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; }
.page-head { border-bottom-width: 3px; }

/* Countdown und Live */
.next-countdown { display: inline-flex; align-items: center; gap: 8px; background: var(--countdown-bg); color: var(--countdown-text); text-shadow: var(--countdown-glow); padding: 6px 14px; border-radius: var(--radius-card); font-variant-numeric: tabular-nums; }
.next-countdown.kickoff-countdown strong, .next-countdown strong { color: inherit; }
.kickoff-countdown strong { color: var(--countdown-accent); }
.live-badge { background: var(--goal-light); }

/* Seitenleiste */
.sidebar-nav a.active, .nav-group-items a.active, .nav-singles a.active { background: var(--nav-active-bg, var(--color-sidebar-active)); color: var(--nav-active-text, var(--color-sidebar-active-text)); box-shadow: var(--nav-active-shadow, none); border-radius: var(--nav-active-radius, var(--radius)); }
.sidebar-manager .sidebar-club { background: var(--sidebar-club-bg); color: var(--sidebar-club-text); border: 0; border-bottom: 4px solid var(--sidebar-club-edge); border-radius: var(--radius-card); }
.sidebar-manager .sidebar-club span { color: var(--sidebar-club-muted); }
.sidebar-manager .sidebar-club strong { color: var(--sidebar-club-text); }
.sidebar-manager .sidebar-club:hover { filter: brightness(0.97); }
.sidebar-manager .sidebar-club.active { box-shadow: 0 0 0 2px var(--sidebar-club-edge); }

/* Vereinsfarben-Darstellung: Vereinskarte in den Vereinsfarben statt weiß */
:root[data-theme="club"] {
    --sidebar-club-bg: var(--club-bg-2);
    --sidebar-club-text: var(--club-on);
    --sidebar-club-muted: var(--club-on);
    --sidebar-club-edge: var(--club-active);
}

/* Dunkel: Seitenkopf als Anzeigetafel, Live-Badge als Torlicht */
:root[data-theme="dark"] .page-head { background-color: var(--head-bg); background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 4px 4px; border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 14px 18px; box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.6); }
:root[data-theme="dark"] .page-head h1 { letter-spacing: 0.08em; color: #f2f6fc; }
:root[data-theme="dark"] .page-head .meta { color: var(--scoreboard); text-shadow: 0 0 8px rgba(255, 176, 0, 0.45); }
:root[data-theme="dark"] .live-badge { box-shadow: 0 0 10px rgba(255, 59, 48, 0.75); }
:root[data-theme="dark"] .data-table th { color: var(--color-text-muted); letter-spacing: 0.06em; }
@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] .page-head { background-color: var(--head-bg); background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 4px 4px; border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 14px 18px; box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.6); }
    :root[data-theme="system"] .page-head h1 { letter-spacing: 0.08em; color: #f2f6fc; }
    :root[data-theme="system"] .page-head .meta { color: var(--scoreboard); text-shadow: 0 0 8px rgba(255, 176, 0, 0.45); }
    :root[data-theme="system"] .live-badge { box-shadow: 0 0 10px rgba(255, 59, 48, 0.75); }
    :root[data-theme="system"] .data-table th { color: var(--color-text-muted); letter-spacing: 0.06em; }
}
@media (prefers-reduced-motion: reduce) { .button:hover { filter: none; } }
/* Spielstand im Spielbericht wie auf der Anzeigetafel */
.game-head .game-score { font-family: var(--font-mono); font-variant-numeric: tabular-nums; background: var(--countdown-bg); color: var(--countdown-text); text-shadow: var(--countdown-glow); padding: 2px 18px; border-radius: var(--radius-card); }

/* Eingabefelder im Eishockey-Look: einheitlich für alle Formulare (auch außerhalb von .field).
   :where() hält die Spezifität bei null, damit seitenspezifische Breiten/Abstände weiter gelten. */
:root { --input-bg: #ffffff; --input-border: #9fb3cc; accent-color: var(--color-ink); }
:root[data-theme="dark"] { --input-bg: #0b1222; --input-border: #2f4166; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] { --input-bg: #0b1222; --input-border: #2f4166; } }
:where(input:not([type]), input[type="text"], input[type="number"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="tel"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], select, textarea) {
    font: inherit;
    padding: 6px 10px;
    border: 1px solid var(--input-border);
    border-radius: var(--radius);
    background-color: var(--input-bg);
    color: var(--color-text);
    max-width: 100%;
}
:where(input, select, textarea):focus-visible { outline: 2px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary); }
:where(input, select, textarea):disabled { opacity: 0.6; cursor: not-allowed; }
:where(input, textarea)::placeholder { color: var(--color-text-muted); opacity: 0.8; }
.field input, .field select, .field textarea { background-color: var(--input-bg); border-color: var(--input-border); }
/* Vorbericht im Live-Ticker (vor dem Eröffnungsbully) */
.ticker-pregame { font-style: italic; }
.ticker-pregame .event-time { font-style: normal; }

/* ======================================================================
   Live-Spiel: Anzeigetafel (Strafbank, Über-/Unterzahl, Einblendungen), Starting Six, Ticker nach Seiten
   ====================================================================== */
:root { --rink-ice-wide: linear-gradient(90deg, #e3eef7, #f7fbfe 50%, #e3eef7); --rink-board-wide: #9fb3cc; --tag-pen-bg: #fff1c2; --tag-pen-fg: #6b4e00; --lane-away: #c8102e; }
:root[data-theme="dark"] { --rink-ice-wide: linear-gradient(90deg, #0b1a30, #0a1426 50%, #0b1a30); --rink-board-wide: #33476b; --tag-pen-bg: rgba(255, 176, 0, 0.16); --tag-pen-fg: #ffb000; --lane-away: #ffb000; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] { --rink-ice-wide: linear-gradient(90deg, #0b1a30, #0a1426 50%, #0b1a30); --rink-board-wide: #33476b; --tag-pen-bg: rgba(255, 176, 0, 0.16); --tag-pen-fg: #ffb000; --lane-away: #ffb000; } }
.pregame-badge { display: inline-block; border: 1px solid var(--lane-away); color: var(--lane-away); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 1px 7px; border-radius: 3px; vertical-align: middle; }

.scoreboard { position: relative; overflow: hidden; margin: 0 0 16px; padding: 20px 26px 14px; background-color: var(--countdown-bg); background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 4px 4px; border: 1px solid var(--color-border); border-radius: var(--radius-card); color: #f2f6fc; box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.45); }
.sb-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px 28px; align-items: start; }
.scoreboard.is-pregame .sb-grid { align-items: center; }
.sb-team { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sb-away { align-items: flex-end; text-align: right; }
.sb-head { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.sb-head:hover { color: inherit; }
.sb-away .sb-head { flex-direction: row-reverse; }
.sb-head svg, .sb-head img { flex: 0 0 auto; }
.sb-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 2.1rem); line-height: 1.05; text-transform: uppercase; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.sb-meta { margin: 0; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: #9aabc6; }
.sb-meta strong { color: var(--countdown-text); text-shadow: var(--countdown-glow); font-size: 1rem; }
.sb-box { width: 100%; max-width: 30rem; box-sizing: border-box; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 4px; padding: 6px 10px; text-align: left; }
.sb-box.has-penalties { background: rgba(255, 59, 48, 0.1); border-color: rgba(255, 59, 48, 0.55); }
.sb-box-title { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #9aabc6; }
.sb-box.has-penalties .sb-box-title { color: #ff8a80; }
.sb-box-list { list-style: none; margin: 2px 0 0; padding: 0; }
.sb-box-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: baseline; padding: 2px 0; }
.sb-box-list li + li { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.sb-box-name { font-weight: 600; }
.sb-box-why { grid-column: 1; grid-row: 2; font-size: 0.78rem; color: #9aabc6; }
.sb-box-left { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--font-mono); font-weight: 600; font-size: 1.5rem; color: var(--countdown-text); text-shadow: var(--countdown-glow); }
.sb-box-list li.is-waiting .sb-box-left { opacity: 0.55; }
.sb-box-list li.sb-box-empty { display: block; color: #8597b3; font-size: 0.88rem; }
.sb-center { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 15rem; padding: 0 18px; border-left: 1px solid rgba(255, 255, 255, 0.12); border-right: 1px solid rgba(255, 255, 255, 0.12); }
.sb-period { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: #9aabc6; }
.sb-score, .sb-countdown { margin: 0; font-family: var(--font-mono); font-weight: 600; font-size: clamp(3rem, 6vw, 5.2rem); line-height: 1; color: var(--countdown-text); text-shadow: var(--countdown-glow); font-variant-numeric: tabular-nums; }
.sb-clock { margin: 4px 0 0; font-family: var(--font-mono); font-weight: 600; font-size: 2.1rem; line-height: 1.1; background: #000; color: #f2f6fc; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 4px; padding: 2px 14px; min-width: 6.5ch; text-align: center; font-variant-numeric: tabular-nums; }
.sb-clock:empty { display: none; }
.sb-info { margin: 4px 0 0; font-family: var(--font-mono); font-size: 0.8rem; color: #9aabc6; text-align: center; }
.sb-strength { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.12); text-align: center; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--countdown-text); text-shadow: var(--countdown-glow); }
.sb-strength[hidden] { display: none; }
.sb-top { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; margin: -6px 0 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: #9aabc6; }
.sb-top span + span::before { content: "\00B7"; margin-right: 18px; }
.sb-periods { margin: 2px 0 0; font-family: var(--font-mono); font-size: 0.95rem; letter-spacing: 0.06em; color: #c9d6ea; font-variant-numeric: tabular-nums; }
.sb-periods:empty { display: none; }

/* Einblendungen: Heimtor groß mit Torlicht, Gasttor dezenter, Strafe in Bernstein */
.sb-flash { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; text-align: center; background: rgba(4, 7, 13, 0.95); color: #f2f6fc; }
.sb-flash[hidden] { display: none; }
.sb-flash-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1; letter-spacing: 0.04em; }
.sb-flash-team { font-weight: 700; font-size: 1.25rem; letter-spacing: 0.08em; text-transform: uppercase; }
.sb-flash-text { font-family: var(--font-mono); font-size: 1rem; color: #c9d6ea; }
.sb-flash.is-goal_home { background: radial-gradient(ellipse at center, #e0261c, #6e0707); }
.sb-flash.is-goal_home .sb-flash-title { font-size: clamp(2.8rem, 8vw, 6.5rem); text-shadow: 0 0 28px rgba(255, 255, 255, 0.55); }
.sb-flash.is-goal_home .sb-flash-text { color: #ffe1de; }
.sb-flash.is-goal_away .sb-flash-title { color: var(--countdown-text); text-shadow: var(--countdown-glow); }
.sb-flash.is-penalty .sb-flash-title { color: #ffb000; text-shadow: 0 0 14px rgba(255, 176, 0, 0.45); }
@media (prefers-reduced-motion: no-preference) {
    .sb-flash.is-on { animation: sb-flash-in 0.35s ease-out; }
    .sb-flash.is-goal_home.is-on { animation: sb-flash-in 0.35s ease-out, sb-goal-light 0.8s ease-in-out 0.35s 7; }
    .sb-flash.is-goal_home.is-on .sb-flash-title { animation: sb-goal-text 0.8s ease-in-out infinite alternate; }
}
@keyframes sb-flash-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes sb-goal-light { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.4); } }
@keyframes sb-goal-text { from { letter-spacing: 0.04em; } to { letter-spacing: 0.12em; } }

@media (max-width: 900px) {
    .sb-grid { grid-template-columns: minmax(0, 1fr); }
    .sb-center { order: -1; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); padding: 0 0 12px; min-width: 0; }
    .sb-away { align-items: stretch; text-align: left; }
    .sb-away .sb-head { flex-direction: row; }
    .sb-box { max-width: none; }
}

/* Starting Six vor dem Bully */
.six-rink { position: relative; box-sizing: border-box; width: 100%; aspect-ratio: 2 / 1; min-height: 230px; margin: 10px 0; border: 3px solid var(--rink-board-wide); border-radius: 16% / 32%; background: var(--rink-ice-wide); overflow: hidden; }
.six-center-line, .six-blue, .six-goal-line { position: absolute; top: 0; bottom: 0; }
.six-center-line { left: 50%; width: 4px; margin-left: -2px; background: rgba(200, 16, 46, 0.7); }
.six-blue { width: 6px; margin-left: -3px; background: rgba(30, 90, 168, 0.75); }
.six-blue.six-left { left: 33%; }
.six-blue.six-right { left: 67%; }
.six-goal-line { width: 2px; background: rgba(200, 16, 46, 0.7); }
.six-goal-line.six-left { left: 7%; }
.six-goal-line.six-right { left: 93%; }
.six-circle { position: absolute; left: 50%; top: 50%; width: 17%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px solid rgba(30, 90, 168, 0.6); border-radius: 50%; }
.six-team { list-style: none; margin: 0; padding: 0; }
.six-player { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; padding: 3px 9px; border-radius: 6px; border: 2px solid; background: var(--color-surface); color: var(--color-text); font-size: 0.82rem; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 14px -10px rgba(0, 0, 0, 0.6); }
.six-player small { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600; color: var(--color-text-muted); }
.six-side-0 { border-color: var(--color-primary); }
.six-side-1 { border-color: var(--lane-away); }
.six-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 0.9rem; }
.six-key { display: inline-block; width: 12px; height: 12px; border: 3px solid; border-radius: 3px; margin-left: 10px; }
.six-key:first-child { margin-left: 0; }
@media (max-width: 700px) {
    .six-player { font-size: 0.64rem; padding: 2px 4px; }
    .six-player small { font-size: 0.56rem; }
}

/* Ticker nach Seiten: Heim links, Gast rechts, Allgemeines mittig */
.ticker-sides .ticker-item { display: flex; gap: 8px; align-items: baseline; }
.ticker-sides .event-time { flex: 0 0 auto; }
.ticker-sides .ticker-lane-home { padding: 6px 16% 6px 8px; border-left: 3px solid var(--color-primary); }
.ticker-sides .ticker-lane-away { flex-direction: row-reverse; text-align: right; padding: 6px 8px 6px 16%; border-right: 3px solid var(--lane-away); }
.ticker-sides .ticker-lane-neutral { justify-content: center; text-align: center; }
@media (max-width: 700px) {
    .ticker-sides .ticker-lane-home { padding-right: 4%; }
    .ticker-sides .ticker-lane-away { padding-left: 4%; }
}
.ticker-tag { display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 1px 6px; border-radius: 3px; vertical-align: 1px; font-style: normal; }
.ticker-tag-goal { background: var(--goal-light); color: #ffffff; }
.ticker-tag-penalty { background: var(--tag-pen-bg); color: var(--tag-pen-fg); }
.ticker-tag-penalty_delayed { background: transparent; color: var(--tag-pen-bg); box-shadow: inset 0 0 0 1px var(--tag-pen-bg); }
.live-control .control-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); min-width: 8.5rem; }
/* Anzeigetafel: Timeout und Empty Net je Team, Drittelpause, weitere Einblendungen */
.sb-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.sb-away .sb-meta { justify-content: flex-end; }
.sb-meta .sb-timeout { color: #7fd4ff; text-shadow: none; font-size: 0.85rem; }
.sb-meta .sb-timeout.is-used { color: #6f82a3; }
.sb-empty-net { padding: 1px 8px; border-radius: 3px; background: #ff3b30; color: #ffffff; font-weight: 700; letter-spacing: 0.1em; box-shadow: 0 0 10px rgba(255, 59, 48, 0.6); }
.sb-empty-net[hidden] { display: none; }
.sb-extra, .sb-delayed { padding: 1px 8px; border-radius: 3px; font-weight: 700; letter-spacing: 0.06em; }
.sb-extra { background: #1e88e5; color: #ffffff; }
.sb-delayed { background: #ffb000; color: #2b1e08; animation: live-pulse 1.4s ease-in-out infinite; }
.sb-extra[hidden], .sb-delayed[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .sb-delayed { animation: none; } }
@media (prefers-reduced-motion: no-preference) {
    .sb-empty-net:not([hidden]) { animation: live-pulse 1.6s ease-in-out infinite; }
}
.sb-intermission { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.sb-intermission[hidden] { display: none; }
.sb-intermission-title { margin: 0 0 6px; text-align: center; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #9aabc6; }
.sb-intermission table { margin: 0 auto; border-collapse: collapse; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sb-intermission th, .sb-intermission td { padding: 3px 14px; text-align: center; }
.sb-intermission tr:first-child th { font-family: var(--font); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #9aabc6; }
.sb-intermission td { color: var(--countdown-text); text-shadow: var(--countdown-glow); font-size: 1.05rem; }
.sb-intermission tr + tr { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.sb-intermission tr.is-total td, .sb-intermission tr.is-total th { font-weight: 700; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.sb-flash-stars { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 1.05rem; font-weight: 600; }
.sb-flash-stars:empty { display: none; }
.sb-flash.is-pre .sb-flash-title, .sb-flash.is-review .sb-flash-title { color: #7fd4ff; text-shadow: 0 0 14px rgba(127, 212, 255, 0.45); }
.sb-flash.is-no_goal .sb-flash-title { color: #ff8a80; }
.sb-flash.is-timeout .sb-flash-title, .sb-flash.is-penalty_end .sb-flash-title { color: var(--countdown-text); text-shadow: var(--countdown-glow); }
.sb-flash.is-empty_net { background: radial-gradient(ellipse at center, rgba(255, 59, 48, 0.35), rgba(4, 7, 13, 0.96) 70%); }
.sb-flash.is-final .sb-flash-team { font-family: var(--font-mono); font-size: clamp(2rem, 5vw, 3.6rem); color: var(--countdown-text); text-shadow: var(--countdown-glow); letter-spacing: 0.04em; }
.sb-flash.is-final .sb-flash-stars { color: #ffd76a; font-size: 0.95rem; gap: 0; margin-top: 2px; }
.sb-flash.is-final { gap: 2px; }
.sb-flash.is-final .sb-flash-title { font-size: clamp(1.6rem, 3.6vw, 2.8rem); }
.sb-flash { overflow: auto; }
@media (prefers-reduced-motion: no-preference) {
    .sb-flash.is-pre.is-on .sb-flash-title { animation: sb-review 1s ease-in-out infinite; }
}
@keyframes sb-review { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* Spielerseite: Attribute rechts über die volle Höhe, links Profil, Vertrag und Transfermarkt untereinander;
   Vergleichswert der eigenen Positionsgruppe in Klammern */
@media (min-width: 1400px) {
    .player-grid { grid-auto-flow: row dense; }
    .player-grid > .player-attributes { grid-column: 2; grid-row: 1 / span 6; }
}
.attr-avg { color: var(--color-text-muted); font-size: 0.85em; }
.attr-value.is-above { color: var(--color-success); font-weight: 700; }
.attr-value.is-below { color: var(--color-text-muted); }

/* eigenes Team in Tabellen und Spieltagen */
.data-table tr.own-row td { background: var(--color-accent-soft); }
.data-table tr.own-row .club-link span { font-weight: 700; }

/* Kalender: neutral, linker Rand Heim (grün) bzw. auswärts (gelb), Ergebnis grün/rot */
:root { --cal-home: #2e9a4f; --cal-away: #e0a800; }
.cal-entry.cal-home { border-left-color: var(--cal-home); }
.cal-entry.cal-away { border-left-color: var(--cal-away); }
.cal-entry.is-live { border-left-color: var(--color-primary); }
.cal-score { margin-left: auto; white-space: nowrap; }
.cal-score.result-win { color: var(--color-success); }
.cal-score.result-loss { color: var(--color-danger); }
.cal-key { display: inline-block; width: 4px; height: 14px; border-radius: 2px; margin-right: 2px; }
.cal-key.cal-home { background: var(--cal-home); }
.cal-key.cal-away { background: var(--cal-away); }

/* Bewerbsspiele: feste Spalten, Ergebnis als Anzeigetafel-Kästchen in der Mitte, Heim rechtsbündig, Gast linksbündig */
.cup-matches { list-style: none; margin: 4px 0 8px; padding: 0; }
.cup-match { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) 7.5em minmax(0, 1fr) 9em; align-items: center; gap: 4px 12px; padding: 5px 6px; border-bottom: 1px solid var(--color-border); }
.cup-match:hover { background: var(--color-surface-2); }
.cup-match.is-own { background: var(--color-accent-soft); }
.cm-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-text-muted); white-space: nowrap; }
.cm-team { display: flex; align-items: center; gap: 8px; min-width: 0; color: inherit; text-decoration: none; }
.cm-team:hover .cm-name { text-decoration: underline; }
.cm-home { justify-content: flex-end; text-align: right; }
.cm-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-team svg, .cm-team img, .cm-team .flag { flex: 0 0 auto; }
.cm-team.is-winner .cm-name { font-weight: 700; }
.cm-team.is-loser { color: var(--color-text-muted); }
.cm-score { display: flex; justify-content: center; align-items: center; min-height: 28px; padding: 2px 6px; border-radius: var(--radius); background: var(--countdown-bg); color: var(--countdown-text); font-family: var(--font-mono); font-weight: 600; font-size: 0.92rem; white-space: nowrap; text-shadow: var(--countdown-glow); }
.cm-score a { color: inherit; text-decoration: none; }
.cm-score a:hover { text-decoration: underline; }
.cm-score .live-badge { margin-left: 4px; text-shadow: none; }
.cm-venue { font-size: 0.8rem; color: var(--color-text-muted); }
.cup-groups .cup-match { grid-template-columns: 5.5em minmax(0, 1fr) 6.5em minmax(0, 1fr); gap: 4px 8px; }
.cup-groups .cm-venue { display: none; }
.cup-group-fixtures[open] summary { margin-bottom: 4px; }
.cup-groups > .card { border-top: 3px solid var(--color-primary); }
@media (max-width: 760px) {
    .cup-match, .cup-groups .cup-match { grid-template-columns: minmax(0, 1fr) 6.5em minmax(0, 1fr); }
    .cm-date { grid-column: 1 / -1; }
    .cm-venue { grid-column: 1 / -1; text-align: center; }
}

/* Vor dem Bully: Kabine mit den Trikots am Haken, Countdown in der Mitte, Form und letzte Duelle */
.locker { margin: 0 0 16px; display: flex; flex-direction: column; gap: 12px; }
.locker-room { position: relative; overflow: hidden; min-height: 400px; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 120px), linear-gradient(#141c2c, #0b111c 70%); color: #f2f6fc; }
.locker-rail { position: absolute; left: 0; right: 0; top: 46px; height: 10px; background: linear-gradient(#5a6578, #2a3243); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); }
.locker-bench { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(#5b3d22, #3a2614); border-top: 4px solid #6e4a2a; }
.locker-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 16px; padding: 36px 40px 80px; }
.locker-kit { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.locker-hanger { width: 60px; height: 40px; color: #c9d2de; }
.locker-kit .kit { width: 200px; height: 200px; margin-top: -22px; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.7)); }
.locker-kit figcaption { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.locker-name { color: #f2f6fc; text-decoration: none; font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.9rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.locker-name:hover { color: #ffffff; text-decoration: underline; }
.locker-form { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 4px; background: rgba(4, 7, 13, 0.75); }
.locker-form-label { margin-right: 4px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #9aabc6; }
.form-chip { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 3px; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; color: #ffffff; cursor: default; }
.form-win { background: #2e9a4f; }
.form-loss { background: #c8302a; }
.form-otloss { background: #a85a1c; }
.locker-center { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 64px; padding: 18px 28px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px; background: rgba(4, 7, 13, 0.9); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9); }
.locker-center .sb-countdown { color: var(--countdown-text); text-shadow: var(--countdown-glow); }
:root:not([data-theme="dark"]) .locker-center .sb-countdown { color: #ffb000; text-shadow: 0 0 16px rgba(255, 176, 0, 0.5); }
.locker-duels { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 18px; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); }
.locker-duels h2 { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--section-title); }
.duel-line { flex: 1 1 420px; display: flex; list-style: none; margin: 0; padding: 0; position: relative; }
.duel-line::before { content: ""; position: absolute; left: 4%; right: 4%; top: 6px; height: 2px; background: var(--color-border); }
.duel { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.duel-dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 3px var(--color-surface); }
.duel-win .duel-dot { background: #2e9a4f; }
.duel-loss .duel-dot { background: #c8302a; }
.duel-otloss .duel-dot { background: #a85a1c; }
.duel-score { font-family: var(--font-mono); font-weight: 600; color: var(--color-text); text-decoration: none; }
.duel-score:hover { text-decoration: underline; }
.duel-meta { font-size: 0.72rem; color: var(--color-text-muted); }
.duel-record { margin: 0; font-family: var(--font-mono); font-size: 0.85rem; color: var(--color-text-muted); }
@media (max-width: 900px) {
    .locker-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 30px 16px 76px; }
    .locker-center { grid-column: 1 / -1; order: -1; margin-top: 30px; }
    .locker-kit .kit { width: 140px; height: 140px; }
}

/* Finanzen: Kontostand-Verlauf mit Prognose-Fächer */
.balance-chart { position: relative; margin: 6px 0 4px; }
.balance-chart svg { display: block; width: 100%; height: auto; max-height: 340px; overflow: visible; }
.balance-chart svg:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.bc-grid { stroke: var(--color-border); stroke-width: 1; }
.bc-grid.bc-zero { stroke: var(--color-text-muted); }
.bc-axis { fill: var(--color-text-muted); font-family: var(--font-mono); font-size: 11px; }
.bc-season { stroke: var(--color-border); stroke-width: 1; stroke-dasharray: 3 4; }
.bc-today { stroke: var(--color-text-muted); stroke-width: 1; stroke-dasharray: 2 3; }
.bc-line { fill: none; stroke: var(--color-primary); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.bc-now { fill: var(--color-primary); stroke: var(--color-surface); stroke-width: 2; }
.bc-band { fill: var(--color-primary); opacity: 0.12; }
.bc-edge { stroke: var(--color-primary); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.6; }
.bc-expected { stroke: var(--color-primary); stroke-width: 2; stroke-dasharray: 6 5; }
.bc-end { fill: var(--color-surface); stroke: var(--color-primary); stroke-width: 1.5; }
.bc-end.is-expected { fill: var(--color-primary); }
.bc-label { fill: var(--color-text-muted); font-family: var(--font-mono); font-size: 12px; }
.bc-label.is-expected { fill: var(--color-text); font-weight: 600; }
.bc-cross { stroke: var(--color-text-muted); stroke-width: 1; }
.bc-dot { fill: var(--color-primary); stroke: var(--color-surface); stroke-width: 2; }
.bc-hover[hidden] { display: none; }
.bc-tip { position: absolute; transform: translateX(-50%); padding: 4px 8px; border-radius: 4px; background: var(--color-text); color: var(--color-surface); font-family: var(--font-mono); font-size: 0.78rem; white-space: nowrap; pointer-events: none; }
.bc-tip[hidden] { display: none; }

/* Kaderseite: Spieler zwischen den Mannschaften verschieben */
.squad-row { cursor: grab; }
.squad-row.is-dragging { opacity: 0.45; }
.squad-row.is-moving { opacity: 0.6; }
.drag-handle { color: var(--color-text-muted); cursor: grab; }
.squad-drop.is-drop-target { outline: 2px dashed var(--color-primary); outline-offset: 2px; }
.squad-drop.is-drop-blocked { outline: 2px dashed var(--color-danger); outline-offset: 2px; }
.squad-move-form { display: inline-flex; gap: 6px; align-items: center; }
.squad-move-form select { padding: 3px 6px; }
.squad-move-form.js-enhanced [data-squad-submit] { display: none; }
.squad-move-message:empty { display: none; }
.squad-move-message.is-ok { color: var(--color-success); font-weight: 600; }
.squad-move-message.is-error { color: var(--color-danger); font-weight: 600; }

/* Teamdynamik: Teamevents */
.event-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 8px; }
.event-option { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface-2); }
.event-option .button { margin-top: auto; align-self: flex-start; }
.event-effect { font-family: var(--font-mono); font-size: 0.85rem; color: var(--color-success); }

/* Live: Anwesenheitsvorteil */
.presence-note { margin: 0 0 10px; font-size: 0.85rem; color: var(--color-text-muted); }
.presence-note.is-on { color: var(--color-success); font-weight: 600; }

/* Ligaseite: Playoff-Baum (Paket 9) */
.bracket-scroll { overflow-x: auto; margin: 0 -4px 12px; padding: 0 4px 6px; }
.bracket { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--bk-rounds), minmax(200px, 1fr)) minmax(180px, 0.85fr); gap: 0 28px; min-width: calc(var(--bk-rounds) * 228px + 180px); }
.bk-round { display: flex; flex-direction: column; min-width: 0; }
.bk-round-title { margin: 0 0 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-muted); }
.bk-round-title .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
.bk-games { flex: 1; display: flex; flex-direction: column; }
.bk-pair { flex: 1; position: relative; display: grid; grid-auto-rows: 1fr; align-items: center; }
.bk-pair > .bk-match { margin: 6px 0; }
.bk-pair.has-pair::after { content: ""; position: absolute; box-sizing: border-box; right: -14px; top: 25%; bottom: 25%; width: 14px; border: 2px solid var(--color-line); border-left: 0; border-radius: 0 6px 6px 0; }
.bk-round:not(.bk-result) .bk-pair:not(.has-pair)::after { content: ""; position: absolute; right: -14px; top: 50%; width: 14px; border-top: 2px solid var(--color-line); }
.bk-round + .bk-round .bk-match::before { content: ""; position: absolute; left: -15px; top: 50%; width: 14px; border-top: 2px solid var(--color-line); }
.bk-match { position: relative; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-surface); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.bk-match.is-projected, .bk-match.is-empty { border-style: dashed; box-shadow: none; }
.bk-match.is-empty { background: transparent; }
.bk-team { display: grid; grid-template-columns: 1.7em minmax(0, 1fr) 1.4em; align-items: center; gap: 6px; padding: 5px 8px; }
.bk-team + .bk-team { border-top: 1px solid var(--color-border); }
.bk-team:first-child { border-radius: 7px 7px 0 0; }
.bk-team.own-row { background: var(--color-accent-soft); }
.bk-team.own-row .bk-name span { font-weight: 700; }
.bk-seed { font-size: 0.75rem; color: var(--color-text-muted); text-align: center; font-variant-numeric: tabular-nums; }
.bk-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bk-name span, .bk-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-wins { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.bk-team.is-winner .bk-name span { font-weight: 700; }
.bk-team.is-out { color: var(--color-text-muted); }
.bk-team.is-out .bk-name, .bk-team.is-out .bk-wins { opacity: 0.65; }
.bk-team.is-tbd .bk-name { color: var(--color-text-muted); font-style: italic; }
.bk-games-list { margin: 0; padding: 3px 8px 5px; border-top: 1px dashed var(--color-border); font-size: 0.75rem; color: var(--color-text-muted); }
.bk-winner { display: flex; align-items: center; gap: 8px; padding: 12px 10px; border: 2px solid var(--color-primary); }
.bk-winner.is-empty { border: 1px dashed var(--color-border); }
.bk-winner.is-empty::before { display: none; }
.bk-winner .bk-name.own-row { background: var(--color-accent-soft); border-radius: 6px; padding: 2px 6px; }
.bk-trophy { display: inline-flex; color: #c9a227; flex: none; }
.bracket-relegation .bk-trophy { color: var(--color-success); }
.bk-relegated { list-style: none; margin: 0; padding: 0; }
.bk-relegated li { padding: 4px 6px; border-left: 3px solid var(--color-danger); margin-bottom: 4px; color: var(--color-text-muted); }
.bk-relegated li.own-row { background: var(--color-accent-soft); }
.bk-relegated-box { position: absolute; left: 0; right: 0; top: calc(50% + 44px); }
.bracket-relegation:has(.bk-relegated-box) { padding-bottom: 120px; }
.bracket-hint { margin: -4px 0 10px; }
.bk-label { position: absolute; top: -9px; right: 30px; padding: 0 5px; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.04em; line-height: 14px; color: var(--color-text-muted); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 4px; }

/* Ligaseite: frühere Saisons (Paket 9) */
.season-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px 12px; margin: -4px 0 16px; }
.season-nav > a:last-child { justify-self: end; }
.season-nav form { margin: 0; }
.season-nav select { min-width: 12em; }
/* Vereinsseite: Saisonhistorie */
.history-playoffs.is-champion { font-weight: 700; color: var(--color-primary); }
.history-playoffs.is-relegation { color: var(--color-text-muted); }
.history-move { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.history-move.is-promoted, .history-move.is-moved_up { background: var(--color-success); color: #fff; }
.history-move.is-relegated, .history-move.is-forced { background: var(--color-danger); color: #fff; }
.page-stack > .card { overflow-x: auto; }

/* Nachrichten als Zeitung (Paket 9) */
:root { --paper-bg: #fbf8f1; --paper-ink: #1d1b17; --paper-muted: #6b665c; --paper-rule: #2a2723; --paper-soft: #e6dfd0; --paper-accent: #a3221b; }
:root[data-theme="dark"] { --paper-bg: #171a20; --paper-ink: #ece7dc; --paper-muted: #a49d90; --paper-rule: #d8d1c3; --paper-soft: #2c3038; --paper-accent: #e0675e; }
@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] { --paper-bg: #171a20; --paper-ink: #ece7dc; --paper-muted: #a49d90; --paper-rule: #d8d1c3; --paper-soft: #2c3038; --paper-accent: #e0675e; }
}
.paper { background: var(--paper-bg); color: var(--paper-ink); border: 1px solid var(--paper-soft); padding: 18px 22px 22px; margin-bottom: 16px; font-family: Georgia, "Times New Roman", Times, serif; font-variant-numeric: lining-nums; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.paper a { color: inherit; }
.paper .muted { color: var(--paper-muted); }
.paper-masthead { text-align: center; border-bottom: 3px double var(--paper-rule); margin-bottom: 18px; }
.paper-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding-bottom: 6px; border-bottom: 1px solid var(--paper-rule); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-muted); }
.paper-title { margin: 10px 0 2px; font-family: "Old English Text MT", "UnifrakturMaguntia", Georgia, serif; font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 700; line-height: 1.05; letter-spacing: 0.01em; color: var(--paper-ink); text-transform: none; }
.paper-tagline { margin: 0 0 8px; font-style: italic; font-size: 0.85rem; color: var(--paper-muted); }
.paper-section { font-family: Georgia, serif; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; border-top: 2px solid var(--paper-rule); border-bottom: 1px solid var(--paper-rule); padding: 4px 0; margin: 22px 0 12px; color: var(--paper-ink); }
.paper-story { display: grid; gap: 20px 28px; }
.paper-story.has-box { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .paper-story.has-box { grid-template-columns: minmax(0, 1fr) 300px; } }
.paper-kicker { margin: 0 0 4px; font-family: system-ui, sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-accent); }
.paper-headline { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.5rem, 3.2vw, 2.4rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; text-transform: none; color: var(--paper-ink); }
.paper-headline a { text-decoration: none; }
.paper-headline a:hover { text-decoration: underline; }
.paper-byline { margin: 0 0 12px; font-size: 0.8rem; font-style: italic; color: var(--paper-muted); }
.paper-body { column-width: 22em; column-gap: 28px; column-rule: 1px solid var(--paper-soft); font-size: 1.02rem; line-height: 1.6; hyphens: auto; text-align: justify; }
.paper-body p { margin: 0 0 0.8em; break-inside: avoid-column; }
.paper-lead { font-weight: 700; text-align: left; }
.paper-lead::first-letter { float: left; font-size: 3.1em; line-height: 0.9; padding: 4px 6px 0 0; font-weight: 700; color: var(--paper-accent); }
.paper-more-link { margin: 6px 0 0; font-family: system-ui, sans-serif; font-size: 0.85rem; font-weight: 600; }
.paper-box { border-top: 3px solid var(--paper-rule); padding-top: 10px; font-family: system-ui, sans-serif; font-size: 0.88rem; }
.paper-box h3 { margin: 14px 0 6px; font-family: Georgia, serif; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-ink); border-bottom: 1px solid var(--paper-rule); padding-bottom: 3px; }
.paper-score { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; text-align: center; }
.paper-score-team { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 600; font-size: 0.8rem; line-height: 1.2; }
.paper-score-result { font-family: Georgia, serif; font-size: 2rem; line-height: 1; white-space: nowrap; }
.paper-score-result small { display: block; font-size: 0.75rem; font-weight: 400; color: var(--paper-muted); margin-top: 2px; }
.paper-stats { width: 100%; border-collapse: collapse; }
.paper-stats th { font-weight: 400; color: var(--paper-muted); text-align: center; padding: 3px 4px; font-size: 0.8rem; }
.paper-stats td { padding: 3px 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.paper-stats td:last-child { text-align: right; }
.paper-stats td:first-child { text-align: left; }
.paper-stats tr + tr > * { border-top: 1px dotted var(--paper-soft); }
.paper-attendance { text-align: center !important; font-weight: 400 !important; color: var(--paper-muted); padding-top: 6px !important; }
.paper-stars { margin: 0; padding-left: 1.4em; }
.paper-stars li { margin-bottom: 6px; }
.paper-stars a { font-weight: 600; }
.paper-teasers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 28px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--paper-rule); }
.paper-teaser .paper-headline { font-size: 1.25rem; }
.paper-teaser p:last-child { margin: 0; font-size: 0.95rem; line-height: 1.5; }
.paper-teaser + .paper-teaser { border-left: 1px solid var(--paper-soft); padding-left: 28px; }
@media (max-width: 640px) { .paper-teaser + .paper-teaser { border-left: 0; padding-left: 0; border-top: 1px solid var(--paper-soft); padding-top: 12px; } }
.paper-empty { font-style: italic; color: var(--paper-muted); }
.paper-columns { column-width: 22em; column-gap: 28px; column-rule: 1px solid var(--paper-soft); font-family: system-ui, sans-serif; }
.paper-day { break-inside: avoid; margin-bottom: 10px; }
.paper-day h3 { margin: 0 0 4px; font-family: Georgia, serif; font-size: 0.85rem; font-style: italic; font-weight: 400; color: var(--paper-muted); }
.paper .news-list li { border-bottom-color: var(--paper-soft); }
.paper .news-unread { background: var(--paper-soft); }
.paper .news-time { color: var(--paper-muted); }
.paper-inline { padding: 16px 20px 6px; }
.paper-inline .paper-headline { font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
@media (max-width: 640px) { .paper { padding: 14px; } .paper-body { text-align: left; } }

/* Büro: Matchkarte „Nächstes Spiel“ (Paket 9) */
.next-card { display: flex; flex-direction: column; gap: 14px; }
.next-card-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.next-card-head h2 { margin: 0; }
.next-card-countdown { color: var(--countdown-text, #ffb000); font-size: 0.95rem; }
.next-card-live { display: inline-flex; align-items: center; gap: 8px; }
.next-card-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 12px; }
.next-card-team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: inherit; text-decoration: none; min-width: 0; }
.next-card-team:hover .next-card-name { text-decoration: underline; }
.next-card-name { font-family: var(--font-display, inherit); font-size: 1.25rem; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.next-card-middle { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 18px; text-align: center; min-width: 90px; }
.next-card-vs { font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--color-text-muted); opacity: 0.6; }
.next-card-score { font-size: 3rem; font-weight: 700; line-height: 1; color: var(--countdown-text, #ffb000); text-shadow: var(--countdown-glow, none); }
.next-card-compare { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.next-card-compare caption { text-align: left; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-text-muted); padding-bottom: 6px; }
.next-card-compare tr { border-top: 1px solid var(--color-border); }
.next-card-compare tr:last-child { border-bottom: 1px solid var(--color-border); }
.next-card-compare th { font-weight: 400; color: var(--color-text-muted); padding: 7px 10px; width: 30%; text-align: center; }
.next-card-compare td { padding: 7px 0; width: 35%; font-weight: 600; }
.next-card-compare td:first-child { text-align: right; }
.next-card-compare td[colspan] { text-align: left; width: auto; }
.form-chips { display: inline-flex; gap: 4px; }
.next-card-duels { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.next-card-bar { flex: 1 1 120px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #2e9a4f 0 var(--share), #c8302a var(--share)); }
.next-card-events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-border); }
.next-card-events li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--color-border); }
.next-card-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; }
.next-card-foot .button-row { margin: 0; }
@media (max-width: 560px) { .next-card-teams { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; } .next-card-name { font-size: 1rem; } .next-card-middle { min-width: 60px; } }

/* Rechtstexte (Paket 9) */
.legal-editor { width: 100%; box-sizing: border-box; font-family: var(--font-mono, monospace); font-size: 0.88rem; line-height: 1.5; resize: vertical; }
.legal-preview summary { cursor: pointer; font-weight: 600; margin-top: 6px; }
.legal-preview .prose { margin-top: 8px; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 6px; max-height: 420px; overflow: auto; }
.legal-page { max-width: 820px; }
.legal-page h2, .legal-preview h2 { font-size: 1.15rem; margin: 1.2em 0 0.4em; text-transform: none; letter-spacing: 0; color: var(--color-text); }
.legal-page h3, .legal-preview h3 { font-size: 1rem; margin: 1em 0 0.3em; }
.legal-page p, .legal-page li { line-height: 1.6; }
.legal-updated { margin-top: 1.5em; font-size: 0.85rem; }
.changelog-entry { margin-top: 1.6em; }
.changelog-entry h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.changelog-date { font-size: 0.85rem; font-weight: 400; }

/* Änderungsfenster für Trikots, Farben, Wappen */
.design-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.design-fieldset[disabled] { opacity: 0.55; }

/* Spielerseite: Karriere-Verlauf */
.player-career { grid-column: 1 / -1; }
.career-table td, .career-table th { white-space: nowrap; }
.career-table tfoot th, .career-table tfoot td { border-top: 2px solid var(--color-border); font-weight: 700; }
.career-table .is-plus { color: var(--color-success); }
.career-table .is-minus { color: var(--color-danger); }
.career-table abbr { text-decoration: none; cursor: help; }

/* Trophäenschrank (Verein › Erfolge, Mockup „Trophäen B“) */
.trophy-counts { display: flex; gap: 8px; flex-wrap: wrap; }
.trophy-count { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-surface); }
.trophy-teaser-latest { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.trophy-teaser-item { display: inline-flex; align-items: center; gap: 8px; }
.achievements-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.achievements-head h1 { display: flex; align-items: center; gap: 12px; margin: 0; }
.trophy-cabinet { border-radius: 14px; padding: 18px 20px 28px; background: linear-gradient(180deg, #1A120B, #0E0905); border: 3px solid #4A3322; box-shadow: inset 0 0 0 6px #2A1C12, 0 18px 40px rgba(0, 0, 0, 0.45); margin-bottom: 18px; }
.trophy-cabinet-inner { position: relative; border-radius: 6px; padding: 8px 8px 20px; background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 240, 200, 0.18), transparent 70%), linear-gradient(180deg, #2A2018, #15100B); display: flex; flex-direction: column; gap: 26px; }
.trophy-cabinet-empty { color: #D9C08A; text-align: center; padding: 40px 12px; margin: 0; }
.trophy-shelf { position: relative; display: flex; gap: 26px; align-items: flex-end; padding: 16px 18px 0; min-height: 150px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #6B4F35 transparent; border-bottom: 12px solid #4A3322; box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5); }
.trophy-shelf:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.trophy-piece { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; scroll-snap-align: start; padding-bottom: 6px; }
.trophy-plate { font-family: var(--font-mono); font-size: 0.75rem; padding: 1px 6px; border-radius: 3px; background: linear-gradient(#D9C08A, #A68A4E); color: #2B1E08; }
.trophy-list { list-style: none; margin: 0; padding: 0; }
.trophy-list li { display: grid; grid-template-columns: 36px 72px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--color-border); }
.trophy-list-season { font-family: var(--font-mono); color: var(--color-text-muted); }
.trophy-more summary { cursor: pointer; margin-top: 10px; font-weight: 600; }

/* Länderseite: Pyramide (Mockup „Länderseite A“) */
.trophy-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.trophy { flex: none; }
.pyramid-head h1 { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
.pyramid-head .flag { width: 40px; height: auto; }
.pyramid { display: flex; flex-direction: column; gap: 22px; }
.pyramid-level { display: flex; flex-direction: column; gap: 8px; }
.pyramid-level-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pyramid-level-head h2 { margin: 0; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-primary); }
.pyramid-level-head .muted { font-size: 0.85rem; }
.pyramid-top { display: flex; justify-content: center; align-items: center; gap: 16px; }
.pyramid-top-card { display: flex; flex-direction: column; gap: 6px; width: min(560px, 100%); }
.pyramid-row { display: flex; gap: 12px; flex-wrap: wrap; }
.pyramid-row > .pyramid-league { flex: 1 1 220px; }
.pyramid-groups { display: flex; gap: 12px; flex-wrap: wrap; }
.pyramid-groups.is-chips { gap: 6px; }
.pyramid-group { flex: 1 1 0; min-width: min(100%, 240px); display: flex; gap: 6px; padding-top: 10px; border-top: 2px solid var(--color-border); }
.pyramid-groups.is-chips .pyramid-group { min-width: 96px; gap: 3px; padding-top: 8px; }
.pyramid-league { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); text-decoration: none; }
.pyramid-league:hover { border-color: var(--color-primary); }
.pyramid-league strong { font-size: 1.1rem; }
.pyramid-league.is-small { flex: 1 1 0; padding: 10px 12px; }
.pyramid-league.is-small strong { font-size: 0.95rem; }
.pyramid-league.is-small .muted, .pyramid-meta { font-size: 0.82rem; }
.pyramid-league.is-chip { flex: 1 1 0; align-items: center; padding: 6px 0; border-radius: 6px; background: var(--color-surface-2); font-family: var(--font-mono); font-size: 0.85rem; }
.pyramid-league.is-chip.has-managers { color: var(--color-success); border-color: color-mix(in srgb, var(--color-success) 50%, var(--color-border)); }
.pyramid-league.is-own { border-color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface)); }
.pyramid-meta { display: flex; align-items: center; gap: 6px; color: var(--color-text-muted); }
.pyramid-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-border); }
.has-managers .pyramid-dot { background: var(--color-success); }
.pyramid-own { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--color-primary); text-transform: uppercase; }
@media (max-width: 640px) { .pyramid-top { flex-direction: column; } }

/* Länderübersicht: Fahnenwand (Mockup A) */
.country-wall-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.country-wall-head h1 { margin: 0 0 6px; }
.country-wall-head .lead { margin: 0; }
.country-wall-sort { display: flex; gap: 6px; flex-wrap: wrap; font-weight: 600; }
.country-wall-sort a { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--color-border); color: var(--color-text); text-decoration: none; }
.country-wall-sort a.active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-primary-text); }
.country-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.country-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 212px; padding: 18px; border-radius: 12px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); text-decoration: none; isolation: isolate; transition: border-color 0.15s, transform 0.15s; }
.country-tile:hover, .country-tile:focus-visible { border-color: var(--color-primary); transform: translateY(-2px); }
.country-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--color-surface) 5%, transparent) 0%, color-mix(in srgb, var(--color-surface) 55%, transparent) 45%, color-mix(in srgb, var(--color-surface) 97%, transparent) 72%); }
.country-tile-flag { position: absolute; z-index: -2; left: -10%; right: -10%; top: -6%; height: 88%; opacity: 0.42; clip-path: polygon(0.0% 4.0%, 6.2% 5.9%, 12.5% 7.2%, 18.8% 7.4%, 25.0% 6.5%, 31.2% 4.7%, 37.5% 2.7%, 43.8% 1.1%, 50.0% 0.5%, 56.2% 1.1%, 62.5% 2.7%, 68.8% 4.7%, 75.0% 6.5%, 81.2% 7.4%, 87.5% 7.2%, 93.8% 5.9%, 100.0% 4.0%, 100.0% 94.0%, 93.8% 96.0%, 87.5% 97.9%, 81.2% 99.2%, 75.0% 99.4%, 68.8% 98.5%, 62.5% 96.7%, 56.2% 94.7%, 50.0% 93.1%, 43.8% 92.5%, 37.5% 93.1%, 31.2% 94.6%, 25.0% 96.6%, 18.8% 98.4%, 12.5% 99.4%, 6.2% 99.2%, 0.0% 98.0%); }
.country-tile-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.country-tile-flag::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0,0,0,0.30) 0%, rgba(255,255,255,0.22) 14%, rgba(0,0,0,0.28) 30%, rgba(255,255,255,0.18) 47%, rgba(0,0,0,0.30) 64%, rgba(255,255,255,0.20) 80%, rgba(0,0,0,0.32) 100%); }
:root[data-theme="light"] .country-tile-flag { opacity: 0.34; }
@media (prefers-color-scheme: light) { :root[data-theme="system"] .country-tile-flag { opacity: 0.34; } }
.country-tile-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.country-tile-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.country-tile-name strong { font-size: clamp(1.4rem, 1rem + 0.9vw, 1.9rem); hyphens: auto; overflow-wrap: break-word; font-weight: 700; line-height: 1; text-shadow: 0 1px 8px color-mix(in srgb, var(--color-surface) 80%, transparent); }
.country-tile-name.is-long strong { font-size: clamp(1.2rem, 0.9rem + 0.6vw, 1.45rem); }
.country-tile-name .flag { vertical-align: -2px; }
.country-tile-name span { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-text-muted); }
.country-tile-rank { flex: none; font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--color-border); background: color-mix(in srgb, var(--color-surface) 85%, transparent); }
.country-tile-bottom { display: flex; flex-direction: column; gap: 10px; }
.country-tile-leader { font-size: 0.9rem; color: var(--color-text-muted); }
.country-tile-leader strong { color: var(--color-text); }
.country-tile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.country-tile-stats small { display: block; font-size: 0.75rem; color: var(--color-text-muted); }
.country-tile-stats b { font-family: var(--font-mono); font-weight: 600; }
.country-tile-stats .is-free b { color: var(--color-primary); }
@media (prefers-reduced-motion: reduce) { .country-tile { transition: none; } .country-tile:hover { transform: none; } }

/* Nachrichten der Verwaltung (Postfach und Verwaltung) */
.message-list { list-style: none; margin: 0; padding: 0; }
.message-list li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--color-border); }
.message-list li:first-child { border-top: 0; }
.message-list li.is-unread a { font-weight: 700; }
.message-thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.message-bubble { max-width: 46rem; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--color-border); background: var(--color-surface-2); }
.message-bubble.is-mine { align-self: flex-end; border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border)); }
.message-bubble header { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; margin-bottom: 6px; font-size: 0.9rem; }
.message-bubble header time { margin-left: auto; }
.message-body { line-height: 1.55; overflow-wrap: anywhere; }
tr.is-unread td { font-weight: 600; }
.message-audience { border: 1px solid var(--color-border); border-radius: 8px; padding: 10px 14px; }
.message-audience label { display: flex; align-items: flex-start; gap: 8px; width: auto; margin: 4px 0; font-weight: 500; }
.message-audience input[type="radio"] { width: auto; margin-top: 4px; flex: none; }
.admin-players-select { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.admin-players-select p { margin: 0; }
.whitelist-form { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.whitelist-form input { max-width: 14rem; }

/* Verwaltung: Spielerliste */
.admin-players-form { display: grid; grid-template-columns: minmax(200px, 2fr) repeat(2, minmax(160px, 1fr)) auto; gap: 12px; align-items: end; }
.admin-players-form .field { margin: 0; }
@media (max-width: 760px) { .admin-players-form { grid-template-columns: 1fr; } }
.admin-players td { vertical-align: top; }
.admin-players-actions { white-space: nowrap; }
.admin-players-actions form + form { margin-left: 6px; }
.nav-badge.nav-badge-alert { background: #d0312d; color: #ffffff; }
.country-status-active { color: var(--color-success); border: 1px solid currentColor; }
.country-status-pending { color: #8a6400; border: 1px solid currentColor; }
.country-status-ready { color: var(--color-primary); border: 1px solid currentColor; }
.country-status-incomplete, .country-status-resting { color: var(--color-text-muted); border: 1px solid currentColor; }
:root[data-theme="dark"] .country-status-pending { color: #f2c14e; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .country-status-pending { color: #f2c14e; } }

/* Startseite ohne Verein (Mockup B · Vereinsbörse) */
.start-hub { display: flex; flex-direction: column; gap: 26px; }
.start-hub h2 { margin: 0; }
.start-hub-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.start-hub-head h1 { margin: 0 0 6px; }
.start-hub-head .lead { margin: 0; max-width: 42em; }
.start-hub-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; border: 1px solid currentColor; }
.start-hub-status.is-ok { color: var(--color-success); }
.start-hub-status.is-pending { color: #8a6400; background: #fff4d6; }
:root[data-theme="dark"] .start-hub-status.is-ok { color: #3fb96b; }
:root[data-theme="dark"] .start-hub-status.is-pending { color: #f2c14e; background: rgba(242, 193, 78, 0.1); }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .start-hub-status.is-ok { color: #3fb96b; } :root[data-theme="system"] .start-hub-status.is-pending { color: #f2c14e; background: rgba(242, 193, 78, 0.1); } }
.start-hub-label { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 10px !important; }
.start-hub-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.start-hub-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-surface); text-decoration: none; font-weight: 600; color: var(--color-text); }
.start-hub-chip:hover { border-color: var(--color-primary); }
.start-hub-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.start-hub-more { font-weight: 700; }
.start-hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.start-hub-club { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.start-hub-club-head { display: flex; gap: 12px; align-items: center; }
.start-hub-club-head > div { display: flex; flex-direction: column; min-width: 0; }
.start-hub-club-name { font-size: 1.15rem; font-weight: 700; color: var(--color-text); text-decoration: none; }
.start-hub-tag { align-self: flex-start; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; border: 1px solid currentColor; }
.start-hub-tag.is-starter { color: var(--color-primary); }
.start-hub-tag.is-playoff { color: #8a6400; }
.start-hub-tag.is-challenge { color: var(--color-danger); }
:root[data-theme="dark"] .start-hub-tag.is-playoff { color: #f2c14e; }
:root[data-theme="dark"] .start-hub-tag.is-challenge { color: #f07a6e; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .start-hub-tag.is-playoff { color: #f2c14e; } :root[data-theme="system"] .start-hub-tag.is-challenge { color: #f07a6e; } }
.start-hub-facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.start-hub-facts dt { color: var(--color-text-muted); }
.start-hub-facts dd { margin: 0; font-family: var(--font-mono); }
.start-hub-club form { margin-top: auto; }
.start-hub-take { width: 100%; min-height: 44px; }
.start-hub-found { border: 2px dashed var(--color-border); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 10px; justify-content: center; text-decoration: none; color: var(--color-text); }
.start-hub-found:hover { border-color: var(--color-primary); }
.start-hub-found svg, .start-hub-found-cta { color: var(--color-primary); }
.start-hub-found strong { font-size: 1.2rem; }
.start-hub-found-cta { font-weight: 700; }
.start-hub-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.start-hub-columns .card { margin: 0; }
.start-hub-mono { font-family: var(--font-mono); }
.start-hub-games { list-style: none; margin: 0 0 12px; padding: 0; }
.start-hub-games li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--color-border); }
.start-hub-time { color: var(--color-text-muted); }
.start-hub-story { border-top: 1px solid var(--color-border); padding-top: 10px; margin-top: 10px; }
.start-hub-story h3 { margin: 2px 0 0; font-size: 1.25rem; line-height: 1.2; }
.start-hub-story h3 a { color: var(--color-text); text-decoration: none; }
.start-hub-story h3 a:hover { text-decoration: underline; }

/* Tutorial-Rundgang (Paket 9) */
.tutorial-panel { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: min(380px, calc(100vw - 32px)); box-sizing: border-box; padding: 16px 18px 14px; border-radius: 10px; background: var(--color-surface); color: var(--color-text); border: 2px solid var(--color-primary); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.45); }
.tutorial-panel h2 { margin: 6px 0 6px; font-size: 1.1rem; text-transform: none; letter-spacing: 0; color: var(--color-text); }
.tutorial-panel p { margin: 0 0 8px; line-height: 1.45; font-size: 0.93rem; }
.tutorial-panel.is-away { border-style: dashed; }
.tutorial-progress { display: flex; justify-content: space-between; gap: 10px; margin: 0 26px 4px 0 !important; font-size: 0.72rem !important; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); }
.tutorial-bar { height: 4px; border-radius: 2px; background: var(--color-border); overflow: hidden; }
.tutorial-bar span { display: block; height: 100%; background: var(--color-primary); }
.tutorial-tip { padding: 6px 10px; border-radius: 6px; background: var(--color-accent-soft); font-size: 0.86rem !important; }
.tutorial-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.tutorial-actions form { margin: 0; }
.tutorial-end { margin-left: auto !important; }
.tutorial-end .link-button { font-size: 0.82rem; color: var(--color-text-muted); }
.tutorial-toggle { position: absolute; top: 8px; right: 10px; width: 26px; height: 26px; border: 1px solid var(--color-border); border-radius: 6px; background: transparent; color: var(--color-text-muted); font-weight: 700; cursor: pointer; line-height: 1; }
.tutorial-panel.is-collapsed > :not(.tutorial-toggle):not(.tutorial-progress):not(.tutorial-bar) { display: none; }
.tutorial-highlight { position: relative; outline: 3px solid var(--color-primary); outline-offset: 6px; border-radius: 6px; animation: tutorial-pulse 1.8s ease-in-out 3; }
@keyframes tutorial-pulse { 0%, 100% { outline-color: var(--color-primary); } 50% { outline-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .tutorial-highlight { animation: none; } }
@media (max-width: 640px) { .tutorial-panel { right: 16px; left: 16px; bottom: 16px; width: auto; } }
.setup-name label { display: block; max-width: 420px; margin-bottom: 10px; }
.setup-name .input-short { max-width: 8em; text-transform: uppercase; }
.tutorial-start p { margin: 0 0 10px; }
.club-history-all { margin-top: 10px; }
.club-history-all summary { cursor: pointer; font-weight: 600; color: var(--color-primary); padding: 4px 0; }
.club-history-all[open] summary { margin-bottom: 8px; }
.sidebar-foot .nav-bug { display: inline-flex; align-items: center; gap: 8px; }
.sidebar-foot .nav-bug svg { flex: none; }

/* Rückennummern, MVPs der Saison und Hall of Fame (0.3.0) */
.jersey-num { font-family: var(--font-mono); color: var(--color-text-muted); width: 2.5em; }
.number-input { width: 5em; text-align: right; }
.numbers-table tr.has-error td { background: color-mix(in srgb, var(--color-danger) 10%, transparent); }
.player-number { font-family: 'Barlow Condensed', var(--font-mono); color: var(--color-text-muted); font-weight: 800; }
.player-awards { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.award-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-surface); text-decoration: none; color: var(--color-text); font-size: 0.85rem; font-weight: 600; }
.award-badge:hover { border-color: var(--color-primary); }
.award-badge.award-world { border-color: #C8961E; }
.medal { flex: none; vertical-align: middle; }
.eyebrow { margin: 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-primary); }
.league-mvp-link { margin: -4px 0 var(--space); }
.league-mvp-link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.jersey-back { display: block; max-width: 100%; height: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.3)); }
.award-stats { font-size: 0.9rem; text-align: center; }

.mvp-podium-card { padding-bottom: 0; overflow: hidden; }
.mvp-podium { display: flex; gap: 16px; align-items: flex-end; }
.mvp-podium-place { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.mvp-name { display: flex; align-items: center; gap: 6px; font-family: 'Barlow Condensed', sans-serif; font-size: 1.3rem; line-height: 1.1; }
.mvp-rank-1 .mvp-name { font-size: 1.6rem; }
.mvp-club { font-size: 0.9rem; }
.mvp-step { width: 100%; margin-top: 6px; border-radius: 8px 8px 0 0; border: 1px solid var(--color-border); border-bottom: 0; background: linear-gradient(180deg, var(--color-surface-2), var(--color-surface)); display: grid; place-items: center; font-family: 'Barlow Condensed', sans-serif; font-size: 3rem; font-weight: 800; color: var(--color-text-muted); }
.mvp-rank-1 .mvp-step { height: 150px; color: #C8961E; background: linear-gradient(180deg, color-mix(in srgb, #C8961E 28%, var(--color-surface)), var(--color-surface)); }
.mvp-rank-2 .mvp-step { height: 110px; }
.mvp-rank-3 .mvp-step { height: 80px; }
.mvp-explain { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.mvp-explain > div { flex: 1 1 300px; }
.mvp-explain p { margin: 4px 0 0; }

.mvp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-bottom: var(--space); }
.mvp-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 18px; border-radius: 16px; border: 2px solid var(--color-border); background: radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--mvp-tint) 35%, transparent), transparent 70%), var(--color-surface); text-align: center; }
.mvp-card.mvp-rank-1 { border-color: #C8961E; }
.mvp-card-medal { position: absolute; left: 14px; top: 12px; }
.mvp-card-flag { position: absolute; right: 14px; top: 16px; }
.mvp-card-name { font-family: 'Barlow Condensed', sans-serif; font-size: 1.7rem; line-height: 1; }
.mvp-card-league { font-size: 0.85rem; }
.mvp-card-club { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; }
.mvp-card-club .club-link { display: inline-flex; align-items: center; gap: 4px; }
.mvp-card-foot { font-family: var(--font-mono); font-size: 0.8rem; color: #C8961E; }
.mvp-history { list-style: none; margin: 0; padding: 0; }
.mvp-history li { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding: 8px 0; border-top: 1px solid var(--color-border); }
.mvp-history-season { font-family: var(--font-mono); min-width: 6em; }

.hall-wall { padding: 28px 20px; border-radius: 14px; background: repeating-linear-gradient(90deg, #121826 0 120px, #0F1420 120px 240px); border: 1px solid var(--color-border); margin-bottom: var(--space); color: #E6EDF7; }
.hall-wall a { color: #7FD4FF; }
.hall-wall .muted { color: #9AABC6; }
.hall-empty { text-align: center; margin: 24px 0; }
.hall-frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 30px 18px; }
.hall-frame { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hall-frame-box { position: relative; padding: 14px 18px; border-radius: 6px; background: linear-gradient(180deg, #1B2333, #0D121C); border: 6px solid #3B2A1E; box-shadow: inset 0 0 0 2px #6B4F35, 0 12px 26px rgba(0, 0, 0, 0.55); }
.hall-retired { position: absolute; right: -10px; top: -10px; padding: 3px 8px; border-radius: 4px; background: #FFB000; color: #2B1E08; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; transform: rotate(6deg); }
.hall-frame figcaption { text-align: center; display: flex; flex-direction: column; gap: 2px; align-items: center; }
.hall-frame figcaption strong { font-family: 'Barlow Condensed', sans-serif; font-size: 1.35rem; }
.hall-record { color: #FFB000; font-size: 0.9rem; font-weight: 600; }
.hall-note { font-size: 0.85rem; color: #C9D4E5; }
.hall-frame .link-button { color: #9AABC6; font-size: 0.8rem; }
.hall-retired-numbers { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hall-number { font-family: 'Barlow Condensed', sans-serif; font-size: 1.8rem; font-weight: 800; padding: 0 14px; border-radius: 6px; background: var(--color-surface-2); border: 1px solid var(--color-border); }
.hall-honor-form select, .hall-honor-form input[type="text"] { max-width: 34rem; }
.hall-records { list-style: none; margin: 0; padding: 0; }
.hall-records li { display: grid; grid-template-columns: minmax(0, 1.4fr) 90px minmax(0, 1.4fr) minmax(0, 0.9fr); gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--color-border); }
.hall-records li:first-child { border-top: 0; }
.hall-records-label { font-weight: 600; }
.hall-records-value { font-family: 'Barlow Condensed', sans-serif; font-size: 1.9rem; font-weight: 800; color: #C8961E; text-align: right; }
.hall-records-when { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-text-muted); }
@media (max-width: 640px) {
    .mvp-podium { gap: 8px; }
    .mvp-name, .mvp-rank-1 .mvp-name { font-size: 1.1rem; flex-direction: column; }
    .mvp-podium .award-stats { font-size: 0.8rem; }
    .mvp-rank-1 .mvp-step { height: 90px; }
    .mvp-rank-2 .mvp-step { height: 66px; }
    .mvp-rank-3 .mvp-step { height: 48px; }
    .hall-records li { grid-template-columns: 1fr auto; }
    .hall-records li > span:nth-child(3), .hall-records li > span:nth-child(4) { grid-column: 1 / -1; }
    .hall-records-value { font-size: 1.5rem; }
}

/* Jugendtrainer, Scouts, Videoanalysten, Fanshop-Sortiment (0.4.0) */
.staff-count { font-size: 0.9rem; font-weight: 600; }
.staff-requirement { margin-top: -4px; }
.staff-members { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.staff-members li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 0; border-top: 1px solid var(--color-border); }
.staff-members li:first-child { border-top: 0; }
.staff-members .inline-form { margin-left: auto; }
.checkbox.checkbox-sub { margin-left: 26px; font-size: 0.92rem; }
.scout-targets, .scout-list, .scout-reports, .scout-top, .video-recs, .merch-locked-list { list-style: none; margin: 0; padding: 0; }
.scout-targets > li { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--color-border); }
.scout-targets > li:first-child { border-top: 0; }
.scout-game { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.scout-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 0; border-top: 1px solid var(--color-border); }
.scout-list li:first-child { border-top: 0; }
.scout-report { padding: 10px 0 10px 12px; border-top: 1px solid var(--color-border); border-left: 3px solid transparent; }
.scout-report:first-child { border-top: 0; }
.scout-report.is-new { border-left-color: var(--color-primary); }
.scout-report p { margin: 4px 0; }
.scout-top li { padding: 2px 0; }
.scout-by { display: block; font-size: 0.8rem; }
.scout-box .inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.talent-range { display: inline-flex; align-items: center; gap: 6px; }
.video-start { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin-bottom: 8px; }
.video-start select { max-width: 24rem; }
.video-report.is-new { border-left: 3px solid var(--color-primary); }
.video-report h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.video-compare td.is-better { color: var(--color-success); font-weight: 700; }
.video-compare td.is-worse { color: var(--color-danger); font-weight: 700; }
.video-recs li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 4px 0; }
.video-rec-mark { width: 1.2em; text-align: center; font-weight: 700; }
.video-recs .is-followed .video-rec-mark { color: var(--color-success); }
.video-recs .is-open .video-rec-mark { color: var(--color-text-muted); }
.form-dot { display: inline-block; min-width: 1.4em; padding: 0 4px; margin-left: 3px; border-radius: 4px; text-align: center; font-family: var(--font-mono); font-size: 0.8rem; color: #fff; }
.form-dot.form-w { background: var(--color-success); }
.form-dot.form-l { background: var(--color-danger); }
.form-dot.form-otl { background: #B7791F; }
.merch-online { margin: 8px 0 0; font-weight: 600; }
.merch-online.is-open { color: var(--color-success); }
.merch-online.is-closed { color: var(--color-text-muted); }
.merch-locked { margin-top: var(--space); }
.merch-locked-list li { padding: 4px 0; }

/* Sponsoren-Cockpit, Sponsor-Logos, Trikotsponsor, Eisfläche (0.5.0) */
.sponsor-logo { display: inline-block; vertical-align: middle; max-width: 100%; height: auto; }
.sponsor-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--color-surface-2); color: var(--color-text-muted); font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.sponsor-chip.is-accent { color: var(--color-primary); }
.sponsor-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: var(--space); }
.sponsor-kpi { display: flex; flex-direction: column; gap: 2px; }
.sponsor-kpi strong { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; line-height: 1.05; }
.sponsor-cockpit { padding: 8px 12px; }
.sponsor-table { width: 100%; border-collapse: collapse; }
.sponsor-table th, .sponsor-table td { padding: 12px 10px; text-align: left; vertical-align: middle; border-top: 1px solid var(--color-border); }
.sponsor-table thead th { border-top: 0; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); }
.sponsor-table tbody th { vertical-align: top; font-weight: 400; }
.sponsor-slot-name { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 1.3rem; }
.sponsor-slot-hint { display: block; font-size: 0.8rem; }
.sponsor-next-col { background: var(--color-surface-2); }
.sponsor-firm { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sponsor-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.sponsor-value { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.sponsor-value strong { font-family: 'Barlow Condensed', sans-serif; font-size: 1.35rem; }
.sponsor-value .muted { font-size: 0.8rem; }
.sponsor-bar { position: relative; display: block; width: 150px; height: 10px; border-radius: 5px; background: var(--color-surface-2); overflow: visible; }
.sponsor-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--color-success); }
.sponsor-bar.is-ok .sponsor-bar-fill { background: #F2B33D; }
.sponsor-bar.is-low .sponsor-bar-fill { background: var(--color-danger); }
.sponsor-bar-mark { position: absolute; left: 76.9%; top: -2px; width: 2px; height: 14px; background: var(--color-text); }
.sponsor-sat { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.sponsor-gauge .gauge-track { stroke: var(--color-border); }
.sponsor-gauge.is-good .gauge-value { stroke: var(--color-success); }
.sponsor-gauge.is-ok .gauge-value { stroke: #F2B33D; }
.sponsor-gauge.is-low .gauge-value { stroke: var(--color-danger); }
.sponsor-offers-link { display: inline-flex; padding: 8px 12px; border-radius: 8px; border: 1px dashed #F2B33D; color: #B7791F; font-weight: 700; text-decoration: none; }
.sponsor-pools { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: var(--space) 0; }
.sponsor-pool { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.sponsor-pool:hover { border-color: var(--color-primary); }
.sponsor-pool-head { display: flex; justify-content: space-between; }
.sponsor-cells { display: flex; flex-wrap: wrap; gap: 4px; }
.sponsor-cells span { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--color-border); }
.sponsor-cells span.is-used { background: var(--color-primary); border-color: var(--color-primary); }
.sponsor-pool-note { font-size: 0.85rem; color: #B7791F; }
.sponsor-details { margin-bottom: 12px; }
.sponsor-details > summary { cursor: pointer; }
.sponsor-offers .sponsor-firm { flex-direction: row; flex-wrap: wrap; align-items: center; }
.kit-preview { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 12px; }
.kit-options { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; }
.kit-option { display: inline-flex; align-items: center; gap: 6px; }
.kit-option-logo { padding: 6px 8px; border: 1px solid var(--color-border); border-radius: 8px; }
.kit-option-logo:has(input:checked) { border-color: var(--color-primary); }
.arena-rink { margin-bottom: var(--space); }
.ice-rink-wrap { width: 100%; }
.ice-rink { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
    .sponsor-table thead { display: none; }
    .sponsor-table tr { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--color-border); }
    .sponsor-table th, .sponsor-table td { border-top: 0; }
    .sponsor-table tbody th, .sponsor-next-col { grid-column: 1 / -1; }
}
.merch-expensive { font-size: 0.78rem; color: var(--color-danger); }

/* Hallenplan mit Seitenfeld (0.5.0) */
.arena-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: var(--space); }
.arena-kpi { display: flex; flex-direction: column; gap: 2px; }
.arena-kpi strong { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; line-height: 1.05; }
.arena-kpi.is-warn strong { color: #B7791F; }
.arena-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 18px; align-items: start; margin-bottom: var(--space); }
.arena-plan-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.arena-plan-head h2 { margin: 0; }
.arena-plan-wrap { margin: 10px 0; }
.arena-plan-top { display: block; width: 100%; height: auto; }
.arena-plan-top .ap-stand { cursor: pointer; }
.arena-plan-top .ap-stand-box { fill: var(--color-surface-2); stroke: var(--color-border); stroke-width: 2; }
.arena-plan-top .ap-stand:hover .ap-stand-box, .arena-plan-top .ap-stand:focus .ap-stand-box { stroke: var(--color-primary); }
.arena-plan-top .ap-stand.is-selected .ap-stand-box { stroke: var(--color-primary); stroke-width: 5; }
.arena-plan-top .ap-stand.is-building .ap-stand-box { stroke: #F2B33D; stroke-dasharray: 12 7; }
.arena-plan-top .ap-stand.is-empty .ap-stand-box { fill: transparent; stroke-dasharray: 6 6; }
.arena-plan-top .ap-places { fill: var(--color-text); font-family: 'Barlow Condensed', sans-serif; font-weight: 800; }
.arena-plan-top .ap-name { fill: var(--color-text-muted); }
.arena-plan-top .ap-tag.is-fan { fill: #F2B33D; }
.arena-plan-top .ap-tag.is-away { fill: #4C8DF6; }
.arena-plan-top .ap-tag-text { fill: #0B1222; font-weight: 700; }
.arena-plan-top .ap-progress-track { fill: var(--color-border); }
.arena-plan-top .ap-progress { fill: #F2B33D; }
.arena-plan-top .ap-progress-text { fill: #B7791F; font-weight: 700; }
.arena-legend .swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: middle; }
.arena-iso-details { margin: 8px 0 12px; }
.arena-iso-details > summary { cursor: pointer; font-weight: 600; }
.arena-panels .arena-panel { margin-bottom: 12px; }
.arena-panels.is-js .arena-panel { display: none; }
.arena-panels.is-js .arena-panel.is-selected { display: block; position: sticky; top: 12px; }
.arena-panel h2 { margin: 2px 0; font-family: 'Barlow Condensed', sans-serif; font-size: 1.8rem; }
.arena-panel .arena-form { display: flex; flex-direction: column; gap: 8px; }
.arena-panel .arena-form label { display: grid; grid-template-columns: 14px 1fr 8.5em; align-items: center; gap: 8px; }
.arena-panel .arena-form label .swatch { width: 12px; height: 12px; border-radius: 3px; }
.arena-panel .arena-form label:not(:has(.swatch)) { grid-template-columns: 1fr 8.5em; padding-left: 22px; }
.arena-split { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--color-surface-2); margin: 8px 0; }
.arena-split span { display: block; height: 100%; }
.arena-progress { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.arena-progress-bar { display: block; height: 10px; border-radius: 5px; background: var(--color-border); overflow: hidden; }
.arena-progress-bar span { display: block; height: 100%; background: #F2B33D; }
.arena-progress-text { font-size: 0.85rem; font-weight: 600; color: #B7791F; }
.arena-lower { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-bottom: var(--space); }
.arena-equipment-list { list-style: none; margin: 0; padding: 0; }
.arena-equipment-list li { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid var(--color-border); }
.arena-equipment-list li:first-child { border-top: 0; }
.arena-equipment-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.arena-equipment-form { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
@media (max-width: 900px) {
    .arena-main { grid-template-columns: 1fr; }
    .arena-panels.is-js .arena-panel.is-selected { position: static; }
}

/* Verwaltung: Reiterleiste und Dashboard (0.5.0) */
.admin-nav { margin-bottom: var(--space); }
.admin-nav-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; border-bottom: 1px solid var(--color-border); }
.admin-nav-title { padding: 10px 14px 10px 0; font-family: 'Barlow Condensed', sans-serif; font-size: 1.35rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text); text-decoration: none; }
.admin-tab { position: relative; }
.admin-tab > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 8px 8px 0 0; font-weight: 700; color: var(--color-text-muted); }
.admin-tab > summary::-webkit-details-marker { display: none; }
.admin-tab > summary::after { content: '▾'; font-size: 0.75rem; }
.admin-tab.is-current > summary { color: var(--color-primary); background: var(--color-surface); border: 1px solid var(--color-border); border-bottom-color: var(--color-surface); margin-bottom: -1px; }
.admin-tab-menu { position: absolute; left: 0; top: calc(100% + 2px); z-index: 20; min-width: 240px; margin: 0; padding: 6px; list-style: none; border-radius: 10px; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35); }
.admin-tab-menu a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 6px; text-decoration: none; font-weight: 600; color: var(--color-text); }
.admin-tab-menu a:hover, .admin-tab-menu a.is-current { background: var(--color-surface-2); }
.admin-tab-menu a.is-current { color: var(--color-primary); }
.admin-nav-version { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--color-surface-2); color: var(--color-text-muted); font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.admin-crumbs { margin: 10px 0 0; color: var(--color-text-muted); font-size: 0.9rem; }
.admin-dash-section h2 { margin-bottom: 8px; }
.admin-todo { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: var(--space); }
.admin-todo-card { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
.admin-todo-card.is-open { border-color: var(--color-danger); }
.admin-todo-count { font-family: 'Barlow Condensed', sans-serif; font-size: 2.1rem; line-height: 1; }
.admin-todo-card.is-open .admin-todo-count { color: var(--color-danger); }
.admin-todo-link { font-size: 0.85rem; color: var(--color-primary); }
.admin-dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.admin-health { list-style: none; margin: 0 0 12px; padding: 0; }
.admin-health li { display: grid; grid-template-columns: 12px 1fr auto; gap: 4px 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--color-border); }
.admin-health li:first-child { border-top: 0; }
.admin-health-hint { grid-column: 2 / -1; }
.admin-world-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.admin-world-stat { display: flex; flex-direction: column; padding: 12px; border-radius: 10px; background: var(--color-surface-2); text-decoration: none; color: inherit; }
.admin-world-stat strong { font-family: 'Barlow Condensed', sans-serif; font-size: 1.9rem; line-height: 1; }
.admin-world-stat span { color: var(--color-text-muted); font-size: 0.85rem; }
.admin-season-bar { display: block; height: 10px; border-radius: 5px; background: var(--color-border); overflow: hidden; margin-bottom: 12px; }
.admin-season-bar span { display: block; height: 100%; background: var(--color-primary); }
.admin-nav + .breadcrumb { display: none; }
.admin-update-scheduled { border-color: var(--color-primary); }
.admin-update-scheduled.is-failed { border-color: var(--color-danger); }
.admin-update-schedule { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--color-border); }

/* Gerätemeldungen (0.6.0) */
.push-status { font-weight: 600; }
.push-devices { list-style: none; margin: 0 0 10px; padding: 0; }
.push-devices li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 0; border-top: 1px solid var(--color-border); }
.push-devices li:first-child { border-top: 0; }
.push-devices .inline-form { margin-left: auto; }
.push-form fieldset { margin-bottom: 12px; }
.push-competitions { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0 0 6px 26px; }
.push-competitions .checkbox-sub { margin-left: 0; }
.push-quiet-times { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 6px 0 6px 26px; }
.push-settings [hidden] { display: none !important; }
.push-form fieldset { border: 1px solid var(--color-border); border-radius: 10px; padding: 10px 16px 12px; }
.push-form legend { padding: 0 6px; font-weight: 700; }
/* 0.7.0 Fans: Fanpflege */
.card-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.fan-mood-box { display: grid; grid-template-columns: 190px 1fr minmax(220px, auto); gap: 12px 28px; align-items: center; }
.fan-mood-box .fan-gauge { max-width: 190px; }
.fan-mood-main .fan-mood-value { text-align: left; margin: 0 0 4px; }
.fan-mood-main .fan-mood-value strong { font-size: 2.6rem; line-height: 1; }
.fan-mood-label { font-weight: 700; }
.fan-mood-label.is-euphoria, .fan-mood-label.is-content { color: var(--color-success); }
.fan-mood-label.is-mixed { color: #e0b030; }
.fan-mood-label.is-unrest, .fan-mood-label.is-rage { color: var(--color-danger); }
.fan-mood-facts { margin: 0; }
.fan-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.fan-action { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius); }
.fan-action h3 { margin: 0; }
.fan-action p { margin: 0; }
.fan-action .button, .fan-action .fan-action-done { margin-top: auto; }
.fan-action-cost { font-size: 0.9em; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.fan-action-done { color: var(--color-success); font-weight: 700; padding: 8px 0 2px; }
.hint.is-warn { color: #e0b030; }
.fan-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; align-items: start; }
.fan-columns > .card { margin: 0; }
.fan-clubs, .fan-wishes, .fan-daily { list-style: none; margin: 0 0 8px; padding: 0; }
.fan-clubs li, .fan-wishes li, .fan-daily li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.fan-club-level { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--color-text-muted); }
.fan-wishes li { display: grid; grid-template-columns: 18px 1fr auto; }
.fan-wish-icon { font-weight: 700; text-align: center; }
.fan-wish-status { font-size: 0.85em; font-weight: 700; }
.fan-wishes .is-done .fan-wish-icon, .fan-wishes .is-done .fan-wish-status { color: var(--color-success); }
.fan-wishes .is-open .fan-wish-icon, .fan-wishes .is-open .fan-wish-status { color: #e0b030; }
.fan-wishes .is-failed .fan-wish-icon, .fan-wishes .is-failed .fan-wish-status { color: var(--color-danger); }
.fan-daily .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fan-daily .is-bad { color: var(--color-danger); }
.fan-daily .is-good { color: var(--color-success); }
.fan-daily .fan-daily-sum { border-bottom: 0; }
@media (max-width: 760px) {
    .fan-mood-box { grid-template-columns: 1fr; }
    .fan-mood-box .fan-gauge { margin: 0 auto; }
}
/* 0.7.0 Ticketverkauf: Preis-Cockpit */
.ticket-deadline { margin-bottom: var(--space); }
.ticket-prices { padding-bottom: 8px; }
.ticket-price-row { display: grid; grid-template-columns: 170px 1fr 150px 150px; gap: 8px 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.ticket-price-label { display: flex; flex-direction: column; gap: 2px; }
.ticket-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: 1px; }
.ticket-dot.is-standing { background: #F2B33D; }
.ticket-dot.is-seated { background: #3E8BF0; }
.ticket-dot.is-business { background: #B07CF0; }
.ticket-slider input[type="range"] { width: 100%; margin: 6px 0 2px; accent-color: var(--color-primary); height: 8px; border-radius: 4px; -webkit-appearance: none; appearance: none;
    background: linear-gradient(90deg, var(--color-success) 0%, var(--color-success) calc(var(--ref) + 8%), #e0b030 calc(var(--ref) + 22%), var(--color-danger) 100%); }
.ticket-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--color-surface); border: 3px solid var(--color-primary); cursor: pointer; }
.ticket-slider input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--color-surface); border: 3px solid var(--color-primary); cursor: pointer; }
.ticket-slider-scale { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--color-text-muted); }
.ticket-price-input { display: flex; flex-direction: column; gap: 2px; }
.ticket-price-field input { width: 5.5em; text-align: right; font-weight: 700; }
.ticket-diff { font-size: 0.82rem; color: var(--color-success); }
.ticket-diff.is-high { color: var(--color-danger); }
.ticket-diff.is-low { color: #e0b030; }
.ticket-price-revenue { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.ticket-price-revenue strong { font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ticket-forecast { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 12px; }
.ticket-forecast p { margin: 0; }
.ticket-forecast strong { font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; }
.ticket-columns { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.2fr) minmax(260px, 1fr); gap: 16px; align-items: start; margin-bottom: var(--space); }
.ticket-columns > .card { margin: 0; }
.ticket-curve { width: 100%; height: auto; display: block; }
.ticket-curve-axis { stroke: var(--color-border); stroke-width: 1; }
.ticket-curve-ref { stroke: var(--color-text-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.ticket-curve-line { fill: none; stroke: var(--color-primary); stroke-width: 2.5; stroke-linejoin: round; }
.ticket-curve-dot { fill: #F2B33D; stroke: var(--color-surface); stroke-width: 2; }
.ticket-curve-label { font-size: 10px; fill: var(--color-text-muted); }
.ticket-modifiers { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 8px; }
.ticket-pct { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.ticket-pct input { width: 4.2em; text-align: right; }
.ticket-opponents { list-style: none; margin: 0; padding: 0; }
.ticket-opponents li { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 6px 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.ticket-crest svg { display: block; }
.ticket-opponent { display: flex; flex-direction: column; min-width: 0; }
.ticket-opponent .muted { font-size: 0.82rem; }
.ticket-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.badge-champion { background: #F2B33D; color: #1b1300; }
.badge-promoted { background: color-mix(in srgb, var(--color-success) 22%, transparent); color: var(--color-success); }
.badge-relegated { background: color-mix(in srgb, var(--color-danger) 20%, transparent); color: var(--color-danger); }
.pill-toggle { position: relative; display: inline-flex; cursor: pointer; }
.pill-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill-toggle span { padding: 4px 10px; border: 1px solid var(--color-border); border-radius: 999px; font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.pill-toggle input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.pill-toggle.is-top input:checked + span { background: #F2B33D; border-color: #F2B33D; color: #1b1300; }
.pill-toggle.is-discount input:checked + span { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-primary-text); }
.pill-toggle input:disabled + span { opacity: 0.45; cursor: not-allowed; }
.ticket-season-count { margin: 0 0 6px; }
.ticket-season-count strong { font-family: 'Barlow Condensed', sans-serif; font-size: 2.2rem; line-height: 1; }
.ticket-bar { display: block; height: 8px; border-radius: 4px; background: var(--color-border); overflow: hidden; margin-bottom: 10px; }
.ticket-bar span { display: block; height: 100%; background: var(--color-success); }
.ticket-season-discount { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 10px 0 4px; }
@media (max-width: 1100px) {
    .ticket-columns { grid-template-columns: 1fr 1fr; }
    .ticket-columns > .card:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 760px) {
    .ticket-price-row { grid-template-columns: 1fr 1fr; }
    .ticket-slider { grid-column: 1 / -1; grid-row: 2; }
    .ticket-columns { grid-template-columns: 1fr; }
}
/* 0.7.0 Fanartikel: Tabelle + Sortiment nach Stufe */
.merch-online-banner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.merch-online-banner p { margin: 0; }
.merch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; margin-bottom: var(--space); }
.merch-layout > .card { margin: 0; }
.merch-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.merch-bulk { display: flex; flex-wrap: wrap; gap: 6px; }
.merch-table td { vertical-align: middle; }
.merch-table input[type="number"] { width: 4.4em; min-width: 0; padding: 4px 6px; text-align: right; }
.merch-table .merch-order input[type="number"] { width: 5em; }
.merch-reference { white-space: nowrap; color: var(--color-text-muted); }
.merch-week { white-space: nowrap; }
.merch-week .muted { display: block; font-size: 0.78rem; }
.merch-spark { display: block; width: 64px; height: 22px; }
.merch-spark polyline { fill: none; stroke: var(--color-primary); stroke-width: 1.6; stroke-linejoin: round; }
.merch-stock { min-width: 120px; }
.merch-stock .muted { display: block; font-size: 0.78rem; }
.merch-range { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.merch-range-bar { display: inline-block; width: 52px; height: 6px; border-radius: 3px; background: var(--color-border); overflow: hidden; }
.merch-range-bar span { display: block; height: 100%; background: currentColor; }
.merch-range.is-ok { color: var(--color-success); }
.merch-range.is-mid { color: #e0b030; }
.merch-range.is-low { color: var(--color-danger); }
.merch-auto-col { text-align: center; }
.merch-order { white-space: nowrap; }
.merch-order { display: flex; gap: 6px; align-items: center; }
.merch-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.merch-footer .hint { flex: 1 1 320px; margin: 0; }
.merch-ladder h2 { margin-top: 0; }
.merch-levels { list-style: none; margin: 8px 0 12px; padding: 0; }
.merch-levels li { display: grid; grid-template-columns: 74px 1fr; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--color-border); }
.merch-level-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.1rem; }
.merch-levels .is-locked .merch-level-name { color: var(--color-text-muted); }
.merch-levels .is-current .merch-level-name { color: var(--color-primary); }
.merch-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.merch-chip { padding: 2px 8px; border-radius: 999px; font-size: 0.78rem; background: color-mix(in srgb, var(--color-text) 8%, transparent); }
.merch-chip.is-locked { background: transparent; border: 1px solid var(--color-border); color: var(--color-text-muted); }
.merch-chip em { font-style: normal; color: #e0b030; }
.merch-chip.is-online { border: 1px solid var(--color-primary); background: transparent; color: var(--color-primary); }
.merch-chip.is-online.is-locked { border-color: var(--color-border); color: var(--color-text-muted); }
.merch-expand { display: block; text-align: center; }
.merch-expand span { font-weight: 700; }
@media (max-width: 1100px) {
    .merch-layout { grid-template-columns: 1fr; }
}
/* 0.8.0 Medienproduktion: Stufenliste */
.media-steps { list-style: none; margin: 4px 0 10px; padding: 0; font-size: 0.86rem; columns: 2; column-gap: 14px; }
.media-steps li { break-inside: avoid; padding: 2px 0; color: var(--color-text-muted); }
.media-steps .media-step-no { display: inline-block; min-width: 1.6em; font-variant-numeric: tabular-nums; font-weight: 700; }
.media-steps li.is-done { color: var(--color-text); }
.media-steps li.is-done .media-step-no { color: var(--color-success); }
.media-steps li.is-next { color: var(--color-text); font-weight: 600; }
@media (max-width: 520px) {
    .media-steps { columns: 1; }
}
/* 0.9.0 Freundschaftsspiele */
.friendly-club { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.friendly-club svg { display: block; }
.friendly-list { list-style: none; margin: 0 0 10px; padding: 0; }
.friendly-list li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding: 9px 0; border-bottom: 1px solid var(--color-border); }
.friendly-list .button-row { margin: 0; display: flex; gap: 6px; }
.friendly-search { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.friendly-search label { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; }
.friendly-request { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--color-border); }
.friendly-when { display: flex; gap: 12px; flex-wrap: wrap; }
.friendly-when label { display: flex; flex-direction: column; gap: 4px; }
.friendly-venue { border: 1px solid var(--color-border); border-radius: 10px; padding: 8px 14px 10px; margin: 10px 0; }
.friendly-venue legend { padding: 0 6px; font-weight: 700; }
