/* Iframe Overlays */
.iframe-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 28, 48, 0.7); /* dunkler, halbtransparenter Hintergrund */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.iframe-container {
    background: #fff;
    width: 100%;
    height: auto;
    min-width: 360px;
    max-width: 90vw;
    max-height: 80vh;
    display: none;
    overflow-x: hidden;
    overflow-y: scroll;
    padding: 30px 10px;
}

.iframe-container-configurator {
    background: #fff;
    padding: 20px 10px 20px 10px;
    width: 100%;
    min-width: 600px;
    min-height: 700px;
    height: auto;
    max-height: 90vh;
    display: none;
    overflow-y: scroll;
}

#iframe-eturnity-configurator {
    height: 750px;
    width: 100%;
}

#iframe-eturnity-rechner,
#iframe-eturnity-configurator {
    display: none;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
}

@media screen and (min-width: 769px) {
    .iframe-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(8, 28, 48, 0.7); /* dunkler, halbtransparenter Hintergrund */
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    .iframe-container {
        background: #fff;
        width: 100%;
        height: auto;
        min-height: 500px;
        max-width: 35vw;
        max-height: 85vh;
        display: none;
        overflow-x: hidden;
        overflow-y: scroll;
        padding: 30px 20px;
    }

    .iframe-container-configurator {
        background: #fff;
        padding: 20px 10px;
        width: 100%;
        min-height: 700px;
        max-width: 45vw;
        height: auto;
        display: none;
        overflow-y: scroll;
    }

    #iframe-eturnity-rechner,
    #iframe-eturnity-configurator {
        display: none;
    }

    .iframe-container iframe {
        width: 100%;
        height: 100%;
    }
}