@media screen and (max-width: 1000px) {
 .smallerh1 {
  font-size: 72px;
 }

  .threecolumn {
      grid-template-columns: 1fr 1fr;
  }
  #herosection {
    background-position: 66% center;;
  }

}

@media screen and (max-width: 850px) {
  .smallerh1 {
    font-size: 64px;
   }
  .teamgrid {
    grid-template-columns: 1fr 1fr;
  }
  .teamitem:nth-child(3n) {
  border-right: 1px solid #031e4522;
  }
  .teamitem:nth-child(2n) {
  border-right: none;
  }
  .teamitem-lebenslauf {
    font-size: 12px;
}
.footerlinkcolumn {
  width: 50%;
  font-size: 16px;
}
ul {
  padding-left: 20px;
}
.formbutton {
  display: flex;
  justify-content: center;
}
}


@media screen and (max-width: 700px) {

  .miet-grid {
    grid-template-columns: 1fr;
  }

  .miet-grid > :nth-child(2) {
    justify-self: start;
  }

  .smallerh1 {
    font-size: 54px;
   }
  
  h2, .subline {
    padding-right: 0px;
    padding-bottom: 0px;
}

.mobilegemma {
  display: flex; justify-content: center;
}

.sticky-column {
  position: initial
}

.squareimg {
  max-width: 100%;
}
.paddingmobile {
  padding-bottom: 24px;
}

.wrapper {
  width: 86%;
}
.wrappercontact {
  width: 86%;
}

.contact {
  max-width: 100%;
}

.contact p {
  max-width: 100%;
}

.section {
  padding: 64px 0px;
}

.twocolumn {
  grid-template-columns: 1fr;
  row-gap: 16px;
}
.wrappinger {
  grid-template-columns: 1fr;
  row-gap: 32px;
}

.threecolumn {
  grid-template-columns: 1fr;
}

.carimg {
  max-width: 100%;
}

header .twocolumn {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.imagegrid4 {
  gap: 16px;
}

footer .twocolumn {
  row-gap: 56px;
}

.btnwithmargin {
  margin-top: 32px;
  margin-bottom: 56px;
}


/*
.menulinksection {
  position: absolute;
    height: 100vh;
    z-index: -1;
    width: 100vw;
    top: 0;
    left: 0;
    background-color: var(--cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7%;
}
*/

.mobilemenubtn {
  display: block;
}

.accordionsbig .accordion:after {
  top: 28px;
}

.copyright {
  margin-top: 32px;
}

.footerheadline {
  max-width: 256px;
}

.teamgrid {
  grid-template-columns: 1fr;
}
.teamitem {
border-right: none;
}
.teamitem:nth-child(3n) {
  border-right: none;
  }



  .publikationen-authorsection {
    flex-direction: column;
  }
 
  .publikationen-links a:after {
    display: none;
  }

  .kontaktgrid {
    margin-top: 56px;
  }

  .texttemplate-text {
    margin-top: 56px;
  }
  .copyright {
    margin-top: 0px;
  }

  .footerwrapper {
    flex-direction: column;
  }
  
  .footercontact {
      padding: 24px 0px 24px 0px
  }
  
  .footertext {
    align-items: center;
  }
}

@media screen and (max-width: 450px) {
  h1 {
    font-size: 64px;
  }
  .smallerh1 {
    font-size: 52px;
   }
  h2 {
    font-size: 30px;
}
.footerheadline {
  max-width: 235px;
}
.longh1 {
  font-size: 40px;
}
.kontaktgrid {
  grid-template-columns: 1fr;
}
.kontaktgrid p {
  font-size: 16px;
}




.menubutton {
  font-size: 14px;
}

.textwrap span {
  padding: 18px 30px 45px 0px;
  font-size: 12px;
}


  #herosection {
    background-position: 66% center;;
  }

  .subline {
    font-size: 16px;
  }

  ul {
    font-size: 16px;
  }

  form textarea {
    font-size: 14px;
  }

  form input {
    font-size: 14px;
  }

  .buttonwhite {
    font-size: 16px;
  }

  .iconwrapper {
    justify-content: space-between;
  }

  .wrapperspecial {
    width: 100%
  }
  
  .buttontext {
    font-size: 14px
  }

  .round-button {
    width: 45px;
    height: 45px;
  }

  .menubutton:hover {
    background-color: #122847bb;
    transform: scale(1) !important;
}

.menubutton:active {
  background-color: #122847bb;
  transform: scale(1) !important; /* Ensure it does not scale when clicked */
}

}

/* Styles for devices that do not support hover (e.g., touchscreens) */
@media (hover: none) {
  .menubutton:hover {
    background-color: #122847bb;
    transform: scale(1) !important;
}

.menubutton:active {
  background-color: #122847bb;
  transform: scale(1) !important; /* Ensure it does not scale when clicked */
}
}