/*@import url("https://fonts.googleapis.com/css?family=K2D");*/
@import url("https://fonts.googleapis.com/css?family=K2D");
@import url("https://fonts.googleapis.com/css?family=Roboto Slab");
@import url("https://fonts.googleapis.com/css?family=Montserrat");

* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}


html {
    background-image: url("bilder/wasser.png"), url("bilder/header_back.jpg");
}

body {
    font-family: Montserrat;
    font-weight: normal;
    font-size: 1 rem;
    /*2.4vmin;*/
    color: #434343;
    background: rgba(220, 220, 220, 0.7);
    width: 80%;
    margin: auto;
}

main {
    padding: 0 1rem 1rem 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: K2D, Arial, Helvetica, sans-serif;
    /* Roboto Slab */
    font-weight: 600;
    color: #46b354;
}

h1 {
    font-size: 2.2 rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #eaeaea;
    margin: 1rem;
}

h2 {
    font-size: 1.8 rem;
    padding-top: 120px;
    margin: 1rem 0 1rem 0;
}

h3 {
    font-size: 1.6 rem;
    margin: 1rem 0 1rem 0;
}

p {
    line-height: 1.5 rem;
}

footer {
    text-align: center;
    font-size: 0.8 rem;
    font-style: normal;
    letter-spacing: 0.125 rem;
    color: white;
    background-color: #67c282;
    border-top: solid 2px #949596;
}

/***
*
* Navigation Definitions
*
***/

input#hamburger {
    display: none
}


#logo {
    width: 80%;
    position: fixed;
}

nav {
    background-color: #1faa12;
    border-top: solid #949596;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-evenly;
}

nav li a {
    display: block;
    color: rgb(235, 230, 230);
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-weight: 900;
}

nav li a:hover {
    background: rgba(137, 199, 180, 0.95);
    color: rgba(55, 55, 55, 0.9);
}

.sticky_nav {
    background-image: url("bilder/header_back.jpg");
    position: fixed;
    top: 0;
    /*background: rgba(220, 220, 220, 0.8);*/
    width: 80%;
    margin: 0;
}



/***
*
* Seitenstrukturierung
*
***/

.pageSection {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-evenly;
    margin: 5px 1rem 1rem 1rem;
}

.articles {
    display: flex;
    flex-direction: row;
}

.articleLeft {
    width: 45%;
    margin-right: 2rem;
}

aside {
    width: 45%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}


.introPics {
    height: auto;
    max-width: 100%;
    animation-duration: 2s;
    animation-name: scalein;
	animation-timing-function: ease-in; /*linear */
    padding: 5px;
}

.cardPics {
    height: auto;
    max-width: 100%;
    animation-duration: 2s;
    animation-name: slidein;
    padding: 5px;
    border-width: 4px;
    border-style: outset;
    border-color: #659c6e;
}


@media (max-device-width: 960px) , (max-width: 960px) {

    /**
Dieser Teil kommt erst zum tragen, wenn relativ nur die oben angegebenen 960px 
zur Verfügung stehen
**/
    body {
        width: 95%;
    }

    .sticky_nav {
        width: 95%;
    }

    .articles {
        flex-direction: column;
    }

    .articleLeft {
        width: 99%;
    }

    aside {
        flex-direction: row; 
        width: 100%;
        flex-wrap: wrap;
    }

    .introPics {
        max-width: 45%;
        height: auto;
    }

    label.hamburger {
        background-color: #1faa12;
        display: block;
        width: 75px;
        height: 50px;
        position: relative;
        margin-left: auto;
        margin-right: auto;
        border-radius: 4px;
        transition: border-radius .5s;
    }

    .line {
        position: absolute;
        left: 10px;
        height: 4px;
        width: 55px;
        background: #fff;
        border-radius: 2px;
        display: block;
        transition: 0.5s;
        transform-origin: center;
    }

    .line:nth-child(1) {
        top: 12px;
    }

    .line:nth-child(2) {
        top: 24px;
    }

    .line:nth-child(3) {
        top: 36px;
    }


    #hamburger:checked+.hamburger .line:nth-child(1) {
        transform: translateY(12px) rotate(-45deg);
    }

    #hamburger:checked+.hamburger .line:nth-child(2) {
        opacity: 0;
    }

    #hamburger:checked+.hamburger .line:nth-child(3) {
        transform: translateY(-12px) rotate(45deg);
    }

    /**
    Bis hierhin dienen die obigen Anweisungen nur der Darstellung des Hambugers
    erst die unten stehende Anweisung läßt das Menü erscheinen, wenn der Hamburger
    angeklickt wurde
    **/

    #hamburger:checked~* ul {
        max-height: 800px;
    }

    .navBlock {
        width: 95%;
        top: 10px;
    }

    .navBlock li {
        list-style-type: none;
    }

    .navBlock ul {
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: 1s;
        opacity: 0.9;
        width: 95%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
    }

    .navBlock a {
        color: #fff;
        vertical-align: middle;
        text-decoration: none;
        padding-top: 15px;
    }

    aside {
        flex-direction: column;
        width: 100%;
    }

    .introPics {
        max-width: 100%;
        height: auto;
    }
}

/**
Kier kommen noch ein paar nette Definitionen für die neuen CSS-Animations (ohne js)
**/
@keyframes slidein {
    from {
        margin-top: -200%;
    }

    to {
        margin-top: 0px;
    }
}

@keyframes scalein {
    0% {
        transform: scale(.01);
    }

    100% {
        transform: scale(1.0);
    }
}