.spd-karte-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    height: 600px;
    width: 100%;
}

#spd-suedpfalz-karte {
    height: 100%;
    width: 100%;
}

.filter {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.legend {
    position: absolute;
    bottom: 20px;
    left: 10px;
    z-index: 1000;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    max-width: 150px;
    font-size: 14px;
}

.legend h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.legend p {
    margin: 5px 0;
}

/* Media Queries für kleinere Bildschirme */
@media (max-width: 768px) {
    .spd-karte-container {
        height: 400px;
    }

    .filter {
        top: 5px;
        right: 5px;
        left: auto !important;
        padding: 8px;
        font-size: 14px;
    }

    .filter select {
        font-size: 14px;
        padding: 5px;
    }

    .legend {
        bottom: 5px;
        left: 5px;
        padding: 5px;
        max-width: 120px;
        font-size: 12px;
    }

    .legend h4 {
        font-size: 12px;
    }

    .legend p {
        font-size: 11px;
        margin: 3px 0;
    }
}

@media (max-width: 480px) {
    .spd-karte-container {
        height: 300px;
    }

    .filter {
        top: 5px;
        right: 5px;
        left: auto !important;
        padding: 6px;
    }

    .filter select {
        font-size: 12px;
        padding: 4px;
    }

    .legend {
        bottom: 5px;
        left: 5px;
        padding: 5px;
        max-width: 100px;
        font-size: 11px;
    }

    .legend h4 {
        font-size: 11px;
    }

    .legend p {
        font-size: 10px;
        margin: 2px 0;
    }
}
