/**
 * Schaltzeit Futures Carousel – Frontend Styles
 * --------------------------------------------------------------
 * Diese Werte sind Defaults. Über die Elementor-Style-Tabs
 * können sie pro Instanz überschrieben werden.
 */

.sfc-wrapper {
    --sfc-bg: #F2EDE2;
    --sfc-bg-dark: #1A1916;
    --sfc-ink: #2A2826;
    --sfc-lime: #C8E04A;
    --sfc-violet: #6B5BD0;
    --sfc-coral: #FF7B5C;
    --sfc-serif: 'Fraunces', Georgia, serif;
    --sfc-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* =========================================================
   CAROUSEL CONTAINER
   ========================================================= */
.sfc-carousel {
    position: relative;
    background: var(--sfc-bg-dark);
    color: var(--sfc-bg);
    border-radius: 24px;
    padding: 2.5rem;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    font-family: var(--sfc-sans);
    box-sizing: border-box;
}

.sfc-carousel *,
.sfc-carousel *::before,
.sfc-carousel *::after {
    box-sizing: border-box;
}

/* Violet glow */
.sfc-carousel::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--sfc-violet) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

/* =========================================================
   TAG / EYEBROW
   ========================================================= */
.sfc-tag {
    display: inline-block;
    font-family: var(--sfc-sans);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.65;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

/* =========================================================
   TITLE
   ========================================================= */
.sfc-title {
    font-family: var(--sfc-serif);
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    line-height: 1.1;
    margin: 0 0 1.2rem 0;
    font-variation-settings: "SOFT" 50;
    color: inherit;
    position: relative;
    z-index: 2;
}

/* =========================================================
   SUBTITLE / DESCRIPTION
   ========================================================= */
.sfc-subtitle {
    font-family: var(--sfc-sans);
    font-size: 0.95rem;
    line-height: 1.45;
    opacity: 0.75;
    margin: 0 0 1rem 0;
    color: inherit;
    position: relative;
    z-index: 2;
}

/* =========================================================
   CARD
   ========================================================= */
.sfc-card {
    flex: 1;
    margin: 1.5rem 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.sfc-card.is-changing {
    opacity: 0;
    transform: translateX(20px);
}

/* Number badge */
.sfc-card-num {
    position: absolute;
    top: 1rem;
    left: 1.2rem;
    font-family: var(--sfc-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--sfc-lime);
    line-height: 1;
    z-index: 3;
    font-variation-settings: "SOFT" 100, "WONK" 1;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* Image area – background gradient is set inline via render */
.sfc-card-image {
    height: 180px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.sfc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sfc-card-image-label {
    font-family: var(--sfc-sans);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(242, 237, 226, 0.4);
    font-weight: 500;
    text-align: center;
    padding: 0 1rem;
}

/* Question */
.sfc-card-question {
    flex: 1;
    margin: 0;
    padding: 1.5rem 1.5rem 1.8rem;
    font-family: var(--sfc-serif);
    font-weight: 500;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.3;
    color: var(--sfc-bg);
    font-variation-settings: "SOFT" 50, "WONK" 1;
    display: flex;
    align-items: center;
}

/* Innerer Wrapper — einziger Flex-Item, damit Inline-Text + <s>
   nicht jeweils zu separaten Flex-Items werden (sonst stehen die
   Wortgruppen im schmalen Viewport in Spalten nebeneinander). */
.sfc-card-question-inner {
    flex: 1 1 100%;
    display: block;
    width: 100%;
    min-width: 0;
}

.sfc-card-question s {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--sfc-coral);
    opacity: 0.55;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.sfc-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
    gap: 1rem;
}

.sfc-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--sfc-bg);
    cursor: pointer;
    font-family: var(--sfc-sans);
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}

.sfc-btn:hover {
    background: var(--sfc-lime);
    color: var(--sfc-ink);
    border-color: var(--sfc-lime);
}

/* Icon / Text inside the button */
.sfc-btn-icon,
.sfc-btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sfc-btn-icon svg {
    width: 1em;
    height: 1em;
    display: block;
}

/* Erzwingt currentColor auf SVGs (auch wenn fill="..." inline gesetzt ist) */
.sfc-btn-icon svg,
.sfc-btn-icon svg * {
    fill: currentColor !important;
}

/* Stroke-basierte (Line-)Icons: nur überschreiben, wenn Stroke ohnehin gesetzt ist */
.sfc-btn-icon svg [stroke]:not([stroke="none"]) {
    stroke: currentColor !important;
}

.sfc-btn-icon i {
    font-size: inherit;
    line-height: 1;
    color: currentColor;
}

.sfc-btn:focus-visible {
    outline: 2px solid var(--sfc-lime);
    outline-offset: 2px;
}

.sfc-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sfc-btn:disabled:hover {
    background: transparent;
    color: var(--sfc-bg);
    border-color: rgba(255, 255, 255, 0.25);
}

.sfc-counter {
    font-family: var(--sfc-serif);
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.8;
    text-align: center;
    flex: 1;
}

/* =========================================================
   RESPONSIVE — Tablet
   ========================================================= */
@media (max-width: 1024px) {
    .sfc-carousel {
        padding: 2rem;
        min-height: 540px;
    }

    .sfc-card {
        min-height: 280px;
    }

    .sfc-card-image {
        height: 160px;
    }
}

/* =========================================================
   RESPONSIVE — Mobile
   ========================================================= */
@media (max-width: 767px) {
    .sfc-carousel {
        padding: 1.5rem;
        min-height: 520px;
        border-radius: 18px;
    }

    .sfc-card {
        margin: 1rem 0;
        min-height: 260px;
    }

    .sfc-card-image {
        height: 140px;
    }

    .sfc-card-num {
        top: 0.75rem;
        left: 0.9rem;
        font-size: 1rem;
        padding: 0.3rem 0.6rem;
    }

    .sfc-card-question {
        padding: 1.2rem 1.2rem 1.4rem;
        font-size: 1.05rem;
    }

    .sfc-subtitle {
        font-size: 0.9rem;
    }

    .sfc-btn {
        width: 40px;
        height: 40px;
    }

    .sfc-counter {
        font-size: 1rem;
    }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    .sfc-card,
    .sfc-btn {
        transition: none !important;
    }

    .sfc-card.is-changing {
        opacity: 1;
        transform: none;
    }
}

/* User-Drag verhindern beim Swipen */
.sfc-card,
.sfc-card * {
    -webkit-user-drag: none;
}

.sfc-wrapper.is-dragging {
    cursor: grabbing;
}
