:root {
  --advidea-solnav-header-offset: 0px;
  --advidea-solnav-z: 950;
  --advidea-solnav-orange: #E96F3A;
  --advidea-solnav-navy: #0D1A2E;
  --advidea-solnav-border: #E8ECF2;
  --advidea-solnav-white: #FFFFFF;
}

/*
 * 1.1.0
 * Die originale 12er-Navigation bleibt vollständig im normalen Seitenfluss.
 * Erst nachdem sie nach oben verschwunden ist, wird die separate
 * Floating-Icon-Navigation eingeblendet.
 */
.advidea-solutions-nav {
  position: relative !important;
  top: auto !important;
  z-index: auto !important;
}

/* Frühere Sticky-Klassen neutralisieren. */
.advidea-solutions-nav.is-advidea-sticky {
  position: relative !important;
  top: auto !important;
  padding-top: inherit !important;
  padding-bottom: inherit !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.advidea-solutions-nav.is-advidea-sticky .advidea-solutions-nav-label {
  display: block !important;
}

.advidea-solutions-nav.is-advidea-sticky .advidea-solutions-nav-grid {
  display: flex !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Separate, wirklich feste Floating-Navigation. */
.advidea-solutions-floating {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%) translateX(-14px);
  z-index: var(--advidea-solnav-z);
  width: 270px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}

.advidea-solutions-floating.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.advidea-solutions-floating__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.advidea-solutions-floating__item {
  display: flex;
  align-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: var(--advidea-solnav-navy);
  color: var(--advidea-solnav-white);
  text-decoration: none !important;
  box-shadow: 0 5px 18px rgba(13,26,46,.18);
  transition:
    width .22s ease,
    background-color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
  white-space: nowrap;
}

.advidea-solutions-floating__item:hover,
.advidea-solutions-floating__item:focus-visible {
  width: 245px;
  background: var(--advidea-solnav-navy);
  border-color: rgba(233,111,58,.72);
  box-shadow: 0 8px 24px rgba(13,26,46,.24);
  transform: translateX(2px);
  outline: none;
}

.advidea-solutions-floating__item.is-active {
  background: var(--advidea-solnav-orange);
  border-color: var(--advidea-solnav-orange);
}

.advidea-solutions-floating__item.is-active:hover,
.advidea-solutions-floating__item.is-active:focus-visible {
  background: var(--advidea-solnav-orange);
}

.advidea-solutions-floating__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--advidea-solnav-orange);
}

.advidea-solutions-floating__item.is-active .advidea-solutions-floating__icon {
  color: var(--advidea-solnav-white);
}

.advidea-solutions-floating__icon svg {
  width: 20px !important;
  height: 20px !important;
  fill: currentColor;
}

.advidea-solutions-floating__icon svg,
.advidea-solutions-floating__icon svg * {
  color: currentColor !important;
}

.advidea-solutions-floating__icon i {
  font-size: 19px !important;
  color: currentColor !important;
}

.advidea-solutions-floating__fallback {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  color: currentColor;
}

.advidea-solutions-floating__name {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 17px 0 4px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--advidea-solnav-white);
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity .16s ease .04s, transform .18s ease .04s;
}

.advidea-solutions-floating__item:hover .advidea-solutions-floating__name,
.advidea-solutions-floating__item:focus-visible .advidea-solutions-floating__name {
  opacity: 1;
  transform: translateX(0);
}

/* Ankerziele landen sauber unter dem festen Header. */
#lead-studio,
#landingpage-studio,
#website-studio,
[id$="-studio"],
#kundenverwaltung,
#restaurant-management,
#energievertrieb,
#advidea-connect {
  scroll-margin-top: calc(var(--advidea-solnav-header-offset) + 24px);
}

/*
 * Unter 768 px wird die seitliche 12er-Leiste ausgeblendet.
 * Auf kleinen Smartphones würde sie zu viel nutzbare Breite belegen.
 */
@media (max-width: 767px) {
  .advidea-solutions-floating {
    display: none !important;
  }
}

/* Auf niedrigen Notebookfenstern leicht kompakter, damit alle 12 Icons passen. */
@media (min-width: 768px) and (max-height: 760px) {
  .advidea-solutions-floating__list {
    gap: 4px;
  }

  .advidea-solutions-floating__item {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .advidea-solutions-floating__item:hover,
  .advidea-solutions-floating__item:focus-visible {
    width: 232px;
  }

  .advidea-solutions-floating__icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .advidea-solutions-floating__icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  .advidea-solutions-floating__icon i {
    font-size: 17px !important;
  }

  .advidea-solutions-floating__name {
    font-size: 13px;
  }
}
