/* --- 1350px --------------------------------------------- */
@media only screen and (max-width: 1350px) and (min-height: 340px) {
  #references .item .title a {
    font-size: 20px;
  }
}
/* --- 1280px --------------------------------------------- */
@media only screen and (max-width: 1279px) and (min-height: 340px) {
  #references .item {
    width: 33.33%;
  }
  #references .item .title a {
    font-size: 25px;
  }
  /* first reset */
  #references .item:nth-Child(5n) .hoverbox {
    right: auto;
    left: 0px;
  }
  #references .item:nth-Child(5n).hover .hoverbox,
  #references .item:nth-Child(5n):hover .hoverbox {
    left: 100%;
  }
  /* and set every 3. */
  #references .item:nth-Child(3n) .hoverbox {
    left: auto;
    right: 0px;
  }
  #references .item:nth-Child(3n).hover .hoverbox,
  #references .item:nth-Child(3n):hover .hoverbox {
    left: auto;
    right: 100%;
  }
}
/* -- iPad --------------------------------------------- */
@media only screen and (max-width: 1025px) and (min-height: 340px) {
  h1,
  .h1 {
    font-size: 40px;
  }
  h2,
  .h2 {
    font-size: 30px;
  }
  body {
    font-size: 16px;
  }
}
/* --- 980px --------------------------------------------- */
@media only screen and (max-width: 979px) {
  #section_footer #footer {
    padding-top: 40px;
  }
  #section_footer .metamenu {
    margin: 0px;
  }
  #footermenu li.lvl1 {
    width: 100%;
  }
  #footermenu li.lvl1 .container1 {
    padding: 0px;
    margin-bottom: 20px;
    min-height: 0px;
    text-align: center;
    border-left: 1px solid #7d8286;
  }
  #footer_metamenu {
    position: relative;
    text-align: center;
    left: auto;
    bottom: auto;
    float: left;
    width: 100%;
  }
  #logo {
    top: 24px;
  }
  #topHeadline {
    display: none;
  }
  #navpager {
    left: 20px;
  }
  #nav {
    width: 60%;
    left: calc(-60% - 100px);
  }
  #mobilmenu_trigger {
    left: 20px;
    top: 20px;
  }
  #mobilemenu_container {
    padding-left: 20px;
  }
  #nav #mainmenu li {
    margin-bottom: 15px;
  }
  #nav #mainmenu li a {
    font-size: 26px;
  }
  #nav #mainmenu li.lvl2 a {
    font-size: 16px;
  }
  .start .job_linkbox {
    top: 20px;
    right: 20px;
    font-size: 14px;
  }
  .metamenu {
    margin-top: 25px;
  }
  .metamenu li a {
    font-size: 16px;
  }
  #footermenu li.lvl1 a {
    font-size: 30px;
  }
  #footermenu .submenu li a {
    font-size: 16px;
  }
}
/* --- 768px --------------------------------------------- */
@media only screen and (max-width: 767px) {
  .container_half {
    width: 75%;
  }
  #reference_details #detailspopup {
    width: 75%;
    right: calc(-85% - 100px);
  }
  .menu301 .grid2 {
    width: calc(75% - 40px);
  }
  .grid3.responsive_grid2 {
    width: calc(66.66% - 40px);
  }
  .grid3.responsive_hidden {
    display: none;
  }
  #references .item .title {
    bottom: 10px;
    right: 10px;
  }
  #references .item .title a {
    font-size: 16px;
  }
  #references .item .shortdesc {
    font-size: 16px;
  }
}
/* --- 580px --------------------------------------------- */
@media only screen and (max-width: 584px) {
  #footermenu li.lvl1 a {
    font-size: 30px;
  }
  #footermenu .submenu li a {
    font-size: 16px;
  }
  #section_footer #logo_footer {
    margin: 20px auto;
  }
  #nav {
    width: 70%;
    left: calc(-70% - 100px);
  }
  .grid2,
  .menu301 .grid2 {
    width: 100%;
    padding: 0px;
  }
  .grid3,
  .grid3.responsive_grid2 {
    width: 100%;
    padding: 0px;
  }
  .menu201 .portrait {
    max-width: 50%;
  }
  #startlogo {
    width: 70%;
    left: 15%;
    margin-left: 0px;
  }
  #references .item .title a {
    font-size: 26px;
  }
  #references .item {
    width: 50%;
  }
  /* first reset */
  #references .item:nth-Child(3n) .hoverbox,
  #references .item:nth-Child(4n) .hoverbox,
  #references .item:nth-Child(5n) .hoverbox {
    left: 0px;
    right: auto;
  }
  #references .item:nth-Child(3n):hover .hoverbox,
  #references .item:nth-Child(3n).hover .hoverbox,
  #references .item:nth-Child(4n):hover .hoverbox,
  #references .item:nth-Child(4n).hover .hoverbox,
  #references .item:nth-Child(5n):hover .hoverbox,
  #references .item:nth-Child(5n).hover .hoverbox {
    left: 100%;
    right: auto;
  }
  /* and set every 2. */
  #references .item:nth-Child(2n) .hoverbox {
    left: auto;
    right: 0px;
  }
  #references .item:nth-Child(2n).hover .hoverbox,
  #references .item:nth-Child(2n):hover .hoverbox {
    left: auto;
    right: 100%;
  }
}
/* --- 480px --------------------------------------------- */
@media only screen and (max-width: 479px) {
  body {
    font-size: 14px;
  }
  h1,
  .h1 {
    font-size: 20px;
  }
  h2,
  .h2 {
    font-size: 20px;
  }
  h3,
  .h3 {
    font-size: 18px;
  }
  #navpager {
    display: none;
  }
  #logo {
    display: none;
  }
  .start .job_linkbox {
    top: auto;
    bottom: 15vh;
    right: 20px;
    font-size: 14px;
  }
  #references .item .title a {
    font-size: 20px;
  }
  #references .item .title a .ic {
    display: none;
  }
  #details {
    padding-left: 5%;
    width: 90%;
  }
  #reference_details .backToOverview {
    float: left;
  }
  #reference_details .showDetails {
    float: right;
  }
  #reference_details #detailspopup #closeDetails {
    top: 15px;
    right: 15px;
  }
  .fp-controlArrow.fp-prev {
    left: 5%;
  }
  .fp-controlArrow.fp-next {
    right: 5%;
    margin-right: 32px;
  }
  .fp-controlArrow {
    top: 54%;
  }
  .standardpage .text.right {
    text-align: left;
  }
  .standardpage .text.right ul {
    padding: 0px 0px 0px 30px;
  }
  .standardpage .text.right ul li {
    list-style-type: disc;
  }
  .standardpage .text.right ul li:before {
    display: none;
  }
}
/* --- 320px --------------------------------------------- */
@media only screen and (max-width: 319px) {
  h1,
  .h1 {
    font-size: 20px;
  }
  h2,
  .h2 {
    font-size: 16px;
  }
}
/* mobile LANDSCAPE ---------------------------------------------*/
