@charset "UTF-8";
/* ==========================================================================
   Zusätzliche Verbesserungen für aktuelle Browser (progressive enhancement)
   Diese Regeln nutzen sehr neue CSS-Standards (CSS-Karussell mit
   ::scroll-button/::scroll-marker, interpolate-size, ::details-content).
   Browser, die sie noch nicht kennen, ignorieren sie einfach – die Seite
   funktioniert dort genauso, nur ohne Pfeile/Punkte und Klapp-Animation.
   Sie liegen in einer eigenen Datei, weil der W3C-CSS-Validator diese
   neuen Standards noch nicht kennt; style.css bleibt dadurch fehlerfrei.
   ========================================================================== */

/* Zusatz für Browser mit CSS-Karussell-Unterstützung: Pfeile und Punkte */
@supports selector(::scroll-marker) {
  .gallery-track {
    scroll-marker-group: after;
    scrollbar-width: none;
  }
  .gallery-track::scroll-marker-group {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    padding-block-start: 0.85rem;
  }
  .gallery-track > li::scroll-marker {
    content: "";
    inline-size: 0.8rem;
    block-size: 0.8rem;
    border: 2px solid var(--primary);
    border-radius: 50%;
    background: transparent;
  }
  .gallery-track > li::scroll-marker:target-current {
    background: var(--primary);
  }
  .gallery-track::scroll-button(*) {
    position: absolute;
    z-index: 1;
    inset-block-start: calc(50% - 2.75rem);
    inline-size: 2.75rem;
    block-size: 2.75rem;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.9);
    color: #26291f;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.25);
  }
  .gallery-track::scroll-button(*):disabled {
    opacity: 0.35;
    cursor: default;
  }
  .gallery-track::scroll-button(left) {
    content: "‹" / "Vorheriges Bild";
    inset-inline-start: 0.75rem;
  }
  .gallery-track::scroll-button(right) {
    content: "›" / "Nächstes Bild";
    inset-inline-end: 0.75rem;
  }
}

/* Sanftes Auf- und Zuklappen in Browsern, die das schon können */
@supports selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    .accordion {
      interpolate-size: allow-keywords;
    }
    .accordion details::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size 0.3s ease, content-visibility 0.3s allow-discrete;
    }
    .accordion details[open]::details-content {
      block-size: auto;
    }
  }
}
