/* ==========================
   RWERREN.COM GIS Legende
   ========================== */

.map-legend {
    position: absolute;
    top: 15px;
    right: 15px;

    background: rgba(8, 22, 36, 0.95);

    border: 2px solid #64b4ff;
    border-radius: 12px;

    padding: 12px 15px;

    color: white;
    font-family: Arial, sans-serif;
    font-size: 13px;

    min-width: 190px;

    box-shadow:
        0 0 8px rgba(100,180,255,0.5),
        0 0 20px rgba(100,180,255,0.2);

    backdrop-filter: blur(4px);

    z-index: 1000;
}

.map-legend h4 {
    margin: 0 0 10px 0;
    text-align: center;

    color: #64b4ff;
    font-size: 14px;
    font-weight: bold;

    letter-spacing: 1px;
    text-transform: uppercase;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.legend-color {
    width: 14px;
    height: 14px;

    margin-right: 10px;

    border: 1px solid rgba(255,255,255,0.7);

    transform: rotate(45deg);
    display: inline-block;
}

.trinkwasser {
    background: #2d8cff;
    box-shadow: none;
}

.kein-trinkwasser {
    background: #ff3030;
    box-shadow: none;
}

.legend-disclaimer {
    margin-top: 10px;
    padding-top: 8px;

    border-top: 1px solid rgba(100,180,255,0.3);

    color: #bfc9d4;
    font-size: 10px;
    line-height: 1.4;
}

/* ==========================
   Smartphone Optimierung
   ========================== */

@media screen and (max-width: 768px) {

    .map-legend {
        top: 10px;
        right: 10px;

        min-width: 150px;
        max-width: 180px;

        padding: 8px 10px;

        font-size: 11px;
    }

    .map-legend h4 {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .legend-item {
        margin-bottom: 6px;
        gap: 6px;
    }

    .legend-color {
        width: 10px;
        height: 10px;
    }

    .legend-disclaimer {
        font-size: 8px;
        line-height: 1.2;
        margin-top: 6px;
        padding-top: 6px;
    }
}