/* Prospekt-Look: Aktionskacheln und Bühnen näher am gedruckten Prospekt (KW03/2027).

   Vorschlag, nur aktiv bei <html class="look"> (prospekt-look.js, ?look=1). Ohne den Schalter ändert sich nichts.

   Gestaltet wird, was im Druck laut ist:
   - LIPO Kracher: blaue Rasterfläche, Logo (Illustrator-Datei Lipo-Kracher-Einklinker), gelbes Frist-Etikett,
     weisser Preis, gelber Rabattkreis, gestrichelter Einklinker-Rand
   - Liquidationsposten: gelbe Fläche, Schachbrett-Rand, roter Schriftzug, roter Preis, roter Rabattkreis
   - Best Price: helle blaue Fläche mit blauem Etikett, kein Rahmen
   - Rabatt als Kreis auf allen Kacheln (rot, in der Black-Phase schwarz wie im Shop)
   Orange bleibt die Farbe der Marke; der Kracher bekommt hier das Blau des Druck-Einklinkers. */

html:not(.look-aus) {
  --kipp-luft: .75rem;      /* Luft neben einer gekippten Liquidation-Kachel im waagrechten Streifen (Regel bei «Seitlich ragt») */
  --k-blau: #5bbcda;        /* Blau des Kracher-Logos (Ebene «Blau» der Illustrator-Datei) */
  --k-blau-dunkel: #2f93b5;
  --k-punkte: radial-gradient(circle, rgba(18,105,145,.30) 1.5px, transparent 2px);
  --l-gelb: #ffed00;
  --l-rot: #e20015;
  --look-kreis: #e20015;    /* Rabattkreis: Rot wie im Sale-Prospekt */
  --schach: repeating-conic-gradient(#1d1f22 0% 25%, #fff 0% 50%) 0 0 / 22px 22px round;
}
html:not(.look-aus).black-phase { --look-kreis: #000 }
html:not(.look-aus).black-phase--final { --look-kreis: #e20015 }

/* ---------- LIPO Kracher: zwei Varianten ----------
   blau   = blaue Rasterfläche mit orangem Logo (wie im Druck)
   orange = orange Rasterfläche mit blauem Logo (zweite Variante der Illustrator-Datei)
   Gewählt wird je Element mit data-kv="blau|orange"; prospekt-look.js verteilt sie für die Vorschau abwechselnd
   (?kv=blau oder ?kv=orange erzwingt eine Variante). Später gehört die Wahl in die Setzung. */
html:not(.look-aus) .ak-sparkracher {
  --kv-bg: var(--k-blau); --kv-punkte: radial-gradient(circle, rgba(18,105,145,.30) 1.5px, transparent 2px);
  --kv-logo: url(assets/lipo-kracher-orange.svg); --kv-schatten: rgba(18,105,145,.35);
  /* Weiss auf diesem Blau hat nur 2,2 : 1 Kontrast (nötig: 3 : 1 gross, 4,5 : 1 klein), darum dunkle Schrift auf Blau (7,6 : 1) */
  --kv-text: #1d1f22; --kv-preis: #1d1f22; --kv-titel: #1d1f22;
  --kv-preis-schatten: 0 2px 0 rgba(255,255,255,.45); --kv-titel-schatten: 0 3px 0 rgba(255,255,255,.45);
}
html:not(.look-aus) .ak-sparkracher[data-kv="orange"] {
  --kv-bg: #ff6d0f; --kv-punkte: radial-gradient(circle, rgba(150,45,0,.30) 1.5px, transparent 2px);
  --kv-logo: url(assets/lipo-kracher-blau.svg); --kv-text: #1d1f22; --kv-schatten: rgba(150,45,0,.38);
  /* Preis und Schlagzeile bleiben weiss (Markenfarbe auf Orange, 2,8 : 1). Eine dunkle Kontur hält sie lesbar, auch die kleinen Zeichen. */
  --kv-preis: #fff; --kv-titel: #fff;
  --kv-preis-schatten: 1px 1px 0 #7a2400, -1px 1px 0 #7a2400, 1px -1px 0 #7a2400, -1px -1px 0 #7a2400, 0 3px 0 rgba(122,36,0,.55);
  --kv-titel-schatten: 2px 2px 0 #7a2400, -2px 2px 0 #7a2400, 2px -2px 0 #7a2400, -2px -2px 0 #7a2400, 0 5px 0 rgba(122,36,0,.5);
}

/* ---------- Rabatt als Kreis (alle Kacheln) ---------- */
html:not(.look-aus) :is(.ak-sparkracher, .ak-liquidation, .ak-bestprice) .pp-disc {
  display: inline-grid; place-items: center; box-sizing: border-box;
  min-width: 2.7rem; height: 2.7rem; padding: 0 .3rem; border-radius: 50%;
  background: var(--look-kreis); color: #fff; font-weight: 800; font-size: .98rem; line-height: 1;
  transform: rotate(-6deg); box-shadow: 0 2px 6px rgba(29,31,34,.22); margin: -.25rem 0 -.2rem .35rem;
}
html:not(.look-aus) :is(.ak-sparkracher, .ak-liquidation, .ak-bestprice) .pp-was { align-items: center }
html:not(.look-aus) :is(.ak-sparkracher, .ak-liquidation, .ak-bestprice) .pp-old { color: #212529 }

/* ---------- LIPO Kracher: Kachel ---------- */
html:not(.look-aus) .pp-tile.ak-sparkracher {
  background: var(--kv-punkte) 0 0 / 11px 11px, var(--kv-bg);
  border: 0; --ak: var(--k-blau); --ak-schrift: #fff; padding: 6.6rem 20px 20px;
}
/* Einklinker-Rand: gestrichelt, innen */
html:not(.look-aus) .pp-tile.ak-sparkracher::after {
  content: ""; position: absolute; inset: 5px; border: 2px dashed #fff; border-radius: 0; pointer-events: none; z-index: 5;
}
/* Das Etikett wird zum Logo plus Frist-Aufkleber */
html:not(.look-aus) .pp-tile.ak-sparkracher .pp-aktion {
  grid-area: auto; position: absolute; left: 18px; right: 18px; top: 14px; z-index: 6; height: auto; padding: 0;
  background: none; color: #000; display: flex; align-items: flex-start; justify-content: space-between; gap: .3rem;
  font-size: 0; line-height: 0;
}
html:not(.look-aus) .pp-tile.ak-sparkracher .pp-aktion::before {
  content: ""; flex: none; width: 9.4rem; height: 6.1rem; margin: -.3rem 0 0 -.4rem;
  background: var(--kv-logo) center / contain no-repeat; transform: rotate(-5deg);
  filter: drop-shadow(0 2px 0 rgba(255,255,255,.35));
}
html:not(.look-aus) .pp-tile.ak-sparkracher .pp-aktion .ak-uhr,
html:not(.look-aus) .pp-tile.ak-sparkracher .pp-aktion .ak-frist {
  margin: .9rem .1rem 0 auto; align-self: flex-start; background: var(--l-gelb); color: #000;
  border: 2px solid #000; box-shadow: 3px 3px 0 #000; padding: .22em .5em; transform: rotate(2.5deg);
  font: 800 .82rem/1.05 var(--sans); text-align: center; max-width: 7.2rem; white-space: normal;
}
html:not(.look-aus) .pp-tile.ak-sparkracher .pp-media {
  background: #fff; margin: 0; box-shadow: 0 0 0 3px #fff, 3px 5px 0 3px var(--kv-schatten);
}
html:not(.look-aus) .pp-tile.ak-sparkracher .pp-stoerer { display: none }
html:not(.look-aus) .pp-tile.ak-sparkracher .pp-body { color: var(--kv-text); padding: .7rem .95rem .4rem }
html:not(.look-aus) .pp-tile.ak-sparkracher .pp-name { color: var(--kv-text); font-weight: 800 }
html:not(.look-aus) .pp-tile.ak-sparkracher .pp-meas,
html:not(.look-aus) .pp-tile.ak-sparkracher .pp-desc { color: var(--kv-text); opacity: .92 }
html:not(.look-aus) .pp-tile.ak-sparkracher .pp-old,
html:not(.look-aus) .pp-tile.ak-sparkracher .pp-old sup { color: var(--kv-text) }
html:not(.look-aus) .pp-tile.ak-sparkracher .pp-disc { background: var(--l-gelb); color: #000; box-shadow: 0 0 0 2px #000, 2px 3px 0 2px #000; transform: rotate(-8deg) }
html:not(.look-aus) .pp-tile.ak-sparkracher .pp-now { color: var(--kv-preis); text-shadow: var(--kv-preis-schatten) }
html:not(.look-aus) .pp-tile.ak-sparkracher .pp-cta { background: var(--l-gelb); color: #000; border: 2px solid #000; font-weight: 800; white-space: nowrap; font-size: .9rem }
html:not(.look-aus) .pp-tile.ak-sparkracher .pp-fav { background: #fff; color: #000; border-color: #fff }

/* ---------- Liquidationsposten: gelbe Fläche, Schachbrett nur als äusserer Rahmen ----------
   Der Rahmen ist ein eigenes Pseudo-Element mit Maske (nur der äussere Ring), so bleiben Foto, Nebenbilder und Text
   frei von Linien, egal wie die Kachel aufgebaut ist (Hero, mittel, klein, Karte im Raster). */
html:not(.look-aus) .pp-tile.ak-liquidation,
html:not(.look-aus) .card.ak-liquidation {
  background: var(--l-gelb); border: 0; padding: 12px; position: relative; container-type: inline-size; --ak: var(--l-gelb);
}
html:not(.look-aus) .pp-tile.ak-liquidation::after,
html:not(.look-aus) .card.ak-liquidation::after { display: none }
html:not(.look-aus) .pp-tile.ak-liquidation::before,
html:not(.look-aus) .card.ak-liquidation::before {
  content: ""; position: absolute; inset: 0; z-index: 8; pointer-events: none; padding: 11px; background: var(--schach);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* Schriftzug wie im Druck: «LIQUIDATION», gross, rot, gerade. Die Grösse folgt der Breite der Kachel.
   (Das Etikett heisst im Viewer «Liquidationsposten»; das lange Wort wäre in der kleinen Kachel nur halb so gross.) */
html:not(.look-aus) .pp-tile.ak-liquidation .pp-aktion,
html:not(.look-aus) .card.ak-liquidation .pp-aktion {
  position: relative; left: auto; right: auto; top: auto; z-index: 3; order: -1; background: none; color: var(--l-rot);
  flex-direction: column; align-items: center; justify-content: center; padding: .3rem .4rem .75rem; margin: 0; transform: none;
  font-size: 0; line-height: 0; grid-column: 1 / -1;
}
html:not(.look-aus) .pp-tile.ak-liquidation .pp-aktion::before,
html:not(.look-aus) .card.ak-liquidation .pp-aktion::before {
  content: "Liquidation"; display: block; color: #e30613; text-transform: uppercase; letter-spacing: .01em; white-space: nowrap;
  font: 800 min(3.2rem, calc((100cqw - 46px) / 7.4)) / 1 var(--sans);
}
html[lang^="it"]:not(.look-aus) .pp-tile.ak-liquidation .pp-aktion::before,
html[lang^="it"]:not(.look-aus) .card.ak-liquidation .pp-aktion::before { content: "Liquidazione"; font-size: min(3rem, calc((100cqw - 46px) / 8.4)) }
html:not(.look-aus) .pp-tile.ak-liquidation .pp-aktion > *,
html:not(.look-aus) .card.ak-liquidation .pp-aktion > * {
  margin: .35rem 0 0; background: #fff; color: #000; padding: .15em .5em; text-shadow: none; font: 800 .82rem/1.1 var(--sans); text-transform: none;
}
/* Wie im Druck steht die ganze Liquidation-Fläche leicht schräg (am Druck-PDF gemessen: −1,5°). Sie steht zuerst gerade und kippt
   mit einem kleinen Nachwippen, sobald sie im Bild ist (prospekt-look.js setzt dann «kippt»). Das Kippen läuft über die eigene
   Eigenschaft «rotate», damit das Einblenden des Viewers (transform, opacity) unberührt bleibt. Die Winkel sind nach Breite gestaffelt,
   damit die Ecken breiter Kacheln nicht in die Nachbarn ragen. Bei reduzierter Bewegung steht sie ohne Animation fest schräg. */
html:not(.look-aus) .pp-tile.ak-liquidation, html:not(.look-aus) .card.ak-liquidation { --kipp: -1.5deg }
html:not(.look-aus) .pp-tile.ak-liquidation.size-s, html:not(.look-aus) .card.ak-liquidation { --kipp: -2deg }
html:not(.look-aus) .pp-tile.ak-liquidation.size-hero { --kipp: -.8deg }
html:not(.look-aus) .pp-tile.ak-liquidation.kippt, html:not(.look-aus) .card.ak-liquidation.kippt {
  rotate: var(--kipp); animation: look-kippen .95s cubic-bezier(.3, .7, .35, 1) both;
}
@keyframes look-kippen { from { rotate: 0deg } 55% { rotate: calc(var(--kipp) * 2.1) } to { rotate: var(--kipp) } }
@media (prefers-reduced-motion: reduce) {
  html:not(.look-aus) .pp-tile.ak-liquidation, html:not(.look-aus) .card.ak-liquidation { rotate: var(--kipp); animation: none }
}
/* Der Slider schneidet oben und unten ab, was über seinen Rand ragt. Die gekippten Ecken brauchen dort etwas Luft; der negative
   Aussenabstand gleicht das aus, das Layout bleibt gleich. */
html:not(.look-aus) .th-reco-bahn:has(.ak-liquidation) { padding-top: 8px; padding-bottom: 10px; margin-top: -8px; margin-bottom: -8px }
/* Seitlich ragt eine gekippte Ecke im Streifen (2°, Kachelhöhe bis etwa 600 px) bis zu 10 px über den Platz der Kachel hinaus. Bei einer
   Lücke von 10 px stiess sie an die Nachbarkachel, und am Anfang des Streifens wurde sie abgeschnitten. Darum hat die Kachel rechts und
   links Luft. Die Luft steht von Anfang an da, nicht erst mit «kippt»: so springt beim Kippen nichts, und bei reduzierter Bewegung ist sie
   dieselbe. Die Kachel bleibt gleich breit, nur die Nachbarn rücken ab; Streifen ohne Liquidation-Kachel bleiben, wie sie waren.
   Am Streifenrand reicht das, weil Chromium eine gekippte Kachel beim Einrasten an ihrem Umriss ausrichtet (Safari und Firefox ungeprüft). */
html:not(.look-aus) .th-reco-bahn > .pp-tile.ak-liquidation { margin-inline: var(--kipp-luft) }
html:not(.look-aus) .pp-tile.ak-liquidation .pp-media { background: #fff; margin: 0 }
html:not(.look-aus) .pp-tile.ak-liquidation .pp-stoerer { display: none }
html:not(.look-aus) .pp-tile.ak-liquidation .pp-name { font-weight: 800 }
html:not(.look-aus) .pp-tile.ak-liquidation .pp-now { color: var(--l-rot) }
html:not(.look-aus) .pp-tile.ak-liquidation .pp-old { color: #000 }
html:not(.look-aus) .pp-tile.ak-liquidation .pp-disc { background: var(--l-rot); color: #fff }
html:not(.look-aus) .pp-tile.ak-liquidation .pp-cta { background: #000; color: var(--l-gelb) }

/* ---------- Best Price: helle blaue Fläche ---------- */
html:not(.look-aus) .pp-tile.ak-bestprice { background: #d9eff7; border: 0 }
html:not(.look-aus) .pp-tile.ak-bestprice::after { display: none }
html:not(.look-aus) .pp-tile.ak-bestprice .pp-aktion {
  position: relative; background: var(--blue); color: #fff; width: max-content; padding: .22rem .65rem .24rem; margin: .6rem 0 0 .6rem;
  font-size: .95rem; letter-spacing: .06em; order: -1;
}
html:not(.look-aus) .pp-tile.ak-bestprice .pp-media { background: #fff; margin: .5rem .6rem 0 }

/* ---------- Bühne mit Kracher: blaue Rasterfläche, Logo, Frist-Aufkleber ---------- */
html:not(.look-aus) .th-stage.ak-sparkracher {
  --st-titel: var(--kv-titel); background: var(--kv-punkte) 0 0 / 12px 12px, var(--kv-bg); color: var(--kv-titel); position: relative; min-height: 260px;
}
/* Jeder zweite Banner trägt «alt»; prospekt-themen.css färbt ihn cyan (Spezifität 0,5,0) und verdeckte so die Kracher-Fläche.
   Dieselbe Fläche noch einmal, mit denselben Ausnahmen wie dort (Vollbild, Produktbild, eigene Grundfarbe) und mehr Gewicht. */
html:not(.look-aus) .th-stage.alt.ak-sparkracher:not([data-banner-ground]):not(.hat-vollbild):not(.hat-produktbild) {
  background: var(--kv-punkte) 0 0 / 12px 12px, var(--kv-bg);
}
html:not(.look-aus) .th-stage.ak-sparkracher::before {
  content: ""; position: absolute; inset: 6px; border: 2px dashed rgba(255,255,255,.95); pointer-events: none; z-index: 3;
}
html:not(.look-aus) .th-stage.ak-sparkracher::after {
  content: ""; position: absolute; left: 2rem; top: 1.3rem; width: 15rem; height: 9.8rem; z-index: 4;
  background: var(--kv-logo) left center / contain no-repeat; transform: rotate(-4deg); pointer-events: none;
}
html:not(.look-aus) .th-stage.ak-sparkracher .l { padding: 10rem 1.4rem 1.4rem 2.2rem; position: relative; z-index: 2 }
html:not(.look-aus) .th-stage.ak-sparkracher .big { color: var(--kv-titel); font-size: clamp(2.2rem, 6.4vw, 4.6rem); text-shadow: var(--kv-titel-schatten) }
html:not(.look-aus) .th-stage.ak-sparkracher .sub { color: var(--kv-text) }
/* «Nur dieses Wochenende» sagt das gelbe Frist-Etikett schon, die Zeile über der Schlagzeile entfällt */
html:not(.look-aus) .th-stage.ak-sparkracher .kick { display: none }
html:not(.look-aus) .th-stage.ak-sparkracher .st-aktion {
  left: auto; right: 1.6rem; top: 1.6rem; z-index: 6; background: none; padding: 0; font-size: 0; display: block;
}
/* Desktop: das Frist-Etikett steht neben dem Logo auf der freien Fläche links, nicht oben rechts auf den Produktkarten */
@media (min-width: 1000px) {
  html:not(.look-aus) .th-stage.ak-sparkracher .st-aktion { left: 18.5rem; right: auto; top: 3.4rem }
}
html:not(.look-aus) .th-stage.ak-sparkracher .st-aktion .ak-uhr,
html:not(.look-aus) .th-stage.ak-sparkracher .st-aktion .ak-frist {
  display: inline-block; margin: 0; background: var(--l-gelb); color: #000; border: 2px solid #000; box-shadow: 4px 4px 0 #000;
  padding: .3em .7em; transform: rotate(2.5deg); font: 800 1.05rem/1.1 var(--sans);
}
html:not(.look-aus) .th-stage.ak-sparkracher .st-prod { background: #fff; color: var(--ink) }
html:not(.look-aus) .th-stage.ak-sparkracher .st-prod-r { background: var(--l-gelb); color: #000; border-radius: 50%; width: 3rem; height: 3rem; display: grid; place-items: center; padding: 0; box-shadow: 0 0 0 2px #000; transform: rotate(-8deg) }

/* ---------- Alle Angebote: dieselben Aktionen auf den Karten im Raster ---------- */
html:not(.look-aus) .card:is(.ak-sparkracher, .ak-liquidation, .ak-bestprice) .wasp {
  display: inline-grid; place-items: center; min-width: 2.7rem; height: 2.7rem; padding: 0 .3rem; border-radius: 50%;
  background: var(--look-kreis); color: #fff; font-weight: 800; font-size: .98rem; line-height: 1;
  transform: rotate(-6deg); box-shadow: 0 2px 6px rgba(29,31,34,.22); margin: -.25rem 0 -.2rem .35rem;
}
html:not(.look-aus) .card:is(.ak-sparkracher, .ak-liquidation, .ak-bestprice) .was { color: #212529 }
html:not(.look-aus) .card:is(.ak-sparkracher, .ak-liquidation, .ak-bestprice) .badge { display: none }

html:not(.look-aus) .card.ak-sparkracher { background: var(--kv-punkte) 0 0 / 11px 11px, var(--kv-bg); border: 0 }
html:not(.look-aus) .card.ak-sparkracher::after { content: ""; position: absolute; inset: 5px; border: 2px dashed #fff; pointer-events: none; z-index: 5 }
html:not(.look-aus) .card.ak-sparkracher .pp-aktion {
  position: absolute; left: 18px; right: 18px; top: 14px; z-index: 6; height: auto; padding: 0; background: none; color: #000;
  display: flex; align-items: flex-start; justify-content: space-between; gap: .3rem; font-size: 0; line-height: 0;
}
html:not(.look-aus) .card.ak-sparkracher .pp-aktion::before {
  content: ""; flex: none; width: 9.4rem; height: 6.1rem; margin: -.3rem 0 0 -.4rem;
  background: var(--kv-logo) center / contain no-repeat; transform: rotate(-5deg);
}
html:not(.look-aus) .card.ak-sparkracher .pp-aktion .ak-uhr,
html:not(.look-aus) .card.ak-sparkracher .pp-aktion .ak-frist {
  margin: .9rem .1rem 0 auto; align-self: flex-start; background: var(--l-gelb); color: #000; border: 2px solid #000;
  box-shadow: 3px 3px 0 #000; padding: .22em .5em; transform: rotate(2.5deg); font: 800 .82rem/1.05 var(--sans); text-align: center; max-width: 7.2rem; white-space: normal;
}
html:not(.look-aus) .card.ak-sparkracher .card-img { background: #fff; margin: 6.6rem 20px 0; box-shadow: 0 0 0 3px #fff, 3px 5px 0 3px var(--kv-schatten) }
html:not(.look-aus) .card.ak-sparkracher .pp-stoerer { display: none }
html:not(.look-aus) .card.ak-sparkracher .card-b { color: var(--kv-text); padding: .7rem 1.35rem 1.35rem }
html:not(.look-aus) .card.ak-sparkracher .kicker,
html:not(.look-aus) .card.ak-sparkracher .name,
html:not(.look-aus) .card.ak-sparkracher .meas { color: var(--kv-text) }
html:not(.look-aus) .card.ak-sparkracher .was { color: var(--kv-text) }
html:not(.look-aus) .card.ak-sparkracher .wasp { background: var(--l-gelb); color: #000; box-shadow: 0 0 0 2px #000, 2px 3px 0 2px #000; transform: rotate(-8deg) }
html:not(.look-aus) .card.ak-sparkracher .price-row .pr { color: var(--kv-preis); text-shadow: var(--kv-preis-schatten) }
html:not(.look-aus) .card.ak-sparkracher .buy { background: var(--l-gelb); color: #000; border: 2px solid #000; font-weight: 800 }

html:not(.look-aus) .card.ak-liquidation .card-img { background: #fff; margin: 0 }
html:not(.look-aus) .card.ak-liquidation .pp-stoerer { display: none }
html:not(.look-aus) .card.ak-liquidation .name { font-weight: 800 }
html:not(.look-aus) .card.ak-liquidation .price-row .pr { color: var(--l-rot) }
html:not(.look-aus) .card.ak-liquidation .was { color: #000 }
html:not(.look-aus) .card.ak-liquidation .wasp { background: var(--l-rot); color: #fff }
html:not(.look-aus) .card.ak-liquidation .buy { background: #000; color: var(--l-gelb); border-color: #000 }

html:not(.look-aus) .card.ak-bestprice { background: #d9eff7; border: 0 }
html:not(.look-aus) .card.ak-bestprice .pp-aktion {
  position: relative; background: var(--blue); color: #fff; width: max-content; padding: .22rem .65rem .24rem; margin: .6rem 0 0 .6rem; font-size: .95rem; letter-spacing: .06em; order: -1;
}
html:not(.look-aus) .card.ak-bestprice .card-img { background: #fff; margin: .5rem .6rem 0 }

/* Grosse Kachelformen: Rabattkreis bleibt rund */
html:not(.look-aus) .pp-tile:is(.ak-sparkracher, .ak-liquidation, .ak-bestprice).size-hero .pp-disc { min-width: 3.5rem; height: 3.5rem; font-size: 1.25rem; padding: 0 .35rem }
html:not(.look-aus) .pp-tile:is(.ak-sparkracher, .ak-liquidation, .ak-bestprice).size-m .pp-disc { min-width: 3rem; height: 3rem; font-size: 1.05rem }

/* Grosse Kacheln mit Nebenbildern: Abstand zwischen grossem Bild, Nebenbildern und Text */
html:not(.look-aus) .pp-tile.ak-sparkracher.size-hero,
html:not(.look-aus) .pp-tile.ak-sparkracher.size-m,
html:not(.look-aus) .pp-tile.ak-liquidation.size-hero,
html:not(.look-aus) .pp-tile.ak-liquidation.size-m { column-gap: 1.3rem }

/* Kracher auf grossen Kacheln: Logo und Frist-Etikett grösser, sie haben hier Platz (das Logo war neben dem Foto zu klein) */
html:not(.look-aus) .pp-tile.ak-sparkracher.size-hero { padding-top: 9.6rem }
html:not(.look-aus) .pp-tile.ak-sparkracher.size-hero .pp-aktion::before { width: 14.5rem; height: 9.4rem; margin: -.4rem 0 0 -.6rem }
html:not(.look-aus) .pp-tile.ak-sparkracher.size-hero .pp-aktion .ak-uhr,
html:not(.look-aus) .pp-tile.ak-sparkracher.size-hero .pp-aktion .ak-frist { font-size: 1.05rem; max-width: 9.6rem; margin-top: 1.1rem; padding: .26em .6em }
/* Hero ab Desktop (1000 px), Aufbau in drei Handgriffen:
   1. Foto und Nebenbilder bilden EINE weisse Galerie über die volle Höhe (vorher schwebten die Nebenbilder im Orange).
   2. Rechte Spalte: oben das Kopfband (Logo links, Frist rechts), darunter Name, ganz unten Preis und Knopf, bündig mit dem Foto.
   3. Preis und Rabatt sind die zweite Blickfläche: grosser Preis, grosser Rabattkreis rechts daneben, Knopf über die ganze Breite.
   Darunter (Tablet) ist die Textspalte nur rund 260 px breit, dort bleibt das Band über dem Foto. */
@media (min-width: 1000px) {
  html:not(.look-aus) .th-hero .pp-tile.ak-sparkracher.size-hero { padding-top: 20px; column-gap: 0 }

  /* 1. Galerie */
  html:not(.look-aus) .th-hero .pp-tile.ak-sparkracher.size-hero .pp-media { grid-row: 1 / span 2; aspect-ratio: auto; align-self: stretch; height: auto }
  html:not(.look-aus) .th-hero .pp-tile.ak-sparkracher.size-hero .pp-neben {
    grid-row: 1 / span 2; align-self: stretch; width: auto; padding: .9rem 0; justify-content: flex-start; align-items: center;
    background: #fff; border-left: 1px solid #ebe7e2; box-shadow: 0 0 0 3px #fff, 3px 5px 0 3px var(--kv-schatten);
  }

  /* 2. Kopfband in der rechten Spalte */
  html:not(.look-aus) .th-hero .pp-tile.ak-sparkracher.size-hero .pp-aktion {
    position: relative; left: auto; right: auto; top: auto; grid-column: -2 / -1; grid-row: 1; align-self: start;
    justify-content: space-between; padding: .2rem 1.6rem 0 1.5rem; margin-bottom: -.8rem;
  }
  html:not(.look-aus) .th-hero .pp-tile.ak-sparkracher.size-hero .pp-aktion .ak-uhr,
  html:not(.look-aus) .th-hero .pp-tile.ak-sparkracher.size-hero .pp-aktion .ak-frist { margin: 1.5rem 0 0; font-size: 1.15rem; max-width: none; padding: .3em .7em }
  html:not(.look-aus) .th-hero .pp-tile.ak-sparkracher.size-hero .pp-body { padding: .6rem 1.6rem .2rem 1.5rem }

  /* 3. Preisblock unten, bündig mit der Unterkante des Fotos.
   Rabattkreis: Der Viewer setzt beim Hochzählen eine feste min-width direkt am Element, die den Kreis oval zog, darum !important. */
  html:not(.look-aus) .th-hero .pp-tile.ak-sparkracher.size-hero .pp-price {
    --sym: 1.7rem; --fr: 4.6rem; --rp: 2.1rem; --old: 1.6rem; position: relative; margin-top: auto;
  }
  html:not(.look-aus) .th-hero .pp-tile.ak-sparkracher.size-hero .pp-disc {
    position: absolute; right: .3rem; top: 50%; margin: 0; width: 6.4rem; min-width: 0 !important; height: 6.4rem; padding: 0; font-size: 1.9rem; letter-spacing: -.02em;
    transform: translateY(-46%) rotate(-8deg); box-shadow: 0 0 0 3px #000, 3px 4px 0 3px #000;
  }
  html:not(.look-aus) .th-hero .pp-tile.ak-sparkracher.size-hero .pp-tun { margin-top: .5rem }
  html:not(.look-aus) .th-hero .pp-tile.ak-sparkracher.size-hero .pp-cta { max-width: none; flex: 1 1 auto; margin-top: 0; font-size: 1.15rem; padding: 1rem 1.2rem }
}

/* Hero auf dem Handy: gleiche Ordnung wie am Desktop. Das Foto ist die erste Blickfläche und darf nicht flach (2:1) sein,
   Name, Streichpreis und Preis stehen linksbündig untereinander, der Rabattkreis steht gross rechts neben dem Preis. */
@media (max-width: 699px) {
  html:not(.look-aus) .th-hero .pp-tile.ak-sparkracher.size-hero .pp-media { aspect-ratio: 3 / 2; height: auto; min-height: 0 }
  html:not(.look-aus) .th-hero .pp-tile.ak-sparkracher.size-hero .pp-price {
    --sym: 1.4rem; --fr: 3.8rem; --rp: 1.8rem; --old: 1.4rem; position: relative;
  }
  html:not(.look-aus) .th-hero .pp-tile.ak-sparkracher.size-hero .pp-was,
  html:not(.look-aus) .th-hero .pp-tile.ak-sparkracher.size-hero .pp-pricerow { justify-content: flex-start }
  html:not(.look-aus) .th-hero .pp-tile.ak-sparkracher.size-hero .pp-disc {
    position: absolute; right: .2rem; top: 50%; margin: 0; width: 5.2rem; min-width: 0 !important; height: 5.2rem; padding: 0; font-size: 1.6rem; letter-spacing: -.02em;
    transform: translateY(-46%) rotate(-8deg); box-shadow: 0 0 0 3px #000, 3px 4px 0 3px #000;
  }
  html:not(.look-aus) .th-hero .pp-tile.ak-sparkracher.size-hero .pp-cta { flex: 1 1 auto; max-width: none }
}

/* Mittlere Kachel ab Tablet: derselbe Preisblock wie im Hero, kleiner. Grosser Preis, Rabattkreis rechts daneben, Knopf über die Breite. */
@media (min-width: 701px) {
  html:not(.look-aus) .pp-tile.ak-sparkracher.size-m .pp-price {
    --sym: 1.15rem; --fr: 3.1rem; --rp: 1.5rem; --old: 1.15rem; position: relative;
  }
  html:not(.look-aus) .pp-tile.ak-sparkracher.size-m .pp-disc {
    position: absolute; right: .1rem; top: 50%; margin: 0; width: 4.8rem; min-width: 0 !important; height: 4.8rem; padding: 0; font-size: 1.45rem; letter-spacing: -.02em;
    transform: translateY(-46%) rotate(-8deg); box-shadow: 0 0 0 2.5px #000, 2.5px 3px 0 2.5px #000;
  }
  html:not(.look-aus) .pp-tile.ak-sparkracher.size-m .pp-cta { flex: 1 1 auto; max-width: none }
}

@media (min-width: 701px) {
  html:not(.look-aus) .pp-tile.ak-sparkracher.size-s { padding-top: 7.9rem }
  html:not(.look-aus) .pp-tile.ak-sparkracher.size-s .pp-aktion::before { width: 11rem; height: 7.1rem; margin: -.4rem 0 0 -.5rem }
  /* Frist-Etikett oben rechts im Band, über das Logo hinaus nach rechts; das Foto bleibt frei */
  html:not(.look-aus) .pp-tile.ak-sparkracher.size-s .pp-aktion .ak-uhr,
  html:not(.look-aus) .pp-tile.ak-sparkracher.size-s .pp-aktion .ak-frist {
    position: absolute; top: 3.7rem; right: -.2rem; margin: 0; width: 6.4rem; max-width: none; padding: .22em .3em;
    font-size: .8rem; line-height: 1.1; z-index: 7;
  }
}
html:not(.look-aus) .pp-tile.ak-sparkracher.size-m { padding-top: 8.2rem }
html:not(.look-aus) .pp-tile.ak-sparkracher.size-m .pp-aktion::before { width: 12.2rem; height: 7.9rem; margin: -.4rem 0 0 -.5rem }
html:not(.look-aus) .pp-tile.ak-sparkracher.size-m .pp-aktion .ak-uhr,
html:not(.look-aus) .pp-tile.ak-sparkracher.size-m .pp-aktion .ak-frist { font-size: .95rem; max-width: 8.4rem; margin-top: 1rem }

/* Handy: der Rabattkreis auf den Bühnen-Produkten verdeckt sonst das kleine Foto. Er sitzt kleiner auf der oberen rechten Ecke
   der Karte und ragt über den Rand hinaus, so bleiben Foto und Preis frei. */
@media (max-width: 700px) {
  html:not(.look-aus) .th-stage.ak-sparkracher .st-prod { overflow: visible; position: relative }
  html:not(.look-aus) .th-stage.ak-sparkracher .st-prod-r {
    top: -.7rem; bottom: auto; right: -.55rem; width: 2.35rem; height: 2.35rem; font-size: .74rem; z-index: 4;
  }
}

/* ---------- Handy: schmale Kacheln im Slider (ca. 150 bis 190 px) ----------
   Die Aktionskacheln dürfen hier nicht höher werden als ihre Nachbarn, sonst dehnt der Slider alle Kacheln und
   zwischen Name und Preis klafft eine Lücke. Darum: kleineres Logo, kleinere Etiketten, flacheres Foto. */
@media (max-width: 700px) {
  html:not(.look-aus) .pp-tile.ak-sparkracher:is(.size-s, .size-m) { padding: 4.5rem 12px 12px }
  html:not(.look-aus) .pp-tile.ak-sparkracher:is(.size-s, .size-m)::after { inset: 4px; border-width: 1.5px }
  html:not(.look-aus) .pp-tile.ak-sparkracher:is(.size-s, .size-m) .pp-aktion { left: 12px; right: 12px; top: 9px }
  html:not(.look-aus) .pp-tile.ak-sparkracher:is(.size-s, .size-m) .pp-aktion::before { width: 6.6rem; height: 4.2rem; margin: -.3rem 0 0 -.45rem }
  /* Frist-Etikett: sitzt oben rechts im Band neben dem Logo, so bleibt das Foto frei */
  html:not(.look-aus) .pp-tile.ak-sparkracher:is(.size-s, .size-m) .pp-aktion .ak-uhr,
  html:not(.look-aus) .pp-tile.ak-sparkracher:is(.size-s, .size-m) .pp-aktion .ak-frist {
    position: absolute; top: .8rem; right: -.2rem; margin: 0; width: 5.2rem; max-width: none; padding: .2em .3em;
    font-size: .66rem; line-height: 1.1; border-width: 1.5px; box-shadow: 2px 2px 0 #000; z-index: 7;
  }
  html:not(.look-aus) .pp-tile.ak-sparkracher:is(.size-s, .size-m) .pp-media { aspect-ratio: 5 / 4; box-shadow: 0 0 0 2px #fff, 2px 3px 0 2px var(--kv-schatten) }
  html:not(.look-aus) .pp-tile.ak-sparkracher:is(.size-s, .size-m) .pp-body { padding: .5rem 0 0 }
  html:not(.look-aus) .pp-tile.ak-sparkracher:is(.size-s, .size-m) .pp-disc { min-width: 2.3rem; height: 2.3rem; font-size: .82rem }

  html:not(.look-aus) .pp-tile.size-s.ak-liquidation { padding: 9px }
  html:not(.look-aus) .pp-tile.size-s.ak-liquidation::before { padding: 8px }
  html:not(.look-aus) .pp-tile.size-s.ak-liquidation .pp-aktion { padding: .1rem .1rem .45rem }
  html:not(.look-aus) .pp-tile.size-s.ak-liquidation .pp-aktion::before { font-size: min(3.2rem, calc((100cqw - 34px) / 7.4)) }
  html:not(.look-aus) .pp-tile.size-s.ak-liquidation .pp-media { aspect-ratio: 5 / 4 }
  html:not(.look-aus) .pp-tile.size-s.ak-liquidation .pp-body { padding: .5rem 0 0 }
  html:not(.look-aus) .pp-tile.size-s.ak-liquidation .pp-disc { min-width: 2.3rem; height: 2.3rem; font-size: .82rem }

  html:not(.look-aus) .pp-tile.size-s.ak-bestprice .pp-aktion { margin: .45rem 0 0 .45rem; font-size: .78rem; padding: .18rem .5rem .2rem }
  html:not(.look-aus) .pp-tile.size-s.ak-bestprice .pp-media { margin: .4rem .45rem 0; aspect-ratio: 5 / 4 }

  /* Knopf: ein Wort pro Zeile vermeiden */
  html:not(.look-aus) .pp-tile:is(.ak-sparkracher, .ak-liquidation, .ak-bestprice).size-s .pp-cta { font-size: .78rem; padding-inline: .2rem; white-space: nowrap }
  html:not(.look-aus) .pp-tile:is(.ak-sparkracher, .ak-liquidation, .ak-bestprice).size-s .pp-disc { min-width: 2.3rem; height: 2.3rem; font-size: .82rem }
}

/* ======================================================================================================
   Banner (Bühnen) mit Aktion: Lücken aus dem Test auf Staging (06.11.)
   Die Bühne gibt es in mehreren Arten: drei Produkte (hat-prods), ein Produkt (hat-produkt, Foto rechts bzw. oben),
   Foto als Hintergrund (hat-produktbild, hat-vollbild). Der Look muss jede davon tragen.
   ====================================================================================================== */

/* --- Kracher, Foto als Hintergrund: die Schrift steht auf dem Foto und bleibt weiss, in beiden Farben.
       (Die dunkle Schrift der blauen Variante gilt nur dort, wo die blaue Fläche selbst der Grund ist.) --- */
html:not(.look-aus) .th-stage.ak-sparkracher:is(.hat-produktbild, .hat-vollbild) {
  --kv-text: #fff; --kv-titel: #fff; --kv-preis: #fff;
  --kv-preis-schatten: 0 1px 3px rgba(0, 0, 0, .7); --kv-titel-schatten: 0 1px 3px rgba(0, 0, 0, .8), 0 2px 12px rgba(0, 0, 0, .4);
}

/* --- Kracher, Preiszeile im Banner (Streichpreis und Rabatt): die Akzentfarbe des Banners (Orange) ist auf Blau schwer, auf Orange
       unsichtbar. Streichpreis in der Schriftfarbe der Variante, Rabatt als gelber Kreis wie auf den Kacheln. --- */
html:not(.look-aus) .th-stage.ak-sparkracher .bn-was { color: var(--kv-text) }
html:not(.look-aus) .th-stage.ak-sparkracher .bn-rab {
  display: inline-grid; place-items: center; box-sizing: border-box; width: 3.4rem; height: 3.4rem; padding: 0; border-radius: 50%;
  background: var(--l-gelb); color: #000; font-size: 1rem; line-height: 1; text-shadow: none;
  box-shadow: 0 0 0 2px #000, 2px 3px 0 2px #000; transform: rotate(-8deg);
}
html:not(.look-aus) .th-stage.ak-sparkracher .bn-jetzt .pp-now { color: var(--kv-preis); text-shadow: var(--kv-preis-schatten) }

/* --- Kracher, ein Produkt auf dem Handy: das Foto steht über dem Text, Logo und Frist würden es verdecken.
       Das Logo sitzt am Anfang der Textfläche, die Frist rechts daneben (gleiche Zelle wie der Text). --- */
@media (max-width: 699px) {
  html:not(.look-aus) .th-stage.ak-sparkracher.hat-produkt::after { background: none }
  html:not(.look-aus) .th-stage.ak-sparkracher.hat-produkt .l::before {
    content: ""; position: absolute; left: 1.2rem; top: 1.3rem; width: 15rem; height: 9.8rem; z-index: 4;
    background: var(--kv-logo) left center / contain no-repeat; transform: rotate(-4deg); pointer-events: none;
  }
  html:not(.look-aus) .th-stage.ak-sparkracher.hat-produkt .st-aktion {
    position: relative; left: auto; right: auto; top: auto; grid-area: 2 / 1; justify-self: end; align-self: start;
    width: max-content; margin: 1.6rem 1.4rem 0 0;
  }
}

/* --- Liquidation im Banner: gelbe Fläche, Schachbrett-Rahmen, roter Schriftzug im Kopf, wie auf den Kacheln.
       Foto-Banner behalten ihr Foto und ihre weisse Schrift, sie bekommen Rahmen und Kopf. --- */
html:not(.look-aus) .th-stage.ak-liquidation {
  --ak: var(--l-gelb); --ak-schrift: var(--l-rot); --li-text: #1d1f22; --aktions-abstand: 3.4rem;
}
html:not(.look-aus) .th-stage.ak-liquidation:not(.hat-produktbild):not(.hat-vollbild) { background: var(--l-gelb); color: var(--li-text); --st-titel: var(--li-text) }
html:not(.look-aus) .th-stage.ak-liquidation:is(.hat-produktbild, .hat-vollbild) { --li-text: #fff }
@media (min-width: 700px) { html:not(.look-aus) .th-stage.ak-liquidation { --aktions-abstand: 3.9rem } }
html:not(.look-aus) .th-stage.ak-liquidation::before {
  border: 0; padding: 11px; background: var(--schach); z-index: 8;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
html:not(.look-aus) .th-stage.ak-liquidation .st-aktion {
  left: 11px; right: 11px; top: 11px; background: var(--l-gelb); color: var(--l-rot); padding: .5rem 1.1rem .25rem;
  font: 800 1.3rem / 1 var(--sans); letter-spacing: .02em;
}
@media (min-width: 700px) { html:not(.look-aus) .th-stage.ak-liquidation .st-aktion { font-size: 1.65rem; padding: .6rem 1.5rem .3rem } }
html:not(.look-aus) .th-stage.ak-liquidation:not(.hat-produktbild):not(.hat-vollbild) :is(.big, .sub, .kick) { color: var(--li-text); text-shadow: none }
html:not(.look-aus) .th-stage.ak-liquidation:not(.hat-produktbild):not(.hat-vollbild) .bn-preis {
  --bn-akzent: #1d1f22; --bn-akzent-schrift: #fff; color: var(--li-text); text-shadow: none;
}
html:not(.look-aus) .th-stage.ak-liquidation .bn-jetzt .pp-now { color: var(--l-rot) }
html:not(.look-aus) .th-stage.ak-liquidation .bn-rab {
  display: inline-grid; place-items: center; box-sizing: border-box; width: 3.4rem; height: 3.4rem; padding: 0; border-radius: 50%;
  background: var(--l-rot); color: #fff; font-size: 1rem; line-height: 1; text-shadow: none; transform: rotate(-6deg);
}
html:not(.look-aus) .th-stage.ak-liquidation:not(.hat-produktbild):not(.hat-vollbild) .st-banner-cta { background: #000; color: var(--l-gelb); border-color: #000 }
html:not(.look-aus) .th-stage.ak-liquidation .st-prod-r { background: var(--l-rot); color: #fff }

/* --- Liquidation-Banner kippt wie die Kacheln (siehe oben), nur sehr leicht: die Bühne ist über 1000 px breit --- */
html:not(.look-aus) .th-stage.ak-liquidation { --kipp: -.5deg }
html:not(.look-aus) .th-stage.ak-liquidation.kippt { rotate: var(--kipp); animation: look-kippen .95s cubic-bezier(.3, .7, .35, 1) both }
@media (prefers-reduced-motion: reduce) { html:not(.look-aus) .th-stage.ak-liquidation { rotate: var(--kipp); animation: none } }

/* --- Handy: der Knopf der mittleren Kachel bricht sonst um («Zum Angebot» in zwei Zeilen) --- */
@media (max-width: 700px) {
  html:not(.look-aus) .pp-tile:is(.ak-sparkracher, .ak-liquidation, .ak-bestprice).size-m .pp-cta { font-size: .78rem; padding-inline: .2rem; white-space: nowrap }
}
