/* =========================================================
   Navigation & Footer Styles (ausgelagert aus loader.js)
   ========================================================= */

.site-header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 1.5rem 0.5rem;
  pointer-events: none;
}

.site-header {
  max-width: 1140px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 15px 35px 0 rgba(31, 38, 135, 0.1);
  pointer-events: auto;
  transition: all 0.3s ease;
}

body {
  padding-top: 100px;
}

.header-container {
  width: 100%;
  padding: 0 1.5rem;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #0f172a;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-logo:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.brand-logo-text {
  color: #03045e;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-nav,
.site-nav ul,
.site-nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem 1rem;
  color: #0f172a;
  border-radius: 12px;
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav a:hover {
  color: #03045e;
  background: rgba(3, 4, 94, 0.1);
  box-shadow: inset 0 0 0 1px rgba(3, 4, 94, 0.2);
  transform: translateY(-1px);
}

.site-nav a.active {
  color: #ffffff;
  background: #03045e;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(3, 4, 94, 0.3);
}

.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  gap: 0.4rem;
}

.dropdown-arrow {
  display: inline-block;
  margin-left: 5px;
  font-size: 0.65rem;
  transition: transform 0.25s ease;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(31, 38, 135, 0.15);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  color: #0f172a;
  font-size: 0.875rem;
  font-weight: 600;
  background: transparent;
  box-shadow: none;
}

.dropdown-menu a:hover {
  background: rgba(3, 4, 94, 0.12);
  color: #03045e;
  box-shadow: none;
  transform: translateX(4px);
}

.mobile-toggle {
  display: none;
}

.site-disclaimer-banner {
  max-width: 1140px;
  margin: 0.5rem auto 0;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.65rem 1rem;
  font-size: 0.825rem;
  color: #0f172a;
  text-align: center;
  box-shadow: 0 8px 25px 0 rgba(31, 38, 135, 0.05);
}

.disclaimer-banner-container {
  line-height: 1.45;
}

.disclaimer-banner-container strong {
  color: #03045e;
}

/* Mobile Sidebar */
.mobile-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(3, 4, 94, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  width: min(360px, calc(100vw - 48px));
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.92);
  border-left: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: -25px 0 60px rgba(3, 4, 94, 0.22);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-sidebar.open {
  transform: translateX(0);
}

.mobile-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.mobile-sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #03045e;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.mobile-sidebar-close {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  color: #0f172a;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-sidebar-close:hover {
  background: rgba(3, 4, 94, 0.08);
  transform: rotate(90deg);
}

.mobile-sidebar-navigation {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.mobile-sidebar-list {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-sidebar-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  color: #0f172a;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mobile-sidebar-list a:hover,
.mobile-sidebar-list a:focus-visible,
.mobile-sidebar-list a.active {
  background: #03045e;
  color: #ffffff;
  transform: translateX(3px);
}

.mobile-sidebar-icon {
  width: 34px;
  height: 34px;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: rgba(3, 4, 94, 0.08);
  border-radius: 10px;
  color: #03045e;
}

.mobile-sidebar-list a:hover .mobile-sidebar-icon,
.mobile-sidebar-list a.active .mobile-sidebar-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.mobile-sidebar-section {
  margin: 1.25rem 0;
  padding: 1rem;
  background: rgba(3, 4, 94, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 16px;
}

.mobile-sidebar-section h4 {
  margin: 0 0 0.8rem;
  padding-left: 0.25rem;
  color: #03045e;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Footer Styles */
.site-footer-wrapper {
  padding: 0 1.5rem 2rem;
  margin-top: 60px;
}

.site-footer {
  max-width: 1140px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 54px 40px 28px;
  box-shadow: 0 20px 45px 0 rgba(31, 38, 135, 0.1);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 0.8fr);
  gap: 40px;
}

.footer-brand-link {
  display: inline-block;
  margin-bottom: 1.2rem;
  text-decoration: none;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand-title {
  color: #03045e;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-description {
  max-width: 320px;
  margin: 0 0 1rem;
  color: #0f172a;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-ai-note {
  font-size: 0.8rem;
  color: #475569;
  margin: 0;
}

.footer-col h4 {
  margin: 0 0 1.2rem;
  color: #03045e;
  font-size: 0.95rem;
  font-weight: 800;
}

.footer-col ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-col a:hover {
  color: #03045e;
  padding-left: 6px;
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  color: #475569;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 1100px) {
  .site-nav {
    display: none;
  }
  .mobile-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    cursor: pointer;
    place-items: center;
  }
}

@media (max-width: 900px) {
  .site-footer-wrapper {
    padding: 0 1rem 1.5rem;
  }
  .site-footer {
    padding: 36px 20px 24px;
  }
  .footer-container {
    grid-template-containers: 1fr;
    grid-template-columns: 1fr;
    gap: 32px;
  }
}