/* The original .detail-image defines the arch, shadow and responsive image ratio. */
.dienst-galerie { position: relative; display: grid; isolation: isolate; }
.dienst-galerie[hidden], .dienst-galerie [hidden] { display: none !important; }
.dienst-foto { grid-area: 1/1; margin: 0; min-width: 0; position: relative; }
.dienst-foto img { display: block; width: 100%; }
.dienst-galerie.is-ready .dienst-foto { touch-action: pan-y pinch-zoom; }

/* The controls sit over the photo and take up no space in the hero grid. */
.dienst-galerie :is(.bildleiste, .dienst-ersatzpfeile) {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
}
.dienst-galerie :is(.bildleiste button, .dienst-ersatzpfeile a, .dienst-pausenlabel, .dienst-neustart) {
  display: grid; place-items: center; position: absolute; z-index: 3;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  padding: 0; margin: 0; border-radius: 50%; box-sizing: border-box;
  background: rgb(255 250 240 / 46%); border: 1px solid rgb(36 60 52 / 32%);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  color: rgb(19 37 29 / 94%); box-shadow: 0 1px 3px rgb(23 41 32 / 14%); cursor: pointer;
  pointer-events: auto; text-decoration: none; touch-action: manipulation;
}
.dienst-galerie [data-richtung] { top: 56%; transform: translateY(-50%); }
.dienst-galerie [data-richtung="prev"] { left: clamp(6px, 2.2%, 12px); }
.dienst-galerie [data-richtung="next"] { right: clamp(6px, 2.2%, 12px); }
.dienst-galerie :is(.bildleiste button:first-of-type,.dienst-pausenlabel,.dienst-neustart) { bottom: 8px; right: 8px; }
.dienst-galerie :is(.bildleiste,.dienst-ersatzpfeile,.dienst-pausenlabel,.dienst-neustart) svg { width: 21px; height: 21px; }
.dienst-galerie :is(.bildleiste button, .dienst-ersatzpfeile a):focus-visible,
.dienst-pause:focus-visible ~ .dienst-pausenlabel,
.dienst-galerie:focus-visible { outline: 3px solid #243c34; outline-offset: 3px; }
@media (hover:hover) {
  .dienst-galerie :is(.bildleiste button,.dienst-ersatzpfeile a,.dienst-pausenlabel,.dienst-neustart):hover { background: rgb(255 250 240 / 76%); border-color: #243c34aa; color: #182d24; }
}
.dienst-galerie :is(.bildmeldung,.bildstand,.dienst-pause,.dienst-pausenlabel span) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.dienst-galerie.is-ready :is(.dienst-ersatzpfeile,.dienst-pause,.dienst-pausenlabel) { display: none; }

/* CSS fallback for a connected preview which permits styles but blocks scripts. */
.dienst-galerie:not(.is-ready) .dienst-foto { visibility: hidden; }
.dienst-galerie:not(.is-ready) .dienst-foto:first-of-type,
.dienst-galerie:not(.is-ready):has(.dienst-foto:target) .dienst-foto:target { visibility: visible; }
.dienst-galerie:not(.is-ready):has(.dienst-foto:target) .dienst-foto:not(:target) { visibility: hidden; }
.dienst-galerie:not(.is-ready):has(.dienst-foto:target) .dienst-pausenlabel,
.dienst-galerie:not(.is-ready):has(.dienst-foto:target) .dienst-pause { display: none; }
.dienst-galerie .dienst-pausenlabel .fortsetzen,
.dienst-galerie .dienst-pause:checked ~ .dienst-pausenlabel .pausieren { display: none; }
.dienst-galerie .dienst-pause:checked ~ .dienst-pausenlabel .fortsetzen { display: block; }
@media (prefers-reduced-motion:no-preference) {
  html:not([data-motion="off"]) .dienst-galerie.is-ready .dienst-foto:not([hidden]) {
    animation: dienst-einblenden 280ms ease-out both;
  }
  html:not([data-motion="off"]) .dienst-galerie:not(.is-ready):not(:has(.dienst-foto:target)) .dienst-foto {
    animation: dienst-rundlauf 18s step-end infinite;
  }
  html:not([data-motion="off"]) .dienst-galerie:not(.is-ready) .dienst-foto:nth-of-type(2) { animation-delay: -12s !important; }
  html:not([data-motion="off"]) .dienst-galerie:not(.is-ready) .dienst-foto:nth-of-type(3) { animation-delay: -6s !important; }
  html:not([data-motion="off"]) .dienst-galerie:not(.is-ready):is(:has(.dienst-pause:checked),:has(.dienst-ersatzpfeile a:focus-visible)) .dienst-foto { animation-play-state: paused !important; }
  @media (hover:hover) {
    html:not([data-motion="off"]) .dienst-galerie:not(.is-ready):hover .dienst-foto { animation-play-state: paused !important; }
  }
}
@keyframes dienst-rundlauf {
  0%,100% { visibility: visible; }
  33.333333% { visibility: hidden; }
}
@keyframes dienst-einblenden { from { opacity: .76; } }
@media (prefers-reduced-motion:reduce) {
  .dienst-galerie:not(.is-ready) :is(.dienst-pause,.dienst-pausenlabel) { display: none; }
}
html[data-motion="off"] .dienst-galerie:not(.is-ready) :is(.dienst-pause,.dienst-pausenlabel) { display: none; }

.dienst-galerie a.dienst-neustart { display:none; }
@media (prefers-reduced-motion:no-preference) {
  html:not([data-motion="off"]) .dienst-galerie:not(.is-ready):has(.dienst-foto:target) .dienst-neustart { display:grid; }
}

.dienst-galerie :is(.bildleiste button,.dienst-ersatzpfeile a,.dienst-neustart):focus-visible,
.dienst-pause:focus-visible ~ .dienst-pausenlabel {
  background: rgb(255 250 240 / 90%); color: #182d24; outline: 3px solid #243c34; outline-offset: 3px;
}
