
        #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;
            hyphens: auto;

            /* schöne popups */
            width: max-content !important;
            min-width: 230px !important;
            max-width: min(360px, 85vw) !important; /* Der kleinere Werte begrenzt. */
        }

       #map .leaflet-attribution-flag {
            display: none !important;
        }
        
        #map .leaflet-control-attribution {
          font-size: 12px !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;
        }

        .zoom-warning {
            display: inline-block !important;

            position: relative;
            bottom: 70%;
            left: 50%;
            transform: translateX(-50%);

            border-style: solid;
            border-width: 3px;
            border-color: #d01c24;

            background: rgba(255, 255, 255, 0.9);
            padding: 8px 16px;
            font-size: 16px;
            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.3s;

        }

        .zoom-warning.visible {
            opacity: 1;
        }

        #map .leaflet-tile {
            filter: grayscale(40%);
        }

        /* 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 #5c5c5c;
        }

        #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;
        }