/* ==========================================================================
   Layout: Topbar mit Menü und Footer
   Wird von allen Seiten geladen.
   ========================================================================== */

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navy-dark);
  padding: 14px 24px;
}

/* Startseite: Topbar gleitet erst nach dem Logo-Intro herein */
.topbar--intro {
  opacity: 0;
  transform: translateY(-100%);
  animation: slideDown .6s ease 2.6s forwards;
}
.ohne-intro .topbar--intro { animation-duration: .4s; animation-delay: 0s; }

@keyframes slideDown {
  to { opacity: 1; transform: translateY(0); }
}

.logo {
  color: var(--white);
  font-size: 1.1rem;
}
.logo span { color: var(--blue-bright); }

/* ---------- Menü ---------- */
.menu-wrap { position: relative; }

.menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--blue-accent);
  color: var(--white);
  font-size: .82rem;
  border: none;
  border-radius: 3px;
  transition: background-color .15s ease;
}
.menu-btn:hover { background: var(--blue-hover); }

.menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  display: none;
  min-width: 180px;
  padding: 8px;
  list-style: none;
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
/* Offen-Zustand wird allein über aria-expanded gesteuert */
.menu-btn[aria-expanded="true"] + .menu-dropdown { display: block; }

.menu-dropdown a {
  display: block;
  padding: 11px 14px;
  font-size: .88rem;
  color: var(--navy-dark);
  border-radius: 4px;
}
.menu-dropdown a:hover,
.menu-dropdown a:focus-visible { background: var(--grey-bg); }
.menu-dropdown a[aria-current="page"] { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #9db0d6;
  padding: 50px 24px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-logo {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.footer-logo span { color: var(--blue-bright); }

.footer-claim { font-size: .82rem; }

.footer-heading {
  color: var(--white);
  font-size: .9rem;
  margin-bottom: 12px;
}

.footer-list { list-style: none; }
.footer-list li {
  margin-bottom: 8px;
  font-size: .82rem;
}
.footer-list a:hover { color: var(--white); text-decoration: underline; }

.footer-bottom {
  max-width: 1000px;
  margin: 36px auto 0;
  padding-top: 18px;
  border-top: 1px solid #1c2f57;
  text-align: center;
  font-size: .78rem;
  color: #8394b8;
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
