/* Produktseiten (Waldin-Gerüst, Pilot 2 Babybett 7in1). Quelle: Optimierungen/waldin/_abgenommen/project2/PDP-7in1-Main.dc.html, PDP-7in1-Ende.dc.html.
   Lädt nur auf Produktseiten. Kaufbox, Galerie, Produktliste, Film und Bewertungen bringen ihr eigenes CSS mit. */

.sg-krume { font-size: 14px; line-height: 1.4; color: var(--text-leise); padding: 20px 0 0; }
.sg-krume a { color: var(--text-leise); text-decoration: none; }
.sg-krume a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Kaufbereich */
.sg-kauf { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; padding-top: 28px; align-items: start; }
.sg-kauf-box { position: sticky; top: 24px; }
.sg-kauf-box .sg-kb { position: static; }

/* Sektionen */
.sg-sek { padding-top: 88px; }
.sg-sek > h2, .sg-stufen > h2, .sg-dabei-kopf > h2 { margin: 0 0 12px; }
.sg-sek-lead { color: var(--text-leise); max-width: 40em; margin: 0 0 28px; font-size: 18px; }
.sg-hinweis { font-size: 15px; line-height: 1.5; color: var(--text-leise); margin: 24px 0 0; max-width: 52em; }
.sg-produkt .wp-element-caption { font-size: 13px; line-height: 1.4; color: var(--welt); margin-top: 8px; text-align: left; }

/* Was im Karton ist */
.sg-dabei { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.sg-nicht { margin: 22px 0 0; font-size: 15px; line-height: 1.5; color: var(--text-leise); max-width: 40em; }
.sg-nicht + .sg-nicht { margin-top: 10px; }
.sg-nicht strong { color: var(--text); font-weight: 600; }
/* Als Sand-Band mit Produktfoto (Override dabei_bild; Fassung Bett-Erweiterung/Stoffset .p-stufen .p-dabei, SP-19): Foto quadratisch freigestellt, Icon-Kästen weiß */
.sg-dabei-bild { margin: 24px 0 0; }
.sg-dabei-bild img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; border-radius: var(--radius); display: block; background: var(--weiss); border: 1px solid var(--linie); }
.sg-dabei-band .sg-pl-ohne { background: var(--weiss); border: 1px solid var(--linie); color: var(--welt); }

/* Aufbauten (Band) */
.sg-stufen { margin-top: 88px; padding-top: 72px; padding-bottom: 72px; }   /* Paket 2b: Kurzschreibweise „72px 0“ nahm dem Band den Seitenrand (has-global-padding) */
/* Lead und Hinweis linksbündig mit der Überschrift: linker Rand der zentrierten Inhaltsbreite (vorher 0 – Lead stand links der Überschrift, SP-15) */
.sg-stufen.is-layout-constrained > .sg-sek-lead, .sg-stufen.is-layout-constrained > .sg-hinweis { margin-left: calc((100% - min(100%, var(--wp--style--global--content-size))) / 2) !important; margin-right: auto !important; }

/* Maße */
.sg-masse-raster { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.sg-flaechen { display: flex; gap: 24px; align-items: flex-end; margin: 8px 0 24px; padding: 24px; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); overflow-x: auto; }
.sg-fl { flex: none; border: 2px solid var(--welt); border-radius: 4px; background: var(--sand); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-weight: 500; font-size: 13px; line-height: 1.4; color: var(--welt); padding: 6px; }
.sg-fl.is-rund { border-radius: 50%; }   /* OWAL: rund bzw. oval (Override stellflaechen, Spalte 5 „rund“, SP-20) */
.sg-fl small { display: block; font-weight: 400; font-size: 12px; line-height: 1.3; color: var(--text-leise); }
.sg-masse-zeile { margin-top: 10px; }
.sg-beistell { background: var(--greige); border-radius: var(--radius); padding: 28px; }
.sg-beistell h3 { font-size: 24px; margin: 0 0 8px; }
.sg-beistell p { margin: 0; }
.sg-beistell-bild { margin: 16px 0; }
.sg-beistell-bild img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); display: block; background: var(--weiss); }
.sg-schritte { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.sg-schritte li { position: relative; padding-left: 44px; min-height: 32px; font-size: 16px; line-height: 1.5; }
.sg-schritte li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--welt); color: var(--auf); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; line-height: 1; }
.sg-schritte strong { display: block; font-weight: 600; font-size: 16px; line-height: 1.3; }

/* Gut zu wissen */
.sg-wissen-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.sg-wissen-bild { margin: 0; }
.sg-wissen-bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); display: block; }
.sg-wissen-bild--frei img { object-fit: contain; background: var(--weiss); border: 1px solid var(--linie); }   /* Freisteller („produkt“) nicht anschneiden (SP-21) */
.sg-akk { border-top: 1px solid var(--linie-bedienung); }
.sg-akk dl.sg-pl div { line-height: 1.55; }   /* Fassung .p-akk-in 16px/1.55: Zeilen 2,4 px höher, Akkordeon darunter ~10 px tiefer (SP-21) */
.sg-akk .wp-block-details { border-top: 0; border-bottom: 1px solid var(--linie-bedienung); padding: 0; margin: 0; }
.sg-akk .wp-block-details > summary { min-height: 56px; padding: 12px 0; font-size: 19px; line-height: 1.3; gap: 16px; }
.sg-akk .wp-block-details > summary::after { content: "+"; width: auto; height: auto; border: 0; transform: none; font-weight: 400; font-size: 26px; line-height: 1; color: var(--welt); }
.sg-akk .wp-block-details[open] > summary::after { content: "–"; transform: none; }
.sg-akk .wp-block-details > :not(summary) { max-width: 44em; font-size: 16px; line-height: 1.55; }
.sg-akk .wp-block-details > p { margin: 0 0 10px; }
.sg-akk .wp-block-details > .wp-block-buttons { margin: 4px 0 20px; }
.sg-akk .wp-block-details > .sg-pl { margin-bottom: 20px; }
.sg-akk .wp-block-details > summary + * { margin-top: 0; }
.sg-akk .wp-block-button__link { font-size: 14px; min-height: 44px; }

/* Später dazu */
.sg-zub-kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sg-zk { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.sg-zk-bild { margin: 0; }
.sg-zk-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--sand); border-radius: 0; }
.sg-zk-in { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sg-zk-in p { margin: 0; }
.sg-zk-tag { font-weight: 600; font-size: 13px; line-height: 1; color: var(--akzent-text, var(--text-leise)); }
.sg-zk h3 { font-size: 20px; margin: 0; }
.sg-zk-in > p:not([class]) { font-size: 15px; line-height: 1.45; color: var(--text-leise); }
.sg-zk-mass { font-weight: 500; font-size: 13px; line-height: 1.5; color: var(--welt); }
.sg-zk-preis { margin-top: auto !important; padding-top: 10px; font-weight: 700; font-size: 18px; line-height: 1.2; }
.sg-zk-knopf { margin-top: 10px; }
.sg-zk-knopf .wp-block-button__link { width: 100%; font-size: 14px; min-height: 44px; }

/* FAQ und Auch interessant */
.sg-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
.sg-faq > h2 { margin: 0; }
.sg-auch { margin-top: 40px; padding: 24px 0; border-top: 1px solid var(--linie); }
.sg-auch p { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center; margin: 0; font-size: 16px; line-height: 1.4; color: var(--text-leise); }
.sg-auch a { display: inline-flex; align-items: center; min-height: var(--hoehe-ziel); font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none; }
.sg-auch a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Allgemeine Waldin-Produktseiten (Pattern waldin-pdp-faq): FAQ einspaltig wie die Fassungen (PDP-*-Ende .en-faq), +/–,
   „Auch interessant“ als Pillen (Sichtprüfung SP-16). Das 7in1 behält seine eigene Fassung. */
.sg-faq.sg-wenn-faq { display: block; }
.sg-faq.sg-wenn-faq > h2 { margin: 0 0 20px; }
.sg-faq.sg-wenn-faq .sg-pl--faq { max-width: 52em; border-top: 1px solid var(--linie); }
.sg-faq.sg-wenn-faq .wp-block-details { margin: 0; padding: 0; border-bottom: 1px solid var(--linie); }
.sg-faq.sg-wenn-faq .wp-block-details > summary { min-height: 56px; padding: 12px 0; gap: 16px; font-weight: 600; font-size: 19px; line-height: 1.3; }
.sg-faq.sg-wenn-faq .wp-block-details > summary::after { content: "+"; width: auto; height: auto; border: 0; transform: none; font-weight: 400; font-size: 26px; line-height: 1; color: var(--welt); }
.sg-faq.sg-wenn-faq .wp-block-details[open] > summary::after { content: "–"; transform: none; }
.sg-faq.sg-wenn-faq .wp-block-details p { margin: 0; padding: 0 0 18px; max-width: 44em; font-size: 17px; }
.sg-faq.sg-wenn-faq + .sg-auch { margin-top: 40px; padding: 0; border-top: 0; }
.sg-faq.sg-wenn-faq + .sg-auch p { gap: 8px 14px; font-size: 15px; }
.sg-faq.sg-wenn-faq + .sg-auch a { min-height: 40px; padding: 0 14px; border: 1px solid var(--linie); border-radius: 20px; background: var(--weiss); font-size: 15px; }
.sg-faq.sg-wenn-faq + .sg-auch a:hover { background: var(--greige); text-decoration: none; }

@media (max-width: 1023.98px) {
  .sg-kauf { gap: 32px; }
  .sg-zub-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .sg-kauf { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 16px; }
  .sg-kauf-box { position: static; }
  .sg-sek { padding-top: 64px; }
  .sg-dabei { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sg-dabei-band .sg-dabei { gap: 24px; }
  .sg-dabei-bild { display: none; }
  .sg-dabei-band .sg-pl--lieferumfang li { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .sg-dabei-band .sg-pl-ohne, .sg-dabei-band .sg-pl--lieferumfang img { width: 72px; height: 56px; }
  .sg-stufen { margin-top: 64px; padding-top: 48px; padding-bottom: 48px; }
  .sg-masse-raster { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sg-flaechen { padding: 16px; gap: 16px; }
  .sg-beistell { padding: 20px; }
  .sg-wissen-raster { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sg-wissen-bild img { aspect-ratio: 4 / 3; }
  .sg-zub-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sg-zk-in { padding: 12px 14px 16px; }
  .sg-zk h3 { font-size: 18px; }
  .sg-faq { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sg-faq.sg-wenn-faq .wp-block-details > summary { font-size: 17px; }
}

/* Paket 2 (Schritt 6): weitere Waldin-Produktseiten */
.sg-wissen-raster--ohne { grid-template-columns: minmax(0, 1fr); }
.sg-wann-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }   /* Fassung .p-wann 5:7 (SP-34) */
.sg-wann-bild { margin: 0; }
.sg-wann-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
.sg-modelle-alle { margin: 24px 0 0; font-weight: 600; font-size: 16px; }
.sg-modelle-alle a { display: inline-flex; align-items: center; min-height: var(--hoehe-ziel); }
.sg-wahlband > h2 { margin: 0 0 12px; }
.sg-wende-raster { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.sg-wende-bild { margin: 0; }
.sg-wende-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
.sg-masse .sg-pl--kasten { align-self: start; }
.sg-wende-text .sg-haerten-hinweis { margin: 20px 0 0; padding: 16px 20px; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); font-size: 16px; line-height: 1.5; color: var(--text); max-width: none; }   /* Fassung Kokosmatratze .b-hinweis als Kasten (SP-34) */
@media (max-width: 767.98px) {
  .sg-wann-raster, .sg-wende-raster { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
