@media (max-width: 1400px) {
  .subheader .page-title {
    max-width: 27%;
  }

  .subheader .page-title h2 {
    font-size: 25px;
    line-height: 32px;
  }

  .subheader > img {
    display: none;
  }

  .subheader .headerimage {
    position: absolute;
    right: 0;
    bottom: -10%;
    width: 800px;
  }
}

@media (max-width: 1160px) {
  .wrapper {
    width: 960px;
  }
  .download-button {
    margin: 15px;
  }

  .subheader .headerimage {
    position: relative;
    right: unset;
    bottom: unset;
    width: 100%;
    /* margin-top: 60px; */
  }

  .subheader .headerimage .headerimage-inner {
    height: 400px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  .subheader .headerimage > img {
    display: none;
  }

  .subheader .page-title {
    max-width: 100%;
    position: relative;
    bottom: unset;
    margin-bottom: 30px;
    float: left;
  }

  .subheader {
    height: auto;
    padding: 60px 0 70px;
  }

  #gallery .wp-block-media-text .wp-block-media-text__media {
      grid-column: 1;
      grid-row: 1;
      margin: 0;
      height: 100%;
      overflow: hidden;
      position: relative;
  }
  #gallery .wp-block-media-text__media img {
    height: 100%;
    width: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 990px) {
  .wrapper {
    width: 720px;
  }
  h1 {
    font-size: 24px;
  }
  h2 {
    font-size: 18px;
  }
  .subnav::after {
    display: none;
  }
  .subnav .menu li {
    float: none;
  }
  .subnav .menu {
    margin-top: 50px;
  }
  footer.footer .organizer, footer.footer .partner, footer.footer .nolabel {
    margin-right: 25px;
  }
  nav.mainnav .wrapper {
    padding: 0;
  }
  button.menu-toggle {
    display: inline-block;
  }
  nav.mainnav .menu-header-menu-container ul {
    display: none;
    background: #f3f3f3;
    position: absolute;
    top: 63px;
    right: 0;
    padding: 10px 0;
  }
  nav.mainnav ul > li {
    display: block;
  }
  .mainnav ul > li > a {
    display: block;
    padding: 8px 60px 8px 20px;
  }
  .mainnav ul > li.menu-item-has-children span.arrow-down {
    float: right;
    background: url(../img/arrow-down.svg);
    background-size: 100%;
    width: 20px;
    height: 10px;
    content: '';
    background-repeat: no-repeat;
    margin: 10px;
    position: absolute;
    top: 4px;
    right: 10px;
  }
  .mainnav ul > li > ul.sub-menu {
    position: relative;
    width: 100%;
    padding: 8px 35px;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
    top: unset;
    right: unset;
    float: unset;
    width: 100%;
  }
  .mainnav ul > li > ul > li {
    width: 100%;
  }
  .mainnav ul > li > ul > li > a {
    margin-top: 0;
  }
  .mainnav ul > li > ul > li:hover a {
    background: inherit;
  }
  .mainnav ul > li.current-menu-item > a {
    background-color: inherit;
  }
  footer.footer .nolabel:last-child {
    float: left;
    display: block;
    width: 100%;
    margin: 0;
  }
  footer.footer .nolabel p {
    width: 50%;
    margin-top: 20px;
  }

  #welcome .postimage {
    width: 35%;
  }

  section#welcome .wrapper {
    overflow: hidden;
  }

  section#welcome .postcontent {
    width: calc(100% - 35%);
    position: relative;
    right: unset;
    top: unset;
    transform: unset;
    float: right;
  }

  #eventinfos .eventinfo-item span.lnr {
    font-size: 80px;
    line-height: 90px;
  }

  #eventinfos .eventinfo-item h3,
  #eventinfos .eventinfo-item span {
    font-size: 18px;
    line-height: 28px;
  }

  section#bewerben .frontpage-page .content-wrapper p {
    font-size: 18px;
    line-height: 24px;
    font-family: 'Montserrat-Regular';
  }

  section#bewerben .frontpage-page .content-wrapper > * {
    padding-right: 5%;
  }

  section#bewerben .frontpage-page .content-wrapper {
    padding: 80px 0;
  }

  #news .frontpage-post-thumbnail .subtitle {
    /* font-family: 'Montserrat-Medium'; */
    font-size: 13px;
    line-height: 16px;
    padding: 10px;
  }

  section#prefooter .menu-footer-menu-container {
    float: none;
  }

  footer.footer .nolabel p {
    width: 100%;
    max-width: unset;
  }

  footer.footer .organizer,
  footer.footer .partner,
  footer.footer .nolabel {
    margin-right: 50px;
  }
}

@media (max-width: 768px) {
  .wrapper {
    width: 100%;
  }
  /* header.header {
    min-height: 250px;
  }
  .custom-logo-link img {
    height: 180px;
    width: auto;
  } */
  .mainnav {
    padding-right: 20px;
  }
  #news {
    padding: 40px 20px;
  }
  section#welcome {
    padding: 40px 0;
  }
  #eventinfos {
    padding: 40px 0 0;
  }
  .frontpage-post-thumbnail img {
    width: 100%;
  }
  .custom-logo-link:before {
    height: 220px;
  }
  .subnav .menu {
    margin-top: 20px;
  }
  #gallery h2 {
    font-size: 24px;
  }
  .news-wrapper {
    display: block;
  }
  .news-wrapper article {
    flex: unset;
    padding: 0 0 20px !important;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color4);
  }
  .news-wrapper article:last-child {
    margin-bottom: 0;
    padding: 0 !important;
    border: 0;
  }
  section#register {
    padding: 20px 0;
  }
  .download-button {
    font-size: 24px;
  }
  .download-button:before {
    width: 34px;
    height: 34px;
    background-size: 100%;
  }
  section#prefooter .menu-footer-menu-container {
    float: none;
    display: block;
    margin-top: 10px;
  }
}

@media (max-width: 600px) {
  .wp-block-column:not(:first-child) {
      margin-left: 0;
  }
  footer.footer .nolabel:last-child p {
    width: 100%;
    max-width: unset;
    float: none;
  }
  footer.footer .organizer .logo-wrapper,
  footer.footer .partner .logo-wrapper,
  footer.footer .nolabel .logo-wrapper {
    height: 80px;
  }
  .subheader .headerimage {
    display: none;
  }
  .subheader {
    padding: 40px 0;
    overflow: hidden;
  }
  .subheader .page-title,
  .subheader .page-title h2 {
    margin-bottom: 0;
  }
  section#welcome .postimage {
    display: none;
  }
  section#welcome .postcontent {
    width: 100%;
    padding: 0;
  }
  section#bewerben .frontpage-page .thumbnail-wrapper {
    display: none;
  }
  section#bewerben .frontpage-page .content-wrapper {
    width: 100%;
    margin: 0;
    padding: 60px 0;
  }
  section#bewerben .frontpage-page .content-wrapper > * {
    width: 100%;
    padding: 0 80px;
    text-align: center;
  }

  #eventinfos .eventinfos-wrapper {
    display: block;
  }

  #eventinfos .eventinfo-item {
    padding: 0;
    margin-bottom: 30px;
  }

  #eventinfos .eventinfo-item:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 520px) {
  .download-button {
    margin: 35px 0;
  }
  .download-button:before {
    display: none;
  }
  .download-button {
    font-size: 18px;
    font-weight: 600;
    margin: 15px;
  }
  footer.footer .organizer .logo-wrapper,
  footer.footer .partner .logo-wrapper,
  footer.footer .nolabel .logo-wrapper {
    height: 65px;
  }
  footer.footer .partner .logo-wrapper img {
    margin-top: 16px;
  }
  .reihe.sieben-elemente .wpcf7-form-control .wpcf7-list-item {
    display: block;
    margin: 0;
  }
  .reihe.sieben-elemente {
    margin-bottom: 0;
  }
  .reihe.bewertung > label {
    width: 100%;
    margin-bottom: 5px;
  }
  .reihe.bewertung {
    padding-bottom: 15px;
  }
  .reihe.bewertung:last-child {
    padding: 0;
    margin: 0;
  }
  .reihe.bewertung:first-child .skala {
    display: none;
  }
  .reihe.bewertung span.wpcf7-form-control-wrap {
    width: 100%;
  }
  .reihe.bewertung .skala {
    width: 100%;
  }
  .reihe.bewertung span.wpcf7-form-control-wrap .wpcf7-form-control {
    height: 40px;
  }
  .reihe.bewertung span.wpcf7-form-control-wrap .wpcf7-form-control .wpcf7-list-item {
    position: relative;
    height: 38px;
  }
  .reihe.bewertung span.wpcf7-form-control-wrap .wpcf7-form-control .wpcf7-list-item .wpcf7-list-item-label,
  .reihe.bewertung span.wpcf7-form-control-wrap .wpcf7-form-control .wpcf7-list-item input {
    display: inline;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  .reihe.bewertung span.wpcf7-form-control-wrap .wpcf7-form-control .wpcf7-list-item .wpcf7-list-item-label {
    left: 30%;
    opacity: .5;
  }
  .reihe.bewertung span.wpcf7-form-control-wrap .wpcf7-form-control .wpcf7-list-item input {
    right: 30%;
  }
  button.menu-toggle {
    padding: 7px 0 0;
  }
  .custom-logo-link img {
    width: 300px;
  }
  nav.mainnav .menu-header-menu-container ul {
    right: 20px;
    top: 58px;
  }
  .mainnav {
    top: 46%;
  }
}

@media (max-width: 450px) {
  footer.footer .organizer,
  footer.footer .partner,
  footer.footer .nolabel {
    float: none;
    margin: 0 0 15px;
  }
  footer.footer .organizer span,
  footer.footer .partner span,
  footer.footer .nolabel span {
    display: block;
    text-align: center;
  }
  footer.footer .organizer .logo-wrapper,
  footer.footer .partner .logo-wrapper,
  footer.footer .nolabel .logo-wrapper {
    height: 85px;
  }
  footer.footer img {
    margin: 0 auto !important;
    display: block;
  }
}