.ablauf-block {
    overflow: hidden;
}


.ablauf-block .topline.center{
    margin:0 auto 1rem;
}

.ablauf-block h3{
    line-height: 1.5rem;
    margin-top:0;
}

.ablauf-header {
    margin-bottom: 6.5rem;
}

.ablauf-steps {
    display: grid;
    grid-template-columns: repeat(var(--ablauf-step-count), minmax(0, 1fr));
    gap: 2.25rem;
}

.ablauf-step {
    position: relative;
    height: 100%;
    padding: 2rem 1.5rem;
    border-radius: var(--br);
    background: var(--brand-primary-color-text);
    text-align: center;
    box-shadow: 0 10px 30px rgba(20, 36, 51, .04);
}

.ablauf-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1.25rem;
    border: 2px solid var(--brand-accent-color);
    border-radius: 50%;
    color: #142433;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
}

.ablauf-step-heading {
    margin-bottom: .85rem;
    font-weight: 700;
}

.ablauf-step-text {
    font-size: .95rem;
    font-weight: 500;
}

.ablauf-step-text p {
    margin: 0;
}

.ablauf-steps {
    display: grid;
    grid-template-columns: repeat(var(--ablauf-step-count), minmax(0, 1fr));
    gap: 2.25rem;
}

.ablauf-step {
    position: relative;
    height: 100%;
    padding: 2rem 1.5rem;
    border-radius: var(--br);
    background: var(--brand-primary-color-text);
    text-align: center;
    box-shadow: 0 10px 30px rgba(20, 36, 51, .04);
}

.ablauf-step-number {
    position: absolute;
    top: -72px;
    left: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 2px solid var(--brand-accent-color);
    border-radius: 50%;
    background: var(--brand-primary-color-text);
    color: #142433;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
    transform: translateX(-50%);
}

.ablauf-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: -46px;
    left: calc(50% + 26px);
    width: calc(100% + 2.25rem - 52px);
    height: 2px;
    background: var(--brand-accent-color);
    z-index: 1;
}

.ablauf .buttonwrapper .btn{
    margin: 1.5rem auto 0;
    display:block;
}



    .ablauf-steps.vertikal {
        grid-template-columns: repeat(min(var(--ablauf-step-count), 2), minmax(0, 1fr));
        --ablauf-step-count: 1!important;
        gap:10px;
    }

    .ablauf-steps.vertikal .ablauf-step-arrow {
        display: none;
    }

    .ablauf-steps.vertikal .ablauf-step{
        width:90%;
    }
    .ablauf-steps.vertikal .ablauf-step-number{
        top:50%;
        right:-75px;
        left:unset;
        transform:translateY(-50%);
    }
    .ablauf-steps.vertikal .ablauf-step:not(:last-child)::after{
        top:50%;
        left:unset;
        right:-50px;
        width:2px;
        height:125%;
    }

@media (max-width: 1199px) {
    .ablauf-steps,
    .ablauf-steps.vertikal {
        grid-template-columns: repeat(min(var(--ablauf-step-count), 2), minmax(0, 1fr));
        --ablauf-step-count: 1!important;
    }

    .ablauf-step-arrow {
        display: none;
    }

    .ablauf-step{
        width:90%;
        margin-left:10%;
    }
    .ablauf-step-number{
        top:50%;
        left:-75px;
        transform:translateY(-50%);
    }
    .ablauf-step:not(:last-child)::after{
        top:50%;
        left:-50px;
        width:2px;
        height:125%;
    }

}

@media (max-width: 767px) {
    .ablauf-header {
        margin-bottom: 2rem;
    }

    .ablauf-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ablauf-step {
        min-height: auto;
        padding: 1rem;
        width:85%;
    }
}

@media (max-width: 575px) {
    .ablauf-step,
    .ablauf-steps.vertikal .ablauf-step {
        padding: 1rem;
        width:85%;
        margin-left:12.5%;
    }
    .ablauf-step:not(:last-child)::after{
        height:100%;
    }
    .ablauf-step-number{
        left:-57.5px;
    }
    .ablauf-step:not(:last-child)::after{
        left:-32.5px;
    }
}