/* Vollblutconsulting static navigation – works on every page */
.vbc-nav-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background-color: rgb(0 0 0 / 0.8);
}

.vbc-nav-modal[aria-hidden="false"] {
  display: flex !important;
}

.vbc-nav-modal__panel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  background-image: linear-gradient(180deg, #000102 0%, #01122a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vbc-nav-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  color: #fff;
  font-size: 42px;
  line-height: 1;
}

.vbc-nav-modal__content {
  width: min(920px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 60px 20px 40px;
}

.vbc-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.vbc-nav__item {
  position: relative;
  text-align: center;
}

.vbc-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: Inter, Arial, sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  padding: 12px 8px;
}

.vbc-nav__link:hover,
.vbc-nav__link:focus {
  color: #e9e9e9;
}

.vbc-nav__arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.18s ease;
}

.vbc-nav__item--parent.vbc-sub-open .vbc-nav__arrow {
  transform: rotate(45deg);
}

/* Desktop flyout to the right of Leistungen */
.vbc-nav__sub {
  list-style: none;
  margin: 0;
  /* Invisible hover bridge on the left keeps the panel open while moving the cursor */
  padding: 12px 0 12px 28px;
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  min-width: 280px;
  max-width: min(420px, 42vw);
  background: transparent;
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  transition-delay: 0s;
  text-align: left;
  z-index: 5;
}

.vbc-nav__sub-inner {
  background: #011127;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.35);
  padding: 12px 0;
  list-style: none;
  margin: 0;
}

.vbc-nav__item--parent.vbc-sub-open .vbc-nav__sub,
.vbc-nav__item--parent:focus-within .vbc-nav__sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.vbc-nav__item--parent:not(.vbc-sub-open):not(:focus-within) .vbc-nav__sub {
  /* Stay visible briefly after hover ends (JS also delays class removal) */
  transition-delay: 0.45s;
}

.vbc-nav__sub .vbc-nav__subitem {
  list-style: none;
}

.vbc-nav__sublink {
  display: block;
  padding: 10px 22px;
  color: #fff;
  text-decoration: none;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}

.vbc-nav__sublink:hover,
.vbc-nav__sublink:focus {
  background: #010811;
}

.vbc-nav__cta {
  margin-top: 8px;
}

.vbc-nav__button {
  display: inline-block;
  padding: 14px 18px;
  border-radius: 9px;
  color: #000000 !important;
  text-decoration: none;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  background-image: linear-gradient(180deg, #ffc300 0%, #e9d38a 100%);
  box-shadow: 0 0 10px 0 rgb(233 211 138 / 0.52);
}

.vbc-nav__button:hover,
.vbc-nav__button:focus {
  color: #000000 !important;
}

@media (max-width: 880px) {
  .vbc-nav__link {
    font-size: 22px;
  }

  .vbc-nav__sub {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-top: 6px;
    padding: 0;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: none;
  }

  .vbc-nav__sub-inner {
    box-shadow: none;
  }

  .vbc-nav__item--parent.vbc-sub-open .vbc-nav__sub,
  .vbc-nav__item--parent:focus-within .vbc-nav__sub {
    display: block;
  }

  .vbc-nav__item--parent.vbc-sub-open .vbc-nav__arrow {
    transform: rotate(135deg);
  }

  .vbc-nav__sublink {
    white-space: normal;
    text-align: center;
  }
}
