@font-face {
    font-family: 'dejavu_sans_lightextralight';
    src: url('fonts/dejavusans-extralight/dejavusans-extralight-webfont.eot');
    src: url('fonts/dejavusans-extralight/dejavusans-extralight-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/dejavusans-extralight/dejavusans-extralight-webfont.woff') format('woff'), url('fonts/dejavusans-extralight/dejavusans-extralight-webfont.ttf') format('truetype'), url('fonts/dejavusans-extralight/dejavusans-extralight-webfont.svg#dejavu_sans_lightextralight') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'dejavu_serif_condensedbook';
    src: url('fonts/dejavuserif-condensed/dejavuserifcondensed-webfont.eot');
    src: url('fonts/dejavuserif-condensed/dejavuserifcondensed-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/dejavuserif-condensed/dejavuserifcondensed-webfont.woff') format('woff'), url('fonts/dejavuserif-condensed/dejavuserifcondensed-webfont.ttf') format('truetype'), url('fonts/dejavuserif-condensed/dejavuserifcondensed-webfont.svg#dejavu_serif_condensedbook') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'dejavu_sans_condensedbook';
    src: url('fonts/dejavusans-condensed/dejavusanscondensed-webfont.eot');
    src: url('fonts/dejavusans-condensed/dejavusanscondensed-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/dejavusans-condensed/dejavusanscondensed-webfont.woff') format('woff'), url('fonts/dejavusans-condensed/dejavusanscondensed-webfont.ttf') format('truetype'), url('fonts/dejavusans-condensed/dejavusanscondensed-webfont.svg#dejavu_sans_condensedbook') format('svg');
    font-weight: normal;
    font-style: normal;
    /*unicode-range:U+0000-007F;*/
}

* {
    box-sizing: border-box;
}

.nobr {
    white-space: nowrap;
}

body {
    margin: 0;
    background-color: rgb(240, 240, 240);
    font-family: 'dejavu_sans_condensedbook', sans-serif;
    letter-spacing: 0.015em;
    font-family: 'dejavu_sans_lightextralight', sans-serif;
    letter-spacing: 0;
    font-size: 0.938em;
    /* 15px */
    line-height: 1.45;
}

body.v2 {
    background-color: white;
}

body.v2 .page {
    box-shadow: none;
    border: 1px solid #ccc;
}

h1, .h1 {
    font-family: 'dejavu_sans';
    /*** TODO: muss noch integriert werden ***/
    font-size: 1.125rem;/* 18px */
    
    font-family: 'dejavu_sans_condensedbook', sans-serif;
    font-weight: normal;
    margin-bottom: 1em;
    text-decoration: none;
}

h2 {
    font-size: 1em;
    font-weight: normal;
    text-decoration: underline;
    margin-bottom: 0.25em;
}

h2+ul {
    margin-top: 0.25em;
}

footer {
    font-family: 'dejavu_serif_condensedbook', serif;
    line-height: 1.28;
    ;
}

section + section{
    margin-top: 3.8em;
}

.page {
    max-width: 54em;
    box-shadow: 0 0 5px 5px rgba(128, 128, 128, 0.5);
    /* box-shadow an Tabs angeglichen: */
    box-shadow: 2px 2px 3px rgba(0, 0, 0, .4);
    background-color: white;
    margin: calc(2rem + 2.42rem) auto 2em;
}

.ce-banner{
    max-width: 54em;
    margin-left: auto;
    margin-right:auto;
}

.page>.inner {
    padding: calc(4em - 2.42rem) 6rem 3rem;
    min-height: 70em;
}

.logo {
    width: 12rem;
    height: auto;
    margin-bottom: 5rem;
}

.short-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 3rem;
}

.short-info>div:not(:first-child) {
    padding-left: 0.5em;
}

.short-info>div:not(:last-child) {
    padding-right: 0.5em;
}

@media(max-width:740px) {
    .short-info {
        flex-wrap: wrap;
    }
    .short-info.short-info>div {
        width: 50%;
        padding: 0;
        margin-bottom: 1.5rem;
    }
}

@media(min-width:631px) {
    .nav-button {
        display: none;
    }
    nav ul {
        list-style: none;
        padding-left: 0;
        display: flex;
        font-size: 0.85em;
        padding-right: 25px;
        position: relative;
        top: -2.25rem;
        overflow-y: hidden;
    }
    nav li {
        margin-right: 0.5em;
        flex-grow: 1;
    }
    nav a {
        position: relative;
        background: #ddd;
        background-image: none;
        background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ddd));
        background-image: -webkit-linear-gradient(top, #fff, #ddd);
        background-image: -moz-linear-gradient(top, #fff, #ddd);
        background-image: -ms-linear-gradient(top, #fff, #ddd);
        background-image: -o-linear-gradient(top, #fff, #ddd);
        background-image: linear-gradient(to bottom, #fff, #ddd);
        padding: .7em 0.7em;
        float: left;
        text-decoration: none;
        color: #444;
        text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
        /*
        -webkit-border-radius: 5px 0 0 0;
        -moz-border-radius: 5px 0 0 0;
        border-radius: 5px 0 0 0;
        */
        -moz-box-shadow: 0 2px 2px rgba(0, 0, 0, .4);
        -webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, .4);
        box-shadow: 0 2px 2px rgba(0, 0, 0, .4);
        width: 100%;
        white-space: nowrap;
        text-align: center;
    }
    nav a::after {
        content: '';
        position: absolute;
        z-index: 1;
        top: 0;
        right: -.5em;
        bottom: 0;
        width: 1em;
        background: #ddd;
        background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ddd));
        background-image: -webkit-linear-gradient(top, #fff, #ddd);
        background-image: -moz-linear-gradient(top, #fff, #ddd);
        background-image: -ms-linear-gradient(top, #fff, #ddd);
        background-image: -o-linear-gradient(top, #fff, #ddd);
        background-image: linear-gradient(to bottom, #fff, #ddd);
        -moz-box-shadow: 2px 2px 2px rgba(0, 0, 0, .4);
        -webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, .4);
        box-shadow: 2px 2px 2px rgba(0, 0, 0, .4);
        -webkit-transform: skew(10deg);
        -moz-transform: skew(10deg);
        -ms-transform: skew(10deg);
        -o-transform: skew(10deg);
        transform: skew(10deg);
        /*
        -webkit-border-radius: 0 5px 0 0;
        -moz-border-radius: 0 5px 0 0;
        border-radius: 0 5px 0 0;
        */
    }
    #current a,
    #current a::after {
        background: #fff;
        z-index: 3;
    }
}

@media(max-width:630px) {
    .wrapper {
        text-align: right;
    }
    .page {
        text-align: left;
        margin-top: 5px;
    }
    nav ul {
        margin-top: 0;
    }
    .nav-button {
        width: 50px;
        height: 50px;
        border-width: 0;
        margin-bottom: 5px;
    }
    .nav-button svg {
        width: 100%;
        height: auto;
    }
    .nav-button .icon-close {
        display: none;
    }
    .nav-button .icon-show {
        display: block;
    }
    .nav-button .icon-hidden {
        display: none;
    }
    .nav-button .icon-close {
        height: 75%;
        padding-top: 7px;
    }
    nav {
        position: absolute;
        left: 0;
        margin-top: 100px;
        display: none;
        width: 100%;
        transition: all 0.5s ease;
        transition-delay: 0s;
        background-color: white;
        z-index: 3;
    }
    nav.show-menu {
        display: block;
    }
    nav ul {
        flex-direction: column;
        margin-left: 0;
        width: 100%;
        padding-bottom: 15px;
        background-color: #fff;
        list-style-type: none;
        margin-left: 0;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    nav li {
        border-bottom: 1px solid #ccc;
        padding: 7px 15px;
    }
    nav a {
        color: black;
        text-decoration: none;
    }
    nav a:hover {
        font-weight: bold;
    }
}

header a,
article a,
footer a {
    color: #314b29;
}

.page>.inner {
    position: relative;
}

footer {
    border-top: 1px solid #314b29;
    color: #314b29;
    padding-top: 0.5em;
    margin-top: 2em;
    position: absolute;
    bottom: 0;
    margin-bottom: 5em;
    text-align: center;
    margin-right: 6rem;
}

article {
    margin-bottom: 9rem;
}

@media(max-width: 600px) {
    article {
        margin-bottom: 12rem;
    }
    .page>.inner {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    footer {
        margin-right: 2rem;
    }
}

figure{
    margin:0;
    margin-bottom: 2em;
}

figure img{
    max-width: 100%;
    height: auto;
}

.team img + img{
    display:none;
}

@media(min-width: 600px) {
    .team{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .team > *{
        width: 48%;
    }
    .ma{
        position: relative;
    }

    .ma img + img{
        position: absolute;
        display: block;
        top:0;
        left:0;
        opacity: 1;
        transition: 0.15s;
    }
    .ma img + img:hover{
        opacity: 0;
    }

}
