From 3cebb9c3cd8c0ac18b82dbaa56612d5a3023c04f Mon Sep 17 00:00:00 2001 From: qcigano Date: Sun, 2 Aug 2026 21:08:45 +0200 Subject: [PATCH] Fix: alter Preis bei Rabatt war auf der Produktseite nicht durchgestrichen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit .price-old hatte nur in ProductCard.astro (Produktkarten im Shop-Grid) eine CSS-Regel — auf der Produktdetailseite fehlte sie sitesweit komplett, der alte Preis stand deshalb dort einfach nur normal daneben statt durchgestrichen zu sein. Jetzt global definiert, gilt überall. Verifiziert per Puppeteer: text-decoration ist jetzt line-through. --- src/styles/global.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/styles/global.css b/src/styles/global.css index 04516b4..c0d4c68 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -803,6 +803,9 @@ a:focus-visible, button:focus-visible { .badge-row { display: flex; gap: 0.5rem; margin-bottom: 0.8rem; flex-wrap: wrap; } .price-row-detail { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 0.2rem; flex-wrap: wrap; } .price-detail { font-size: 1.8rem; font-weight: 700; color: var(--c-accent); } +/* Durchgestrichener alter Preis bei Rabatt — global, damit das auch auf der Produktseite gilt + (ProductCard.astro hatte die gleiche Regel bereits scoped, hier fehlte sie sitesweit). */ +.price-old { color: var(--c-text-muted); text-decoration: line-through; font-size: 1.1rem; } .badge-rabatt { background: #ff5f7e; color: #fff; border-color: #ff5f7e; } .mengenrabatt-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5em; } .mengenrabatt-list li {