        .zoom-warning {
            display: inline-block !important;

            position: relative;
            bottom: 87%;
            left: 50%;
            transform: translateX(-50%);

            border-style: solid;
            border-width: 3px;
            border-color: #d01c24;

            background: rgba(255, 255, 255, 0.9);
            padding: 6px 14px;
            font-size: 14px;
            font-weight: bold;
            text-align: center;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
            z-index: 1001;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.2s;

        }

        .zoom-warning.visible {
            opacity: 1;
        }

#map {
    height: 680px;
    width: 100%;
    background-color: white;
    hyphens: auto;
}

@media (max-width: 600px) {
    #map {
        height: 580px;
    }
}

#map .leaflet-popup-content {
    font-size: 14px !important;
    margin: 10px 10px 10px 10px !important;
    white-space: pre-line !important;

    /* schöne popups */
    width: max-content !important;
    min-width: 170px !important;
    max-width: min(500px, 85vw) !important;
    /* Der kleinere Werte begrenzt. */
}

#map .leaflet-attribution-flag {
    display: none !important;
}


#map .custom-popup .leaflet-popup-content-wrapper {
    border-radius: 0px;
    padding: 5px;
    color: black;

}

#map .custom-popup .leaflet-popup-content h3 {
    margin-top: 0;
    color: #d01c24;
}



/* Karte entsättigen */
#map .leaflet-tile {
    filter: grayscale(30%);
}

/* Cluster-Marker Styling */
#map .cluster-marker {
    background-color: #d01c25be;
    ;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}


/* Cluster-Popup Layout */
#map .cluster-popup-container {

    display: flex;
    flex-direction: column;
    font-family: sans-serif;
    white-space: normal;

}

#map .cluster-popup-header h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 14px;
}

#map .cluster-popup-list {
    max-height: 300px;
    overflow-y: auto;
    white-space: normal;
}

#map .cluster-popup-item {
    border-top: 1px solid #b9b9b9;
}

/* .cluster-popup-item:first-child {
            border-top: none;
        }
            */

#map .cluster-popup-item-title {
    margin-bottom: 10px;
    margin-top: 10px;
    white-space: pre-line;

}

#map .cluster-popup-item-meta {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

#map .cluster-popup-detail {
    display: flex;
    flex-direction: column;
}

#map .cluster-popup-back-btn {
    background: none;
    border: none;
    color: #d01c24;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    padding: 0;
    margin-bottom: 8px;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#map .cluster-popup-back-btn:hover {
    text-decoration: underline;
}

#map .cluster-popup-detail-content {
    font-size: 13px;
    line-height: 1.4;
}

        /* LEGENDE */
        #map .info.legend {
            background: rgba(255, 255, 255, 0.9);
            padding: 10px 15px;
            border-radius: 4px;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
            line-height: 1.5;
            color: #333;
        }

        #map .info.legend h4 {
            margin: 0 0 5px 0;
            font-size: 13px;
        }

            @media (max-width: 600px) {
            #map .info.legend h4 {
                font-size: 12px;
            }
        }

        #map .legend-container {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        #map .legend-red {
            display: inline-block;
            width: 14px;
            height: 14px;
            box-sizing: border-box;
            border-radius: 50%;
            border: 2px solid #A61F23;
            background-color: color-mix(in srgb, #A61F23 20%, transparent);
            flex-shrink: 0;
        }

        #map .legend-blue {
            display: inline-block;
            width: 14px;
            height: 14px;
            box-sizing: border-box;
            border-radius: 50%;
            border: 2px solid #17B8E5;
            background-color: color-mix(in srgb, #17B8E5 20%, transparent);
            flex-shrink: 0;
        }

        #map .legend-neutral {
            display: inline-block;
            width: 14px;
            height: 14px;
            box-sizing: border-box;
            border-radius: 50%;
            border: 2px solid #7c7c7c;
            background-color: color-mix(in srgb, #000000 40%, transparent);
            flex-shrink: 0;
        }

        #map .legend-text {
            font-size: 13px;
            color: black;
        }

            @media (max-width: 600px) {
            #map .legend-text {
                font-size: 12px;
            }
        }