.de-plz-map-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    font-family: inherit;
}

.de-plz-map-title {
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.75rem;
}

.de-plz-map-inner {
    position: relative;
    width: 70%;
    margin: 0 auto;
}

.de-plz-map-inner svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Interaktive Bereiche – Grundfarbe/Verläufe kommen aus der SVG */
.de-plz-region {
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

/* Hover/aktiv: Blauton leicht heller */
.de-plz-region:hover,
.de-plz-region.is-active {
    filter: brightness(1.12);
    transform: translateY(-0.5px);
}

.de-plz-region:focus {
    outline: none;
    filter: brightness(1.18);
}

/* Tooltip */
.de-plz-map-tooltip {
    position: absolute;
    left: 50%;
    bottom: 0.5rem;
    transform: translateX(-50%);
    padding: 0.35rem 0.6rem;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    font-size: 0.75rem;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    max-width: 90%;
    text-align: center;
    z-index: 2;
}

.de-plz-map-tooltip.is-visible {
    opacity: 1;
}

/* Legende */
.de-plz-map-legend {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
    justify-content: center;
    font-size: 0.9rem;
}

.de-plz-map-legend-item {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 1.25rem;
    border-radius: 0;
    border: 1px solid #d1d5db;
    background: #ffffff;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.de-plz-map-legend-item:hover,
.de-plz-map-legend-item.is-active {
    background: #264e80;
    border-color: #264e80;
    color: #ffffff;
}

.de-plz-map-legend-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6em;
    height: 1.6em;
    font-size: 0.8em;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    margin-right: 0.35rem;
}

.de-plz-map-legend-item.is-active .de-plz-map-legend-badge {
    background: rgba(255, 255, 255, 0.32);
}

.de-plz-map-legend-label {
    white-space: nowrap;
}

/* Content-Panels unter der Karte (Tabs-ähnlich) */
.de-plz-map-panels {
    margin-top: 1.5rem;
    background: #264e80;
    color: #ffffff;
    padding: 1.5rem 1.75rem;
    border-radius: 0;
}

.de-plz-map-panel {
    display: none;
}

.de-plz-map-panel.is-active {
    display: block;
}

/* Typografie im Panel */
.de-plz-map-panel h1,
.de-plz-map-panel h2,
.de-plz-map-panel h3,
.de-plz-map-panel h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.de-plz-map-panel p {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
}

.de-plz-map-panel a {
    color: #fffbcc;
    text-decoration: underline;
}

.de-plz-map-panel a:hover {
    text-decoration: none;
}

/* Optional etwas Abstand zum restlichen Inhalt */
.de-plz-map-panel > *:first-child {
    margin-top: 0;
}

@media (max-width: 768px) {
    .de-plz-map-wrapper {
        max-width: 100%;
    }

    .de-plz-map-inner {
        width: 100%;
    }

    .de-plz-map-panels {
        padding: 1.25rem 1.25rem;
    }

    .de-plz-map-legend-label {
        white-space: normal;
    }
}
