/* Adapt the historical site to the current static release and service links. */
.restored-skip,
.logo img,
.restored-logo-text,
footer span.footer-logo-label {
  position: absolute;
  float: none;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.restored-skip:focus {
  top: 0;
  left: 0;
  z-index: 1000000;
  width: auto;
  height: auto;
  margin: 0;
  padding: .5rem 1rem;
  clip-path: none;
  background: #fff;
}
a:focus-visible,
.restored-gallery .slides:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}
#callback, #kontakt, #map, #inhalt, main [id] {
  scroll-margin-top: 20px;
}
.restored-main img {
  max-width: 100%;
}
#menu-open {
  position: absolute;
  top: 0;
  left: 0;
}

/* The original slider heights and center crop, with native horizontal scrolling. */
.restored-gallery {
  --gallery-height: 450px;
  position: relative;
  width: 100%;
}
.restored-gallery .slides {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.restored-gallery .slides::-webkit-scrollbar {
  display: none;
}
.restored-gallery li {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  scroll-snap-align: start;
}
.restored-gallery img {
  display: block;
  width: 100%;
  height: var(--gallery-height);
  object-fit: cover;
}

/* Keep the current contact and archive information within the content column. */
.restored-contact {
  margin: 20px 0;
  padding: 0 20px;
}
.restored-contact h2 {
  color: #333;
  padding: 0 0 .45rem;
  margin: 0;
  border-bottom: 1px dotted #a7a7a7;
  text-align: left;
}
.restored-contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: .25rem 0 0;
  padding: 0;
  list-style: none;
}
.restored-contact__links li {
  margin: 0;
  padding: 0;
}
.restored-contact__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #a52c22;
  text-decoration: underline;
  text-underline-offset: .15em;
}
.archive-note {
  box-sizing: border-box;
  width: fit-content;
  max-width: calc(100% - 450px);
  margin: 30px 0 0 max(50px, calc((100% - 1820px) / 2));
  border-left: 2px solid #a7a7a7;
  padding: .65rem .85rem;
  background: #f5f5f5;
  color: #505a5c;
  font-size: .9rem;
}

/* Preserve the tall desktop sidebar from the archived scroll handler. */
@media (min-width: 1025px) and (min-height: 1100px) {
  header { position: fixed; }
}
@media (max-width: 1600px) {
  .restored-gallery { --gallery-height: 400px; }
  .archive-note { max-width: calc(100% - 420px); margin-left: 40px; }
}
@media (max-width: 1280px) {
  .restored-gallery { --gallery-height: 350px; }
  .archive-note { max-width: calc(100% - 310px); margin-left: 30px; }
}
@media (max-width: 1024px) {
  .restored-gallery { --gallery-height: 300px; }
  #callback, #kontakt, #map, #inhalt, main [id] { scroll-margin-top: 170px; }
  .archive-note { max-width: calc(100% - 40px); margin: 180px 20px 0; }
  .archive-note + section { margin-top: 20px; }
  header nav { display: none; transition: none; }
  header:has(#menu-open:target) nav {
    display: block;
    top: calc(-1 * var(--header-gap));
    right: calc(-1 * var(--header-gap));
    width: 100vw;
    height: 100vh;
    height: 100dvh;
  }
  header { --header-gap: 20px; }
  header nav ul { overflow: auto; }
}
@media (max-width: 768px) {
  .restored-gallery { --gallery-height: 200px; }
}
@media (max-width: 640px) {
  header { --header-gap: 0px; }
  .restored-gallery { --gallery-height: 150px; }
  #callback, #kontakt, #map, #inhalt, main [id] { scroll-margin-top: 90px; }
  .archive-note { margin-top: 95px; }
}
@media (max-width: 480px) {
  .restored-gallery { --gallery-height: 100px; }
}
@media (max-width: 375px) {
  /* The static contact links add an extra icon to the small header. */
  header .menu-btn a { padding-inline: 4px; }
  header .language { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  header nav, header .menu-btn, .restored-main section { transition: none; }
}
