/* =====================================================================
   Modern: Banner, Buehnen und Slider oben (Entscheid Remo, 09.11.2026)

   Gilt fuer normale Banner (.th-stage ohne Aktion) und den Slider oben.
   Kracher, Liquidation und Best Price auf Bannern behalten ihren Look
   (prospekt-look.css). Die Wahl im Admin bleibt die Grundlage: Flaeche,
   Schrift, Knopffarbe und Hoehe wirken weiter. Neu sind Aufbau, Schrift,
   Rahmen und Details.

   Was sich aendert und warum:
   - Kicker und Knopf in normaler Schreibweise, ohne Sperrung. LIPO setzt in
     der Bedienung keine Versalien; Kracher, Liquidation und der Shop auch nicht.
   - Die Farbe wird zum Textfeld mit schraeger Kante, die Produkte stehen auf
     Hellgrau (Karten) bzw. Weiss (Bild). Vorher: harter Farbschnitt mitten
     durch die Buehne, Karten mit Kontur, Freisteller mit Schlagschatten -
     zusammen sah das nach zusammengeschobenen Kaesten aus.
   - Foto-Banner: Text in einer durchscheinenden Box statt Schwarzverlauf;
     das Produkt bleibt dahinter erkennbar. Am Handy Foto oben, Box darunter.
   - Slider: Reiter mit den Titeln der Angebote und Laufbalken statt Punkten,
     Pfeile in der Leiste statt auf der Schrift, am Handy Segmente.
   - Aktionsfolie im Slider: kein Rahmen. Mit Enddatum eine schwarze Folie mit
     grossem Countdown (prospekt-seiten.js schreibt ihn).

   Bewusst nicht angefasst:
   - Rabatt-Stoerer auf den Karten (.st-prod-r): die Black-Phase faerbt sie
     schwarz und ab Black Friday rot (prospekt-black.css). Eine Regel hier
     waere spezifischer und wuerde das Rot verschlucken.
   - Explizite Knopffarben aus dem Admin (.st-banner-cta-<farbe>): bleiben
     gefuellt. Nur ohne Wahl ist der Knopf ein Rahmen in Schriftfarbe.
   - Schriftfarbe aus dem Admin (data-banner-text): wirkt weiter auf Titel
     und Unterzeile.

   Schalter wie beim Kracher-Look: ?look=0 setzt html.look-aus, dann gilt
   wieder das fruehere Aussehen. Deshalb steht jede Regel unter
   html:not(.look-aus).
   ===================================================================== */

/* ---------- Grundfarbe als Variable ---------- */
html:not(.look-aus) .th-stage { --gr: var(--orange); --gr-text: #fff; --chip: rgba(255,255,255,.2) }
html:not(.look-aus) .th-stage.alt:not([data-banner-ground]) { --gr: var(--cyan) }
html:not(.look-aus) .th-stage[data-banner-ground="orange"] { --gr: var(--orange) }
html:not(.look-aus) .th-stage[data-banner-ground="gelb"] { --gr: var(--yellow); --gr-text: var(--ink); --chip: rgba(29,31,34,.1) }
html:not(.look-aus) .th-stage[data-banner-ground="blau"] { --gr: var(--cyan); --gr-text: var(--ink); --chip: rgba(29,31,34,.12) }
html:not(.look-aus) .th-stage[data-banner-ground="schwarz"] { --gr: var(--ink) }
html:not(.look-aus) .th-stage[data-banner-ground="weiss"] { --gr: #fff; --gr-text: var(--ink); --chip: rgba(29,31,34,.07) }
html:not(.look-aus) .th-stage[data-banner-ground="magenta"] { --gr: #bb136a }

/* ---------- Schrift ---------- */
/* Kicker als Pille, immer einzeilig: eine umbrechende Pille wirkt wie ein Fehler,
   und der Kicker ist eine Rubrikenliste, keine Aussage. */
html:not(.look-aus) .th-stage:not(.hat-aktion) .kick {
  justify-self: start; border-radius: 20px; padding: .25rem .75rem; background: var(--chip);
  text-transform: none; letter-spacing: 0; font-size: .82rem; font-weight: 600; opacity: 1; line-height: 1.2;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
html:not(.look-aus) .th-stage:not(.hat-aktion) .big { line-height: .92; letter-spacing: -.03em }
html:not(.look-aus) .th-stage:not(.hat-aktion) .sub { font-family: var(--sans); font-weight: 500 }
@media (min-width: 700px) {
  html:not(.look-aus) .th-stage:not(.hat-aktion) .kick { font-size: .95rem } }

/* ---------- Knopf: normale Schreibweise, Pfeil; ohne Farbwahl als Rahmen ----------
   Der Rahmen ist ein Rand, kein Schatten: der Fokusring (Schatten, viewer) bleibt
   unveraendert zweifarbig. Knoepfe mit Farbwahl behalten Fuellung und Abdunkeln. */
html:not(.look-aus) .th-stage:not(.hat-aktion) .st-banner-cta {
  text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .95rem; line-height: 1.1;
  padding: .7rem 1.15rem; gap: .55rem; min-height: 46px }
html:not(.look-aus) .th-stage:not(.hat-aktion) .st-banner-cta::after { content: '\2192'; transition: transform .15s }
html:not(.look-aus) .th-stage:not(.hat-aktion) .st-banner-cta:hover::after { transform: translateX(3px) }
@media (min-width: 700px) {
  html:not(.look-aus) .th-stage:not(.hat-aktion) .st-banner-cta { font-size: 1.02rem; padding: .78rem 1.35rem } }
html:not(.look-aus) .th-stage:not(.hat-aktion) .st-banner-cta:not([class*="st-banner-cta-"]) {
  background: transparent; color: inherit; border: 2px solid currentColor }
html:not(.look-aus) .th-stage:not(.hat-aktion) .st-banner-cta:not([class*="st-banner-cta-"]):hover {
  background: var(--gr-text); color: var(--gr); border-color: var(--gr-text); filter: none }

/* ---------- Produktkarten ohne Rahmen, Freisteller ohne Schatten ---------- */
html:not(.look-aus) .th-stage:not(.hat-aktion) .st-prod { border: 0; transition: transform .16s, box-shadow .16s }
html:not(.look-aus) .th-stage:not(.hat-aktion) .st-prod:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(29,31,34,.18) }
/* Auf weissem Grund braucht die weisse Karte eine Kante, sonst verschwindet sie. */
html:not(.look-aus) .th-stage[data-banner-ground="weiss"]:not(.hat-aktion) .st-prod { box-shadow: 0 0 0 1px var(--line) }
html:not(.look-aus) .th-stage:not(.hat-aktion) .r > img:not(.st-sujet) { filter: none }
/* Am Handy bleiben Karten und Abstaende wie gehabt: drei Karten passen auf 375px. */
@media (min-width: 700px) {
  html:not(.look-aus) .th-stage:not(.hat-aktion) .st-prod { padding: .6rem }
  html:not(.look-aus) .th-stage:not(.hat-aktion) .st-prod-n { font-size: .82rem }
  html:not(.look-aus) .th-stage:not(.hat-aktion) .st-prods { gap: .8rem }
  html:not(.look-aus) .th-stage:not(.hat-aktion) .r > img:not(.st-sujet) { padding: .9rem } }

/* Rabatt am Preisblock: schwarz auf hellen Flaechen (vorher Orange auf Gelb) */
html:not(.look-aus) .th-stage:not(.hat-aktion):is([data-banner-ground="gelb"], [data-banner-ground="blau"], [data-banner-ground="weiss"]) .bn-preis {
  --bn-akzent: var(--ink); --bn-akzent-schrift: #fff }

/* ---------- Aufbau am Rechner: Farbe als Textfeld mit schraeger Kante,
   Produkte auf Hellgrau bzw. das Bild auf Weiss ---------- */
@media (min-width: 700px) {
  /* Die Kartenflaeche ist die Grundfarbe, stark aufgehellt: Hellgrau (#f1f2f3) war
     vom Seitengrund (#f4f4f4) nicht zu unterscheiden, der Banner hatte rechts keine Kante. */
  html:not(.look-aus) .th-stage:not(.hat-aktion):not(.hat-vollbild):not(.hat-produktbild):not(.ohne-bild) {
    background: #e9ebee; background: color-mix(in srgb, var(--gr) 16%, #fff); box-shadow: none }
  html:not(.look-aus) .th-stage[data-banner-ground="schwarz"]:not(.hat-aktion):not(.hat-vollbild):not(.hat-produktbild):not(.ohne-bild) { background: #e6e7e9 }
  html:not(.look-aus) .th-stage[data-banner-ground="weiss"]:not(.hat-aktion):not(.hat-vollbild):not(.hat-produktbild):not(.ohne-bild) { background: #fff; box-shadow: inset 0 0 0 1px var(--line) }
  html:not(.look-aus) .th-stage:not(.hat-aktion):not(.hat-vollbild):not(.hat-produktbild):not(.ohne-bild) .l {
    background: var(--gr); color: var(--gr-text); position: relative; z-index: 1;
    clip-path: polygon(0 0, 100% 0, calc(100% - 3.2rem) 100%, 0 100%); padding: 1.8rem 4.4rem 1.8rem 2rem; gap: .5rem }
  html:not(.look-aus) .th-stage:not(.hat-aktion):not(.hat-vollbild):not(.hat-produktbild):not(.ohne-bild) .r { background: transparent; margin-left: -3.2rem }
  html:not(.look-aus) .th-stage:not(.hat-aktion):not(.hat-prods):not(.hat-vollbild):not(.hat-produktbild):not(.ohne-bild) .r { background: #fff }
  html:not(.look-aus) .th-stage.hat-prods:not(.hat-aktion) { min-height: 270px }
  html:not(.look-aus) .th-stage.hat-prods:not(.hat-aktion) .st-prods { padding: 1.2rem 1.4rem 1.2rem 4rem } }

/* ---------- Aufbau am Handy: ein geschlossener Farbblock ----------
   Am Rechner traegt das Hellgrau bzw. Weiss rechts, weil der Banner breit ist.
   Am Handy stiess es direkt an den weissen Seitengrund - der Banner hatte dort
   keine Kante mehr ("hell in hell"). Darum am Handy: die ganze Buehne in der
   Grundfarbe, Karten darauf, ein Bild als weisse Karte mit Rand in der Farbe.
   Keine schraegen Kanten: auf 375px wirkten sie verschoben, nicht gestaltet. */
@media (max-width: 699px) {
  html:not(.look-aus) .th-stage:not(.hat-aktion):not(.hat-vollbild):not(.hat-produktbild):not(.ohne-bild) {
    background: var(--gr); color: var(--gr-text) }
  html:not(.look-aus) .th-stage[data-banner-ground="weiss"]:not(.hat-aktion) { box-shadow: inset 0 0 0 1px var(--line) }
  html:not(.look-aus) .th-stage:not(.hat-aktion):not(.hat-vollbild):not(.hat-produktbild):not(.ohne-bild) .r { background: transparent }
  /* Bild neben dem Text (Stimmungsbild, eigenes Bild): weisse Karte rechts im Farbblock */
  html:not(.look-aus) .th-stage:not(.hat-aktion):not(.hat-prods):not(.hat-produkt):not(.hat-vollbild):not(.hat-produktbild):not(.ohne-bild) .r {
    background: #fff; margin: 0 .7rem 0 0 }
  /* Ein grosses Produkt: weisse Karte oben (16:11), mit Rand in der Grundfarbe.
     Feste Breite, damit das Seitenverhaeltnis auch im Raster gilt. */
  html:not(.look-aus) .th-stage.hat-produkt:not(.hat-aktion):not(.hat-vollbild):not(.hat-produktbild):not(.ohne-bild) .r {
    background: #fff; width: calc(100% - 1.4rem); margin: 0 .7rem; align-self: start; aspect-ratio: 16 / 11 }
  html:not(.look-aus) .th-stage:not(.hat-aktion) .r > img:not(.st-sujet) { padding: .5rem }
  /* Drei Karten teilen sich die Breite. Die feste Breite (6.4em) rechnete mit
     einem 343px-Fenster; gemessen sind es auf 375px nur rund 310px, und die
     dritte Karte war angeschnitten. Untergrenze in em: bei vergroesserter
     Schrift wachsen die Karten weiter mit, und der Streifen wird schiebbar. */
  html:not(.look-aus) :is(.th-stage:not(.hat-aktion), .hero-slide) .st-prod { width: max(6em, calc((100% - .8rem) / 3)); flex: none } }

/* ---------- Foto-Banner: durchscheinende Box statt Schwarzverlauf ----------
   Die Box hat die Farbe der Flaeche, die der Viewer dort ohnehin zeigt: beim
   Produktfoto immer dunkel mit weisser Schrift (Vertrag des Viewers, die
   Flaechenwahl gilt dort nicht), beim eigenen Bild die gewaehlte Flaeche. */
html:not(.look-aus) .th-stage:is(.hat-produktbild, .hat-vollbild):not(.hat-aktion) { --foto-box: var(--ink); --foto-text: #fff }
html:not(.look-aus) .th-stage.hat-vollbild[data-banner-ground]:not(.hat-aktion) { --foto-box: var(--gr); --foto-text: var(--gr-text) }
/* Schwarze Schrift (Wahl im Admin) braucht eine helle Box, sonst steht Schwarz auf Dunkel. */
html:not(.look-aus) .th-stage:is(.hat-produktbild, .hat-vollbild)[data-banner-text="schwarz"]:not(.hat-aktion) { --foto-box: #fff; --foto-text: var(--ink) }
html:not(.look-aus) .th-stage:is(.hat-produktbild, .hat-vollbild)[data-banner-text="schwarz"]:not(.hat-aktion) .bn-preis {
  --bn-akzent: var(--ink); --bn-akzent-schrift: #fff }
html:not(.look-aus) .th-stage:is(.hat-produktbild, .hat-vollbild):not(.hat-aktion) .l {
  align-self: end; justify-self: start; margin: 1.4rem; max-width: min(31rem, 60%);
  color: var(--foto-text); padding: 1.3rem 1.5rem; gap: .4rem;
  background: rgba(29,31,34,.78);
  background: color-mix(in srgb, var(--foto-box) 80%, transparent);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px) }
html:not(.look-aus) .th-stage:is(.hat-produktbild, .hat-vollbild):not(.hat-aktion) :is(.big, .sub) { text-shadow: none }
html:not(.look-aus) .th-stage.hat-produktbild:not(.hat-aktion) .bn-preis { color: inherit; text-shadow: none }
@media (min-width: 700px) {
  html:not(.look-aus) .th-stage:is(.hat-produktbild, .hat-vollbild):not(.hat-aktion) .l { padding-right: 1.5rem }
  /* Schmale Foto-Banner bleiben schmal: weniger Rand um die Box. */
  html:not(.look-aus) .th-stage:is(.hat-produktbild, .hat-vollbild)[data-banner-height="schmal"]:not(.hat-aktion) .l {
    margin: .8rem; padding: .8rem 1.1rem } }
/* Am Handy deckte eine Box ueber dem Foto fast alles zu, und eine halb
   ueberlappende Box wirkte wie eine verrutschte Stufe. Darum: Foto oben im
   gewaehlten Format, darunter das Farbfeld; das Foto laeuft weich hinein. */
@media (max-width: 699px) {
  html:not(.look-aus) .th-stage:is(.hat-produktbild, .hat-vollbild):not(.hat-aktion) { background: var(--foto-box) }
  html:not(.look-aus) .th-stage:is(.hat-produktbild, .hat-vollbild):not(.hat-aktion)::after { display: none }
  /* Foto und Text stehen untereinander, also zaehlt jede Zeile: das Foto wird
     flacher zugeschnitten als beim Ueberlagern (gemessen: Produktfoto 1:1 plus
     Text waren 606px, ein halber Handybildschirm mehr als vorher). Produktfoto:
     normal 16:10, gross 4:3, schmal 16:9. Eigene Bilder bleiben 16:9 wie bisher. */
  html:not(.look-aus) .th-stage:is(.hat-produktbild, .hat-vollbild):not(.hat-aktion) .st-full-image {
    position: relative; inset: auto; grid-area: 1 / 1; height: auto; aspect-ratio: var(--foto-handy, 16 / 9) }
  html:not(.look-aus) .th-stage.hat-produktbild:not(.hat-aktion) { --foto-handy: 16 / 10 }
  html:not(.look-aus) .th-stage.hat-produktbild[data-banner-height="gross"]:not(.hat-aktion) { --foto-handy: 4 / 3 }
  html:not(.look-aus) .th-stage.hat-produktbild[data-banner-height="schmal"]:not(.hat-aktion) { --foto-handy: 16 / 9 }
  html:not(.look-aus) .th-stage:is(.hat-produktbild, .hat-vollbild):not(.hat-aktion) .l {
    grid-area: 2 / 1; margin: -2.5rem 0 0; max-width: none; padding: 2.4rem 1rem 1.1rem;
    justify-self: stretch; align-self: stretch;
    background: linear-gradient(180deg, transparent 0, var(--foto-box) 2.4rem);
    -webkit-backdrop-filter: none; backdrop-filter: none } }

/* =====================================================================
   Slider oben
   ===================================================================== */
html:not(.look-aus) .hero { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; background: #f1f2f3 }
html:not(.look-aus) .hero-track { grid-column: 1 / -1; grid-row: 1 }
/* Weicherer Wechsel nur ohne "weniger Bewegung"; sonst bleibt es beim sofortigen Wechsel des Viewers. */
@media (prefers-reduced-motion: no-preference) {
  html:not(.look-aus) .hero-track { transition: transform .7s cubic-bezier(.65, 0, .35, 1) } }

/* Reiterleiste mit Laufbalken */
html:not(.look-aus) .hero-dots { position: static; transform: none; grid-column: 1; grid-row: 2; display: flex; gap: 0;
  padding: 0; align-items: stretch; min-width: 0 }
html:not(.look-aus) .hero-dots button { flex: 1 1 0; min-width: 0; width: auto; height: auto; min-height: 60px;
  display: grid; grid-template-columns: minmax(0, 1fr); place-items: center start; align-content: center; gap: .12rem;
  padding: .7rem 1.1rem .65rem; text-align: left; color: var(--ink); background: transparent; transition: background .15s }
html:not(.look-aus) .hero-dots button + button { box-shadow: inset 1px 0 0 #dcdee1 }
html:not(.look-aus) .hero-dots button:hover { background: #e8e9eb }
html:not(.look-aus) .hero-dots button[aria-current="true"] { background: #fff }
html:not(.look-aus) .hero-dots button:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px }
html:not(.look-aus) .hero-dots button::before,
html:not(.look-aus) .hero-dots button[aria-current="true"]::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; width: auto; height: 3px; border-radius: 0;
  background: transparent; box-shadow: none; transition: none; transform: none }
html:not(.look-aus) .hero-dots button[aria-current="true"]::before { background: #dcdee1 }
html:not(.look-aus) .hero-dots button::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; transform: scaleX(0);
  transform-origin: left center; background: var(--orange) }
html:not(.look-aus) .hero-dots button[aria-current="true"]::after { animation: hero-lauf-a var(--hero-takt, 3s) linear forwards }
html:not(.look-aus) .hero[data-lauf="b"] .hero-dots button[aria-current="true"]::after { animation-name: hero-lauf-b }
html:not(.look-aus) .hero:is(:hover, :focus-within) .hero-dots button[aria-current="true"]::after { animation-play-state: paused }
html:not(.look-aus) .hero.hero-steht .hero-dots button[aria-current="true"]::after { animation: none; transform: none }
@media (prefers-reduced-motion: reduce) {
  html:not(.look-aus) .hero-dots button[aria-current="true"]::after { animation: none; transform: none } }
@keyframes hero-lauf-a { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes hero-lauf-b { from { transform: scaleX(0) } to { transform: scaleX(1) } }
html:not(.look-aus) .hero-dots :is(.hero-tab-k, .hero-tab-b) { display: block; min-width: 0; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
html:not(.look-aus) .hero-dots .hero-tab-k { font: 500 .78rem/1.15 var(--sans); opacity: .62 }
html:not(.look-aus) .hero-dots .hero-tab-k:empty { display: none }
html:not(.look-aus) .hero-dots .hero-tab-b { font: 700 1rem/1.15 var(--cond); opacity: .7 }
html:not(.look-aus) .hero-dots button[aria-current="true"] .hero-tab-b { opacity: 1 }

/* Pfeile rechts in der Leiste statt auf der Schrift */
html:not(.look-aus) .hero-nav { position: static; transform: none; grid-row: 2; align-self: stretch; width: 60px; height: auto;
  min-height: 60px; background: #fff; color: var(--ink); font-size: 1.5rem; box-shadow: inset 1px 0 0 #dcdee1;
  transition: background .15s, color .15s }
html:not(.look-aus) .hero-nav.l { grid-column: 2 }
html:not(.look-aus) .hero-nav.r { grid-column: 3 }
html:not(.look-aus) .hero-nav:hover { background: var(--ink); color: #fff }

/* Kompakte Leiste: Titel der aktuellen Folie, «2 / 9», Pfeile und Laufbalken.
   Am Handy immer (Striche ohne Beschriftung sagten nichts), am Rechner ab 7 Folien,
   weil die Reiter dann zu schmal fuer ihre Titel werden. Die Punkte der anderen Folien
   fallen weg; blaettern geht mit den Pfeilen und durch Wischen. */
@media (max-width: 640px) {
  html:not(.look-aus) .hero-dots button:not([aria-current="true"]) { display: none }
  html:not(.look-aus) .hero-dots button[aria-current="true"] {
    min-height: 52px; padding: .5rem .9rem; grid-template-columns: minmax(0, 1fr) auto; column-gap: .7rem; background: #fff }
  html:not(.look-aus) .hero-dots .hero-tab-k { display: none }
  html:not(.look-aus) .hero-dots .hero-tab-b { grid-column: 1; grid-row: 1; font-size: .95rem }
  html:not(.look-aus) .hero-dots .hero-tab-n { display: block; grid-column: 2; grid-row: 1; font: 600 .82rem/1 var(--sans); color: #63666e;
    font-variant-numeric: tabular-nums; white-space: nowrap }
  /* Die Pfeile bleiben am Handy sichtbar (der Viewer blendet sie sonst unter 640px aus). */
  html:not(.look-aus) .hero-nav { display: grid; width: 52px; min-height: 52px } }
@media (min-width: 641px) {
  html:not(.look-aus) .hero-dots:has(> button:nth-child(7)) button:not([aria-current="true"]) { display: none }
  html:not(.look-aus) .hero-dots:has(> button:nth-child(7)) button[aria-current="true"] {
    grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; padding-right: 1.4rem }
  html:not(.look-aus) .hero-dots:has(> button:nth-child(7)) .hero-tab-k { grid-column: 1 }
  html:not(.look-aus) .hero-dots:has(> button:nth-child(7)) .hero-tab-b { grid-column: 1 }
  html:not(.look-aus) .hero-dots:has(> button:nth-child(7)) .hero-tab-n { display: block; grid-column: 2; grid-row: 1 / span 2;
    font: 600 .9rem/1 var(--sans); color: #63666e; font-variant-numeric: tabular-nums } }
/* Am Handy teilen alle Folien die Hoehe der hoechsten: eine Folie mit Produktbild, Preis und
   Timer (gemessen 659px) liess kurzen Folien fast 200px Leerraum. Die hohen Teile darum
   kompakter: flacheres Produktbild, kleinerer Timer, knappere Abstaende. */
@media (max-width: 699px) {
  html:not(.look-aus) .hero-slide.hat-produkt .hero-bild { aspect-ratio: 16 / 9 }
  html:not(.look-aus) .hero-slide .hero-txt { gap: .3rem }
  html:not(.look-aus) .hero-slide.hat-timer .hero-txt { padding-top: 1rem; padding-bottom: 1rem }
  html:not(.look-aus) .hero-slide.hat-produkt .hero-txt { padding-top: .9rem; padding-bottom: 1rem } }

/* Folien: Platz fuer die alten Pfeile wird frei, Text links */
html:not(.look-aus) .hero-slide .hero-txt { padding-left: 2.4rem }
@media (max-width: 699px) {
  html:not(.look-aus) .hero-slide .hero-txt { padding-left: 1.1rem }
  html:not(.look-aus) .hero:has(.hero-dots) .hero-slide:not(.hat-prods) .hero-txt { padding-bottom: 1.2rem } }
html:not(.look-aus) .hero-slide:not(.tint):not(.hat-produkt):not(.hat-prods):not(.produkt) { place-items: center start }
html:not(.look-aus) .hero-slide:not(.tint):not(.hat-produkt):not(.hat-prods):not(.produkt) .hero-txt {
  text-align: left; justify-items: start; max-width: min(74%, 820px); padding-top: 1.6rem; padding-bottom: 1.6rem }
@media (max-width: 699px) {
  /* Alle Folien teilen eine Hoehe; eine reine Textfolie ist am Handy darum oft
     hoeher als ihr Text. Wie ein Plakat: das % fuellt oben, der Text steht unten. */
  html:not(.look-aus) .hero-slide:not(.tint):not(.hat-produkt):not(.hat-prods):not(.produkt) { place-items: end start }
  html:not(.look-aus) .hero-slide:not(.tint):not(.hat-produkt):not(.hat-prods):not(.produkt) .hero-txt { max-width: 100% }
  html:not(.look-aus) .hero-slide:not(.tint):not(.hat-produkt):not(.hat-prods):not(.produkt):not(.hat-aktion)::before {
    top: -.12em; bottom: auto; right: -.06em; font-size: 17rem } }
/* Reine Textfolie: grosses % Ton in Ton */
html:not(.look-aus) .hero-slide:not(.tint):not(.hat-produkt):not(.hat-prods):not(.produkt):not(.hat-aktion)::before {
  content: '%'; position: absolute; z-index: 1; right: -.03em; bottom: -.27em; pointer-events: none;
  font: 800 clamp(12rem, 36vw, 30rem)/1 var(--sans); letter-spacing: -.05em; color: var(--hs, #fff); opacity: .13 }

html:not(.look-aus) .hero-slide:not(.hat-aktion) .hero-kicker,
html:not(.look-aus) .hero-slide.hat-timer .hero-kicker {
  justify-self: start; border-radius: 20px; padding: .28rem .8rem; background: rgba(255,255,255,.16);
  background: color-mix(in srgb, currentColor 16%, transparent);
  font-family: var(--sans); font-weight: 600; letter-spacing: 0; font-size: clamp(.78rem, 2vw, .92rem); opacity: 1; text-shadow: none }
html:not(.look-aus) .hero-slide:is(:not(.hat-aktion), .hat-timer) .hero-big { letter-spacing: -.03em; line-height: .92 }
html:not(.look-aus) .hero-slide:is(:not(.hat-aktion), .hat-timer) .hero-sub { font-family: var(--sans); font-weight: 500 }
html:not(.look-aus) .hero .hero-slide:is(:not(.hat-aktion), .hat-timer) .hero-cta {
  letter-spacing: 0; text-transform: none; font-weight: 600; gap: .55rem; padding: .72rem 1.35rem }
html:not(.look-aus) .hero .hero-slide:is(:not(.hat-aktion), .hat-timer) .hero-cta::after { content: '\2192'; transition: transform .15s }
html:not(.look-aus) .hero .hero-slide:is(:not(.hat-aktion), .hat-timer) .hero-cta:hover::after { transform: translateX(3px) }
html:not(.look-aus) .hero-slide:not(.hat-aktion):is([data-grund="gelb"], [data-grund="blau"], [data-grund="weiss"]) .bn-preis {
  --bn-akzent: var(--ink); --bn-akzent-schrift: #fff }
html:not(.look-aus) .hero-slide .hero-kicker { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
@media (min-width: 700px) {
  /* Foto-Folie: darf mit dem Text wachsen statt ihn abzuschneiden (zweizeilige Schlagzeile
     schob den Knopf unter den Rand), und die Schlagzeile laesst dem Foto mehr Platz. */
  /* Alle Folien gleich hoch: das feste Seitenverhaeltnis (24:7) liess reine Text- und
     Fotofolien kuerzer als die Produktfolien (380 statt 501px) - beim Wechsel sprang die Seite. */
  html:not(.look-aus) .hero-slide { aspect-ratio: auto; max-height: none }
  /* Ohne Hoehenwahl die bisherige Bandhoehe als Untergrenze; eine gewaehlte Hoehe bleibt. */
  html:not(.look-aus) .hero:not([data-hoehe]) .hero-slide { min-height: min(380px, 29vw) }
  html:not(.look-aus) .hero-slide.tint:not(.hat-aktion) .hero-big { font-size: clamp(2.2rem, 3.8vw, 3.6rem) } }
@media (max-width: 699px) {
  /* Produktfolie am Handy: das Produkt als weisse Karte im Farbblock, nicht als
     weisse Flaeche, die in den Seitengrund uebergeht. Flacher als 4:3, damit
     die Folie nicht hoeher wird als noetig (alle Folien teilen eine Hoehe). */
  html:not(.look-aus) .hero-slide.hat-produkt .hero-bild {
    width: auto; margin: .8rem .8rem 0; aspect-ratio: 16 / 9 }
  html:not(.look-aus) .hero-slide.hat-produkt .hero-bild img { padding: .5rem; top: 0; height: 100% }
  /* Die Aktions-Pille liegt am Handy auf der Produktkarte, nicht ueber dem Text. */
  html:not(.look-aus) .hero-slide.hat-produkt.hat-aktion:not(.hat-timer) .hero-txt { padding-top: .9rem } }
@media (min-width: 700px) {
  /* Produktfolie: weisse Flaeche mit schraeger Kante wie bei den Bannern */
  html:not(.look-aus) .hero-slide.hat-produkt:not(.hat-aktion) .hero-bild {
    clip-path: polygon(4rem 0, 100% 0, 100% 100%, 0 100%); margin-left: -4rem }
  html:not(.look-aus) .hero-slide.hat-produkt:not(.hat-aktion) .hero-bild img { padding-left: 4.6rem } }

/* Bewegung: Produkt zoomt leicht ein, der Text kommt gestaffelt */
@media (prefers-reduced-motion: no-preference) {
  html:not(.look-aus) .hero-slide:not(.hat-aktion)[aria-hidden="false"] .hero-bild img,
  html:not(.look-aus) .hero-slide.tint:not(.hat-aktion)[aria-hidden="false"] > img { animation: hero-zoom 5s ease-out both }
  html:not(.look-aus) .hero-slide:is(:not(.hat-aktion), .hat-timer)[aria-hidden="false"] .hero-txt > * { animation: hero-rein .55s cubic-bezier(.2, .7, .2, 1) both }
  html:not(.look-aus) .hero-slide:is(:not(.hat-aktion), .hat-timer)[aria-hidden="false"] .hero-txt > :nth-child(2) { animation-delay: .07s }
  html:not(.look-aus) .hero-slide:is(:not(.hat-aktion), .hat-timer)[aria-hidden="false"] .hero-txt > :nth-child(3) { animation-delay: .14s }
  html:not(.look-aus) .hero-slide:is(:not(.hat-aktion), .hat-timer)[aria-hidden="false"] .hero-txt > :nth-child(n+4) { animation-delay: .21s } }
@keyframes hero-zoom { from { transform: scale(1.06) } to { transform: scale(1) } }
@keyframes hero-rein { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }

/* ---------- Aktionsfolie: kein Rahmen ----------
   Mit Enddatum: schwarze Folie, grosser Countdown, der Balken oben entfaellt.
   Ohne Enddatum (z. B. Liquidation, solange Vorrat): der Balken wird zur Pille. */
html:not(.look-aus) .hero-slide.hat-aktion::after { display: none }
/* Die Pille behaelt die Aktionsfarbe (Farbsystematik). Ein dunkler Rand haelt sie auf einer
   gleichfarbigen Folie sichtbar (Liquidation gelb auf gelb). */
html:not(.look-aus) .hero-slide.hat-aktion:not(.hat-timer) > .st-aktion {
  left: 2.4rem; right: auto; top: 1rem; border-radius: 20px; padding: .3rem .4rem .3rem .85rem;
  box-shadow: 0 0 0 2px var(--ink);
  font-family: var(--sans); font-weight: 700; font-size: .85rem; text-transform: none; letter-spacing: 0 }
@media (max-width: 699px) { html:not(.look-aus) .hero-slide.hat-aktion:not(.hat-timer) > .st-aktion { left: 1.1rem } }
html:not(.look-aus) .hero-slide.hat-aktion:not(.hat-timer) > .st-aktion :is(.ak-uhr, .ak-frist) { border-radius: 14px }

html:not(.look-aus) .hero-slide.hat-timer > .st-aktion { display: none }
html:not(.look-aus) .hero-slide.hat-timer { background: var(--ink) }
html:not(.look-aus) .hero-slide.hat-timer .hero-kicker { background: rgba(255,255,255,.14); color: #fff }
html:not(.look-aus) .hero-slide.hat-timer .hero-txt { padding-top: 1.5rem; padding-bottom: 1.5rem; gap: .4rem }
html:not(.look-aus) .hero-slide.hat-timer .hero-prods { padding-top: 1rem }
html:not(.look-aus) .hero-slide.hat-timer .hero-bild img { top: 0; height: 100% }
html:not(.look-aus) .hero-slide.hat-timer .hero-sub { font-size: clamp(.9rem, 1.6vw, 1.1rem) }
@media (min-width: 700px) {
  html:not(.look-aus) .hero-slide.hat-timer.hat-prods { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) }
  html:not(.look-aus) .hero-slide.hat-timer .hero-big { font-size: clamp(2.2rem, 3.8vw, 3.4rem) } }

/* Der Countdown */
html:not(.look-aus) .hero-timer { display: grid; gap: .5rem; justify-self: start; margin: .55rem 0 .25rem }
html:not(.look-aus) .hero-timer-l { display: inline-flex; align-items: center; gap: .55rem; font: 600 .95rem/1.2 var(--sans); color: #fff }
html:not(.look-aus) .hero-timer-l > i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--orange); flex: none;
  animation: hero-live 1.6s ease-out infinite }
@keyframes hero-live { 0% { box-shadow: 0 0 0 0 rgba(255,109,15,.7) } 100% { box-shadow: 0 0 0 .75rem rgba(255,109,15,0) } }
html:not(.look-aus) .hero-timer-z { display: flex; align-items: flex-start; gap: .3rem }
html:not(.look-aus) .hero-timer-z > span { display: grid; justify-items: center; min-width: 4rem; padding: .5rem .45rem .42rem;
  background: #2c2f34; color: #fff; transition: background .3s, color .3s }
html:not(.look-aus) .hero-timer-z b { font: 800 2.6rem/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.02em }
html:not(.look-aus) .hero-timer-z small { font: 500 .74rem/1.2 var(--sans); opacity: .72; margin-top: .25rem }
html:not(.look-aus) .hero-timer-z em { font: 800 2.1rem/1 var(--sans); font-style: normal; color: var(--orange); padding-top: .5rem;
  animation: hero-blink 1s steps(1) infinite }
@keyframes hero-blink { 50% { opacity: .2 } }
html:not(.look-aus) .hero-timer [data-teil="s"].tick b { animation: hero-tick .5s cubic-bezier(.2, .7, .2, 1) }
@keyframes hero-tick { from { transform: scale(1.2); color: var(--yellow) } to { transform: none } }
/* Letzte 24 Stunden: Kacheln orange, Puls schneller */
html:not(.look-aus) .hero-timer.eilt .hero-timer-z > span { background: var(--orange); color: var(--ink) }
html:not(.look-aus) .hero-timer.eilt .hero-timer-z em { color: #fff }
html:not(.look-aus) .hero-timer.eilt .hero-timer-l > i { animation-duration: .8s }
html:not(.look-aus) .hero-timer.aus .hero-timer-z { display: none }
@media (min-width: 1000px) {
  html:not(.look-aus) .hero-timer-z > span { min-width: 5rem; padding: .6rem .5rem .5rem }
  html:not(.look-aus) .hero-timer-z b { font-size: 3.3rem }
  html:not(.look-aus) .hero-timer-z em { font-size: 2.6rem; padding-top: .6rem } }
@media (max-width: 699px) {
  html:not(.look-aus) .hero-timer { justify-self: stretch; gap: .35rem; margin: .35rem 0 .15rem }
  html:not(.look-aus) .hero-timer-l { font-size: .85rem }
  html:not(.look-aus) .hero-timer-z > span { flex: 1 1 0; min-width: 0; padding: .35rem .2rem .3rem }
  html:not(.look-aus) .hero-timer-z b { font-size: 1.75rem }
  html:not(.look-aus) .hero-timer-z small { font-size: .68rem; margin-top: .15rem }
  html:not(.look-aus) .hero-timer-z em { font-size: 1.35rem; padding-top: .35rem } }
@media (prefers-reduced-motion: reduce) {
  html:not(.look-aus) :is(.hero-timer-l > i, .hero-timer-z em, .hero-timer [data-teil="s"].tick b) { animation: none } }

/* =====================================================================
   Kracher-Folie im Slider
   Eine Folie mit Aktion «LIPO Kracher» und einer im Admin gewaehlten Farbe
   (Blau oder Orange) erscheint im Kracher-Design - dasselbe wie der Kracher-
   Banner in prospekt-look.css: Rasterflaeche, Logo, gestrichelter Rand,
   gelber Knopf mit schwarzer Kante. Die Farbe setzt prospekt-look.js als
   data-kv (Variablen --kv-* aus prospekt-look.css). Ohne gewaehlte Farbe
   bleibt die Folie wie bisher (schwarz mit Countdown bzw. Pille).
   ===================================================================== */
html:not(.look-aus) .hero-slide.kracher-folie {
  background: var(--kv-punkte) 0 0 / 12px 12px, var(--kv-bg); color: var(--kv-text); --hs: var(--kv-text) }
html:not(.look-aus) .hero-slide.kracher-folie::after {
  display: block; content: ''; position: absolute; inset: 6px; z-index: 3; pointer-events: none;
  border: 2px dashed rgba(255,255,255,.95); background: none }
/* display:block ist noetig: der Viewer blendet ::before bei Produktfolien aus. */
html:not(.look-aus) .hero-slide.kracher-folie::before {
  display: block; content: ''; position: absolute; z-index: 4; left: 1.8rem; top: .9rem; width: 16rem; height: 10rem;
  background: var(--kv-logo) left center / contain no-repeat; transform: rotate(-4deg); pointer-events: none }
html:not(.look-aus) .hero-slide.kracher-folie .hero-txt { padding-top: 11rem; padding-bottom: 1.8rem; position: relative; z-index: 5 }
/* Laufzeit direkt unter dem Logo, wie beim Kracher-Banner: mit Enddatum der grosse
   Countdown (zuoberst im Text), sonst der gelbe Aufkleber mit «von–bis». */
html:not(.look-aus) .hero-slide.kracher-folie .hero-timer { order: -1; margin: 0 0 .5rem }
html:not(.look-aus) .hero-slide.kracher-folie.hat-timer > .st-aktion { display: none }
html:not(.look-aus) .hero-slide.kracher-folie:not(.hat-timer) > .st-aktion {
  display: block; left: 2.4rem; right: auto; top: 10.6rem; z-index: 6; background: none; box-shadow: none;
  padding: 0; border-radius: 0; font-size: 0 }
html:not(.look-aus) .hero-slide.kracher-folie:not(.hat-timer) > .st-aktion :is(.ak-frist, .ak-uhr) {
  display: inline-block; margin: 0; background: var(--l-gelb); color: #000; border: 2px solid #000; box-shadow: 4px 4px 0 #000;
  border-radius: 0; padding: .3em .7em; transform: rotate(2.5deg); font: 800 1.05rem/1.1 var(--sans) }
@media (min-width: 700px) {
  html:not(.look-aus) .hero-slide.kracher-folie:not(.hat-timer):has(> .st-aktion :is(.ak-frist, .ak-uhr)) .hero-txt { padding-top: 14rem } }
html:not(.look-aus) .hero-slide.kracher-folie :is(.hero-prods, .hero-bild) { position: relative; z-index: 5 }
html:not(.look-aus) .hero-slide.kracher-folie .hero-kicker { display: none }
html:not(.look-aus) .hero-slide.kracher-folie .hero-big { color: var(--kv-titel); text-shadow: var(--kv-titel-schatten) }
html:not(.look-aus) .hero-slide.kracher-folie .hero-sub { color: var(--kv-text); font-weight: 600 }
html:not(.look-aus) .hero-slide.kracher-folie .bn-preis { color: var(--kv-preis); --bn-akzent: #000; --bn-akzent-schrift: #fff }
html:not(.look-aus) .hero-slide.kracher-folie .bn-jetzt .pp-now { color: var(--kv-preis); text-shadow: var(--kv-preis-schatten) }
html:not(.look-aus) .hero .hero-slide.kracher-folie .hero-cta,
html:not(.look-aus) .hero .hero-slide.kracher-folie .hero-cta[data-knopf] {
  background: var(--l-gelb); color: #000; border: 2px solid #000; box-shadow: 3px 3px 0 #000; font-weight: 800 }
html:not(.look-aus) .hero-slide.kracher-folie .hero-timer-l { color: var(--kv-text) }
html:not(.look-aus) .hero-slide.kracher-folie .hero-timer-l > i { background: #000 }
@media (min-width: 700px) {
  html:not(.look-aus) .hero-slide.kracher-folie.hat-produkt .hero-bild { margin: 1.4rem 1.4rem 1.4rem 0; clip-path: none }
  html:not(.look-aus) .hero-slide.kracher-folie.hat-produkt .hero-bild img { padding-left: .9rem } }
@media (max-width: 699px) {
  html:not(.look-aus) .hero-slide.kracher-folie::before { left: 1.1rem; top: .8rem; width: 9.4rem; height: 5.9rem }
  html:not(.look-aus) .hero-slide.kracher-folie:not(.hat-produkt) .hero-txt { padding-top: 6.6rem }
  html:not(.look-aus) .hero-slide.kracher-folie:not(.hat-timer) > .st-aktion { left: 1.1rem; top: 6.4rem }
  html:not(.look-aus) .hero-slide.kracher-folie:not(.hat-timer) > .st-aktion :is(.ak-frist, .ak-uhr) { font-size: .9rem }
  html:not(.look-aus) .hero-slide.kracher-folie:not(.hat-timer):not(.hat-produkt):has(> .st-aktion :is(.ak-frist, .ak-uhr)) .hero-txt { padding-top: 9rem }
  /* Mit Produktbild stehen Logo (und Aufkleber) ueber der Produktkarte */
  html:not(.look-aus) .hero-slide.kracher-folie.hat-produkt { padding-top: 6.1rem }
  html:not(.look-aus) .hero-slide.kracher-folie.hat-produkt:not(.hat-timer):has(> .st-aktion :is(.ak-frist, .ak-uhr)) { padding-top: 8.8rem }
  html:not(.look-aus) .hero-slide.kracher-folie.hat-produkt .hero-txt { padding-top: .9rem } }
