.kanzlei-header {
  position: fixed;
  z-index: 15;
  inset: 0 0 auto;
  color: #fff;
  background-color: transparent;
  transition: background-color 160ms ease, color 160ms ease;
}
.kanzlei-header.is-light { background-color: #fff; color: #000; box-shadow: 0 1px 0 #0002; }
.kanzlei-bar {
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  width: min(100%, 1250px);
  min-height: 76px;
  margin: auto;
  padding: 10px clamp(16px, 3vw, 40px);
}
.kanzlei-logo img { display: block; width: clamp(172px, 20vw, 252px); max-width: 100%; height: auto; }
.is-light .kanzlei-logo img { filter: brightness(0); }
.kanzlei-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); }
.kanzlei-header a, .kanzlei-header summary { color: inherit; transition: none; }
.kanzlei-header nav a {
  display: flex; align-items: center; min-height: 44px;
  font: 500 17px/1.3 "Crimson Pro", Georgia, serif;
  text-decoration: none;
}
.kanzlei-header nav a:hover, .kanzlei-header nav a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }
.kanzlei-header :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.kanzlei-mobile { display: none; position: relative; }
.kanzlei-mobile summary {
  box-sizing: border-box; display: grid; width: 44px; height: 44px;
  place-items: center; list-style: none; cursor: pointer;
}
.kanzlei-mobile summary::-webkit-details-marker { display: none; }
.kanzlei-mobile summary span { width: 23px; height: 2px; background: currentColor; box-shadow: 0 -7px currentColor, 0 7px currentColor; }
.kanzlei-mobile nav {
  position: absolute; top: calc(100% + 6px); right: 0; width: 210px;
  padding: 8px 18px; color: #000; background: white; box-shadow: 0 6px 24px #0003;
}
body [id] { scroll-margin-top: 84px; }
body:has(.legal-main) { padding-top: 76px; }
@media (max-width: 767px) {
  .kanzlei-nav { display: none; }
  .kanzlei-mobile { display: block; }
  .kanzlei-bar { min-height: 64px; }
  body [id] { scroll-margin-top: 72px; }
  body:has(.legal-main) { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .kanzlei-header { transition: none; }
}
