.mega-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(135deg, hsl(0 0% 8%) 0%, hsl(270 15% 15%) 50%, hsl(0 0% 10%) 100%);
  transition: all 500ms ease-in-out;
}

.mega-menu.is-scrolled {
  background: linear-gradient(135deg, hsl(0 0% 6%) 0%, hsl(270 20% 12%) 50%, hsl(0 0% 8%) 100%);
}

.mega-menu__container {
  width: 100%;
  max-width: 1337px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.mega-menu__upper {
  width: 100%;
  border-bottom: 1px solid hsl(0 0% 100% / 0.05);
  background: hsl(0 0% 11%);
}

.mega-menu__upper-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.mega-menu__upper-link {
  padding-top: 6px;
  padding-bottom: 6px;
  color: hsl(0 0% 95%);
  font-size: 14px;
  line-height: 16px;
  text-decoration: none;
  transition: color 200ms ease;
}

.mega-menu__upper-link:hover {
  color: hsl(0 0% 100%);
}

.mega-menu__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  transition: all 500ms ease;
}

.mega-menu.is-scrolled .mega-menu__main {
  padding-top: 8px;
  padding-bottom: 8px;
}

.mega-menu__logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 500ms ease;
}

.mega-menu.is-scrolled .mega-menu__logo-link {
  transform: scale(0.85);
}

.mega-menu__logo {
  height: 32px;
  width: auto;
  display: block;
}

.mega-menu__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mega-menu__nav-item {
  position: relative;
}

.mega-menu__nav-button {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 8px;
  padding: 8px 16px;
  background: transparent;
  color: hsl(0 0% 100% / 0.8);
  font-size: 18px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 200ms ease;
}

.mega-menu__nav-button:hover,
.mega-menu__nav-button.is-active {
  color: #ee7203;
}

.mega-menu__plus {
  display: inline-block;
  margin-left: 2px;
  color: hsl(0 0% 60%);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  transition: transform 300ms ease, color 200ms ease;
}

.mega-menu__nav-button.is-active .mega-menu__plus {
  color: #ee7203;
  transform: rotate(45deg);
}

.mega-menu__cta-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mega-menu__cta-wrap .hs-cta-wrapper a,
.mega-menu__mobile-cta .hs-cta-wrapper a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 8px 20px;
  background: #ee7203;
  color: hsl(0 0% 100%);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 300ms ease, box-shadow 300ms ease, filter 200ms ease;
}

.mega-menu__cta-wrap .hs-cta-wrapper a:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px hsl(0 0% 0% / 0.25), 0 4px 6px -4px hsl(0 0% 0% / 0.25);
}

.mega-menu__mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: hsl(0 0% 100%);
  cursor: pointer;
}

.mega-menu__mobile-icon--close {
  display: none;
}

.mega-menu.is-mobile-open .mega-menu__mobile-icon--open {
  display: none;
}

.mega-menu.is-mobile-open .mega-menu__mobile-icon--close {
  display: block;
}

.mega-menu__dropdown {
  position: absolute;
  left: 0;
  right: 0;
  display: none;
  border-top: 1px solid hsl(0 0% 100% / 0.05);
  background: hsl(0 0% 6%);
}

.mega-menu__dropdown.is-active {
  display: block;
}

.mega-menu__dropdown-inner {
  padding-left: 24px;
  padding-right: 24px;
}

.mega-menu__tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid hsl(0 0% 100% / 0.05);
  padding-top: 16px;
  padding-bottom: 16px;
}

.mega-menu__tab {
border: 1px solid rgb(51, 51, 51)!important;
  border-radius: 9999px;
  padding: 6px 16px;
  background: transparent;
  color: hsl(0 0% 60%);
  font-size: 16px;
  line-height: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
}

.mega-menu__tab:hover,
.mega-menu__tab.is-active {
  border-color: #ee7203;
  background: #ee7203;
  color: hsl(0 0% 100%);
}

.mega-menu__dropdown-content {
  padding-top: 32px;
  padding-bottom: 32px;
}

.mega-menu__grid {
  display: grid;
  gap: 40px;
}

.mega-menu__grid--1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.mega-menu__grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mega-menu__grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mega-menu__grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mega-menu__grid--5,
.mega-menu__grid--6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mega-menu__column.is-hidden {
  display: none;
}

.mega-menu__column-title  {
  margin: 0 0 16px;
  color: #ee7203;
  font-size: 12px!important;
  line-height: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mega-menu__items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-menu__card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-radius: 12px;
  padding: 12px;
  color: inherit;
  text-decoration: none;
  transition: all 200ms ease;
}

.mega-menu__card:hover {
  background: hsl(0 0% 100% / 0.05);
}

.mega-menu__card.is-hidden {
  display: none;
}

.mega-menu__card-icon {
  display: flex;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  border-radius: 8px;
  background: hsl(0 0% 15%);
  color: #ee7203;
  transition: color 200ms ease;
}

.mega-menu__card-icon svg {
  width: 20px;
  height: 20px;
}

.mega-menu__card:hover .mega-menu__card-icon {
  color: #ee7203;
}

.mega-menu__card-body {
  flex: 1 1 auto;
  min-width: 0;
}

.mega-menu__card-headline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-menu__card-title {
  color: hsl(0 0% 100%);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  transition: color 200ms ease;
}

.mega-menu__card:hover .mega-menu__card-title {
  color: #ee7203;
}

.mega-menu__tag {
  border-radius: 9999px;
  padding: 2px 8px;
background: color-mix(in srgb, #ee7203 20%, transparent);
  color: #ee7203;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.mega-menu__card-subtext {
  display: block;
  margin-top: 2px;
  color: hsl(0 0% 100% / 0.55);
  font-size: 12px;
  line-height: 16px;
  transition: color 200ms ease;
}

.mega-menu__card:hover .mega-menu__card-subtext {
  color: hsl(0 0% 100% / 0.8);
}

.mega-menu__arrow {
  flex-shrink: 0;
  margin-top: 4px;
  color: transparent;
  transition: color 200ms ease;
}

.mega-menu__card:hover .mega-menu__arrow {
  color: hsl(0 0% 100% / 0.4);
}

.mega-menu__empty,
.mega-menu__mobile-empty {
  display: none;
  margin: 0;
  padding: 32px 0;
  color: hsl(0 0% 100% / 0.4);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.mega-menu__empty.is-active,
.mega-menu__mobile-empty.is-active {
  display: block;
}

.mega-menu__mobile {
  display: none;
}

@media (max-width: 1024px) {
  .mega-menu__nav,
  .mega-menu__cta-wrap {
    display: none;
  }

  .mega-menu__mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mega-menu__main {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .mega-menu.is-scrolled .mega-menu__main {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .mega-menu__upper {
    display: none;
  }

  .mega-menu__dropdown {
    display: none !important;
  }

  .mega-menu__mobile {
    display: none;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    border-top: 1px solid hsl(0 0% 100% / 0.1);
    background: hsl(0 0% 6%);
  }

  .mega-menu.is-mobile-open .mega-menu__mobile {
    display: block;
  }

  .mega-menu__mobile-section {
    border-bottom: 1px solid hsl(0 0% 100% / 0.05);
  }

  .mega-menu__mobile-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    border: 0;
    padding: 16px 24px;
    background: transparent;
    color: hsl(0 0% 100% / 0.9);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 200ms ease;
  }

  .mega-menu__mobile-button.is-active {
    color: #ee7203
  }

  /* Menüpunkt mit eigenem Link + Aufklapp-Toggle: Plus inline rechts halten */
  .mega-menu__mobile-button-row {
    display: flex;
    align-items: center;
  }

  .mega-menu__mobile-button-row .mega-menu__mobile-button {
    width: auto;
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .mega-menu__mobile-accordion-toggle {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 16px 24px;
    background: transparent;
    color: hsl(0 0% 100% / 0.9);
    cursor: pointer;
  }

  .mega-menu__mobile-plus {
    display: inline-block;
    color: hsl(0 0% 60%);
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    transition: transform 300ms ease, color 200ms ease;
  }

  .mega-menu__mobile-button.is-active .mega-menu__mobile-plus {
    color: #ee7203
    transform: rotate(45deg);
  }

  .mega-menu__mobile-panel {
    display: none;
    padding: 0 16px 16px;
  }

  .mega-menu__mobile-panel.is-active {
    display: block;
  }

  .mega-menu__mobile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .mega-menu__mobile-tab {
    border: 1px solid hsl(0 0% 20%)!important;
    border-radius: 9999px;
    padding: 4px 12px;
    background: transparent;
    color: hsl(0 0% 55%);
    font-size: 11px;
    line-height: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 200ms ease;
  }

  .mega-menu__mobile-tab.is-active {
    border-color: #ee7203
    background: #ee7203
    color: hsl(0 0% 100%);
  }

  .mega-menu__mobile-column {
    margin-bottom: 12px;
  }

  .mega-menu__mobile-column.is-hidden {
    display: none;
  }

  .mega-menu__mobile-title {
    margin: 0 0 8px;
    padding-left: 8px;
    padding-right: 8px;
    color: #ee7203
    font-size: 10px;
    line-height: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  .mega-menu__mobile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    padding: 10px 8px;
    color: inherit;
    text-decoration: none;
    transition: background-color 200ms ease;
  }

  .mega-menu__mobile-card:hover {
    background: hsl(0 0% 100% / 0.05);
  }

  .mega-menu__mobile-card.is-hidden {
    display: none;
  }

  .mega-menu__mobile-card-icon {
    display: flex;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: hsl(0 0% 12%);
    color:#ee7203;
  }

  .mega-menu__mobile-card-icon svg {
    width: 16px;
    height: 16px;
  }

  .mega-menu__mobile-card:hover .mega-menu__mobile-card-icon {
    color: #ee7203;
  }

  .mega-menu__mobile-card-body {
    min-width: 0;
    flex: 1 1 auto;
  }

  .mega-menu__mobile-card-headline {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .mega-menu__mobile-card-title {
    overflow: hidden;
    color: hsl(0 0% 100% / 0.9);
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mega-menu__mobile-card:hover .mega-menu__mobile-card-title {
    color: #ee7203;
  }

  .mega-menu__mobile-tag {
    flex-shrink: 0;
    border-radius: 9999px;
    padding: 2px 6px;
    background: color-mix(in srgb, #ee7203 15%, transparent);
    color: #ee7203;
    font-size: 9px;
    line-height: 12px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .mega-menu__mobile-card-subtext {
    display: block;
    overflow: hidden;
    color: hsl(0 0% 100% / 0.3);
    font-size: 11px;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mega-menu__mobile-cta {
    padding: 24px;
  }

  .mega-menu__mobile-cta .hs-cta-wrapper,
  .mega-menu__mobile-cta .hs-cta-wrapper a {
    width: 100%;
  }

  .mega-menu__mobile-cta .hs-cta-wrapper a {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

.mega-menu__card-icon svg stroke{

}

.stickyOffset {
    padding-top: 0;
}

.mega-menu__upper-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.mega-menu__upper-image {
  width: 1em;
  height: 1em;
  max-width: 1em;
  max-height: 1em;
  object-fit: contain;
  flex: 0 0 auto;
}

.mega-menu__upper-text {
  line-height: 1;
}

.mega-menu__card-icon svg{

}

.mega-menu__upper-link {
  font-size: 14px;
  line-height: 16px;
}

/* Main navigation */
.mega-menu__nav-button {
  font-size: 18px;
  line-height: 22px;
}

/* CTA button */
.mega-menu__cta-wrap .hs-cta-wrapper a,
.mega-menu__mobile-cta .hs-cta-wrapper a {
  font-size: 16px;
  line-height: 20px;
}

/* Dropdown tabs */
.mega-menu__tab {
  font-size: 16px;
  line-height: 20px;
}

/* Dropdown column title stays smaller */
.mega-menu__column-title {
  font-size: 12px !important;
  line-height: 16px;
}

/* Dropdown card title */
.mega-menu__card-title {
  font-size: 16px;
  line-height: 22px;
}

/* Dropdown card subtext */
.mega-menu__card-subtext {
  font-size: 16px;
  line-height: 22px;
}

/* Empty state */
.mega-menu__empty,
.mega-menu__mobile-empty {
  font-size: 16px;
  line-height: 22px;
}

@media (max-width: 1024px) {
  /* Mobile menu buttons */
  .mega-menu__mobile-button {
    font-size: 18px;
    line-height: 24px;
  }

  /* Mobile tabs */
  .mega-menu__mobile-tab {
    font-size: 16px;
    line-height: 20px;
  }

  /* Mobile column title stays smaller */
  .mega-menu__mobile-title {
    font-size: 12px;
    line-height: 16px;
  }

  /* Mobile card title */
  .mega-menu__mobile-card-title {
    font-size: 16px;
    line-height: 22px;
  }

  /* Mobile card subtext */
  .mega-menu__mobile-card-subtext {
    font-size: 16px;
    line-height: 22px;
  }
}

@media (max-width: 1024px) {
  .mega-menu__mobile-title {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 18px 8px 10px;
    padding: 4px 10px;
    border-radius: 9999px;
    background: rgba(238, 114, 3, 0.12);
    color: #ee7203;
    font-size: 12px !important;
    line-height: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .mega-menu__mobile-column:first-child .mega-menu__mobile-title {
    margin-top: 8px;
  }

  .mega-menu__mobile-card-headline {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
  }

  .mega-menu__mobile-card-title {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    color: hsl(0 0% 100% / 0.92);
    font-size: 16px;
    line-height: 22px;
    font-weight: 650;
  }

  .mega-menu__mobile-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    max-width: 100%;
    margin-top: 1px;
    border: 1px solid color-mix(in srgb, #ee7203, #ee7203) 35%, transparent);
    border-radius: 9999px;
    padding: 3px 8px;
    background: color-mix(in srgb, var(--item-color, #ee7203) 14%, transparent);
    color: var(--item-color, #ee7203);
    font-size: 10px;
    line-height: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .mega-menu__mobile-card-subtext {
    margin-top: 3px;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    color: hsl(0 0% 100% / 0.56);
    font-size: 14px;
    line-height: 20px;
  }

  .mega-menu__mobile-card {
    align-items: flex-start;
    gap: 12px;
    padding: 12px 8px;
  }

  .mega-menu__mobile-card-icon {
    margin-top: 2px;
  }

  .mega-menu__mobile-tab.is-active {
    border-color: #ee7203;
    background: #ee7203;
    color: hsl(0 0% 100%);
  }

  .mega-menu__mobile-button.is-active {
    color: #ee7203;
  }

  .mega-menu__mobile-button.is-active .mega-menu__mobile-plus,
  .mega-menu__mobile-accordion-toggle.is-active .mega-menu__mobile-plus {
    color: #ee7203;
    transform: rotate(45deg);
  }
}

/* Level 2&3 column title: same styling with and without link */
.mega-menu__column-title,
.mega-menu__column-title-link {
  color: #ee7203;
  font-size: 12px !important;
  line-height: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mega-menu__column-title-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease;
}

.mega-menu__column-title-link:hover,
.mega-menu__column-title-link:focus {
  color: #ee7203;
  text-decoration: none;
}

/* Mobile Level 2&3 title: same styling with and without link */
.mega-menu__mobile-title,
.mega-menu__mobile-title-link {
  color: #ee7203;
  font-size: 12px !important;
  line-height: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mega-menu__mobile-title-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease;
}

.mega-menu__mobile-title-link:hover,
.mega-menu__mobile-title-link:focus {
  color: #ee7203;
  text-decoration: none;
}