/* ================================================================
   LEADNETIC · Layout – Header, Navigation, Footer
   Identisch auf allen Seiten.
   ================================================================ */

/* ================================================================
   HEADER
   ================================================================ */
#hdr {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  transition: background .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
#hdr.top {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
#hdr.sticky {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 1px 0 rgba(11,15,26,.03), 0 8px 30px rgba(11,15,26,.04);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  transition: padding .25s var(--ease);
  gap: 1.5rem;
}
#hdr.sticky nav { padding: .7rem 0; }

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img {
  height: 38px;
  width: auto;
  transition: height .25s var(--ease);
}
#hdr.sticky .logo img { height: 34px; }

.nav-links {
  display: flex;
  list-style: none;
  gap: .1rem;
  align-items: center;
}
.nav-links a {
  display: block;
  color: var(--gray-700);
  font-weight: 500;
  font-size: .92rem;
  padding: .5rem .8rem;
  border-radius: var(--r-sm);
  transition: color .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--blue); background: var(--blue-light); }
.nav-links a.active { color: var(--blue); background: var(--blue-light); }
.nav-links .btn { margin-left: .6rem; color: var(--white); }
.nav-links .btn:hover { background: var(--blue-dark); color: var(--white); }

/* Ausklapp-Menü für die Bereiche */
.nav-drop { position: relative; }
.nav-drop > button {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 500;
  color: var(--gray-700);
  background: none;
  border: 0;
  cursor: pointer;
  padding: .5rem .8rem;
  border-radius: var(--r-sm);
  transition: color .2s, background .2s;
}
.nav-drop > button:hover,
.nav-drop.open > button { color: var(--blue); background: var(--blue-light); }
.nav-drop > button .ico { font-size: .8rem; transition: transform .25s var(--ease); }
.nav-drop.open > button .ico { transform: rotate(180deg); }

.nav-menu {
  position: absolute;
  top: calc(100% + .6rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 290px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  padding: .5rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav-drop.open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-menu a {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .7rem .85rem;
  border-radius: var(--r-sm);
  color: var(--dark);
  font-size: .9rem;
  font-weight: 600;
}
.nav-menu a:hover { background: var(--blue-tint); }
.nav-menu a .ico { color: var(--blue); font-size: 1.05rem; margin-top: .12rem; }
.nav-menu-txt { display: block; }
.nav-menu-txt span { display: block; font-weight: 400; font-size: .8rem; color: var(--gray-500); margin-top: .1rem; }

.mob-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1.35rem;
  color: var(--dark);
  border-radius: var(--r-sm);
  z-index: 1001;
}
.mob-btn:hover { background: var(--gray-100); }

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.55);
  padding: 5.5rem 0 2rem;
  font-size: .92rem;
}

.ft-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 2rem;
}

.ft-brand .ft-logo { margin-bottom: 1.4rem; }
.ft-brand .ft-logo img { height: 34px; width: auto; }
.ft-brand p {
  color: rgba(255,255,255,.5);
  font-size: .9rem;
  line-height: 1.8;
  max-width: 340px;
  margin-bottom: 1.5rem;
}

.ft-contact { display: flex; flex-direction: column; gap: .55rem; }
.ft-contact a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: rgba(255,255,255,.75);
  font-weight: 500;
  font-size: .92rem;
}
.ft-contact a:hover { color: var(--cyan); }
.ft-contact .ico { color: var(--cyan); font-size: .95rem; }

.ft-social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.ft-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .95rem;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease-spring);
}
.ft-social a:hover {
  background: var(--blue);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-2px);
}

.ft-col h4 {
  color: var(--white);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.ft-col ul { list-style: none; }
.ft-col ul li { margin-bottom: .65rem; }
.ft-col ul a {
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  transition: color .2s var(--ease), transform .2s var(--ease);
  display: inline-block;
}
.ft-col ul a:hover { color: var(--white); transform: translateX(3px); }

.ft-note {
  color: rgba(255,255,255,.38);
  font-size: .82rem;
  line-height: 1.7;
  margin-top: 1.2rem;
}

.ft-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.ft-bottom p { color: rgba(255,255,255,.35); font-size: .82rem; margin: 0; }
.ft-bottom-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.ft-bottom-links a { color: rgba(255,255,255,.42); font-size: .82rem; }
.ft-bottom-links a:hover { color: var(--cyan); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1150px) {
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }
  .ft-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: .2rem;
    padding: 5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform .35s var(--ease-out);
    z-index: 999;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    padding: .8rem .5rem;
    border-radius: var(--r-md);
  }
  .nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.07); color: var(--white); }
  .nav-links .btn {
    margin: 1.2rem .5rem 0;
    justify-content: center;
    font-size: 1rem;
    padding: .95rem 1.6rem;
  }

  /* Untermenü im mobilen Menü flach ausklappen */
  .nav-drop { width: 100%; }
  .nav-drop > button {
    width: 100%;
    justify-content: space-between;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    padding: .8rem .5rem;
  }
  .nav-drop > button:hover, .nav-drop.open > button { background: rgba(255,255,255,.07); color: var(--white); }
  .nav-menu {
    position: static;
    transform: none;
    min-width: 0;
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.08);
    box-shadow: none;
    margin: .3rem 0 .6rem;
    display: none;
  }
  .nav-drop.open .nav-menu { display: block; opacity: 1; visibility: visible; transform: none; }
  .nav-menu a { color: var(--white); font-size: 1rem; font-weight: 600; }
  .nav-menu a:hover { background: rgba(255,255,255,.07); }
  .nav-menu-txt span { color: rgba(255,255,255,.5); }

  .mob-btn { display: flex; }
  .ft-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .ft-bottom { flex-direction: column; text-align: center; }
  .ft-bottom-links { justify-content: center; }
}
