.svg-zoom-map {
    position: relative;
    width: 100%;
    --svg-map-height: 620px;
    --svg-map-height-mobile: 420px;
}

.svg-zoom-map * {
    font-weight: inherit;
    font-family: inherit;
}

.svg-zoom-map__viewport {
    position: relative;
    width: 100%;
    height: var(--svg-map-height);
    overflow: hidden;
    background: var(--svg-map-bg, #f4f4f4);
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 8px;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.svg-zoom-map__viewport.is-dragging {
    cursor: grabbing;
}

.svg-zoom-map__viewport:focus-visible {
    outline: 3px solid #2271b1;
    outline-offset: 2px;
}

.svg-zoom-map__svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
}

.svg-zoom-map__svg svg {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    user-select: none;
}

.svg-zoom-map__toolbar {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.svg-zoom-map__button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: #222;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.22);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.svg-zoom-map__button:hover {
    background: #f0f0f0;
}

/* Icon-Button: Text ausblenden, SVG zentrieren */
.svg-zoom-map__button--icon {
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svg-zoom-map__button[data-map-action="fullscreen"] {
    border-bottom: 1px solid rgba(0,0,0,.1);
    margin-bottom: 2px;
    padding-bottom: 0px;
    height: 37px;
}

.svg-zoom-map__button[data-map-action="reset"] {
    padding-bottom: 5px;
}

/* Karte im Vollbildmodus */
.svg-zoom-map:-webkit-full-screen { width: 100%; height: 100%; --svg-map-height: 100%; }
.svg-zoom-map:-moz-full-screen    { width: 100%; height: 100%; --svg-map-height: 100%; }
.svg-zoom-map:fullscreen          { width: 100%; height: 100%; --svg-map-height: 100%; }

.svg-zoom-map:-webkit-full-screen .svg-zoom-map__viewport,
.svg-zoom-map:-moz-full-screen    .svg-zoom-map__viewport,
.svg-zoom-map:fullscreen          .svg-zoom-map__viewport {
    height: 100% !important;
    border-radius: 0;
    border: 0;
}

.svg-zoom-map__hint {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 4;
    background: rgba(255,255,255,.9);
    color: #333;
    font-size: 13px;
    line-height: 1.3;
    padding: 6px 9px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    pointer-events: none;
}

.svg-zoom-map__touch-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(35,35,35,.62);
    color: #fff;
    font-size: clamp(22px, 6vw, 48px);
    line-height: 1.25;
    text-align: center;
    text-wrap: balance;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease, visibility 0s linear .5s;
    pointer-events: none;
}

.svg-zoom-map__touch-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity .12s ease, visibility 0s linear 0s;
}

.svg-zoom-map-error {
    padding: 12px 15px;
    background: #fff3f3;
    border: 1px solid #d99;
    color: #900;
}

@media (min-width: 768px) and (pointer: fine) {
    .svg-zoom-map__touch-overlay {
        display: none;
    }
}

@media (max-width: 767px), (pointer: coarse) {
    .svg-zoom-map__viewport {
        touch-action: pan-y;
    }

    .svg-zoom-map__hint {
        display: none;
    }
}

@media (max-width: 767px) {
    .svg-zoom-map__viewport {
        height: var(--svg-map-height-mobile);
    }
}

@media (prefers-reduced-motion: reduce) {
    .svg-zoom-map__touch-overlay {
        transition: none;
    }
}
