/* Shared Akzentlinie navigation for every customer instance. */
body > nav.tabs {
  align-items: stretch;
  gap: 2px;
  background: #fff;
  border-bottom: 1px solid #dbe5dc;
  box-shadow: 0 2px 9px rgb(20 54 33 / 4%);
  scrollbar-width: thin;
}
body > nav.tabs > a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 51px;
  padding: 14px 13px 11px;
  color: #586b60;
  border-bottom: 3px solid transparent;
  font-size: 13px;
  line-height: 1.25;
  text-decoration: none;
}
body > nav.tabs > a:hover,
body > nav.tabs > a:focus-visible {
  color: #255b3a;
  background: #f6f9f6;
}
body > nav.tabs > a.active {
  color: #255b3a;
  border-bottom-color: #3d765b;
}
body > nav.tabs > a:focus-visible,
nav.subtabs > a:focus-visible {
  outline: 2px solid #3d765b;
  outline-offset: -3px;
}

/* Secondary navigation is deliberately part of the scrolling page. */
nav.subtabs {
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0 0 2px;
  border: 0;
}
nav.subtabs > a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 37px;
  padding: 8px 12px;
  color: #52695b;
  background: #edf3ee;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.25;
  text-decoration: none;
}
nav.subtabs > a:hover,
nav.subtabs > a:focus-visible {
  color: #255b3a;
  background: #e5f0e7;
}
nav.subtabs > a.active {
  color: #255b3a;
  background: #dfeee3;
  border-color: #bad9c2;
}

/* The submenu chooser lives beside the scrollable bar, so it is not clipped. */
#nav-hover-preview {
  position: fixed;
  z-index: 90;
  width: min(470px, calc(100vw - 24px));
  max-height: min(65vh, 460px);
  overflow: auto;
  padding: 17px;
  color: #23382b;
  background: #fff;
  border: 1px solid #dbe7de;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 20px 32px rgb(24 59 44 / 21%);
}
#nav-hover-preview .nav-hover-preview__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
#nav-hover-preview .nav-hover-preview__head > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
#nav-hover-preview .nav-hover-preview__head small {
  color: #809588;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
#nav-hover-preview .nav-hover-preview__head strong {
  font-size: 17px;
}
#nav-hover-preview .nav-hover-preview__head button {
  width: 29px;
  height: 29px;
  padding: 0;
  color: #4d6a55;
  background: #f0f5f0;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
}
#nav-hover-preview .nav-hover-preview__head button:hover {
  background: #dfeee3;
}
#nav-hover-preview nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
#nav-hover-preview nav a {
  display: flex;
  align-items: center;
  min-height: 43px;
  padding: 10px;
  color: #345443;
  background: #f7faf7;
  border: 1px solid #e2ebe3;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
#nav-hover-preview nav a:hover,
#nav-hover-preview nav a:focus-visible {
  color: #255b3a;
  background: #e9f3eb;
  border-color: #9bc9a8;
  outline: none;
}

@media screen and (min-width: 761px) {
  body > nav.tabs {
    position: sticky;
    top: 0;
    z-index: 70;
  }
}

@media screen and (max-width: 760px) {
  #nav-hover-preview {
    display: none !important;
  }
}

@media print {
  body > nav.tabs,
  #nav-hover-preview {
    display: none !important;
  }
}
