/* The public page frame is shared with the Stadtwerke site. These rules style portal-specific forms. */
.portal-skip {
  position: absolute;
  left: 1rem;
  top: -8rem;
  z-index: 1200;
  padding: .8rem 1.15rem;
  background: #fff;
  color: #0069b4;
}
.portal-skip:focus { top: .5rem; }
.portal-panel {
  margin: 0 auto;
  max-width: 46rem;
  padding: clamp(2.5rem, 5vw, 5.25rem) 1.25rem;
}
.portal-panel h1, .portal-intro, .portal-help, .portal-notice { text-align: center; }
.frame + .portal-panel { padding-top: clamp(2rem, 3.1vw, 3rem); }
.portal-intro { margin: 1.5rem 0 2rem; }
.portal-form {
  max-width: 34rem;
  margin-inline: auto;
  display: grid;
  gap: 1.25rem;
}
.portal-form .form-label { margin-bottom: .35rem; }
.portal-form .form-control { min-height: 2.85rem; }
.portal-form .btn { justify-self: start; }
.portal-help { margin-top: 2rem; }
.portal-error {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
  border-left: .25rem solid #a13224;
  padding: .8rem 1rem;
  background: #fff;
  color: #72251b;
  text-align: left;
}
.portal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; align-items: center; }
.portal-notice { padding-block: clamp(3rem, 8vw, 8rem); }
.portal-panel :focus-visible, #page-header :focus-visible, #topnavigation :focus-visible, #page-footer :focus-visible {
  outline: 3px solid #0069b4 !important;
  outline-offset: 3px;
}
#topnavigation :focus-visible { outline-color: #fdc501 !important; }
[hidden] { display: none !important; }
@media (min-width: 992px) {
  #mainnavigation .dropdown-menu.show { top: 100%; left: 0; }
}
@media (max-width: 575px) {
  .portal-panel { padding-inline: 1rem; }
  .portal-form .btn { width: 100%; }
}

@media screen {
  .portal-staff-layout {
    display: grid;
    height: 100vh;
    height: 100dvh;
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-columns: minmax(0, 1fr);
  }
  .portal-staff-scroll {
    overflow: auto;
  }
  .portal-staff-layout #bottomnavigation {
    max-height: 45vh;
    max-height: 45dvh;
    overflow: auto;
  }
}
