/* Black-Friday-Aktion 2026: Poster-Wechsel auf der Startseite (.bf-show) und Poster mit Preis
   oben im jeweiligen Marken-Block auf „Kaufen“ (.bf-lenta).
   Markup/Einbau: translog-digital/deploy-2026-11-16-blackfriday/ (Angebote in bauen.py).
   Nach der Aktion ersatzlos entfernen (siehe RUECKBAU.md). */

.bf-show, .bf-lenta {
  --bf-brand: #f27e00;
  --bf-ink: #121212;
  font-family: var(--font-kit-text-font, Montserrat), Montserrat, system-ui, sans-serif;
  line-height: 1.4;
}
.bf-show *, .bf-lenta *, .bf-show *::before, .bf-lenta *::before { box-sizing: border-box; }

/* ---------- Startseite: zwei Poster nebeneinander, Wechsel zu den naechsten zwei ---------- */
.bf-show { background: var(--bf-ink); color: #fff; padding: 36px 0 40px; }
.bf-show__wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.bf-show h2 {
  margin: 0 0 22px; text-align: center; font-weight: 400;
  font-family: var(--font-kit-header-font, 'Rubik Dirt'), 'Rubik Dirt', system-ui, sans-serif;
  font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; color: #fff;
}
.bf-show h2 b { font-weight: 400; color: var(--bf-brand); }
.bf-show__track {
  display: flex; gap: 24px; overflow-x: auto; max-width: 824px; margin: 0 auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.bf-show__track::-webkit-scrollbar { display: none; }
.bf-show__track:focus-visible { outline: 3px solid var(--bf-brand); outline-offset: 4px; border-radius: 16px; }
.bf-show__card {
  flex: 0 0 calc((100% - 24px) / 2); max-width: 400px; scroll-snap-align: start;
  display: block; border-radius: 16px; overflow: hidden; background: #1c1c1c;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}
.bf-show__card img { display: block; width: 100%; height: auto; }
.bf-show__card:hover, .bf-show__card:focus-visible { box-shadow: 0 12px 30px rgba(0, 0, 0, .55); }
.bf-show__card:focus-visible { outline: 3px solid var(--bf-brand); outline-offset: 3px; }
@media (max-width: 760px) {
  .bf-show { padding: 28px 0 32px; }
  .bf-show__track { gap: 14px; margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px; }
  .bf-show__card { flex-basis: min(88%, 400px); max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .bf-show__track { scroll-behavior: auto; } }

/* Punkte unter den Postern: Klick springt, der aktive fuellt sich ueber die Wartezeit */
.bf-show__dots { display: flex; justify-content: center; gap: 4px; margin-top: 18px; }
.bf-show__dots[hidden] { display: none; }
.bf-show__dot {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 32px;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.bf-show__dot span { position: relative; display: block; width: 12px; height: 12px; border-radius: 6px; background: #4a4a4a; overflow: hidden; transition: width .25s; }
.bf-show__dot span::after { content: ""; position: absolute; inset: 0; width: var(--fuell, 0); background: var(--bf-brand); }
.bf-show__dot.is-aktiv span { width: 36px; }
.bf-show__dot:hover span { background: #6a6a6a; }
.bf-show__dot:focus-visible { outline: 3px solid var(--bf-brand); outline-offset: -2px; border-radius: 8px; }

/* ---------- Kaufen: Poster mit Preis oben im Marken-Block ---------- */
.bf-lenta {
  display: grid; grid-template-columns: minmax(0, 350px) 1fr; gap: 36px; align-items: center;
  margin: 0 0 32px; padding: 16px;
  background: var(--bf-ink); color: #fff; border-radius: 16px;
  scroll-margin-top: 120px;
}
.bf-lenta__poster { display: block; border-radius: 12px; overflow: hidden; }
.bf-lenta__poster img { display: block; width: 100%; height: auto; }
.bf-lenta__poster:focus-visible { outline: 3px solid var(--bf-brand); outline-offset: 3px; }
.bf-lenta__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 16px 8px 0; }
.bf-lenta__tag { color: var(--bf-brand); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bf-lenta__body strong { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.2; }
.bf-lenta__price { margin: 4px 0 14px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; color: #fff; }
.bf-lenta__vorteile { list-style: none; margin: 0 0 20px; padding: 0; width: 100%; max-width: 560px; }
.bf-lenta__vorteile li { margin: 0; padding: 9px 0; border-top: 1px solid #333; color: #e6e6e6; font-size: 15px; line-height: 1.45; }
.bf-lenta__vorteile li:last-child { border-bottom: 1px solid #333; }
.bf-lenta__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px; border-radius: 8px;
  background: var(--bf-brand); color: var(--bf-ink); font-weight: 700; font-size: 16px; text-decoration: none;
}
.bf-lenta__btn:hover { filter: brightness(1.08); }
.bf-lenta__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 760px) {
  .bf-lenta { grid-template-columns: 1fr; gap: 16px; padding: 12px; }
  .bf-lenta__body { padding: 0 6px 6px; }
}

/* ---------- Nachtrag aus deploy-2026-11-16-artikel ----------
   Seit es Artikelseiten gibt, fuehren die Poster dorthin statt ins Formular; der
   Knopf im Motiv heisst darum „Mehr erfahren" (poster.py im Artikel-Paket).
   Der automatische Wechsel ist aus (data-bf-intervall="0"): gesteuert wird mit den
   Punkten, per Wischen oder indem man die Reihe mit der Maus zieht. */
.bf-show__track { cursor: grab; }
.bf-show__track img { -webkit-user-drag: none; user-select: none; }
.bf-show__track.is-zieht { cursor: grabbing; scroll-snap-type: none; }
.bf-show__track.is-zieht a { pointer-events: none; }

/* Zeiger links und rechts der Reihe (blackfriday-show.js baut sie ein) */
.bf-show__reihe { display: flex; align-items: center; justify-content: center; gap: 14px; }
.bf-show__reihe .bf-show__track { flex: 1 1 auto; min-width: 0; }
.bf-show__zeiger {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: #262626; color: #fff; cursor: pointer;
}
.bf-show__zeiger svg { width: 22px; height: 22px; }
.bf-show__zeiger:hover { background: var(--bf-brand); color: var(--bf-ink); }
.bf-show__zeiger:focus-visible { outline: 3px solid var(--bf-brand); outline-offset: 3px; }
.bf-show__reihe--eine .bf-show__zeiger { display: none; }
@media (max-width: 760px) {
  /* Auf dem Handy liegen die Zeiger ueber den Raendern der Poster, damit sie
     dem Bild keine Breite wegnehmen. Gewischt werden kann weiterhin. */
  .bf-show__reihe { position: relative; gap: 0; }
  .bf-show__zeiger {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 40px; height: 40px; background: rgba(18, 18, 18, .72);
  }
  .bf-show__zeiger--zurueck { left: 2px; }
  .bf-show__zeiger--weiter { right: 2px; }
  .bf-show__zeiger svg { width: 18px; height: 18px; }
  .bf-show__zeiger:hover { background: var(--bf-brand); }
}

/* Kaufen: dasselbe Band wie auf der Startseite, direkt unter dem Kopfbereich */
.bf-show--kauf { margin: 0; }
