/* ============================================================
   Prozess Block – ACF / acf/prozess
   ============================================================ */

.prozesswrap {
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 3rem 1.5rem;

    --radius: 1rem;

    /* ── Step Article ─────────────────────────────────────────── */
    .prozess-step {
        position: relative;
        width: 100%;
        max-width: 640px;
        padding: 2rem 2rem 2rem 4.5rem;
        background: var(--wp--preset--color--light);
        border: var(--wp--custom--main-border);
        border-radius: var(--radius);
        box-shadow: var(--wp--custom--box-shadow);
        box-sizing: border-box;

        /* Scroll-triggered fade-in */
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.55s ease, transform 0.55s ease;
        transition: var(--wp--custom--main-trans);


        &:hover{

            box-shadow: none;
            border-color: var(--wp--preset--color--ci-yellow);
            &::before {
                background: var(--wp--preset--color--dark);
            }
        }
    }

    .prozess-step.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* ── Step Number ::before ─────────────────────────────────── */
    .prozess-step::before {
        content: var(--step);
        position: absolute;
        left: -1px;
        top: -1px;
        width: 2.75rem;
        height: 2.75rem;
        display: flex;
        align-items: center;
        justify-content: center;

        background: var(--wp--preset--color--ci-yellow);
        color: var(--wp--preset--color--light);
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        border-radius: var(--radius) 0 var(--radius) 0;

        transition: var(--wp--custom--main-trans);
    }

    /* ── Headline ─────────────────────────────────────────────── */
    .prozess-step h3 {
        margin: 0 0 0.6rem;
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--wp--preset--color--dark);
        line-height: 1.3;
    }

    /* ── Content ──────────────────────────────────────────────── */
    .prozess-content {
        font-size: 1.25rem;
    }

    .prozess-content p:last-child {
        margin-bottom: 0;
    }

    /* ── Arrow Connector ──────────────────────────────────────── */
    .prozess-arrow {
        width: 60px;
        height: 40px;
        color: #d1d5db;
        flex-shrink: 0;
        margin: 6px 0;
        align-self: center;

        rotate: -90deg;
        opacity: 0;
        transition: opacity 0.4s ease 0.2s;
    }

    .prozess-arrow.is-visible {
        opacity: 1;
    }

    .prozess-arrow svg {
        width: 100%;
        height: 100%;
    }
}



/* ── Staggered delay per step ─────────────────────────────── */
.prozess-step:nth-child(1)  { transition-delay: 0.00s; }
.prozess-step:nth-child(3)  { transition-delay: 0.10s; }
.prozess-step:nth-child(5)  { transition-delay: 0.20s; }
.prozess-step:nth-child(7)  { transition-delay: 0.30s; }
.prozess-step:nth-child(9)  { transition-delay: 0.40s; }
.prozess-step:nth-child(11) { transition-delay: 0.50s; }

/* ── Responsive ───────────────────────────────────────────── */
@media screen and (max-width: 1080px) {
   .prozesswrap{
        flex-direction: column;

        .prozess-arrow{
            rotate: 0deg;
        }

        .prozess-step{
            min-width: auto;
            width: 100%;
            max-width: unset;
        }
   }
}



.wp-admin {
    .prozess-step,
    .prozess-arrow {
        opacity:1;
        transform:translateY(0);
    }
}