@media (max-width:839px){
  
#alles {
background: url("../images/bg_header2.jpg") repeat-x;
background-position-y: 0px;
}
  
#container {
width:90%;
margin:0 5% 0 5%;
padding:0;
}

header {
height: 111px;
margin: 0;
width: 80%;
float: left;
}

nav {
height: 150px;
margin: 0;
width:20%;
float: right;
}

section {
clear: both;
padding: 3rem 0 5rem 0;
margin:0;
}

footer {
padding-left: 5%;
padding-right: 5%;
}


/*--------------------------- Header ---------------------------*/
  
/* Titel */

header div.custom {
width: auto;
margin: 0;
padding: 0;
}

header div.custom h1 {
width: auto;
height: auto;
margin: auto;
padding:44px 0 0 0;
text-align: left;
font-size: 2rem;
} 

/* Sprachwahl */

div.mod-languages {
position: absolute;
left: 65%;
top: 50px;
margin: auto;
padding:0;
width: max-content;
}


/* ------------------------------------------------------- NAV ------------------------------------------------------------- */
  
/* HAUPTMENUE */

button.dj-mobile-open-btn.dj-fa-5, button.dj-mobile-open-btn.dj-fa-5:hover, button.dj-mobile-open-btn.dj-fa-5.active {
position: absolute;
top: 47px;
right: 0;
z-index: 10;
background: none;
color: #fff;
}

span.dj-mobile-open-icon, button.dj-mobile-open-btn.dj-fa-5:hover span.dj-mobile-open-icon, button.dj-mobile-open-btn.dj-fa-5.active span.dj-mobile-open-icon {
background: none;
color: #fff;
}
  
nav div.dj-megamenu-wrapper {
position: absolute;
left: 5%;
height:auto;
width: 90%;
padding: 0;
margin: 0;
}
  
nav div.dj-megamenu-wrapper ul.dj-mobile-nav li.dj-mobileitem a {
height:auto;
width: auto;
border:0;
padding: 0.8rem 3.0rem 0.8rem 1.0rem;
margin:0;
font-size: 1.0rem;
line-height: 1.4em;
font-weight: light !important;
border: 1px solid #000;
}

nav div.dj-accordion-in {
position: relative;
top: 50px;
width: 100% !important;
max-width: 100%;
border-top: 1px solid #000;
}

nav div.dj-megamenu-accordion, nav div.dj-accordion, nav div.dj-accordion-in {
width: 100% !important;
max-width: 100%;
}


/* Level 2 */

nav div.dj-megamenu-wrapper ul.dj-mobile-nav li.dj-mobileitem ul.dj-mobile-nav-child a {
padding-left: 2.0rem;
}

  
/* ----------------------------- MAIN ---------------------------------- */
  
/* Ueberschriften */

section h1 {
font-size: 2.0rem;
margin: auto auto 2em auto;
}

section h2 {
font-size: 1.6rem;
margin: 3em auto 1em auto;
}

section h3 {
font-size: 1.3rem;
margin: 2em auto 0.75em auto;
}

/* ------------------------------ FOOTER --------------------------------- */

footer > div.mod-custom p a.expolink {
float: none;
clear: both;
display: block;
width: auto;
padding:0;
text-align: left;
margin: 20px auto 30px auto !important;
white-space: nowrap;
}
  
}

@media (max-width:519px){
  
header div.custom h1 {
padding:3rem 0 0 0;
font-size: 1.6rem;
} 

/* Sprachwahl */

header div.mod-languages {
position: absolute !important;
left: 50% !important;
top: 0 !important;
margin: auto 0 0 -50px !important;
padding:0;
width: 100px;
}

/* Ueberschriften */

section h1 {
font-size: 1.6rem;
margin: auto auto 2em auto;
}

section h2 {
font-size: 1.4rem;
margin: 3em auto 1em auto;
}

section h3 {
font-size: 1.2rem;
margin: 2em auto 0.75em auto;
}
  
/* ------------------------------ FOOTER -------------------------------- */

footer ul.nav li {
width: 50%;
margin-right:0;
margin-left: 0;
}


}