/************************************************/
/* General */
/************************************************/
* {
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5; /* 24px */
    background: white;
    color: #3a3a3a;
}

p {
    text-align: left;
    margin: 0 0 24px; /* 24px */
}

a, a:hover, a:focus {
    color: black;
    text-decoration: none;
    outline-width: 0;
}

/************************************************/
/* Header */
/************************************************/
header {
    padding: 0;
    position: fixed;
    top: 0;
    background: #fff;
    width: 100%;
    transition: all .3s ease-in-out;
    box-shadow: 0 1px 1px 1px rgba(0,0,0,.18);
    z-index: 2;
}

nav ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
}

nav ul li {
    line-height: 120px;
    transition: all .3s ease-in-out;
}

nav ul li a {
    display: block;
    padding: 0 15px;
    margin-left: 10px;
    height: 120px;
    border-top: 5px solid white;
    transition: all .3s ease-in-out;
}

nav ul li a:hover, nav ul li a:focus {
    border-color: #818181;
}

/* #4e8494 */

nav ul li.active a, nav ul li a:active  {
    border-color: #EC6B62;
}

header.shrink {
    /* height: 80px;*/
}

header.shrink nav ul li a {
    line-height: 80px;
    height: 80px;
    border-top-width: 3px;
}

#logo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

img {
    max-width: 100%;
}

hr {
    border-top: 3px solid #818181;
}

/* Hero
 * --------------------------- */
.hero {
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    margin-top: 120px;
}

.hero-content {
    color: white;
    text-align: center;
    border: 4px solid white;
    max-width: 80%;
    background: rgba(0,0,0,.3)
}

.hero-content h1 {
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    font-weight: 700;
    padding: 15px;
    font-size: 40px;
    line-height: 1.3;
}

img.pull-left {
    margin-right: 24px;
}

img.pull-right {
    margin-left: 24px;
}

.foerder-logos {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-content: space-between;
}

.foerder-logos img {
    align-self: center; /* avoids stretching */
}


#motivation {
	background: #f0f0f0;
    padding: 50px 0;
}

#ziele {
    background: #ffffff;
    padding: 50px 0;
}

#nutzen {
    background: #f0f0f0;
    padding: 50px 0;
}

#partner {
    background: #ffffff;
    padding: 50px 0 0;
}

#kontakt {
    padding: 50px 0;
    background: #818181;
    color: white;
}

#kontakt a, #kontakt a:hover {
    color: white;
    text-decoration: underline;
}


#partner h2 {
    margin-bottom: 50px;
}

.partners div {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-content: space-between;
}

.partners div a {
    flex-grow: 1;
    text-align: center;
}

.partners div img {
    margin: 0 15px 50px;
    align-self: center; /* avoids stretching */
}

.modal-header h3 img {
	margin-right: 24px;
}
.modal-header h3 span {
	vertical-align: bottom;
}

.modal-footer .close {
    font-size: inherit;
    font-weight: normal;
}

/* Footer
 * --------------------------- */
footer {
    background: white;
    border-top: #4e8494 solid 15px;
    margin: 0;
}

footer .partners {
    position: relative;
    padding: 40px 0;
}

#bmbf {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.copyright {
    padding: 10px 0;
    text-align: center;
    background: #4e8494;
    color: #FFF;
    font-size: 80%;
}


/* Responsive: Portrait tablets and up */
@media screen and (max-width: 768px) {

    header .container {
        padding: 0;
    }

    #logo {
        position: relative;
        display: block;
        margin: 15px auto;
        text-align: center;
        transform: translateY(0%);
        max-width: 25%;
    }

    nav ul {
        justify-content: space-around;
    }

    nav ul li a{
        margin: 0;
        line-height: 80px;
        height: 80px;
    }

    header.shrink nav ul li a {
        line-height: 60px;
        height: 60px;
        border-top-width: 2px;
    }

    .hero {
        background: url("img/hochfein_intro_mobile.jpg") no-repeat center/cover;
        margin-top: 120px;
    }

    .hero-content h1 {
        font-size: 30px;
        padding: 10px;
        margin: 0;
    }

    .modal-header h3 img {
        float: none !important;
        display: block;
        margin: 0 auto;
    }

    .modal-header h3 {
        text-align: center;
    }

}

/* Responsive: Handy vertical */
@media screen and (max-width: 580px) {

    .hero {
        min-height: 80vh;
    }

    #ziele p img {
        display: block;
        float: none !important;
        margin: 0 auto 12px;
    }

    /* Hide Logo, when shrinked header */

    /*
    .shrink #logo img {
        height: 0;
        width: auto;
    }

    .shrink #logo {
        margin: 0 auto;
        height: 0;
    }

    #logo, #logo img {
        transition: all .3s ease-in-out;
    }

    */

}