.schafbaden-hero {
  display: grid;
  grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr);
  gap: clamp(28px,5vw,76px);
  align-items: center;
  padding-block: clamp(42px,6vw,90px);
}
.schafbaden-hero > * { min-width: 0; }
.schafbaden-hero h1 { max-width: 14ch; }
.schafbaden-hero .lead { margin-block: 22px 26px; }
.schafbaden-hero__media { overflow: hidden; border-radius: 4px clamp(35px,6vw,90px) 4px 4px; background: var(--sage); }
.schafbaden-hero__media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; }
.schafbaden-hero__media figcaption { padding: 10px 14px; font-size: .76rem; line-height: 1.5; color: var(--muted); background: var(--paper); }
.schafbaden-intro { max-width: 78ch; }
.schafbaden-intro h2 { max-width: 24ch; margin-bottom: 20px; }
.schafbaden-intro p + p { margin-top: 16px; }
.schafbaden-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(18px,3vw,40px); margin-top: 36px; }
.schafbaden-steps > article { min-width: 0; padding-block-start: 22px; border-block-start: 1px solid var(--border); }
.schafbaden-steps h3 { margin-bottom: 14px; }
.schafbaden-steps p { font-size: .94rem; line-height: 1.8; }
.schafbaden-teaser { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: clamp(28px,5vw,76px); }
.schafbaden-teaser > * { min-width: 0; }
.schafbaden-teaser > figure { overflow: hidden; border-radius: 4px clamp(30px,5vw,70px) 4px 4px; }
.schafbaden-teaser > figure img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.schafbaden-teaser h2 { max-width: 18ch; }
.schafbaden-teaser p:not(.eyebrow) { margin-block: 19px 24px; }
.schafbaden-teaser figcaption { padding: 10px 14px; background: var(--sage); font-size: .76rem; line-height: 1.6; color: var(--muted); }
.schafbaden-teaser > figure.schafbaden-teaser__portrait { width: min(100%,420px); justify-self: center; }
.schafbaden-teaser > figure.schafbaden-teaser__portrait img { height: auto; aspect-ratio: 1239 / 2048; contain-intrinsic-size: 1239px 2048px; object-fit: contain; }

[data-schafbaden-gallery] { min-width: 0; }
.schafbaden-gallery__header, [data-schafbaden-gallery] > header { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 20px; margin-bottom: 28px; }
.schafbaden-gallery__header h2, [data-schafbaden-gallery] > header h2 { max-width: 24ch; }
.schafbaden-gallery__controls { display: flex; align-items: center; gap: 10px; }
[data-schafbaden-prev], [data-schafbaden-next] { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid #87977d; border-radius: 50%; color: var(--green); background: transparent; font: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; transition: background .2s ease, color .2s ease; }
[data-schafbaden-prev]:hover:enabled, [data-schafbaden-next]:hover:enabled { color: var(--paper); background: var(--green); }
[data-schafbaden-prev]:disabled, [data-schafbaden-next]:disabled { opacity: .38; cursor: default; }
[data-schafbaden-position] { min-width: 54px; text-align: center; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.schafbaden-gallery__track {
  display: flex;
  gap: clamp(14px,2vw,28px);
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 3px;
  padding: 3px 3px 16px;
  scrollbar-width: thin;
  scrollbar-color: #9aa38c transparent;
  -webkit-overflow-scrolling: touch;
}
.schafbaden-gallery__item { flex: 0 0 auto; width: min-content; min-width: 0; scroll-snap-align: start; }
.schafbaden-gallery__item [data-schafbaden-zoom] { display: block; overflow: hidden; border-radius: 4px 32px 4px 4px; background: var(--oat); cursor: zoom-in; }
.schafbaden-gallery__item img { display: block; width: auto; height: clamp(210px,32vw,440px); max-width: none; object-fit: contain; transition: transform .45s ease-out; }
.schafbaden-gallery__item [data-schafbaden-zoom]:hover img { transform: scale(1.015); }
.schafbaden-gallery__item figcaption { padding-block-start: 12px; font-size: .8rem; line-height: 1.65; color: var(--muted); overflow-wrap: break-word; }
.schafbaden-gallery--ready .schafbaden-gallery__item { opacity: .65; transform: translateY(8px); transition: opacity .55s ease, transform .55s ease; }
.schafbaden-gallery--ready .schafbaden-gallery__item.is-schafbaden-visible { opacity: 1; transform: none; }
.schafbaden-gallery__hint { margin-top: 12px; font-size: .78rem; color: var(--muted); line-height: 1.6; }

[data-schafbaden-lightbox] { width: min(calc(100% - 32px),1280px); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: clamp(16px,2vw,24px); border: 1px solid var(--border); border-radius: 8px; background: var(--paper); color: var(--ink); overflow: auto; overscroll-behavior: contain; box-shadow: 0 24px 80px #13281b55; }
[data-schafbaden-lightbox]:not([open]) { display: none; }
[data-schafbaden-lightbox]::backdrop { background: #10251cce; }
[data-schafbaden-lightbox] figure { margin: 0; }
[data-schafbaden-lightbox-image] { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); margin-inline: auto; object-fit: contain; }
[data-schafbaden-lightbox-caption] { max-width: 75ch; margin: 15px auto 0; font-size: .88rem; line-height: 1.65; text-align: center; }
[data-schafbaden-lightbox-close] { display: grid; place-items: center; width: 44px; height: 44px; margin-inline-start: auto; margin-block-end: 14px; padding: 0; border: 1px solid #87977d; border-radius: 50%; background: var(--paper); color: var(--green); font: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; }
[data-schafbaden-lightbox-close]:hover { background: var(--sage); }
[data-schafbaden-prev]:focus-visible, [data-schafbaden-next]:focus-visible, [data-schafbaden-track]:focus-visible, [data-schafbaden-zoom]:focus-visible, [data-schafbaden-lightbox-close]:focus-visible { outline: 2px solid #87612c; outline-offset: 4px; }

@media (max-width:740px) {
  .schafbaden-hero, .schafbaden-teaser { grid-template-columns: minmax(0,1fr); }
  .schafbaden-steps { grid-template-columns: minmax(0,1fr); gap: 25px; }
  .schafbaden-hero h1 { max-width: 100%; }
  .schafbaden-gallery__header, [data-schafbaden-gallery] > header { align-items: start; }
}
@media (prefers-reduced-motion:reduce) {
  .schafbaden-gallery__item img, .schafbaden-gallery--ready .schafbaden-gallery__item, [data-schafbaden-prev], [data-schafbaden-next] { transition: none; }
  .schafbaden-gallery--ready .schafbaden-gallery__item { opacity: 1; transform: none; }
  .schafbaden-gallery__item [data-schafbaden-zoom]:hover img { transform: none; }
  .schafbaden-gallery__track { scroll-behavior: auto; }
}
