/* EDELBISS — Unified Navigation
   Design: Quantum-Body-Look (transparent, yellow uppercase, hairline border, letter-slide hover)
   Structure: 5 items + Leistungen dropdown + DE/EN + Termin-CTA + mobile burger
*/

.kb-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid rgba(255, 235, 196, 0.2);
  font-family: "Neuehaasdisplay Roman", "Helvetica Neue", Arial, sans-serif;
}

.kb-nav__inner {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  gap: 24px;
}

.kb-nav__brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  z-index: 2;
}
.kb-nav__brand img {
  height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(0.93) sepia(0.4) saturate(2) hue-rotate(-10deg);
}

.kb-nav__menu {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1 1 auto;
  justify-content: center;
}

/* Link with letter-slide hover (Quantum-Body Webflow IX2 emulation in pure CSS) */
.kb-nav__link,
.kb-nav__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 20px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--kb-yellow, #ffebc4);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 113%;
  text-decoration: none;
  text-transform: uppercase;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.kb-nav__lw {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 20px;
  line-height: 20px;
}
.kb-nav__lt {
  display: block;
  height: 20px;
  line-height: 20px;
  transition: transform 0.46s cubic-bezier(0.65, 0.05, 0, 1);
}
.kb-nav__lt--alt {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
}
.kb-nav__link:hover .kb-nav__lt,
.kb-nav__trigger:hover .kb-nav__lt,
.kb-nav__group:hover .kb-nav__trigger .kb-nav__lt,
.kb-nav__group:focus-within .kb-nav__trigger .kb-nav__lt { transform: translateY(-100%); }

.kb-nav__link.is-active,
.kb-nav__trigger.is-active { opacity: 1; }
.kb-nav__link.is-active .kb-nav__lt::after,
.kb-nav__trigger.is-active .kb-nav__lt::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--kb-yellow, #ffebc4);
  margin-top: 1px;
}

.kb-nav__chevron {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.3s ease;
  margin-left: 4px;
  align-self: center;
  margin-top: 1px;
}
.kb-nav__group:hover .kb-nav__chevron,
.kb-nav__group.is-open .kb-nav__chevron { transform: rotate(180deg); }

/* Dropdown */
.kb-nav__group { position: relative; }
.kb-nav__group::before {
  content: "";
  position: absolute;
  top: 100%;
  left: -28px; right: -28px;
  height: 22px;
}

.kb-nav__dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fffdf5;
  color: #201914;
  padding: 14px 0;
  min-width: 280px;
  border-radius: 4px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease, transform 0.24s ease;
}

.kb-nav__group:hover .kb-nav__dropdown,
.kb-nav__group:focus-within .kb-nav__dropdown,
.kb-nav__group.is-open .kb-nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.kb-nav__dropdown a {
  display: block;
  padding: 11px 26px;
  color: #201914;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-family: "Neuehaasdisplay Roman", "Helvetica Neue", Arial, sans-serif;
  transition: background 0.18s ease, padding-left 0.22s ease;
}
.kb-nav__dropdown a:hover {
  background: #ffebc4;
  padding-left: 32px;
}
.kb-nav__dropdown a.is-active { color: #876813; font-weight: 500; }

.kb-nav__dropdown-overview {
  display: block;
  padding: 11px 26px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(32, 25, 20, 0.55);
  border-bottom: 1px solid rgba(32, 25, 20, 0.08);
  margin-bottom: 6px;
  text-decoration: none;
}
.kb-nav__dropdown-overview:hover {
  color: #201914;
  background: transparent;
  padding-left: 26px;
}

.kb-nav__right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 0 0 auto;
  z-index: 2;
}

.kb-nav__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 20px;
  overflow: hidden;
  color: var(--kb-yellow, #ffebc4);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 113%;
  text-decoration: none;
  text-transform: uppercase;
  font-family: inherit;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.kb-nav__cta .kb-nav__lw { height: 20px; }
.kb-nav__cta:hover .kb-nav__lt { transform: translateY(-100%); }

.kb-nav__lang {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(255, 235, 196, 0.45);
  text-transform: uppercase;
}
.kb-nav__lang em { font-style: normal; color: var(--kb-yellow, #ffebc4); }

/* Burger */
.kb-nav__burger {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 235, 196, 0.4);
  cursor: pointer;
  width: 36px; height: 36px;
  padding: 0;
  border-radius: 50%;
  position: relative;
  z-index: 1001;
}
.kb-nav__burger span {
  display: block;
  width: 12px; height: 1.5px;
  background: var(--kb-yellow, #ffebc4);
  margin: 3px auto;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.kb-nav.is-mobile-open .kb-nav__burger span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}
.kb-nav.is-mobile-open .kb-nav__burger span:nth-child(2) { opacity: 0; }
.kb-nav.is-mobile-open .kb-nav__burger span:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* Mobile */
@media (max-width: 1024px) {
  .kb-nav__inner { padding: 14px 18px; }
  .kb-nav__menu { gap: 26px; }
  .kb-nav__link, .kb-nav__trigger, .kb-nav__cta { font-size: 14px; }
}

@media (max-width: 860px) {
  .kb-nav__menu, .kb-nav__lang, .kb-nav__cta { display: none; }
  .kb-nav__burger { display: block; }

  .kb-nav__mobile {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #201914;
    padding: 96px 28px 48px;
    overflow-y: auto;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .kb-nav.is-mobile-open .kb-nav__mobile {
    opacity: 1;
    visibility: visible;
  }
  .kb-nav__mobile-list { list-style: none; padding: 0; margin: 0; }
  .kb-nav__mobile-list li { border-bottom: 1px solid rgba(255, 235, 196, 0.12); }
  .kb-nav__mobile-list > li > a,
  .kb-nav__mobile-list .kb-nav__mobile-trigger {
    display: block;
    padding: 18px 0;
    color: var(--kb-yellow, #ffebc4);
    text-decoration: none;
    font-size: 18px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: transparent;
    border: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
  }
  .kb-nav__mobile-sublist {
    list-style: none;
    padding: 0 0 16px 16px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.36s ease;
  }
  .kb-nav__mobile-sublist.is-open { max-height: 420px; }
  .kb-nav__mobile-sublist li { border: 0; }
  .kb-nav__mobile-sublist a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    color: rgba(255, 253, 245, 0.72);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.02em;
  }
  .kb-nav__mobile-cta {
    display: inline-block;
    margin-top: 32px;
    color: var(--kb-yellow, #ffebc4);
    border: 1px solid rgba(255, 235, 196, 0.4);
    padding: 14px 24px;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 999px;
  }
}

@media (min-width: 861px) { .kb-nav__mobile { display: none; } }
