/*
 * Eine Produktkarte für „Aktuell verfügbar“ und „Zuletzt angesehen“ (component/ks-ware/karte.html.twig,
 * Lukas 04.12.2026, Entwurf Variante B). Feste Farben statt --ks-…, weil „Zuletzt angesehen“ auch auf der
 * Produktseite außerhalb von .ks-seite steht. Dunkelmodus: python tools/dunkelmodus/erzeuge.py
 * (Bildfläche hell über teile/80-bildflaechen.css).
 */
.ks-ware {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    background: #fff;
    border: 1px solid #E0E4E8;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.ks-ware:hover { border-color: #0E7DAF; box-shadow: 0 4px 14px rgba(31, 42, 51, .08); }
.ks-ware-link { flex: 1; display: flex; flex-direction: column; color: #2E2E2E; text-decoration: none; }
.ks-ware-link:hover { color: #2E2E2E; text-decoration: none; }
.ks-ware-link:focus-visible { outline: 2px solid #0E7DAF; outline-offset: -2px; }
/* Bild auf heller Fläche; weiße Bildhintergründe verschmelzen damit (multiply) */
.ks-ware-bild { display: flex; align-items: center; justify-content: center; height: 150px; padding: 14px; background: #F4F7F9; }
.ks-ware-bild img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ks-ware-text { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 0; }
.ks-ware-marke { font-size: 12px; line-height: 1.3; color: #6B7480; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ks-ware-name {
    font-size: 14px; font-weight: 600; line-height: 1.35; color: #2E2E2E; min-height: calc(2 * 1.35em);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; hyphens: auto;
}
.ks-ware-preis { margin-top: auto; padding-top: 6px; font-size: 13px; color: #6B7480; }
.ks-ware-preis .ks-num { font-size: 18px; font-weight: 600; color: #0E7DAF; }
/* Steuerhinweis: leise, eine Zeile Platz, als Link zur Versandkosten-Seite */
.ks-ware-steuer {
    display: block; margin: 2px 14px 0; padding: 0; font: inherit; font-size: 11px; line-height: 1.35; text-align: left;
    color: #6B7480; background: none; border: 0;
}
button.ks-ware-steuer { cursor: pointer; text-decoration: underline; text-decoration-color: #C9D2D9; text-underline-offset: 2px; }
button.ks-ware-steuer:hover { color: #2E2E2E; }
/* Shopwares Kaufaktion: beide Knöpfe 44 px, Text mittig (Link „Details“ und Button „In den Warenkorb“) */
.ks-ware .product-action { margin: 0; padding: 10px 14px 14px; }
.ks-ware .product-action .btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 6px 8px; font-size: 13px; line-height: 1.3; text-align: center; border-radius: 6px; }
/* Merkzettel: runder Knopf oben rechts im Bild. Theme-Stil des Herzens je nach Umgebung verschieden – hier fest.
   Das ::before des Core vergrößert die Klickfläche, Bezug ist der Knopf selbst. */
.ks-ware-merken { position: absolute; top: 8px; right: 8px; z-index: 2; line-height: 0; }
.ks-ware-merken .product-wishlist { margin: 0; }
.ks-ware-merken .product-wishlist-action-circle {
    position: relative !important; inset: auto !important; display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; min-width: 32px; min-height: 32px; padding: 0;
    color: #6B7480; background: rgba(255, 255, 255, .92); border: 1px solid #E0E4E8; border-radius: 50%;
}
.ks-ware-merken .product-wishlist-action-circle:hover { color: #0E7DAF; border-color: #0E7DAF; }
.ks-ware-merken .product-wishlist-action-circle::before { inset: -4px; width: auto; height: auto; }
.ks-ware-merken .icon, .ks-ware-merken .icon svg { width: 16px; height: 16px; }
@media (max-width: 575.98px) {
    .ks-ware-bild { height: 112px; padding: 10px; }
    .ks-ware-text { padding: 10px 10px 0; }
    .ks-ware-name { font-size: 13px; }
    .ks-ware-preis .ks-num { font-size: 16px; }
    .ks-ware-steuer { margin: 2px 10px 0; }
    .ks-ware .product-action { padding: 8px 10px 10px; }
    .ks-ware .product-action .btn { padding: 6px 4px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .ks-ware { transition: none; } }
