/* Production navigation shared by Aluminiumfenster24 and Alu-Windows24. */
:root {
  --apple-nav-height: 52px;
  --apple-nav-font-weight: 400;
  --apple-nav-bg: rgba(250, 250, 252, 0.72);
  --apple-nav-panel: rgba(255, 255, 255, 0.9);
  --apple-nav-text: #1d1d1f;
  --apple-nav-muted: #515154;
  --apple-nav-line: rgba(0, 0, 0, 0.12);
  --apple-nav-hover: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  --apple-nav-bg: rgba(24, 24, 26, 0.72);
  --apple-nav-panel: rgba(29, 29, 31, 0.9);
  --apple-nav-text: #f5f5f7;
  --apple-nav-muted: #d2d2d7;
  --apple-nav-line: rgba(255, 255, 255, 0.16);
  --apple-nav-hover: rgba(255, 255, 255, 0.08);
}

#site-shell-parity.site-shell {
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--apple-nav-height);
  transform: none;
  color: var(--apple-nav-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: var(--apple-nav-font-weight);
}

#site-shell-parity .site-shell__bar {
  grid-template-columns: minmax(210px, 258px) minmax(0, 1fr) auto;
  gap: 18px;
  width: 100%;
  min-height: var(--apple-nav-height);
  padding: 4px clamp(18px, 3.2vw, 52px);
  border: 0;
  border-bottom: 1px solid var(--apple-nav-line);
  border-radius: 0;
  background: var(--apple-nav-bg);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

#site-shell-parity .site-shell__brand {
  height: 44px;
}

#site-shell-parity .site-shell__brand > img {
  width: auto !important;
  max-width: 100% !important;
  height: 34px !important;
  max-height: 34px !important;
}

#site-shell-parity .site-shell__desktop-nav {
  justify-content: center;
  gap: clamp(1px, 0.45vw, 8px);
}

#site-shell-parity .site-shell__link,
#site-shell-parity .site-shell__summary {
  min-height: 40px;
  padding: 0 clamp(8px, 0.85vw, 14px);
  border-radius: 8px;
  color: var(--apple-nav-muted);
  font-size: 13px;
  font-weight: var(--apple-nav-font-weight);
  letter-spacing: -0.01em;
}

#site-shell-parity .site-shell__link[aria-current="page"],
#site-shell-parity .site-shell__group.is-active > .site-shell__summary,
#site-shell-parity .site-shell__dropdown a[aria-current="page"] {
  color: var(--apple-nav-text);
  background: transparent;
}

#site-shell-parity .site-shell__link:hover,
#site-shell-parity .site-shell__link:focus-visible,
#site-shell-parity .site-shell__summary:hover,
#site-shell-parity .site-shell__summary:focus-visible {
  color: var(--apple-nav-text);
  background: var(--apple-nav-hover);
}

#site-shell-parity .site-shell__group.is-active > .site-shell__summary:hover,
#site-shell-parity .site-shell__group.is-active > .site-shell__summary:focus-visible,
#site-shell-parity .site-shell__link[aria-current="page"]:hover,
#site-shell-parity .site-shell__link[aria-current="page"]:focus-visible {
  background: var(--apple-nav-hover);
}

#site-shell-parity .site-shell__chevron {
  display: none;
}

#site-shell-parity .site-shell__dropdown {
  position: fixed;
  top: var(--apple-nav-height);
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 6px;
  width: 100%;
  padding: 10px clamp(18px, 3.2vw, 52px) 12px;
  transform: none;
  border: 0;
  border-top: 0;
  border-bottom: 1px solid var(--apple-nav-line);
  border-radius: 0;
  background: var(--apple-nav-bg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

#site-shell-parity:has(.site-shell__group[open]) .site-shell__bar {
  border-bottom-color: transparent;
  box-shadow: none;
}

#site-shell-parity .site-shell__group[open] .site-shell__dropdown {
  animation: apple-subnav-in 180ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@media (min-width: 1081px) and (hover: hover) {
  #site-shell-parity .site-shell__group > .site-shell__summary {
    cursor: default;
  }
}

#site-shell-parity .site-shell__dropdown a {
  display: flex;
  min-height: 62px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--apple-nav-text);
  font-size: 14px;
  font-weight: var(--apple-nav-font-weight);
  letter-spacing: -0.02em;
  text-align: center;
}

#site-shell-parity .site-shell__dropdown a:hover,
#site-shell-parity .site-shell__dropdown a:focus-visible {
  background: var(--apple-nav-hover);
}

#site-shell-parity .site-shell__dropdown small {
  margin-top: 4px;
  color: var(--apple-nav-muted);
  font-size: 11px;
  font-weight: var(--apple-nav-font-weight);
  line-height: 1.35;
}

/* Keep the twelve information destinations in one desktop row and let only
   the label wrap inside its own equal-width tile. */
#site-shell-parity .site-shell__group--information .site-shell__dropdown {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
  padding-inline: clamp(12px, 1.8vw, 30px);
}

#site-shell-parity .site-shell__group--information .site-shell__dropdown a {
  min-width: 0;
  min-height: 66px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  font-size: clamp(10.5px, 0.78vw, 12.5px);
  line-height: 1.18;
  overflow-wrap: anywhere;
  hyphens: auto;
}

#site-shell-parity .site-shell__group--information .site-shell__dropdown a:hover,
#site-shell-parity .site-shell__group--information .site-shell__dropdown a:focus-visible {
  background: rgba(127, 127, 127, 0.16);
}

@keyframes apple-subnav-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#site-shell-parity .site-shell__tools {
  gap: 5px;
}

#site-shell-parity .site-shell__tool,
#site-shell-parity .site-shell__burger {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--apple-nav-text);
  background: transparent;
  font-size: 12px;
  font-weight: var(--apple-nav-font-weight);
}

#site-shell-parity .site-shell__tool:hover,
#site-shell-parity .site-shell__tool:focus-visible,
#site-shell-parity .site-shell__burger:hover,
#site-shell-parity .site-shell__burger:focus-visible {
  border-color: transparent;
  background: var(--apple-nav-hover);
}

#site-shell-parity .site-shell__tool svg,
#site-shell-parity .site-shell__burger svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.6;
}

#site-shell-parity .site-shell__cta {
  min-height: 36px;
  padding: 0 17px;
  border-radius: 999px;
  background: #0f6fa8;
  font-size: 13px;
  font-weight: var(--apple-nav-font-weight);
  letter-spacing: -0.01em;
  box-shadow: none;
  transition: background 160ms ease, transform 160ms ease;
}

#site-shell-parity .site-shell__cta:hover,
#site-shell-parity .site-shell__cta:focus-visible {
  background: #0b5f91;
  transform: translateY(-1px);
}

@media (max-width: 1270px) {
  #site-shell-parity .site-shell__bar {
    grid-template-columns: minmax(194px, 222px) minmax(0, 1fr) auto;
    gap: 8px;
    padding-inline: 18px;
  }

  #site-shell-parity .site-shell__link,
  #site-shell-parity .site-shell__summary {
    padding-inline: 8px;
    font-size: 12px;
  }
}

@media (max-width: 1080px) {
  #site-shell-parity .site-shell__bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #site-shell-parity .site-shell__burger {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    color: #f5f5f7;
    background: #1d1d1f;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.16);
  }

  #site-shell-parity .site-shell__burger:hover,
  #site-shell-parity .site-shell__burger:focus-visible {
    border-color: rgba(0, 0, 0, 0.24);
    color: #fff;
    background: #000;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.2);
  }

  [data-theme="dark"] #site-shell-parity .site-shell__burger {
    border-color: rgba(255, 255, 255, 0.34);
    color: #1d1d1f;
    background: #f5f5f7;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.3);
  }

  [data-theme="dark"] #site-shell-parity .site-shell__burger:hover,
  [data-theme="dark"] #site-shell-parity .site-shell__burger:focus-visible {
    border-color: #fff;
    color: #000;
    background: #fff;
  }

  #site-shell-parity .site-shell__brand > img {
    height: 32px !important;
    max-height: 32px !important;
  }

  #site-shell-parity .site-shell__mobile {
    position: fixed;
    top: var(--apple-nav-height);
    right: 0;
    left: 0;
    max-height: calc(100vh - var(--apple-nav-height));
    padding: 18px clamp(14px, 4vw, 28px) 28px;
    border: 0;
    border-top: 1px solid var(--apple-nav-line);
    border-radius: 0;
    background: var(--apple-nav-panel);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: saturate(180%) blur(28px);
    backdrop-filter: saturate(180%) blur(28px);
  }

  #site-shell-parity .site-shell__mobile-section {
    padding: 8px 0 14px;
  }

  #site-shell-parity .site-shell__mobile a {
    padding: 11px 10px;
    font-size: 17px;
    font-weight: var(--apple-nav-font-weight);
    letter-spacing: -0.02em;
  }
}

#site-shell-parity .site-shell__mobile-title,
#site-shell-parity .site-shell__mobile-links a small {
  font-family: inherit;
  font-weight: var(--apple-nav-font-weight);
}

@media (max-width: 620px) {
  #site-shell-parity.site-shell {
    top: 0;
    width: 100%;
    min-height: var(--apple-nav-height);
  }

  #site-shell-parity .site-shell__bar {
    min-height: var(--apple-nav-height);
    padding: 4px 8px 4px 14px;
    border-radius: 0;
  }

  #site-shell-parity .site-shell__brand {
    height: 40px;
  }

  #site-shell-parity .site-shell__brand > img {
    max-width: min(100%, 202px) !important;
    height: 30px !important;
    max-height: 30px !important;
  }

  #site-shell-parity .site-shell__tools {
    gap: 2px;
  }

  #site-shell-parity .site-shell__tool {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  #site-shell-parity .site-shell__burger {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  /* Fixed navigation must never cover the first page description. These are
     the three breadcrumb families used by projects, legal pages and the
     generated technical system detail pages. */
  main .project-crumb {
    margin-top: 24px !important;
  }

  main .legal-breadcrumb {
    margin-top: 18px !important;
  }

  main .hero .breadcrumbs {
    margin-top: 20px !important;
  }
}
