#navi {
    position: relative;
    z-index: 2;
    margin-top: 1%;
}

.toggle,
[id^=drop]
{
    display: none;
}

.menu-toggle {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);

}
.menu-toggle:before{
    content: url(../images/nav-mobil.png);
}

nav {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

nav:after {
    content: "";
    display: table;
    clear: both;
}

.menu{
    background-color: rgba(58, 79, 141, 0.9);
}

/* Removing padding, margin and "list-style" from the "ul",
 * and adding "position:relative" */

nav ul {
    float: right;
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
}

/* positioning whole nav */
nav > ul {
    margin-top: 43px;
}

/* Positioning the navigation items inline */
nav ul li {
    margin: 0px;
    display: inline-block;
    float: left;
}

/* Styling the links */
nav > ul li a {
    display: block;
    padding: 14px 20px;
    color: #FFF;
    text-decoration: none;
    font-size: 1.4em;
}

nav ul li ul li:hover {

}

/* Background color change on Hover */
nav a:hover {
}

/* Hide Dropdowns by Default
 * and giving it a position of absolute */
nav ul ul {
    display: none;
    position: absolute;
    /* has to be the same number as the "line-height" of "nav a" */
    top: 47px;
}

/* Display Dropdowns on Hover */
nav ul li:hover > ul {
    display: inherit;
}

/* Second and more Tier Dropdown */
nav ul li:last-child ul{
}
nav ul ul li {
    float: none;
    display: list-item;
    position: relative;
    background-color: #eeeeee;
}

nav ul ul li a {
    color: #333333;
    text-align: left;
    padding: 8px 20px;
}

@media only screen and (min-width: 1350px){
    nav ul ul li a {
        padding-right: 60px;
    }
}

nav ul ul li a:hover {
    color: #999999;
}



/* Second, Third and more Tiers
 * We move the 2nd and 3rd etc tier dropdowns to the left
 * by the amount of the width of the first tier.
*/
nav ul ul ul li {
    position: relative;
    top: -60px;
    /* has to be the same number as the "width" of "nav ul ul li" */
    left: 170px;
}


/* Change ' +' in order to change the Dropdown symbol */
/*
li > a:after { content:  ' +'; }
li > a:only-child:after { content: ''; }
*/


/* Media Queries
--------------------------------------------- */

@media all and (max-width: 800px) {

    nav {
    }

    .menu{
        width: 100%;
        margin-top: 0;
        background-color: rgba(58, 79, 141, 0.9);
    }

    /* Hide the navigation menu by default */
    /* Also hide the  */
    .toggle + a,
    .menu {
        display: none;
    }

    /* Stylinf the toggle lable */
    .toggle {
        display: block;
        padding: 14px 20px;
        color: #FFF;
        font-size: 17px;
        text-decoration: none;
        border: none;
        cursor: pointer;
    }

    .toggle:hover {
        text-decoration: underline;
    }

    /* Display Dropdown when clicked on Parent Lable */
    [id^=drop]:checked + ul {
        display: block;
    }

    /* Change menu item's width to 100% */
    nav ul li {
        display: block;
        width: 100%;
    }

    nav ul ul .toggle,
    nav ul ul a {
        padding: 0 40px;
    }

    nav ul ul ul a {
        padding: 0 80px;
    }

    nav a:hover,
    nav ul ul ul a {
    }

    nav ul li ul li .toggle,
    nav ul ul a,
    nav ul ul ul a {
        padding: 14px 20px;
        color: #FFF;
        font-size: 17px;
    }


    nav ul li ul li .toggle,
    nav ul ul a {
    }

    /* Hide Dropdowns by Default */
    nav ul ul {
        float: none;
        position: static;
        color: #ffffff;
        /* has to be the same number as the "line-height" of "nav a" */
    }

    /* Hide menus on hover */
    nav ul ul li:hover > ul,
    nav ul li:hover > ul {
        display: none;
    }

    /* Fisrt Tier Dropdown */
    nav ul ul li {
        display: block;
        width: 100%;
    }

    nav ul ul ul li {
        position: static;
        /* has to be the same number as the "width" of "nav ul ul li" */

    }

}

@media only screen and (max-width: 580px) {
    #navi{
        height: 90px;
    }
}

@media all and (max-width: 330px) {

    nav ul li {
        display: block;
        width: 94%;
    }

}