/* Haupt-Container */
.runners {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.runners .header {
    background: linear-gradient(135deg, #1e5799 0%, #207cca 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.runners .header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.runners .header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

/* Live-Indicator */
.runners .live-indicator {
    display: inline-flex;
    align-items: center;
    color: #ff5252;
    font-weight: 600;
    animation: pulsez 1.5s infinite;
}

@keyframes pulsez {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.runners .live-dot {
    width: 10px;
    height: 10px;
    background-color: #ff5252;
    border-radius: 50%;
    margin-right: 0.5rem;
}

/* Hauptinhalt */
.runners .main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Karten-Container */
.runners .map-container {
    flex: 3;
    position: relative;
    min-height: 400px;
}

.runners #map {
    height: 100%;
    width: 100%;
    z-index: 1;
}

/* Karten-Steuerungen */
.runners .map-controls {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.runners .control-btn {
    background-color: white;
    border: none;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white; /*#1e5799;*/
    transition: all 0.2s;
}

.runners .control-btn:hover {
    background-color: #f0f5ff;
    transform: scale(1.05);
}

.runners .route-controls {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;

}


/* Sidebar Panel */
.runners .tracker-panel {
    flex: 1;
    background-color: white;
    padding: 1.5rem;
    overflow-y: auto;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.08);
    min-width: 350px;
    min-height: 600px;
}

.runners .tracker-title {
    font-size: 1.5rem;
    color: #1e5799;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

/* Suchbox */
.runners .search-box {
    display: flex;
    margin-bottom: 1.5rem;
}

.runners #runnerNumber {
    flex: 1;
    padding: 0.9rem 1rem;
    border: 2px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.runners #runnerNumber:focus {
    border-color: #1e5799;
}

.runners #trackRunner {
    background-color: #1e5799;
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.runners #trackRunner:hover {
    background-color: #16437e;
}

/* Läufer-Info Box */
.runners .runner-info {
    background-color: #f9fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.runners .runner-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.runners .runner-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e5799 0%, #207cca 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 1rem;
}

.runners .runner-details h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: #1e5799;
}

.runners .runner-details p {
    color: #666;
    font-size: 0.95rem;
}

/* Statistiken */
.runners .stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.runners .stat-item {
    text-align: center;
    flex: 1;
}

.runners .stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e5799;
}

.runners .stat-label {
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.3rem;
}

/* Verfolgte Läufer Liste */
.runners .tracked-runners {
    margin-top: 2rem;
}

.runners .tracked-title {
    font-size: 1.2rem;
    color: #1e5799;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.runners .tracked-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.runners .tracked-list li {
    display: flex;
    align-items: center;
    padding: 0.9rem;
    margin-bottom: 0.75rem;
    background-color: #f9fafc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 4px solid #1e5799;
}

.runners .tracked-list li:hover {
    background-color: #edf2f7;
    transform: translateX(4px);
}

.runners .tracked-list li.active {
    background-color: #e1eaf5;
    border-left-color: #ff9800;
}

.runners .tracked-number {
    font-weight: bold;
    color: #1e5799;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.runners .tracked-name {
    flex: 1;
}

.runners .tracked-remove {
    color: #ff5252;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.2rem 0.5rem;
    line-height: 1;
}

/* Footer */
.runners .footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .runners {
        height: auto;
        min-height: 100vh;
    }

    .runners .main-content {
        flex-direction: column;
    }

    .runners .map-container {
        height: 50vh;
        min-height: 300px;
    }

    .runners .tracker-panel {
        min-width: 100%;
    }

    .runners .header h1 {
        font-size: 1.8rem;
    }

    .runners .header p {
        font-size: 1rem;
    }
}

/* Zusätzliche Stile für WordPress-Einbettung */
.runners .container {
    padding: 0 15px;
}

/* Leaflet Marker Anpassungen für bessere Sichtbarkeit */
.runners .leaflet-marker-icon {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}