#card2 {
    scroll-margin-top: 80px;
}

#card2.background-parallax-wrapper {
    background-image: url('../../images/Angebot/iStock-879989754.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 0;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}

/* Apple devices (iOS Safari) - use scroll with center positioning */
@supports (-webkit-touch-callout: none) {
    #card2.background-parallax-wrapper {
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

#card2.background-parallax-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
    pointer-events: none;
}

#card2 .background-parallax {
    background: none !important;
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;
    margin: var(--sections-vertical-spacing) var(--horizontal-padding);
    opacity: 0;
    transition: opacity 1s ease-out, transform 1s ease-out;
}

#card2 .background-parallax.visible {
    opacity: 1;
    transform: translateY(0);
}

#card2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 1s ease-out, transform 1s ease-out;
    background-color: #dddee0;
}

#card2.visible {
    opacity: 1;
    transform: translateY(0);
}

#card2 .container {
    padding: 0;
    width: 100%;
    box-sizing: content-box;
    max-width: var(--max-content-width);
    display: flex;
    justify-content: space-between;
}

#card2 .text-block {
    width: calc(33.333% - 20px);
    padding: 0;
    box-sizing: border-box;
}

#card2 .text-block.right {
    padding-top: clamp(102px, (100vw - -405px) * 0.086957, 160px) /* AutoClamp(768, 102, 1435, 160) */;
}

#card2 .text-block.left {
    padding-top: clamp(22px, (100vw - 584.58px) * 0.11994, 102px) /* AutoClamp(768, 22, 1435, 102) */;
}

#card2 .image-column {
    width: calc(33.333% - 20px);
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

#card2 .image-wrapper.first {
    width: clamp(160px, (100vw - -299.2px) * 0.149925, 260px);
    /* AutoClamp(768, 160, 1435, 260) */
}

#card2 .image-wrapper.second img {
    border-radius: 4px;
}

#card2 .image-wrapper {
    overflow: visible;
    width: 100%;
}

#card2 .image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: cover;
    object-position: 50% 25%;
    transform: scale(1);
    filter: brightness(1);
    transition: transform 0.7s ease-out, filter 0.7s ease-out;
    will-change: transform, filter;
}

#card2 .image-wrapper:hover img {
    transform: scale(1.07);
    filter: brightness(1.05);
}

@media screen and (max-width: 768px) {
    #card2 .container {
        flex-direction: column;
        align-items: center;
    }

    #card2 .text-block.left {
        padding: 0;
        width: 100%;
        order: 1;
        margin-bottom: var(--text-dynamic-margin-value);
    }

    #card2 .text-block.right {
        padding: 0;
        width: 100%;
        order: 2;
        margin-bottom: var(--text-dynamic-margin-value);
    }

    #card2 .image-wrapper.first {
        width: 160px;
    }

    #card2 .image-wrapper.second {
        width: 235px;
    }

    #card2 .text-block {
        width: auto;
    }

    #card2 .image-column {
        width: auto;
        order: 3;
    }
}
