.bsim-frontend {
    max-width: 100%;
}

.bsim-frontend__stage {
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 0;
}

.bsim-frontend__image {
    display: block;
    max-width: 100%;
    height: auto;
}

.bsim-frontend__hotspot {
    position: absolute;
    margin: 0;
    padding: 0;
    background: var(--bsim-color, rgba(255, 59, 48, 0.5));
    /* border + border-radius kommen pro Hotspot per inline style aus PHP (Form-abhängig) */
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease;
    box-sizing: border-box;
    color: inherit;
    font: inherit;
    line-height: 1;
}

/* Polygon: Border via inneres SVG, da clip-path Border-CSS abschneidet */
.bsim-frontend__hotspot--polygon {
    border: 0 !important;
}
.bsim-frontend__poly-stroke {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.bsim-frontend__hotspot:hover,
.bsim-frontend__hotspot:focus-visible {
    transform: scale(1.05); /* Kleiner optischer Zoom-Effekt beim Hover */
    outline: none;
    z-index: 5;
}

/* NEU: Permanente Labels */
.bsim-frontend__label {
    position: absolute;
    background: rgba(0, 0, 0, 0.85); /* Dunkler, solider Hintergrund für optimale Lesbarkeit */
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    padding: 4px 8px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 1 !important; /* Immer sichtbar */
    display: block !important;
    pointer-events: none; /* Klicks gehen durch das Label auf den Hotspot */
    z-index: 10;
}

/* Position 1: Standard (Oben zentriert) */
.bsim-frontend__label.pos-default {
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, -6px);
}

/* Position 2: Rechts daneben */
.bsim-frontend__label.pos-right {
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    margin-left: 8px;
    bottom: auto;
}