@font-face {
  font-family: "Antonio";
  src: url("../schriften/Antonio-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Globaler Einsatz */
body {
  font-family: "Antonio", sans-serif;
}

:root {
  --accent-color: #9b30ff;
  --navbar-height: 110px;
  --primary-color: #6a0dad;
  --background-color: #ffffff;
}

.navbar {
  width: 100%;
  height: var(--navbar-height);
  background-color: var(--background-color);
  border-bottom: 3px solid var(--accent-color);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 2rem;
  position: relative;
}

.logo-container {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1010;
}

.logo {
  height: 140px;
  transition: all 0.8s ease-out;
}

.animate-logo {
  transform: translateX(-100%);
  opacity: 0;
  animation: slideInLogo 1s forwards;
}

@keyframes slideInLogo {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 6rem;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  background-color: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  position: relative;
  transition: color 0.3s;
  font-family: "Antonio", sans-serif; /* Hier extra gesetzt */
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 3px;
  background-color: var(--accent-color);
  transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--dark-bg);
    justify-content: flex-start;
    align-items: center;
    display: none;
    z-index: 1000;
    padding-top: 20px;
    border-radius: 0;
    border: none;
    transform: none;
  }

  .logo {
    height: 100px;
    transition: all 0.8s ease-out;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li:not(:last-child)::after {
    content: "";
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    display: block;
    margin-top: 5px;
  }

  .hamburger {
    display: flex;
  }

  body.menu-open {
    overflow: hidden;
  }

  .nav-links::before {
    content: "";
    display: block;
    background-image: url("../public/bilder/logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    width: 120px;
    height: 60px;
    margin-bottom: 30px;
  }
}

body {
  padding-top: var(--navbar-height);
}
