* {
  margin: 0;
  padding: 0;
  color: #D8F7D5;
  box-sizing: border-box;
}

body {
  position: relative;
  padding-top: 100px;
  padding-bottom: 80px;
  background-repeat: no-repeat;
  background-position: center top;
  background-color: #31ae4e;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS';
  cursor: url('../bilder/Icon/MausZombie.png'), auto;
  overflow-x: hidden;
}

body.home {
  background-image: url(../bilder/Titel_bilder/home.JPG);
  background-size: cover;
  background-position: top;
}

body.uebermich {
  background-image: url(../bilder/Titel_bilder/Lostplace.jpg);
  background-size: cover;
  background-position: top;
}


/* === HEADER / NAV === */
.header {
  position: fixed;
  top: 0;
  display: flex;
  align-items: center;
  background: #22983D;
  padding: 1em 2em;
  width: 100%;
  z-index: 10;
}

.header img {
  max-height: 60px;
  display: block;
  margin-right: 1em;
}

.navbar {
  margin-left: auto;
  z-index: 10;
}

.nav-links {
  border: 3px solid #0c310c;
  border-radius: 5%;
  position: fixed;
  list-style: none;
  display: none;
  flex-direction: column;
  background-color: #22983D;
  top: 70px;
  right: 2em;
  width: 160px;
  padding: 10px;
  z-index: 20;
}

.nav-links.active {
  display: flex;
}

.nav-links li {
  font-size: 18px;
  text-align: center;
  margin: 10px 0;
}

.nav-links a {
  color: #D8F7D5;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
}

.menu-toggle {
  position: fixed;
  right: 2em;
  top: 1.5em;
  width: 40px;
  height: 40px;
  background-image: url('../bilder/Icon/Hamburger-Icon.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  z-index: 21;
}

/* === CONTENT BOXES === */
.content-wrapper {
  display: flex;
  flex-direction: column;
  padding: 3em 1em 10em 1em;
  gap: 5em;
}

.mich-box,
.warum-box,
.yo,
.mich,
.warum,
.w-graffiti {
  background-color: rgba(14, 60, 25, 0.8);
  border: 2px solid #216321;
  border-radius: 10px;
  padding: 1em;
  max-width: 400px;
  width: 60%;
  margin: 1em auto;
  text-align: left;
  position: relative;
  z-index: 3;
}

.wüste {
  margin: 3em;
  max-width: 60%;
  transform: translateX(28%);
}

/* === HOMEPAGE CONTENT === */
.logo {
  max-height: 60px;
  height: auto;
}

.willkommen {
  position: absolute;
  margin-top: 0.5em;
  margin-bottom: 18em;
  top: 10%;
  left: 45%;
  transform: translateX(-50%);
  z-index: 5;
}

.willkommen-img {
  display: block;
  margin: 0 auto 2em auto;
  max-width: 600px;
  width: 100%;
  height: auto;
}

.hometext {
  margin-top: 45em;
}

.hometext p {
  font-size: 1.2em;
  margin: 0;
  padding: 1.5em;
  line-height: 1.6;
  max-width: 800px;
  margin: auto;
  border: 2px solid rgb(130, 221, 130);
  border-radius: 2em;
  background-color: rgba(10, 92, 7, 0.85);
}

/* Home-Text Animation */
.hometext {
  opacity: 0;
  animation: text-drop-in 2s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: 0.6s; /* startet leicht später, nach dem Willkommen-Logo */
}

@keyframes text-drop-in {
  from {
    opacity: 0;
    transform: translateY(-520px); /* kommt von oben */
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* --- Willkommen kommt von Hinten ---*/

.willkommen-img {
  opacity: 0;
  animation: pop-in 1s cubic-bezier(.22,.61,.36,1) forwards;
}

.willkommen-img { animation-delay: 0.5s; }

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.5) translateZ(-300px); /* klein & weit hinten */
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateZ(0); /* normale Größe */
    filter: blur(0);
  }
}

/* === IMAGE GRID === */
.image-showcase {
  width: 100%;
  padding: 3em 1em;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 3;
  flex-direction: column;
}

.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  max-width: 1200px;
  width: 100%;
}

.image-grid img {
  width: auto;
  max-width: 100%;
  height: 20%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.image-grid img:hover {
  transform: scale(1.05);
}

/* === FOOTER / BACK BUTTON === */
.footer {
  position: fixed;
  bottom: 0;
  background: #22983D;
  color: #D8F7D5;
  text-align: center;
  width: 100%;
  padding: 1em;
  z-index: 6;
  font-size: 14px;
}

.footer a:hover {
  text-decoration: underline;
  color: #fff;
}

.footer-standing-img {
  position: fixed;
  bottom: 40px;
  left: 2%;
  max-width: 25vw;
  /* statt fixem height, viewport-basiert */
  height: auto;
}

.back {
  position: fixed;
  left: 2%;
  bottom: 2%;
  z-index: 100;
}

/* === RESPONSIVE BREAKPOINTS === */
@media (max-width: 1024px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  body.home {
    background-image: url(../bilder/Titel_bilder/home2.JPG);
    background-size: cover;
    background-position: top;
  }

  body.uebermich {
    background-image: url(../bilder/Titel_bilder/Lostplace2.jpg);
    background-size: cover;
    background-position: top;
  }


  .nav-links {
    width: 200px;
    right: 1em;
    top: 5em;
  }

  .willkommen {
    top: 3.5em;
    left: 50%;
    justify-content: center;
    padding: 1em;
  }

  .mich-box,
  .warum-box {
    margin-left: auto;
    margin-right: 5%;
    padding-left: 1em;
    padding-right: 1em;
    max-width: 50%;

    .hometext p {
      font-size: 1em;
      padding: 1em;
    }

    .menu-toggle {
      width: 35px;
      height: 35px;
      top: 1em;
      right: 1em;
    }

    .image-grid img {
      width: 45%;
    }
  }

  @media (max-width: 768px) {
    .header img {
      max-height: 40px;
    }

    .wüste {
      transform: translateX(20%);
      width: 100%;
    }

    .mich-box,
    .warum-box {
      margin-left: auto;
      margin-right: 5%;
      padding-left: 2em;
      padding-right: 2em;
      max-width: 50%;
    }

    .nav-links {
      width: 70%;
    }

    .hometext p {
      font-size: 0.95em;
    }

    .willkommen {
      top: 2.5em;
      left: 50%;
      justify-content: center;
      padding: 1em;
    }

    .footer-standing-img {
      max-width: 35vw;
      /* z.B. bisschen größer für Tablet */
    }
  }

  @media (max-width: 480px) {
    .hometext p {
      font-size: 0.9em;
      padding: 0.8em;
    }

    body.home {
      background-image: url(../bilder/Titel_bilder/home3.jpg);
      background-size: cover;
    }

    .header {
      flex-direction: column;
      align-items: flex-start;
      width: 100%;
    }

    .nav-links li {
      font-size: 18px;
    }

    .menu-toggle {
      width: 10vw;
      height: 10vw;
      top: 0%;
      right: 4%;
      background-size: contain;
    }

    .nav-links {
      width: 40%;
      top: 5%;
      right: 0;
      padding: 10px 0;
    }

      .mich-box,
    .warum-box {
      margin-left: auto;
      margin-right: 5%;
      padding-left: 2em;
      padding-right: 2em;
      max-width: 40%;
    }

    .wüste {
      margin: 3em;
      max-width: 60%;
      transform: translateX(14%);
    }
  }

  .content-wrapper {
    padding: 1em 1em 10em 1em;
    gap: 1em;
  }

  .mich-box,
  .warum-box,
  .yo,
  .mich,
  .warum,
  .w-graffiti {
    padding: 1em;
    font-size: 14px;
    max-width: 90%;
  }

  .footer-standing-img {
    max-width: 40vw;
  }

  .footer {
    font-size: 14px;
    max-width: 100vw;
    overflow-x: hidden;
  }
}