body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

.content {
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

.map-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

#map-container {
    width: 90vw;
    height: 50vh;
    max-width: 600px;
    position: relative;
    border: 2px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}
@media (max-width: 768px) {
    #map-container {
        width: 90vw;
        height: 50vh;
    }
}

#map {
    height: 100%;
    width: 100%;
}
#filter-buttons {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 1000;
    background: white;
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 140px;
    font-size: 0.85rem;
    overflow-y: auto;
    max-height: 80%; /* damit’s nicht über die Karte hinaus geht */
}

.filter-option {
    display: none;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    background-color: #f0f0f0;
    cursor: pointer;
    text-align: left;
    font-size: 0.85rem;
    white-space: nowrap;
}

.filter-option:hover {
    background-color: #e0e0e0;
}

.filter-option.show {
    display: block;
}

.active-filter {
    background-color: #007bff;
    color: white;
}

#toggle-filters-open,
#toggle-filters-close {
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    user-select: none;
    white-space: nowrap;
}

#toggle-filters-open {
    background-color: #28a745;
    color: white;
}

#toggle-filters-open:hover {
    background-color: #218838;
}

#toggle-filters-close {
    background-color: #dc3545;
    color: white;
}

#toggle-filters-close:hover {
    background-color: #bd2130;
}

@media (max-width: 600px) {
    #filter-buttons {
        max-width: 110px;
        padding: 6px;
        font-size: 0.75rem;
    }

    .filter-option {
        font-size: 0.75rem;
        padding: 5px 8px;
    }

    #toggle-filters-open,
    #toggle-filters-close {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}
