@media only screen and (min-width: 1000px) {
    .indexpage body {
        min-height: 600px;
    }
}

#teaser_container {
    height: 68%;
    border-bottom: 1px solid #fff;
}

#teaser {
    position: relative;
    overflow: auto;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: local;
    background-repeat: no-repeat;
    image-rendering: optimizeQuality;
    -ms-interpolation-mode: bicubic;
    transform: rotate(.0001deg);
}

/*Disable video by default (show background-image)*/
#teaser video {
    display: none;
}

.no-js #content:hover span,
.no-touch #content:hover span,
#content:focus span {
    color: #ec0000;
}

@media (min-width: 1000px) {
    /*Hide scrollbars on video*/
    #teaser.teaser_video {
        overflow: hidden;
    }

    /*Enable video, center and simulate "cover"*/
    #teaser video {
        display: block;
        min-width: 100%;
        min-height: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        -webkit-transform: translate(-50%, -50%);
        -moz-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        -o-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        width: auto;
        height: auto;
        z-index: -1000;
        overflow: hidden;
    }

    /*!* Background-box teaser text *!*/
    /*#teaser .background-box {*/
    /*background-color: rgba(255, 255, 255, 0.3);*/
    /*padding: 10px;*/
    /*}*/
    #content h1 {
        font-size: 2.5rem;
        line-height: 2.5rem;
        padding-bottom: 0.6rem;
    }

    #content {
        line-height: 2rem;
        padding-top: 7rem;
        font-size: 1.5rem;
        position: absolute;
        top: 5%;
        left: 40%;
    }

    #boxes {
        height: 32%;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        -ms-box-sizing: border-box;
        box-sizing: border-box;
    }
}

#boxes .box_home {
    overflow: hidden;
}



#boxes .box_content h3 {
    font-size: 1.45rem;
    line-height: 1.45rem;
    padding-bottom: 0.5rem;
    padding-top: 0.4rem;
}

#box1, #box2, #box3, .box_home {
    image-rendering: optimizeQuality;
    -ms-interpolation-mode: bicubic;
    transform: rotate(.0001deg);
    font-size: 1.1rem;
    line-height: 1.1rem;
    position: relative;
    float: left;
    width: 33.333%;
    height: 100%;
    background-size: cover;
}

.no-js .box_home:hover .box_content p,
.no-touch .box_home:hover .box_content p,
.no-js .box_home:hover .box_content span,
.no-touch .box_home:hover .box_content span,
.no-js .box_home:hover .box_content strong,
.no-touch .box_home:hover .box_content strong,
.box_home:focus .box_content p,
.box_home:focus .box_content span,
.box_home:focus .box_content strong {
    color: #ec0000;
}

@media only screen and (min-width: 1000px) and (max-width: 1200px) {
    #boxes .box_content h3 {
        font-size: 1.05rem;
        line-height: 1.05rem;
        padding-bottom: 0.15rem;
    }

    #box1, #box2, #box3, .box_home {
        font-size: 0.8rem;
        line-height: 0.8rem;
    }
}

@media only screen and  (min-width: 1201px) and (max-width: 1400px) {
    #boxes .box_content h3 {
        font-size: 1.15rem;
        line-height: 1.15rem;
        padding-bottom: 0.3rem;
    }

    #box1, #box2, #box3, .box_home {
        font-size: 0.9rem;
        line-height: 0.9rem;
    }
}

@media only screen and (min-width: 1401px) and (max-width: 1900px) {
    #boxes .box_content h3 {
        font-size: 1.3rem;
        line-height: 1.3rem;
        padding-bottom: 0.5rem;
        padding-top: 0.2rem;
    }

    #box1, #box2, #box3, .box_home {
        font-size: 0.95rem;
        line-height: 0.95rem;
        position: relative;
        float: left;
        width: 33.333%;
        height: 100%;
        background-size: cover;
        background-attachment: local;
        background-repeat: no-repeat;
    }
}

#boxes #box1 {
    background-position: bottom left;
}

#boxes #box2 {
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    background-position: bottom center;
}

#boxes #box3 {
    background-position: bottom right;
}

#boxes .box_content {
    position: absolute;
    top: 50%;
    left: 50%;
}

@media (max-width: 999px) {

    #boxes {
        overflow: auto;
    }

    #box1, #box2, #box3 {
        display: block;
        width: 100%;
        min-height: 250px;
    }

    /** http://www.mademyday.de/css-height-equals-width-with-pure-css.html **/
    #teaser_container,
    #box1, #box2, #box3 {
        position: relative;
        width: 100%;
        height: 50px;
        content: "";
        display: block;
        padding-top: 50%; /* Fixed aspect ratio */
        border-bottom: none; /* All boxes should look the same on mobile */
        min-height: 250px;
    }

    #teaser {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        height: 100%;
        border-bottom: none;
    }

    #teaser #content {
        position: absolute;
        left: 1%;
        top: 2%;
        width: 99%;
        font-size: 1.3rem;
        line-height: normal;
    }

    /*Equal font-size for teaser and boxes in mobile view*/
    #teaser #content h1,
    #boxes .box_content h3 {
        font-size: 1.45rem;
        line-height: 1.45rem;
        padding-bottom: 0.5rem;
        padding-top: 0.4rem;
    }

    #teaser #content,
    #box1, #box2, #box3, .box_home {
        font-size: 1.1rem;
        line-height: 1.1rem;
    }

    /* Text background for better readability*/
    #teaser #content_container {
        overflow: hidden;
        position: relative;
        height: 100%;
        width: 100%;
    }

    #teaser #content .background-box:before {
        content: "";
        height: 100%;
        /*background-color: rgba(255, 255, 255, 0.3);*/
        background-color: rgba(0, 0, 0, 0.1);
        position: absolute;
        z-index: -1;
        width: 9999px;
        margin-left: -2000px;
        margin-top: -2%;
        padding-bottom: 5%;
    }

    /* Remove left/right border on mobile version */
    #boxes #box1, #boxes #box2, #boxes #box3 {
        border-right: none;
        border-left: none;
    }

    #boxes .box_content:before {
        content: "";
        height: 100%;
        background-color: rgba(0, 0, 0, 0.1);
        position: absolute;
        z-index: -1;
        width: 9999px;
        margin-left: -2000px;
        margin-top: -2%;
        padding-bottom: 5%;
    }

}

/*** IE 10 ***/
.ie10.indexpage body,
.ie10.indexpage #wrapper,
.ie10.indexpage footer {
    display: block;
}

.ie10.indexpage #wrapper {
    position: relative;
    top: -3rem;
    padding-top: 3rem;
    padding-bottom: 1.6rem;
}

.ie10.indexpage footer {
    height: 1.6rem;
    position: relative;
    top: -4.6rem;
}
