/* ============================================================
   ITN MARINA MANAGEMENT — Navigation & Footer Styles
   nav.css  |  IT Service Nietzsch
   ============================================================ */

/* ── Top Navigation ───────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.nav-transparent {
  background: transparent;
}
.site-nav.nav-solid,
.site-nav.nav-default {
  background: rgba(0, 27, 61, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 4px 24px rgba(0,0,0,.25);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ── Logo ─────────────────────────────────────────────────── */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 60px;
  width: auto;
  display: block;
  
}

/* ── Primary Nav Links ────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-item {
  position: relative;
}

/* Both <a> and <button> nav links styled identically */
.nav-link,
.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
  /* Reset button styles */
  background: none;
  border: none;
  font-family: inherit;
  line-height: inherit;
}
.nav-link:hover,
.nav-link-btn:hover,
.nav-link.active,
.nav-link-btn.active {
  color: #ffffff;
  background: rgba(255,255,255,.1);
}
.nav-link.active { color: #00a8e8; background: rgba(0,168,232,.1); }
.nav-link-btn[aria-expanded="true"] {
  color: #ffffff;
  background: rgba(255,255,255,.1);
}
.nav-link-btn[aria-expanded="true"] .nav-arrow {
  transform: rotate(180deg);
}

.nav-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
  opacity: 0.6;
  flex-shrink: 0;
}

/* ── Dropdown ─────────────────────────────────────────────── */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(0, 18, 48, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 6px;
  min-width: 260px;
  box-shadow: 0 20px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  list-style: none;
  z-index: 200;
}

/* Show via JS class (click) or CSS hover as fallback */
.nav-item-dropdown:hover > .nav-dropdown,
.nav-dropdown.is-open {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Gap bridge: prevents dropdown from closing when moving cursor */
.nav-item-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-dropdown-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown-item a:hover {
  background: rgba(255,255,255,.08);
  color: #ffffff;
}
.nav-dropdown-icon {
  width: 30px;
  height: 30px;
  background: rgba(0,168,232,.15);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #00a8e8;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.nav-dropdown-item a:hover .nav-dropdown-icon {
  background: rgba(0,168,232,.25);
}
.nav-dropdown-text { flex: 1; }
.nav-dropdown-label {
  display: block;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  font-size: 0.84rem;
}
.nav-dropdown-desc {
  display: block;
  font-size: 0.68rem;
  color: rgba(255,255,255,.4);
  margin-top: 1px;
}

.nav-dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 5px 8px;
}

/* ── Nav CTA ──────────────────────────────────────────────── */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-cta-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-cta-phone:hover { color: rgba(255,255,255,.95); }
.nav-cta-phone i { color: #00a8e8; font-size: 0.75rem; }

/* ── Header Language Switcher ─────────────────────────────── */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-lang-flag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  padding: 2px 7px;
  transition: color 0.15s;
  line-height: 1;
}
.nav-lang-flag + .nav-lang-flag {
  border-left: 1px solid rgba(255,255,255,0.2);
}
.nav-lang-flag:hover { color: rgba(255,255,255,0.85); }
.nav-lang-flag.active { color: #fff; }
@media (max-width: 1060px) { .nav-lang { display: none; } }

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: linear-gradient(135deg, #003d80 0%, #0066cc 100%);
  color: #ffffff;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,82,163,.35);
  white-space: nowrap;
  border: 1.5px solid rgba(255,255,255,.15);
}
.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,82,163,.45);
  color: #ffffff;
}

/* ── Mobile Toggle ────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  cursor: pointer;
  padding: 0 10px;
  transition: background 0.2s ease;
}
.nav-toggle:hover { background: rgba(255,255,255,.18); }
.nav-toggle span {
  display: block;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Menu ──────────────────────────────────────────── */
.nav-mobile {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 12, 36, 0.99);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 999;
  padding: 20px 16px 40px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-mobile.open {
  transform: translateX(0);
}

.nav-mobile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  margin-bottom: 2px;
}
.nav-mobile-link:hover,
.nav-mobile-link.active {
  background: rgba(255,255,255,.08);
  color: #ffffff;
}
.nav-mobile-link.active { color: #00a8e8; }
.nav-mobile-link i { width: 18px; text-align: center; color: rgba(255,255,255,.5); font-size: 0.9rem; }

.nav-mobile-section {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.3);
  padding: 16px 16px 6px;
  margin-top: 8px;
}

.nav-mobile-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 10px 0;
}

.nav-mobile-cta {
  padding: 20px 0 0;
}
.nav-mobile-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,.06);
  border-radius: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  margin-bottom: 10px;
}
.nav-mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #003d80 0%, #0066cc 100%);
  color: #ffffff;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,82,163,.4);
}

/* ── Site Footer ──────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #0a0f1e 100%);
  color: rgba(255,255,255,.75);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,168,232,.4) 50%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 16px;
}
.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 280px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,.6);
}
.footer-contact-icon {
  width: 28px; height: 28px;
  background: rgba(0,168,232,.12);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #00a8e8;
  flex-shrink: 0;
}
.footer-contact-item a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-contact-item a:hover { color: #ffffff; }

.footer-payment-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-payment-badge {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.9);
  margin-bottom: 14px;
}
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav li a {
  font-size: 0.83rem;
  color: rgba(255,255,255,.48);
  text-decoration: none;
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-nav li a::before {
  content: '';
  width: 4px; height: 4px;
  background: rgba(0,168,232,.45);
  border-radius: 50%;
  flex-shrink: 0;
}
.footer-nav li a:hover { color: rgba(255,255,255,.9); }
.footer-nav li a:hover::before { background: #00a8e8; }

/* ── Footer Bottom Bar ────────────────────────────────────── */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copyright { font-size: 0.78rem; color: rgba(255,255,255,.28); }
.footer-legal {
  display: flex;
  gap: 18px;
  list-style: none;
}
.footer-legal a {
  font-size: 0.78rem;
  color: rgba(255,255,255,.32);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-legal a:hover { color: rgba(255,255,255,.75); }
.footer-flags { display: flex; gap: 10px; align-items: center; }
.footer-flag-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,.28);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-flag {
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.15s;
  text-decoration: none;
  display: inline-block;
}
.footer-flag:hover, .footer-flag.active { opacity: 1; }

/* ── Cookie Banner ────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(8, 14, 30, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 -8px 32px rgba(0,0,0,.4);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-text {
  font-size: 0.83rem;
  color: rgba(255,255,255,.65);
  flex: 1;
  min-width: 260px;
  line-height: 1.55;
}
.cookie-text a { color: #00a8e8; text-decoration: underline; }
.cookie-text strong { color: rgba(255,255,255,.9); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn-accept {
  padding: 9px 20px;
  background: linear-gradient(135deg, #003d80 0%, #0066cc 100%);
  color: #ffffff;
  border: none;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.cookie-btn-accept:hover { transform: translateY(-1px); }
.cookie-btn-decline {
  padding: 9px 16px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.cookie-btn-decline:hover { background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); }

/* ── Responsive Navigation ────────────────────────────────── */
@media (max-width: 1060px) {
  .nav-links { display: none; }
  .nav-cta-phone { display: none; }
  .nav-toggle { display: flex; }
  .nav-logo-img { height: 36px; }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-inner { padding: 0 16px; gap: 12px; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; }
  .cookie-btn-accept, .cookie-btn-decline { flex: 1; text-align: center; }
}
