/**
 * WPH Helper – Sticky Scroll Steps
 * assets/css/sticky-steps.css
 */

/* ── Custom Properties (überschreibbar per Elementor-Style-Controls) ── */
.wph-ss {
    --wph-bg:           #0f0f12;
    --wph-fg:           #f5f5f7;
    --wph-muted:        #a1a1aa;
    --wph-border:       rgba(255, 255, 255, 0.1);
    --wph-accent:       #e85d3a;
    --wph-accent-glow:  rgba(232, 93, 58, 0.55);

    position: relative;
    background: var(--wph-bg);
    color: var(--wph-fg);
    /* Höhe wird inline per PHP gesetzt: n × 100vh */
}

.wph-ss *,
.wph-ss *::before,
.wph-ss *::after {
    box-sizing: border-box;
}

/* ── Sticky Inner ── */
.wph-ss__inner {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* ── Glow-Hintergrund ── */
.wph-ss__glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--wph-accent-glow), transparent 70%);
    opacity: 0.2;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

/* ── Container ── */
.wph-ss__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ── */
.wph-ss__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
}

.wph-ss__eyebrow-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.wph-ss__line {
    width: 40px;
    height: 1px;
    background: var(--wph-accent);
    display: inline-block;
    flex-shrink: 0;
}

.wph-ss__eyebrow {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--wph-accent);
}

.wph-ss__title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--wph-fg);
}

/* Accent-Span innerhalb des Titels */
.wph-ss__title .wph-accent,
.wph-accent {
    color: var(--wph-accent);
}

/* ── Dots ── */
.wph-ss__dots {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.wph-ss__dots span {
    height: 6px;
    width: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.5s ease, width 0.5s ease;
    cursor: default;
}

.wph-ss__dots span.is-done {
    background: var(--wph-accent);
}

.wph-ss__dots span.is-active {
    background: var(--wph-accent);
    width: 36px;
}

/* ── Grid ── */
.wph-ss__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* ── Media & Text-Spalten ── */
.wph-ss__media,
.wph-ss__texts {
    position: relative;
    height: 440px;
}

/* ── Bild-Schritt ── */
.wph-ss__step {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

.wph-ss__step.is-prev {
    transform: translateY(-24px) scale(0.96);
}

.wph-ss__step.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Bild-Frame */
.wph-ss__frame {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--wph-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.wph-ss__frame::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--wph-accent), transparent 60%);
    opacity: 0.6;
    filter: blur(16px);
    z-index: -1;
}

.wph-ss__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wph-ss__frame-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
}

.wph-ss__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15, 15, 18, 0.6));
    pointer-events: none;
}

/* ── Text-Schritt ── */
.wph-ss__text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

.wph-ss__text.is-prev {
    transform: translateY(-32px);
}

.wph-ss__text.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.wph-ss__text-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--wph-accent);
    margin-bottom: 16px;
}

.wph-ss__text-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--wph-fg);
}

.wph-ss__text-body {
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--wph-muted);
}

/* ── Fortschrittsbalken ── */
.wph-ss__progress {
    margin-top: 48px;
    height: 2px;
    width: 100%;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

.wph-ss__progress-bar {
    height: 100%;
    width: 0%;
    background: var(--wph-accent);
    transition: width 0.3s ease;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .wph-ss__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .wph-ss__media,
    .wph-ss__texts {
        height: 280px;
    }

    .wph-ss__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .wph-ss__dots {
        display: none;
    }
}

/* ── Elementor-Editor: kein sticky im Preview ── */
.elementor-editor-active .wph-ss__inner {
    position: relative;
    height: auto;
    min-height: 100vh;
}
