.hero-product {
    background: var(--darkblue);
    color: white;
    position: relative;
    height: 44vw;
    min-height: 550px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 100px solid var(--darkblue);
    font-size: 18px;
    line-height: 140%;
}

.hero-product .innerwrap {
    z-index: 2;
    transform: translateY(20px);
}

.hero-product h1 {
    font-size: 40px;
    width: 50%;
}

.hero-product p {
    width: 45%;
}

.hero-product .collage-wrap {
    background: url('../images/background-product-blue.svg') no-repeat right bottom;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
}

body.page-template-template-bauliche-instandhaltung .hero-product .collage-wrap {
    background: url('../images/background-product-blue.svg') no-repeat right bottom;
}

body.page-template-template-energetische-sanierung .hero-product .collage-wrap {
    background: url('../images/background-product-brightgreen.svg') no-repeat right bottom;
}

.hero-product .collage-wrap .screenshot-1 {
    background: white;
    border: 20px solid white;
    border-radius: 30px;
    width: 100%;
    height: auto;
    position: absolute;
    right: -170px;
    bottom: -1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.35);
    z-index: 2;
}

.hero-product .collage-wrap .screenshot-1 img {
    border-radius: 15px;
    overflow: hidden;
}

.hero-product .collage-wrap .screenshot-2 {
    background: white;
    border: 20px solid white;
    border-radius: 30px;
    width: 45%;
    max-width: 350px;
    height: auto;
    position: absolute;
    left: -50px;
    bottom: -80px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.35);
    z-index: 3;
}

.hero-product .collage-wrap .screenshot-2 img {
    border-radius: 15px;
    overflow: visible;
}

body.page-template-template-energieausweise .hero-product .collage-wrap .screenshot-2 {
    max-height: initial;
    max-width: initial;
    /* object-fit: contain;
    aspect-ratio: 19/27; */
    width: 200px;
    height: 270px;
    left: 0;
}

@media (max-width: 768px) {
    .hero-product {
        padding: 30px 0 0 0;
        height: auto;
        justify-content: flex-start;
    }

    .hero-product h1 {
        width: 100%;
        font-size: 30px;
        padding-right: 0;
        margin-bottom: 0;
    }
    .hero-product p {
        width: 100%;
        padding-right: 0;
    }

    .hero-product .hero-text-wrapper {
        position: relative;
        height: auto;
    }

    .hero-product .collage-wrap {
        width: 100%;
        position: relative;
        height: 80vw;
    }

    .hero-product .collage-wrap .screenshot-1 {
        border: 8px solid white;
        right: -140px;
        border-radius: 20px;
    }
    .hero-product .collage-wrap .screenshot-2 {
        border: 12px solid white;
        left: 20px;
        bottom: -60px;
        border-radius: 20px;
    }
}