/* ============================================================
   sora Shop v1 — Kundenfotogalerie (/kundenfotos)
   Baut auf den Design-Tokens von shop.css auf (Grün #43a047,
   Radius 6px, Systemschrift). Die Bühne ist bewusst dunkel,
   damit die Kundenfotos leuchten.
   ============================================================ */

/* Hero-Feinschliff */
.kf-hero h1 { margin-bottom: 10px; }
.kf-eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 6px 12px;
  border-radius: 999px; background: var(--color-primary-soft);
  color: var(--color-primary-dark); font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* Suchpanel */
.kf-suchpanel {
  margin-top: 28px; padding: 18px;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 10px 30px rgba(44, 62, 50, 0.08);
}
.kf-suchzeile { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }
.kf-suchbox { position: relative; display: block; }
.kf-suchbox svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--color-muted); pointer-events: none;
}
.kf-suchbox input {
  width: 100%; height: 50px; padding: 0 16px 0 44px;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  font-family: inherit; font-size: 16px; color: var(--color-text);
  background: var(--color-bg-soft); outline: none;
}
.kf-suchbox input:focus {
  border-color: var(--color-primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.15);
}
.kf-suchzeile .btn { white-space: nowrap; }

/* Themen-Chips */
.kf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.kf-chip {
  padding: 9px 14px; cursor: pointer; font-family: inherit; font-size: 14px;
  border: 1px solid var(--color-border); border-radius: 999px;
  background: #fff; color: var(--color-muted);
  transition: border-color .15s, background .15s, color .15s;
}
.kf-chip:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }
.kf-chip[aria-pressed="true"] {
  background: var(--color-primary-dark); border-color: var(--color-primary-dark);
  color: #fff; font-weight: 600;
}
.kf-chip small { opacity: .75; font-size: 12px; margin-left: 4px; }

/* Feinfilter (Produktart + Sortierung) */
.kf-feinfilter { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-size: 14px; color: var(--color-muted); }
.kf-feinfilter label { display: inline-flex; align-items: center; gap: 8px; }
.kf-feinfilter select {
  padding: 8px 10px; font-family: inherit; font-size: 14px;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  background: #fff; color: var(--color-text);
}

/* Erlebnisbühne */
.kf-buehne-abschnitt { padding-top: 32px; }
.kf-erlebnis {
  background: #1d221e; border-radius: 14px; padding: 12px;
  box-shadow: 0 24px 60px rgba(29, 34, 30, 0.25); overflow: hidden;
}
.kf-stage {
  position: relative; overflow: hidden; border-radius: 10px;
  aspect-ratio: 16 / 9; min-height: 420px; background: #12140f; isolation: isolate;
}
.kf-stage::after {
  content: ""; position: absolute; inset: auto 0 0; height: 58%; z-index: 4;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78)); pointer-events: none;
}
.kf-stage__bild {
  /* contain statt cover: Kundenfotos haben alle möglichen Formate — das
     GANZE Foto (samt Haube) muss sichtbar sein, der dunkle Bühnengrund
     füllt die Ränder gleichmäßig. */
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: scale(1.02);
  transition: opacity var(--kf-blende, 1200ms) ease, transform 7s ease;
}
.kf-stage__bild.is-active { opacity: 1; transform: scale(1); }
.kf-stage[data-effect="zoom"] .kf-stage__bild.is-active {
  transform: scale(1.07);
  transition: opacity var(--kf-blende, 1200ms) ease, transform 9s ease;
}
.kf-stage[data-effect="slide"] .kf-stage__bild { transform: translateX(4%); }
.kf-stage[data-effect="slide"] .kf-stage__bild.is-active { transform: translateX(0); }
.kf-stage__kopf {
  position: absolute; z-index: 6; inset: 16px 16px auto;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.kf-live, .kf-zaehler {
  color: #fff; font-size: 13px; padding: 7px 11px; border-radius: 999px;
  background: rgba(10, 14, 10, 0.5); border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}
.kf-live { display: inline-flex; align-items: center; gap: 8px; }
.kf-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); }
.kf-stage__inhalt { position: absolute; z-index: 7; inset: auto 22px 20px; max-width: 760px; color: #fff; }
.kf-stage__inhalt h2 {
  margin: 8px 0 6px; color: #fff;
  font-size: clamp(20px, 3.4vw, 34px); line-height: 1.12; letter-spacing: -0.02em;
}
.kf-stage__inhalt p {
  margin: 0 0 12px; color: rgba(255, 255, 255, 0.8);
  font-size: 15px; line-height: 1.5; max-width: 640px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kf-stage__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.kf-stage__tags span {
  padding: 5px 9px; border-radius: 999px; font-size: 12px;
  background: rgba(255, 255, 255, 0.16); color: #fff;
}
.kf-stage__cta {
  display: inline-block; padding: 10px 16px; border-radius: var(--radius);
  background: var(--color-primary); color: #fff !important;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.kf-stage__cta:hover { background: var(--color-primary-dark); text-decoration: none; }
.kf-lupe {
  position: absolute; right: 16px; bottom: 20px; z-index: 8;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.25); color: #fff;
  backdrop-filter: blur(8px);
}
.kf-lupe:hover { background: rgba(255, 255, 255, 0.28); }
.kf-lupe svg { width: 20px; height: 20px; }

/* Steuerleiste */
.kf-steuer {
  display: grid; grid-template-columns: auto auto minmax(160px, 1fr) auto auto auto;
  gap: 10px; align-items: center; padding: 14px 10px 8px; color: #fff;
}
.kf-steuer button, .kf-steuer select {
  min-height: 42px; padding: 0 14px; cursor: pointer; font-family: inherit; font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08); color: #fff;
}
.kf-steuer button:hover { background: rgba(255, 255, 255, 0.16); }
.kf-steuer option { color: #1a1a1a; }
.kf-tempo { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.kf-tempo input { width: 100%; accent-color: var(--color-primary); }
.kf-ansicht { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.07); }
.kf-ansicht button { min-height: 34px; border: none; }
.kf-ansicht button[aria-pressed="true"] { background: #fff; color: #1d221e; font-weight: 600; }

/* Filmstreifen */
.kf-filmstreifen { display: flex; gap: 8px; overflow-x: auto; padding: 10px 4px 4px; scrollbar-width: thin; }
.kf-filmstreifen button {
  flex: 0 0 116px; padding: 0; cursor: pointer; overflow: hidden;
  border: 2px solid transparent; border-radius: var(--radius); background: #2a2f2b; opacity: 0.55;
}
.kf-filmstreifen button.is-active { opacity: 1; border-color: var(--color-primary); }
.kf-filmstreifen img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #141712; display: block; }

/* Ergebniszeile + Raster */
.kf-ergebniszeile {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 28px 0 14px; color: var(--color-muted); font-size: 15px;
}
.kf-ergebniszeile strong { color: var(--color-text); }
.kf-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.kf-karte {
  padding: 0; text-align: left; cursor: pointer; font-family: inherit;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.kf-karte:hover { border-color: var(--color-primary); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(67, 160, 71, 0.10); }
.kf-karte img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: contain; display: block;
  /* einheitlicher dunkler Grund, damit unterschiedliche Fotoformate ruhig wirken */
  background: #22261f;
}
.kf-karte__text { padding: 13px 15px 15px; }
.kf-karte__text h3 {
  margin: 0 0 4px; font-size: 15px; color: var(--color-text); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kf-karte__text p { margin: 0; font-size: 13px; color: var(--color-muted); }
.kf-leer {
  margin-top: 18px; padding: 44px 20px; text-align: center;
  border: 1px dashed var(--color-border); border-radius: var(--radius); color: var(--color-muted);
}
.kf-leer h3 { margin-top: 0; }
#kfMehrAnker { height: 1px; }

/* Schluss-CTA */
.kf-cta-schluss { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.kf-cta-schluss .btn { white-space: nowrap; }

/* Markenhinweis */
.kf-markenhinweis { font-size: 12px; opacity: 0.8; max-width: 720px; }

/* Lightbox */
.kf-lightbox {
  position: fixed; inset: 0; z-index: 200; padding: 20px;
  background: rgba(12, 15, 12, 0.93);
  display: grid; place-items: center;
}
.kf-lightbox[hidden] { display: none; }
.kf-lightbox__innen {
  width: min(1180px, 100%); max-height: calc(100vh - 40px);
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  background: #1d221e; color: #fff; border-radius: 12px; overflow: hidden;
}
.kf-lightbox__bild { width: 100%; height: 100%; max-height: calc(100vh - 40px); object-fit: contain; background: #0c0f0c; }
.kf-lightbox__text { padding: 26px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.kf-lightbox__text h2 { margin: 0; color: #fff; font-size: 22px; line-height: 1.25; }
.kf-lightbox__text p { margin: 0; color: rgba(255, 255, 255, 0.75); font-size: 14px; line-height: 1.55; }
.kf-lightbox__text .btn { text-align: center; }
.kf-lightbox__text .btn-secondary { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, 0.4); }
.kf-lightbox__text .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }
.kf-lightbox__zu {
  position: fixed; top: 18px; right: 18px; z-index: 202; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; font-size: 24px; line-height: 1;
  background: rgba(0, 0, 0, 0.5); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3);
}
.kf-lightbox__pfeil {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 202; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1;
  background: rgba(0, 0, 0, 0.5); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3);
}
.kf-lightbox__pfeil--l { left: 16px; }
.kf-lightbox__pfeil--r { right: 16px; }
.kf-lightbox__pfeil:hover, .kf-lightbox__zu:hover { background: rgba(0, 0, 0, 0.75); }

/* Responsiv */
@media (max-width: 900px) {
  .kf-suchzeile { grid-template-columns: 1fr 1fr; }
  .kf-suchbox { grid-column: 1 / -1; }
  .kf-steuer { grid-template-columns: 1fr 1fr; }
  .kf-tempo { grid-column: 1 / -1; }
  .kf-ansicht { grid-column: 1 / -1; justify-content: center; }
  .kf-lightbox__innen { grid-template-columns: 1fr; overflow: auto; }
  .kf-lightbox__bild { max-height: 58vh; }
  .kf-lightbox__pfeil { top: auto; bottom: 18px; transform: none; }
}
@media (max-width: 640px) {
  .kf-suchzeile { grid-template-columns: 1fr; }
  .kf-suchbox { grid-column: auto; }
  /* feste Höhe statt aspect-ratio + min-height: die Kombination überträgt
     sich als Mindest-BREITE (460 × 4/5 = 368px) und schnitt die Bühne
     auf schmalen Displays rechts ab */
  .kf-stage { aspect-ratio: auto; height: 460px; }
  .kf-stage__inhalt { inset: auto 16px 16px; }
  .kf-stage__inhalt p { display: none; }
  .kf-lupe { right: 12px; bottom: auto; top: 56px; }
  .kf-steuer { grid-template-columns: 1fr; }
  .kf-steuer > * { width: 100%; }
  .kf-cta-schluss { flex-direction: column; align-items: flex-start; }
}

/* Bewegung reduzieren: keine Dauer-Zoom-/Slide-Effekte, harte Blenden */
@media (prefers-reduced-motion: reduce) {
  .kf-stage__bild,
  .kf-stage[data-effect="zoom"] .kf-stage__bild.is-active,
  .kf-stage[data-effect="slide"] .kf-stage__bild { transition: opacity 1ms linear; transform: none !important; }
  .kf-karte, .kf-karte:hover { transform: none; }
}
