/* Exzellente Sanierungen: Zusatzstile fuer sanierung.html, malen-tapezieren.html, boeden.html.
   Baut auf main.css auf (Bausteine .sk, .umfang, .stufen, .stimme-block, .bildreihe, .baender).
   Nur Schriftstufen und Farben aus main.css/tokens.css. Aufbau:
   1 Varianten der Bausteine  2 .eh Warum aus einer Hand  3 .bsp Beispiel  4 .muster Mustertapete
   5 .bw Boden-Entscheidungshilfe  6 Tablet  7 Handy  8 Bewegung */

/* ===== 1 Varianten der Bausteine ===== */

/* Seitenkopf gespiegelt: Foto links, Textfeld rechts */
.sk--links { grid-template-columns: 5fr 7fr; }
.sk--links .sk-bild { order: -1; }

/* Bildausschnitte */
.sk-bild--staender img { object-position: 38% 55%; }
.sk-bild--fassade img { object-position: 28% 62%; }
.sk-bild--laminat img { object-position: 42% 70%; }
.umfang-bild--quer img { object-position: 22% 40%; }

/* Hinweis unter der Liste */
.umfang-hinweis { grid-column: 7 / span 6; font-size: var(--step-small); margin-top: calc(-1 * clamp(16px, 2vw, 32px)); }

/* Umfang gespiegelt (boeden): Liste links, zwei Fotos rechts */
.umfang--rechts .umfang-liste { grid-column: 1 / span 6; grid-row: 2; }
.umfang-bilder { grid-column: 8 / span 5; grid-row: 2; }
.umfang-bilder .umfang-bild { grid-column: auto; }
.umfang-detail { width: 62%; margin: 28px 0 0 auto; }
.umfang-detail picture { overflow: clip; aspect-ratio: 3 / 2; }
.umfang-detail picture, .umfang-detail img { width: 100%; height: 100%; }
.umfang-detail img { object-fit: cover; object-position: 100% 45%; transform: scale(1.6); transform-origin: 96% 46%; }
.umfang-detail figcaption { margin-top: 10px; font-size: var(--step-small); }

/* Umfang ohne Foto: Liste in drei Spalten ueber die volle Breite */
.umfang--zwei .umfang-liste { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) var(--gutter); }
.umfang--zwei .umfang-liste li + li { margin-top: 0; }

/* Kundenstimme in der Kopfspalte der Bildreihe */
.br-stimme { margin: 28px 0 0; padding: clamp(20px, 2vw, 28px); background: var(--green-pale); }
.br-stimme blockquote p { font-size: var(--step-lead); font-weight: 500; line-height: 1.32; }
.br-stimme figcaption { margin-top: 12px; font-size: var(--step-small); }

/* Kundenstimme mit Kennzahl (malen-tapezieren) */
.sb-zahl { font-size: var(--step-head); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--on-dark); max-width: 7em; }
.sb-fakt .sb-wer { margin-top: 18px; }
.sb-zitat--zwei { flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.sb-zitat .sb-rest { margin-top: 18px; font-size: var(--step-lead); font-weight: 500; line-height: 1.35; letter-spacing: 0; max-width: 34ch; }

/* ===== 2 .eh Warum aus einer Hand: dunkles Feld, das Team als grosse Zeilen ===== */
.eh {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; align-items: end;
  margin-top: var(--section); padding: clamp(56px, 6vw, 96px) var(--m);
  background: var(--anthracite); color: var(--on-dark);
}
.eh :focus-visible { outline-color: var(--green); }
.eh-text { grid-column: 1 / span 5; align-self: start; }
.eh-text h2 { font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; }
.eh-lead { margin-top: 24px; font-size: var(--step-lead); line-height: 1.38; max-width: 30ch; }
.eh-text p + p { margin-top: 16px; max-width: 42ch; }
.eh-team { grid-column: 7 / span 6; font-size: var(--step-feld); font-weight: 700; line-height: 1; letter-spacing: -0.035em; }
.eh-team li + li { margin-top: 0.08em; }
.eh-team a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; transition: color var(--t-hover) ease, transform 420ms var(--ease-expo);
}
.eh-team a:hover { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }
.eh-eins { color: var(--green); }
@media (hover: hover) and (pointer: fine) { .eh-team a:hover { color: var(--green); transform: translateX(10px); } }

/* ===== 3 .bsp Beispiel: Auftrag links, Zitat rechts (auf .stimme-block) ===== */
.bsp-titel.bsp-titel { font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; max-width: 8em; }
.bsp-liste { margin-top: 14px; font-size: var(--step-lead); line-height: 1.3; }
.bsp-liste li { position: relative; padding-left: 1.2em; }
.bsp-liste li + li { margin-top: 6px; }
.bsp-liste li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.55em; height: 0.55em; background: var(--green); }
.bsp-zitat { margin: 0; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.bsp-zitat figcaption { margin-top: 20px; max-width: 46ch; }

/* ===== 4 .muster Mustertapete: Foto bis an den linken Rand, Text rechts ===== */
.muster {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  margin-top: var(--section); padding: var(--m);
  background: var(--anthracite); color: var(--on-dark);
}
.muster-foto { grid-column: 1 / span 7; position: relative; margin: 0; overflow: clip; min-height: clamp(460px, 46vw, 680px); background: var(--anthracite-2); }
.muster-foto picture { position: absolute; inset: 0; }
.muster-foto picture, .muster-foto img { width: 100%; height: 100%; }
.muster-foto img { object-fit: cover; object-position: 40% 50%; }
.muster-foto figcaption { position: absolute; left: 0; top: 0; padding: 8px 14px; background: var(--paper); color: var(--anthracite); font-size: var(--step-small); }
.muster-text { grid-column: 8 / span 5; align-self: end; padding: clamp(32px, 4vw, 64px) 0 clamp(8px, 1vw, 16px); }
.muster-text h2 { font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; }
.muster-lead { margin-top: 24px; font-size: var(--step-lead); line-height: 1.38; max-width: 30ch; }
.muster-text p + p { margin-top: 16px; max-width: 40ch; }

/* ===== 5 .bw Boden-Entscheidungshilfe ===== */
.bw {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  margin-top: var(--section); padding: clamp(56px, 6vw, 96px) var(--m);
  background: var(--anthracite); color: var(--on-dark);
}
.bw :focus-visible { outline-color: var(--green); }
.bw-kopf { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: end; row-gap: 20px; }
.bw-kopf h2 { grid-column: 1 / span 8; font-size: var(--step-feld); line-height: 0.98; letter-spacing: -0.035em; max-width: 10em; }
.bw-lead { grid-column: 9 / span 4; font-size: var(--step-lead); line-height: 1.38; max-width: 30ch; padding-bottom: 0.3em; }

.bw-wahl { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; row-gap: 14px; margin-top: clamp(40px, 4vw, 64px); }
.bw-frage { grid-column: 1 / span 3; font-size: var(--step-lead); font-weight: 700; line-height: 1.2; }
.bw-knoepfe { grid-column: 4 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.bw-knoepfe button {
  min-height: 52px; padding: 0 22px;
  font: 700 var(--step-body)/1 var(--font); border: 0; border-radius: 0; cursor: pointer;
  background: var(--anthracite-2); color: var(--on-dark);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.bw-knoepfe button[aria-pressed="true"] { background: var(--green); color: var(--anthracite); }
.bw-knoepfe button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .bw-knoepfe button[aria-pressed="false"]:hover { background: var(--muted); } }
.bw-empfehlung { grid-column: 4 / -1; min-height: 2.8em; font-size: var(--step-lead); line-height: 1.38; max-width: 52ch; }
.bw:not(.is-gewaehlt) .bw-empfehlung { color: var(--muted-on-dark); }
.bw.is-gewaehlt .bw-empfehlung { color: var(--on-dark); }

.bw { --bwo: clamp(14px, 1.8vw, 28px); }
.bw-spalten { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(2 * var(--bwo) + 16px); margin-top: clamp(48px, 5vw, 72px); align-items: stretch; }
.bw-spalte {
  position: relative; display: flex; flex-direction: column;
  min-height: clamp(360px, 30vw, 440px); padding: 8px 0 4px;
  outline: 0 solid var(--green); outline-offset: 0;
  background: transparent; color: var(--on-dark);
  transition: background-color 420ms var(--ease-out), outline-width 420ms var(--ease-out), color 420ms var(--ease-out), transform 520ms var(--ease-expo);
}
.bw-spalte h3 { font-size: var(--step-feld); line-height: 1; letter-spacing: -0.035em; }
.bw-satz { margin-top: 18px; font-size: var(--step-lead); line-height: 1.3; font-weight: 500; max-width: 22ch; }
.bw-punkte { margin-top: 18px; }
.bw-punkte li { position: relative; padding-left: 1.3em; max-width: 34ch; }
.bw-punkte li + li { margin-top: 8px; }
.bw-punkte li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.6em; height: 0.6em; background: var(--green); transition: background-color 420ms var(--ease-out); }
.bw-gut { margin-top: auto; padding-top: 28px; }
.bw-gut strong { display: block; font-size: var(--step-small); }
.bw-marke { display: none; }

.bw-spalte.is-passt { background: var(--green); outline-width: var(--bwo); color: var(--anthracite); transform: translateY(-10px); }
.bw-spalte.is-passt .bw-punkte li::before { background: var(--anthracite); }
.bw-spalte.is-passt .bw-marke {
  display: block; position: absolute; top: calc(-1 * var(--bwo)); right: calc(-1 * var(--bwo)); padding: 8px 14px;
  background: var(--anthracite); color: var(--on-dark); font-size: var(--step-small); font-weight: 700;
}
.bw-spalte.is-andere { color: var(--muted-on-dark); }

.bw-fuss { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: clamp(28px, 3vw, 44px); max-width: 80ch; }
@media (hover: hover) and (pointer: fine) { .bw .link:hover, .eh .link:hover { color: var(--green); } }

/* ===== 6 Tablet ===== */
@media (max-width: 1080px) {
  .umfang-hinweis { grid-column: 6 / span 7; }
  .umfang--zwei .umfang-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eh-text { grid-column: 1 / span 6; }
  .eh-team { grid-column: 7 / span 6; }
  .muster-foto { grid-column: 1 / -1; min-height: 0; aspect-ratio: 4 / 3; }
  .muster-text { grid-column: 1 / -1; padding: clamp(28px, 4vw, 44px) 0 8px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .muster-text h2 { grid-column: 1 / span 7; }
  .muster-text p { grid-column: 8 / span 5; }
  .muster-lead { grid-row: 1; margin-top: 0; align-self: end; }
  .muster-text p + p { grid-row: 2; }
  .bw-kopf h2 { grid-column: 1 / -1; }
  .bw-lead { grid-column: 1 / span 9; }
  .bw-frage { grid-column: 1 / -1; }
  .bw-knoepfe, .bw-empfehlung { grid-column: 1 / -1; }
  .bw-spalte { min-height: 420px; }
  .bsp { grid-template-columns: 1fr; min-height: 0; }
  .bsp .sb-name { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; }
  .sb-fakt { grid-template-columns: 1fr 1fr; }
  .bsp-zitat p { max-width: none; }
  .umfang--rechts .umfang-liste { grid-column: 1 / span 7; }
  .umfang-bilder { grid-column: 9 / span 4; }
  .umfang-detail { width: 80%; }
}

/* ===== 7 Handy ===== */
@media (max-width: 760px) {
  .sk--links { grid-template-columns: 1fr; }
  .sk--links .sk-bild { order: 0; }
  .umfang-hinweis { grid-column: 1; margin-top: 0; }
  .umfang--rechts .umfang-liste, .umfang-bilder { grid-column: 1; grid-row: auto; }
  .umfang-detail { width: 70%; }
  .bsp .sb-name { display: flex; flex-direction: column; align-items: flex-start; }
  .umfang--zwei .umfang-liste { grid-column: 1; grid-template-columns: 1fr; }
  .br-stimme { margin-top: 22px; }
  .sb-zahl { max-width: none; }
  .sb-fakt { grid-template-columns: 1fr; }

  .eh { grid-template-columns: 1fr; }
  .eh-text, .eh-team { grid-column: 1; }
  .eh-team { margin-top: 8px; }

  .muster-text { display: block; }
  .muster-lead { margin-top: 20px; }

  .bw { grid-template-columns: 1fr; }
  .bw-kopf { display: block; }
  .bw-kopf h2 { font-size: var(--step-head); }
  .bw-lead { margin-top: 16px; }
  .bw-wahl { display: block; }
  .bw-knoepfe { margin-top: 14px; }
  .bw-knoepfe button { flex: 1 1 calc(50% - 4px); padding: 0 12px; }
  .bw-empfehlung { margin-top: 16px; min-height: 4.2em; }
  .bw-spalten { grid-template-columns: 1fr; }
  .bw { --bwo: 10px; }
  .bw-spalte { min-height: 0; }
  .bw-spalte h3 { font-size: var(--step-head); }
  .bw-spalte.is-passt { transform: none; }
  .bw-fuss { display: block; }
}

/* ===== 8 Bewegung ===== */
@media (prefers-reduced-motion: reduce) {
  .bw-spalte, .bw-punkte li::before, .bw-knoepfe button, .eh-team a { transition: none; }
  .bw-spalte.is-passt { transform: none; }
}
