html {
  scroll-behavior: smooth;
}

body {
  margin: .1vw;
  margin-left: 10vw;
  margin-right: 10vw;
  padding: 0;
  display: grid;
  grid-template-rows: .01fr .1fr 1fr .01fr;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "header header header header"
    "nav nav nav nav"
    "main main main main"
    "footer footer footer footer";
  font-family: "Atkinson Hyperlegible Next", serif;
  font-size: 1.5rem;
  font-style: normal;
  height: 100vh;
  background: linear-gradient(60deg, #32908F, #A3E7FC, #26C485);
  background-size: cover;
  background-attachment: fixed;
}

header {
  grid-area: header;

  h1 {
    text-align: center;
    font-size: 2.5rem;
  }


}

nav,
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  grid-area: nav;

  ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  li {
    float: left;
  }

  li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
  }

  li a:hover {
    background-color: rgba(255, 255, 255, 0.5);
    color: black;
    opacity: .5;
    transition: .5s;
  }
}

main {
  grid-area: main;
  padding-top: 1vh;
  padding-bottom: 1vh;



  .ganze-seite,
  .box {
    background-color: rgba(255, 255, 255, 0.5);
    color: #333;
    padding: 2vw;
    margin-bottom: 5vh;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .box {
    width: 34vw;

    @media screen and (max-width: 700px) {
      width: 100vw;
    }
  }

  .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2vw;
  }

  .img-box {
    overflow: hidden;
    width: 30vw;
    height: 30vw;
    margin: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease-in-out;
  }

  .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.5s ease-in-out;
  }

  .img-box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }

  .img-box:hover img {
    transform: scale(1.1);
  }

  @media screen and (max-width: 700px) {
    .img-box {
      width: 70vw;
      height: 70vw;
      margin: 10px;
    }

    .img-box img {
      border-radius: 10px;
    }

    .img-box:hover {
      transform: scale(1.03);
    }

    .img-box:hover img {
      transform: scale(1.05);
    }
  }

}

footer {
  grid-area: footer;
}

@media screen and (max-width: 700px) {
  header {
    h1 {
      font-size: 2rem;
    }
  }

  nav,
  footer {
    ul {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      padding: 0;
      margin: 0;
    }

    li {
      flex: 30%;
      text-align: center;
      margin: 5px;
      box-sizing: border-box;
    }

    li a {
      padding: 12px 20px;
    }
  }
}

.faq {
  text-align: center;

  p {
    padding: 1.5vw;
    color: #333;
  }
}

details {
  margin-bottom: 1vh;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid #32908f8a;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

summary {
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  color: #32908fde;
  padding: 1vw;
  border-radius: 5px;
}

details[open] summary {
  border: none;
}