.textline {
    position: relative;
    background-color: inherit;
    width: 50%;
}

.textline:nth-child(even) {
    padding: 0px 0px .5rem 1rem;
    left: 50%;
}

.textline:nth-child(odd) {
    padding: 0px 1rem .5rem 0px;
    left: 0;
}

.textline:nth-child(odd) .h4_normal {
    text-align: right;
}

.textline h3 {
    padding: 0;
    padding-bottom: 15px;
}

.textline h4 {
    padding: 0;
    padding-bottom: 15px;
}

.textline .card-body {
    --bs-card-spacer-y-top: 0;
    flex: 1 1 auto;
    padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x);
    padding-top: var(--bs-card-spacer-y-top);
    color: var(--bs-card-color);
}

/* ==========================================================================
   LIEPS COMPONENT – TIMELINE IMAGE
   Aus der bisherigen custom.css unverändert ausgelagert.
   ========================================================================== */

.textline-image {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    align-content: space-between;
}

.textline-image-item img {
    display: block;
    width: 100%;
    max-width: 256px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}



/* Timeline */
.main-textline {
    position: relative;
}

.main-textline::after {
    content: "";
    position: absolute;
    width: 6px;
    background-color: var(--bs-secondary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.textline {
    position: relative;
    background-color: inherit;
    width: 50%;
}

.textline::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    right: -13px;
    background-color: var(--bs-secondary);
    border: 5px solid var(--bs-primary);
    top: -1px;
    border-radius: 50%;
    z-index: 1;
}

.textline:nth-child(odd) {
    padding: 0px 40px 20px 0px;
    left: 0;
}

.textline:nth-child(even) {
    padding: 0px 0px 20px 40px;
    left: 50%;
}

.textline:last-child {
    padding-bottom: 0 !important;
}

.textline:nth-child(odd)::before {
    content: " ";
    position: absolute;
    top: 18px;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.textline:nth-child(even)::before {
    content: " ";
    position: absolute;
    top: 18px;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

.textline:nth-child(even)::after {
    left: -12px;
}

/* RWS */
@media screen and (max-width:991px) {
    .main-textline::after {
        left: 15px;
    }

    .textline {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .textline::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    .textline:nth-child(odd) {
        padding: 0px 0px 20px 40px;
    }

    .textline:nth-child(odd)::after,
    .textline:nth-child(even)::after {
        left: 3px;
    }

    .textline:nth-child(odd)::before,
    .textline:nth-child(even)::before {
        display: none;
    }

    .textline:nth-child(even) {
        left: 0%;
    }
}