* {
  margin: 0;
  padding: 0;
  color: #D8F7D5;
  box-sizing: border-box;
}

body {
  background-image: url(../bilder/Titel_bilder/dimension.jpg);
  position: relative;
  padding-top: 100px;
  padding-bottom: 80px;
  background-repeat: no-repeat;
  background-position: top;
  background-size: cover;
  background-color: #31ae4e;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS';
  cursor: url('../bilder/Icon/MausZombie.png'), auto;
  overflow-x: hidden;
}

.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;
}

.logo {
  max-height: 60px;
  height: auto;
}

.sfga {
  position: relative;
  z-index: 4;
  margin-top: 30%;
  left: 5%;
  padding: 1%;
}

.lehre {
  position: relative;
  z-index: 4;
  margin-top: 30%;
  left: 5%;
  padding: 1%;
}

.privat {
  position: relative;
  z-index: 4;
  margin-top: 30%;
  left: 5%;
  padding: 1%;
}

.video {
  position: relative;
  z-index: 4;
  margin-top: 30%;
  left: 10%;
  padding: 1%;
}

/* Basis-Effekt für alle drei */
.sfga {
  opacity: 0;
  animation: fly-in 0.7s ease-out forwards;
}

/* Richtungen individuell */
.sfga   { --offset-x: 320px; animation-delay: 0.1s; } /* kommt von rechts */

/* Keyframes für horizontale/vertikale Bewegung */
@keyframes fly-in {
  from {
    opacity: 0;
    transform: translate(var(--offset-x,0), var(--offset-y,0)) scale(0.95);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translate(0,0) scale(1);
    filter: blur(0);
  }
}

.lehre {
  opacity: 0;
  animation: pop-in 1s cubic-bezier(.22,.61,.36,1) forwards;
}

.lehre  { animation-delay: 0.3s; }

/* Keyframes für “aus der Tiefe” */
@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);
  }
}

.privat {
  opacity: 0;
  animation: drop-in 1.5s cubic-bezier(.22,.61,.36,1) forwards;
}

.privat { animation-delay: 0.5s; }

@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(-520px) scale(0.95); /* startet oberhalb */
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.video {
  opacity: 0;
  animation: fly-in 1s ease-out forwards;
}

.video { --offset-y: 120px;  animation-delay: 0.8s; } /* kommt von unten */

@keyframes fly-in {
  from {
    opacity: 0;
    transform: translate(var(--offset-x,0), var(--offset-y,0)) scale(0.95);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translate(0,0) scale(1);
    filter: blur(0);
  }
}

.footer {
  position: fixed;
  bottom: 0;
  background: #22983D;
  color: #D8F7D5;
  text-align: center;
  width: 100%;
  z-index: 5;
  cursor: url('../bilder/Icon/MausZombie.png'), pointer;
}

@media (max-width:1300px) {

  body {
    overflow-x: hidden;
    font-size: 16px;
    background-image: url(../bilder/Titel_bilder/dimension.jpg);
    background-size: cover;
    background-position: 0 2%;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .header img {
    height: auto;
    padding: 0;
  }

  .menu-toggle {
    width: 5%;
    height: 5%;
    top: 3%;
    right: 10%;
    background-size: contain;
  }

  .nav-links {
    width: 12%;
    top: 5%;
    right: 6.5%;
    padding: 10px 0;
  }

  .nav-links li {
    font-size: 18px;
  }
}

  .footer {
    position: fixed;
    bottom: 0;
    font-size: 14px;
    padding: 1%;
    max-width: 100%;
    margin-top: 1%;
    z-index: 5;
  }

@media (max-width:970px) {

  body {
    overflow-x: hidden;
    font-size: 16px;
    background-image: url(../bilder/Titel_bilder/dimension2.jpg);
    background-size: cover;
    background-position: 0 2%;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .header img {
    height: auto;
    padding: 0;
  }

  .menu-toggle {
      width: 5%;
      height: 5%;
      top: 0.3%;
      right: 3%;
      background-size: contain;
  }

  .nav-links {
    width: 12%;
    top: 5%;
    right: 6.5%;
    padding: 10px 0;
  }

  .nav-links li {
    font-size: 18px;
  }

    .sfga {
    width: 55%;
    position: absolute;
    z-index: 5;
    top: 20%;
    left: 3%;
    padding: 1%;
  }

  .lehre {
    width: 55%;
    position: absolute;
    z-index: 10;
    top: 110%;
    left: 3%;
    padding: 1%;
  }

  .privat {
    width: 55%;
    position: absolute;
    z-index: 50;
    top: 200%;
    left: 3%;
    padding: 1%;
    z-index: 1;
  }

  .footer {
    position: fixed;
    bottom: 0;
    font-size: 14px;
    padding: 1%;
    max-width: 100%;
    margin-top: 1%;
    z-index: 5;
  }

}

@media (max-width:700px) {

  body {
    overflow-x: hidden;
    font-size: 16px;
    background-image: url(../bilder/Titel_bilder/dimension2.jpg);
    background-size: cover;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .header img {
      max-height: 40px;
  }

  .menu-toggle {
    width: 5%;
    height: 5%;
    top: 0.5%;
    right: 10%;
    background-size: contain;
  }

  .nav-links {
    width: 12%;
    top: 5%;
    right: 6.5%;
    padding: 10px 0;
  }

  .nav-links li {
    font-size: 18px;
  }

  .sfga {
    width: 55%;
    position: absolute;
    z-index: 5;
    top: 30%;
    left: 3%;
    padding: 1%;
  }

  .lehre {
    width: 55%;
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 3%;
    padding: 1%;
  }

  .privat {
    width: 55%;
    position: absolute;
    z-index: 50;
    top: 170%;
    left: 3%;
    padding: 1%;
    z-index: 1;
  }

  .footer {
    position: fixed;
    bottom: 0;
    font-size: 14px;
    padding: 1%;
    max-width: 100%;
    margin-top: 1%;
    z-index: 5;
  }

}

@media (max-width:480px) {

  body {
    overflow-x: hidden;
    font-size: 16px;
    background-image: url(../bilder/Titel_bilder/dimension3.jpg);
    margin-top: 3em;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .menu-toggle {
    width: 10vw;
    height: 10vw;
    top: 0%;
    right: 4%;
    background-size: contain;
  }

  .nav-links {
    width: 40%;
    top: 5%;
    right: 0;
    padding: 10px 0;
  }

  .nav-links li {
    font-size: 18px;
  }

  .sfga {
    width: 55%;
    position: relative;
    z-index: 5;
    top: 63%;
    left: 3%;
    padding: 1%;
  }

  .lehre {
    width: 55%;
    position: relative;
    z-index: 50;
    top: 50%;
    left: 3%;
    padding: 1%;
  }

  .privat {
    width: 55%;
    position: relative;
    z-index: 50;
    top: 34%;
    left: 3%;
    padding: 1%;
    z-index: 1;
  }

  .footer {
    font-size: 14px;
    max-width: 100vw;
    overflow-x: hidden;
  }

}