/* --- 1280px --------------------------------------------- */
@media only screen and (max-width: 1279px) and (min-height: 340px) {
  #nav li.lvl1 {
    margin: 0px 10px;
  }
  #nav li.lvl1 a {
    font-size: 21px;
  }
}
/* -- iPad --------------------------------------------- */
@media only screen and (max-width: 1025px) and (min-height: 340px) {
  #nav li.lvl1 a {
    font-size: 20px;
  }
}
/* --- 980px --------------------------------------------- */
@media only screen and (max-width: 979px) {
  #logo img {
    top: 10px;
    max-height: 85px;
  }
  #header.sticky #logo img {
    max-height: 50px;
  }
}
/* --- widescreen laptop? --------------------------------------------- */
/* --- 800px --------------------------------------------- */
@media only screen and (max-width: 800px) {
  #nav li.lvl1 {
    margin: 0px 7px;
  }
}
/* --- 768px --------------------------------------------- */
@media only screen and (max-width: 767px) {
  #mainmenu {
    display: none;
  }
  .mobilenav #mobilemenu_container {
    display: block;
  }
  #mobilmenu_trigger {
    display: block;
  }
  #search_trigger {
    right: 130px;
    font-size: 24px;
    bottom: 7px;
  }
  #header_content {
    margin-left: 0px;
  }
  #search_container {
    top: 90px !important;
  }
  #headerWrapper {
    top: 0px !important;
    margin: 0px !important;
    height: 90px !important;
  }
  #logo {
    max-width: 50%;
  }
  #logo img {
    max-height: 70px;
    top: 15px !important;
  }
  #header.sticky #logo img {
    max-height: 70px;
  }
  #icon_menu {
    padding: 10px;
  }
  #icon_menu ul li a {
    font-size: 16px;
    margin: 0px 1px;
  }
  #nav_mobile li a.active {
    font-weight: bold;
  }
  #footer_container .grid3 {
    width: 50%;
  }
  #footer_container .grid3.metalinks {
    width: 100%;
  }
  #footer_schools .logo_stiftung a {
    margin: auto;
  }
  #footer_schools {
    text-align: center;
  }
  #footer_schools .grid3_1, #footer_schools .grid3_2 {
    width: 100%;
    margin-bottom: 25px;
  }
  #footer_schools .logos a {
    width: calc(50% - 20px);
    margin-bottom: 20px;
  }
  .grid2, .grid3, #list .grid3_1, #list .grid3_2, .text_img .grid3_1, .text_img .grid3_2, .text_sidebar .grid3_1, .text_sidebar .grid3_2 {
    width: 100%;
  }
  .equalheight {
    min-height: 0px !important;
  }
  #list_filter {
    margin: 0px 3% 25px 3%;
    padding: 10px;
  }
  .filtergroup {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }
  .text_img .sidebarbox, .text_img .contentbox, .text_sidebar .sidebarbox, .text_sidebar .contentbox {
    min-height: 0px !important;
    margin: 0px 0px 10px 0px;
    padding: 20px;
    text-align: left;
  }
  .colleague_gallery .item {
    width: 100%;
  }
}
/* --- 580px --------------------------------------------- */
@media only screen and (max-width: 584px) {
  body {
    font-size: 15px;
  }
  h1, .h1 {
    font-size: 30px;
  }
  h2, .h2 {
    font-size: 25px;
  }
  h4, .h4 {
    font-size: 20px;
  }
  #footer_container .grid3 {
    width: 100%;
    text-align: center;
    margin-bottom: 25px;
  }
  #sidebar_info_content, #sidebar_trigger_container {
    display: none;
  }
  #news_list_masonry .grid-sizer, #news_list_masonry .grid-item {
    width: 100%;
  }
  .section.gallery_tiles .gallery_tiles_container .item {
    width: calc(50% - 10px);
  }
  #cookiehint {
    max-width: calc(100vw - 30px);
    left: 15px;
    transform: translateX(0px);
    padding: 12px;
    bottom: 7vh;
  }
  #cookiehint .cookie_acceptAll {
    margin-top: 10px;
  }
}
/* --- 480px --------------------------------------------- */
@media only screen and (max-width: 479px) and (orientation: portrait) {
  .eventlist .event {
    margin-bottom: 25px;
  }
  .eventlist .date {
    float: none;
    margin: 0px;
    display: block;
    text-align: left;
    font-size: 90%;
  }
  .eventlist .date .day {
    display: inline-block;
  }
  .eventlist .date .time {
    font-size: 100%;
    margin-left: 10px;
  }
}
/* --- 380px --------------------------------------------- */
/* mobile LANDSCAPE ---------------------------------------------*/
