/* ─────────────────────────────────────────────────────────
   Bulli CTA Showcase v1.2
   Animation 2: Du wendest dein Design an
   3-Card-Carousel: prev/active/next sichtbar, infinite loop.
   ───────────────────────────────────────────────────────── */

.bulli-cta-showcase {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ── Swatch-Row pro Card ────────────────────────────────── */
.bulli-cta-showcase__swatch-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.bulli-cta-showcase__swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sw, #888);
    border: 1.5px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.bulli-cta-showcase__swatch.is-active {
    border-color: var(--e-global-color-text);
    transform: scale(1.15);
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.08),
        0 0 0 1px var(--e-global-color-text);
}

/* Produkt-Body nimmt aktive Swatch-Farbe an (Outline bleibt schwarz).
   Nur Pfade mit Fill (kein fill="none") werden eingefärbt. */
.bulli-cta-showcase__product svg path:not([fill="none"]) {
    fill: var(--product-color, #ffffff);
    transition: fill 0.35s ease;
}

/* ── Card-Carousel ───────────────────────────────────── */
.bulli-cta-showcase__card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: 80%;
    aspect-ratio: 4 / 5;
    background: #fff;
    border: 1.5px solid var(--bk-border, #e8e8e8);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    /* default: hidden (off-screen) */
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    z-index: 1;
}

/* Carousel-Positionen */
.bulli-cta-showcase__card[data-pos="prev"] {
    transform: translate(calc(-50% - 220px), -50%) scale(0.78);
    opacity: 0.4;
    z-index: 2;
    filter: blur(0.5px);
}

.bulli-cta-showcase__card[data-pos="active"] {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 3;
    border-color: var(--e-global-color-text);
    box-shadow:
        0 0 0 1px var(--e-global-color-text),
        0 12px 36px rgba(0, 0, 0, 0.35);
}

.bulli-cta-showcase__card[data-pos="next"] {
    transform: translate(calc(-50% + 220px), -50%) scale(0.78);
    opacity: 0.4;
    z-index: 2;
    filter: blur(0.5px);
}

/* ── Preview-Box (füllt restliche Card-Höhe) ─────────── */
.bulli-cta-showcase__preview {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

/* Stilisiertes Produkt-SVG (Shirt, Tasse, Tasche) */
.bulli-cta-showcase__product {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.bulli-cta-showcase__product svg {
    width: 100%;
    height: 100%;
}

/* Bulli-Overlay: top/left/width per inline-style (% relativ zur preview-box).
   Top-Left-Positionierung — keine Translate-Tricks. */
.bulli-cta-showcase__overlay {
    position: absolute;
    pointer-events: none;
}

.bulli-cta-showcase__overlay svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Elementor-Container im Overlay normalisieren */
.bulli-cta-showcase__overlay .elementor,
.bulli-cta-showcase__overlay .elementor-section-wrap,
.bulli-cta-showcase__overlay .elementor-section,
.bulli-cta-showcase__overlay .elementor-container,
.bulli-cta-showcase__overlay .elementor-widget-wrap,
.bulli-cta-showcase__overlay .elementor-widget {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ── Label ───────────────────────────────────────────── */
.bulli-cta-showcase__label {
    font-family: var(--e-global-typography-accent-font-family, 'Roboto Mono'), Sans-serif;
    font-size: var(--e-global-typography-accent-font-size, 12px);
    font-weight: var(--e-global-typography-accent-font-weight, 600);
    text-transform: var(--e-global-typography-accent-text-transform, uppercase);
    letter-spacing: 0.06em;
    color: #555;
    line-height: 1.3;
    margin: 0;
}


/* ── Reduced Motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .bulli-cta-showcase__card {
        transition: opacity 0.2s ease !important;
    }
}

/* ── Mobile ──────────────────────────────────────────── */
@media (max-width: 767px) {
    .bulli-cta-showcase__card { padding: 10px; }
    .bulli-cta-showcase__card[data-pos="prev"]  { transform: translate(calc(-50% - 110px), -50%) scale(0.7); }
    .bulli-cta-showcase__card[data-pos="next"]  { transform: translate(calc(-50% + 110px), -50%) scale(0.7); }
    .bulli-cta-showcase__swatch { width: 16px; height: 16px; }
    .bulli-cta-showcase__swatch-row { gap: 6px; margin-top: 6px; }
}
