/* kachelwisch.css: Wischen in der Produktkachel (web/kachelwisch.go, kachelwisch.js; Entwurf hinter
   INSERATECHECK_KACHELWISCH). Im Ruhezustand sieht die Kachel aus wie bisher: nur die Punkte über dem Foto kommen dazu,
   Pfeile erst bei Hover bzw. Fokus in der Kachel (auf Touch nur die Punkte). Kein waagerechtes Scrollen der Seite:
   die Spur scrollt nur in sich. */
.kw { position: relative; }
.kw > .kw-spur { display: flex; align-items: flex-start; gap: 8px; flex: 0 0 auto; width: 100%; min-width: 0; overflow-x: auto;
  overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; scroll-behavior: smooth;
  transition: height 0.15s ease; }
.kw > .kw-spur::-webkit-scrollbar { display: none; }
/* Folien 76 % breit (Owner 22.11.2026: „Ich sehe nicht wie das Zweitprodukt … hervorlugt“): rund ein Fünftel der nächsten
   Folie mit ihrem Foto ragt herein; Folien : die nächste lugt am rechten Rand hervor (Owner 22.11.2026: sichtbar, dass man wischen kann, auch ohne
   Hover); jede Folie so hoch wie ihr Inhalt, die Spur so hoch wie die sichtbare (kachelwisch.js, hoehe) */
.kw-folie { flex: 0 0 76%; width: 76%; min-width: 0; align-self: flex-start; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column; background: inherit; }
.kw-folie + .kw-folie { box-shadow: -8px 0 10px -8px rgba(16, 32, 48, 0.45); border-left: 1px solid #d3dbe4; }
.suche-produkt.kw { padding: 0; }
.suche-produkt.kw > .kw-spur > .kw-folie { display: flow-root; padding: 16px; }
.wn-als-liste .kw-folie { flex-direction: row; align-items: stretch; }

/* Folgekarten: wie die Kachel (in den Rastern greifen die Regeln von wn-foto und wn-karte-text) */
.kw-foto { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: #ffffff; }
.kw-foto img { display: block; width: 100%; height: 100%; object-fit: contain; }
.suche-produkt .kw-foto { max-width: 240px; margin: 0 auto 8px; }
.kw-text { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; }
.kw-text p { margin: 0; }
.kw-art { font-size: 13px; font-weight: 600; color: #3b4b5c; }
.kw-versand { font-size: 13px; color: #4a5a6e; }
.kw-methodik { margin-top: 6px !important; font-size: 12px; line-height: 1.4; color: #4a5a6e; }
.kw-aktion { margin-top: 2px !important; }

/* Karten nach Inhalt: keine gestreckte Rasterzeile, keine Links ans Kartenende, keine leeren Score-Zeilen (Owner 22.11.2026:
   „Was soll der lange whitespace.“) */
.wn-finder .wn-karten:not(.rv-scroller):not(.wn-als-liste) { align-items: start; }
.wn-finder .wn-karten .wn-karte-text { flex: 0 0 auto; }
.wn-finder .wn-karten .rv-karte .wn-aktion { margin-top: 2px; }
.rv-karte .rv-werte > .rv-wert[data-leer] { display: none; }
.kw-fehler .kw-text { padding: 16px; justify-content: center; }

/* Platzhalter bis zum Laden */
.kw-leer { padding: 0 0 14px; }
.kw-leer-foto { aspect-ratio: 4 / 3; background: #f1f4f7; }
.kw-leer-zeile { height: 14px; margin: 14px 14px 0; border-radius: 7px; background: #eef2f5; }
.kw-leer-zeile.kw-kurz { width: 45%; }

/* Punkte: dezent unten über dem Foto (aria-hidden; die Folien sagen „2 von 5“) */
.kw-punkte { position: absolute; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 5px; padding: 4px 7px;
  border-radius: 10px; background: rgba(255, 255, 255, 0.82); pointer-events: none; }
.kw-punkte span { width: 6px; height: 6px; border-radius: 3px; background: #9aa8b6; }
.kw-punkte span.aktiv { width: 14px; background: #2f3e4e; }
.kw-punkte span.rand { width: 4px; height: 4px; margin-top: 1px; }

/* Menge: „1 / 5 · +4 weitere“ oben links über dem Foto (gut lesbar, ohne Hover, nicht über dem Text) */
.kw-menge { position: absolute; left: 8px; z-index: 2; padding: 3px 8px; border-radius: 10px; background: rgba(20, 34, 52, 0.86);
  color: #ffffff; font-size: 12px; font-weight: 700; line-height: 1.3; pointer-events: none; white-space: nowrap; }

/* Pfeile: erst bei Hover bzw. Fokus in der Kachel */
.kw-pfeil { position: absolute; z-index: 3; width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 1px solid #b8c4d0;
  border-radius: 50%; background: rgba(255, 255, 255, 0.95); color: #1d2b3a; font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(16, 32, 48, 0.18);
  opacity: 0; pointer-events: none; transition: opacity 0.15s ease; }
.kw-pfeil span { margin-top: -3px; }
.kw-vorher { left: 8px; }
.kw-vor { right: 8px; }
.kw:hover .kw-pfeil, .kw:focus-within .kw-pfeil { opacity: 1; pointer-events: auto; }
@media (hover: none) and (pointer: coarse) { .kw:hover:not(:focus-within) .kw-pfeil { opacity: 0; pointer-events: none; } } /* Touch: nur die Punkte */
.kw:hover .kw-pfeil[aria-disabled="true"], .kw:focus-within .kw-pfeil[aria-disabled="true"] { opacity: 0.35; }
.kw-pfeil:focus-visible { outline: 3px solid #0b5cad; outline-offset: 2px; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .kw > .kw-spur { scroll-behavior: auto; }
  .kw-pfeil { transition: none; }
}
