.image-block {
    margin-bottom: 116px;
    margin-top: 90px;
    height: 584px;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.image-block-scrolling-text .red-line {
    height: 50px;
    background-color: #C8230A;
}

.scrolling-title-track {
    position: absolute;
    bottom: 150px;
    left: 0;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
}

.scrolling-title-marquee {
    display: flex;
    width: max-content;
    animation: marqueeImage 120s linear infinite;
}

.scrolling-title-row {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    padding-right: 60px;
}

.scrolling-title-row span {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
    font-style: italic;
    text-transform: uppercase;
}

@keyframes marqueeImage {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.image-block-icons {
    height: auto;
}

.image-block-icons .bg-layer-icons {
    height: 95px;
}

.main-gif {
    height: 584px;
    object-fit: contain;
    position: absolute;
    z-index: 2;
    margin-left: auto;
    right: -45px;
    top: 50%;
    transform: translateY(-50%);
}

.image-composition {
    position: relative;
    width: 100%;
}

.bg-icons-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.bg-icons {
    display: flex;
    flex-direction: column;
    gap: 22px;
    z-index: 1;
}

.bg-layer {
    opacity: 0;
    height: 95px;
    transform: translateY(50px);
}

@keyframes bgAppear {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bg-layer.is-visible {
    animation: bgAppear 1s ease-in-out forwards;
}

.image-block-simple {
    position: relative;
    z-index: 1;
}

.image-block-wrapper {
    aspect-ratio: 1/1;
    position: relative;
}

.image-block-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.image-block-content.white {
    background-color: #fff;
}

.image-block-content.black {
    background-color: rgba(0, 0, 0, 0.7);
}

.image-block-content.black .image-block-text {
    font-size: 16px;
    margin-top: 0;
}

.image-block-content {
    padding: 30px 20px;
    padding-top: 50px;
    text-align: center;
    border-radius: 30px;

}

.image-block-title {
    font-size: 30px;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
    font-style: italic;
}
#image-with-girl .image-block-title,
#call-action-image .image-block-title,
#dozenten-image .image-block-title {
    text-align: center;
}


.image-block-content.black .image-block-title {
    color: #C8230A;
    text-transform: uppercase;
}

.image-block-content .image-block-title {
    font-weight: 700;
    font-style: italic;
}

.image-block-content.white .image-block-title {
    text-transform: uppercase;
}

.image-block-content.black .image-block-text {
    color: #fff;
}

.image-block-text {
    font-weight: 500;
    font-size: 14px;
    margin-top: 10px;
}
#image-with-girl .image-block-text,
#call-action-image .image-block-text,
#dozenten-image .image-block-text {
    text-align: center;
}

.image-block-text-2:last-child {
    margin-bottom: 0;
}

.image-block-btn {
    text-align: center;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 25px;
    padding: 10px 20px;
    text-transform: uppercase;
    min-width: 180px;
    width: fit-content;
    display: inline-block;
}

.image-block-wrapper .image-block-btn {
    background-color: #FFD20F;
    color: #000000;
    border-color: #FFD20F;
    margin-top: 10px;
}

.image-block-content.black {
    padding-top: 50px;
}

.image-block-simple-wrapper {
    aspect-ratio: 2/4.5;
}

.image-block-simple-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-block-scrolling-text .image-block-simple-wrapper img {
    object-fit: cover;
}

.image-block-scrolling-text .image-block-simple-wrapper {
    aspect-ratio: 1/1;
}

.image-block-simple-wrapper .desktop-image {
    display: none;
}

.image-block-scrolling-text .desktop-image {
    display: block;
}

.flx_image-block-with-extr-text:has(+ .flx_promoblock-slider) {
    margin-bottom: 0 !important;
}

.flx_image-block-with-extr-text .container.black {
    background-color: rgba(0, 0, 0, 0.7);
}

.flx_image-block-with-extr-text .container.black .image-block-content.black {
    background-color: transparent;
}

.flx_image-block-with-extr-text.call-to-action .image-block-text {
    margin-top: 10px;
    font-size: 14px;
}

.flx_image-block-with-extr-text {
    margin-bottom: 0 !important;
}

#image-with-girl .desk-image {
    display: none;
}

#image-with-girl .container.black {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 63px;
    width: 100%;
    background-color: transparent;
}

#image-with-girl .image-block-content.black {
    background-color: rgba(0, 0, 0, 0.7);
}

#image-with-girl .mobile-image {
    aspect-ratio: unset;
    height: 90vh;
}

.flx_image-block-with-extr-text.call-to-action img {
    height: 90vh;
}

.flx_image-block-with-extr-text.call-to-action .container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.image-bottom-bar {
    height: 40px;
}

 .image-block-content-call-to-action {
        width: auto;
    }

@media (min-width: 580px) {}

@media (min-width: 769px) {
    .image-block-title {
        font-size: 35px;
    }

    .flx_image-block-with-extr-text.call-to-action .image-block-text {
        font-size: 18px;
    }

    #image-with-girl .container.black {
        position: unset;
        transform: none;
        width: auto;
        background-color: rgba(0, 0, 0, 0.7);
    }

    #image-with-girl .image-block-content.black {
        background-color: transparent;
    }

    .flx_image-block-with-extr-text.call-to-action img {
        height: 100%;
        object-position: center top !important;
    }

    .flx_image-block-with-extr-text.call-to-action .container {
        position: unset;
        transform: none;
    }

    #image-with-girl .desk-image {
        display: block;
    }

    #image-with-girl .mobile-image {
        display: none;
    }

    .image-block-content.black .image-block-text {
        font-size: 18px;
    }

    /* .flx_image-block-with-extr-text {
        margin-bottom: 100px !important;
    } */
    .image-block-wrapper .container {
        padding: 0px 77px;
    }

    .image-block-wrapper {
        aspect-ratio: 16/9;
        /* max-height: calc(100vh - 80px); */
        width: 100%;
    }

    .image-block-wrapper .desk-image {
        max-height: calc(100vh - 80px);
    }

    .image-block-simple-wrapper .desktop-image {
        display: block;
    }

    .image-block-simple-wrapper .mobile-image {
        display: none;
    }

    .image-block-simple-wrapper {
        aspect-ratio: 16/9;
    }

    .image-block-scrolling-text .image-block-simple-wrapper {
        aspect-ratio: 16/9;
    }

    .image-block-content {
        width: 50%;
    }

    .scrolling-title-row span {
        font-size: 45px;
    }

    .scrolling-title-track {
        position: absolute;
        bottom: 200px;
    }

    .image-composition {
        justify-content: flex-start;
    }

    .main-gif {
        margin: 0 auto;
        right: auto;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 350px;
    }

    .image-block-btn {
        margin-top: 80px;
        font-size: 18px;
    }

    .bg-icons {
        align-items: flex-start;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr 1fr;
    }

    .bg-layer {
        height: 95px;
    }

    .bg-layer:nth-child(1) {
        grid-row: 1;
        grid-column: 1;
    }

    .bg-layer:nth-child(2) {
        grid-row: 2;
        grid-column: 2;
    }

    .bg-layer:nth-child(3) {
        grid-row: 3;
        grid-column: 3;
    }

    .bg-layer:nth-child(4) {
        grid-row: 4;
        grid-column: 4;
    }   
     .image-block-content-call-to-action {
        width: auto;
    }
}

@media (min-width: 998px) {
    .scrolling-title-track {
        position: absolute;
        bottom: 279px;
    }

    .image-block-text {
        font-size: 16px;
    }

    .flx_image-block-with-extr-text.call-to-action .image-block-text,
    .image-block-text {
        font-size: 18px;
    }

    .image-block-content.black .image-block-text {
        font-size: 20px;
    }

    .image-block-content {
        margin-top: 0;
    }

    .image-block-content,
    .image-block-content h2,
    .image-block-content p {
        color: var(--image-title-color);
    }

    .image-block-content.black,
    #image-with-girl .image-block-content.black {
        background-color: rgba(0, 0, 0, 0.7);
        max-width: 500px;
        width: 100%;
    }

    .image-block-content {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 77px;
        width: 50%;
    }


    .image-block-content.center {
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .image-block-content.left {
        text-align: left;
        width: 40%;
    }

    .image-block-content.white {
        background-color: #fff;
        max-width: 430px;
        padding: 30px 40px;
        width: 100%;
    }

    .image-block-content-call-to-action {
        top: auto;
        bottom: 10%;
        right: 20%;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 500px !important;
    }

    .flx_image-block-with-extr-text .container.black .image-block-content.black {
        background-color: rgba(0, 0, 0, 0.7);
    }

    #image-with-girl.flx_image-block-with-extr-text,
    #dozenten-image.flx_image-block-with-extr-text {
        margin-bottom: 120px !important;
    } 


}

@media (min-width: 1280px) {
    .image-block-title {
        font-size: 35px;
    }
    #image-with-girl .image-block-title,
    #call-action-image .image-block-title,
    #dozenten-image .image-block-title {
        font-size: 48px;
    }
    .image-block-content-call-to-action {
        left: auto;
    }
}

@media (min-width: 1500px) {
    .scrolling-title-row span {
        font-size: 70px;
    }

    .image-block-content {
        left: calc(50vw - 750px + 70px);
        width: 600px;
    }

    .image-block-wrapper .desk-image {
        max-height: unset;
    }
    .image-block-content-call-to-action {
        left: auto;
    }
}