@media screen and (max-width: 1165px) {
  .banderole {
    margin-left: -2.1%;
    padding-left: 2.1%;
  }
  .banderole .banderoleContent {
    max-width: 100%;
  }
}
/* iPad landscape */
@media screen and (max-width: 1024px) {
  #main {
    /* padding-top: 235px; */
  }
  .ym-wbox {
    margin-left: 2%;
    margin-right: 2%;
    width: 96%;
    padding: 0;
  }
  #mod_dritte_spalte {
    margin-top: 12px;
    margin-bottom: 20px;
  }
  #main .ym-wbox > * {
    max-width: 100%;
  }
  #mod_menue_ebene1 {
    margin-bottom: -4px;
  }
  #main .ym-wbox .floatbox .responseBox {
    max-width: 100%;
  }
  .responseBox {
    float: none;
  }
  .responseBox .aside {
    background-position: center center !important;
    background-size: cover !important;
    position: static;
  }
  .responseBox .aside img {
    position: static;
    margin-left: 0;
    width: 100%;
    height: auto;
  }
  .responseBox .content {
    float: none;
    width: 100%;
  }
  .graue_box {
    width: 100%;
    display: block;
    margin: 0 0 12px -3%;
    padding: 10px 3% 10px 3%;
    height: 175px;
  }
  .graue_box img {
    float: left;
    padding: 4px 0 0 0;
    margin-right: 16px;
  }
  #social_links {
    float: right;
  }
}
/* iPad portrait */
@media screen and (max-width: 768px) {
  #mod_kopftext {
    width: 20%;
  }
  #mod_menue_ebene0 {
    font-size: 14px;
  }
  #mod_dritte_spalte {
    font-size: 26px;
  }
  #mod_menue_ebene1 {
    font-size: 14px;
  }
  #mod_menue_ebene2 {
    font-size: 14px;
  }
  .responseBox {
    margin-top: -2px;
  }
}
/* iPhone landscape */
@media screen and (max-width: 583px) {
  #cboxContent {
    font-size: 12px;
  }
  h2 {
    font-size: 26px;
  }
  .banderole {
    height: auto;
    padding-bottom: 14px;
  }
  .banderole img {
    max-width: 250px;
    height: auto;
  }
  #head {
    position: static;
    background-image: none;
    min-height: 162px !important;
    height: auto !important;
  }
  #head .column {
    display: none;
  }
  #mod_kopftext {
    width: 165px;
  }
  #main {
    padding-top: 0px !important;
  }
  #footer {
    float: left;
    height: auto !important;
    padding: 25px 0;
  }
  #mod_freiemodule_1 {
    width: 100%;
    margin-bottom: 1em;
  }
  #mod_freiemodule_4 {
    width: 100%;
    float: left;
  }
  #social_links {
    float: left;
    margin-left: -30px;
    padding-left: 2%;
  }
  .w_teaser .ym-col3 {
    margin: 0;
  }
}
/* iPhone portrait */
@media screen and (max-width: 320px) {
  img {
    max-width: 320px !important;
    height: auto !important;
  }
  .bild_links_ohne_umbruch,
  .bild_rechts_ohne_umbruch {
    float: none;
    margin-left: 0;
    margin-right: 0;
  }
  #head {
    min-height: 108px !important;
  }
  #head .ym-wrapper {
    min-height: 0;
  }
  #mod_kopftext {
    margin-top: 5px;
  }
  #mod_kopftext a {
    padding-top: 60px;
  }
  .toggleMenu {
    margin-top: 22px !important;
  }
  .graue_box {
    height: auto;
    padding-left: 9%;
  }
  .graue_box img {
    padding-bottom: 10px;
    float: none;
  }
  .graue_box p {
    max-width: none;
  }
  .banderole {
    height: auto;
    /* padding-top: 8px; */
    /* könnte man evtl. noch reinnehmen */
  }
  .banderole img {
    max-width: 308px;
    float: none;
    margin-bottom: 10px;
    margin-top: 0px;
  }
  .banderole.dyn .image {
    float: none;
  }
  .banderole p {
    max-width: 100%;
  }
  #social_links {
    float: left;
    margin-left: -32px;
    padding-left: 5%;
  }
  .w_teaser .ym-col1 {
    padding-bottom: 1em;
  }
}
