/* ---------- Eindrücke: dezente Foto-Kachelreihe ---------- */

.gal-section { padding-block: clamp(2.2rem, 4.5vw, 3.6rem); }

.gal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.2rem;
}
.gal-title { font-size: var(--step-2); margin-bottom: 0.3em; }
.gal-intro { color: var(--ink-soft); margin: 0; max-width: 40rem; }

.gal-nav { display: flex; gap: 0.5rem; flex: none; }
.gal-nav[hidden] { display: none; }
.gal-nav-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--mist-line);
  background: var(--white);
  color: var(--navy);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}
.gal-nav-btn:hover { background: var(--mist); border-color: var(--navy); }
.gal-nav-btn:disabled { opacity: 0.35; cursor: default; background: var(--white); border-color: var(--mist-line); }

.gal-strip {
  list-style: none;
  margin: 0;
  padding: 6px 4px 14px;
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--mist-line) transparent;
}
.gal-item { flex: 0 0 clamp(10.5rem, 22vw, 13rem); scroll-snap-align: start; }

.gal-tile {
  display: block;
  text-decoration: none;
  color: var(--ink-soft);
  border-radius: 10px;
}
.gal-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: var(--sky-tint);
  box-shadow: 0 0 0 1px var(--mist-line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gal-cap {
  display: block;
  font-size: 0.85rem;
  line-height: 1.35;
  margin-top: 0.5rem;
  transition: color 0.2s ease;
}
.gal-tile:hover img { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--mist-line), 0 12px 22px -14px rgba(11, 44, 99, 0.5); }
.gal-tile:hover .gal-cap { color: var(--navy); }
.gal-tile:focus-visible { outline: none; }
.gal-tile:focus-visible img { outline: 3px solid var(--green-deep); outline-offset: 3px; }
.gal-tile:focus-visible .gal-cap { color: var(--navy); text-decoration: underline; }

.gal-video-preview { display: block; position: relative; }
.gal-video-cover { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 3; padding: 0.7rem 1rem; border: 1px solid var(--mist-line); border-radius: 10px; background: var(--green-tint); color: var(--green-deeper); font-size: 0.85rem; line-height: 1.35; text-align: center; font-weight: 700; }
.gal-video-tile:focus-visible .gal-video-cover { outline: 3px solid var(--green-deep); outline-offset: 3px; }
.gal-video-tile img { object-position: center 35%; }
.gal-video-play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 52px; height: 52px; padding-left: 2px; border: 2px solid var(--white); border-radius: 50%; color: var(--white); background: rgba(8, 32, 80, 0.86); pointer-events: none; }
.gal-video-modal-player { position: relative; width: min(100%, calc((100dvh - 11rem) * .5625)); aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: var(--navy-deep); }
.gal-video-modal-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gal-video-foot { margin: 0; text-align: center; font-size: 0.9rem; }
.gal-video-foot a { color: var(--white); }

@media (max-width: 560px) {
  .gal-head { align-items: flex-start; flex-direction: column; }
  .gal-nav { display: none; }
  .gal-item { flex-basis: 62vw; }
}

/* ---------- Schriftliche Gästestimmen ---------- */

.gal-testimonials {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--mist-line);
}
.gal-testimonials h3 { margin-bottom: 1.1rem; }
.gal-quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.gal-quote {
  margin: 0;
  padding: clamp(1.2rem, 2.5vw, 1.7rem);
  border-left: 3px solid var(--green);
  border-radius: 0 10px 10px 0;
  background: var(--green-tint);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.gal-quote blockquote { margin: 0; flex: 1; }
.gal-quote blockquote p { margin: 0 0 0.75em; }
.gal-quote blockquote p:last-child { margin-bottom: 0; }
.gal-quote figcaption { color: var(--green-deeper); font-weight: 700; }
.gal-quote figcaption span { font-weight: 400; }

@media (max-width: 700px) {
  .gal-quotes { grid-template-columns: 1fr; }
}

/* ---------- Lightbox ---------- */

.gal-dialog {
  border: 0;
  padding: 0;
  margin: auto;
  width: 100vw; height: 100dvh;
  max-width: 100vw; max-height: 100dvh;
  background: transparent;
  color: var(--white);
}
.gal-dialog::backdrop { background: rgba(8, 32, 80, 0.9); }
.gal-dialog[open] { animation: gal-fade 0.22s ease; }
@keyframes gal-fade { from { opacity: 0; } to { opacity: 1; } }

.gal-box {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: clamp(0.6rem, 2vw, 1.2rem);
  gap: 0.6rem;
}
.gal-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.gal-counter { font-weight: 700; font-size: 1rem; }
.gal-close {
  display: inline-flex; align-items: center; gap: 0.45em;
  font: 700 1rem var(--font-body);
  color: var(--navy-deep);
  background: var(--white);
  border: 0; border-radius: 999px;
  padding: 0.65em 1.2em;
  cursor: pointer;
}
.gal-close:hover { background: var(--mist); }

.gal-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}
.gal-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 6px;
  transition: opacity 0.2s ease;
}
.gal-stage.is-loading img { opacity: 0.25; }
.gal-status {
  position: absolute;
  inset: auto 0 50% 0;
  text-align: center;
  font-weight: 700;
  pointer-events: none;
}
.gal-status[hidden] { display: none; }
.gal-status a { color: var(--white); pointer-events: auto; }

.gal-foot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}
.gal-caption { margin: 0; text-align: center; font-size: 1.05rem; }
.gal-step {
  display: inline-flex; align-items: center; gap: 0.35em;
  font: 700 1rem var(--font-body);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.65em 1.1em;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.gal-step:hover { background: rgba(255, 255, 255, 0.24); }
.gal-dialog :focus-visible { outline: 3px solid #b9dc9c; outline-offset: 3px; }

@media (max-width: 560px) {
  .gal-foot { grid-template-columns: 1fr 1fr; }
  .gal-caption { grid-column: 1 / -1; grid-row: 1; }
  .gal-step { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .gal-strip { scroll-behavior: auto; }
  .gal-tile:hover img { transform: none; }
  .gal-dialog[open] { animation: none; }
}
