/* KfmTheme 1.1.40 (26.11.2026): Produktseite – Lupe, Lightbox, Dokumente, Videos, Auszeichnungen, Gaggenau-Partnerblock.
   Gehört zu js/produktseite.js und den Vorlagen unter views/Theme/Produktseite/. Farben aus design2026.css. */

/* ---------- Lupe auf dem Galeriebild (nur Maus) ---------- */
.widget-item-image a[data-lightbox] { cursor: zoom-in; }
.kfm-lupe {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-color: #fff; background-repeat: no-repeat;
  border-radius: inherit; box-shadow: inset 0 0 0 1px var(--kfm-linie, #e3e9ec);
}

/* ---------- Lightbox ---------- */
html.kfm-lb-offen, html.kfm-lb-offen body { overflow: hidden; }
.kfm-lb {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; grid-template-rows: auto 1fr auto auto auto auto;
  background: rgba(10, 22, 28, .94); color: #fff;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.kfm-lb__titel {
  margin: 0 56px 8px 0; font-size: 15px; font-weight: 600; line-height: 1.3; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kfm-lb__buehne {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: zoom-in; min-height: 0;
  background: #fff; border-radius: var(--kfm-radius, 14px);
}
.kfm-lb--zoom .kfm-lb__buehne { cursor: grab; }
.kfm-lb--zoom .kfm-lb__buehne:active { cursor: grabbing; }
.kfm-lb--360 .kfm-lb__buehne { cursor: ew-resize; }
.kfm-lb__bild {
  max-width: 100%; max-height: 100%; object-fit: contain;
  transform-origin: center center; will-change: transform; transition: transform .12s ease-out;
}
.kfm-lb--zoom .kfm-lb__bild { transition: none; }
.kfm-lb__leiste { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.kfm-lb__knopf {
  min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
  background: rgba(255, 255, 255, .08); color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}
.kfm-lb__knopf:hover { background: rgba(255, 255, 255, .2); }
.kfm-lb__knopf:disabled { opacity: .35; cursor: default; }
.kfm-lb__knopf:focus-visible, .kfm-lb__daumenknopf:focus-visible, .kfm-lb__dreher:focus-visible {
  outline: 3px solid var(--kfm-lime, #bed630); outline-offset: 2px;
}
.kfm-lb__zu { position: absolute; top: 8px; right: 12px; }
.kfm-lb__zaehler { min-width: 4.5em; text-align: center; font-variant-numeric: tabular-nums; }
.kfm-lb__dreherzeile { display: none; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; font-size: 13px; }
.kfm-lb--360 .kfm-lb__dreherzeile { display: flex; }
.kfm-lb__dreher { width: min(360px, 60vw); accent-color: var(--kfm-lime, #bed630); }
.kfm-lb__daumen { display: flex; gap: 6px; overflow-x: auto; padding: 8px 2px 2px; justify-content: safe center; scrollbar-width: thin; }
.kfm-lb__daumenknopf {
  position: relative; flex: 0 0 auto; width: 56px; height: 56px; padding: 2px; border: 2px solid transparent;
  border-radius: 8px; background: #fff; cursor: pointer;
}
.kfm-lb__daumenknopf img { width: 100%; height: 100%; object-fit: contain; }
.kfm-lb__daumenknopf[aria-current="true"] { border-color: var(--kfm-lime, #bed630); }
.kfm-lb__daumen360 {
  position: absolute; right: 2px; bottom: 2px; padding: 0 4px; border-radius: 4px;
  background: var(--kfm-petrol, #113946); color: #fff; font-size: 10px; line-height: 16px;
}
.kfm-lb__hinweis { margin: 6px 0 0; text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .75); }
@media (max-width: 575px) {
  .kfm-lb { padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .kfm-lb__buehne { border-radius: var(--kfm-radius-klein, 8px); }
  .kfm-lb__knopf { min-width: 44px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .kfm-lb__bild { transition: none; } }

/* ---------- Dokumente unter den Pflichtlinks ---------- */
.kfm-dokumente { margin-top: .15rem; }

/* ---------- Videos und Auszeichnungen unter der Galerie ---------- */
.kfm-medien { margin: 1.5rem 0 1rem; display: grid; gap: 1.5rem; }
.kfm-medien__titel { font-size: 18px; font-weight: 700; margin: 0 0 .75rem; color: var(--kfm-text, #1d2a30); }
.kfm-auszeichnungen__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.kfm-auszeichnung {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 110px; max-width: 160px; padding: 10px 12px; text-align: center;
  border: 1px solid var(--kfm-linie, #e3e9ec); border-radius: var(--kfm-radius-klein, 8px); background: #fff;
}
.kfm-auszeichnung img { height: 64px; width: auto; max-width: 136px; object-fit: contain; }
.kfm-auszeichnung__name { font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--kfm-text, #1d2a30); }
.kfm-auszeichnung__jahr { font-size: 12.5px; color: #4a5a61; }
.kfm-video { margin: 0 0 1rem; }
.kfm-video__platz {
  position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden;
  border-radius: var(--kfm-radius, 14px); background: var(--kfm-petrol, #113946);
}
.kfm-video__platz iframe, .kfm-video__platz video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.kfm-video__hinweis {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem; padding: 1rem 1.25rem; text-align: center; color: #fff;
}
.kfm-video__text { margin: 0; max-width: 34em; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .88); }
.kfm-video__text a { color: #fff; text-decoration: underline; }
.kfm-video__titel { margin-top: .4rem; font-size: 14px; color: var(--kfm-text, #1d2a30); }
@media (max-width: 575px) {
  .kfm-video__platz { aspect-ratio: auto; min-height: 220px; }
  .kfm-video__platz:has(iframe), .kfm-video__platz:has(video) { aspect-ratio: 16 / 9; min-height: 0; }
}

/* ---------- Gaggenau-Partnerblock im Kaufbereich ---------- */
.kfm-partner { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--kfm-linie, #e3e9ec); }
.kfm-partner__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: .5rem; }
.kfm-partner__logos img { height: 48px; width: auto; }
.kfm-partner__text { margin: 0 0 .35rem; font-size: 14px; color: var(--kfm-text, #1d2a30); }

/* ---------- Fremde Marken auf Seiten mit „nur eigene Marke“ ---------- */
.kfm-fremdmarke { display: none !important; }
