@charset "UTF-8";
:root {
  --navbar-height: 90px;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: var(--navbar-height, 90px);
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.navbar-logo {
  height: 40px;
  width: auto;
}

.navbar-spacer {
  height: var(--navbar-height, 90px);
}

.mobile-offcanvas-logo {
  height: 35px;
  width: auto;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-offcanvas,
  .mega-menu,
  .menu-link.menu-link--l1::after,
  .mobile-menu-chevron {
    transition: none !important;
  }
}
@media (min-width: 1024px) {
  #mobile-offcanvas {
    display: none !important;
  }
}
@media (min-width: 1024px) {
  .desktop-navigation {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
  }
  .level-1-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 90px;
  }
  .menu-item.level-1 {
    display: flex;
    align-items: center;
    height: 90px;
  }
  .menu-item.level-1.has-children {
    position: static;
  }
  .menu-link.menu-link--l1 {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1.5rem;
    text-decoration: none;
  }
  .menu-link.menu-link--l1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #d32f2f;
    transform: scaleX(0);
    transition: transform 0.2s ease-in-out;
  }
  .menu-item.level-1.has-children:hover .menu-link.menu-link--l1::after,
  .menu-item.level-1.has-children.is-open .menu-link.menu-link--l1::after {
    transform: scaleX(1);
  }
  button.menu-link--l1 {
    gap: 0.5rem;
    background: transparent;
    border: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
  }
  .mega-toggle-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
  }
  .menu-link--l1[aria-expanded=true] .mega-toggle-icon {
    transform: rotate(180deg);
  }
  button.menu-link--l1:focus-visible {
    outline: 2px solid #d32f2f;
    outline-offset: 2px;
  }
  .mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #e5e7eb;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s ease;
    padding: 1.5rem 5% 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    max-height: calc(100vh - var(--navbar-height, 90px));
    overflow-y: auto;
  }
  .menu-item.level-1.has-children.is-open .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
@media (max-width: 1023px) {
  /* Desktop-Navigation komplett aus dem Mobile-Layout — auch das MegaMenu
     darf weder Layout-Platz reservieren noch durchscheinen. */
  .desktop-navigation,
  .desktop-navigation .mega-menu,
  .desktop-navigation .mega-menu-grid,
  .desktop-navigation .level-1-list {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .mobile-menu-hidden {
    display: none;
  }
  .mobile-menu-visible {
    display: block;
  }
}
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-menu-content-column {
  min-width: 0;
  padding-top: 0;
  display: flex;
  flex-direction: column;
}

.menu-group.level-2-group {
  min-width: 0;
}

.mobile-offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 10000;
  overflow-y: auto;
}

.mobile-offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem;
}

.mobile-offcanvas-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-language-switch {
  font-weight: 700;
}

.lang-switch {
  position: relative;
}
.lang-switch > summary {
  list-style: none;
  cursor: pointer;
}
.lang-switch > summary::-webkit-details-marker {
  display: none;
}

.lang-switch-list {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 60;
  min-width: 10rem;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
.lang-switch-list a {
  display: block;
  padding: 0.4rem 1rem;
  color: #000;
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}
.lang-switch-list a:hover, .lang-switch-list a:focus-visible {
  background: #f3f4f6;
}
.lang-switch-list a[aria-current] {
  font-weight: 700;
}

.mobile-offcanvas-body {
  padding: 1rem;
}

.mobile-panels {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  height: calc(100vh - 4.5rem);
  height: calc(100dvh - 4.5rem);
}

.mobile-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-panel.is-active {
  transform: translateX(0);
}

/* "is-prev" markiert Ebenen die im Stack hinter dem aktuellen Panel stehen.
   Sie schieben optisch nach links damit der Drilldown-Effekt entsteht. */
.mobile-panel.is-prev {
  transform: translateX(-30%);
  pointer-events: none;
  opacity: 0.4;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-panel {
    transition: none !important;
  }
}
.mobile-panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}

.mobile-panel-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem 0.5rem 0;
  background: transparent;
  border: 0;
  font: inherit;
  color: #d32f2f;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}
.mobile-panel-back:focus-visible {
  outline: 2px solid #d32f2f;
  outline-offset: 2px;
  border-radius: 4px;
}

.mobile-panel-title {
  font-weight: 700;
  font-size: 1rem;
  color: #111;
  flex: 1;
  text-align: center;
  margin-right: 2rem; /* visueller Ausgleich zum Back-Button links */
}

.mobile-panel-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1rem 1rem;
  flex: 1;
}

.mobile-panel-item {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-panel-trigger,
.mobile-panel-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.mobile-panel-trigger:hover, .mobile-panel-trigger:focus-visible,
.mobile-panel-link:hover,
.mobile-panel-link:focus-visible {
  color: #d32f2f;
}

.mobile-panel-trigger svg {
  flex: 0 0 auto;
  color: #888;
}

.mobile-panel-link--overview {
  color: #d32f2f;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px dashed #e5e7eb;
  margin-bottom: 0.25rem;
}

.mobile-panel-cta {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid #e5e7eb;
  margin-top: auto;
}

.mobile-menu-toggle,
.mobile-menu-link {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  text-decoration: none;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.mobile-dropdown-content {
  display: none;
  padding: 0.25rem 0 0.5rem;
}
.mobile-dropdown-content.is-open {
  display: block;
}

.mobile-dropdown-wrapper.level-1 > .mobile-dropdown-content {
  padding-left: 0.75rem;
  border-left: 2px solid #e5e7eb;
  margin: 0.25rem 0 0.75rem 0.25rem;
}

.mobile-dropdown-wrapper.level-2 > .mobile-dropdown-content,
.mobile-dropdown-wrapper.level-3 > .mobile-dropdown-content {
  padding-left: 0.75rem;
  border-left: 2px solid #f0f0f0;
  margin: 0.25rem 0 0.5rem 0.25rem;
}

.mobile-menu-toggle.menu-link--l2 {
  padding: 0.65rem 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.mobile-menu-toggle.menu-link--l3 {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.mobile-menu-flat {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-menu-flat > .menu-item {
  border-bottom: 1px solid #f0f0f0;
}
.mobile-menu-flat > .menu-item:last-child {
  border-bottom: 0;
}

.mobile-menu-toggle[aria-expanded=true] .mobile-menu-chevron {
  transform: rotate(90deg);
}

.mobile-menu-chevron {
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-chevron {
    transition: none !important;
  }
}
.mobile-menu-overview {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: #d32f2f;
  text-decoration: none;
  border-bottom: 1px dashed #e5e7eb;
  margin-bottom: 0.5rem;
}
.mobile-menu-overview:hover, .mobile-menu-overview:focus-visible {
  text-decoration: underline;
}

.mobile-offcanvas-body .menu-link--l2,
.mobile-offcanvas-body .menu-link--l3,
.mobile-offcanvas-body .menu-link--l4 {
  display: block;
  padding: 0.55rem 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-offcanvas-body .menu-link--l4 {
  padding-left: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}

.mobile-offcanvas-body .menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.megamenu-content {
  min-height: 300px;
  transition: opacity 0.15s ease;
}

.megamenu-empty {
  min-height: 300px;
  background-color: #fff;
}

.menu-heading.menu-heading--l2 {
  display: block;
  border-bottom: 1px solid #030303;
  padding-bottom: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.menu-heading.menu-heading--l3 {
  display: block;
}

.menu-item.level-3 {
  margin-bottom: 0.5rem;
}

li.menu-item.level-4 {
  margin-bottom: 0;
}

.menu-link.menu-link--l2,
.menu-link.menu-link--l3,
.menu-link.menu-link--l4 {
  display: block;
  text-decoration: none;
}

.menu-link.menu-link--l4 {
  font-size: 14px;
  margin-bottom: 3px;
  line-height: 1.4;
}

.mega-column .menu-link.menu-link--l3,
.mega-column a.menu-heading {
  font-weight: 700;
  margin-bottom: 10px;
}

.menu-list.level-4-list {
  margin-bottom: 1rem;
  margin-left: 0;
}

.mega-column.level-2-column .menu-heading.menu-heading--l2:not(:first-child),
.mega-column.level-2-column .menu-heading.menu-heading--l3:not(:first-child) {
  margin-top: 1.5rem;
}

.megamenu-preview-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.megamenu-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0.5rem;
}

.megamenu-preview-title {
  display: block;
  font-weight: 700;
  font-size: 24px;
  line-height: 42px;
  color: #3b3b3c;
}

.megamenu-description {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 18px;
  color: #3b3b3c;
}

.megamenu-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  font-weight: 700;
  color: #d32f2f;
  text-decoration: none;
}
.megamenu-link:hover {
  text-decoration: underline;
}

.megamenu-configurator-btn {
  margin-top: 1.5rem;
}

.mega-menu-content-column:has(.megamenu-configurator-btn) {
  position: sticky;
  top: 0;
  max-height: max(12rem, 100vh - var(--navbar-height, 90px) - 4.5rem);
}

.mega-menu-content-column .megamenu-configurator-btn {
  margin-top: auto;
  align-self: flex-start;
  flex-shrink: 0;
}

.mega-menu-content-column:has(.megamenu-configurator-btn) .megamenu-content {
  flex: 1 1 auto;
  min-height: 0;
  contain: size;
  overflow-y: auto;
  margin-bottom: 1.5rem;
}

@keyframes megamenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.megamenu-content > *:not(.megamenu-empty) {
  animation: megamenuFadeIn 0.2s ease;
}

.mega-menu [data-page-uid] {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.mega-menu [data-page-uid]:hover {
  background-color: rgba(0, 0, 0, 0.02);
}
