@charset "UTF-8";
/* 
CSS Stylesheet by dialog im netz
*/

:root {
 --rot: #F05322;
 --gruen: #eeffcc;
 --trans: .3s;
 --trans2: .5s;
}

/* MENÜ / NAVIGATION */


nav {
 width: 100%;
}

nav > ul {
position: absolute;
width: 100%;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-between;
align-items: flex-start; 
align-content: stretch; 
}
nav ul li {
list-style: none;
display: block;
}

/* Alle Subs */

nav ul {
width: 100%;
padding: 0;
margin: 0;
background-color: var(--gruen);
transition: var(--trans2);
z-index: 1001;
}

nav ul ul {
position: absolute;
height: auto;
width: auto; 
background-color: var(--gruen); 
max-height: 0;
overflow: hidden
}
nav ul li:last-of-type ul {
 right: 0;
}

nav ul ul ul {
position: relative;
max-height: 0;
background-color: var(--gruen);
z-index: +1;
margin-left: 20px
}

nav ul ul ul.ac {
 max-height: 1000px
}
nav ul ul li {
 display: block;
 position: relative;
}
nav ul ul li a {

}
nav ul ul ul a {

}

nav li.ext {
    background: transparent url('/img/style/exlink.png') 80% center no-repeat; 
    background-size: 1.5rem auto; 
}

/* Sub 1 */

nav > ul > li > ul {
top: 26px;
box-shadow: 5px 10px 15px rgba(0,0,0,.2);
}

li.opensub {
 background-color: red
}
li.opensub > ul {
 max-height: 1000px;
 
}

nav ul > li {
    
}
nav ul > li > a {
}

/* Sub 2 */



/* nav a */

nav a {
display: block;
text-decoration: none;
white-space: nowrap;
padding: 3px 20px;
font-weight: bold;
color: black;
opacity: .6;
}
nav a:hover  {
 opacity: 1;
}
nav a.ac{
    color: var(--rot);
    text-decoration: none 
}
nav a.opensub,
nav a.hidesub {
display: block;
float: right;
width: 40px;
cursor: pointer;
transition: var(--trans2);
color: #909090
}
nav ul li:hover a.opensub,
nav ul li:hover a.hidesub,
nav a.opensub:hover,
nav a.hidesub:hover {
color: black;
opacity: .5;
}
nav a.opensub.hide,
nav a.hidesub {
display: none;
opacity: 1;
z-index: 2
}
nav a.hidesub.show,
nav a.hidesub {
display: block;
opacity: 1;
z-index: 252
}
nav a.hidesub.hide,
nav a.hidesub {
display: none;
opacity: 1;
z-index: 2
}
nav a.opensub.show,
nav a.showsub {
display: block;
opacity: 1;
z-index: 252
}
nav ul.subac {
    left: 0; 
    max-height: 0
}
#searchform {
    background-color: transparent;
}

#hamburger-button{
position: fixed;
top: 0;
right: 0;
height: 70px;
width: 90px; 
transition: var(--trans);
cursor: pointer
}
#mobilebutton{
background: transparent url('/img/style/hamburger.png') center right no-repeat;
}
#mobilebutton,
#hidenav {
position: absolute;
display: block;
top:10px;
left:15px;
width: 70%;
height: 70%;
background-size: contain; 
transition: var(--trans);
opacity: 0;
}
#mobilebutton.show,
#hidenav.show{
display:block;
z-index: 252;
opacity: 1;
}
#mobilebutton.hide,
#hidenav.hide{
display:none;
opacity: 0;
z-index: -1;
 
}
#hidenav {
background: transparent url('/img/style/hidenav.png') center right no-repeat;
background-size: 80% auto; 
}
#mobilebutton span ,
#hidenav span,
#topbutton span {
visibility: hidden
}

#topbutton {
    position: fixed;
    opacity: 0;
    bottom: 0px;
    right: 0px;
    width: 60px;
    height: 60px;
    background: transparent url('/img/style/top.svg') center center no-repeat; 
    background-size: contain; 
    transition: var(--trans2);
    z-index: 200
}
#topbutton:hover,
#topbutton:focus {
    opacity: 1!important
}
#topbutton a {
    display: block; 
    width: 60px;
    height: 60px;
    
}

#chlang {
display: inline;
background-color: transparent;
padding: 0;
}
#lang {
display: inline-block;
position: relative;
margin: 0 ;
width: 50px;
height: 30px;
border: 0 none;
background: transparent url('/img/style/en.png') left center no-repeat; 
background-size: 60% auto;
cursor: pointer; 
}

@media screen and (max-width: 760px) {

nav {
position: fixed;
left: -110vw;
top: 0px;
width: 100vw;
height: auto;
background-color:var(--gruen);
overflow: auto;
padding: 50px 20px 20px 20px;
margin: 0;
z-index: 140;
}
nav ul {
 width: calc(100vw - 60px);
}
nav p,
nav a {
font-size: 1.2rem;
white-space: wrap
}
nav > ul {
 display: block;
 height: auto;
}
nav ul{
 position: relative;
 top: auto;
 margin-left: 20px
}
nav ul,
nav ul ul,
nav ul ul ul {
 max-height: 100vh;
 overflow: visible;
 position: relative;
 top: auto
}
nav > ul > li > ul {
 top: auto;
 box-shadow: none;
}
nav li{
 display: block;

}

#hamburger-button,
#mobilebutton {
opacity: 1;
z-index: 200;
}

}