/* ============================================================
   Bild mit Badge – Block Styles
   Block: kss/bild-mit-badge
   ============================================================ */

/* ── Outer Container ─────────────────────────────────────── */
.kss-bild-mit-badge {
    display: flex;
    justify-content: center;
}

/* ── Wrapper (relative für Badge-Positionierung) ─────────── */
.kss-bild-mit-badge__wrapper {
    position: relative;
    display: inline-block;
    line-height: 0;
    border-radius: 16px;
    overflow: visible;
    max-width: 100%;
}

/* ── Bild ────────────────────────────────────────────────── */
.kss-bild-mit-badge__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ── Badge ───────────────────────────────────────────────── */
.kss-bild-mit-badge__badge {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    background-color: var(--bmb-bg, #3b82f6);
    color: var(--bmb-color, #ffffff);
    border-radius: 12px;
    padding: 0.65rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 9rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    line-height: 1;
    z-index: 1;
}

/* ── Badge obere Zeile: Icon + Wert ─────────────────────── */
.kss-bild-mit-badge__badge-top {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ── Badge Icon ──────────────────────────────────────────── */
.kss-bild-mit-badge__badge-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.kss-bild-mit-badge__badge-icon svg {
    width: 1rem;
    height: 1rem;
    stroke: var(--bmb-color, #ffffff);
}

/* ── Badge Wert (z. B. "98%") ────────────────────────────── */
.kss-bild-mit-badge__badge-value {
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    font-weight: 700;
    color: var(--bmb-color, #ffffff);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* ── Badge Label (z. B. "Kundenzufriedenheit") ───────────── */
.kss-bild-mit-badge__badge-label {
    font-size: clamp(0.7rem, 1vw, 0.78rem);
    font-weight: 400;
    color: var(--bmb-color, #ffffff);
    opacity: 0.88;
    line-height: 1.3;
    white-space: nowrap;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .kss-bild-mit-badge__badge {
        bottom: -0.75rem;
        right: -0.25rem;
        min-width: 8rem;
        padding: 0.5rem 0.75rem;
    }
}
