body {
    margin: 0;
    padding: 0;
    font-family: 'PT Sans', sans-serif;
    overflow: hidden;
    background: rgba(103, 149, 196, 1);
}
html,
body {
    height: 100%;
    width: 100%;
    overflow: auto;
}
h1 {
    font: small-caps 167% Arial, Helvetica, sans-serif
}
h4 {
    font-size: 1.2em;
    margin-bottom: 0.5em;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}
.quote {
    font-size: 20px;
    padding-bottom: 20px;
}
#container3d {
    margin: 0;
    padding: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    -webkit-perspective: 50vw;
    perspective: 50vw;
    overflow: hidden;
    position: fixed;
    background: linear-gradient(180deg, rgba(103, 149, 196, 1) 0%, rgba(103, 149, 196, 1) 48%, rgba(24, 35, 20, 1) 50%, rgba(25, 35, 20, 1) 100%);
}
#container3d.nightmode {
    background: -webkit-gradient(linear, left top, left bottom, color-stop(31%, #000), to(#9a9a9a));
    background: linear-gradient(180deg, #000 31%, #9a9a9a 100%);
}
#frame {
    width: 120px;
    margin-left: -60px;
    transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    -webkit-transform: translate3d(50vw, 0, 35vw);
    transform: translate3d(50vw, 0, 35vw);
}
.strip {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    /*animation: spin 25s infinite linear*/
}
.tile {
    position: absolute;
    border: none;
    width: 300px;
    height: 100vh;
    /* for lower resolution: 30px */
    background-image: url(pics/bg/bg_rotenfluh.jpg);
    background-size: 3000px;
    background-repeat: repeat-x;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.layer {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: url(pics/bg/bg_rotenfluh.jpg);
    transition: opacity 2s;
}
.bg {
    position: absolute;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
header {
    position: fixed;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
#logo_claim {
    display: flex;
    align-items: center;
    margin-right: 45px;
    margin-top: 15px;
}
#logo {
    width: 100px;
    order: 2;
}
div#claim {
    letter-spacing: 0.02em;
    color: #313131;
    font-size: 1.25em;
    transition: opacity 0.5s;
    margin-right: 20px;
}
div#language {
    margin-left: 25px;
}
#language span {
    background: #f7de2b;
    padding-right: 3px;
    padding-left: 3px;
}
div#language a,
div#language a:visited {
    cursor: pointer;
    text-decoration: none;
    color: #000;
}
.marker {
    position: absolute;
    top: 40vh;
    transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.marker a {
    letter-spacing: 0.1em;
    font-size: 15px;
    padding: 0.25em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    background: #F7DE2B;
    white-space: nowrap;
    cursor: pointer;
}
.placemark {
    position: absolute;
    -webkit-transform: scale(0.3, 0.3) translateZ(25px) rotateY(0deg);
    transform: scale(0.3, 0.3) translateZ(25px) rotateY(0deg);
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    top: -38px;
    left: -70px;
    opacity: 0.8;
    pointer-events: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.marker a:active {
    -webkit-box-shadow: 0px 0px 0px 2px #F7DE2B;
    box-shadow: 0px 0px 0px 2px #F7DE2B;
}
.marker:hover .placemark {
    -webkit-transform: scale(0.3, 0.3) translateZ(50px) rotateY(180deg);
    transform: scale(0.3, 0.3) translateZ(50px) rotateY(180deg);
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
}
main {
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    max-width: 1000px;
    margin-top: 60px;
    margin-left: 100px;
    margin-right: 250px;
    margin-bottom: 50px;
    background: #fff;
    -webkit-box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    pointer-events: all;
    -webkit-transition: none;
    transition: none;
    padding-bottom: 30px;
    z-index: 999;
}
h2 {
    font-weight: normal;
    font-size: 1em;
    letter-spacing: 0.1em;
}
h3 {
    font-size: 2em;
    line-height: 1.3em;
    font-weight: normal;
}
h3 span {
    /*
    background: #F7DE2B;
    -webkit-box-shadow: 7px 0 0 #F7DE2B, -7px 0 0 #F7DE2B;
    box-shadow: 7px 0 0 #F7DE2B, -7px 0 0 #F7DE2B;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    */
}
#content {
    margin: 50px;
    margin-top: 70px;
    max-width: 700px;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}
#content p {
    margin-bottom: 3px;
    margin-top: 7px;
}
#content img {
    width: 100%;
    margin-bottom: 20px;
    margin-top: 20px;
}
.close {
    color: #666;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 38px;
    cursor: pointer;
}
nav {
    padding-top: 25px;
    margin-left: 45px;
}
nav a {
    position: relative;
    color: #666;
    background: #e6e6e6;
    padding-top: 2px;
    padding-bottom: 1px;
    padding-left: 5px;
    padding-right: 5px;
    margin-right: 5px;
    letter-spacing: 0.05em;
    cursor: pointer;
    white-space: nowrap;
}
nav a.active {
    color: #000;
}
#main_nav a {
    font-size: 20px;
    padding-top: 5px;
    padding-bottom: 3px;
    padding-left: 8px;
    padding-right: 8px;
    line-height: 37px;
}
#main_nav a.active {
    background: #F7DE2B;
}
#sub_nav {
    margin-top: 5px;
}
#sub_nav a.active {
    background: #f7df2b;
}
#main_nav a:after {
    content: url(pics/placemark_small.png);
    position: absolute;
    left: -30px;
    top: -100px;
    -webkit-transform: scale(0.3, 0.3);
    transform: scale(0.3, 0.3);
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    opacity: 0;
}
#main_nav a:hover:after {
    top: -86px;
    opacity: 0.7;
}
#sub_nav a {
    display: none;
    line-height: 30px;
}
#content a {
    color: #666;
}
a.pagelink {
    text-decoration: underline;
}
section article {
    margin-bottom: 15px;
}
.rows {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.rows article {
    width: 46%;
    min-width: 270px;
}
p.box {
    background: #e4e4e4;
    padding: 10px;
}
div#scrollhint {
    position: absolute;
    width: 100%;
    text-align: center;
    margin-top: 70vh;
    pointer-events: none;
    transition: opacity 2s;
}
div#scrollhint span {
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 40px;
    font-size: 2.2em;
    padding: 10px;
    padding-left: 40px;
    padding-right: 40px;
    color: #000;
}
section.teaser {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
}
section.teaser article {
    flex-grow: 1;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    margin-right: 10px;
    padding-bottom: 10px;
    background: #e6e6e6;
    cursor: pointer;
}
#projectteaser:not(.mini) article,
#incubatorteaser:not(.mini) article {
    width: 40%;
    min-width: 300px;
}
section.teaser:not(.mini) article.teaser:hover {
    background-color: #F7DE2B;
}
#incubatorteaser article:hover > .teaserimage,
#projectteaser article:hover > .teaserimage {
    background-size: 200%;
}
#projectteaser article:first-of-type #incubatorteaser article:first-of-type {
    width: inherit;
}
.teaserimage {
    padding-bottom: 60%;
    background-size: 100%;
    background-position: center;
    transition: background-size 5s;
}
article.teaser h3 {
    font-size: 1.5em;
    margin: 0;
    margin-top: 10px;
    margin-right: 15px;
    margin-left: 15px;
}
article.teaser p {
    margin-right: 15px;
    margin-left: 15px;
    margin-top: 0;
}
section.teaser.mini {
    align-items: flex-start;
}
section.teaser.mini article.teaser {
    width: auto;
    flex-grow: 0;
    box-shadow: none;
    padding: 0;
}
section.teaser.mini article.teaser h3 {
    font-size: 20px;
    letter-spacing: 0.05em;
    color: #666;
    margin-left: 8px;
    margin-right: 8px;
    margin-top: 5px;
    margin-bottom: 3px;
}
section.teaser.mini article.teaser.active h3 {
    color: #000;
}
section.teaser.mini p,
section.teaser.mini article.teaser > div {
    display: none;
}
section.teaser.mini article.teaser.active {
    background-color: #F7DE2B;
}
#slidenavi {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -30px;
}
#slidenavi p {
    font-size: 50px;
    color: #666;
    cursor: pointer;
    margin: 0;
}
#slidenavi p.disabled {
    opacity: 0.2;
    cursor: inherit;
}
#dots div {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #e0e0e0;
    border-radius: 100%;
    margin: 10px;
    cursor: pointer;
}
#dots div.active {
    background: #F7DE2B;
    cursor: inherit;
}

/*
#newsteaser article:not(.active) h3 {
    margin-bottom: 10px;
}
*/

#newsteaser h3 {
    font-size: 22px;
}
#newsteaser h3 span {
    display: block;
    font-size: 15px;
    margin-right: 12px;
}
#newsteaser article {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
#newsteaser article.active {}
#newsteaser article .content {
    display: none;
}
#newsteaser article .content p {
    margin: 0;
}
#newsteaser article:not(.active) {
    padding-bottom: 0;
}
#newsteaser article.active .content {
    margin: 15px;
    display: block;
}
#newsteaser .teaserimage {
    width: 140px;
    height: 85px;
    flex-shrink: 0;
    padding-bottom: 0%;
    transition: none;
}
#newsteaser article.active .teaserimage {
    width: 100%;
    height: inherit;
    padding-bottom: 60%;
    transition: padding-bottom 0.25s;
}
dl {
    border-top: solid 1px;
    border-bottom: solid 1px;
    display: flex;
    flex-wrap: wrap;
}
dt,
dd {
    padding-top: 5px;
    padding-bottom: 5px;
    /* border-bottom: solid 1px #999; */
}
dt {
    width: 10%;
    min-width: 90px;
    flex-grow: 1;
    font-weight: bold;
}
dd {
    width: 80%;
    flex-grow: 1;
    margin: 0;
    border-bottom: solid 1px #c1c1c1;
}
#logos {
    display: flex;
    align-items: flex-end;
}
#logos > img {
    width: 120px;
    margin-right: 40px;
    margin-bottom: 10px;
}
#social {
    margin-top: 20px;
    display: flex;
    align-items: center;
}
#social img {
    margin: 0;
    opacity: 0.6;
    margin-right: 15px;
}
#social a:first-child img {
    width: 40px;
}
#social a:last-child img {
    width: 100px;
    margin-top: 5px;
}
img.small {
    max-width: 350px;
}
hr {
    border: none;
    background: #cccccc;
    height: 1px;
}
@media (max-width:450px) {
    #newsteaser article {
        flex-wrap: wrap;
        padding: 10px;
    }
    #newsteaser h3,
    #newsteaser p {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}
section.details {
    display: none;
}
@media (max-width:1100px) {
    body {
        overflow: auto;
    }
    #bg_mobile {
        width: 100%;
        height: 100%;
        position: fixed;
        background-image: url(pics/bg/bg_rotenfluh.jpg);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: top;
    }
    div#scrollhint {
        display: none;
    }
    #container3d {
        display: none;
    }
    #container {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    header {
        position: relative;
    }
    div#claim {
        opacity: 1!important;
    }
    main {
        -webkit-transition: none;
        transition: none;
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
        order: 2;
        -webkit-transform: scaleY(1)!important;
        transform: scaleY(1)!important;
        max-width: none;
        margin-right: 50px;
    }
    .close {
        display: none;
    }
}
@media (max-width:800px) {
    .rows {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    .rows article {
        width: auto;
        min-width: inherit;
    }
    main {
        margin-left: 50px;
        margin-top: 15px;
    }
    header {
        display: inherit;
    }
    #logo_claim {
        flex-direction: column;
        margin-right: 0;
    }
    #logo {
        order: 1;
        margin-top: 10px;
    }
    div#claim {
        order: 2;
        margin: 15px;
        text-align: center;
    }
    div#language {
        position: absolute;
    }
    #bg_mobile {
        top: 80px;
    }
}
@media (max-width:600px) {
    main {
        margin-left: 10px;
        margin-right: 10px;
    }
    #content {
        margin: 18px;
        margin-top: 30px;
    }
    nav {
        margin-left: 13px;
    }
    #content #sub_nav {
        margin-top: -8px;
    }
}
