/* ════════════════════════════════════════════════
   Mauracher Immobilien – gemeinsame Menüleiste
   Auf jeder Seite identisch · Höhe 11vh · namespaced .mi-nav
   Nachbau der Live-Leiste: links Mauracher-Logo, mittig Menü,
   rechts Wiffreal-Logo. Selbst-enthaltend (kein base.css nötig).
════════════════════════════════════════════════ */

/* ── Globale Resets (damit Header/Footer auf JEDER Seite identisch
   rendern – auch ohne base.css, z. B. auf der Ankauf-Seite) ── */
html, body { margin: 0; }
/* Anker-Sprünge (#projekte, #kontakt …) nicht hinter die fixe Leiste scrollen */
html { scroll-padding-top: calc(11vh + 20px); }
.mi-nav, .mi-nav *, .mi-nav *::before, .mi-nav *::after { box-sizing: border-box; }

.mi-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 11vh;
  min-height: 76px;
  display: flex;
  align-items: center;
  background: #0b1c35;
  transition: box-shadow 0.35s ease;
}
.mi-nav.is-scrolled { box-shadow: 0 2px 22px rgba(0, 0, 0, 0.28); }

.mi-nav__inner {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 44px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

/* ── Logo links ── */
.mi-nav__logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.mi-nav__logo img {
  height: 7.2vh;
  min-height: 48px;
  max-height: 72px;
  width: auto;
  display: block;
}

/* ── Menü Mitte ── */
.mi-nav__links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mi-nav__links a {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
}
.mi-nav__links a:hover,
.mi-nav__links a.is-active { color: #f0b429; }

/* ── Wiffreal-Logo rechts ── */
.mi-nav__right {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.mi-nav__brand-right { display: inline-flex; align-items: center; }
.mi-nav__brand-right img {
  height: 6vh;
  min-height: 40px;
  max-height: 60px;
  width: auto;
  display: block;
}

/* ── Burger (mobil) ── */
.mi-nav__burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.mi-nav__burger span {
  display: block;
  width: 25px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mi-nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mi-nav__burger.is-open span:nth-child(2) { opacity: 0; }
.mi-nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobiles Drawer ── */
.mi-nav__drawer {
  position: fixed;
  inset: 0;
  background: rgba(11, 28, 53, 0.98);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}
.mi-nav__drawer.is-open { opacity: 1; visibility: visible; }
.mi-nav__drawer a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}
.mi-nav__drawer a:hover,
.mi-nav__drawer a.is-active { color: #f0b429; }

/* Wiffreal-Logo bei wenig Platz ausblenden */
@media (max-width: 1180px) {
  .mi-nav__brand-right { display: none; }
}
/* Menü -> Burger */
@media (max-width: 900px) {
  .mi-nav__inner { grid-template-columns: 1fr auto; padding: 0 24px; }
  .mi-nav__links { display: none; }
  .mi-nav__burger { display: flex; }
}
@media (max-width: 600px) {
  .mi-nav__inner { padding: 0 18px; }
  .mi-nav__logo img { height: auto; max-height: 58px; }
}
