/* /leistungen: Eigenheiten der Seite (Bauer A, 02.10.2026; Blätter nach PLAN.md 15.5 seit 03.10.2026, Schritt 16e). Nur Farbvariablen der Schale, Koralle nur als kleine
   Fläche (Leisten, Schatten, Fortschrittslinie, Nummern, L-015). Methode-Bühne nach Entwurf 03, umgefärbt. */

/* ---------- Seitenkopf: Markenfenster im Rand mit Bildzeile ---------- */
.leistungen-kopf { align-items: center; }
.leistungen-kopf__bild { margin: 0 0 var(--schatten-platz) var(--schatten-platz); }
.leistungen-kopf__unterschrift { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 40px; font-size: 16px; }
.leistungen-kopf__unterschrift b { font: 700 21px/1.2 var(--schrift-kopf); }
.bekommen__satz { max-width: 26em; font-size: 18px; line-height: 1.5; }

/* ---------- Was Sie bekommen: Bild je Zeile ---------- */
.zeilenbild { margin: 0 0 0 10px; }
.zeilenbild figcaption { margin-top: 18px; font-size: 16px; line-height: 1.4; color: var(--leise); }
.zeilenbild figcaption b { font-weight: inherit; white-space: nowrap; }
.zeilenbild .fenster-ort { max-width: 340px; }
.zeilenbild__farbfeld { max-width: 340px; }
.zeilenbild__farbfeld .farbfeld__farben { height: 64px; }
.zeilenbild__farbfeld .farbfeld__schrift { font-size: 15px; }
.zeilenbild--handy figcaption { margin-top: 12px; }
.zeilenbild__handy { width: 104px; margin: 0 0 var(--schatten-platz) var(--schatten-platz); }
.zeilenbild__handy .handy__schatten { border-radius: 14px; }
.zeilenbild__handy .handy { padding: 4px; border-radius: 14px; }
.zeilenbild__handy .handy__schirm { border-radius: 10px; }
.zeilenbild__handy .handy__leiste { height: 9px; border-bottom-width: 1px; }
.zeilenbild__handy .handy__bild { inset: 9px 0 0 0; height: calc(100% - 9px); }
.zeilenbild__ki { display: inline-flex; margin-right: 6px; padding: 1px 10px; border-radius: 999px; background: var(--sekundaer); color: var(--dominant);
  font-size: 13px; font-weight: 600; }
.zeilenliste__zeile { align-items: center; }

/* ---------- Methode-Bühne (A-252): Schritte links, rechts klebt das Markenfenster ab 1024 px ---------- */
.buehne { position: relative; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.buehne__schritte { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: grid; }
.buehne__schritte::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1.5px; background: var(--sekundaer); }
.buehne__schritt { position: relative; display: grid; gap: 12px; align-content: center; min-height: 44vh; padding: 28px 0; }
.buehne__schritt::before { content: ""; position: absolute; left: -35px; top: calc(28px + .3em); width: 16px; height: 16px; border-radius: 4px;
  background: var(--dominant); box-shadow: inset 0 0 0 2.5px var(--sekundaer); transition: background-color .4s var(--kurve); }
.buehne__schritt.ist-aktiv::before, .buehne__schritt.ist-vorbei::before { background: var(--akzent); }
.buehne__nr { font: 700 clamp(40px, 3.6vw, 56px)/1 var(--schrift-kopf); color: var(--akzent-tief); font-variant-numeric: lining-nums; }
.buehne__titel { font: 700 clamp(28px, 2.4vw, 36px)/1.1 var(--schrift-kopf); }
.buehne__text { max-width: 30em; font-size: 18px; line-height: 1.6; }
.buehne__klein { display: none; margin: 10px 0 10px 10px; max-width: 560px; }
.buehne__ort { position: sticky; top: calc(var(--kopf-hoehe) + 24px); margin: 28px 0 28px 28px; }
.buehne__fenster { background: var(--dominant-hell); }
.buehne__lage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.97);
  transition: opacity .5s var(--kurve-blende), transform .6s var(--kurve), visibility 0s linear .5s; }
.buehne__lage.ist-aktiv { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--kurve-blende), transform .6s var(--kurve), visibility 0s; }
.buehne__lage .planblatt { inset: 18% 10% 12% 10%; border: 2px solid var(--sekundaer); border-radius: 10px; overflow: hidden; }
.buehne__lage .planblatt__farbe { font-size: 16px; padding: 12px; }
.buehne__lage .planblatt__schrift { padding: 12px 16px; font-size: 26px; }
/* Pflege (Befund 4): echtes Protokoll der Änderungen nach dem Livegang, die Zeilen teilen sich die ganze Höhe des Fensters */
.buehne__lage .protokoll { padding: 22px 28px; gap: 0; grid-auto-rows: 1fr; align-content: stretch; font-size: 19px; line-height: 1.35; }
.buehne__lage .protokoll li { align-items: center; gap: 18px; padding: 0; }
/* Analyse und Prüfung als Blatt (Befund 2): Auszug aus ANALYSE.md statt Bildschirmfoto der alten Partnerwerbung */
.befundblatt { position: absolute; inset: 0; list-style: none; margin: 0; padding: 10px 12px; display: grid; grid-auto-rows: 1fr; align-content: stretch;
  font-size: 16px; line-height: 1.3; background: var(--dominant-hell); color: var(--sekundaer); }
.befundblatt li { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--dominant-tief); }
.befundblatt li:last-child { border-bottom: 0; }
.befundblatt .befundblatt__kopf { font: 700 18px/1.2 var(--schrift-kopf); border-bottom: 2px solid var(--sekundaer); }
.befundblatt__stufe { flex: none; min-width: 5.4em; padding: 3px 10px; border-radius: 999px; text-align: center; font-size: 14px; font-weight: 600;
  box-shadow: inset 0 0 0 1.5px var(--sekundaer); }
.befundblatt__stufe--schwer, .befundblatt--pruefung .befundblatt__stufe { background: var(--akzent); color: var(--dominant); box-shadow: none; }
.buehne__lage .befundblatt { padding: 18px 28px; font-size: 19px; }
.buehne__lage .befundblatt__kopf { font-size: 24px; }
.buehne__lage .befundblatt__stufe { font-size: 16px; }
/* Im kleinen Fenster wächst das Blatt mit seinem Inhalt, statt abgeschnitten zu werden */
.buehne__klein--blatt .fenster__inhalt { aspect-ratio: auto; }
.buehne__klein--blatt :is(.befundblatt, .protokoll) { position: static; grid-auto-rows: auto; font-size: 16px; }
.buehne__klein--blatt .befundblatt li { padding: 8px 0; }
.buehne__klein--blatt .protokoll { padding: 10px 12px; gap: 8px; }
.buehne__linie { position: relative; height: 4px; margin: 46px 0 0 -28px; border-radius: 2px; background: var(--dominant-tief); overflow: hidden; }
.buehne__linie span { position: absolute; inset: 0; background: var(--akzent); transform-origin: left center;
  transform: scaleX(var(--stand, 1)); transition: transform .6s var(--kurve); }
.buehne__stand { white-space: nowrap; }

/* Am Handy, schmal und ohne JavaScript: jeder Schritt mit eigenem Fenster, nichts klebt */
@media (max-width: 1023px) {
  .buehne { grid-template-columns: minmax(0, 1fr); }
  .buehne__ort { display: none; }
  .buehne__klein { display: block; }
  .buehne__schritt { min-height: 0; padding: 22px 0; }
  .buehne__schritt::before { background: var(--akzent); }
}
html:not(.js) .buehne { grid-template-columns: minmax(0, 1fr); }
html:not(.js) .buehne__ort { display: none; }
html:not(.js) .buehne__klein { display: block; }
html:not(.js) .buehne__schritt { min-height: 0; }

/* ---------- Preise: zwei Karten mit Markenfenster-Leiste ---------- */
.preise, .shopify-karten { list-style: none; margin: 0; padding: 0; }
.preis { padding-top: 0; overflow: hidden; }
.preis__leiste { display: flex; align-items: center; gap: 10px; height: 40px; margin: 0 calc(-1 * clamp(20px, 2.2vw, 30px)) 10px;
  padding: 0 12px; background: var(--akzent); border-bottom: 1.5px solid var(--sekundaer); }
.preis__leiste .fenster__auge { width: 32px; height: 20px; }
.preis__leiste .fenster__adresse { flex: 0 1 180px; height: 24px; font-size: 14px; }
.preis__betrag { margin-top: 6px; font-weight: 600; }

/* ---------- Fragen mit Kontaktkarte daneben ---------- */
.fragen-raster { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.fragen__karte { position: sticky; top: calc(var(--kopf-hoehe) + 24px); }
.fragen__kontakt { display: grid; gap: 6px; font-size: 17px; }
.fragen__kontakt a { font-weight: 600; color: var(--akzent-tief); text-underline-offset: 3px; }

/* Fragen ohne Nummern (L-050, 07.10.2026): die frühere Nummernspalte (D-419 mit A-516) ist entfallen. */

@media (max-width: 1023px) {
  .fragen-raster { grid-template-columns: minmax(0, 1fr); }
  .fragen__karte { position: static; }
  .leistungen-kopf__bild { max-width: 640px; }
}
@media (max-width: 767px) {
  .zeilenbild { margin-top: 6px; }
  .leistungen-kopf__bild { margin: 0 0 var(--schatten-platz) var(--schatten-platz); }
  .leistungen-kopf__unterschrift { margin-top: 22px; }
  .buehne__schritte { padding-left: 24px; }
  .buehne__schritt::before { left: -31px; }
  .buehne__text { font-size: 17px; }
}

/* ---------- Ruhige Fassung: alle Schritte untereinander, jedes Fenster im Endzustand ---------- */
/* Am Desktop zweispaltig: Text links, das Fenster des Schritts rechts daneben (Befund 7, L-020) */
@media (prefers-reduced-motion: reduce) and (min-width: 1024px) {
  .buehne__schritt { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: auto auto 1fr; column-gap: clamp(28px, 4vw, 72px); align-content: start; }
  .buehne__schritt > :not(.buehne__klein) { grid-column: 1; }
  .buehne__klein { grid-column: 2; grid-row: 1 / span 3; align-self: center; max-width: none; margin: 0 0 var(--schatten-platz) var(--schatten-platz); }
}
@media (prefers-reduced-motion: reduce) {
  .buehne { grid-template-columns: minmax(0, 1fr); }
  .buehne__ort { display: none; }
  .buehne__klein { display: block; }
  .buehne__schritt { min-height: 0; padding: 22px 0; }
  .buehne__schritt::before { background: var(--akzent); transition: none; }
  .buehne__lage, .buehne__linie span { transition: none; }
}

/* Stellschraube Koralle, Nachbesserung Runde 1 (Befund 5, L-018): Nummern als Feld 64 px, Versatzschatten, Fortschrittslinie */
.zeilenbild { margin-left: 16px; }
.buehne__linie { height: 8px; border-radius: 4px; }
.zeilenliste__zeile { border-bottom-color: var(--sekundaer); }
/* Nummern als Feld 64 px: Weiß auf Kobalt (Kontrast 5,30, PLAN.md 16.1) */
.zeilenliste__nr, .buehne__nr { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 10px; background: var(--akzent);
  color: var(--dominant); font: 700 30px/1 var(--schrift-kopf); }
@media (max-width: 1023px) {
  .zeilenliste__nr { width: 52px; height: 52px; font-size: 24px; }
}
@media (max-width: 767px) {
  .zeilenliste__nr { width: 44px; height: 44px; font-size: 22px; border-radius: 8px; }
  .buehne__nr { width: 56px; height: 56px; font-size: 26px; }
}
@media (min-width: 1024px) {
  .buehne__klein { margin: 0 0 var(--schatten-platz) var(--schatten-platz); }
  .zeilenbild { margin: 0 0 var(--schatten-platz) var(--schatten-platz); }
}
/* Abnahme Runde 3: die Versatzschatten stehen jetzt auch in der ruhigen Fassung (Auftritt über .auftritt statt
   data-auftritt), die Bildunterschrift beginnt darum erst unter dem Schatten (16 px, ab 1024 px 22 px, plus 12 px Luft). */
.zeilenbild:has(> .fenster-ort) > figcaption { margin-top: 28px; }
@media (min-width: 1024px) { .zeilenbild:has(> .fenster-ort) > figcaption { margin-top: 34px; } }

/* Abnahme Runde 5 (L-046, Noah 04.10.2026 „Überall schmaler“): die schmaleren Versatzschatten und das kleine Kobalt-Muster
   im Planblatt senkten Kobalt am Desktop auf 3,9 %. Ausgleich nur über Leisten und Nummernmarken, keine Fläche (L-015):
   Fensterleisten der Schritte und Zeilenbilder 64 px, Nummernmarken 76 px, Preisleisten 64 px, alles erst ab 1024 px. */
@media (min-width: 1024px) {
  :is(.buehne__klein, .zeilenbild) .fenster > .fenster__leiste { height: 64px; }
  .zeilenliste__nr, .buehne__nr { width: 76px; height: 76px; border-radius: 12px; font-size: 34px; }
  .preis__leiste { height: 64px; }
}
/* Handy luftiger (07.10.2026): die Bühne des Ablaufs endet mit einem Versatzschatten, der eigene Luft mitbringt; ohne
   Innenrand unten wären es 80 px bis zu den Kosten (L-016: höchstens 72) */
@media (max-width: 599px) {
  #ablauf > .abschnitt__innen { padding-bottom: 8px; }
}

/* „Nach Ihrer Anfrage“ ohne Ziffern (L-050, 07.10.2026): stil.css zählt 1, 2, 3 per Zähler; hier Punkte an einer
   durchgehenden Kobalt-Linie, die Reihenfolge zeigt die Linie. stil.css bleibt eingefroren, darum hier. */
.abschluss__schritte li { position: relative; }
.abschluss__schritte li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; justify-self: center; margin-top: 5px; }
.abschluss__schritte li:not(:last-child)::after { content: ""; position: absolute; left: 23px; top: 21px; bottom: -16px; width: 2px;
  background: var(--akzent); }
