/* === Header, Navigation, Footer === */

/* --- Header --- */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 30;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.site-header.scrolled {
  background: rgba(8, 24, 46, .78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

/* --- Brand --- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: #fff;
}
.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .22));
}
.brand-text {
  font-size: 1rem;
  letter-spacing: -.02em;
}

/* --- Navigation (Mobile-First: collapsed) --- */
.main-nav {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 66px;
  display: none;
  flex-direction: column;
  align-items: stretch;
  padding: 16px;
  border-radius: 24px;
  background: rgba(7, 24, 46, .92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
}
.main-nav.open {
  display: flex;
}
.main-nav a {
  color: rgba(255, 255, 255, .9);
  font-weight: 700;
  padding: 14px 16px;
  border-radius: var(--radius-pill);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.main-nav a:hover {
  background: rgba(255, 255, 255, .08);
  transform: translateY(-1px);
}
.main-nav .nav-cta {
  background: #fff;
  color: var(--clr-primary);
  padding-inline: 24px;
  box-shadow: 0 12px 30px rgba(255, 255, 255, .12);
  text-align: center;
}

/* --- Nav Dropdown (Teams) --- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0;
}
/* Mobile: Dropdown inline anzeigen */
.main-nav.open .nav-dropdown-menu {
  display: flex;
  padding-left: 16px;
}
.nav-dropdown-menu a {
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .75);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
}
.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

/* --- Hamburger Toggle --- */
.nav-toggle {
  display: block;
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 99px;
}

/* --- Footer --- */
.site-footer {
  background: #061626;
  color: rgba(255, 255, 255, .82);
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: auto -18vw -12rem auto;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 137, 255, .16), rgba(46, 137, 255, 0) 60%);
}

.footer-grid {
  display: grid;
  gap: 24px;
}
.footer-block {
  position: relative;
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
}
.footer-block h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.3rem;
}
.footer-block p {
  margin: 0 0 14px;
  line-height: 1.7;
}
.footer-block a {
  color: #9edaff;
}
.footer-bottom {
  margin-top: 32px;
  text-align: center;
  font-weight: 700;
  color: rgba(255, 255, 255, .5);
  font-size: .9rem;
}

/* --- Grids --- */
.grid-3 {
  display: grid;
  gap: 22px;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: .88rem;
  color: var(--clr-muted);
}
.breadcrumb a {
  color: var(--clr-primary);
  font-weight: 600;
}
.breadcrumb span {
  color: var(--clr-muted);
}

/* --- Desktop Breakpoints --- */
@media (min-width: 768px) {
  .nav-shell {
    min-height: 84px;
  }
  .brand-logo {
    width: 42px;
    height: 42px;
  }
  .brand-text {
    font-size: 1.1rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-footer {
    padding: 92px 0 60px;
  }
}

@media (min-width: 980px) {
  /* Desktop: Nav sichtbar, Hamburger versteckt */
  .nav-toggle {
    display: none;
  }
  .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
  }
  .main-nav a {
    padding: 11px 14px;
  }
  /* Desktop: Dropdown auf Hover */
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: flex;
  }
  .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(7, 24, 46, .95);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
    gap: 2px;
  }
  .nav-dropdown-menu a {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: .88rem;
    white-space: nowrap;
  }
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
