.root {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    background-image: url('./assets/bg.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.contentContainer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-content: center;
    gap: 48px;
    width: 100%;
    max-width: 1200px;
    min-height: 860px;
    position: relative;
    z-index: 2;
}

.headline {
    position: relative;
    width: 360px;
    margin-right: auto;
}

.carouselArea {
    position: absolute;
    top: 170px;
    width: 100%;
    transform: translateX(-50%);
    left: 50%;
    height: 540px;
    overflow: visible;
    display: flex;
    justify-content: center;
}

.callAction {
    position: relative;
    width: 360px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-left: auto;
}

.text {
    color: var(--color-text-primary-inverted);
}

.buttonWrapper {
    width: fit-content;
}

.desktop {
    display: block;
}

.mobile {
    display: none;
}

@media screen and (width <= 1200px) {
    .contentContainer {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        padding: 70px 0 24px;
    }

    .headline {
        display: flex;
        max-width: 700px;
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .callAction {
        position: relative;
        width: 100%;
        max-width: 800px;
        margin: 0;
        align-items: center;
    }

    .text {
        text-align: center;
    }
}

@media screen and (width <= 768px) {
    .root {
        align-items: center;
        justify-content: center;
    }

    .contentContainer {
        min-height: 812px;
        padding: 92px 0 34px;
    }

    .headline {
        max-width: 335px;
    }

    .carouselArea {
        top: 217px;
        width: 270px;
        left: 50%;
        transform: translateX(-50%);
        overflow: visible;
        display: flex;
        justify-content: center;
    }

    .callAction {
        gap: 16px;
        max-width: 335px;
    }

    .desktop {
        display: none;
    }

    .mobile {
        display: block;
    }
}
