/* Gestaltung Shop (A-130, Pruefbericht 01.12.2026). Farben bleiben: Blau #0067b8 fuer Namen,
   Links und Knoepfe, dunkles Anthrazit nur fuer den Preis, damit er sich vom Namen abhebt. */

/* Startseite: Hinweiszeile */
.stoffe-start-oben { padding: 0 20px; }
.stoffe-start-vorteile {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px;
    margin: 4px 0 20px; padding: 12px 16px; background: #f2f6fa; border-radius: 8px;
    color: #222; font-size: 1rem;
}
.stoffe-haken { color: #0067b8; font-weight: 700; }

/* Startseite: drei Einstiege */
.stoffe-start-wege { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 8px; }
.stoffe-start-weg {
    display: block; padding: 18px 20px; border: 1px solid #d6e0ea; border-radius: 10px;
    background: #f7f9fc; text-decoration: none; color: #222;
}
.stoffe-start-weg:hover, .stoffe-start-weg:focus-visible { border-color: #0067b8; background: #eef4fa; }
.stoffe-start-weg-titel { display: block; font-size: 1.25rem; font-weight: 600; color: #0067b8; margin-bottom: 4px; }
.stoffe-start-weg-text { display: block; color: #333; }

/* Startseite: Neuheiten als Kacheln */
.stoffe-start-neu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 16px; margin: 0; }
.stoffe-start-link { display: block; text-decoration: none; }
.stoffe-start-bild { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; }
.stoffe-start-name { display: block; margin: 8px 0 2px; color: #0067b8; font-weight: 600; line-height: 1.3; }
.stoffe-start-preis, .oe_product .product_price .fw-bold, .oe_product .product_price .fw-bold .oe_currency_value {
    color: #222 !important; font-weight: 700; font-size: 1.1rem;
}
.stoffe-preis-einheit { color: #555; font-weight: 400; font-size: .95rem; margin-left: 2px; }

@media (max-width: 991.98px) {
    .stoffe-start-wege { grid-template-columns: 1fr; gap: 10px; }
    .stoffe-start-weg { padding: 12px 16px; }
    .stoffe-start-neu { grid-template-columns: repeat(2, 1fr); }
}

/* Artikelseite: Menge beim Gesamtpreis */
.stoffe-gesamt-menge { font-size: 1rem; font-weight: 400; color: #555; margin-left: 8px; white-space: nowrap; }

/* Artikelseite: groesserer Kaufknopf und Hinweise darunter */
#add_to_cart { padding: .7rem 1.8rem; font-size: 1.1rem; }
.stoffe-kauf-hinweise {
    margin-top: 4px; padding: 10px 14px; background: #f2f6fa; border-radius: 8px;
    color: #222; line-height: 1.8;
}

/* Handy: Kopfbereich etwa halb so hoch. Die Hinweiszeile "Lagerverkauf" steht auch im Fuss. */
@media (max-width: 767.98px) {
    #top-bar-top { display: none !important; }
    .header-logo-main img { max-height: 46px !important; width: auto !important; }
    .header-logo-col { padding-top: 4px !important; padding-bottom: 4px !important; }
    /* Handy: Hinweise und Einstiege kompakt, damit die ersten Stoffe ohne langes Scrollen kommen */
    .stoffe-start-vorteile { gap: 2px 14px; padding: 8px 12px; font-size: .85rem; margin-bottom: 12px; }
    .stoffe-start-weg { padding: 10px 14px; }
    .stoffe-start-weg-titel { font-size: 1.05rem; margin-bottom: 0; }
    .stoffe-start-weg-text { display: none; }
}

/* Artikelseite: Mindestmenge und Schritte sichtbar unter dem Mengenfeld */
.stoffe-mindestmenge { display: block; width: 100%; color: #555; font-size: .9rem; margin-top: 2px; }

/* 1.4.0 (Gesamtbericht 01.12.2026) */
/* Kopf am PC flacher: Logo 64 statt 104 Pixel, Menue 48 statt 60 Pixel (F4) */
@media (min-width: 992px) {
    .header-logo-main img { max-height: 64px; width: auto; }
    .header-row { padding-top: 6px; padding-bottom: 6px; }
    .header-logo-col { padding-bottom: 0; }
    .nav-main .main-navigation-link { height: 48px; padding-top: 0; padding-bottom: 0; display: flex; align-items: center; }
    /* Startseite: Titelbild flacher, damit Einstiege und Neuheiten im ersten Blick stehen (F5) */
    #custom-slider, #custom-slider .carousel-inner, #custom-slider .carousel-item { max-height: 320px; }
    #custom-slider img { max-height: 320px; object-fit: cover; }
    .cms-block-image-slider .cms-block-container { padding-top: 8px; padding-bottom: 8px; }
}

/* Kachel: Material und Breite immer sichtbar (F9) */
.stoffe-kachel-kurz {
    display: block; color: #444; font-size: .85rem; line-height: 1.3; margin: 2px 0 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Artikelseite: Kasten Eigenschaften (F10); alte Zeile ausblenden, wenn der Kasten da ist */
#product_extra_details:has(~ .stoffe-eigenschaften) { display: none; }
.stoffe-eigenschaften { background: #f6f7f9; border: 1px solid #e2e5ea; border-radius: 6px; padding: 12px 16px; margin: 8px 0 12px; }
.stoffe-eigenschaften-titel { font-size: 1rem; font-weight: 600; margin: 0 0 6px; color: #222; }
.stoffe-eigenschaften li { padding: 2px 0; }
.stoffe-eig-label { font-weight: 600; color: #333; }

/* Startseite: Bestseller-Reihe */
.stoffe-start-best { margin: 32px 0 8px; }
.stoffe-start-best-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.stoffe-start-best-titel { font-size: 1.6rem; font-weight: 600; color: #0067b8; margin: 0; }
.stoffe-start-best-alle { font-weight: 600; }

/* Abzeichen Neu auf der Kachel (30 Tage), ruhig, kein Rot */
.stoffe-neu { display: inline-block; background: #e8f0f8; color: #0b3d66; font-size: .75rem; font-weight: 600;
    padding: 1px 8px; border-radius: 10px; margin: 2px 0; }

/* Pflege steht jetzt fuer alle im Kasten Eigenschaften; den alten Gewerbe-Block nicht doppelt zeigen */
#product_detail:has(.stoffe-eig-pflege) #stoffe_care, .o_wsale_product_page:has(.stoffe-eig-pflege) #stoffe_care { display: none; }

/* Infokarte am Handy per Knopf "i" (gestaltung.js, nur Geraete ohne Maus) */
.stoffe-info-halter { position: relative; }
.stoffe-info-knopf {
    position: absolute; top: 6px; right: 6px; z-index: 3; width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid #666; background: rgba(255, 255, 255, .92); color: #123d65; font: 700 16px/30px serif;
    font-style: italic; padding: 0; text-align: center;
}
.oe_product_cart.stoffe-info-offen .stoffe-kachel-info { transform: translateY(0); visibility: visible; }

/* Block "Spezifikationen" unten doppelt zum Kasten Eigenschaften (Edis 02.12.2026) */
body:has(.stoffe-eigenschaften) #product_full_spec{display:none}

/* Vergleichen ganz aus (Edis 02.12.2026): Kachel-Knopf, Artikelseite, Vergleichsleiste */
.o_add_compare,.o_add_compare_dyn,[data-action="o_comparelist"],.o_product_feature_panel,.o_wsale_compare_panel{display:none!important}

/* "ab" vor reduziertem Kachelpreis (1.4.6) */
.stoffe-preis-ab{color:#c0392b;font-weight:700;margin-right:.15rem}

/* Ersparnis in Prozent auf der Kachel (1.4.7), Weiss auf Preisrot: Kontrast 5,4:1 */
.stoffe-rabatt{display:inline-block;background:#c0392b;color:#fff;font-weight:700;font-size:.8rem;line-height:1.2;padding:.1rem .35rem;border-radius:.25rem;margin-left:0;white-space:nowrap}

/* Kachelpreis (Edis 02.12.2026 12:51): Streichpreis gleich gross wie der neue Preis und mit Abstand,
   Prozent-Schild in eigener Zeile linksbuendig unter dem Preis */
.oe_product .product_price > del,
.oe_product .product_price > del .oe_currency_value { font-size: 1.1rem !important; }
.oe_product .product_price > del { margin-left: .75rem !important; }
.oe_product .product_price { flex-wrap: wrap; }
.stoffe-rabatt-zeile { flex-basis: 100%; width: 100%; margin-top: .3rem; text-align: left; }

/* Artikelseite bei Sparpreis wie die Kachel (1.5.0): Streichpreis gleich gross, Abstand, Schild darunter */
.stoffe_unit_price .oe_default_price:not(.d-none),
.stoffe_unit_price .oe_default_price .oe_currency_value,
.stoffe_unit_price del.oe_compare_list_price,
.stoffe_unit_price del.oe_compare_list_price .oe_currency_value { font-size: 1em !important; }
.stoffe_unit_price .oe_default_price, .stoffe_unit_price del.oe_compare_list_price { margin-left: .75rem !important; }
.stoffe-rabatt-artikel { margin: -.25rem 0 .5rem; }
/* Warenkorb: "Sie sparen" in Preisrot */
.stoffe-sparen td, .stoffe-sparen td *, .o_cart_total .stoffe-sparen td, .o_cart_total .stoffe-sparen .oe_currency_value { color: #c0392b !important; font-weight: 700; }
