@media
only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px)  {

	/* Force table to not be like tables anymore */
	body:not(.cke_editable) .contenttable,
    body:not(.cke_editable) .contenttable thead,
    body:not(.cke_editable) .contenttable tbody,
    body:not(.cke_editable) .contenttable th,
    body:not(.cke_editable) .contenttable td,
    body:not(.cke_editable) .contenttable tr {
		display: block;
	}
	/* Hide table headers (but not display: none;, for accessibility) */
	.contenttable thead tr {
		position: absolute;
		top: -9999px;
		left: -9999px;
	}

	.contenttable tr { border: 1px solid #ccc; }

	.contenttable td {
		/* Behave  like a "row" */
		border: none !important;
		border-bottom: 1px solid #eee;
		position: relative;
		padding-left: 40%;
	}

	.contenttable td:before {
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 6px;
		left: 6px;
		width: 35%;
		padding-right: 10px;
		white-space: nowrap;
	}

	/*
	Label the data
	*/
    .contenttable td:before { content: attr(data-label); }

}



/* kleine Bildschirme */

@media (max-width: 960px) {
  .news-single .news-img-wrap .outer img {
    height: 80px;
  }
  a#home_link {
    max-width: 160px;
  }
  nav {
    padding-top: 1%;
  }

  h2, h2.title {
    font-size: 150%;
  }
  h3 {
    font-size: 133%;
  }
}
@media (max-width: 767px) {
  header {
    padding: 15px 0;
  }
  #buehne .caption {
    font-size: 1.5rem;
  }
  
  #nav_button {
    display: block;
  }
  nav > ul {
    clear: right;
    position: absolute;
    top: 77px;
    right: 0;
    width: 180px;
    text-align: left;
    display: none;
  }
  nav li {
    float: none;
    display: block;
    margin: 0;
  }

  nav li > a,
  nav li:hover > a {
    padding: 8px 20px;
    float: none;
    background: #FFF;
    color: #000;
    text-decoration: none;
  }
  nav li:hover > a,
  nav li.active > a {
    color: #50b4bc;
    background: #FFF;
  }  
  nav li.open > a {
    background: rgba(35, 82, 124, 0.6) !important;
    color: #fff !important;
    text-decoration: none;
  }
  nav li li.ifsub > a::after {
    display: none;
  }

  nav li.ifsub > a > span {
    float: right;
    display: block;
    position: absolute;
    top: 4px;
    right: 0px;
    width: 40px;
    height: 30px;
    line-height: 30px;
    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 15px;
  }
  nav li li.active > a {
    background: rgba(35, 82, 124, 0.4);
    color: #fff;
  }


  .ce-textpic.ce-left.ce-intext .ce-gallery,
  .ce-textpic.ce-right.ce-intext .ce-gallery {
    max-width: 40%;
  }

  #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%;
  }
  select,
  textarea,
  input {
    width: 96%;
  }
  .g-recaptcha {
    margin-left: 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;
  }
}
@media (max-width: 640px) {
  .news-single .news-img-wrap .outer img {
    height: 60px;
  }
  .news-single .news-img-wrap .outer:first-child img {
    height: 180px;
  }
}
@media (max-width: 480px) {
  h2.title {
    letter-spacing: 1px;
  }
  .news-single .news-img-wrap {
    float: none;
    width: 100%;
    margin: 0 0 15px;
  }
  .news-single .news-img-wrap .outer:first-child img {
    height: auto;
  }
  #buehne .caption {
    position: relative;
    bottom: auto;
    right: auto;
    left: 0;
    width: 100%;
    padding: 10px 20px;
  }
  h2, h2.title {
    margin-top: 10px;
    font-size: 133%;
  }
  h2 {
    margin-top: 0;
  }
  h3 {
    font-size: 120%;
  }
  footer {
    padding: 15px 0;
  }
}
