@font-face {
    font-family: Mate;
    src: url("../fonts/Mate-Regular.ttf") format("truetype");
}

* {
    margin: 0;
    padding: 0;
    border: 0;
    text-decoration: none
}

html {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Mate', serif;
    font-size: 19px;
    line-height: 25px;
    color: #636362;
    background-color: #fffffe;
}

img.logo {
    width: 100%;
}
td.logo {
    width: 160px;
}


.content, .frame-type-header {
    margin: 0 auto;
    max-width: 1245px;
    /*width: 100%;*/
    padding-bottom: 45px;
}
.content.nomarginbottom {
    padding-bottom: 0;
}
.content.paddingsmall {
    padding-bottom: 30px;
}
.content.paddinglarge {
    padding-bottom: 70px;
}
.text-image {
    display:flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.text-image.margintop {
    margin-top: 50px;
}
div.image {
    width: 430px;
}
div.image img {
    width: 100%;
    display: block;
}
div.image.stiftung img {
    margin-bottom: 25px;
}
div.image.padding {
   padding-left: 70px;
}

div.half {
    width:50%;
}
div.half.padding {
    padding: 0 25px 0 25px;
}
div.half.margintop {
    margin-top: 300px;
}
div.half.margintop2 {
    margin-top: 250px;
}
.overlap {
    margin-bottom: -110px;
}

.vertical-space {
    display:flex;
    flex-direction: column;
    justify-content: space-between;
}

section.header {
    padding: 30px 0 15px 0;
}
table.header {
    width: 100%;
}
table.header td {
    vertical-align: bottom;
}

nav.header {
    padding-left: 150px;
    padding-bottom: 10px;
}
nav.header a {
    padding-left:7px;
    padding-right:7px;
}
nav.header a:first-child {
    padding-left:0;
}
nav.header a.active {
    color: #e4042d;
}
nav.header a:hover {
    text-decoration:none;
}

a {
    font-family: 'Mate', serif;
    color: #636362;
}
a:hover, .content-table-text a {
    color:  #e4042d;
}
nav.header a {
    font-size: 20px;
}
section.visual {
    width: 100%;
    display: flex;
    justify-content: center;

    margin-bottom: 75px;
}
section.visual.smallmargin {
    margin-bottom: 45px;
}

section.visual img {
    width: 100%;
}

section.visual div.center {
    position: relative;
    display: inline-block;
}


h1 {
    margin: 25px 0 45px 35px;
    font-weight: normal;
    font-size: 60px;
    line-height: 65px;
}
h1.stiftung {
    margin: 0 0 45px -135px;
    font-size: 45px;
    line-height: 50px;
}
h1.kontakt {
    margin: 0 0 45px 0;
    font-size: 45px;
    line-height: 50px;
}
h1.impressum {
    font-size: 45px;
    line-height: 50px;
    margin: 30px 25px 25px 25px;
}
h2 {
    margin: 0;
    font-weight: normal;
    font-size: 45px;
    line-height: 50px;
}
h3 {
    margin: 0 0 10px 0;
    font-weight: normal;
    font-size: 30px;
    line-height: 35px;
}
h2.slogan {
    color:  #e4042d;
    width: 350px;
    padding-right: 150px;
}
.red {
    color: #e4042d;
}
div.slogan {
    display:flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: -100px;
    padding-bottom: 130px;
}
div.intro {
    width: 400px;
    margin-left: 200px;
}
div.vita {
    width: 450px;
    margin: 120px 20px 20px 100px;
}
div.vita.stiftung {
    margin-bottom: 0;
}

div.vita img {
    margin: 90px 0 30px -120px;
}

div.vita.nomargintop {
    margin-top:0;
}
.space-below {
    padding-bottom: 60px;
}
.space-below2 {
    padding-bottom: 40px;
}
div.line {
    width: 100%;
    height: 1px;
    background-color: #636362;
    margin-bottom: 15px;
}
p {
    padding-bottom: 15px;
}
div.icon {
    display:flex;
    flex-wrap: wrap;
    justify-content: center;
}
div.icon img {
    height: 50px;
}
div.footer {
    background-color: #888787;
    color:#fff;
    display:flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding:45px 245px 100px 170px;
    font-size: 17px;
}
div.footer-block {
    display:flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}
div.footer-block p:first-child{
    padding-right: 90px;
}
div.footer a, div.footer a:hover {
    color:#fff;
    font-size: 17px;
}
div.footer-wrap {
    width: 100%;
    background-color: #888787;
}


.visual-teaser {
    position: absolute;
    top: 55%;
    right: 20%;
    padding: 23px 23px 23px 23px;
    background-color: rgba(228,4, 45, 0.7);
    z-index: 5000;
}
.visual-teaser p {
    font-size: 45px;
    color: #fff;
    line-height: 50px;
    opacity: 1;
}
.visual-teaser a {
    color:#fff;
    padding-left: 50px;
}

.rslides {
    position: relative;
    list-style: none;
    overflow: hidden;
    width: 100%;
    padding: 0;
    margin: 0;
}

.rslides_nav {
    width: 24px;
    height: 24px;
    border-radius: 0;
    position: absolute;
    top:45%; /*450px;*/
    border-style: solid;
    border-width: 0 2px 2px 0;
    border-color: transparent #fff #fff;
    display: inline-block;
    outline: none;
    z-index: 4000;
}

.rslides_nav.next {
    right: 62px;
    /*margin-top: -12px;*/
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
.rslides_nav.prev {
    left: 62px;
    right: auto;
    -webkit-transform: rotate(132deg);
    transform: rotate(132deg);
}

a.pfeil.top {
    right: 40px;
    left: auto;
    position: fixed;
}
a.pfeil {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 20px;
    z-index: 1300;
    width: 36px;
    height: 36px;
    text-align: center;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    background-color: #000;
    font-weight: normal;
    font-size: 20px;
    color: #fff;
    opacity: 0.4;
}
a.pfeil.top i {
    padding-top: 6px;
}

.nav-icon {
    display: none !important;
}

#debug {
    background-color:yellow;
    border:1px solid black;
    position: absolute;
    top:5px;
    left:5px;
    font-size:11px;
    padding: 0 5px 0 5px;
    z-index: 50000;
    display: none;
}

@media only screen and (max-width:1150px) {
    section.visual {
        margin-bottom: 20px;
    }
    h1 {
        font-size: 40px;
        line-height: 45px;
    }
    .visual-teaser p {
        font-size: 25px;
        line-height: 30px;
    }
    div.intro {
        margin-left: 35px;
    }
    div.footer {
        padding: 45px 35px 100px 35px;
    }

    td.logo {
        padding-left: 25px;
    }
    div.slogan {
        padding-bottom: 70px;
    }
    .content h2 {
        font-size: 35px;
        line-height: 45px;
        margin-left: 35px;
    }
    section.visual.smallmargin {
        margin-bottom: 25px;
    }
    h1.stiftung {
        margin: 0 0 45px 0;
        font-size: 40px;
        line-height: 45px;
    }
    div.image.padding {
        padding-left: 35px;
    }
    div.vita {
        /*width: 450px;*/
        margin: 120px 20px 20px 30px;
    }
    div.half.margintop {
        margin-top: 70px;
    }
    div.half.margintop2 {
        margin-top: 70px;
    }
}

@media only screen and (max-width:890px) {
    h1 {
        font-size: 30px;
        line-height: 35px;
        margin: 15px 0 25px 20px;
    }
    div.intro {
        margin-left: 25px;
    }
    div.image.home {
        width: 40%;
    }
    h2.slogan {
        padding-right: 30px;
        width:auto;
    }
    div.vita {
        width: auto;
    }
    h1.stiftung {
        margin: 0 0 25px 0;
        font-size: 30px;
        line-height: 35px;
    }
    .content h2 {
        margin-left: 25px;
    }
    div.image.padding {
        padding-left: 25px;
    }
    div.image {
        width: auto;
    }
    div.stiftung img {
        max-width: 100%;
    }
    div.vita img {
        margin: 40px 0 10px -120px;
    }
}
@media only screen and (max-width:765px) {
    .text-image {
        display: block;
    }
    div.intro {
        width: auto;
        margin-right:20px;
    }
    div.image.home {
        margin: 20px 20px 0 20px;
        width: auto;
        max-width: 400px;
    }
    div.slogan {
        display: block;
        margin-top: 30px;
        padding-bottom: 30px;
    }
    .rslides_nav.prev {
        left: 15px;
    }
    .rslides_nav.next {
        right: 15px;
    }
    div.half.margintop {
        margin-top: 30px;
    }
    div.half {
        width: 100%;
    }
    div.half.padding {
        width: calc(100% - 50px);
    }
    div.image.stiftung {
        padding: 0 20px 0 20px;
    }
    div.image.stiftung img {
        max-width: 400px;
        width: 100%;
    }
    .text-image.margintop {
        margin-top: 25px;
    }
    div.vita img {
        margin: 20px 0 10px 0;
        max-width: 400px;
        width: 100%;
    }
    .content.paddinglarge {
        padding-bottom: 30px;
    }
    div.half.margintop2 {
        margin-top: 30px;
    }
    h1.stiftung {
        margin: 25px 0 15px 0;
    }
    h1.kontakt {
        font-size: 30px;
        line-height: 35px;
        margin: 0 0 15px 0;
    }
    h1.impressum {
        font-size: 30px;
        line-height: 35px;
    }
    .nav-icon {
        color: #636362;
        position: absolute;
        right: 21px;
        top: 21px;
        font-size: 40px !important;
        cursor: pointer;
        display: inline-block !important;
    }
    nav.header {
        display: none;
        position: absolute;
        right: 0;
        top: 71px;
        background-color: #fff;
        padding: 0 10px 10px 25px;
        max-width: 300px;
        z-index: 10000;
    }
    span.separator {
        display: none;
    }
    nav.header a {
        display:block;
        width: 100%;
        padding-left: 0;
        line-height: 40px;
        fong-size: 30px;
    }
    .visual-teaser {
        padding: 10px 10px 10px 10px;
        top: 50%;
        right: 10%;
    }
    .visual-teaser p {
        font-size: 19px;
        line-height: 20px;
        padding-bottom: 5px;
    }
    .visual-teaser a {
        color: #fff;
        font-size: 19px;
        padding-left: 0;
    }
    .content {
        padding-bottom: 15px;
    }
    div.footer {
        padding: 15px 30px 20px 30px;
    }
}