
/* ========================================
   FOOTER
   ======================================== */

#footer {
  border-top: 1px solid rgba(235, 205, 112, 0.8);
    background: rgba(25,7,1,0.9);
    margin-top: 6rem;
}


#footer nav {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
}

/* Navigationsebenen */

#footer nav ul.level_1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 0.65rem;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}



/* Listenelemente */

#footer nav li {
  display: block;
  margin: 0;
  padding: 0;
}

/* Links und aktiver Menüpunkt */

#footer nav a,
#footer nav li strong {
  display: inline-block;
  position: relative;
  padding: 0.4rem 0.7rem;
  color: #f5e4a5;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(45, 0, 0, 0.35);
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

/* Feine goldene Linie unter den Links */

#footer nav a::after,
#footer nav li strong::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.15rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #e9cf77,
    #fff0bd,
    #e9cf77,
    transparent
  );
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

/* Hover */

#footer nav a:hover,
#footer nav a:focus-visible {
  color: #fff8df;
  background-color: rgba(238, 207, 119, 0.09);
  transform: translateY(-1px);
}

#footer nav a:hover::after,
#footer nav a:focus-visible::after {
  transform: scaleX(1);
}

/* Aktiver Menüpunkt */

#footer nav li.active strong,
#footer nav li strong.active {
  color: #fff0b5;
  font-weight: 700;
}

#footer nav li.active strong::after,
#footer nav li strong.active::after {
  transform: scaleX(1);
  background: #f2d77f;
}

/* Tastaturbedienung */

#footer nav a:focus-visible {
  outline: 1px solid #f5e4a5;
  outline-offset: 2px;
}

/* ========================================
   SKIP-NAVIGATION
   ======================================== */

/* Visuell verstecken */

#footer nav a.invisible,
#footer nav .invisible {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Bei Tastaturfokus sichtbar machen */

#footer nav a.invisible:focus,
#footer nav a.invisible:focus-visible {
  position: fixed !important;
  top: 1rem !important;
  left: 1rem !important;
  z-index: 99999 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0.8rem 1.2rem !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  color: #4b100d !important;
  background: #fff0bd !important;
  border: 2px solid #d8b957 !important;
  border-radius: 3px !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3) !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}

/* ========================================
   TABLET
   ======================================== */

@media (max-width: 1000px) {
  #footer > .inside {
    padding: 0.65rem 0.75rem 0.75rem;
  }

  #footer #logo {
    width: 220px;
  }

  #footer #logo img {
    max-width: 220px;
  }

  #footer nav {
    padding: 0.35rem 0.5rem;
  }

  #footer nav ul.level_1 {
    gap: 0.2rem 0.4rem;
  }

  #footer nav a,
  #footer nav li strong {
    padding: 0.4rem 0.5rem;
  }
}

/* ========================================
   MOBIL
   ======================================== */

@media (max-width: 767px) {
  #footer > .inside {
    padding: 0.5rem 0.5rem 0.65rem;
  }

  #footer #logo {
    width: 180px;
    margin-bottom: 0.25rem;
  }

  #footer #logo img {
    max-width: 180px;
  }

  #footer nav {
    padding: 0.25rem 0.1rem;
  }

  #footer nav ul.level_1 {
    gap: 0.15rem 0.25rem;
  }

  #footer nav a,
  #footer nav li strong {
    padding: 0.35rem 0.4rem;
    font-size: 0.95rem;
  }

  #footer nav + nav {
    padding-top: 0.05rem;
    padding-bottom: 0.3rem;
  }
}

/* ========================================
   REDUZIERTE BEWEGUNG
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  #footer nav a,
  #footer nav a::after,
  #footer nav li strong::after {
    transition: none;
  }

  #footer nav a:hover {
    transform: none;
  }
}
