/* Berliner Silvesterlauf 2025 - Results Stylesheet */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 300;
}

.header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Stats box redesign for 2024/2025 comparison */
.stats {
    display: flex;
    gap: 22px;
    justify-content: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.stat-box {
    background: #f7f8fa;
    color: #222;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    padding: 18px 18px 14px 18px;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 15px;
}
.stat-label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
    min-width: 90px;
    color: #333;
    text-align: left;
}
.stat-years {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}
.stat-year-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.stat-year-label {
    color: #888;
    font-size: 14px;
    min-width: 38px;
    text-align: right;
}
.stat-number {
    font-weight: 700;
    font-size: 15px;
    color: #222;
    min-width: 38px;
    text-align: left;
}
.stat-percent {
    color: #888;
    font-size: 13px;
    font-weight: 500;
    margin-left: 2px;
}
.stat-footnote {
    color: #888;
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
}

.controls {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 300px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.search-box:focus {
    border-color: #667eea;
    outline: none;
}

.filter-select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background: white;
}

.results-count {
    font-weight: bold;
    color: #667eea;
    font-size: 1.1rem;
}

.table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    position: relative;
    border: none;
}

th:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

th.sortable::after {
    content: '↕';
    position: absolute;
    right: 8px;
    opacity: 0.6;
}

th.sort-asc::after {
    content: '↑';
    opacity: 1;
}

th.sort-desc::after {
    content: '↓';
    opacity: 1;
}

td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #e3f2fd;
}



.position {
    font-weight: bold;
    color: #667eea;
    text-align: center;
}

.start-number {
    text-align: center;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.2rem;
}

.footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 8px 5px;
    }
}
