@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;
  overflow-x: hidden; /* Verhindert JEDES horizontale Scrollen auf der kompletten Website */
  width: 100%;
}

.sel {
  color: chocolate;
}
.burger-menu {
  display: none;
}

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*/
/* Hauptnavigation (Standard) */
nav {
  position: sticky;
  top: 0;
  z-index: 9999;

  /* Padding haben wir hier zusammengefasst */
  padding: 16px 32px 16px 16px;

  /* --- NEU: Exakt der gleiche Liquid Glass Look wie das Submenü --- */
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);

  border-bottom: 1.5px solid rgba(210, 105, 30, 0.8);

  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;
  box-sizing: border-box;

  will-change: transform;
  transform: translateZ(0);

  transition: all 0.3s ease;
}

/* Hauptnavigation (beim Scrollen) */
nav.shrink {
  padding: 6px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

  /* Wir zwingen die geschrumpfte Leiste, den gleichen schicken Look zu behalten */
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid rgba(210, 105, 30, 0.5);
}

.Logo {
  height: 80px;
  object-fit: cover;
  transition: height 0.25s ease;
}

.nav-links {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Dropdown */
.has-submenu {
  position: relative;
  isolation: isolate;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  margin: 0;
  padding: 8px 0;

  background: rgba(255, 255, 255, 0.75);

  /* * DER BLUR: Errechnet den "Durchschnitt" der Hintergrundfarben.
   * Saturate (Sättigung) leicht erhöht, damit die Farben nicht zu grau wirken.
   */
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);

  /* --- NEU: Der Liquid Glass Rand --- */
  /* Die seitliche Lichtspiegelung auf dem Glas (halbtransparentes Weiß) */
  border: 1px solid rgba(255, 255, 255, 0.8);

  /* Der untere Abschluss in Schokobraun (halbtransparent für den Glas-Look) */
  border-bottom: 1px solid rgba(210, 105, 30, 0.5);

  /* Oben dockt es direkt an die Nav an, daher kein Strich nötig */
  border-top: none;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.submenu a {
  color: #111; /* Dunkle Schrift für maximalen Kontrast */
  display: block;
  padding: 8px 16px;
  white-space: nowrap;
  font-weight: bold;
}

.submenu a:hover {
  color: chocolate;
}
.submenu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.02)
  );
  z-index: -1;
}
.has-submenu:hover .submenu {
  opacity: 1;
  pointer-events: auto;
}

.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;
}

nav.shrink {
  padding: 6px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

nav .Logo {
  transition: all 0.3s ease;
  height: 80px;
}

nav.shrink .Logo {
  height: 6vh;
}

.vibrantbg {
  background-color: #ffffff;

  background-image:
    /* 1. Weiße Schutzebenen für Textlesbarkeit */
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0) 10%,
      rgba(255, 255, 255, 0) 90%,
      rgba(255, 255, 255, 1) 100%
    ),
    radial-gradient(
      ellipse at center,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0) 70%
    ),
    /* 2. LENS FLARE EFFEKTE (Heller Kern -> Weicher Schein -> Transparent) */
    /* Normales Chocolate Flare (Links oben) */
    radial-gradient(
        ellipse at 10% 15%,
        rgba(210, 105, 30, 0.7) 0%,
        rgba(210, 105, 30, 0.15) 20%,
        rgba(210, 105, 30, 0) 55%
      ),
    /* Helles Orange Flare (Rechts oben) */
    radial-gradient(
        circle at 85% 25%,
        rgba(255, 180, 110, 0.8) 0%,
        rgba(255, 180, 110, 0.2) 25%,
        rgba(255, 180, 110, 0) 60%
      ),
    /* Helles Grau Flare (Links unten) */
    radial-gradient(
        circle at 15% 85%,
        rgba(180, 180, 180, 0.6) 0%,
        rgba(180, 180, 180, 0.15) 20%,
        rgba(180, 180, 180, 0) 55%
      ),
    /* Dunkles Grau Flare (Rechts unten) */
    radial-gradient(
        ellipse at 85% 80%,
        rgba(80, 80, 80, 0.4) 0%,
        rgba(80, 80, 80, 0.1) 25%,
        rgba(80, 80, 80, 0) 50%
      );

  background-attachment: fixed;
}

/* --- Mobile Ansicht --- */
@media (max-width: 768px) {
  nav .Logo {
    height: 60px;
    margin: 0px;
    margin-top: 6px;
  }
  nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    
    flex-direction: column;
    padding: 10px;
  }

  .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;
    gap: 10px;
    flex-wrap: wrap;
  }

  /* 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);
  }

  .Logo {
    height: 7vh;
    margin-bottom: 10px;
  }

  .nav-links a {
    font-size: 14px;
    margin-left: 5px;
  }

  .vibrantbg {
    background-image:
      /* Oben/Unten Fadeout */
      linear-gradient(
        to bottom,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0) 8%,
        rgba(255, 255, 255, 0) 92%,
        rgba(255, 255, 255, 1) 100%
      ),
      /* Breitere Lesefläche in der Mitte */
        radial-gradient(
          ellipse at center,
          rgba(255, 255, 255, 1) 0%,
          rgba(255, 255, 255, 0.95) 45%,
          rgba(255, 255, 255, 0) 85%
        ),
      /* Flares weiter an den äußeren Rand geschoben */
        radial-gradient(
          ellipse at -5% 10%,
          rgba(210, 105, 30, 0.7) 0%,
          rgba(210, 105, 30, 0.15) 25%,
          rgba(210, 105, 30, 0) 50%
        ),
      radial-gradient(
        circle at 105% 30%,
        rgba(255, 180, 110, 0.8) 0%,
        rgba(255, 180, 110, 0.2) 25%,
        rgba(255, 180, 110, 0) 55%
      ),
      radial-gradient(
        circle at -5% 85%,
        rgba(180, 180, 180, 0.6) 0%,
        rgba(180, 180, 180, 0.15) 25%,
        rgba(180, 180, 180, 0) 50%
      ),
      radial-gradient(
        ellipse at 105% 75%,
        rgba(80, 80, 80, 0.4) 0%,
        rgba(80, 80, 80, 0.1) 25%,
        rgba(80, 80, 80, 0) 50%
      );
  }
  .submenu {
    border: none;
  }

  .submenu a {
    color: grey;
    display: block;
    padding: 8px 16px;
    white-space: nowrap;
  }
  .submenu a:hover {
    color: chocolate;
  }
}
