.public-header {
  position: relative;
  z-index: 30;
  display: grid;
  min-height: 82px;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  gap: clamp(.8rem, 2.3vw, 2.25rem);
  align-items: center;
  padding: .75rem clamp(1rem, 4vw, 4rem);
  color: #173d30;
  background: rgba(251, 250, 245, .97);
  border-bottom: 1px solid rgba(39, 83, 63, .14);
  box-shadow: 0 3px 18px rgba(20, 55, 41, .04);
}

.public-wordmark {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .68rem;
  color: #173d30;
  font: 800 1.42rem/1 Georgia, "Times New Roman", serif;
  text-decoration: none;
}

.public-wordmark > img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.public-segment-group {
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 2px;
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: none;
}

.public-desktop-nav {
  justify-self: center;
}

.public-desktop-tools {
  justify-self: end;
}

.public-desktop-nav > a,
.public-account,
.public-locale > summary {
  display: inline-flex;
  box-sizing: border-box;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .46rem 2.1rem;
  color: #173d30;
  background: #f1f1ef;
  border: 0;
  border-radius: 4px;
  font: 780 .97rem/1.15 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease;
}

.public-desktop-nav > a:first-child,
.public-locale > summary {
  border-radius: 15px 4px 4px 15px;
}

.public-desktop-nav > a:last-child,
.public-account {
  border-radius: 4px 15px 15px 4px;
}

.public-desktop-nav > a:hover,
.public-account:hover,
.public-locale > summary:hover {
  color: #112c23;
  background: #d8d9d5;
}

.public-desktop-nav > a[aria-current="page"],
.public-account[aria-current="page"],
.public-locale[open] > summary {
  color: #fff;
  background: #69716d;
}

.public-locale {
  position: relative;
}

.public-locale > summary {
  min-width: 52px;
  padding-inline: 1.5rem;
  cursor: pointer;
  list-style: none;
}

.public-locale > summary::-webkit-details-marker {
  display: none;
}

.public-globe {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  background: linear-gradient(currentColor, currentColor) center/100% 1px no-repeat;
  border: 1.35px solid currentColor;
  border-radius: 50%;
}

.public-globe::before {
  position: absolute;
  inset: -1.35px 4px;
  content: "";
  border-right: 1.2px solid currentColor;
  border-left: 1.2px solid currentColor;
  border-radius: 50%;
}

.public-locale-menu {
  position: absolute;
  top: calc(100% + .55rem);
  right: 0;
  display: grid;
  width: 230px;
  padding: .45rem;
  background: #fff;
  border: 1px solid #cad8cd;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(23, 61, 48, .16);
}

.public-locale-menu > a,
.public-locale-menu > .locale-unavailable {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem .7rem;
  border-radius: 9px;
  text-decoration: none;
}

.public-locale-menu > a:hover,
.public-locale-menu > a[aria-current="page"] {
  background: #eaf2e7;
}

.public-locale-menu small {
  color: #66786f;
  font-size: .68rem;
}

.locale-unavailable {
  color: #7b8982;
  cursor: not-allowed;
}

.public-mobile-menu {
  display: none;
}

.public-mobile-menu > summary {
  display: grid;
  width: 48px;
  height: 48px;
  place-content: center;
  gap: 4px;
  border: 1px solid #d5d7d2;
  border-radius: 12px;
  background: #f1f1ef;
  cursor: pointer;
  list-style: none;
}

.public-mobile-menu > summary::-webkit-details-marker {
  display: none;
}

.public-mobile-menu > summary span {
  display: block;
  width: 20px;
  height: 2px;
  background: #173d30;
  border-radius: 2px;
}

.public-header :focus-visible {
  outline: 4px solid #f0a33a;
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .public-header {
    min-height: 70px;
    grid-template-columns: 1fr auto;
    padding: .65rem .85rem;
  }

  .public-wordmark {
    font-size: 1.18rem;
  }

  .public-wordmark > img {
    width: 38px;
    height: 38px;
  }

  .public-desktop-nav,
  .public-desktop-tools {
    display: none;
  }

  .public-mobile-menu {
    position: relative;
    display: block;
  }

  .public-mobile-menu > div {
    position: absolute;
    top: calc(100% + .55rem);
    right: 0;
    width: min(285px, calc(100vw - 1.7rem));
    padding: .65rem;
    background: #fff;
    border: 1px solid #cad8cd;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(23, 61, 48, .18);
  }

  .public-mobile-menu nav {
    display: grid;
    gap: 2px;
  }

  .public-mobile-menu nav a {
    display: flex;
    min-height: 46px;
    align-items: center;
    padding: .72rem;
    border-radius: 10px;
    color: #173d30;
    background: #f1f1ef;
    font-weight: 780;
    text-decoration: none;
  }

  .public-mobile-menu nav a:hover {
    background: #dfe0dc;
  }

  .public-mobile-menu nav a[aria-current="page"] {
    color: #fff;
    background: #69716d;
  }

  .public-mobile-menu .public-locale {
    margin-top: .45rem;
    padding-top: .55rem;
    border-top: 1px solid #dce5dc;
  }

  .public-mobile-menu .public-locale > summary {
    width: 100%;
    justify-content: flex-start;
    border-radius: 10px;
  }

  .public-mobile-menu .public-locale > summary::after {
    margin-left: .45rem;
    content: "Sprache wählen";
    font-size: .9rem;
  }

  .public-mobile-menu .public-locale-menu {
    position: static;
    width: auto;
    margin-top: .4rem;
    border: 0;
    box-shadow: none;
  }
}
