#card3 {
    scroll-margin-top: 80px;
}

#card3 {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
}

#card3 .background-parallax-wrapper {
    width: 50%;
    min-width: 50%;
    max-width: 50%;
    background-image: url('../../images/Angebot/iStock-1270080274.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 0;
    align-self: stretch;
    -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) {
    #card3 .background-parallax-wrapper {
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

#card3 .background-parallax-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.45);
    z-index: 1;
    pointer-events: none;
}

#card3 .background-parallax {
    background: none !important;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 var(--horizontal-padding);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    justify-content: end;
}

#card3 .background-parallax.visible {
    opacity: 1;
    transform: translateY(0);
}

#card3 .container {
    padding: 0;
    width: 100%;
    box-sizing: content-box;

    max-width: var(--max-content-width);
    display: flex;
    justify-content: space-between;
}

#card3 .image-container {
    order: 2;
    width: 50%;
    min-width: 50%;
    max-width: 50%;
}

#card3 .image-container .image-container-inner {
    max-width: calc(var(--max-content-width) / 2);
}

#card3 .image-container .image-wrapper {
    overflow: hidden;
}

#card3 .image-container .image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 25%;
    transform: scale(1.2);
    filter: brightness(1.05);
    transition: transform 0.7s ease-out, filter 0.7s ease-out;
    will-change: transform, filter;
}

#card3 .image-wrapper:hover img {
    transform: scale(1.25);
    filter: brightness(1.1);
}

#card3 .text-block {
    width: 100%;
    min-width: 100%;
    padding: 40px 0;
    box-sizing: border-box;
    order: 1;
    max-width: calc(var(--max-content-width) / 2 - 30px);
    min-width: 1px;
}

@media screen and (max-width: 768px) {
    #card3 {
        flex-direction: column;
    }

    #card3 .background-parallax-wrapper {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    /* adjust certificate size by this styles */
    #card3 .image-container {
        order: 2;
        width: 80%;
        min-width: 80%;
        max-width: 80%;
    }
}
