/* UX-Durchgang 30.10. (CLAUDE-KONFIGURATOR-UX-KONZEPT-20261030.md §8, Punkte 1–2, 5–7 für den bestehenden Shop).
   Eine Datei statt Einzelkorrekturen: Rückschritt unten, ein Fortschrittszähler, eine Maßeingabe,
   Preisstatus unter der grünen Aktion, mobile Aktionsleiste, verständliche Zusatzeinstellungen. */

/* Auswahlschritte: Aufgabe zuerst, „Zurück“ unter den Optionen */
html body:not(.is-home) #main.layout.picker{display:flex;flex-direction:column}
html body:not(.is-home) #main.layout.picker>:is([data-source-back],[data-workflow-back],.source-picker-back){order:10;align-self:flex-start;margin:32px 0 0!important}
html body:not(.is-home) #main.layout.picker>:is(footer,.legal-note,.fb-disclaimer){order:11}

/* Hersteller: drei Preisgruppen nutzen die volle Breite, Logos ganz sichtbar */
html body:not(.is-home) #main.layout.picker .cards.maker{max-width:none!important;width:100%}
@media (min-width:900px){
  html body:not(.is-home) #main.layout.picker .cards.maker{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;column-gap:24px!important;row-gap:16px!important;align-items:start}
  html body:not(.is-home) #main.layout.picker .cards.maker>.maker-price-note{grid-column:1/-1}
  html body:not(.is-home) #main.layout.picker .cards.maker .maker-tier{min-width:0;width:auto!important;max-width:none!important}
  html body:not(.is-home) #main.layout.picker .cards.maker .maker-tier-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
html body:not(.is-home) #main .cards.maker .card>.card-visual{background:#fff!important}
@media (max-width:899px){
  html body:not(.is-home) #main.layout.picker .cards.maker{display:flex!important;flex-direction:column!important;gap:24px!important}
  html body:not(.is-home) #main.layout.picker .cards.maker .maker-tier{width:100%!important;max-width:none!important}
  html body:not(.is-home) #main.layout.picker .cards.maker .maker-tier-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
}

/* Editor: nur eine Fortschrittsanzeige (oben); kein zweiter „Schritt 1 von 8“-Zähler */
html body #main.layout.editor h2>small,html body #main.layout.editor .spec-heading>:is(small,span){display:none!important}

/* Vorschau: nur Zeichnung, Ansicht und Auswahl; Maße werden rechts eingegeben */
html body #main.layout.editor .stage :is(.preview-dimension-summary,.preview-part-tabs,.preview-instruction){display:none!important}
html body #main.layout.editor .stage .one-model-image{display:flex;align-items:center;gap:12px;margin:12px 20px 0;padding:10px;border:1px solid #d6ded9;border-radius:2px;background:#fff}
html body #main.layout.editor .stage .one-model-image img{width:56px;height:76px;object-fit:contain;flex:none}
html body #main.layout.editor .stage .one-model-image figcaption{font-size:13px;line-height:1.4;color:#515957}
html body #main.layout.editor .stage .one-schematic-note{margin:10px 20px 0;font-size:13px;line-height:1.4;color:#515957}

/* Zusätzliche Einstellungen als lesbare Liste statt Häkchen im Fließtext */
html body #main.layout.editor .supplier-switches{display:flex;flex-direction:column;gap:0}
html body #main.layout.editor .supplier-switches>label.check{display:flex!important;align-items:center;gap:12px;min-height:48px;margin:0!important;padding:8px 4px;border-bottom:1px solid #d6ded9;font-size:15px;line-height:1.4;cursor:pointer}
html body #main.layout.editor .supplier-switches>label.check:first-of-type{border-top:1px solid #d6ded9}
html body #main.layout.editor .supplier-switches>label.check>input{flex:none;width:20px;height:20px;margin:0;accent-color:#16754a}
@media (hover:hover){html body #main.layout.editor .supplier-switches>label.check:hover{background:#f5f6f3}}

/* Aktionsbereich: Zurück | Weiter, darunter Preisstatus (bestätigt), kein leerer Gedankenstrich */
html body #main.layout.editor .buybar{display:grid!important;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"back go" ". price";column-gap:12px;row-gap:6px;align-items:center}
html body #main.layout.editor .buybar>[data-workflow-back]{grid-area:back}
html body #main.layout.editor .buybar>.buy-actions{grid-area:go;display:flex;min-width:0}
html body #main.layout.editor .buybar>.buy-actions>.btn{flex:1}
html body #main.layout.editor .buybar>.price{grid-area:price;display:flex!important;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:0!important;text-align:left}
html body #main.layout.editor .buybar>.price[data-state="offline"]>.supplier-price-value{display:none!important}
html body #main.layout.editor .buybar>.price>.price-label{font-weight:650;color:#202322}
html body #main.layout.editor .buybar>.price>.price-unit{font-size:14px;color:#515957}
html body #main.layout.editor .buybar>.price>[data-action="add"]{flex-basis:100%;justify-self:start;text-align:left}

/* Mobil: Aktion bleibt unten erreichbar; Chat-Knopf rückt darüber */
@media (max-width:760px){
  html body #main.layout.editor .buybar{position:sticky!important;bottom:0;z-index:30;margin:0 -16px!important;padding:10px 16px max(10px,env(safe-area-inset-bottom))!important;background:rgb(255 255 255 / .96);border-top:1px solid #d6ded9;box-shadow:0 -12px 24px -20px rgb(32 35 34 / .35)}
  @supports (backdrop-filter:blur(4px)){html body #main.layout.editor .buybar{backdrop-filter:blur(4px)}}
  html body #main.layout.editor .buybar>.btn,html body #main.layout.editor .buybar .btn{min-height:48px}
  html body #main.layout.editor .buybar>.price>:is([data-action="add"],.price-unit){display:none!important}
  html body #main.layout.editor .buybar>.price{justify-content:center}
  html body:has(#main.layout.editor) .chat-fab{bottom:calc(112px + env(safe-area-inset-bottom))!important}
}

/* Mobil: „Schritt X von Y · Name“ über der Schrittleiste */
html body .fb-step-status{display:none;align-items:center;gap:10px;padding:0 16px;font-size:14px;font-weight:650;color:#202322}
@media (max-width:760px){html body .fb-step-status{display:flex;position:sticky;top:0;z-index:41;height:34px;background:#fff;border-bottom:1px solid #edf0ed}html body .fb-step-status+.steps-wrap{top:34px!important}}
html body .fb-step-status>span{flex:1}
html body .fb-step-status>i{display:block;flex:0 0 96px;height:4px;background:#d6ded9;border-radius:2px;overflow:hidden}
html body .fb-step-status>i>b{display:block;height:100%;background:#16754a;transform-origin:left;transition:transform 200ms cubic-bezier(.23,1,.32,1)}
@media (prefers-reduced-motion:reduce){html body .fb-step-status>i>b{transition:none}}

/* Zeichnung: ruhiger Farbwechsel, keine Bewegung bei Maßänderung */
html body #main .technical-preview :is(rect,path,polygon){transition:fill 180ms ease}
@media (prefers-reduced-motion:reduce){html body #main .technical-preview :is(rect,path,polygon){transition:none}}

/* Scheibenaufbau der gewählten Verglasung (Vorschau-Detailkarte) */
.preview-selection-detail.has-glass{align-items:flex-start}
.preview-selection-detail .glass-section{margin:8px 0 6px}
.preview-selection-detail .glass-layers{display:flex;align-items:stretch;gap:0;list-style:none;margin:0;padding:0;height:56px;border:1px solid var(--fb-line,#d6e0dc);border-radius:6px;overflow:hidden;background:#fff}
.preview-selection-detail .glass-layers li{display:flex;align-items:center;justify-content:center;min-width:0;padding:0 4px;font-size:11px;line-height:1.2;text-align:center;overflow:hidden}
.preview-selection-detail .glass-layers .is-pane{background:linear-gradient(180deg,#cfe3ee,#a9c8da);color:#17384c;font-weight:600}
.preview-selection-detail .glass-layers .is-gas{background:repeating-linear-gradient(135deg,#f4f8fa 0 6px,#e5eef3 6px 12px);color:#4a6272}
.preview-selection-detail .glass-layers li span{display:block;max-width:100%;overflow-wrap:anywhere}
.preview-selection-detail .glass-facts{margin:6px 0 0;font-size:13px;font-weight:600}
@media (max-width:560px){.preview-selection-detail .glass-layers{height:64px}.preview-selection-detail .glass-layers li{font-size:10px}}
