body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

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

.header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

#map {
    height: 70vh;
    min-height: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.legend {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 0.5rem;
    border: 2px solid #333;
}

.stats {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.popup-content {
    font-size: 14px;
}

.popup-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 0.5rem;
    color: #333;
}

.popup-region {
    color: #666;
    font-style: italic;
}

.popup-wikidata {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.popup-wikidata a:hover {
    text-decoration: underline !important;
    color: #0052a3 !important;
}

/* Custom Tooltip Styles */
.custom-tooltip {
    background: rgba(0, 0, 0, 0.8) !important;
    border: none !important;
    border-radius: 4px !important;
    color: white !important;
    font-size: 12px !important;
    padding: 6px 8px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

.custom-tooltip::before {
    border-top-color: rgba(0, 0, 0, 0.8) !important;
}

.custom-marker {
    background: transparent !important;
    border: none !important;
}

.marker-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.marker-dot:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 6px rgba(0,0,0,0.4) !important;
}

/* Anpassungen für Leaflet Control Buttons */
.leaflet-bar a,
.leaflet-bar a:hover {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
}

.leaflet-bar a svg {
    width: 20px;
    height: 20px;
    fill: #333;
}
