@import url("../../../../../common/css/flashes.css");

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

/* bebas-neue-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Bebas Neue';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/bebas-neue-v16-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/dm-sans-v17-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/dm-sans-v17-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
    --develeygruen: #038240;
    --develeygelb: #feb646;

    --gold: #feb646;
    /*--gold: #D4A017;*/
    --gold-light: #F5E6B0;
    --gold-dark: #8B6A0A;
    --red: #C0392B;
    --red-light: #FADBD8;
    --bg: #FAFAF8;
    --surface: #FFFFFF;
    --surface2: #F4F3EF;
    --border: rgba(0, 0, 0, 0.08);
    --text: #1A1A18;
    --muted: #6B6B66;
    --radius: 16px;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--develeygruen);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--gold);
    letter-spacing: 2px;
}

.header-logo span {
    color: #fff;
}

.header img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 13px;
    color: var(--text);
}

.header-user-name {
    color: #fff;
    font-size: 14px;
}

/* Layout */
.layout {
    display: flex;
    min-height: calc(100vh - 64px);
}

/* Sidebar */
.sidebar {
    width: 220px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 1.5rem 0;
    flex-shrink: 0;
}

.nav-section {
    padding: 0 1rem 1.5rem;
}

.nav-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0 0.5rem 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    font-size: 14px;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 2px;
}

.nav-item:hover {
    background: var(--surface2);
    color: var(--text);
}

.nav-item.active {
    background: var(--gold-light);
    color: var(--gold-dark);
    font-weight: 500;
}

.nav-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Main content */
.main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background-color: var(--develeygelb);
}

.page-title {
    font-family: var(--font-display);
    font-size: 36px;
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.page-sub {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 2rem;
}

/* Stats row */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 38px;
    letter-spacing: 0.5px;
    line-height: 1;
}

.stat-value.gold {
    color: var(--gold-dark);
}

.stat-value.red {
    color: var(--red);
}

.stat-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 0.4rem;
}

.stat-badge {
    display: inline-block;
    background: #E8F5E9;
    color: #2E7D32;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 0.4rem;
}

/* Two-column content */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    /*min-height: 500px;*/
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.card-action {
    font-size: 12px;
    color: var(--gold-dark);
    cursor: pointer;
    font-weight: 500;
}

/* Upload-Bereich */
.upload-zone {
    border: 1.5px dashed var(--gold);
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    background: var(--gold-light);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.upload-zone:hover {
    background: #EDD98A;
}

.upload-icon {
    font-size: 28px;
    margin-bottom: 0.5rem;
}

.upload-zone h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--gold-dark);
}

.upload-zone p {
    font-size: 12px;
    color: var(--muted);
}

.upload-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface2);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    font-size: 13px;
}

.upload-item-icon {
    font-size: 18px;
}

.upload-item-name {
    flex: 1;
    color: var(--text);
}

.upload-item-status {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
}

.status-ok {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-pending {
    background: #FFF8E1;
    color: #F57F17;
}

/* Punkte-Verlauf */
.points-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.dot-gold {
    background: var(--gold);
}

.dot-green {
    background: #4CAF50;
}

.dot-red {
    background: var(--red);
}

.timeline-desc {
    flex: 1;
    color: var(--text);
}

.timeline-date {
    font-size: 11px;
    color: var(--muted);
}

.timeline-pts {
    font-weight: 500;
    font-size: 13px;
}

.pts-plus {
    color: #2E7D32;
}

.pts-minus {
    color: var(--red);
}

.search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.search-input,
.search-select {
    min-width: 0; /* NEU */
    flex: 1 1 120px;
}
.search-input {
    /*flex: 1;*/
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    background: var(--surface2);
    outline: none;
    transition: border 0.15s;
}

.search-input:focus {
    border-color: var(--gold);
    background: var(--surface);
}

.search-select {
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    background: var(--surface2);
    outline: none;
    cursor: pointer;
}

.search-btn {
    padding: 0.6rem 1.25rem;
    background: var(--develeygruen);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s;
}
@media (max-width: 480px) {
    .search-btn {
        width: 100%;
    }
}


.search-btn:hover {
    opacity: 0.8;
}

/* Vereins-Liste */
.club-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.club-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0.85rem 1rem;
    background: var(--surface2);
    border-radius: 12px;
    transition: background 0.15s;
    cursor: pointer;
}

.club-item:hover {
    background: var(--gold-light);
}

.club-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--develeygruen);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.club-info {
    flex: 1;
}

.club-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.club-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.club-dist {
    font-size: 12px;
    font-weight: 500;
    color: var(--gold-dark);
    background: var(--gold-light);
    padding: 3px 10px;
    border-radius: 20px;
}

/* Leaderboard */
.lb-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    font-size: 13px;
}

.lb-item.me {
    background: var(--gold-light);
    border: 1px solid rgba(212, 160, 23, 0.4);
}

.lb-rank {
    font-family: var(--font-display);
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: var(--muted);
}

.lb-rank.top {
    color: var(--gold-dark);
}

.lb-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
}

.lb-name {
    flex: 1;
    color: var(--text);
}

.lb-pts {
    font-weight: 500;
    color: var(--text);
}

.lb-pts-label {
    font-size: 10px;
    color: var(--muted);
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }
}

.belegearea, .spendenarea {
    max-height: 100%;
    overflow: auto;
}