@font-face {
  font-family: "ArchivoBlack-Regular";
  src: url(/assets/fonts/ArchivoBlack-Regular.ttf);
}
@font-face {
  font-family: "DroidSans";
  src: url(assets/fonts/DroidSans.ttf);
}

body {
  margin: 0;
}
.sel {
  color: chocolate;
}
.burger-menu {
  display: none;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}
h1 {
  font-family: ArchivoBlack-Regular;
  color: chocolate;
  margin-left: 128px;
  cursor: default;
}
h2 {
  cursor: default;
}
h3 {
  cursor: default;
}
.text {
  margin: 16px;
}
p {
  font-family: "DroidSans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

a {
  font-size: large;
  color: black;
  margin-left: 16px;
  text-decoration: none;
  font-family: ArchivoBlack-Regular;
}
a:hover {
  color: chocolate;
}
button {
  font-family: ArchivoBlack-Regular;
  font-size: 24px;
  background-color: chocolate;
  border-radius: 16px;
  padding: 16px;
  color: white;
  border: 1px solid white;
}
button:hover {
  cursor: pointer;
  background-color: white;
  color: chocolate;
  border-color: chocolate;
}
/*Navigation*/
nav {
  position: sticky;
  top: 0;
  padding: 16px;
  padding-right: 32px;
  background: white;
  border-bottom: 1px solid chocolate;

  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.Logo {
  height: 10vh;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Dropdown */
.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;

  list-style: none;
  margin: 0;
  padding: 8px 0;

  background: white;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.has-submenu:hover .submenu {
  opacity: 1;
  pointer-events: auto;
}

.submenu a {
  color: grey;
  display: block;
  padding: 8px 16px;
  white-space: nowrap;
}
.submenu a:hover {
  color: chocolate;
}

.align-right .submenu {
  left: auto;
  right: -32px;
}
/*Footer*/
footer {
  display: flex;
  border-top: 1px solid chocolate;
  padding: 32px 16px;
  justify-content: center;
}
footer a {
  color: gray;
}

/* fade in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in:nth-child(1) {
  transition-delay: 0.1s;
}
.fade-in:nth-child(2) {
  transition-delay: 0.2s;
}
.fade-in:nth-child(3) {
  transition-delay: 0.3s;
}
.fade-in:nth-child(4) {
  transition-delay: 0.4s;
}
.fade-in:nth-child(5) {
  transition-delay: 0.5s;
}

.btn {
  display: inline-block;
  padding: 16px;
  background: chocolate;
  color: white;
  border-radius: 16px;
  text-decoration: none;
  font-weight: bold;
  font-size: 24px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  background-color: white;
  border: 1px solid chocolate;
}


/* --- Mobile Ansicht --- */
@media (max-width: 768px) {
 nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: white !important; /* Damit er sich vom Hintergrund abhebt */
  }

  .burger-menu {
    display: flex !important; /* WICHTIG */
    flex-direction: column !important;
    justify-content: space-around;
    width: 30px;  /* Feste Breite */
    height: 25px; /* Feste Höhe */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    margin-right: 12px; /* Schiebt ihn nach rechts */
  }

  /* Die drei Striche */
  .burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: chocolate !important; /* Deine Farbe */
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
  }

  /* Das Menü wird zum Vollbild-Overlay */
  .nav-links {
    display: none; /* Standardmäßig versteckt */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    margin: 0;
    padding: 0;
  }

  /* Wird per JS ausgelöst */
  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 15px 0;
    text-align: center;
  }

  /* Submenüs untereinander anzeigen */
  .submenu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    display: block;
    box-shadow: none;
    padding: 0;
  }

  /* Animation zum X */
  .burger-menu.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger-menu.open span:nth-child(2) { opacity: 0; }
  .burger-menu.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}