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

input#hamburger {
    display: none
}


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);
}


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

    label.hamburger {
        background-color: #1faa12;
        display: block;
        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;
    }

}
