/* The room is visible at the tour's position while its native lazy iframe loads. */
body.pgp-view-home #rundgang .pgpTourFrame:has(iframe.pgp-tour-embed) {
  position: relative;
  width: 100%;
  height: clamp(340px, 57vw, 650px) !important;
  aspect-ratio: auto !important;
  background: #ebe8e0 url("./rundgang-h9YpL.jpg") center / cover no-repeat;
}
body.pgp-view-home #rundgang iframe.pgp-tour-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

body.pgp-view-home #rundgang {
  display: grid;
  gap: 16px;
  scroll-margin-top: 120px;
  padding-top: 32px;
}
body.pgp-view-home #rundgang .pgpTourTitle {
  margin: 0;
  padding: 0;
}
body.pgp-view-home #rundgang .pgp-tour-instructions {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1.5;
}
body.pgp-view-home #rundgang .pgp-tour-instructions a {
  color: #304f3e;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: .15em;
}
@media (max-width: 640px) {
  body.pgp-view-home #rundgang {
    width: calc(100vw - 40px);
    max-width: none;
    margin: 32px calc(50% - 50vw + 20px) 0;
    padding-top: 20px;
    gap: 12px;
  }
}

body.pgp-view-home #rundgang .pgp-tour-stations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
body.pgp-view-home #rundgang .pgp-tour-stations a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #bcc9bf;
  border-radius: 6px;
  background: #f4f6f2;
  color: #253f32;
  font: inherit;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
body.pgp-view-home #rundgang .pgp-tour-stations a:hover {
  background: #e6ece6;
}
body.pgp-view-home #rundgang .pgp-tour-stations a:focus-visible {
  outline: 3px solid #355b47;
  outline-offset: 2px;
}
@media (max-width: 740px) {
  body.pgp-view-home #rundgang .pgp-tour-stations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pgp-tour-cover { display: none; }
.pgp-tour-js .pgpTourFrame:not([data-ready]) .pgp-tour-cover {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.pgp-view-home #rundgang .pgp-tour-stations a[aria-current="true"] {
  border-color: #3d624c;
  background: #e2ece4;
  color: #203a2c;
  font-weight: 650;
}
