/* ─────────────────────────────────────────────────────────
   Bulli CTA Fan v1.0
   Pantone-Fächer-Animation für die Konfigurator-CTA
   ───────────────────────────────────────────────────────── */

/* ── Wrapper ──────────────────────────────────────────── */
.bulli-cta-anim {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    user-select: none;
    /* Defensive: wenn Elementor-Container overflow:hidden setzt, verhindern */
    overflow: visible !important;
}

/* ── Card-Komponente ─────────────────────────────────── */
.bulli-cta-card {
    width: 320px;
    min-height: 110px;
    background: #fff;
    border-radius: var(--br, 8px);
    padding: 18px 22px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.30);
    border: 1.5px solid var(--bk-border, #e8e8e8);
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #111;
}

.bulli-cta-card__head {
    font-family: var(--e-global-typography-accent-font-family, 'Roboto Mono'), monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #555;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bulli-cta-card__index { color: #c00; }
.bulli-cta-card__sep   { color: #555; }
.bulli-cta-card__label { color: #111; }

.bulli-cta-card__indicators {
    display: flex;
    gap: 8px;
    align-items: center;
}

.bulli-cta-card__chip {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    background: #f5f5f5;
    border: 1.5px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.bulli-cta-card__chip.is-color {
    border-radius: 50%;
    background: var(--chip-color, #ccc);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.bulli-cta-card__chip.is-active {
    border-color: var(--e-global-color-text);
    box-shadow: 0 0 0 1px var(--e-global-color-text);
}

.bulli-cta-card__chip img,
.bulli-cta-card__chip svg {
    width: 70%;
    height: 70%;
    object-fit: contain;
    display: block;
}


/* ── Fan-Style ────────────────────────────────────────── */
.bulli-cta-anim--fan {
    overflow: visible;
}

/* Pantone-Schraube am Pivot (bottom-right) — schwarz wie Active-Outline */
.bulli-cta-anim--fan::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 20px;
    width: 28px;
    height: 28px;
    margin: -14px;
    border-radius: 50%;
    background: var(--e-global-color-text);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.18),
        inset 0 -1px 2px rgba(0, 0, 0, 0.6),
        0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 100;
    pointer-events: none;
}

/* Slot: anchored am bottom-right Pivot, rotiert per JS via inline transform.
   Initial-Offset von +90° wird per JS direkt in cardRotations addiert,
   nicht über Wrapper-Transform (Elementor-Konflikt). */
.bulli-cta-fan-slot {
    position: absolute;
    bottom: 15%;
    right: 20px;
    transform-origin: 100% 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ── Reduced Motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .bulli-cta-anim,
    .bulli-cta-card,
    .bulli-cta-fan-slot {
        animation: none !important;
        transition: opacity 0.2s ease !important;
    }
}


/* ── Mobile ───────────────────────────────────────────── */
@media (max-width: 767px) {
    .bulli-cta-card {
        width: 260px;
        min-height: 90px;
        padding: 14px 18px;
    }
    .bulli-cta-card__chip {
        width: 32px;
        height: 32px;
    }
}
