.welcome {
    background: url(/images/Bodenbeschichtung_16.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 50px;
    padding: 0;
    height: 500px;
    width: 100%;
  }
  
  .welcome h1 {
    font-size: 3em;
    text-align: center;
    color: white;
    display: inline-block;
    background-color: hsla(32, 100%, 50%, 0.562);
    padding: 20px;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1;
    border-radius: 8px;
    margin-bottom: 20px;
  }
  
  .welcome-headline {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    top: 100px;
    z-index: 1;
    animation-name: slideUp;
    animation-duration: 2s;
  }
  
  .welcome p {
    color: white;
    text-align: center;
    padding: 20px;
    background-color: hsla(32, 100%, 50%, 0.562);
    font-size: 1.3em;
    line-height: 1;
    border-radius: 8px;
  }

.content{
    display: grid;
    grid-template-columns: auto auto;
    gap: 10px;
    padding: 10px;
    margin-top: 40px;
    justify-content: center;
}

.item-headline{
    font-size: 1.2em;
    font-weight: bold;
}
.item-headline hr{
    display: flex;
    margin-top: 10px;
    border-bottom: 1px solid #ff8000;
    width: 1vw;
    float: left;
}

.item1{
  width: 40vw;
}

.item1-content{
    padding-top: 20px;
    margin-top: 2rem;
    padding-left: 20px;
    line-height: 2em;
}

.item2-content{
  margin-top: 2rem;
}

.item1 li{
    font-weight: normal;
}

.item2 p{
  margin-bottom: 10px;
  font-size: 0.8em;
  font-weight: normal;
}

.item2 h6{
  margin-bottom: 10px;
}

.img-gallery{
  width: 100%;
  margin: 50px auto 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 4rem;
}

.img-gallery img{
  width: 24rem;
  height: 24rem;
  transition: transform 0.5s ease-in-out;
  border-radius: 20px;
  box-shadow: 0 10px 7px rgba(68, 77, 136, 0.6);
  cursor: pointer;
}

#img-gallery div{
  position: relative;
}

#img-gallery div p{
  position: absolute;
  top: 0;
  left: 0;
  right: 8rem;
  bottom: 5rem;
  margin: auto;
  color: #fff;
  background-color: rgba(0,0,0,0.5);
  width: 4rem;
  height: 4rem;
  font-size: 2rem;
  border-radius: 8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.img-gallery img:hover{
  transform: scale(1.1);
  border-radius: 20px;
  box-shadow: 0 10px 7px rgba(68, 77, 136, 0.6);
}

.image0{
  grid-column: 1 / span 2;
  grid-row: 1;
}

.image1{
  grid-column: 3 / span 3;
  grid-row: 1;

}

.image2{
  grid-column: 3 / span 3;
  grid-row: 2;
  margin-top: -18rem;
}

.image0 img{
  width: 100%;
  height: 50vh;
}

.image1 img{
  width: 18rem;
  height: 13rem;
}

.image2 img{
  width: 18rem;
  height: 13rem;
}

.full-img{
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.full-img img{
  width: 90%;
  max-width: 1000px;
}

.full-img span{
  position: absolute;
  top: 5%;
  right: 5%;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  z-index: 2000;
}

#fullImgBox button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#fullImgBox button:hover {
  background-color: rgba(0,0,0,0.7);
}

#prev {
  left: 10px;
}

#next {
  right: 10px;
}

.item3{
  width: 146%;
  margin-top: 5rem;
}

@media screen and (max-width: 768px){

  .welcome {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto;
    background-size: auto;
    background-attachment: local;
    background-position: center;
  }

  .welcome h1 {
    font-size: 1.7em;
    width: 95%;
  }

  .welcome-headline {
    top: 0;
  }

  .welcome-headline p {
    font-size: 1.2em;
    margin: 10px 0px;
    padding: 10px;
    width: 75%;
  }

  .item-headline{
    width: 23rem;
    margin-left: 1rem;
  }

  .item-headline hr{
    width: 2rem;
  }

  .item1 h1{
    font-size: 1.6rem;
  }

  .item1-content{
    width: 23rem;
    padding-left: .2rem;
    padding-top: .2rem;
  }

  .item1-content li{
    font-size: 1rem;
    margin-top: .5rem;
  }

  .item2 h1{
    margin-top: 3rem;
  }

  .item2-content{
    font-size: 1.2rem;
  }

  .item2-text-1, .item2-text-2{
    margin-bottom: 2rem;
  }

  .content{
    display: flex;
    flex-direction: column;
  }

  .img-gallery{
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 20rem;
    margin: 2rem 1rem 3rem 1rem;
  }
  .img-gallery img{
    width: 20rem;
    height: 20rem;
  }

  .image0{
    margin-bottom: -2rem;
  }

  .image1{
    margin-bottom: 17rem;
  }

  #img-gallery div p{
    top: 0;
    left: 0;
    right: 0rem;
    bottom: 0rem;
  }

  .item3{
    width: 100%;
  }

  #fullImgBox button {
    top: 90%;
  }

}

@media screen and (min-width: 1930px){

  .item3{
    width: 140%;
  }

  .image0 img{
    height: 35vh;
  }

  .image2{
    margin-top: -18rem;
  }

  #img-gallery div p{
    position: absolute;
    top: 0;
    left: 0;
    right: 26.5rem;
    bottom: 5rem;
    color: #fff;
    background-color: rgba(0,0,0,0.5);
    width: 4rem;
    height: 4rem;
    font-size: 2rem;
    border-radius: 8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
  }

  .item2{
    margin-left: -15rem;
  }

}