.kim-v3-block,
.kim-v3-image-wrap {
    position: relative;
    width: 100%;
}

.kim-v3-main-image,
.kim-v3-image-wrap > img {
    display: block;
    width: 100%;
    height: auto;
}

.kim-v3-hotspot {
    position: absolute;
    appearance: none;
    border: 2px solid rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.12);
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.18);
}

.kim-v3-hotspot:hover,
.kim-v3-hotspot:focus-visible {
    background: rgba(255,255,255,0.35);
    transform: scale(1.025);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.35), 0 10px 30px rgba(0,0,0,0.25);
}

.kim-v3-hotspot span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.kim-v3-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.kim-v3-modal.is-active {
    display: flex;
}

.kim-v3-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.kim-v3-modal.is-visible .kim-v3-modal-backdrop {
    opacity: 1;
}

.kim-v3-modal-content {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    max-height: min(86vh, 900px);
    overflow: auto;
    background: #fff;
    color: #1f1f1f;
    border-radius: 16px;
    padding: clamp(22px, 4vw, 36px);
    box-shadow: 0 24px 80px rgba(0,0,0,0.35);
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.kim-v3-modal.is-visible .kim-v3-modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.kim-v3-modal-image {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 22px;
    border-radius: 10px;
}

.kim-v3-modal-content h3 {
    margin: 0 42px 10px 0;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.15;
}

.kim-v3-modal-content p {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
}

.kim-v3-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
    color: #111;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.kim-v3-close:hover,
.kim-v3-close:focus-visible {
    background: rgba(0,0,0,0.12);
    outline: none;
}

body.kim-v3-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .kim-v3-modal {
        padding: 16px;
    }

    .kim-v3-hotspot {
        min-width: 28px;
        min-height: 28px;
        border-width: 2px;
    }

    .kim-v3-modal-content {
        max-height: 88vh;
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kim-v3-hotspot,
    .kim-v3-modal-backdrop,
    .kim-v3-modal-content {
        transition: none;
    }
}

.kim-v3-hotspot {
    overflow: visible;
}

.kim-v3-hotspot-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.55);
    pointer-events: none;
}

.kim-v3-hotspot-label {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    max-width: 220px;
    white-space: nowrap;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(0,0,0,0.76);
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    pointer-events: none;
}

.kim-v3-hotspot:hover .kim-v3-hotspot-label,
.kim-v3-hotspot:focus-visible .kim-v3-hotspot-label {
    background: rgba(0,0,0,0.9);
}

@media (max-width: 767px) {
    .kim-v3-hotspot-label {
        font-size: 12px;
        max-width: 150px;
        white-space: normal;
        text-align: center;
    }
}

/* V3.2: Pulsierender Hotspot-Punkt in der Mitte des klickbaren Bereichs */
.kim-v3-hotspot {
    --kim-v3-pulse-color: #ff4d4d;
    background: transparent;
}

.kim-v3-hotspot::before,
.kim-v3-hotspot::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    pointer-events: none;
}

.kim-v3-hotspot::before {
    width: 16px;
    height: 16px;
    background: var(--kim-v3-pulse-color);
    border: 2px solid rgba(255,255,255,0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
    z-index: 2;
}

.kim-v3-hotspot::after {
    width: 16px;
    height: 16px;
    background: var(--kim-v3-pulse-color);
    opacity: 0.42;
    z-index: 1;
    animation: kim-v3-pulse 1.8s ease-out infinite;
}

.kim-v3-hotspot:hover::before,
.kim-v3-hotspot:focus-visible::before {
    transform: translate(-50%, -50%) scale(1.12);
}

@keyframes kim-v3-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.45;
    }
    70% {
        transform: translate(-50%, -50%) scale(2.7);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.7);
        opacity: 0;
    }
}

@media (max-width: 767px) {
    .kim-v3-hotspot::before,
    .kim-v3-hotspot::after {
        width: 18px;
        height: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kim-v3-hotspot::after {
        animation: none;
    }
}

.kim-v3-hotspot-number,
.kim-v3-hotspot-label {
    z-index: 3;
}

.kim-v3-hotspot-number {
    position: relative;
}


/* V3.3: Nur der pulsierende Punkt ist sichtbar. Der klickbare Hotspot-Bereich bleibt erhalten, hat aber keinen Rand, keine Fläche und keinen Hover-Effekt. */
.kim-v3-hotspot {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none;
    transform: none !important;
    transition: none !important;
    border-radius: 0;
}

.kim-v3-hotspot:hover,
.kim-v3-hotspot:focus-visible {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none;
    transform: none !important;
}

.kim-v3-hotspot::before {
    border: 0 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.28);
}

.kim-v3-hotspot:hover::before,
.kim-v3-hotspot:focus-visible::before {
    transform: translate(-50%, -50%) !important;
}

.kim-v3-hotspot-number,
.kim-v3-hotspot-label {
    display: none !important;
}
