/* --- DESIGN BASIS --- */
.ranking-hero-simple { text-align: center; margin-bottom: 30px; }
.section-subtitle { color: #666; margin-top: -15px; margin-bottom: 30px; font-size: 1.1rem; }

.filter-card-modern {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border: 1px solid #eee;
}

.filter-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.filter-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 5px;
}

.filter-item select, .filter-item input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-weight: 600;
}

/* --- TABELLEN DESIGN --- */
.rank-table-modern { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
.rank-table-modern tr td {
    background: #fff;
    padding: 15px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
}
.rank-table-modern tr:hover td { background: #fdfdfd; cursor: pointer; border-color: #d63638; }
.rank-table-modern tr td:first-child { border-left: 1px solid #eee; border-radius: 10px 0 0 10px; }
.rank-table-modern tr td:last-child { border-right: 1px solid #eee; border-radius: 0 10px 10px 0; }

.points-pill {
    background: #f4f7f9;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 800;
    color: #333;
    display: inline-block;
}

.rank-badge {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    background: #eee;
}

.rank-1 .rank-badge { background: #ffd700; color: #000; }
.rank-2 .rank-badge { background: #c0c0c0; color: #000; }
.rank-3 .rank-badge { background: #cd7f32; color: #fff; }

.athlete-info strong { display: block; font-size: 1rem; color: #333; }
.athlete-info small { color: #888; text-transform: uppercase; font-size: 0.7rem; }

/* --- MANUELLER OVERLAY FIX (GEGEN UNTERHALB-FEHLER) --- */
#customOverlayWrapper {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 999999 !important; /* Absolut oberste Ebene */
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.custom-overlay-content {
    background: #fff;
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    border-radius: 15px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: alohaFadeIn 0.3s ease;
}

@keyframes alohaFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-overlay-header {
    background: #d63638;
    color: #fff;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 11;
}

.custom-close-x {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

body.overlay-active { overflow: hidden !important; }

@media (max-width: 600px) {
    .custom-overlay-content { max-height: 95vh; border-radius: 10px; }
}
