/************************************************/
/* 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: justify;
    margin: 0 0 24px;
    /* 24px */
}

a,
a:hover,
a:focus {
    color: #4e8494;
    text-decoration: none;
    outline-width: 0;
}

.orange {
    color: #e84e0f;
}

/************************************************/
/* 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: #4e8494;
}

nav ul li.active a,
nav ul li a:active {
    border-color: #e84e0f;
}

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 #4e8494;
}

/* 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%;
}

.hero-content h1 {
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    font-weight: 700;
    padding: 15px;
    font-size: 40px;
    line-height: 1.3;
}

#abstract {
    padding: 50px 0;
}

.foerder-logos {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-content: space-between;
}

.foerder-logos img {
    align-self: center;
    /* avoids stretching */
}

#ziele {
    background: #f0f0f0;
    padding: 50px 0;
}

img.pull-left {
    margin-right: 24px;
}

img.pull-right {
    margin-left: 24px;
}

#partner {
    padding: 50px 0 0;
}

#kontakt {
    padding: 50px 0;
    background: #4e8494;
    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-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: #e84e0f;
    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/kukomo_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;
    }

    .shrink #logo {
        margin: 0 auto;
        height: 0;
    }

    #logo,
    #logo img {
        transition: all .3s ease-in-out;
    }

    .shrink #logo img {
        height: 0;
        width: auto;
    }

}