.wp-block-hh-sensitive-image.hh-sensitive-face,
.hh-sensitive-face {
    box-sizing: border-box;
    margin-block: 1.5rem;
}

.hh-sensitive-face *,
.hh-sensitive-face *::before,
.hh-sensitive-face *::after {
    box-sizing: border-box;
}

.hh-sensitive-face__map {
    position: relative;
    max-width: 100%;
}

.hh-sensitive-face__base-img {
    display: block;
    width: 100%;
    height: auto;
}

.hh-sensitive-face__hotspots {
    position: absolute;
    inset: 0;
}

/* Positionierung bleibt bestehen; gespeicherte Breiten/Höhen
   begrenzen den Text nicht mehr. */
.hh-sensitive-face__hotspot {
    position: absolute;
    z-index: 2;
    display: block;
    width: max-content !important;
    height: auto !important;
    max-width: clamp(7rem, 12vw, 11rem);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    color: inherit;
    font: inherit;
    text-align: center;
    transform: translate(-50%, -50%);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    overflow: visible;
}

/* Kein Hintergrund auf dem Button – auch nicht bei Hover/Aktivierung. */
.hh-sensitive-face__hotspot:hover,
.hh-sensitive-face__hotspot:focus-visible,
.hh-sensitive-face__hotspot.is-active {
    background: transparent !important;
    box-shadow: none;
}

/* Das Label belegt die volle, vom Inhalt bestimmte Buttonbreite.
   Kurze Wörter passen vollständig, lange Beschriftungen umbrechen. */
.hh-sensitive-face__hotspot-label {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    min-width: 0;
    margin: 0;
    padding: 0.4rem 0.6rem;
    border: 1px solid #4779eb;
    border-radius: 0.1rem;
    background: rgba(255, 255, 255, 0.88);
    color: inherit;
    font-size: clamp(0.75rem, 1.5vw, 1.5rem);
    font-weight: 300;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    text-align: center;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.hh-sensitive-face__hotspot:hover .hh-sensitive-face__hotspot-label,
.hh-sensitive-face__hotspot:focus-visible .hh-sensitive-face__hotspot-label,
.hh-sensitive-face__hotspot.is-active .hh-sensitive-face__hotspot-label {
    background: rgba(255, 255, 255, 0.95);
    outline: 1px solid red;
    outline-offset: 1px;
    color: red;
    font-weight: 700;
}

/* Sichtbarer Fokus liegt auf dem Label statt auf der Buttonbox. */
.hh-sensitive-face__hotspot:focus-visible {
    outline: none;
}

.hh-sensitive-face__hotspot-warning {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.5rem);
    z-index: 5;
    display: none;
    width: min(18rem, 80vw);
    padding: 0.7rem 0.8rem;
    border: 1px solid currentColor;
    border-radius: 0.3rem;
    background: #fff;
    box-shadow: 0 0.45rem 1.2rem rgba(0, 0, 0, 0.18);
    color: #111;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    transform: translateX(-50%);
    pointer-events: none;
}

.hh-sensitive-face__hotspot-warning::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 0;
    height: 0;
    border: 0.45rem solid transparent;
    border-top-color: currentColor;
    transform: translateX(-50%);
}

.hh-sensitive-face__hotspot:not(.is-active):hover .hh-sensitive-face__hotspot-warning,
.hh-sensitive-face__hotspot:not(.is-active):focus-visible .hh-sensitive-face__hotspot-warning {
    display: block;
    color: red;
    font-weight: 600;
    font-size: clamp(0.75rem, 1.5vw, 1.5rem);
}

.hh-sensitive-face__hotspot.is-active .hh-sensitive-face__hotspot-warning {
    display: none !important;
}

@media (hover: none) {
    .hh-sensitive-face__hotspot-warning {
        display: none !important;
    }
}

.hh-sensitive-face__results {
    margin-top: 1rem;
}

.hh-sensitive-face__result {
    padding: 1rem;
    border: 1px solid currentColor;
    border-radius: 0.35rem;
}

.hh-sensitive-face__warning strong {
    color: black;
}

.hh-sensitive-face__warning {
    margin-bottom: 0.85rem;
    font-size: 1.6rem;
    font-weight: 500;
    color: red;
    line-height: 1.45;
}

.hh-sensitive-face__warning strong br {
    display: none;
}

.hh-sensitive-face__confirmation {
    display: block;
}

.hh-sensitive-face__reveal-button,
.hh-sensitive-face__hide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.2rem;
    padding: 0.55em 0.9em;
    border: 1px solid currentColor;
    border-radius: 0.25rem;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.hh-sensitive-face__reveal-button:hover,
.hh-sensitive-face__reveal-button:focus-visible,
.hh-sensitive-face__hide-button:hover,
.hh-sensitive-face__hide-button:focus-visible {
    text-decoration: underline;
}

.hh-sensitive-face__wound-img {
    display: block;
    width: 100%;
    height: auto;
}

.hh-sensitive-face__hide-button {
    margin-top: 0.85rem;
}

.hh-sensitive-face__caption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.hh-sensitive-face__empty-placeholder {
    display: flex;
    min-height: 260px;
    align-items: center;
    justify-content: center;
    border: 1px dashed currentColor;
    opacity: 0.75;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
