html {
  scroll-padding-top: 90px;
}

:focus-visible {
  outline: 3px solid #286e93;
  outline-offset: 4px;
}

#familie .family-art {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 0;
}

#familie .split {
  row-gap: 36px;
}

#kontakt .section-art {
  max-width: none;
}

#kontakt .contact-grid::after {
  content: none;
}

#erfahrungen .actions + h3 {
  margin-top: 2rem;
}

.preview {
  position: static;
  width: fit-content;
  margin: 12px auto;
  box-shadow: none;
}

.menu-toggle {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: #f5f5f5;
  border: 1px solid #b4ddec;
  border-radius: 25px;
  padding: 9px 14px;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .nav {
    position: relative;
    gap: 8px;
  }

  .mobile-cta {
    display: inline-block;
  }

  .links {
    display: none;
  }

  .links.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 4px);
    right: 15px;
    left: 15px;
    max-height: calc(100dvh - 94px);
    overflow: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid #c6dfe9;
    background: #fff;
    box-shadow: 0 12px 45px #102c4226;
  }

  .links a {
    padding: 10px 12px;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }
}

@media (min-width: 1081px) {
  .menu-toggle {
    display: none;
  }
}

@media (max-width: 800px) {
  .hero-photo img {
    aspect-ratio: 5 / 4;
  }

  .contact-grid {
    gap: 28px;
  }
}

@media (max-width: 390px) {
  .nav {
    padding-inline: 13px;
  }

  .brand {
    gap: 7px;
    font-size: 12px;
  }

  .brand img {
    width: 33px;
    height: 45px;
  }

  .container {
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card, .method, .case {
    transition: none;
  }
}

.methods {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.method h3 {
  overflow-wrap: anywhere;
}

@media (max-width: 800px) {
  .methods {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Match the section spacing and desktop breakpoint on the original site. */
:is(main,.glass-content)>section:not(.brand-hero) {
  padding-block: 100px;
  background: #fff;
}

@media (min-width: 1200px) {
  :is(main,.glass-content)>section:not(.brand-hero) {
    padding-block: 150px;
  }

  :is(main,.glass-content)>section.intro-section {
    padding-top: 100px;
  }
}

.bullet,
.method,
.quote {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.bullet,
.method {
  border-top: 1px solid #d9e7ee;
  padding: 22px 0 0;
}

.method:hover {
  transform: none;
  box-shadow: none;
}

.bullets,
.methods {
  gap: 30px 42px;
}

#veraenderung .bullets {
  clear: both;
}

.quote {
  padding: 0 0 0 20px;
  border-left: 2px solid #d2e7f1;
}

.card,
.case {
  border-color: #dbe9ef;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.card:hover,
.case:hover {
  transform: none;
  box-shadow: none;
}

.section-art,
#familie .family-art {
  box-shadow: none;
}

.contact-form {
  background: #fff;
  border-color: #dbe9ef;
  box-shadow: none;
}

/* Keep the picture area above the captions embedded in the draft artwork. */
.section-art img,
#kontakt .section-art img {
  aspect-ratio: 2.8;
  object-position: center top;
}

#erfahrungen .section-art img {
  aspect-ratio: 3;
}

.nav-logo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
}

.nav-logo img {
  width: auto;
  height: 28px;
}

header .nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.nav-logo {
  justify-self: start;
}

header .links > a:not(.btn),
header.on-hero .links > a:not(.btn) {
  font-size: 17px;
}

.nav-actions {
  display: flex;
  justify-self: end;
  gap: 8px;
}

.nav-action {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #84c4ff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(160deg, #3b9af1, #146bc4 58%, #07539f);
  box-shadow: inset 0 1px 2px #ffffff80, 0 3px 9px #0b407133;
  transition: filter 150ms ease;
}

.nav-action:hover {
  filter: brightness(1.16);
}

.nav-action svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1080px) {
  header .nav {
    display: flex;
    justify-content: space-between;
  }

  .nav-actions {
    flex-shrink: 0;
  }
}
