/* IVD Hausservice – professionelle Kundenportal-Navigation im Header
   Stand: 2026-07-13
   Ziel: klare Trennung zwischen Angebotsanfrage und Direktbestellung. */

.site-header.customer-header-mode .main-nav.customer-app-nav{
  overflow: visible;
}

.site-header.customer-header-mode .main-nav.customer-app-nav > a.customer-portal-nav-link,
.site-header.customer-header-mode .customer-portal-nav-group > summary{
  min-height: 36px;
  padding: 8px 10px !important;
  border: 1px solid #d7e3ef;
  border-radius: 10px;
  background: #fff;
  color: #173b60 !important;
  font-size: clamp(11px,.78vw,13px);
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.site-header.customer-header-mode .main-nav.customer-app-nav > a.customer-portal-nav-link:hover,
.site-header.customer-header-mode .main-nav.customer-app-nav > a.customer-portal-nav-link.active,
.site-header.customer-header-mode .customer-portal-nav-group.active > summary,
.site-header.customer-header-mode .customer-portal-nav-group > summary:hover{
  border-color: #8eb7e4;
  background: #f3f8fe;
  color: #004aad !important;
}

.site-header.customer-header-mode .main-nav.customer-app-nav > a.quote-action{
  border-color: #0f66bf;
  background: #fff;
  color: #075aab !important;
}

.site-header.customer-header-mode .main-nav.customer-app-nav > a.order-action{
  border-color: #004aad;
  background: linear-gradient(135deg,#004aad,#0b6bd3);
  color: #fff !important;
  box-shadow: 0 9px 20px rgba(0,74,173,.18);
}

.site-header.customer-header-mode .main-nav.customer-app-nav > a.order-action:hover,
.site-header.customer-header-mode .main-nav.customer-app-nav > a.order-action.active{
  background: linear-gradient(135deg,#003f92,#075fc2);
  color: #fff !important;
  border-color: #003f92;
}

.customer-portal-nav-group{
  position: relative;
  margin: 0;
}

.customer-portal-nav-group > summary{
  list-style: none;
  cursor: pointer;
  gap: 7px;
  user-select: none;
}

.customer-portal-nav-group > summary::-webkit-details-marker{display:none}
.customer-portal-nav-group > summary span{font-size:10px;transition:transform .16s ease}
.customer-portal-nav-group[open] > summary span{transform:rotate(180deg)}

.customer-portal-nav-dropdown{
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 120;
  min-width: 255px;
  padding: 8px;
  border: 1px solid #d8e5f2;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 20px 42px rgba(16,48,82,.18);
  display: grid;
  gap: 3px;
}

.customer-portal-nav-dropdown a{
  display: flex !important;
  justify-content: flex-start !important;
  min-height: 40px !important;
  width: 100%;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #173b60 !important;
  font-size: 13px !important;
  text-align: left;
}

.customer-portal-nav-dropdown a:hover,
.customer-portal-nav-dropdown a.active{
  background: #eef6ff !important;
  color: #004aad !important;
}

.customer-portal-nav-dropdown a.logout-link{
  margin-top: 5px;
  padding-top: 11px !important;
  border-top: 1px solid #e4edf6 !important;
  color: #8a2f2f !important;
}

@media (min-width:1101px) and (max-width:1380px){
  .site-header.customer-header-mode .main-nav.customer-app-nav{
    gap: 5px;
  }
  .site-header.customer-header-mode .main-nav.customer-app-nav > a.customer-portal-nav-link,
  .site-header.customer-header-mode .customer-portal-nav-group > summary{
    padding: 7px 8px !important;
    font-size: 11px;
  }
}

@media (max-width:1100px){
  .site-header.customer-header-mode .main-nav.customer-app-nav{
    overflow-y: auto;
    max-height: calc(100dvh - 82px);
  }

  .site-header.customer-header-mode .main-nav.customer-app-nav > a.customer-portal-nav-link,
  .site-header.customer-header-mode .customer-portal-nav-group > summary{
    width: 100%;
    min-height: 44px;
    justify-content: space-between;
    padding: 11px 13px !important;
    font-size: 14px;
    border-radius: 10px;
  }

  .customer-portal-nav-group{
    width: 100%;
  }

  .customer-portal-nav-dropdown{
    position: static;
    min-width: 0;
    margin-top: 6px;
    padding: 6px;
    border-radius: 11px;
    box-shadow: none;
    background: #f6f9fc;
  }

  .customer-portal-nav-dropdown a{
    min-height: 42px !important;
    font-size: 14px !important;
  }
}

@media (max-width:520px){
  .site-header.customer-header-mode .main-nav.customer-app-nav{
    max-height: calc(100dvh - 74px);
  }
}
