/* Header components reuse the existing hours box, social icons and menu pill. */
html body .pj-header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

html body .pj-header-phone-box {
  padding: 5px 0;
  text-align: left;
}

html body .pj-header-phone {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

html body .pj-header-phone:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

html body .pj-nav-cta-wrap {
  display: none;
}

html body .pj-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: calc(1.42857143em + 16px);
  padding: 8px 16px;
  border: 1px solid #01A3DE;
  border-radius: 30px;
  background: #017FAD;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.42857143;
  text-decoration: none;
}

html body .pj-nav-cta:hover,
html body .pj-nav-cta:focus {
  background: #01A3DE;
  color: #08141f;
}

html body .pj-nav-cta:focus-visible {
  outline: 2px solid #01A3DE;
  outline-offset: 3px;
}

html body .pj-nav-cta[aria-current="page"] {
  box-shadow: inset 0 0 0 2px #fff;
}

/* Menuzord and the existing header switch to desktop above 900px. */
@media (min-width: 901px) {
  html body.pj-site-header-page .header-nav .menuzord {
    padding-right: 120px;
  }

  html body .menuzord-menu > li.pj-menu-kontakt {
    display: none;
  }

  html body .pj-nav-cta-wrap {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    height: 72px;
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.24);
    white-space: nowrap;
  }
}

@media (min-width: 901px) and (max-width: 1199px) {
  html body .pj-nav-cta {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 12px;
  }

  html body .pj-nav-cta-wrap {
    padding-left: 12px;
  }
}

@media (max-width: 900px) {
  html body.pj-site-header-page .pj-site-header-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 12px;
  }

  html body .pj-header-right {
    display: contents;
  }

  /* Both rows share the container edges; the existing hours remain visible. */
  html body.pj-site-header-page .pj-site-header-row .pj-header-logo-wrap {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  html body.pj-site-header-page .pj-site-header-row .pj-header-logo img {
    max-width: 100%;
    height: auto;
  }

  html body.pj-site-header-page .pj-site-header-hours {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin: 0;
  }

  html body.pj-site-header-page .pj-site-header-row::after {
    content: none;
  }

  html body .pj-header-phone-box {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
    justify-content: flex-end;
    text-align: right;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 0;
  }

  html body .pj-header-phone-box .pj-header-icon {
    display: flex;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  html body .pj-header-phone-box .pj-header-icon i {
    color: #01A3DE;
  }

  html body .pj-header-phone-box .pj-header-label {
    display: none;
  }

  html body .pj-header-right > .pj-site-nav-social {
    display: none;
  }

  html body.pj-site-header-page .header-nav .menuzord {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0;
  }

  html body.pj-site-header-page .menuzord .showhide {
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    color: #fff;
  }

  html body.pj-site-header-page .menuzord .showhide em {
    position: absolute;
    top: 12px;
    left: 10px;
    float: none;
    width: 24px;
    height: 3px;
    margin: 0;
    background: currentColor;
  }

  html body.pj-site-header-page .menuzord .showhide em:nth-child(2) {
    top: 20px;
  }

  html body.pj-site-header-page .menuzord .showhide em:nth-child(3) {
    top: 28px;
  }

  html body.pj-site-header-page .menuzord .showhide[aria-expanded="true"] {
    color: #01A3DE;
  }

  html body.pj-site-header-page .menuzord .showhide:focus-visible {
    outline: 2px solid #01A3DE;
    outline-offset: -2px;
  }

  html body.pj-site-header-page .menuzord .menuzord-menu {
    box-sizing: border-box;
    clear: both;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border-top: 2px solid #01A3DE;
    background: #121F27;
    /* Override Menuzord's inline 400px cap; allow scrolling below the toggle. */
    max-height: calc(100vh - 45px) !important;
    max-height: calc(100dvh - 45px) !important;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  html body.pj-site-header-page .menuzord .menuzord-menu > li {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  html body.pj-site-header-page .menuzord .menuzord-menu > li > a {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 14px 20px !important;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    border-radius: 0;
    background: transparent;
    color: #fff !important;
  }

  html body.pj-site-header-page .menuzord .menuzord-menu > li > a:hover,
  html body.pj-site-header-page .menuzord .menuzord-menu > li > a:focus {
    background: rgba(1, 163, 222, .10);
  }

  html body.pj-site-header-page .menuzord .menuzord-menu > li > a:focus-visible {
    outline: 2px solid #01A3DE;
    outline-offset: -2px;
  }

  html body.pj-site-header-page .menuzord .menuzord-menu > li.active > a {
    padding-left: 17px !important;
    border-left: 3px solid #01A3DE;
    color: #01A3DE !important;
  }

  html body.pj-site-header-page .menuzord .menuzord-menu > li.pj-menu-kontakt {
    width: auto;
    margin: 12px 20px;
  }

  html body.pj-site-header-page .menuzord .menuzord-menu > li.pj-menu-kontakt > a {
    border-bottom: 0;
    border-radius: 30px;
    background: #017FAD;
    color: #fff !important;
    text-align: center;
  }

  html body.pj-site-header-page .menuzord .menuzord-menu > li.pj-menu-kontakt > a:hover,
  html body.pj-site-header-page .menuzord .menuzord-menu > li.pj-menu-kontakt > a:focus {
    text-decoration: underline;
  }

  html body.pj-site-header-page .menuzord .menuzord-menu > li.pj-site-mobile-social {
    padding: 0;
    border: 0;
    background: transparent;
  }

  html body.pj-site-header-page .menuzord .menuzord-menu > li.pj-site-mobile-social > a > i {
    display: inline-block;
    float: none;
    width: 20px;
    margin: 0 8px 0 0;
    color: #01A3DE;
    text-align: center;
  }
}

@media (max-width: 480px) {
  html body.pj-site-header-page .pj-site-header-hours .pj-header-subvalue {
    font-size: 11px;
  }
}

@media (max-width: 359px) {
  html body.pj-site-header-page .pj-site-header-hours .pj-header-label {
    display: none;
  }
}

/* Home hero: use the same fading accent line as the subpage banners. */
.pj-premium-panel .pj-premium-kicker {
  display: block;
  padding-left: 0;
  margin-bottom: 18px;
}

.pj-premium-panel .pj-premium-kicker::before {
  display: none;
}

.pj-premium-panel .pj-premium-kicker::after {
  content: "";
  display: block;
  width: 84px;
  height: 3px;
  margin-top: 12px;
  border-radius: 30px;
  background: linear-gradient(
    90deg,
    #00adef 0%,
    rgba(0, 173, 239, 0.55) 55%,
    rgba(0, 173, 239, 0.08) 100%
  );
  box-shadow: 0 0 18px rgba(0, 173, 239, 0.18);
}

@media (max-width: 767px) {
  .pj-premium-panel .pj-premium-kicker {
    padding-left: 0;
  }
}
