/**
 * MENU TOGGLE TYPE
 *
 * Use a Hamburger Icon or a Navigation bar.
 * Please note the slightly different HTML markup (demos).
 *
 */
/**
 * LABEL FORM
 */
/**
 * COLORS
 *
 * You can assign different colors to the first level and the sublevels,
 * e.g. a transparent bar and colored sublevels (see hamburger demo).
 */
/* first menu level */
/* menu sublevels */
/* active page */
/* miscellaneous */
/**
 * MEASURES
 */
/**
 * MENU TOGGLE TYPE
 */

#toggle-menu {
    background-color: #ddd;
    color: #444;
    display: block;
    padding: 0.75em 1em;
    position: relative;
}
/**
 * MENU ARROWS
 */

.topnavi__arrow {
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    border-top: 8px solid #fff;
    display: inline-block;
    vertical-align: middle;
    height: 0;
    width: 0;
}
.topnavi__arrow--sub {
    border-top: 8px solid #fff;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    display: inline-block;
    vertical-align: middle;
    height: 0;
    width: 0;
}
@media (min-width: 768px) {
    .topnavi__arrow--sub {
        border-right: none;
        border-bottom: 6px solid transparent;
        border-top: 6px solid transparent;
        border-left: 6px solid #fff;
    }
}
/**
 * MOBILE VIEW
 */

.topnavi__lvl--first {
    background-color: #ddd;
}
.topnavi__lvl--first::after {
    clear: both;
    content: "";
    display: table;
}
.topnavi__lvl--first,
.topnavi__lvl--sub {
    margin: 0;
    padding: 0;
}
.topnavi__lvl--first,
.topnavi input[type="checkbox"] {
    display: none;
}
#toggle:checked + .topnavi__lvl--first,
.topnavi input[type="checkbox"]:checked + .topnavi__lvl--sub {
    display: block;
}
.topnavi__item {
    color: #444;
    display: block;
    position: relative;
}
.topnavi__item a {
    display: block;
    position: relative;
    text-decoration: none;
}
.topnavi__item a:hover,
.topnavi__item a:focus {
    text-decoration: none;
}
.topnavi__item--header {
    background-color: #ddd;
    color: #666;
    display: block;
    font-size: 0.75em;
    padding: 1.5em 1.25em 0.25em;
}
.topnavi__link--first {
    /*background-color: #ddd;*/
    color: #444;
    padding: 0.75em 1em;
    padding-right: 42px;
}
.topnavi__link--first:hover {
    background-color:rgba(255,255,255,0.60);
    color: #000;
}
.topnavi__lvl--sub {
    display: none;
    padding-left: 1em;
}
.topnavi__link--sub {
    background-color: #ddd;
    color: #444;
    padding: 0.75em 1em;
    padding-right: 42px;
}
.topnavi__link--sub:hover {
    background-color: #aaa;
    color: #000;
}
.topnavi__link--active {
    background-color: #999;
    color: #eee;
    padding: 0.75em 1em;
    padding-right: 42px;
}
ul span.topnavi__label {
    display: none;
}
/**
 * DESKTOP VIEW
 */

@media only screen and (min-width: 768px) {
    .topnavi {
        background-color:rgba(255,255,255,0.60);
    }
    .topnavi__lvl--first {
        background-color: transparent;
    }
    #toggle-menu,
    .topnavi input[type="checkbox"]:checked + .topnavi__lvl--sub {
        display: none;
    }
    .topnavi__lvl--first,
    .topnavi__item:hover > input[type="checkbox"] + .topnavi__lvl--sub {
        display: block;
    }
    .topnavi__item {
        float: left;
    }
    .topnavi__link--first {
        /*background-color: #ddd;*/
        color: #444;
        padding: 0.75em 1em;
        padding-right: 42px;
    }
    .topnavi__link--first:hover {
        background-color: rgba(255,255,255,0.60);
        color: #000;
    }
    .topnavi__link--active {
        background-color: #999;
        color: #eee;
    }
    .topnavi__lvl--sub {
        display: none;
        margin: 0;
        padding: 0;
        position: absolute;
        top: 100%;
        left: 0;
        width: 12em;
        z-index: 3000;
    }
    .topnavi__lvl--sub .topnavi__item {
        float: none;
    }
    .topnavi__lvl--sub .topnavi__lvl--sub {
        top: 0;
        left: 100%;
    }
}
/**
 * LABELS
 */

.topnavi__label:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}
.topnavi__label {
    background-color: #666;
    height: 100%;
    padding: 0 .5em;
    position: absolute;
    right: 0;
    top: 0;
}


.topnavi {max-width: 1200px; margin: 0 auto;}

.topnavi__lvl--first {
	position: relative;
		z-index: 100;
}