
@font-face {
  font-family: 'Nunito';
  src: url('/font/Nunito-VariableFont_wght.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

.menu-button.contact {
  position: relative;
  cursor: pointer;
}

p{
  margin-top: 0;
}

.contact-box {
  position: absolute;
  top: 0;
  left: 100%;
  background-color: black;
  border: black 3px solid;
  color: white;
  padding: 0.6rem 1.2rem;
  width: 46vw;
  height: auto;
  border-radius: 2rem;
  border: 3px solid black;
  box-shadow: 0 0 8px rgba(0, 0, 0, .2), 0 0 4px rgba(0, 0, 0, .25);
  font-family: 'Nunito';
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transform-origin: top left;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

@media only screen and (max-width: 900px) {
  .contact-box {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .contact-box.visible {
    visibility: visible;
    transform: scale(0.95);
    opacity: 1;
  }
}


.menu-button.contact:hover .contact-box {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.contact-buttons {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap; /* optional: wrap if screen too narrow */
}

.contact-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: white;
  color: black;
  border: black 3px solid;
  text-decoration: none;
  border-radius: 4rem;
  font-weight: bold;
}

.contact-link:hover {
  background: black;
  color: white;
  border: white 3px solid;
}

/* Make contact-box work with menu-button2.contact */

.menu-button2.contact {
  position: relative;
  cursor: pointer;
}

.menu-button2.contact:hover .contact-box {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

/* Override contact-box style for menu-button2.contact for yellow theme */
.menu-button2.contact .contact-box {
  background-color: #ffed81;
  border-color: black;
  color: black;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.7), 0 0 4px rgba(0, 0, 0, 0.5);
}

/* Override contact-link inside menu-button2.contact */
.menu-button2.contact .contact-link {
  background: black;
  color: #ffed81;
  border: 3px solid black;
}

.menu-button2.contact .contact-link:hover {
  background: #ffed81;
  color: black;
  border: 3px solid black;
}




.menu-bar {
  width: 50vw;
  height: 5vh;
  min-height: 5vh;
  position: fixed;
  display: flex;
  z-index: 10000;
  left: 0.2rem;
  top: 0.2em;
  justify-content: flex-start;
  font-size: 150%;
}

.menu-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  font-family: 'Nunito';
  border: 3px solid black;
  border-radius: 10vh;
  background-color: white;
  margin: 1% -3% 0 0;
  color: black; 
  padding: 1.2rem 0.8rem 1.2rem 0.8rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, .2), 0 0 4px rgba(0, 0, 0, .25);
  text-decoration: none;
  transition: all 0.3s;
}

.menu-button:first-child:hover {
  margin: 1% 0% 0 0%;
}
.menu-button:last-child:hover {
  margin: 1% 0% 0 3%;
}

.menu-button:hover {
  background-color: black;
  margin: 1% 0% 0 3%;
  color: white;
  outline-color: black;
}

.menu-button.active {
  background-color: black;
  color: white;

  outline-color: black;
}


/* Burger-Menü Button */
.burger-menu {
  display: none; /* Standardmäßig unsichtbar */
  cursor: pointer;
  position: fixed;
  width: 35vw;
  top: 2vh; /* Positioniert das Element oben */
  left: 32.5vw; /* Zentriert relativ zur Ansicht */
  animation: rotate 6s linear infinite; /* Animation */
  z-index: 2000; /* Bringt es in den Vordergrund */
  @media only screen and (max-width: 600px) {
    display: flex;
 }
}



#burger-icon {
  position: fixed;
  top: 0.9vh;
  width: 22vw;
  right: 2vw;
  z-index: 5;
  animation: rotate 6s linear infinite; 
  display: none;
  cursor: pointer;
  z-index: 2000;
  @media only screen and (max-width: 600px) {
    display: flex;
    opacity: .7;
 }
}

/* Links im Menü */
.menu-links {
  display: flex;
}

.menu-mobile {
  display: none;
}

/* Stile für mobile Ansicht */
@media (max-width: 600px) {
  /* Burger-Menü sichtbar unter 600px */
  .burger-menu {
    display: flex;

  }

  /* Menü Links standardmäßig ausblenden */
  .menu-links {
    display: none;

  }


.menu-bar {
  display: none;
}
.menu-mobile {
  width: 90vw;
  position: fixed;
  display: block;
  z-index: 10000;
  top: 2.5vh;
  left: 5vw;
}


  /* Links im Burger-Menü anzeigen, wenn die "active"-Klasse hinzugefügt wird */
  .menu-links.active {
    display: block;
  }

  /* Hier kommt der gleiche Stil wie für die ursprünglichen Buttons */
  .menu-links a {
    position: relative;
    display: block;
    text-align: center;
    width: 100%;
    font-family: 'Nunito';
    border: 0.3rem solid black;
    border-radius: 10vh;
    background-color: white;
    color: black;
    padding: 0;
    box-shadow: 0 0 8px rgba(0, 0, 0, .2), 0 0 4px rgba(0, 0, 0, .25);
    text-decoration: none;
    margin-bottom: 1vh;
    font-size: 10vw;
  }

  .menu-links a:hover {
    background-color: black;
    color: white;
    outline-color: black;
  }

  .menu-links a.active {
    background-color: black;
    color: white;
    outline-color: black;
  }

  .menu-button.contact {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: auto;
    text-align: center;
    margin-bottom: 1vh;
    border: 0.3rem solid black;
    border-radius: 10vw;
    background-color: black;
    padding-bottom: 0;
    padding-top: 2%;
  }
  .menu-button.contact:hover {
    margin: unset;
  }

  p{
    font-size: 4.9vw;
    color: white;
  }

  .menu-button:hover {
    margin: unset;
    margin-bottom: unset;
  }

  .contact-buttons {
    position: relative;
    width: 100% !important;
    border: unset;
    height: auto;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    flex-wrap: nowarp;
    margin-top: unset;
    justify-content: space-between;
  }
  
  a.contact-link {
    width: auto;
    font-size: 7vw;
    padding: 0 1% 0 1%;
    margin-bottom: 2vh;
    border: unset;
    margin-top: unset;
  }

  .menu-button:first-child:hover {
  margin: unset;
  
}
.menu-button:last-child:hover {
  margin: unset;
}

.menu-button.contact:hover .contact-box {
  opacity: 1;
  visibility: visible;
  transform: unset;
  pointer-events: auto;
}

.contact-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: white;
  color: black;
  border: unset;
  text-decoration: none;
  border-radius: 4rem;
  font-weight: bold;
}

.contact-link:hover {
  background: black;
  color: white;
  border: unset;
}

}

.rotating-image{
  position: fixed;
  width: 9vw;
  min-width: 9vw; 
  right: 0;
  top: 0;
  animation: rotate 6s linear infinite;
  z-index: 2000;
  margin: 0.3%;
  cursor: pointer;
  @media only screen and (max-width: 600px) {
   display: none;
}
  }
  
  @keyframes rotate {
    0% {
      transform: rotate(0deg);
      transform-origin: center;
    }
    100% {
      transform: rotate(360deg);
      transform-origin: center;
    }
  }


/* Alternate Yellow Button Style */
.menu-button2 {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  font-family: 'Nunito';
  border: 3px solid black;
  border-radius: 10vh;
  background-color: #ffed81;
  margin: 1% -3% 0 0;
  color: black; 
  padding: 1.2rem 0.8rem 1.2rem 0.8rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, .2), 0 0 4px rgba(0, 0, 0, .25);
  text-decoration: none;
  transition: all 0.3s;
}

.menu-button2:hover {
  background-color: black;
  color: white;
  margin: 1% 0% 0 3%;
  outline-color: black;
}

.menu-button2:first-child:hover {
  margin: 1% 0% 0 0%;
}

.menu-button2:last-child:hover {
  margin: 1% 0% 0 3%;
}

.menu-button2.active {
  background-color: black;
  color: white;
  outline-color: black;
}


