@import url('https://fonts.cdnfonts.com/css/walt-disney-script');

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Walt Disney Script", sans-serif;
  display: flex;
  font-size: 40px;
  scroll-behavior: smooth;
}

nav {
  width: 220px;
  background-color: #1e293b;
  color: white;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  padding-top: 0px;
  scroll-behavior: smooth;
}

nav ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

nav ul li {
  margin: 5px 0;
}

nav ul li a {
  color: #cbd5e1;
  text-decoration: none;
  display: block;
  padding: 10px 20px;
  border-radius: 6px;
  transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: #334155;
  color: #fff;
}

.home {
  visibility: hidden;
  height: 50px !important;
  position: absolute;
  margin: -1350px;

}

main {
  margin-left: 220px;
  padding: 30px;
  flex: 1;
  background-color: #f8fafc;
  color: #0f172a;
  min-height: 100vh;
}

header {
  width: 100%;
  align-items: center;
  font-size: 120px;
}

.hero {
  width: 95%;
  background-color: #4CAF50;
  color: white;
  text-align: center;
  padding: 50px;
  animation: slideDown 2.5s ease-in-out;
  border-radius: 10px;
  ;
}

/* .hero:hover {
    opacity: 0.8;
  } */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero img {
  height: 100%;
  width: 90%;
  align-items: center;
  object-fit: contain;
  margin-top: -200px;
}

.stammbaum {
  width: 600px;
  max-width: 90%;
  cursor: pointer;
  transition: .2s;
  display: block;
  margin-top: 20px;
}

.stammbaum:hover {
  opacity: 0.8;
}

.fullscreen {
  display: none;
}

.fullscreen:target {
  display: flex;
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
}

.fullscreen img {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: pointer;
  margin: auto;
}

.stammbaum-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 4%;
}

.stammbau-wrapper {
  flex: 1 1 350px;
  display: flex;
  justify-content: center;
}

.video-wrapper {
  flex: 1 1 350px;
  display: flex;
  justify-content: center;
}

.video-wrapper iframe {
  width: 600px;
  max-width: 90%;
  aspect-ratio: 16/9;
}

.video-thumb iframe {
  width: 500px;
  max-width: 100%;
  aspect-ratio: 16/9;
  cursor: pointer;
  transition: .2s;
  padding: 20px;
}

.video-thumb iframe:hover {
  opacity: 0.8;
}

.video-lightbox {
  display: none;
}

.video-lightbox:target {
  display: flex;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.video-lightbox iframe {
  width: 90vw;
  height: 50vw;
  max-width: 1200px;
  max-height: 70vh;
  border-radius: 10px;
  cursor: pointer;
}

section {

  height: 200vh;
}

h1 {
  margin-top: -70px;
  text-align: center;
  transition: font-size 0.3s ease;
  cursor: pointer;
}

h1:hover {
  font-size: 280px;
}

h2 {
  border-bottom: 2px solid #334155;
  padding-bottom: 10px;
}

.no-underline {
  text-decoration: none;
  color: #005bbb;
  font-size: 60px;
  transition: color 0.3s ease-in-out;
}

.no-underline:hover {
  color: #ffcc00;
  text-decoration: solid;
}

.menu-toggle {
  width: 80%;
  display: block;
  background-color: #1e293b;
  color: #cbd5e1;
  text-decoration: none;
  padding: 10px 20px;
  font-size: 37px;
  cursor: pointer;

  border-radius: 6px;
  transition: background-color 0.3s, color 0.3s;
}

.menu-toggle:hover {
  background-color: #334155;
  color: #fff;
}

.menu-toggle {
  margin-top: 10px;
}


.nav {
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s easy;
}

.nav.closed {
  max-height: 0;
  opacity: 0;
}

@media (max-width: 992px) {

  nav {
    width: 100%;
    height: auto;
    position: relative;
  }

  main {
    margin-left: 0 !important;
    padding: 20px;
  }

  .nav {
    max-height: 0;
    overflow: hidden;
  }

  .nav.open {
    max-height: 600px;
  }

  .menu-toggle {
    display: block;
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    padding: 15px;
    font-size: 28px;
  }

  /* Hero */
  h1 {
    font-size: 70px;
  }

  h1:hover {
    font-size: 90px;
  }

  .hero {
    padding: 20px;
  }

  .hero img {
    width: 100%;
    margin-top: -80px;
  }

  /* Text */
  body {
    font-size: 26px;
  }

  h2 {
    font-size: 36px;
  }

  .stammbaum-container {
    flex-direction: column;
    align-items: center;
  }

  .stammbaum {
    width: 100%;
  }

  .video-thumb iframe {
    width: 100% !important;
    height: auto;
  }

  section {
    height: auto;
    margin-bottom: 80px;
  }
}

@media (max-width: 576px) {

  h1 {
    font-size: 48px;
  }

  h1:hover {
    font-size: 60px;
  }

  body {
    font-size: 22px;
  }

  nav ul li a {
    font-size: 22px;
  }

}

.contact-form {
  max-width: 600px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  font-size: 28px;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 26px;
  padding: 10px 15px;
  border: 2px solid #334155;
  border-radius: 8px;
  background: #f1f5f9;
  color: #0f172a;
}

.contact-form button {
  font-family: "Walt Disney Script", sans-serif;
  font-size: 38px;
  padding: 12px;
  background: #4CAF50;
  color: white;
  border: 2px solid #334155;
  border-radius: 8px;
  cursor: pointer;
  transition: .2s;
}

.contact-form button:hover {
  background: #3b9d40;
}

.form-status {
  margin-top: 10px;
  font-size: 22px;
  color: #b91c1c;
  /* rot für Fehler */
}