/* =========================================
   EV Process Steps – "So läuft dein Erstgespräch ab"
   Simplified: Icons + Title + Subtitle only
   ========================================= */

.ev-process-steps {
    padding: 72px 0 56px;
    background: #fff;
    overflow: hidden;
}

.ev-process-steps__container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Heading */
.ev-process-steps__heading {
    text-align: center;
    font-family: var(--ci-heading-font, 'Inter', sans-serif);
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--ci-primary, #264850);
    margin: 0 0 48px;
    line-height: 1.25;
}

/* Track: horizontal 4-column grid with connecting line */
.ev-process-steps__track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    position: relative;
}

/* Connecting line behind icons */
.ev-process-steps__line {
    position: absolute;
    top: 40px;
    left: calc(12.5% + 12px);
    right: calc(12.5% + 12px);
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
    border-radius: 1px;
}
.ev-process-steps__line-fill {
    height: 100%;
    width: 0;
    background: var(--ci-accent, #007caf);
    border-radius: 1px;
    transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.ev-process-steps.is-visible .ev-process-steps__line-fill {
    width: 100%;
}

/* Single step */
.ev-process-steps__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.ev-process-steps.is-visible .ev-process-steps__step {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger */
.ev-process-steps.is-visible .ev-process-steps__step[data-step="1"] { transition-delay: 0.1s; }
.ev-process-steps.is-visible .ev-process-steps__step[data-step="2"] { transition-delay: 0.3s; }
.ev-process-steps.is-visible .ev-process-steps__step[data-step="3"] { transition-delay: 0.5s; }
.ev-process-steps.is-visible .ev-process-steps__step[data-step="4"] { transition-delay: 0.7s; }

/* Icon wrapper */
.ev-process-steps__icon-wrap {
    position: relative;
    margin-bottom: 20px;
}

.ev-process-steps__icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #ebf5f9;
    border: 2px solid rgba(0, 124, 175, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ci-accent, #007caf);
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.ev-process-steps__icon svg {
    width: 30px;
    height: 30px;
}

/* Hover glow */
.ev-process-steps__step:hover .ev-process-steps__icon {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 8px 24px rgba(0, 124, 175, 0.18);
    border-color: var(--ci-accent, #007caf);
}

/* Step number badge */
.ev-process-steps__number {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ci-accent, #007caf);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--ci-body-font, 'Inter', sans-serif);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Content */
.ev-process-steps__content {
    flex: 1;
    max-width: 200px;
}

.ev-process-steps__title {
    font-family: var(--ci-heading-font, 'Inter', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ci-primary, #264850);
    margin: 0 0 4px;
    line-height: 1.3;
}

.ev-process-steps__subtitle {
    font-family: var(--ci-body-font, 'Inter', sans-serif);
    font-size: 0.85rem;
    color: var(--ci-muted, #6B7280);
    margin: 0;
    line-height: 1.45;
    font-weight: 400;
}

/* ================================
   Responsive
   ================================ */

/* Tablet: 2x2 grid */
@media (max-width: 900px) {
    .ev-process-steps {
        padding: 56px 0 40px;
    }
    .ev-process-steps__track {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 24px;
    }
    .ev-process-steps__line {
        display: none;
    }
    .ev-process-steps__heading {
        margin-bottom: 36px;
    }
}

/* Mobile: single column */
@media (max-width: 600px) {
    .ev-process-steps {
        padding: 44px 0 32px;
    }
    .ev-process-steps__track {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 300px;
        margin: 0 auto;
    }
    .ev-process-steps__step {
        flex-direction: row;
        text-align: left;
        gap: 16px;
    }
    .ev-process-steps__icon-wrap {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .ev-process-steps__icon {
        width: 52px;
        height: 52px;
    }
    .ev-process-steps__icon svg {
        width: 24px;
        height: 24px;
    }
    .ev-process-steps__content {
        max-width: none;
    }
    .ev-process-steps__heading {
        font-size: 1.35rem;
        margin-bottom: 28px;
    }
}
