/*
@media
only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px)  {


	body:not(.htmlarea-content-body) .contenttable,
    body:not(.htmlarea-content-body) .contenttable thead,
    body:not(.htmlarea-content-body) .contenttable tbody,
    body:not(.htmlarea-content-body) .contenttable th,
    body:not(.htmlarea-content-body) .contenttable td,
    body:not(.htmlarea-content-body) .contenttable tr {
		display: block;
	}

	.contenttable thead tr {
		position: absolute;
		top: -9999px;
		left: -9999px;
	}

	.contenttable tr { border: 1px solid #ccc; }

	.contenttable td {

		border: none !important;
		border-bottom: 1px solid #eee;
		position: relative;
		padding-left: 40%;
	}

	.contenttable td:before {

		position: absolute;

		top: 6px;
		left: 6px;
		width: 35%;
		padding-right: 10px;
		white-space: nowrap;
	}

    .contenttable td:before { content: attr(data-label); }

}
*/


/* Hohe */
@media (max-height: 840px) {
  nav > ul {
    margin-top: 9px;
  }
  nav:after {
    border-width: 0 0 122px 130px;
  }
  .scrolled nav:after {
    border-width: 0 0 80px 85px;
  }
}
@media (max-height: 740px) {
  nav:after {
    border-width: 0 0 80px 85px;
  }
  .scrolled nav:after {
    border-width: 0 0 40px 43px;
  }
}




/* kleine Bildschirme */

@media (max-width: 1480px) {
  nav:before {
    border-width: 110px 108px 0 0;
  }
}
@media (max-width: 1280px) {
  body:not(#home) #buehne .flexslider {
    width: 100%;
    padding: 0;
  }

}
@media (max-width: 1200px) {
  header {
    padding-top: 10px;
    min-height: auto;
  }
  #efa_form {
    margin: 5px 0;
  }
  #efa_form input[type="text"] {
    max-width: 25%;
  }
  nav > ul {
    margin-top: 10px;
  }
  h1 {font-size: 300%;}
}

@media (max-width: 1080px) {
  nav {
    width: 245px;
  }
  nav > ul > li > a {
    font-size: 1.8rem;
  }
  nav:before {
    left: 245px;
    border-width: 50px 49px 0 0;
  }
  .scrolled nav:before {
    border-width: 25px 24px 0 0;
  }
  a#home_link {
    width: 200px;
    padding-bottom: 30px;
  }
  .scrolled a#home_link {
    width: 200px;
    padding-bottom: 20px;
  }
  header, #content {
    margin-left: 245px;
  }
  h1 {font-size: 250%;}
  h2 {font-size: 200%;}
  h3 {font-size: 150%;}
  h4 {font-size: 125%;}

  #page .powermail_label,
  #page .powermail_field,
  #page .powermail_radio_outer,
  #page .powermail_captcha_outer,
  #page .powermail_check_outer,
  #page .powermail_fieldwrap_file_inner ul:not(.parsley-errors-list) {
    float: none;
    width: 100%;
  }
  #page .powermail_submit {
    width: 50%;
    max-width: 100%;
    margin-left: 0 !important;
  }
  #page .parsley-errors-list li {
    margin-left: 0;
  }
  #page .powermail_fieldwrap.layout1,
  #page .powermail_fieldwrap.layout2 {
    float: none;
    width: 100%;
    margin: 0%;
  }
}
@media (max-width: 960px) {
  .news-single .news-img-wrap .outer img {
    height: 80px;
  }
}
@media (max-width: 900px) {
  .container-fluid,
  #efa_iframe,
  #main > div > h2,
  .flexslider .caption .wrap,
  .flex-control-nav .wrap {
    width: 90%;
  }
  #efa_form #tripoptiondep {
    margin-left: 10px;
  }
}
@media (max-width: 800px) {
  body:not(.htmlarea-content-body) {
    font-size: 1.4rem;
  }

  .container-fluid,
  #efa_iframe,
  #main > div > h2,
  .flexslider .caption .wrap,
  .flex-control-nav .wrap {
    width: auto;
    padding: 0 20px;    
  }
  header, #content {
    margin-left: 0;
  }
  header {
    min-height: auto;
    padding: 10px 0;
  }  
  a#home_link {
    width: 168px;
  }
  header .rufnummern,
  #topnav,
  #fontsize,
  #search  {
    display: none;
  }  
  nav li.topnav,
  nav li.rufnummern {
    display: block;
  }
  
  nav {
    position: relative;
    width: 100%;    
  }
  a#home_link {
    padding: 15px 20px;
  }
  nav:before, nav:after {
    display: none;
  }
    
  #nav_button {
    display: block;
  }
  nav > ul {
    clear: right;
    position: relative;
    width: auto;
    margin-top: 0;
    text-align: left;
    display: none;
  }
  nav li {
  }
  nav > ul > li > a {
    padding: 15px 20px 15px 60px;
    font-size: 1.6rem;
    margin-bottom: 1px;
  }  
  nav > ul > li > a:before {
    width: 23px;
    height: 20px;
    top: 15px;
    left: 20px;  
  }  
  nav > ul > li.ifsub:hover > a:after, nav > ul > li.ifsub.active > a:after   {
    display: none;
  }
  nav li > a,
  nav li:hover > a {
    float: none;
    background: #777;
    color: #FFF;
    text-decoration: none;
  }
  nav li.open > a {
    background: #009036 !important;
    color: #fff !important;
    text-decoration: none;
  }
  nav li li.ifsub > a::after {
    display: none;
  }
  nav > ul > li > a:before {
    -webkit-filter: brightness(200%);
    filter: brightness(200%);
  }  

  nav li.ifsub > a > span {
    float: right;
    display: block;
    position: absolute;
    top: 4px;
    right: 0px;
    width: 50px;
    height: 40px;
    line-height: 40px;
    text-align: center;
  }
  nav li.ifsub > a > span:after {
    font-family: 'FontAwesome';
    font-size: 120%;
    content: "\f0da";
  }
  nav li.ifsub.open > a > span:after {
    content: "\f0d7";
  }

  /* 2.Ebene */
  nav li > ul,
  nav li:hover > ul,
  nav li.active > ul {
    display: block;
    position: relative;
    top: 0 !important;
    left: 0;
    min-width: 100%;
    height: auto;
    max-height: 0;
    padding: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
    -webkit-transition: all 0.5s ease-in-out;
       -moz-transition: all 0.5s ease-in-out;
        -ms-transition: all 0.5s ease-in-out;
         -o-transition: all 0.5s ease-in-out;
            transition: all 0.5s ease-in-out;
  }
  nav li.open > ul {
    max-height: 700px;
  }
  nav li li > a,
  nav li li:hover > a {
    background: #eee;
    color: #000;
    padding: 8px 15px 8px 20px;
  }
  nav li li.active > a {
    color: #009036;
  }
  nav li li.ifsub > a > span {
    line-height: 30px;
  }
  
  nav li li li > a,
  nav li li li:hover > a {
    background: #ddd !important;
    padding: 8px 15px 8px 35px;
  }  

  .ce-textpic.ce-left.ce-intext .ce-gallery,
  .ce-textpic.ce-right.ce-intext .ce-gallery {
    max-width: 40%;
  }
  
  #breadcrumb {
    padding: 10px 20px 20px;
  }

  section.layout_7 {
    padding: 20px 0;
  }

  #page .powermail_label {
    padding-top: 0;
  }

  input#saddr,
  input#addr_submit {
    float: none;
    width: 100%;
  }
  input#addr_submit {
    width: 50%;
    max-width: 100%;
    margin-left: 0% !important;
  }
  .news-list-view .news-img-wrap img {
    height: auto;
  }
  
  #home #main {min-height: auto;}
  
  #main > section.layout_0 {
    padding: 25px 0;
  }
}
@media (max-width: 640px) {
  .news-single .news-img-wrap .outer img {
    height: 60px;
  }
  .news-single .news-img-wrap .outer:first-child img {
    height: 180px;
  }   
  #content {font-size:95%;}
  h1 {font-size: 225%;}
  h2 {font-size: 180%;}

  
}
@media (max-width: 540px) {
  #trigger_efaform {
    display: block;
  }
  #efa_form, #efa_form #more, #efa_form #less, #efa_form .efa_more {
    display: none;
  }
  #efa_form input[type="text"] {
    max-width: 38%;
  }
  #efa_form input[type="submit"] {
    display: block;
    width: 38%;
  }

}

@media (max-width: 480px) {
  .news-single .news-img-wrap {
    float: none;
    width: 100%;
    margin: 0 0 15px;
  }
  .news-single .news-img-wrap .outer:first-child img {
    height: auto;
  }
}
@media (max-width: 400px) {
  h1 {font-size: 180%;}
}
