body {
    margin: 0;
}
#map {
    height: 100vh;
    width: 100vw;
    background-color: white;
}

/* Für kleine Bildschirme (z. B. Mobilgeräte) */
@media (max-width: 600px) {
    #map {
        height: 100vh;
        width: 100%;
    }
}

.popup-content {
    width: 250px;
}

/* Standard Popup Layout */
.leaflet-popup-content-wrapper {
    width: auto;
    max-width: 300px; /* Standard-Breite für nicht maximiertes Popup */
}

/* Versteckt den Standard-Popup-Rahmen von Leaflet, wenn das Popup maximiert ist */
.fullscreen-popup .leaflet-popup-content-wrapper,
.fullscreen-popup .leaflet-popup-tip,
.leaflet-popup-close-button {
    display: none !important; /* Wendet dies auf alle relevanten Elemente an */
}

/* Vollbild-Popup */
.fullscreen-popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 1000;
    overflow: auto;
}

/* Popup-Inhalt, wenn maximiert */
.fullscreen-popup .popup-content {
    padding: 20px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Buttons für Schließen und Maximieren */
.popup-close, .popup-maximize {
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    z-index: 1001; /* Über das Popup legen */
}

.popup-maximize {
    right: 50px;
}
