/* Geteilte Sektionen für Kategorie- und Produktseiten (Schritt 6): Sand-Bänder, Weitere Produkte, Schritt-Karten, Set/Wende, Formen, Laken-Gruppen.
   Quelle: Optimierungen/waldin/_abgenommen/project2/*-Main.dc.html. Lädt auf Produkt-Taxonomien und Produktseiten. */

/* Sand-Bänder der Kategorien (Umbau, Set, Wende, Teile): Abstand wie Holzton; constrained-Layout zentriert sonst Lead und Hinweis */
.sg-umbau, .sg-set, .sg-wende, .sg-teile { margin-top: 88px; padding-top: 72px; padding-bottom: 72px; }   /* Paket 2b: „72px 0“ nahm den vollbreiten Bändern den Seitenrand */
.sg-band > h2 { margin: 0 0 12px; }
/* Lead und Hinweis linksbündig mit der Überschrift (SP-15) */
.sg-band.is-layout-constrained > .sg-sek-lead, .sg-band.is-layout-constrained > .sg-hinweis { margin-left: calc((100% - min(100%, var(--wp--style--global--content-size))) / 2) !important; margin-right: auto !important; }

/* Weitere Produkte von Waldin G-06 (zwei Karten) */
.sg-weitere-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
/* Nur eine Karte (die andere Kategorie ist ausgeblendet, SORT-08): Foto links, Text rechts */
.sg-weitere-raster--1 { grid-template-columns: minmax(0, 1fr); }
.sg-weitere-raster--1 .sg-wk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
@media (max-width: 767.98px) { .sg-weitere-raster--1 .sg-wk { display: block; } }
.sg-wk { position: relative; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
.sg-wk .sg-wk-bild { margin: 0; }
.sg-wk .sg-wk-bild img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 60%; display: block; background: var(--sand); }
.sg-wk .sg-wk-bild--frei img { object-fit: contain; background: var(--weiss); }
.sg-wk-text { padding: 20px 24px 24px; font-size: 17px; }
.sg-wk-text h3 { font-size: 26px; line-height: 1.15; margin: 0 0 8px; }
.sg-wk-text h3 a { text-decoration: none; color: var(--welt); }
.sg-wk-text h3 a::after { content: ""; position: absolute; inset: 0; }
.sg-wk:hover h3 a { text-decoration: underline; text-underline-offset: 4px; }
.sg-wk-text p { margin: 0; }
.sg-wk-link { margin-top: 6px !important; }
.sg-wk-link a { display: inline-flex; align-items: center; min-height: var(--hoehe-ziel); font-weight: 600; font-size: 16px; line-height: 1; position: relative; z-index: 1; }
.sg-zeile { font-size: 14px; line-height: 1.5; color: var(--text-leise); margin: 16px 0 0; }

/* Beistellbetten: Passt es an dein Bett? (drei Schritt-Karten) */
.sg-pruef-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sg-schritt-karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.sg-schritt-karte svg { width: 100%; height: auto; display: block; background: var(--sand); border-radius: var(--radius); }
.sg-schritt-karte h3 { font-size: 24px; margin: 0; }
.sg-schritt-karte p { margin: 0; font-size: 17px; }
.sg-schritt-n { font-weight: 600; font-size: 14px !important; line-height: 1.3; color: var(--akzent-text, var(--text-leise)); }
.sg-schritt-mass { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin-top: auto !important; padding-top: 14px; border-top: 1px solid var(--linie); font-size: 15px !important; line-height: 1.45; color: var(--text-leise); }
.sg-schritt-mass b { font-weight: 500; color: var(--welt); white-space: nowrap; }

/* Band mit Foto links und Text rechts (Stubenwagen Komplettset, Matratzen Wende) */
.sg-set-raster, .sg-wende-raster { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.sg-set-bild, .sg-wende-bild { margin: 0; }
.sg-set-bild img, .sg-wende-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 45%; border-radius: var(--radius); display: block; }
.sg-set-text h2, .sg-wende-text h2 { margin: 0 0 12px; }
.sg-set-lead { font-size: 18px; max-width: 30em; margin: 0; }
ul.sg-dabei { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--linie-bedienung); }
ul.sg-dabei > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--linie-bedienung); font-size: 17px; color: var(--welt); }
ul.sg-dabei > li span { color: var(--text); }
ul.sg-dabei > li small { display: block; font-size: 14px; line-height: 1.4; color: var(--text-leise); margin-top: 2px; }
ul.sg-dabei > li svg { margin-top: 4px; }
ul.sg-dabei > li.ist-nicht, ul.sg-dabei > li.ist-nicht span { color: var(--text-leise); }

/* Matratzen: Formen und Härten */
.sg-formen-raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sg-form { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
.sg-form .sg-form-bild { margin: 0; }
.sg-form .sg-form-bild img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--weiss); }
.sg-form-text { padding: 16px 18px 20px; }
.sg-form-text h3 { font-size: 20px; line-height: 1.2; margin: 0 0 4px; }
.sg-form-form { font-size: 14px; line-height: 1.4; color: var(--text-leise); margin: 0; }
.sg-form-mass { font-weight: 500; font-size: 15px; line-height: 1.5; color: var(--welt); margin: 8px 0 0; }
.sg-seiten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.sg-seite { background: var(--weiss); border-radius: var(--radius); padding: 20px 22px; }
.sg-seite p { margin: 0; font-size: 16px; line-height: 1.5; }
.sg-seite-grad { font-weight: 700; font-size: 34px !important; line-height: 1.1; color: var(--welt); margin-bottom: 6px !important; }
.sg-seite-name { font-weight: 600; font-size: 15px !important; line-height: 1.3; color: var(--akzent-text, var(--text-leise)); margin-bottom: 8px !important; }
.sg-wende .sg-hinweis { margin-top: 24px; }

/* Laken: Gruppen und Bettwäsche-Band innerhalb des Gruppenfilters (Vollbreite per Schatten, kein alignfull möglich) */
.sg-bettwahl .sg-gf--karten { margin-top: 8px; }
.sg-gruppe { padding-top: 72px; }
.sg-gruppe > h2 { margin: 0 0 12px; }
.sg-bambus { margin-top: 88px; padding: 72px 0; background: var(--sand); box-shadow: 0 0 0 100vmax var(--sand); clip-path: inset(0 -100vmax); }
.sg-bambus-raster { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.sg-bambus .sg-bambus-bild { margin: 0; }
.sg-bambus .sg-bambus-bild img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); display: block; background: var(--weiss); }
.sg-bambus-kachel { max-width: 420px; }
.sg-bambus-kachel .sg-raster { grid-template-columns: minmax(0, 1fr); }


/* Raster G-02 (sogo/produktraster) */
.sg-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.sg-raster--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sg-raster--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sg-raster > li { margin: 0; padding: 0; }
.sg-raster > li > * { height: 100%; }


@media (max-width: 767.98px) {
  .sg-raster, .sg-raster--2, .sg-raster--4 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sg-umbau, .sg-set, .sg-wende, .sg-teile { margin-top: 64px; padding-top: 48px; padding-bottom: 48px; }
  .sg-weitere-raster, .sg-pruef-raster, .sg-set-raster, .sg-wende-raster, .sg-seiten, .sg-bambus-raster { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sg-schritt-karte { padding: 18px; }
  .sg-formen-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sg-form-text { padding: 12px 14px 16px; }
  .sg-form-text h3 { font-size: 18px; }
  .sg-gruppe { padding-top: 56px; }
  .sg-bambus { margin-top: 64px; padding: 48px 0; }
  .sg-bambus-kachel { max-width: none; }
}

/* Geprüfte Sicherheit (WA-16): Liste Funktion | Norm, Zeile, PDF-Knopf */
.sg-sicher-in { max-width: 760px; }
.sg-sicher-in .sg-zeile { margin-top: 12px; }
.sg-sicher-in .wp-block-buttons { margin-top: 20px; }
@media (max-width: 767.98px) {
  .sg-sicher dl.sg-pl dd { white-space: normal; }
}
