/* ============================================
   Netzwerk-Lotse BHV — style.css
   Mobile-first + Maritime design layer
   ============================================ */

/* --- Logo --- */
.logo-mark {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  text-decoration: none;
  gap: 10px;
}
.logo-mark img {
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0;
}
.logo-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #0f2744;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-city {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.52rem;
  color: #1a3f60;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 3px;
}
/* Inverted (white) variant for dark backgrounds */
.logo-mark.inverted .logo-name { color: #ffffff; }
.logo-mark.inverted .logo-city { color: rgba(255,255,255,0.65); }

/* --- Wave Dividers --- */
.wave-divider {
  line-height: 0;
  overflow: hidden;
  display: block;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 56px;
}
@media (max-width: 639px) {
  .wave-divider svg { height: 32px; }
}

/* --- Maritime Hero Radar Pattern --- */
.hero-radar {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.6;
}
@media (max-width: 1023px) {
  .hero-radar { display: none; }
}

/* --- Global Mobile Section Fixes --- */
@media (max-width: 767px) {
  /* Section spacing */
  .section-py { padding-top: 3.5rem; padding-bottom: 3.5rem; }

  /* Prevent content from hitting edges */
  .section-px { padding-left: 1rem; padding-right: 1rem; }

  /* Service cards: less padding */
  .card-pad { padding: 1.5rem; }

  /* Nav padding */
  .nav-inner { padding-left: 1rem; padding-right: 1rem; }
}
@media (min-width: 768px) {
  .section-py { padding-top: 6rem; padding-bottom: 6rem; }
  .section-px { padding-left: 1.5rem; padding-right: 1.5rem; }
  .card-pad { padding: 2.5rem; }
  .nav-inner { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* --- Buttons: full-width on small screens --- */
@media (max-width: 639px) {
  .btn-resp {
    width: 100%;
    justify-content: center;
    text-align: center;
    display: block;
  }
  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
}

/* --- Smart Home / Icon Grids (2-col on mobile) --- */
.grid-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) {
  .grid-icons { grid-template-columns: repeat(4, 1fr); }
}

/* --- SVG Diagram: scrollable on mobile --- */
.diagram-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.diagram-scroll svg {
  min-width: 480px;
}
@media (min-width: 768px) {
  .diagram-scroll { overflow-x: visible; }
  .diagram-scroll svg { min-width: unset; }
}

/* --- Maritime: subtle wave texture on hero --- */
.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  line-height: 0;
}

/* --- Compass rose decoration --- */
.compass-deco {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  opacity: 0.07;
}
@media (max-width: 1023px) {
  .compass-deco { display: none; }
}

/* --- Koordinaten-style text (footer) --- */
.koordinaten {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* --- Mobile Nav: ensure hamburger menu gap --- */
#mobile-menu a {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(115,119,127,0.12);
  display: block;
}
#mobile-menu a:last-child {
  border-bottom: none;
}

/* --- Makler-Flow: stack on narrow screens --- */
@media (max-width: 639px) {
  .makler-step {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
  }
}

/* --- Sub-page hero: tighten on mobile --- */
@media (max-width: 767px) {
  .subpage-hero h1 {
    font-size: 2.25rem;
    line-height: 1.15;
  }
  .subpage-hero .hero-sub {
    font-size: 1rem;
  }
}

/* --- Responsive px-8 nav (wohngebaeude/gastro) --- */
@media (max-width: 767px) {
  .nav-pad-resp {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* --- Hide horizontal-only elements on mobile --- */
@media (max-width: 639px) {
  .hide-mobile { display: none !important; }
}

/* --- Teal accent helpers --- */
.teal { color: #3ab5c8; }
.bg-teal { background: #3ab5c8; }
.border-teal { border-color: #3ab5c8; }

/* --- Glassmorphism Lotsen-Card --- */
.lotsen-card-glass {
  position: relative;
  width: 320px;
  height: 196px;
  border-radius: 20px;
  overflow: hidden;
  select: none;
  background: linear-gradient(135deg, #091e35 0%, #0f2744 40%, #1a3f60 100%);
  box-shadow:
    0 24px 64px rgba(9,30,53,0.55),
    0 0 0 1px rgba(58,181,200,0.18),
    inset 0 1px 0 rgba(255,255,255,0.07);
}
.lotsen-card-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(58,181,200,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.lotsen-card-glass .card-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e87722, #3ab5c8, transparent);
}
.lotsen-card-glass .card-ring-1 {
  position: absolute;
  right: -40px; top: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(58,181,200,0.1);
}
.lotsen-card-glass .card-ring-2 {
  position: absolute;
  right: -16px; top: -16px;
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 1px solid rgba(58,181,200,0.15);
}
.lotsen-card-glass .card-glow {
  position: absolute;
  right: 20px; top: 12px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(58,181,200,0.12);
}
