@media (max-width: 1380px) {
  :root {
    --outer_padding: 0px;
    --padding: 3vw;
    --h1: 3.5rem;
  }
}

@media (max-width: 1210px) {
  :root {
    --headerfontsize: 2rem;
    --headline: 3rem;
    --h1: 3rem;
    --small_headline: 2rem;
    --subheadline: 2rem;
    --textsize: 1.6rem;
    --textsizemobile: 1.5rem;
    --padding: 2rem;
  }

  .subpages-list-wrapper {
    padding: var(--padding);
  }
}

@media (pointer: coarse), (max-width: 1210px) {
  header .header-items ul li a {
    color: var(--white);
    font-size: var(--subheadline);
  }

  header .header-items ul {
    padding-left: var(--padding);
    padding-right: 16rem;
    /* padding-top: calc(var(--padding) + var(--padding)); */
    padding-top: var(--padding);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 5rem;
    gap: 0.5em;
  }

  html.flexbox .mobilenav {
    display: flex;
    position: absolute;
    /* top: 8.75rem; */
    top: 0;
    background-color: var(--blue);

    width: fit-content;
    max-width: 100%;

    /* left: 0px; */
    justify-content: center;
    align-items: center;
    right: 0rem;
    height: auto;
    z-index: 3;

    height: 100vh;
    opacity: 0.95;

    display: none;
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #hamburger {
    display: block;
  }

  .menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-has-children {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  header .header-items ul .sub-menu {
    opacity: 1;
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    visibility: visible;

    padding: 0 0 0 1em;
    margin: 1em 0;
    border-left: 2px solid;
  }

  header .header-items ul .sub-menu li a {
    font-size: var(--textsize);
  }
}

@media (max-width: 768px) {
  #hamburger {
    display: block;
  }

  .subpage-thumb img {
    aspect-ratio: auto;
    width: 100%;
  }

  .subpages-list-wrapper {
    background-attachment: fixed;
  }

  .cta-buttons {
    position: static;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    background-image: linear-gradient(var(--white) 60%, var(--gray) 60%);
  }

  .cta-button:nth-child(odd) {
    transform: scaleX(-100%);
  }

  .post_intro {
    background-image: linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.9) 50%,
      rgba(255, 255, 255, 0) 100%
    );
    padding: 10vmax var(--large_padding) 5vmax;
  }

  .post_intro.no_thumbnail {
    background-image: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.9) 50%,
      rgba(255, 255, 255, 0) 100%
    );
    padding: 5vmax var(--large_padding) 5vmax;
  }

  .toggler:hover {
    transform: none !important;
  }
}

@media (max-width:466px) {
   header .header-items ul {
    padding-left: var(--padding);
    padding-right: 0;
  }
  html.flexbox .mobilenav {
    width: 100%;
  }
}
