/* =========================================================
   SmartGreens – Kategorieseite (v2, 2026-10-16)
   Path: enfold-child/assets/css/sg-category.css
   Nur die kategoriespezifischen Teile; Banner, Raster und Karten kommen aus sg-shop.css.
   Aufbau: Banner (3:1) · Kopf (Überzeile, H1 mit Punkt, Beschreibung | Eigenschaften als Pillen)
           · Produktraster · „Pflanzenwissen" (ACF-Langtext) · Related-Slider mit den anderen Pflanzen.
   ========================================================= */

/* ---- Kopf: Text links, Eigenschaften rechts ---- */
.sg-cat-head {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: var(--sg-space-4);
    align-items: end;
    margin: 0 0 var(--sg-space-5);
}
#top .sg-cat-head h1 { margin: 2px 0 8px; color: var(--sg-green); font-size: var(--sg-h2); line-height: 1.1; }
#top .sg-cat-sub { margin: 0; max-width: 60ch; color: var(--sg-green); font-size: var(--sg-lead); line-height: 1.45; }
.sg-cat-highlights { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; list-style: none; margin: 0 0 6px; padding: 0; }
#top .sg-cat-highlights li { margin: 0; }
#top .sg-cat-highlights .sg-cat-highlight {
    display: inline-block;
    padding: 8px 14px;   /* #top-Spezifität nötig: Enfold setzt li-Padding 0 */
    border: 1.5px solid var(--sg-green);
    border-radius: var(--sg-radius-btn);
    color: var(--sg-green);
    font-size: var(--sg-meta);
    font-weight: 600;
    letter-spacing: var(--sg-tracking-caps);
    text-transform: uppercase;
    line-height: 1.2;
}

/* ---- Pflanzenwissen: Langtext am 5er-Raster (3 von 5 Spalten) ---- */
.sg-cat-about {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: var(--sg-space-3);
    margin-top: var(--sg-section);
}
.sg-cat-about__text { grid-column: 1 / span 3; }
#top .sg-cat-about h2 { margin: 2px 0 var(--sg-space-3); color: var(--sg-green); font-size: var(--sg-h2); line-height: 1.1; }
.sg-cat-about__body { color: var(--sg-text); font-size: var(--sg-body); line-height: 1.6; }
#top .sg-cat-about__body h2, #top .sg-cat-about__body h3, #top .sg-cat-about__body h4 { margin: var(--sg-space-3) 0 var(--sg-space-1); color: var(--sg-green); font-size: 1.25rem; line-height: 1.3; }
#top .sg-cat-about__body h2:first-child, #top .sg-cat-about__body h3:first-child, #top .sg-cat-about__body h4:first-child { margin-top: 0; }
#top .sg-cat-about__body p { margin: 0 0 var(--sg-space-2); }
#top .sg-cat-about__body ul, #top .sg-cat-about__body ol { margin: 0 0 var(--sg-space-2); padding-left: 22px; list-style: disc; }
#top .sg-cat-about__body ul li { list-style: disc; }
#top .sg-cat-about__body li { margin: 0 0 6px; }

/* Related-Slider nach dem Rahmen: oben kein Zusatzabstand (der Rahmen hat ihn), unten Sektionsabstand zum Footer (Erika 2026-10-16) */
#top .sg-category-page .sg-related-slider-section { margin-top: 0; margin-bottom: var(--sg-section); }

/* ---- Responsiv ---- */
@media (max-width: 989px) {
    .sg-cat-head { grid-template-columns: minmax(0, 1fr); gap: var(--sg-space-2); align-items: start; }
    .sg-cat-highlights { justify-content: flex-start; margin: 0; }
    .sg-cat-about { grid-template-columns: minmax(0, 1fr); }
    .sg-cat-about__text { grid-column: auto; }
}
@media (max-width: 767px) {
    .sg-cat-head { margin-bottom: var(--sg-space-4); }
    .sg-cat-highlight { padding: 6px 12px; }
}
