.process-reference {
    --process-accent: #f4aa00;
    --process-accent-bright: #ffbc0d;
    --process-surface: #0b0f10;
    --process-card: #111416;
    --process-card-inner: #0d1012;
    --process-card-edge: rgba(255, 255, 255, 0.22);
    --process-copy: #d7d9da;
    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: hidden;
    padding: var(--section-space-y) 0;
    color: #fff;
    background: var(--dark-section-background);
}

.process-reference::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    content: "";
    opacity: 0.23;
    background-image:
        repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.012) 4px),
        linear-gradient(112deg, transparent 0 44%, rgba(255, 255, 255, 0.026) 44.1% 44.28%, transparent 44.4%);
    pointer-events: none;
}

.process-reference__texture {
    position: absolute;
    bottom: 20px;
    left: -40px;
    z-index: -1;
    width: 430px;
    height: 310px;
    opacity: 0.17;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.34) 1px, transparent 1.5px);
    background-size: 13px 13px;
    mask-image: linear-gradient(130deg, #000 0%, transparent 73%);
    pointer-events: none;
}

.process-reference__brand-bolt {
    position: absolute;
    top: -4px;
    right: 4px;
    z-index: -1;
    width: 520px;
    height: 300px;
    overflow: visible;
    pointer-events: none;
}

.process-reference__brand-bolt-line,
.process-reference__brand-bolt-shadow {
    fill: none;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

.process-reference__brand-bolt-line {
    stroke: var(--process-accent);
    stroke-width: 1.7;
    opacity: 0.92;
}

.process-reference__brand-bolt-shadow {
    stroke: rgba(244, 170, 0, 0.18);
    stroke-width: 1.5;
}

.process-reference__inner {
    position: relative;
    top: -57px;
    z-index: 1;
    width: min(calc(100% - 136px), 1400px);
    margin: 0 auto;
}

.process-reference__heading {
    max-width: 1040px;
    margin-bottom: 0;
}

.process-reference__eyebrow {
    margin: 0 0 16px;
    color: #dc9400;
    font-family: Poppins, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.35px;
    line-height: 1.25;
    text-transform: uppercase;
}

.process-reference__heading h2 {
    margin: 0;
    color: #f7f7f4;
    font-family: Sora, Poppins, Arial, sans-serif;
    font-size: var(--type-section-title);
    font-weight: 770;
    letter-spacing: -1.4px;
    line-height: 1.13;
    text-transform: none;
    text-wrap: balance;
}

.process-reference__heading h2 strong {
    color: var(--process-accent);
    font-weight: 790;
}

.process-reference__signal {
    color: var(--process-accent);
}

.process-reference__steps {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

.process-reference__step {
    position: relative;
    min-width: 0;
    height: 490px;
    min-height: 0;
    flex: 0 0 calc((100% + 54px) / 4);
    margin-right: -18px;
    overflow: hidden;
    color: #fff;
    background: transparent;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
    transition: filter 260ms ease;
}

.process-reference__step:nth-child(1) {
    z-index: 5;
}

.process-reference__step:nth-child(2) {
    z-index: 4;
}

.process-reference__step:nth-child(3) {
    z-index: 3;
}

.process-reference__step:nth-child(4) {
    z-index: 2;
}

.process-reference__step:last-child {
    z-index: 1;
    margin-right: 0;
}

.process-reference__step::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 31%),
        linear-gradient(125deg, var(--process-card), var(--process-card-inner));
    transition: background 260ms ease;
    pointer-events: none;
}

.process-reference__step--first::before {
    aspect-ratio: 0.658;
    clip-path: polygon(0 0, 91.6% 0, 100% 21.4%, 92.9% 40.6%, 92.7% 100%, 0 100%);
    clip-path: shape(from 0.01% 0.26%,curve to 0.24% 0.07% with -0.03% 0.16%/0.08% 0.07%,line to 91.6% 0%,curve by 0.23% 0.12% with 0.11% 0%/0.2% 0.05%,line by 8.16% 21.32%,curve by 0% 0.07% with 0.01% 0.02%/0.01% 0.05%,line by -7.06% 19.17%,curve by -0.01% 0.04% with 0% 0.01%/-0.01% 0.02%,line by -0.19% 59.04%,curve by -0.24% 0.15% with 0% 0.09%/-0.11% 0.15%,line by -91.83% 0.08%,curve by -0.24% -0.16% with -0.13% 0%/-0.24% -0.07%,line by -0.01% -60.52%,curve by 0.01% -0.04% with 0% -0.01%/0% -0.03%,line to 0.01% 0.26%,close);
}

.process-reference__step--middle::before {
    aspect-ratio: 0.658;
    clip-path: polygon(7.5% 21.4%, 0 0, 91.6% 0, 100% 21.4%, 92.9% 40.6%, 92.7% 100%, 0 100%, 0 39.5%);
    clip-path: shape(from 7.52% 21.44%,line to 0.01% 0.26%,curve to 0.24% 0.07% with -0.03% 0.16%/0.08% 0.07%,line to 91.6% 0%,curve by 0.23% 0.12% with 0.11% 0%/0.2% 0.05%,line by 8.16% 21.32%,curve by 0% 0.07% with 0.01% 0.02%/0.01% 0.05%,line by -7.06% 19.17%,curve by -0.01% 0.04% with 0% 0.01%/-0.01% 0.02%,line by -0.19% 59.04%,curve by -0.24% 0.15% with 0% 0.09%/-0.11% 0.15%,line by -91.83% 0.08%,curve by -0.24% -0.16% with -0.13% 0%/-0.24% -0.07%,line by -0.01% -60.52%,curve by 0.01% -0.04% with 0% -0.01%/0% -0.03%,line by 7.09% -17.77%,curve by 0% -0.07% with 0.01% -0.02%/0.01% -0.05%,close);
}

.process-reference__step--last::before {
    aspect-ratio: 0.611;
    clip-path: polygon(8.1% 21.4%, 0 0, 98.6% 0, 99.8% 40.7%, 99.6% 100%, 0 100%, 0 39.5%);
    clip-path: shape(from 8.09% 21.44%,line to 0.01% 0.26%,curve to 0.25% 0.07% with -0.03% 0.16%/0.09% 0.07%,line to 98.56% 0%,curve by 0.25% 0.12% with 0.12% 0%/0.22% 0.05%,line by 1.19% 40.57%,curve by -0.01% 0.04% with 0% 0.01%/-0.01% 0.02%,line by -0.2% 59.04%,curve by -0.25% 0.15% with 0% 0.09%/-0.11% 0.15%,line by -98.81% 0.08%,curve by -0.25% -0.16% with -0.14% 0%/-0.25% -0.07%,line by -0.01% -60.52%,curve by 0.01% -0.04% with 0% -0.01%/0% -0.03%,curve by 7.63% -17.84% with 0% 0%/7.63% -17.82%,close);
}

.process-reference__step-line {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: auto;
    height: 40.61%;
    aspect-ratio: 0.143;
    background: var(--process-accent, #f2b000);
    clip-path: polygon(12.6% 100%, 100% 50%, 12.6% 0, 14% 1%, 98.5% 50%, 14% 99%);
    clip-path: shape(from 12.64% 100%,curve by 15.95% -12.71% with 4.87% -4.25%/10.42% -8.48%,curve by 21.65% -12.51% with 7.3% -4.17%/14.43% -8.34%,curve by 38.13% -22.09% with 10.16% -5.91%/28.14% -16.3%,curve by 0.17% -0.1% with 0% 0%/0.17% -0.1%,curve by 0.02% -0.01% with 0.01% 0%/0.05% -0.03%,curve by 0.02% 0.2% with -0.11% 0.07%/-0.1% 0.14%,curve by -0.51% -0.29% with -0.11% -0.06%/-0.4% -0.23%,curve by -48.91% -27.31% with -1.06% -0.58%/-46.71% -26.1%,curve by -22.36% -12.49% with 0% 0%/-22.36% -12.49%,curve by -16.77% -12.69% with -5.76% -4.22%/-11.56% -8.45%,curve by 27.95% 12.28% with 9.69% 4.08%/18.8% 8.18%,curve by 69.87% 39.02% with 15.78% 8.82%/53.68% 29.98%,curve by 1.4% 0.78% with 0% 0%/1.4% 0.78%,curve by 0.78% 0.61% with 0.32% 0.2%/0.86% 0.41%,curve by -0.44% 0.37% with 0% 0.13%/-0.23% 0.25%,curve by -38.13% 22.1% with -9.9% 5.76%/-28.06% 16.24%,curve by -21.54% 12.52% with -7.18% 4.17%/-14.45% 8.34%,curve by -27.24% 12.32% with -8.87% 4.11%/-17.71% 8.23%,hline by 0%,close);
    pointer-events: none;
}

.process-reference__step-button {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 27px 35px 22px 29px;
    border: 0;
    color: inherit;
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.process-reference__step:nth-child(n + 2) .process-reference__step-button {
    padding-left: 41px;
}

.process-reference__step-button::before {
    position: absolute;
    inset: 1px;
    z-index: -1;
    content: "";
    opacity: 0;
    background:
        linear-gradient(90deg, rgba(244, 170, 0, 0.1), transparent 55%),
        radial-gradient(circle at 22% 16%, rgba(255, 188, 13, 0.11), transparent 48%);
    clip-path: inherit;
    transition: opacity 260ms ease;
    pointer-events: none;
}

.process-reference__step-button:hover::before {
    opacity: 0.3;
}

.process-reference__step.is-active .process-reference__step-button::before {
    opacity: 0.14;
}

.process-reference__step-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -7px;
}

.process-reference__step.is-active {
    filter: drop-shadow(0 0 12px rgba(244, 170, 0, 0.11));
}

.process-reference__number,
.process-reference__icon-wrap,
.process-reference__step-title,
.process-reference__step-copy {
    position: relative;
    z-index: 1;
    display: block;
    flex: 0 0 auto;
}

.process-reference__number {
    margin-bottom: 18px;
    color: var(--process-accent-bright);
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 50px;
}

.process-reference__icon-wrap {
    display: grid;
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    place-items: center;
    margin-bottom: 15px;
    color: var(--process-accent-bright);
}

.process-reference__icon {
    display: block;
    width: 50px;
    height: 50px;
    stroke-width: 1.65;
}

.process-reference__icon-wrap > svg:not(.process-reference__icon--plan) {
    transform: scale(1.06);
    transform-origin: center;
}

.process-reference__icon--plan {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.35;
    transform: scale(1.03);
    transform-origin: center;
}

.process-reference__icon--checklist,
.process-reference__icon--tools {
    width: 50px;
    height: 50px;
    background: currentColor;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: 50px 50px;
}

.process-reference__icon--checklist {
    mask-image: url("../../assets/icons/hero/klare_planung.svg");
    transform: scale(1.02);
}

.process-reference__icon--tools {
    mask-image: url("../../assets/icons/hero/fachgerechte_ausfuehrung.svg");
    transform: scale(0.92);
}

.process-reference__step-title {
    margin-bottom: 12px;
    color: #fff;
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -0.25px;
    line-height: 1.22;
}

.process-reference__step:nth-child(3) .process-reference__step-title {
    font-size: 23px;
    white-space: nowrap;
}

.process-reference__step-copy {
    color: var(--process-copy);
    font-size: 17px;
    font-weight: 430;
    line-height: 1.36;
    overflow-wrap: break-word;
}

.process-reference__step:nth-child(n + 2) .process-reference__step-copy {
    font-size: 16.5px;
}

.process-reference__cta {
    position: relative;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 320px;
    align-items: center;
    gap: 0;
    width: 100%;
    min-height: var(--section-cta-height);
    margin: 28px 0 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-ui);
    background: linear-gradient(105deg, #121617 0%, #080b0c 100%);
}

.process-reference__cta-mark {
    position: relative;
    display: grid;
    align-self: stretch;
    place-items: center;
    min-width: 0;
    overflow: hidden;
    color: #fff;
}

.process-reference__cta-mark::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 128px;
    content: "";
    background: linear-gradient(135deg, #ffc21f, #e4a000);
    clip-path: polygon(0 0, 100% 0, 48% 100%, 0 100%);
}

.process-reference__cta-mark::after {
    position: absolute;
    top: -45px;
    right: 26px;
    width: 2px;
    height: 190px;
    content: "";
    background: #e4a000;
    transform: rotate(31deg);
    transform-origin: center;
}

.process-reference__cta-icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 64px;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%);
    color: #111516;
}

.process-reference__cta-copy {
    padding: 18px 34px;
}

.process-reference__cta-copy p {
    margin: 0;
    color: #f2f2ed;
    font-family: "DM Sans", Poppins, Arial, sans-serif;
    font-size: 18px;
    font-weight: 760;
    line-height: 1.25;
}

.process-reference__cta-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 54px;
    margin: 16px 18px 16px 0;
    padding: 10px 22px 10px 28px;
    overflow: hidden;
    border: 0;
    color: #101313;
    font-family: "DM Sans", Poppins, Arial, sans-serif;
    font-size: 16px;
    font-weight: 780;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    border-radius: var(--radius-ui);
    background: linear-gradient(135deg, #ffc21f 0%, #e4a000 100%);
    transition: background 220ms ease, color 220ms ease;
}

.process-reference__cta-button:hover {
    color: #101313;
    background: #ffc21f;
}

.process-reference__cta-button:focus-visible {
    outline: 3px solid #101313;
    outline-offset: 4px;
}

.process-reference__cta-arrow {
    width: 18px;
    height: 18px;
    transition: transform 220ms ease;
}

.process-reference__cta-button:hover .process-reference__cta-arrow {
    transform: translateX(4px);
}

@media (max-width: 1320px) {
    .process-reference__step {
        flex-basis: calc((100% + 54px) / 4);
    }

    .process-reference__step-button {
        padding-right: 33px;
        padding-left: 24px;
    }

    .process-reference__step-title {
        font-size: 18px;
    }

    .process-reference__step-copy {
        font-size: 15px;
    }
}

@media (max-width: 1100px) {
    .process-reference {
        padding-block: var(--section-space-y);
    }

    .process-reference__brand-bolt {
        right: -60px;
        width: 390px;
        height: 225px;
        opacity: 0.65;
    }

    .process-reference__steps {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .process-reference__step {
        height: auto;
        min-height: 470px;
        margin-right: 0;
    }

    .process-reference__step-button {
        height: auto;
        min-height: 470px;
        padding: 28px;
    }

    .process-reference__cta {
        grid-template-columns: 205px minmax(0, 1fr) 285px;
    }
}

@media (max-width: 820px) {
    .process-reference__inner {
        top: 0;
        width: min(calc(100% - 36px), 1400px);
    }

    .process-reference__heading {
        text-align: center;
    }

    .process-reference__eyebrow {
        margin-bottom: 15px;
        font-size: 14px;
    }

    .process-reference__heading h2 {
        font-size: var(--type-section-title);
        letter-spacing: -0.8px;
        line-height: 1.18;
    }

    .process-reference__signal {
        justify-content: center;
        margin-inline: auto;
    }

    .process-reference__steps {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: min(82vw, 340px);
        justify-content: start;
        gap: 12px;
        padding-bottom: 14px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline mandatory;
        scrollbar-color: var(--process-accent) rgba(255, 255, 255, 0.12);
        scrollbar-width: thin;
    }

    .process-reference__steps::-webkit-scrollbar {
        height: 7px;
    }

    .process-reference__steps::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.12);
    }

    .process-reference__steps::-webkit-scrollbar-thumb {
        background: var(--process-accent);
    }

    .process-reference__step {
        grid-column: auto;
        width: 100%;
        min-height: 500px;
        scroll-snap-align: start;
    }

    .process-reference__step-button {
        min-height: 500px;
        padding: 28px 27px 31px;
    }

    .process-reference__cta {
        grid-template-columns: 82px minmax(0, 1fr);
        min-height: 0;
    }

    .process-reference__cta-mark {
        grid-column: 1;
        grid-row: 1;
    }

    .process-reference__cta-mark::before {
        width: 47px;
    }

    .process-reference__cta-mark::after {
        top: -28px;
        right: 2px;
        height: 150px;
    }

    .process-reference__cta-icon {
        left: calc(50% + 16px);
        width: 30px;
        height: 30px;
    }

    .process-reference__cta-copy {
        grid-column: 2;
        grid-row: 1;
        padding: 18px;
        text-align: left;
    }

    .process-reference__cta-button {
        grid-column: 1 / -1;
        grid-row: 2;
        width: calc(100% - 28px);
        min-height: 52px;
        margin: 0 14px 14px;
        font-size: 16px;
    }
}

@media (max-width: 430px) {
    .process-reference__heading h2 {
        font-size: var(--type-section-title);
    }

    .process-reference__step,
    .process-reference__step:last-child,
    .process-reference__step-button {
        min-height: 520px;
    }
}
