/* Markenseiten (Hub-Kategorien, Pilot 3 Waldin). Quelle: Optimierungen/waldin/_abgenommen/project2/Markenseite-Main.dc.html (.m-*).
   Lädt zusätzlich zu kategorie.css nur auf Kategorien ohne Eltern. Slider und Look bringen ihr eigenes CSS mit. */

/* Hero */
.sg-mhero { margin-top: 20px; padding-block: 56px; }
.sg-mhero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.sg-mhero h1 { font-size: 64px; line-height: 1.05; letter-spacing: -1px; margin: 0 0 14px; }
.sg-mhero-satz { font-size: 24px; line-height: 1.35; color: var(--welt); max-width: 18em; margin: 0 0 12px; }
.sg-mhero-rolle { font-size: 17px; line-height: 1.5; color: var(--text); max-width: 30em; margin: 0 0 28px; }
.sg-mhero-knoepfe { gap: 12px; }
.sg-mhero-knoepfe .wp-block-button__link { min-height: 52px; padding: 0 24px; display: inline-flex; align-items: center; font-weight: 700; font-size: 17px; line-height: 1; border-radius: var(--radius); }
.sg-mhero-knoepfe .is-style-outline .wp-block-button__link { background: transparent; color: var(--welt); border: 1px solid var(--welt); }
.sg-mhero-bild { margin: 0; }
.sg-mhero-bild .wp-element-caption { text-align: center; font-size: 14px; }
.sg-mhero-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }

/* Kategorie-Kacheln G-06 */
.sg-kk-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
/* Fünf Kacheln (eine Kategorie ausgeblendet, SORT-08): oben zwei breite, unten drei, ohne Lücke */
.sg-kk-raster--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sg-kk-raster--5 > .sg-kk { grid-column: span 2; }
.sg-kk-raster--5 > .sg-kk:nth-child(-n+2) { grid-column: span 3; }
.sg-kk-raster--5 > .sg-kk:nth-child(-n+2) .sg-kk-bild img { aspect-ratio: 2 / 1; }
.sg-kk { position: relative; display: flex; flex-direction: column; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
.sg-kk .sg-kk-bild { margin: 0; }
.sg-kk .sg-kk-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--sand); }
.sg-kk-text { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px 20px; border-top: 1px solid var(--linie); }
.sg-kk h3 { font-size: 22px; line-height: 1.15; margin: 0; }
.sg-kk h3 a { text-decoration: none; color: var(--welt); }
.sg-kk h3 a::after { content: ''; position: absolute; inset: 0; }
.sg-kk:hover h3 a { text-decoration: underline; text-underline-offset: 4px; }
.sg-kk-em { font-size: 15px; line-height: 1.45; color: var(--text-leise); margin: 0; }
.sg-kk-zeile { gap: 6px; margin-top: 6px; font-size: 14px; line-height: 1.4; }
.sg-kk-zahl { color: var(--text-leise); margin: 0; }

/* Band „So wächst das Bett mit“ (Film-Block) */
.sg-wachsen { margin-top: 88px; }
.sg-wachsen > h2 { margin: 0 0 12px; }
.sg-wachsen > .sg-sek-lead, .sg-wachsen > .sg-hinweis { margin-left: calc((100% - min(100%, var(--wp--style--global--content-size))) / 2) !important; margin-right: auto !important; }   /* constrained-Layout zentriert sonst Kinder mit max-width */

/* Shop the Look: der Block zentriert seinen Kopf selbst, die Leiste läuft bis zum rechten Rand */
.sg-zimmer { padding-top: 88px; }

/* Wer ist Waldin? G-07 */
.sg-wer-raster { display: grid; grid-template-columns: .94fr 1.06fr; gap: 72px; align-items: stretch; }
.sg-wer-bild { margin: 0; display: flex; flex-direction: column; }
.sg-wer-bild img { flex: 1; width: 100%; min-height: 560px; object-fit: cover; border-radius: var(--radius); display: block; background: var(--sand); }
.sg-wer-text { align-self: center; }
.sg-wer-text h2 { margin: 0; }
.sg-wer-lead { max-width: 56ch; margin: 20px 0 0; font-size: 20px; line-height: 1.5; color: var(--welt); }
.sg-wer-text h3 { font-size: 22px; line-height: 1.2; margin: 32px 0 0; }
.sg-wer-text h3 + p { margin: 8px 0 0; color: var(--text-leise); max-width: 56ch; }
.sg-haendler { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--linie-bedienung); }
.sg-haendler h3 { margin-top: 0; }
.sg-haendler p { margin: 8px 0 0; max-width: 56ch; }
.sg-haendler-link a { display: inline-flex; align-items: center; min-height: var(--hoehe-ziel); font-weight: 600; font-size: 15px; line-height: 1; text-decoration: underline; text-underline-offset: 4px; }
.sg-haendler-klein { font-size: 13px; line-height: 1.4; color: var(--text-leise); margin-top: 12px; }

@media (max-width: 767.98px) {
  .sg-mhero { padding-block: 32px 36px; }
  .sg-mhero-in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sg-mhero h1 { font-size: 40px; }
  .sg-mhero-satz { font-size: 20px; }
  .sg-mhero-knoepfe { flex-direction: column; }
  .sg-mhero-knoepfe .wp-block-button, .sg-mhero-knoepfe .wp-block-button__link { width: 100%; justify-content: center; }
  .sg-kk-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sg-kk-raster--5 > .sg-kk, .sg-kk-raster--5 > .sg-kk:nth-child(-n+2) { grid-column: auto; }
  .sg-kk-raster--5 > .sg-kk:nth-child(-n+2) .sg-kk-bild img { aspect-ratio: 4 / 3; }
  .sg-kk-raster--5 > .sg-kk:last-child { grid-column: 1 / -1; }
  .sg-kk-raster--5 > .sg-kk:last-child .sg-kk-bild img { aspect-ratio: 2 / 1; }
  .sg-kk-text { padding: 12px 14px 14px; }
  .sg-kk h3 { font-size: 18px; }
  .sg-kk-em { font-size: 14px; }
  .sg-wachsen { margin-top: 64px; }
  .sg-zimmer { padding-top: 64px; }
  .sg-wer-raster { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sg-wer-text { grid-row: 1; }
  .sg-wer-bild img { min-height: 320px; aspect-ratio: 4 / 3; }
}

/* Waldin-Markenseite: FAQ einspaltig wie die Fassung (Markenseite-Ende .en-faq: Überschrift über der Liste, Liste max. 52em, Fragen 19 px fett, +/–; SP-34) */
.sg-faq.sg-faq--marke { display: block; }
.sg-faq--marke > h2 { margin: 0 0 20px; }
.sg-faq--marke .sg-faq-liste { max-width: 52em; border-top: 1px solid var(--linie-bedienung); }
.sg-faq--marke .wp-block-details { border-bottom: 1px solid var(--linie-bedienung); }
.sg-faq--marke .wp-block-details > summary { min-height: 56px; padding: 12px 0; font-weight: 600; font-size: 19px; line-height: 1.3; }
.sg-faq--marke .wp-block-details > summary::after { font-size: 26px; flex: none; }
.sg-faq--marke .wp-block-details p { margin: 0; padding: 0 0 18px; max-width: 44em; font-size: 17px; color: var(--text); }
@media (max-width: 767.98px) {
  .sg-faq--marke .wp-block-details > summary { font-size: 17px; }
}

/* DES-47: Kategoriename im Bild wie bei den BedDog-Szenen (Verlauf unten, weiße Schrift, Pfeil); die Anordnung der Kacheln bleibt */
.sg-kk { border: 0; }
.sg-kk-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 72px 24px 20px; border-top: 0; background: linear-gradient(to top, rgb(28 29 31 / 72%), rgb(28 29 31 / 0%)); pointer-events: none; }
.sg-kk h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 23px; line-height: 1.2; color: #fff; }
.sg-kk h3 a { color: #fff; pointer-events: auto; }
.sg-kk h3::after { content: ""; width: 22px; height: 22px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 767.98px) {
  .sg-kk-text { padding: 40px 12px 10px; }
  .sg-kk h3 { font-size: 17px; }
  .sg-kk h3::after { display: none; }
}
