.lf-osm-map {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

html[data-theme="dark"] .lf-osm-map {
    background: #0f172a;
    border-color: #334155;
}

.lf-osm-map.is-grabbing {
    cursor: grabbing;
}

.lf-osm-canvas {
    position: absolute;
    inset: 0;
    transform: translateZ(0);
}

.lf-osm-tile {
    position: absolute;
    left: 0;
    top: 0;
    width: 256px;
    height: 256px;
    image-rendering: auto;
    will-change: transform;
}

.lf-osm-marker {
    position: absolute;
    width: 18px;
    height: 26px;
    left: 0;
    top: 0;
    /* Positionierung: left/top ist die Koordinate (Marker-Spitze) */
    transform: translate(-50%, -100%);
    z-index: 5;
    pointer-events: none;
}

.lf-osm-marker::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    background: #f97316;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.lf-osm-marker::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 16px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid #f97316;
    transform: translateX(-50%);
}

.lf-osm-circle {
    position: absolute;
    left: 0;
    top: 0;
    display: none;
    border-radius: 50%;
    border: 2px solid rgba(249, 115, 22, 0.9);
    background: rgba(249, 115, 22, 0.12);
    z-index: 4;
    pointer-events: none;
}

.lf-osm-attrib {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: auto;
    z-index: 50;
    font-size: 11px;
    line-height: 1.2;
    color: rgba(31, 41, 55, 0.9);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 8px;
    padding: 4px 8px;
    backdrop-filter: blur(4px);
}

html[data-theme="dark"] .lf-osm-attrib {
    color: rgba(241, 245, 249, 0.92);
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(51, 65, 85, 0.9);
}

.lf-osm-attrib a {
    color: inherit;
    text-decoration: underline;
}

.lf-osm-zoom {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 12;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lf-osm-zoom-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    background: rgba(255, 255, 255, 0.9);
    color: rgba(31, 41, 55, 0.95);
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(4px);
}

.lf-osm-zoom-btn:hover {
    background: rgba(255, 255, 255, 0.98);
}

.lf-osm-zoom-btn:active {
    transform: translateY(1px);
}

.lf-osm-zoom-btn:focus-visible {
    outline: 2px solid rgba(249, 115, 22, 0.95);
    outline-offset: 2px;
}

.lf-osm-zoom-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

html[data-theme="dark"] .lf-osm-zoom-btn {
    border-color: rgba(51, 65, 85, 0.9);
    background: rgba(15, 23, 42, 0.72);
    color: rgba(241, 245, 249, 0.92);
}

html[data-theme="dark"] .lf-osm-zoom-btn:hover {
    background: rgba(15, 23, 42, 0.82);
}

.lf-osm-loading,
.lf-osm-error {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    color: #1f2937;
}

html[data-theme="dark"] .lf-osm-loading,
html[data-theme="dark"] .lf-osm-error {
    color: #f1f5f9;
}

.lf-osm-error a {
    color: inherit;
    font-weight: 700;
}
