:root {
    --stat-bezirk-fg: #455a75;
    --stat-bezirk-bg: #eef2f8;
    --stat-liga-fg: #3a6d69;
    --stat-liga-bg: #e8f1f0;
    --stat-verein-fg: #7a5a37;
    --stat-verein-bg: #f5ece0;
    --stat-mannschaft-fg: #5f6f38;
    --stat-mannschaft-bg: #eff3e2;
}

.stat-badge {
    font-weight: 600;
    font-size: 0.82rem;
    border: 1px solid transparent;
}

.stat-bezirk {
    background-color: var(--stat-bezirk-bg);
    color: var(--stat-bezirk-fg);
    border-color: var(--stat-bezirk-fg);
}

.stat-liga {
    background-color: var(--stat-liga-bg);
    color: var(--stat-liga-fg);
    border-color: var(--stat-liga-fg);
}

.stat-verein {
    background-color: var(--stat-verein-bg);
    color: var(--stat-verein-fg);
    border-color: var(--stat-verein-fg);
}

.stat-mannschaft {
    background-color: var(--stat-mannschaft-bg);
    color: var(--stat-mannschaft-fg);
    border-color: var(--stat-mannschaft-fg);
}

.stat-card {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
    transition: box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stat-card:hover {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .075);
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .stat-card:hover {
        transform: none;
    }
}

.stat-card--bezirk {
    border-top: 3px solid var(--stat-bezirk-fg);
}

.stat-card--liga {
    border-top: 3px solid var(--stat-liga-fg);
}

.stat-card .card-head {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f1f3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.stat-card .card-head h5 {
    margin: 0;
    font-weight: 700;
    color: var(--font-color);
    font-size: 1rem;
}

.stat-card .card-head h5 a {
    color: inherit;
    text-decoration: none;
}

.stat-card .card-head h5 a:hover {
    text-decoration: underline;
}

.stat-card .card-head .head-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.stat-card .card-foot {
    padding: 0.6rem 1.25rem;
    border-top: 1px solid #f0f1f3;
    background: #fafbfc;
    border-radius: 0 0 1rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.stat-card .liga-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    flex-grow: 1;
}

.stat-card .liga-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 1.25rem;
    gap: 0.75rem;
    border-bottom: 1px solid #f7f7f8;
}

.stat-card .liga-list li:last-child {
    border-bottom: none;
}

.stat-card .liga-list a {
    color: var(--font-color);
    text-decoration: none;
    font-weight: 600;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-card .liga-list a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.stat-card .liga-list .liga-nr {
    font-size: 0.82rem;
    color: gray;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    min-width: 1.4rem;
    text-align: right;
    flex-shrink: 0;
}

.stat-card .liga-list .liga-stats {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    flex-shrink: 0;
}

.stat-card .liga-list .liga-stats .stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    width: 3rem;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

/* Accent-headed Liga-Karte – geteilt von Verein- & Spielleiter-Dashboard */
.liga-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e7e9ed;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.liga-card:hover {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .075);
    transform: translateY(-2px);
}

.liga-card .card-head {
    background: var(--accent-color);
    padding: 0.75rem 1.1rem;
}

.liga-card .card-head h5 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: letter-spacing 0.25s ease-out;
}

.liga-card .card-head .card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: letter-spacing 0.25s ease-out;
}

.liga-card:not(.zustand-deaktiviert):hover .card-head h5 {
    letter-spacing: 0.06em;
}

.liga-card:not(.zustand-deaktiviert):hover .card-head .card-title {
    letter-spacing: 0.06em;
}

@media (prefers-reduced-motion: reduce) {
    .liga-card .card-head h5 {
        transition: none;
    }

    .liga-card .card-head .card-title {
        transition: none;
    }

    .liga-card:not(.zustand-deaktiviert):hover .card-head h5 {
        letter-spacing: -0.01em;
    }

    .liga-card:not(.zustand-deaktiviert):hover .card-head .card-title {
        letter-spacing: -0.01em;
    }
}

.liga-card .card-head h5 a,
.liga-card .card-head h5 span,
.liga-card .card-head .card-title a,
.liga-card .card-head .card-title span {
    color: #fff;
    text-decoration: none;
}

.liga-card .card-head h5 a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.liga-card .card-head .card-title a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.overview-toolbar-actions {
    align-items: flex-end;
}

.overview-search {
    width: 15.7rem;
}

@media (max-width: 575.98px) {
    .overview-toolbar-actions {
        align-items: stretch;
        width: 100%;
    }

    .overview-search {
        width: 100%;
    }

    .overview-toolbar-meta {
        justify-content: flex-start !important;
    }
}

.liga-card .card-head-sub {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

/* Dashboard-Hero – geteilt von Verein- & Spielleiter-Dashboard */
.dashboard-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-hero .hero-badge {
    width: 3.25rem;
    height: 3.25rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    line-height: 1;
}

/* Gemeinsame Aktions-Links innerhalb einer Liga-Karte */
.action-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--font-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.1rem;
    border: none;
    border-top: 1px solid #f0f1f3;
    background: none;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.action-link:hover {
    color: var(--accent-color);
    background: var(--accent-light);
}

.action-link:disabled {
    color: #c0c5cc;
    cursor: not-allowed;
    background: none;
}

.action-link i {
    width: 1rem;
    text-align: center;
}

/* Geteilte Karten-Fußzeile – Verein- & Spielleiter-Dashboard */
.liga-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    font-size: 0.8rem;
    color: #8a94a6;
    padding: 0.55rem 1.1rem;
    margin-top: auto;
    border-top: 1px solid #f0f1f3;
    background: #fcfcfd;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.liga-foot code {
    font-size: 0.8rem;
    background: #eef0f3;
    border-radius: 4px;
    padding: 0.1em 0.35em;
    color: #5a6270;
}
