/*
 * ***********************************************************
 * Popup Script
 * @copyright interaktiv manufaktur
 * ***********************************************************
 */

/* Popup-Init @see main.tmpl.php */


.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
}

.popup li {
    list-style: initial;
}

.popup .end-buttons {
    margin-top: 30px;
}


.popup .page-link,
.popup .button-close {
    color: #fff;
    text-decoration: none;
    padding: 12px 18px;
    font-size: 16px;
    background: #8cae41;
    max-width: 150px;
    position: absolute;
    bottom: 30px;
    font-weight: bold;
    border-radius: 8px;
}

.popup .page-link {
    right: 300px;
}

.popup .button-close {
    right: 100px;
}

.popup .inner-container {
    background: white;
    position: relative;
    width: auto;
    display: grid;
    margin-right: 20px;
    margin-left: 20px;
    overflow: auto;
    max-height: 100%;
}

.popup .left-container {
    grid-column: 1 / 1;
    width: 100%;
}

.popup .right-container {
    grid-column: 2 / 2;
    position: relative;
    width: 600px;
}

/*@media screen and (max-width: 1100px) {
    .popup .right-container {
        max-width: none;
    }

}*/

.popup .left-headline {
    min-height: 58px;
    min-width: 600px;
    background-color: #00524E;
    color: white;
    font-size: 25px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 25px;
    box-sizing: border-box;
}

.popup .right-headline {
    font-size: 22px;
    font-weight: bold;
    color: #6d6d6d;
    padding: 58px 100px 25px 50px;
}

.popup .info-text {
    font-size: 16px;
    color: #6d6d6d;
    padding-right: 100px;
    padding-left: 50px;
}

.popup .price {
    font-size: 18px;
    font-weight: bold;
    padding: 10px 100px 0 50px;
    margin-top: 20px;
}

.popup .close-overlay {
    position: absolute;
    top: 5px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #000;
    cursor: pointer;
}

.popup ul,
.popup ol {
    margin-bottom: 15px;
}

.overlay-header {
    margin-bottom: 20px;
}


@media screen and (max-width: 1250px) {
    .popup .inner-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .popup .right-headline {
        padding-top: 20px;
    }

    .popup .end-buttons {
        margin-top: 120px;
    }
}

@media screen and (max-width: 700px) {
    .popup .left-headline {
        /*max-width: 400px;*/
        min-width: 0;
    }

    .popup .page-link,
    .popup .button-close {
        width: 230px;
        padding: 10px;
        box-sizing: border-box;
    }

    .popup .right-container {
       width: 300px;
    }

    .popup .page-link {
        right: 110px;
        margin-bottom: 50px;
    }

    .popup .button-close {
        right: 110px;
        margin-top: 50px;
    }

    .popup .price,
    .popup .info-text,
    .popup .right-headline {
        padding-left: 25px;
        padding-right: 15px;
    }

    .popup .right-headline,
    .popup .price {
        padding-top: 20px;
    }

    .popup .price {
        margin-bottom: 50px;
    }

    .popup .left-container .image-wrapper {
        /*max-width: 300px;
        height: auto;*/
        display: none;
    }

    .popup .left-container img {
        width: 100%;
        height: 100%;
    }

    .popup .end-buttons {
        margin-top: 180px;
    }
}

@media screen and (max-width: 450px) {
    .popup .left-headline {
        /*max-width: 300px;*/
        min-width: 0;
    }


    .popup .right-container {
        /*max-width: 300px;*/
    }
}


@media screen and (max-height: 770px) {
    .popup .left-container {
        /*display: none;*/
    }

    .popup .page-link,
    .popup .button-close {
        bottom: 50px;
    }

    .popup .right-container {
        margin-top: 30px;
    }
}

@media screen and (max-height: 650px) {
    .popup .text-container {
        /*display: none;*/
        margin-top: 50px;
    }
}