.vblb-bayernkarte {
    max-width: 520px;
    margin: 0 auto;
    padding: 24px;
    background: #f3f5f7;
    border-radius: 12px;
}

.vblb-bayernkarte__svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.vblb-bayernkarte__map {
    position: relative;
}

.vblb-bayernkarte__labels {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.vblb-bayernkarte__label {
    position: absolute;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    text-decoration: none !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.vblb-bayernkarte__outline {
    fill: #d50013;
    pointer-events: none;
    stroke: none;
}

.vblb-bayernkarte .vblb-bayernkarte__region,
.vblb-bayernkarte .vblb-bezirk {
    color: #ffffff;
    cursor: pointer;
    outline: none;
    text-decoration: none !important;
    text-decoration-line: none !important;
}

.vblb-bayernkarte .vblb-bayernkarte__region polygon,
.vblb-bayernkarte .vblb-bezirk__flaeche {
    fill: #d50013;
    stroke: #ffffff;
    stroke-linejoin: round;
    stroke-width: 5;
    transition: fill 180ms ease, stroke 180ms ease;
    vector-effect: non-scaling-stroke;
}

.vblb-bayernkarte .vblb-bayernkarte__region:hover polygon,
.vblb-bayernkarte .vblb-bayernkarte__region:focus-visible polygon,
.vblb-bayernkarte .vblb-bezirk:hover .vblb-bezirk__flaeche,
.vblb-bayernkarte .vblb-bezirk:focus-visible .vblb-bezirk__flaeche {
    fill: #050a30;
    stroke: #ffffff;
}

.vblb-bayernkarte__debug {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #d7dce3;
    border-radius: 8px;
    background: #ffffff;
    color: #050a30;
    font-size: 14px;
}

.vblb-bayernkarte__debug-output {
    margin: 8px 0 0;
    color: #050a30;
    font: inherit;
    white-space: pre-line;
}

.vblb-bayernkarte__debug-dialog {
    width: min(420px, calc(100% - 32px));
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #ffffff;
    color: #050a30;
    box-shadow: 0 14px 40px rgba(5, 10, 48, 0.18);
}

.vblb-bayernkarte__debug-dialog::backdrop {
    background: rgba(5, 10, 48, 0.32);
}

.vblb-bayernkarte__debug-dialog-form {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.vblb-bayernkarte__debug-dialog-title {
    font-size: 18px;
    line-height: 1.3;
}

.vblb-bayernkarte__debug-field {
    display: grid;
    gap: 6px;
    color: #050a30;
    font-size: 14px;
    font-weight: 600;
}

.vblb-bayernkarte__debug-input,
.vblb-bayernkarte__debug-copy {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d7dce3;
    border-radius: 8px;
    background: #ffffff;
    color: #050a30;
    font: inherit;
}

.vblb-bayernkarte__debug-copy {
    min-height: 90px;
    resize: vertical;
}

.vblb-bayernkarte__debug-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.vblb-bayernkarte__debug-copy-button,
.vblb-bayernkarte__debug-close {
    padding: 10px 14px;
    border: 1px solid #d50013;
    border-radius: 8px;
    background: #d50013;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.vblb-bayernkarte__debug-close {
    border-color: #d7dce3;
    background: #ffffff;
    color: #050a30;
}

.vblb-bayernkarte__debug-copy-button:hover,
.vblb-bayernkarte__debug-copy-button:focus,
.vblb-bayernkarte__debug-close:hover,
.vblb-bayernkarte__debug-close:focus {
    border-color: #050a30;
    outline: none;
}

.vblb-bayernkarte__leitstellen {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.vblb-bayernkarte__leitstelle {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    z-index: 1;
}

.vblb-bayernkarte__leitstelle:hover,
.vblb-bayernkarte__leitstelle:focus-within {
    z-index: 20;
}

.vblb-bayernkarte__leitstelle-name {
    display: inline-block;
    max-width: 96px;
    padding: 3px 6px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 6px;
    background: rgba(5, 10, 48, 0.72);
    color: #ffffff;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-decoration: none !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    overflow-wrap: anywhere;
    box-shadow: 0 2px 8px rgba(5, 10, 48, 0.24);
}

.vblb-bayernkarte__leitstelle-name:hover,
.vblb-bayernkarte__leitstelle-name:focus {
    background: rgba(5, 10, 48, 0.9);
    color: #ffffff;
    outline: none;
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 2px;
}

.vblb-bayernkarte__leitstelle-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    z-index: 21;
    width: max-content;
    max-width: min(320px, calc(100vw - 32px));
    padding: 14px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(5, 10, 48, 0.2);
    color: #050a30;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity 160ms ease, transform 160ms ease;
    visibility: hidden;
}

.vblb-bayernkarte__leitstelle:hover .vblb-bayernkarte__leitstelle-tooltip,
.vblb-bayernkarte__leitstelle:focus-within .vblb-bayernkarte__leitstelle-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
    visibility: visible;
}

.vblb-bayernkarte__leitstelle-tooltip-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 120px;
    height: 56px;
    margin-bottom: 10px;
}

.vblb-bayernkarte__leitstelle-tooltip-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.vblb-bayernkarte__leitstelle-tooltip-title {
    display: block;
    margin-bottom: 8px;
    color: #050a30;
    font-size: 15px;
    line-height: 1.25;
}

.vblb-bayernkarte__leitstelle-tooltip a {
    color: #d50013;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.vblb-bayernkarte__leitstelle-tooltip a:hover,
.vblb-bayernkarte__leitstelle-tooltip a:focus {
    color: #050a30;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .vblb-bayernkarte {
        padding: 16px;
    }

    .vblb-bayernkarte__label {
        font-size: 14px;
    }

    .vblb-bayernkarte__leitstelle-name {
        max-width: 74px;
        font-size: 12px;
    }

    .vblb-bayernkarte__leitstelle-tooltip {
        padding: 12px;
        font-size: 13px;
    }
}

.vblb-leitstellen-regierungsbezirk {
    display: grid;
    gap: 18px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vblb-leitstellen-suche {
    width: 100%;
}

.vblb-leitstellen-suche__label {
    display: block;
    margin: 0 0 8px;
    color: #050a30;
    font-size: 16px;
    font-weight: 600;
}

.vblb-leitstellen-suche__input {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 18px;
    padding: 13px 15px;
    border: 1px solid #d7dce3;
    border-radius: 10px;
    background: #ffffff;
    color: #050a30;
    font: inherit;
}

.vblb-leitstellen-suche__input:focus {
    border-color: #d50013;
    outline: 2px solid rgba(213, 0, 19, 0.18);
    outline-offset: 0;
}

.vblb-leitstellen-suche__empty {
    margin: 16px 0 0;
    color: #4b5563;
}

.vblb-leitstellen-regierungsbezirk__item {
    width: 100%;
    margin: 0;
    padding: 0;
}

.vblb-leitstelle-card {
    width: 100%;
    box-sizing: border-box;
    padding: 22px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(5, 10, 48, 0.1);
}

.vblb-leitstelle-card__logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 160px;
    height: 90px;
    margin: 0 0 16px;
}

.vblb-leitstelle-card__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.vblb-leitstelle-card__title {
    margin: 0 0 16px;
    color: #050a30;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.vblb-leitstelle-card__row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 10px;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.45;
}

.vblb-leitstelle-card__icon {
    flex: 0 0 24px;
    line-height: 1.45;
    text-align: center;
}

.vblb-leitstelle-card a {
    color: #d50013;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.vblb-leitstelle-card a:hover,
.vblb-leitstelle-card a:focus {
    color: #050a30;
    text-decoration: underline;
}

.vblb-leitstelle-logo-preview {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 160px;
    min-height: 90px;
    margin: 8px 0;
}

.vblb-leitstelle-logo-preview img {
    display: block;
    width: 100%;
    height: 90px;
    object-fit: contain;
    object-position: left center;
}

.vblb-leitstelle-back {
    margin: 0 0 22px;
}

.vblb-leitstelle-back__button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid #d50013;
    border-radius: 8px;
    background: #ffffff;
    color: #d50013;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.vblb-leitstelle-back__button::before {
    content: "<";
    margin-right: 8px;
}

.vblb-leitstelle-back__button:hover,
.vblb-leitstelle-back__button:focus {
    border-color: #050a30;
    color: #050a30;
    outline: none;
    text-decoration: none;
}

@media (max-width: 600px) {
    .vblb-leitstellen-suche__input {
        margin-bottom: 14px;
    }

    .vblb-leitstellen-regierungsbezirk {
        gap: 14px;
    }

    .vblb-leitstelle-card {
        padding: 18px;
    }

    .vblb-leitstelle-card__logo {
        width: 140px;
        height: 78px;
    }

    .vblb-leitstelle-card__title {
        font-size: 20px;
    }

    .vblb-leitstelle-card__row {
        font-size: 15px;
    }
}
