@media (max-width:640px) {
  
header {
height: 110px;
overflow: visible;
padding: 2% 5% 0 5%;
}

main > nav {
position: absolute;
right: 5%;
top: 40px;
max-width: 90%;
z-index: 10 !important;
}

#banner {
height: auto;
overflow: hidden;
margin:0 0 3em 0;
}

section {
padding: 0 5% 0 5%;
}

article {
width: 100%;
height: auto;
margin: 0 0 2em 0 !important;
padding: 0;
height: auto;
}
  
aside {
width: 100%;
}

footer {
padding: 4% 5% 5% 5%;
text-align: center !important;
}
  
/* --- Figure --- */
  
/* figure.item-image und figure.image im Beitragstext */
  
article div.item-page figure.left.item-image, article div.blog-item figure.left.item-image, article div.com-content-article__body figure.image.left {
width: 100%;
height: auto;
margin: 0 0 2% 0;
padding:0;
}
  
article div.item-page figure.right.item-image, article div.blog-item figure.right.item-image, article div.com-content-article__body figure.image.right {
width: 100%;
height: auto;
margin: 0 0 2% 0;
padding:0;
}
  
article .item-page div.com-content-article__body figure.image.left, article .item-page div.com-content-article__body p img.left, article .item-page div.com-content-article__body figure.image.right, article .item-page div.com-content-article__body p img.right {
width: 100%;
}

/* Textformate */

div.page-header h1, div#jevents_header h2.contentheading, div.contact > h1, div.contact-category h1 {
min-height: 4em;
font-size: 1.2em !important;
letter-spacing: 0.3em;
padding-bottom: 1.5em;
}

/*----------------------------------- header --------------------------------------*/
  
div.logo {
width: 200px;
position: absolute;
left: 5%;
top: 20px;
z-index:10;
}

div.top {
display: none;
}
  
div.moduletable.suche {
display: none;
}
  
/*------------------------------------- nav ----------------------------------------*/

nav button.dj-mobile-open-btn.dj-fa-5.active {
color:   ;
background: rgba(56, 97, 55, 1) !important  ;
}

nav button.dj-mobile-open-btn.dj-fa-5.active span {
color: #fff;
background: rgba(56, 97, 55, 1);
}  
  
nav div.hauptmenue div.dj-accordion-in {
box-shadow: 0px 0px 5px #999;
}
  
/* Level 1 */

nav div.hauptmenue li.dj-mobileitem {
border-bottom: 1px solid #ccc !important;
}

nav div.hauptmenue li.dj-mobileitem a {
font-size: 1.2em;
text-transform: none;
}
  
/* Level 2 */
  
nav div.hauptmenue ul li.dj-mobileitem ul.dj-mobile-nav-child a span.name {
font-family: 'rubik_light' !important;
}
  
  
/*----------------------------------- banner --------------------------------------*/
  
/* Bannerbilder */
  
#banner div.moduletable, #banner div.custom {
height: 150px;
}
  
#banner div.moduletable div.mod-custom.custom {
background-repeat: no-repeat !important;
background-position: center center !important;
background-size: cover !important;
height: 100%;
padding: 5%;
display: flex;
flex-direction: column;
justify-content: flex-end;
}

div#banner div.moduletable div.mod-custom.custom p {
font-size: 1.5em;
background: #95c11f;
color: #fff;
padding: 0.2em 0.4em;
margin: auto 0 0 auto;
width: max-content;
height: auto;
border-radius: 4px;
}

div#banner div.moduletable div.custom {
text-align: right;
}

div#banner div.moduletable.links div.custom {
text-align: left !important;
}

  
/* ---------------------------------- section -------------------------------------- */
  


/*----------------------------------- article --------------------------------------*/
  
/* Ueberschriften */
  
.page-header h2 {
font-size: 1.6em;
line-height: 1.2em;
font-weight: bold;
margin:0 auto 1.0em 0;
padding:0;
}
  
div.com-content-article__body h2 {
font-size: 1.6em;
} 

article div h4 {
font-size: 1.4em;
line-height: 1.1em;
margin:2.6em auto 1.0em 0;
padding:0;
}

div.com-content-article__body p img {
width: 100% !important;
height: auto;
}

div.contact > h1, div.contact-category h1 {
height: auto !important;
hyphens: auto !important;
hyphenate-limit-chars: auto 3;
hyphenate-limit-lines: 4;
}


  
/*------------------------------------ aside ---------------------------------------*/

aside img {
width: 100% !important;
height: auto;
}
  
/*----------------------------------- footer --------------------------------------*/

footer ul.nav.hm {
display: none;
}

footer div.moduletable.fi {
margin-top: 2.0em !important;
}

/* Fussmenue */

footer div.moduletable, footer ul.nav.fm {
width:auto !important;
padding: auto !important;
height: auto;
text-align: center !important;
}

footer ul.nav.fm > li {
display: inline-block;
width: auto !important;
margin: 0 auto 0 auto;
padding: 0;
height: auto;
text-align: center !important;
font-size: 0.8em !important;
}


/* ------------ Editor-Formate ---------------- */

.links_im_text {
width: 100% !important;
height: auto;
margin:0 0 1em 0;
padding:0;
border:0;
}

.rechts_im_text {
width: 100% !important;
height: auto;
margin:0 0 1em 0;
padding:0;
border:0;
}
  
}