@import "fonts.css";

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
}

.image-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.image-wrapper {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-position: center;
    background-repeat: repeat-x;
    background-size: contain;
}
.image-wrapper img {
    height: 100%;
    /* FIX "sticking to top" images */
    padding-top: 10%;
    width: auto;
    max-width: 100%;
    object-fit: scale-down;
    object-position: bottom;
}

.image-wrapper.melodyne{
    justify-content: flex-end;
    background-image: image-set(
        url("../images/Startseite-melodyne-HG.png") 1x,
        url("../images/Startseite-melodyne-HG@2x.png") 2x
    );
}
.image-wrapper.melodyne img{
    object-position: bottom right;
}

.image-wrapper.tonalic{
    justify-content: flex-start;
    background-image: image-set(
        url("../images/Startseite-tonalic-HG.png") 1x,
        url("../images/Startseite-tonalic-HG@2x.png") 2x
    );
}
.image-wrapper.tonalic img{
    object-position: bottom left;
}

/* // Images below each other on small devices: */
/*
@media (max-width: 700px) {
    .image-container {
        flex-direction: column;
    }

    .image-wrapper {
        width: 100%;
        height: 50vh;
    }

    .image-wrapper img {
        height: 50vh;
        padding-top: 5vh;
    }
}
*/


/*** Text-Content ***/
div.content{
    position: absolute;
}
div.content.content-top{
    top: 8%;
}
div.content.content-bottom{
    bottom: 4.3%;
    width:46%;
    margin: 0 2%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
div.content.content-bottom.content-left{
    flex-direction: row;   
}
div.content.content-bottom.content-right{
    flex-direction: row-reverse;   
}
div.content.content-top h1 {
    margin-top: 0;
    font-family: 'HelveticaNeueW01-Thin';
    font-weight: normal;
    /*font-size: 32.5px;*/  /* Melodyne-Default */
    font-size: 3vmin;  /* Wrapper-Page-Default */
    line-height: 120%;
    margin-bottom: 13.5%;
}
div.content.content-top .text {
    font-family: 'Trade Gothic W01 Light';
    font-weight: lighter;
    /*font-size: 16px;*/ /* Melodyne-Default */
    font-size: 1.5vmin; /* Wrapper-Page-Default */
    line-height: 150%;
    margin-bottom: 126px;
    top: 80px;
}
div.content.content-top .text strong{
    font-family: 'Trade Gothic W01 Bold 2';
    font-weight: normal;
}


div.content.content-top.content-left{
    color: black;
    left: 11.5%;
    width: calc(50% - 20%);
}
div.content.content-top.content-right{
    color: white;
    left: calc(50% + 11.5%);
    width: calc(50% - 20%);
}
div.content.content-bottom.content-left{
    left: 0%;
}
div.content.content-bottom.content-right{
    left: 50%;
}
div.content.content-bottom .text{
    color: black;
    float: left;
    font-size: 12.5px;
    line-height: 130%;
    font-family: 'Trade Gothic W01 Light';
    font-weight: lighter;
    width:50%;
}
div.content.content-bottom.content-left button{
    background-color: #ed7420;
}
div.content.content-bottom.content-right button{
    background-color: black;
}
div.content.content-bottom.content-left .text{
    text-align: right;
}
div.content.content-bottom.content-right .text{
    text-align: left;
}
div.content.content-bottom button{
    color: white;
    outline: 0;
    cursor: pointer;
    min-width: 162px;
    height: 34px;
    padding: 4px 12px;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 0;
    border-radius: 38px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    font-family: "HelveticaNeueW01-75Bold";
}
/*
@media (max-width: 700px) {
    div.content.content-bottom{
        display: block;
    }
}
*/




/* Additional Optimizations (note: implemented via JS as aspect-ratio or orientation relates to the device, not the window */
/* Wider than tall */
body.wide div.content.content-top h1 {
    font-size: 3vh;
}
body.wide div.content.content-top .text {
    font-size: 1.5vh;
}
/* Taller than wide */
body.tall div.content.content-top h1 {
    font-size: 2.6vh; 
}
body.tall div.content.content-top .text {
    font-size: 1.48vh;
}
body.tall .image-wrapper img {
    padding-top: 0;
}
body.tall div.content.content-bottom{
    bottom: 1.5%;
}
/* DPR-2 */
body.dpr-2.wide .image-wrapper img {
    padding-top: 45vh;
    height: 70vh;
}
@media (max-width: 700px) {
    body.dpr-2.tall div.content.content-top h1 {
        font-size: 2.35vh;
    }
    body.dpr-2.tall div.content.content-top .text {
        font-size: 1.35vh;
    }
    body.tall div.content.content-bottom{
        flex-direction: column;
        bottom: .5%;
    }
    body.tall div.content.content-bottom .text{
        width: 98%;
        text-align:center;
        padding-top: 1.2%;
    }
    body.tall div.content.content-bottom .text br{
        display: none;
    }
}
@media (max-width: 620px) {
    body.tall div.content.content-bottom .text{
        width: 98%;
        font-size: 2vw;
    }
}

@media(orientation: portrait) and (max-aspect-ratio: 1) and (max-width: 390px){
    body.tall .image-wrapper img{
        margin-top: -17vh;
    }
}
@media(orientation: landscape) and (min-aspect-ratio: 1) and (max-height: 390px){
    div.content.content-top.content-left{
        left: 2%;
        width: calc(50% - 4%);
    }
    div.content.content-top.content-right{
        left: calc(50% + 2%);
        width: calc(50% - 4%);
    }
    body.wide div.content.content-top h1 {
        margin-bottom: 2%;
        font-size: 4.5vmin;
    }
    body.wide div.content.content-top .text {
        font-size: 2.5vh;
    }
}