/* Wiederverwendbare Galerien für Angebotsbilder und Unterseiten. */
.offer-gallery {
  position: relative;
  width: 100%;
  border-radius: 20px;
  isolation: isolate;
}
.offer-gallery-track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: inherit;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.offer-gallery.is-enhanced .offer-gallery-track {
  scrollbar-width: none;
}
.offer-gallery.is-enhanced .offer-gallery-track::-webkit-scrollbar {
  display: none;
}
.offer-gallery-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 740 / 380;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #21353a;
}
.offer.small .offer-gallery-slide {
  aspect-ratio: 470 / 320;
}
.subpage-photo-gallery {
  width: 96%;
  max-width: 1000px;
  margin: 60px auto 0;
}
.subpage-photo-gallery .offer-gallery-slide {
  /* Leicht flacher: die Lead-Verhältnisse bleiben je Angebotsseite passend. */
  aspect-ratio: var(--gallery-lead-ratio, 16 / 9);
}
.hotel-page .subpage-photo-gallery .offer-gallery-slide { aspect-ratio: 1.49; }
.ristorante-page .subpage-photo-gallery .offer-gallery-slide,
.fondue-page .subpage-photo-gallery .offer-gallery-slide { aspect-ratio: 1.68; }
.lounge-page .subpage-photo-gallery .offer-gallery-slide { aspect-ratio: 1.91; }
.bar-page .subpage-photo-gallery .offer-gallery-slide,
.event-page .subpage-photo-gallery .offer-gallery-slide { aspect-ratio: 1.68; }
/* Das einzelne About-Key-Visual bleibt in Originalgröße und unbeschnitten. */
.about-page .subpage-photo-gallery { width: 100%; }
.about-page .subpage-photo-gallery .offer-gallery-slide {
  aspect-ratio: var(--gallery-lead-ratio, 540 / 580);
}
.subpage-photo-gallery + .subpage-prose {
  margin-top: 60px;
}
.offer-gallery .offer-gallery-photo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.offer-gallery-controls[hidden] {
  display: none;
}
/* Auch während der Markup-Umstellung bleiben alte Punkte und Zähler unsichtbar. */
.offer-gallery-dots,
.offer-gallery-count {
  display: none;
}
.offer-gallery-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.offer-gallery-arrow--previous,
.offer-gallery-controls > .offer-gallery-arrow:first-of-type { left: clamp(0px, 1.5%, 12px); }
.offer-gallery-arrow--next,
.offer-gallery-controls > .offer-gallery-arrow:last-of-type { right: clamp(0px, 1.5%, 12px); }
/* Die große Schaltfläche zeigt nur ein kleines Chevron, unabhängig vom SVG-Markup. */
.offer-gallery-arrow svg { display: none; }
.offer-gallery-arrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  filter: drop-shadow(0 1px 2px #000) drop-shadow(0 0 2px #0009);
}
.offer-gallery-arrow--previous::before,
.offer-gallery-controls > .offer-gallery-arrow:first-of-type::before { transform: rotate(-135deg); }
.offer-gallery-arrow:hover::before { filter: drop-shadow(0 1px 3px #000); }
.offer-gallery-arrow:focus-visible,
.offer-gallery-track:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
  box-shadow: 0 0 0 2px #21353a;
}
/* Die neue Unterseitenoptik aus dem ZIP; Home bleibt bewusst dezent. */
.subpage-photo-gallery .offer-gallery-arrow {
  color: var(--ink);
  background: #fff;
}
.subpage-photo-gallery .offer-gallery-arrow::before { display: none; }
.subpage-photo-gallery .offer-gallery-arrow svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.subpage-photo-gallery .offer-gallery-arrow--previous svg { transform: translateX(0.375px); }
.subpage-photo-gallery .offer-gallery-arrow--next svg { transform: translateX(-0.375px); }
.subpage-photo-gallery .offer-gallery-arrow:hover { box-shadow: 0 1px 6px #21353a66; }
.subpage-photo-gallery .offer-gallery-arrow:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -4px;
}
/* Der Wischhinweis erscheint wie im ZIP nur mobil auf Unterseiten. */
.offer-gallery-swipe { display: none; }
.subpage-photo-gallery .offer-gallery-swipe {
  position: absolute;
  z-index: 1;
  left: 4%;
  bottom: 5%;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  pointer-events: none;
}
.subpage-photo-gallery .offer-gallery-swipe[hidden] { display: none; }
.offer-gallery-swipe svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.offer-gallery-caption {
  position: absolute;
  z-index: 1;
  top: 5%;
  right: 3%;
  padding: 5px 10px;
  border-radius: 20px;
  background: #fffffff0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
}
.offer-gallery-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .offer-gallery-slide,
  .offer.small .offer-gallery-slide { aspect-ratio: 1.55; }
  .subpage-photo-gallery { margin-top: 36px; }
  .subpage-photo-gallery { width: 95%; }
  .subpage-photo-gallery .offer-gallery-slide {
    aspect-ratio: var(--gallery-lead-ratio, 1.55);
  }
  .hotel-page .subpage-photo-gallery .offer-gallery-slide { aspect-ratio: 1.49; }
  .ristorante-page .subpage-photo-gallery .offer-gallery-slide,
  .fondue-page .subpage-photo-gallery .offer-gallery-slide { aspect-ratio: 1.68; }
  .lounge-page .subpage-photo-gallery .offer-gallery-slide { aspect-ratio: 1.91; }
  .bar-page .subpage-photo-gallery .offer-gallery-slide,
  .event-page .subpage-photo-gallery .offer-gallery-slide { aspect-ratio: 1.68; }
  .about-page .subpage-photo-gallery { width: 100%; }
  .about-page .subpage-photo-gallery .offer-gallery-slide {
    aspect-ratio: var(--gallery-lead-ratio, 540 / 580);
  }
  .subpage-photo-gallery + .subpage-prose { margin-top: 36px; }
  .offer-gallery-arrow--previous,
  .offer-gallery-controls > .offer-gallery-arrow:first-of-type { left: 1%; }
  .offer-gallery-arrow--next,
  .offer-gallery-controls > .offer-gallery-arrow:last-of-type { right: 1%; }
  .subpage-photo-gallery .offer-gallery-swipe { left: 4%; bottom: 5%; }
  .subpage-photo-gallery .offer-gallery-swipe:not([hidden]) { display: flex; }
}
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  /* Auch grosse Tablets benötigen einen sichtbaren Wischhinweis. */
  .subpage-photo-gallery .offer-gallery-swipe:not([hidden]) { display: flex; }
}
@media (max-width: 700px) {
  /* Unsichtbare Pfeile bleiben für assistive Technik und Tastatur erreichbar. */
  .offer-gallery-arrow--previous,
  .offer-gallery-controls > .offer-gallery-arrow:first-of-type,
  .subpage-photo-gallery .offer-gallery-arrow {
    opacity: 0;
    pointer-events: none;
  }
  .offer-gallery-controls > .offer-gallery-arrow:focus-visible {
    opacity: 1;
  }
  .offer-gallery-arrow::before {
    width: 7px;
    height: 7px;
  }
}
@media (max-width: 700px) and (hover: hover) and (pointer: fine) {
  .offer-gallery-arrow--previous,
  .offer-gallery-controls > .offer-gallery-arrow:first-of-type,
  .subpage-photo-gallery .offer-gallery-arrow {
    opacity: 1;
    pointer-events: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .offer-gallery-track { scroll-behavior: auto; }
}
