/* ============================================================
   MKS – components.css
   Header, Navigation, Footer, wiederverwendbare Komponenten
   ============================================================ */

/* ── HEADER / NAV ── */
.site-header {
  background: var(--crevice);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(52,103,92,0.45);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

/* Logo */
.site-logo {
  font-family: var(--font-display);
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo span {
  display: block;
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-logo:hover { color: rgba(255,255,255,0.9); }

/* Desktop Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}
.site-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.1);
}
.site-nav .nav-cta a {
  background: var(--blue-sky);
  color: var(--white);
  padding: 0.45rem 1.1rem;
}
.site-nav .nav-cta a:hover {
  background: var(--pine);
  color: var(--white);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 0.7rem;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--crevice);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 300;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.85rem !important;
  padding: 0.5rem 0.8rem !important;
  border-radius: var(--radius-sm) !important;
}
.dropdown-menu a:hover { color: var(--sand) !important; background: rgba(255,255,255,0.1) !important; }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.header-phone {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  white-space: nowrap;
}
.header-phone:hover { color: rgba(255,255,255,0.9); }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--sand);
  border-radius: 2px;
  transition: all 0.3s;
  display: block;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV ── */
.mobile-nav {
  display: none;
  background: var(--crevice);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1rem 1.5rem 1.5rem;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav ul li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav ul li:last-child { border-bottom: none; }
.mobile-nav a {
  display: block;
  color: rgba(255,255,255,0.8);
  padding: 0.7rem 0;
  font-size: 0.95rem;
  font-weight: 500;
}
.mobile-nav a:hover, .mobile-nav a.active { color: rgba(255,255,255,0.9); }
.mobile-nav .sub-links { padding-left: 1rem; }
.mobile-nav .sub-links a { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.mobile-nav .mobile-cta {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--crevice);
  color: rgba(255,255,255,0.9);
  margin-top: 4rem;
}
.footer-main {
  padding: 3.5rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand .site-logo { font-size: 1.1rem; margin-bottom: 0.8rem; display: inline-block; }
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--blue-sky); color: var(--white); }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a {
  color: rgba(255,255,255,0.7);
  font-size: 0.87rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: rgba(255,255,255,0.9); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.footer-contact .fi { font-size: 0.9rem; flex-shrink: 0; margin-top: 0.1rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin: 0; }
.footer-bottom-links { display: flex; gap: 1.2rem; }
.footer-bottom-links a { font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.75); }

/* ── FLOATING CTA (Mobil) ── */
.float-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--crevice);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 0.8rem 1.5rem;
  z-index: 150;
  gap: 0.6rem;
}
.float-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}
.float-cta .fc-call { background: var(--blue-sky); color: var(--white); }
.float-cta .fc-wa   { background: #25D366; color: white; }
.float-cta .fc-mail { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.2); }

/* ── RESPONSIVE NAV ── */
@media (max-width: 900px) {
  .site-nav, .header-phone { display: none; }
  .hamburger { display: flex; }
  .float-cta { display: flex; }
  body { padding-bottom: 70px; }

  .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
