/* Vorschau-Layouts A (Seitenleiste + Auswahl) und C (Vollbild-Bühne) */
[data-layout] {
  --m-ink: #0f1115; --m-mute: #6a6f78; --m-line: rgba(15, 17, 21, .09); --m-line2: rgba(15, 17, 21, .16);
  --m-bg: #f4f4f1; --m-card: #fff; --m-chip: #f0f0ed; --m-acc: #2c4bff; --m-acc-soft: #e7ebff;
  --m-font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --m-shadow: 0 1px 2px rgba(15, 17, 21, .05), 0 8px 24px rgba(15, 17, 21, .07);
  --m-shadow-lg: 0 2px 4px rgba(15, 17, 21, .05), 0 24px 70px rgba(15, 17, 21, .22);
  --bf-rb: 14px; --bf-r: 14px; --bf-accent: var(--color-primary-button-background, #ff9445); --bf-accent-text: var(--color-primary-button-text, #fff); --bf-accent-hover: var(--color-primary-button-hover-background, #111); --w-head: var(--m-font); --w-ink: var(--m-ink); --w-mute: var(--m-mute); --w-line: var(--m-line); --w-accent: var(--m-acc);
  font-family: var(--m-font); font-feature-settings: "tnum" 1, "cv11" 1; -webkit-font-smoothing: antialiased; color: var(--m-ink);
}
[data-layout] button { font-family: inherit; }

/* Umschalter */
.bfl-switch { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 100000; display: flex; align-items: center; gap: 2px; padding: 5px; background: rgba(15, 17, 21, .92); backdrop-filter: blur(14px); color: #fff; border-radius: 999px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); font: 600 12.5px/1 ui-sans-serif, system-ui, sans-serif; }
.bfl-switch b { padding: 0 10px 0 12px; font-weight: 500; opacity: .55; letter-spacing: .02em; }
.bfl-switch button { border: 0; border-radius: 999px; padding: 9px 14px; background: transparent; color: #fff; font: inherit; cursor: pointer; transition: background .2s; }
.bfl-switch button:hover { background: rgba(255, 255, 255, .14); }
.bfl-switch button.is-on { background: #fff; color: #0f1115; }

[data-layout] .bw-wiz, [data-layout] .bw-next { display: none !important; }

/* ---------- Bühne: Werkzeuge und Ansicht ---------- */
[data-layout] .bf-workspace { background: #e6e4df; }
[data-layout] .bf-toolbar { gap: 6px; padding: 6px; border-radius: 18px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(16px) saturate(1.5); border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--m-shadow); }
[data-layout] .bf-ibtn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; box-shadow: none; color: var(--m-ink); transition: background .15s, transform .15s; }
[data-layout] .bf-ibtn:hover { background: var(--m-chip); }
[data-layout] .bf-ibtn.is-on { background: var(--m-ink); color: #fff; box-shadow: none; }
[data-layout] .bf-views { gap: 2px; padding: 4px; border-radius: 16px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(16px) saturate(1.5); border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--m-shadow); }
[data-layout] .bf-thumb { border-radius: 12px; border: 0; background: transparent; box-shadow: none; font: 600 13px/1 var(--m-font); letter-spacing: -.005em; color: var(--m-ink); padding: 10px 14px; }
[data-layout] .bf-thumb:hover { background: var(--m-chip); }
[data-layout] .bf-thumb.is-on, [data-layout] .bf-thumb.is-active { background: var(--m-ink); color: #fff; box-shadow: none; }
[data-layout] .bf-back { border-radius: 14px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(16px) saturate(1.5); border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--m-shadow); }
[data-layout] .bf-wallcard { border-radius: 14px; border: 1px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .82); backdrop-filter: blur(16px); box-shadow: var(--m-shadow); }
[data-layout] .bf-hero__badge { border: 0; border-radius: 999px; background: rgba(15, 17, 21, .78); backdrop-filter: blur(10px); font: 500 12px/1 var(--m-font); font-style: normal; letter-spacing: 0; padding: 8px 14px; }
[data-layout] .bf-cap { font-family: var(--m-font); }

/* ---------- Auswahl-Karte (A und C) ---------- */
.bfl-dock { position: absolute; z-index: 30; display: none; flex-direction: column; background: rgba(255, 255, 255, .93); backdrop-filter: blur(28px) saturate(1.5); border: 1px solid rgba(255, 255, 255, .8); border-radius: 28px; box-shadow: var(--m-shadow-lg); overflow: hidden; }
.bfl-dock.is-open { display: flex; animation: bflUp .38s cubic-bezier(.2, .9, .25, 1); }
@keyframes bflUp { from { opacity: 0; transform: translate(var(--bfl-tx, 0), 14px) scale(.985); } to { opacity: 1; transform: translate(var(--bfl-tx, 0), 0) scale(1); } }
.bfl-dock__h { display: flex; align-items: center; gap: 14px; padding: 22px 26px 6px; border: 0; }
.bfl-dock__tt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bfl-dock__tt small { font: 600 12px/1 var(--m-font); letter-spacing: .01em; color: var(--m-mute); }
.bfl-dock__tt b { font: 650 24px/1.12 var(--m-font); letter-spacing: -.028em; }
.bfl-dock__v { margin-left: auto; max-width: 40%; padding: 8px 14px; border-radius: 999px; background: var(--m-chip); font: 600 13px/1 var(--m-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfl-dock__x { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--m-chip); display: grid; place-items: center; cursor: pointer; transition: background .15s, transform .2s; margin-left: 0; }
.bfl-dock__x:hover { background: #e4e4e0; transform: rotate(90deg); }
.bfl-dock__x svg { width: 16px; height: 16px; fill: none; stroke: var(--m-ink); stroke-width: 2.2; stroke-linecap: round; }
.bfl-dock__b { padding: 10px 26px 4px; overflow: auto; min-height: 0; scrollbar-width: thin; }
.bfl-dock__p[hidden] { display: none !important; }
.bfl-dock__f { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px 20px; }
.bfl-dots { display: flex; gap: 6px; align-items: center; }
.bfl-dots i { width: 22px; height: 4px; border-radius: 4px; background: var(--m-line2); cursor: pointer; transition: width .3s, background .3s; }
.bfl-dots i.is-on { width: 40px; background: var(--m-ink); }
.bfl-btn { height: 46px; padding: 0 24px; border: 0; border-radius: 999px; font: 600 15px/1 var(--m-font); letter-spacing: -.005em; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; }
.bfl-btn--ghost { background: transparent; color: var(--m-mute); padding: 0 14px; }
.bfl-btn--ghost:hover { color: var(--m-ink); }
.bfl-btn--main { background: var(--m-ink); color: #fff; box-shadow: 0 6px 18px rgba(15, 17, 21, .25); }
.bfl-btn--main:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(15, 17, 21, .3); }
.bfl-btn--main::after { content: "→"; margin-left: 10px; font-weight: 400; }

/* Inhalte */
.bfl-dock .bw-step__in { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 14px; padding: 0; }
.bfl-dock .bw-lead, .bfl-dock .bw-sub, .bfl-dock .bf-made, .bfl-dock .bw-fi { display: none; }
.bfl-dock [data-bflp="design"] .bw-step__in, .bfl-dock [data-bflp="color"] .bw-step__in { flex-wrap: nowrap; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x proximity; scrollbar-width: none; }
.bfl-dock [data-bflp="design"] .bw-step__in::-webkit-scrollbar, .bfl-dock [data-bflp="color"] .bw-step__in::-webkit-scrollbar { display: none; }
.bfl-dock .bw-opt { position: relative; border: 0; background: var(--m-card); border-radius: 20px; box-shadow: 0 0 0 1px var(--m-line), 0 1px 2px rgba(15, 17, 21, .04); text-align: left; cursor: pointer; color: var(--m-ink); transition: box-shadow .2s, transform .2s; }
.bfl-dock .bw-opt:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--m-line2), 0 12px 28px rgba(15, 17, 21, .1); }
.bfl-dock .bw-opt::before { display: none !important; }
.bfl-dock .bw-opt.is-active { box-shadow: 0 0 0 2px var(--m-acc), 0 0 0 6px var(--m-acc-soft); border: 0; }
.bfl-dock .bw-opt.is-active::after { content: ""; position: absolute; right: 16px; top: 16px; left: auto; bottom: auto; width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--m-acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; box-shadow: 0 4px 12px rgba(18, 19, 22, .4); animation: bflPop .3s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bflPop { from { transform: scale(0); } to { transform: scale(1); } }
.bfl-dock .bw-opt__r { display: none !important; }
.bfl-dock .bw-opt--design { display: flex; flex-direction: column; flex: 0 0 230px; gap: 0; padding: 8px 8px 16px; scroll-snap-align: start; }
.bfl-dock .bw-opt--design .bw-opt__ic { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #efeeea; box-shadow: none; }
.bfl-dock .bw-opt--design .bw-opt__ic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.bfl-dock .bw-opt--design:hover .bw-opt__ic img { transform: scale(1.05); }
.bfl-dock .bw-opt--design .bw-opt__t { display: flex; flex-direction: column; gap: 4px; padding: 12px 8px 0; }
.bfl-dock .bw-opt--design .bw-opt__t b { font: 650 17px/1.2 var(--m-font); letter-spacing: -.02em; }
.bfl-dock .bw-opt--design .bw-opt__t small { font: 400 13px/1.4 var(--m-font); color: var(--m-mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.bfl-dock .bw-opt--design .bw-opt__pr { margin: 8px 8px 0; padding: 5px 10px; width: fit-content; border-radius: 999px; background: var(--m-chip); font: 600 12.5px/1 var(--m-font); font-style: normal; color: var(--m-ink); }
.bfl-dock .bw-opt--pp { flex: 0 0 300px; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px; }
.bfl-dock .bw-opt--pp .bw-opt__ic { width: 52px; height: 52px; border-radius: 14px; background: var(--m-chip); display: grid; place-items: center; }
.bfl-dock .bw-opt--pp .bw-opt__ic svg { width: 28px; height: 28px; stroke-width: 1.5; }
.bfl-dock .bw-opt--pp .bw-opt__t b { font: 650 16px/1.2 var(--m-font); letter-spacing: -.015em; }
.bfl-dock .bw-opt--pp .bw-opt__t small { font: 400 13px/1.4 var(--m-font); color: var(--m-mute); }
.bfl-dock .bw-opt--pp.is-active::after { top: 12px; right: 12px; }
.bfl-dock [data-bflp="extra"] .bw-dachnote { flex: 1 1 100%; margin: 0; border-radius: 14px; background: var(--m-chip); font-size: 13px; }

.bfl-dock .bf-gridbox { flex: 0 0 auto; min-width: 0; }
.bfl-dock .bf-grid { display: flex; flex-wrap: nowrap; gap: 6px; padding: 0; margin: 0; }
.bfl-dock .bf-grid .bf-color { flex: 0 0 auto; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 4px; border: 0 !important; background: none !important; box-shadow: none !important; border-radius: 18px; cursor: pointer; transition: transform .2s; scroll-snap-align: start; }
.bfl-dock .bf-grid .bf-color:hover { transform: translateY(-3px); }
.bfl-dock .bf-grid .bf-color__img { width: 76px; height: 76px; margin: 0; border-radius: 22px; border: 0; box-shadow: inset 0 0 0 1px rgba(15, 17, 21, .1), 0 6px 14px rgba(15, 17, 21, .1); transition: box-shadow .2s; }
.bfl-dock .bf-grid .bf-color.is-active .bf-color__img { box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--m-acc), 0 10px 22px rgba(18, 19, 22, .28); }
.bfl-dock .bf-grid .bf-color__name { font: 500 12.5px/1.25 var(--m-font); text-align: center; color: var(--m-ink); padding: 0; border: 0; background: none; }
.bfl-dock .bf-grid .bf-color.is-active .bf-color__name { font-weight: 650; }
.bfl-dock .bf-grid .bf-color::after { display: none; }

.bfl-dock .bf-dims { display: flex; gap: 14px; margin: 0; }
.bfl-dock .bf-field { display: flex; flex-direction: column; gap: 8px; width: 170px; }
.bfl-dock .bf-field > span { font: 500 13px/1 var(--m-font); color: var(--m-mute); }
.bfl-dock .bf-inwrap { position: relative; }
.bfl-dock .bf-inwrap input { width: 100%; height: 58px; padding: 0 44px 0 18px; border: 0; border-radius: 16px; background: var(--m-card); box-shadow: 0 0 0 1px var(--m-line2); font: 600 22px/1 var(--m-font); letter-spacing: -.02em; color: var(--m-ink); outline: 0; transition: box-shadow .2s; }
.bfl-dock .bf-inwrap input:focus { box-shadow: 0 0 0 2px var(--m-acc), 0 0 0 6px var(--m-acc-soft); }
.bfl-dock .bf-inwrap i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 500 14px/1 var(--m-font); font-style: normal; color: var(--m-mute); }
.bfl-dock [data-bflp="size"] .bf-presets { flex: 1 1 320px; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; align-content: flex-start; }
.bfl-dock .bf-pill { height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--m-card); box-shadow: 0 0 0 1px var(--m-line2); font: 600 13.5px/1 var(--m-font); color: var(--m-ink); cursor: pointer; transition: box-shadow .15s, background .15s, transform .15s; }
.bfl-dock .bf-pill:hover:not(:disabled) { box-shadow: 0 0 0 1.5px var(--m-ink); transform: translateY(-1px); }
.bfl-dock .bf-pill.is-active, .bfl-dock .bf-pill[aria-pressed="true"] { background: var(--m-ink) !important; color: #fff !important; box-shadow: none; }
.bfl-dock .bw-mhelp { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; padding: 12px 18px 12px 14px; border: 0; border-radius: 16px; background: var(--m-chip); cursor: pointer; text-align: left; color: var(--m-ink); transition: background .15s; }
.bfl-dock .bw-mhelp:hover { background: #e6e6e2; }
.bfl-dock .bw-mhelp svg { width: 24px; height: 24px; fill: none; stroke: var(--m-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bfl-dock .bw-mhelp b { font: 600 14px/1.2 var(--m-font); text-decoration: none; }
.bfl-dock .bw-mhelp small { display: none; }
.bfl-dock .bf-outer { flex: 1 1 100%; order: 9; margin: 0; font: 400 13px/1.45 var(--m-font); color: var(--m-mute); }
.bfl-dock .bf-qty { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border: 0; border-radius: 999px; background: var(--m-card); box-shadow: 0 0 0 1px var(--m-line2); }
.bfl-dock .bf-qty button { width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--m-chip); font: 500 22px/1 var(--m-font); cursor: pointer; transition: background .15s; }
.bfl-dock .bf-qty button:hover { background: #e4e4e0; }
.bfl-dock .bf-qty input { width: 56px; border: 0; background: none; text-align: center; font: 650 20px/1 var(--m-font); }
.bfl-dock [data-bflp="qty"] .bf-notewrap { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.bfl-dock [data-bflp="qty"] .bf-notewrap > span { font: 500 13px/1 var(--m-font); color: var(--m-mute); }
.bfl-dock .bf-note { width: 100%; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--m-card); box-shadow: 0 0 0 1px var(--m-line2); font: 400 14px/1.4 var(--m-font); resize: none; outline: 0; }
.bfl-dock .bf-note:focus { box-shadow: 0 0 0 2px var(--m-acc), 0 0 0 6px var(--m-acc-soft); }

/* Preisbereich, gemeinsam */
.bfl .bf-pricing__head, .bfl .bf-sumrow, .bfl .bf-eq__op { display: none; }
.bfl .bf-eq { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 18px; margin: 0; padding: 0; background: none; border: 0; }
.bfl .bf-eq__part { display: flex; flex-direction: column; gap: 3px; padding: 0; border: 0; background: none; border-radius: 0; box-shadow: none; }
.bfl .bf-eq__part span { font: 500 12.5px/1 var(--m-font); letter-spacing: 0; text-transform: none; color: var(--m-mute); }
.bfl .bf-eq__part strong { font: 600 14px/1 var(--m-font); color: var(--m-ink); }
.bfl .bf-eq__part.is-total { order: -1; flex: 1 1 100%; }
.bfl .bf-eq__part.is-total strong { font: 650 36px/1 var(--m-font); letter-spacing: -.035em; }
.bfl .bf-cta { display: flex; align-items: center; justify-content: center; gap: 10px; height: 58px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--m-ink); color: #fff; font: 600 16px/1 var(--m-font); letter-spacing: -.005em; text-transform: none; box-shadow: 0 10px 28px rgba(15, 17, 21, .28); transition: transform .2s, box-shadow .2s, background .2s; }
.bfl .bf-cta::after { content: "→"; font-weight: 400; transition: transform .2s; }
.bfl .bf-cta:hover:not(:disabled) { background: #000; transform: translateY(-2px); box-shadow: 0 16px 36px rgba(15, 17, 21, .34); }
.bfl .bf-cta:hover:not(:disabled)::after { transform: translateX(4px); }
.bfl .bf-cta.is-wait { background: rgba(15, 17, 21, .5); box-shadow: none; }
.bfl .bf-msg { font: 500 13px/1.4 var(--m-font); }

/* ===== A: Seitenleiste ===== */
.bfl-schein { grid-template-columns: 420px minmax(0, 1fr); }
.bfl-schein .bf-panel { display: flex; flex-direction: column; background: var(--m-bg); border: 0; }
.bfl-schein .bf-brand { order: 0; padding: 26px 28px 0; background: transparent; border: 0; }
.bfl-schein .bf-brand__mark { display: none; }
.bfl-schein .bf-brand h1 { font: 600 12.5px/1 var(--m-font); letter-spacing: .01em; text-transform: none; color: var(--m-mute); }
.bfl-schein .bf-brand h1::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--m-acc); }
.bfl-schein .bf-scroll { order: 1; flex: 1 1 auto; padding: 10px 20px 8px; background: transparent; overflow: auto; }
.bfa-sheet__h { padding: 8px 8px 16px; }
.bfa-sheet__h h2 { margin: 0 0 6px; font: 650 30px/1.08 var(--m-font); letter-spacing: -.035em; }
.bfa-sheet__h p { margin: 0; font: 400 14px/1.45 var(--m-font); color: var(--m-mute); }
.bfa-rows { display: flex; flex-direction: column; gap: 10px; }
.bfa-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 18px; gap: 14px; align-items: center; padding: 12px 16px 12px 12px; border: 0; border-radius: 20px; background: var(--m-card); box-shadow: 0 0 0 1px var(--m-line), 0 1px 2px rgba(15, 17, 21, .03); text-align: left; cursor: pointer; color: var(--m-ink); transition: box-shadow .2s, transform .2s; }
.bfa-row:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--m-line2), 0 10px 26px rgba(15, 17, 21, .08); }
.bfa-row.is-on { box-shadow: 0 0 0 2px var(--m-acc), 0 0 0 6px var(--m-acc-soft); }
.bfa-row__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--m-chip); transition: background .2s; }
.bfa-row.is-on .bfa-row__ic { background: var(--m-acc); }
.bfa-row__ic svg { width: 24px; height: 24px; fill: none; stroke: var(--m-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.bfa-row.is-on .bfa-row__ic svg { stroke: #fff; }
.bfa-row__t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bfa-row__t small { font: 500 12.5px/1 var(--m-font); letter-spacing: 0; text-transform: none; color: var(--m-mute); opacity: 1; }
.bfa-row__t b { font: 600 16px/1.2 var(--m-font); letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfa-row__sw { width: 36px; height: 36px; border: 0; border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(15, 17, 21, .12); background-size: cover; background-position: center; }
.bfa-row__go svg { width: 16px; height: 16px; fill: none; stroke: var(--m-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .35; transition: transform .2s, opacity .2s; }
.bfa-row.is-on .bfa-row__go svg, .bfa-row:hover .bfa-row__go svg { opacity: 1; transform: translateX(2px); }
.bfl-schein .bf-pricing { order: 2; margin: 0; padding: 20px 24px 24px; background: var(--m-card); border: 0; border-radius: 28px 28px 0 0; box-shadow: 0 -10px 40px rgba(15, 17, 21, .08); display: flex; flex-direction: column; gap: 16px; }
.bfl-schein .bf-eq__part.is-total span::after { content: " · inkl. aller Optionen"; }
.bfl-schein .bfl-dock { left: 24px; right: 24px; bottom: 96px; --bfl-tx: 0px; max-height: min(58%, 470px); }

/* ===== C: Vollbild-Bühne ===== */
.bfl-buehne { grid-template-columns: minmax(0, 1fr); }
.bfl-buehne .bf-panel { display: none; }
.bfc-bar { position: absolute; left: 0; right: 0; margin: 0 auto; bottom: 22px; z-index: 40; display: flex; align-items: center; gap: 10px; width: min(1240px, calc(100% - 40px)); padding: 10px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(28px) saturate(1.6); border: 1px solid rgba(255, 255, 255, .8); border-radius: 30px; box-shadow: var(--m-shadow-lg); }
.bfc-tiles { display: flex; flex: 1 1 auto; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.bfc-tile { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; flex: 1 1 0; min-width: 150px; padding: 8px 14px 8px 8px; border: 0; border-radius: 22px; background: transparent; color: var(--m-ink); text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.bfc-tile:hover { background: var(--m-chip); }
.bfc-tile.is-on { background: var(--m-ink); color: #fff; }
.bfc-tile__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--m-chip); transition: background .2s; }
.bfc-tile.is-on .bfc-tile__ic { background: rgba(255, 255, 255, .14); }
.bfc-tile__ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bfc-tile__t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bfc-tile__t small { font: 500 12px/1 var(--m-font); letter-spacing: 0; text-transform: none; opacity: .6; }
.bfc-tile__t b { font: 600 14.5px/1.15 var(--m-font); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfc-tile__sw { width: 28px; height: 28px; border-radius: 9px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 0 0 3px var(--m-line2); background-size: cover; background-position: center; }
.bfc-tile.is-on .bfc-tile__sw { box-shadow: 0 0 0 2px rgba(255, 255, 255, .3); }
.bfc-bar .bf-pricing { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; margin: 0; padding: 0 0 0 14px; border: 0; border-left: 1px solid var(--m-line); background: none; border-radius: 0; box-shadow: none; position: relative; }
.bfc-bar .bf-eq__part:not(.is-total) { display: none; }
.bfc-bar .bf-eq { margin: 0; }
.bfc-bar .bf-eq__part.is-total { flex: none; align-items: flex-end; }
.bfc-bar .bf-eq__part.is-total strong { font-size: 28px; }
.bfc-bar .bf-cta { height: 54px; padding: 0 26px; font-size: 15.5px; white-space: nowrap; }

.bfl-buehne .bfl-dock { --bfl-tx: 0px; left: 0; right: 0; margin: 0 auto; width: min(1060px, calc(100% - 40px)); bottom: 106px; max-height: min(60%, 480px); }
[data-layout] .bfl-dock .bfl-btn--main { color: #fff; display: inline-flex; align-items: center; }
[data-layout] .bfl-dock .bfl-btn--ghost { color: var(--m-mute); }
.bfl-dock .bf-zoom { display: none; }
.bfc-tile { gap: 10px; padding-right: 10px; min-width: 168px; }
.bfc-tile__sw { width: 24px; height: 24px; border-radius: 8px; }

/* Ohne Scrollen: alles passt in die Karte */
.bfl-dock [data-bflp="design"] .bw-step__in { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; overflow: visible; padding: 6px 2px 14px; scroll-snap-type: none; }
.bfl-dock .bw-opt--design { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto; align-items: center; flex: none; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 18px; }
.bfl-dock .bw-opt--design .bw-opt__ic { width: 104px; height: 84px; aspect-ratio: auto; border-radius: 12px; grid-row: 1 / span 2; }
.bfl-dock .bw-opt--design .bw-opt__t { padding: 0; gap: 3px; min-width: 0; grid-column: 2; }
.bfl-dock .bw-opt--design .bw-opt__t b { font-size: 16px; }
.bfl-dock .bw-opt--design .bw-opt__t small { font-size: 12.5px; min-height: 0; -webkit-line-clamp: 2; }
.bfl-dock .bw-opt--design .bw-opt__pr { grid-column: 2; margin: 0; padding: 4px 9px; font-size: 12px; align-self: start; }
.bfl-dock .bw-opt--design.is-active::after { top: 10px; right: 10px; width: 22px; height: 22px; background-size: 13px; }
.bfl-dock [data-bflp="color"] .bw-step__in { display: block; overflow: visible; padding: 4px 0 10px; scroll-snap-type: none; }
.bfl-dock [data-bflp="color"] .bf-gridbox { width: 100%; }
.bfl-dock .bf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px 4px; flex-wrap: initial; }
.bfl-dock .bf-grid .bf-color { width: auto; gap: 7px; padding: 6px 0 2px; }
.bfl-dock .bf-grid .bf-color__img { width: 58px; height: 58px; border-radius: 17px; }
.bfl-dock .bf-grid .bf-color__name { font-size: 11.5px; line-height: 1.2; min-height: 0; }
.bfl-dock .bfl-dock__b { overflow-y: auto; }
.bfl-schein .bfl-dock { max-height: min(calc(100% - 128px), 640px); }
.bfl-buehne .bfl-dock { max-height: min(calc(100% - 150px), 660px); }
.bfl-dock [hidden] { display: none !important; }
.bfl-dock .bf-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 2px 2px; }
.bfl-dock .bf-grid .bf-color { gap: 5px; padding: 4px 0 2px; }
.bfl-dock .bf-grid .bf-color__img { width: 52px; height: 52px; border-radius: 15px; }
.bfl-dock .bf-grid .bf-color__name { font-size: 11px; }
@media (max-height: 820px) {
  .bfl-dock__h { padding-top: 16px; }
  .bfl-dock__tt b { font-size: 21px; }
  .bfl-dock__f { padding: 8px 20px 14px; }
  .bfl-dock .bw-opt--design { padding: 8px 12px 8px 8px; }
  .bfl-dock .bw-opt--design .bw-opt__ic { height: 68px; width: 92px; }
  .bfl-dock .bw-opt--design { grid-template-columns: 92px minmax(0, 1fr); }
  .bfl-dock .bf-grid .bf-color__img { width: 44px; height: 44px; border-radius: 13px; }
}
@media (max-height: 820px) {
  .bfl-schein .bfl-dock { bottom: 80px; max-height: calc(100% - 96px); }
  .bfl-buehne .bfl-dock { bottom: 96px; max-height: calc(100% - 112px); }
  .bfl-dock__h { padding: 14px 22px 2px; }
  .bfl-dock__b { padding: 6px 22px 2px; }
  .bfl-dock .bw-step__in { gap: 10px; }
  .bfl-dock [data-bflp="design"] .bw-step__in { gap: 8px; padding: 4px 2px 8px; }
  .bfl-dock .bf-inwrap input { height: 48px; font-size: 19px; border-radius: 14px; }
  .bfl-dock .bf-pill { height: 34px; padding: 0 13px; font-size: 13px; }
  .bfl-dock [data-bflp="size"] .bf-presets { gap: 6px; }
  .bfl-dock .bw-mhelp { padding: 9px 14px 9px 10px; }
  .bfl-dock .bf-qty button { width: 40px; height: 40px; }
  .bfl-dock .bw-opt--pp { padding: 12px; }
}
@media (max-width: 1360px) {
  .bfl-schein { grid-template-columns: 372px minmax(0, 1fr); }
  .bfl-schein .bfl-dock { left: 14px; right: 14px; }
  .bfa-sheet__h h2 { font-size: 26px; }
}
@media (max-height: 820px) {
  .bfl-dock [data-bflp="design"] .bw-step__in { padding-bottom: 0; gap: 7px; }
}
@media (max-height: 820px) {
  .bfl-schein .bf-brand { padding: 16px 24px 0; }
  .bfa-sheet__h { padding: 4px 6px 10px; }
  .bfa-sheet__h h2 { font-size: 23px; margin-bottom: 0; }
  .bfa-sheet__h p { display: none; }
  .bfl-schein .bf-scroll { padding: 6px 16px 8px; }
  .bfa-rows { gap: 6px; }
  .bfa-row { grid-template-columns: 40px minmax(0, 1fr) auto 14px; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 16px; }
  .bfa-row__ic { width: 40px; height: 40px; border-radius: 12px; }
  .bfa-row__ic svg { width: 21px; height: 21px; }
  .bfa-row__sw { width: 30px; height: 30px; border-radius: 9px; }
  .bfa-row__t { gap: 3px; }
  .bfa-row__t b { font-size: 15px; }
  .bfl-schein .bf-pricing { padding: 14px 20px 18px; gap: 12px; }
  .bfl-schein .bf-eq__part.is-total strong { font-size: 30px; }
  .bfl-schein .bf-eq__part.is-total span::after { content: ""; }
  .bfl .bf-cta { height: 50px; }
}

/* Reihenfolge: spätere Schritte bleiben gesperrt */
.bfa-row.is-locked, .bfc-tile.is-locked { opacity: .42; cursor: not-allowed; }
.bfa-row.is-locked:hover, .bfc-tile.is-locked:hover { transform: none; background: inherit; box-shadow: 0 0 0 1px var(--m-line); }
.bfc-tile.is-locked:hover { background: transparent; box-shadow: none; }
.bfa-row.is-locked .bfa-row__go svg { opacity: 0; }
.bfa-row.is-locked::after, .bfc-tile.is-locked::after { content: ""; position: absolute; right: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1115' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }
.bfa-row { position: relative; }
.bfc-tile.is-locked::after { right: 12px; }
.bfl-dots i.is-locked { opacity: .35; cursor: not-allowed; }
.bfa-row[hidden], .bfc-tile[hidden], .bfl-dots i[hidden] { display: none !important; }

/* Kompakteres Fenster */
.bfl-dock { border-radius: 24px; }
.bfl-dock__h { padding: 16px 20px 2px; gap: 10px; }
.bfl-dock__tt { gap: 3px; }
.bfl-dock__tt small { font-size: 11.5px; }
.bfl-dock__tt b { font-size: 19px; }
.bfl-dock__v { padding: 6px 12px; font-size: 12.5px; }
.bfl-dock__x { width: 32px; height: 32px; }
.bfl-dock__b { padding: 8px 20px 2px; }
.bfl-dock__f { padding: 8px 16px 14px; }
.bfl-btn { height: 40px; padding: 0 20px; font-size: 14px; }
.bfl-btn--ghost { padding: 0 10px; }
.bfl-dots i { width: 18px; height: 3px; }
.bfl-dots i.is-on { width: 32px; }
.bfl-schein .bfl-dock { left: 0; right: 0; margin: 0 auto; width: min(760px, calc(100% - 32px)); --bfl-tx: 0px; bottom: 84px; }
.bfl-buehne .bfl-dock { width: min(800px, calc(100% - 32px)); bottom: 100px; }
.bfl-dock [data-bflp="design"] .bw-step__in { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 8px; padding: 4px 0 6px; }
.bfl-dock .bw-opt--design { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; padding: 8px 12px 8px 8px; border-radius: 16px; }
.bfl-dock .bw-opt--design .bw-opt__ic { width: 78px; height: 64px; border-radius: 10px; }
.bfl-dock .bw-opt--design .bw-opt__t b { font-size: 15px; }
.bfl-dock .bw-opt--design .bw-opt__t small { font-size: 12px; }
.bfl-dock .bw-opt--design .bw-opt__pr { font-size: 11.5px; padding: 3px 8px; }
.bfl-dock .bf-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
.bfl-dock .bf-grid .bf-color__img { width: 46px; height: 46px; border-radius: 14px; }
.bfl-dock .bf-grid .bf-color__name { font-size: 10.5px; }
.bfl-dock .bf-inwrap input { height: 48px; font-size: 19px; border-radius: 14px; }
.bfl-dock .bf-field { width: 140px; gap: 6px; }
.bfl-dock [data-bflp="size"] .bf-presets { flex: 1 1 280px; }
.bfl-dock .bf-pill { height: 34px; padding: 0 12px; font-size: 13px; }
.bfl-dock .bw-mhelp { width: auto; padding: 8px 14px 8px 10px; border-radius: 12px; }
.bfl-dock .bw-mhelp svg { width: 20px; height: 20px; }
.bfl-dock .bw-mhelp b { font-size: 13px; }
.bfl-dock .bf-outer { order: 9; font-size: 12px; }
.bfl-dock .bw-opt--pp { flex: 1 1 260px; padding: 12px 14px; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
.bfl-dock .bw-opt--pp .bw-opt__ic { width: 44px; height: 44px; }
.bfl-dock .bf-qty button { width: 38px; height: 38px; }

/* C: Räume und Rahmen in der unteren Leiste */
.bfc-bar { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 10px 10px; }
.bfc-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bfc-top { display: flex; align-items: center; gap: 12px; padding: 2px 4px 8px; border-bottom: 1px solid var(--m-line); min-width: 0; }
.bfc-top .bf-roombar { position: static; flex: 0 1 auto; max-width: 52%; height: 38px; margin: 0; background: var(--m-chip); box-shadow: none; border-radius: 999px; }
.bfc-top .bf-roombar__tabs { padding: 3px; }
.bfc-top .bf-rtab, .bfc-top .bf-rtab__main { border-radius: 999px; }
.bfc-top .bf-roombar__add[data-save] { display: none; }
.bfc-top .bf-roombar__add { border-radius: 999px; }
.bfc-top .bf-strip { position: static; left: auto; bottom: auto; transform: none; margin: 0 0 0 auto; padding: 0; max-width: 60%; gap: 8px; }
.bfc-top .bf-chip { background: var(--m-chip); box-shadow: none; border-radius: 999px; border: 2px solid transparent; }
.bfc-top .bf-chip.is-on { background: #fff; border-color: var(--m-ink); }
.bfl-buehne .bfl-dock { bottom: 156px; max-height: min(calc(100% - 176px), 640px); }
@media (max-height: 820px) {
  .bfl-buehne .bfl-dock { bottom: 148px; max-height: calc(100% - 164px); }
}

/* Beim Zoomen und Drehen die Karte kurz ausblenden */
.bfl-dock.is-peek { opacity: 0; pointer-events: none; transform: translateX(var(--bfl-tx, 0)) translateY(18px) scale(.98); transition: opacity .25s ease, transform .25s ease; animation: none; }
.bfl-dock { transition: opacity .3s ease, transform .3s ease; }

/* Format-Schritt: zwei Spalten */
.bfl-dock [data-bflp="size"] .bw-step__in { display: grid; grid-template-columns: minmax(0, 310px) minmax(0, 1fr); grid-template-areas: "dims presets" "outer presets" "actions actions"; gap: 10px 26px; align-items: start; }
.bfl-dock [data-bflp="size"] .bf-dims { grid-area: dims; }
.bfl-dock [data-bflp="size"] .bf-outer { grid-area: outer; order: 0; padding: 9px 12px; border-radius: 12px; background: var(--m-chip); font-size: 12px; line-height: 1.4; }
.bfl-dock [data-bflp="size"] .bf-presets { grid-area: presets; flex: none; align-content: flex-start; }
.bfl-dock .bfl-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 8px; }
.bfl-dock .bfl-actions .bw-mhelp { width: auto; }

/* Fenster (Messhilfe, Hilfe, Raum): modern */
[data-layout] .bf-modal__ov { background: rgba(15, 17, 21, .42); backdrop-filter: blur(10px) saturate(1.2); }
[data-layout] .bf-modal__card { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; padding: 30px 32px 28px; border: 0; border-radius: 28px; background: #fff; box-shadow: var(--m-shadow-lg); font-family: var(--m-font); color: var(--m-ink); animation: none; }
[data-layout] .bf-modal__card h3 { margin: 0 0 8px; font: 650 24px/1.15 var(--m-font); letter-spacing: -.028em; }
[data-layout] .bf-modal__x { top: 18px; right: 18px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--m-chip); color: var(--m-ink); font-size: 20px; line-height: 1; cursor: pointer; transition: background .15s, transform .2s; }
[data-layout] .bf-modal__x:hover { background: #e4e4e0; transform: rotate(90deg); }
[data-layout] .bf-help__p { font: 400 14.5px/1.55 var(--m-font); color: var(--m-mute); }
.bfm__k { display: inline-block; margin-bottom: 10px; padding: 5px 11px; border-radius: 999px; background: var(--m-acc-soft); color: var(--m-acc); font: 650 12px/1 var(--m-font); letter-spacing: .01em; }
.bfm__h p { margin: 0; font: 400 14.5px/1.55 var(--m-font); color: var(--m-mute); }
.bfm__h p b { color: var(--m-ink); font-weight: 600; }
.bfm__fig { margin: 18px 0 8px; padding: 14px; border-radius: 20px; background: var(--m-bg); }
.bfm__svg { display: block; width: 100%; height: auto; max-height: 190px; }
.bfm__pic { fill: #fff; stroke: var(--m-ink); stroke-width: 2.5; }
.bfm__hill { fill: #e9c9b6; }
.bfm__sun { fill: #f6dca0; }
.bfm__dim path { fill: none; stroke: var(--m-acc); stroke-width: 2; stroke-linecap: round; }
.bfm__t { font: 650 13px var(--m-font); fill: var(--m-acc); }
.bfm__steps { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.bfm__steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 16px; border-radius: 18px; background: var(--m-bg); }
.bfm__steps i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--m-ink); color: #fff; font: 650 14px/1 var(--m-font); font-style: normal; }
.bfm__steps b { display: block; margin-bottom: 2px; font: 650 15px/1.3 var(--m-font); }
.bfm__steps span { font: 400 13.5px/1.5 var(--m-font); color: var(--m-mute); }
.bfm__tip { margin: 14px 0 0; font: 400 13.5px/1.55 var(--m-font); color: var(--m-mute); }
.bfm__tip b { color: var(--m-ink); }
.bfm__ok { display: block; width: 100%; height: 50px; margin-top: 20px; border: 0; border-radius: 999px; background: var(--m-ink); color: #fff; font: 600 15.5px/1 var(--m-font); cursor: pointer; box-shadow: 0 10px 26px rgba(15, 17, 21, .25); transition: transform .2s; }
.bfm__ok:hover { transform: translateY(-1px); }
[data-layout] .bf-modal__card .bfm__svg { width: 100%; height: auto; max-height: 190px; }
[data-layout] .bf-modal__card .bfm__ok { color: #fff; }
.bfm__frame { fill: #2b2723; }
.bfm__lip { fill: #3b362f; }
.bfm__full { fill: none; stroke: var(--m-acc); stroke-width: 1.6; stroke-dasharray: 5 4; }
.bfm__call path { fill: none; stroke: var(--m-ink); stroke-width: 1.6; stroke-linecap: round; }
.bfm__call circle { fill: var(--m-ink); }
.bfm__t2 { font: 700 12.5px var(--m-font); fill: var(--m-ink); }
.bfm__t3 { font: 500 11.5px var(--m-font); fill: var(--m-mute); }
.bfm__note { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; margin: 4px 0 6px; padding: 14px 16px; border-radius: 18px; background: #fff4e0; }
.bfm__note.is-ok { background: #e6f5ea; }
.bfm__note i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f59e0b; color: #fff; font: 700 16px/1 var(--m-font); font-style: normal; }
.bfm__note.is-ok i { background: #1f9d55; }
.bfm__note p { margin: 0; font: 400 13.5px/1.5 var(--m-font); color: var(--m-ink); }
.bfm__note b { font-weight: 650; }
[data-layout] .bf-modal__card .bfm__svg { max-height: 150px; }
.bfm__fig { margin: 12px 0 4px; padding: 10px; }
.bfm__steps { gap: 6px; margin-top: 8px; }
.bfm__steps li { padding: 10px 14px; border-radius: 16px; }
.bfm__ok { margin-top: 14px; height: 46px; }
[data-layout] .bf-modal__card { padding: 26px 28px 22px; }

/* C: ein einziger Hauptbutton – erst Weiter, am Ende Warenkorb */
.bfc-next { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 54px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--m-acc); color: #fff; font: 600 15.5px/1 var(--m-font); letter-spacing: -.005em; white-space: nowrap; cursor: pointer; box-shadow: 0 10px 28px rgba(18, 19, 22, .35); transition: transform .2s, box-shadow .2s; }
.bfc-next:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(18, 19, 22, .42); }
.bfc-next svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.bfc-next:hover svg { transform: translateX(3px); }
.bfc-bar .bf-pricing:not(.is-flow) .bfc-next { display: none; }
.bfc-bar .bf-pricing.is-flow [data-checkout] { display: none; }
.bfl-buehne .bfl-dock__b { padding-bottom: 18px; }

/* C: Meldungen und Warenkorb-Link ohne Überlappung */
.bfc-bar .bf-pricing { position: static; }
.bfc-bar .bf-msg { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); z-index: 70; max-width: min(560px, 92%); margin: 0; padding: 10px 18px; border-radius: 999px; background: rgba(15, 17, 21, .92); backdrop-filter: blur(10px); color: #fff; font: 500 13.5px/1.35 var(--m-font); text-align: center; box-shadow: var(--m-shadow); pointer-events: none; }
.bfc-bar .bf-msg:empty { display: none; }
.bfc-bar .bf-msg.is-err, .bfc-bar .bf-msg[data-err="1"] { background: #b3321c; }
.bfc-bar .bf-cartlink { position: static; order: 1; display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 22px; border-radius: 999px; background: var(--m-chip); color: var(--m-ink); font: 600 15px/1 var(--m-font); text-decoration: none; white-space: nowrap; transition: background .2s; }
.bfc-bar .bf-cartlink:hover { background: #e4e4e0; }
.bfc-bar .bf-cartlink[hidden] { display: none; }
.bfc-bar .bfc-next, .bfc-bar .bf-cta { order: 2; }
.bfc-bar .bf-pricing.is-invalid [data-total] { font-size: 0; }
.bfc-bar .bf-pricing.is-invalid [data-total]::after { content: "–"; font-size: 28px; }

/* Foto-, Profil- und Querschnitt-Ansicht: Bild bekommt die freie Fläche, Karte ruht */
.bfl-buehne .bfl-photo .bfl-dock, .bfl-photo .bfl-dock { display: none !important; }
.bfl-photo:not(.bfl-v-foto) .bf-hero__zoom { inset: var(--bfl-top, 80px) var(--bfl-side, 24px) var(--bfl-bar, 170px) var(--bfl-side, 24px); }
.bfl-v-foto .bf-hero__zoom { inset: 0; }
.bfl-photo .bf-hero__img { object-position: center; }

/* Raum-Fenster */
[data-layout] .bf-roomtypes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0 14px; }
[data-layout] .bf-roomtype { height: 48px; padding: 0 16px; border: 0; border-radius: 16px; background: var(--m-card); box-shadow: 0 0 0 1px var(--m-line2); font: 600 14.5px/1 var(--m-font); color: var(--m-ink); text-align: left; cursor: pointer; transition: box-shadow .15s, background .15s, transform .15s; }
[data-layout] .bf-roomtype:hover { box-shadow: 0 0 0 1.5px var(--m-ink); transform: translateY(-1px); }
[data-layout] .bf-roomtype.is-on { background: var(--m-acc-soft); box-shadow: 0 0 0 2px var(--m-acc); color: var(--m-acc); }
[data-layout] .bf-modal__card .bf-field { display: flex; flex-direction: column; gap: 8px; }
[data-layout] .bf-modal__card .bf-field > span { font: 500 13px/1 var(--m-font); color: var(--m-mute); }
[data-layout] .bf-modal__card .bf-inwrap input { width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: 16px; background: var(--m-card); box-shadow: 0 0 0 1px var(--m-line2); font: 600 16px/1 var(--m-font); outline: 0; }
[data-layout] .bf-modal__card .bf-inwrap input:focus { box-shadow: 0 0 0 2px var(--m-acc), 0 0 0 6px var(--m-acc-soft); }
[data-layout] .bf-roomact { margin-top: 18px; display: flex; gap: 10px; }
[data-layout] .bf-sbtn { flex: 1; height: 50px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--m-ink); color: #fff; font: 600 15px/1 var(--m-font); cursor: pointer; box-shadow: 0 10px 26px rgba(15, 17, 21, .25); transition: transform .2s; }
[data-layout] .bf-sbtn:hover { transform: translateY(-1px); }
[data-layout] .bf-sbtn.is-ghost, [data-layout] .bf-sbtn[data-rdel] { background: var(--m-chip); color: var(--m-ink); box-shadow: none; }

/* Schmalere Fenster: Leiste kompakter, nichts wird abgeschnitten */
@media (max-width: 1280px) {
  .bfc-bar { width: calc(100% - 24px); bottom: 14px; }
  .bfc-tile { min-width: 0; grid-template-columns: 36px minmax(0, 1fr); gap: 9px; padding: 6px 8px 6px 6px; }
  .bfc-tile__sw { display: none; }
  .bfc-tile__ic { width: 36px; height: 36px; border-radius: 11px; }
  .bfc-tile__ic svg { width: 19px; height: 19px; }
  .bfc-tile__t b { font-size: 13.5px; }
  .bfc-bar .bf-pricing { gap: 12px; padding-left: 10px; }
  .bfc-bar .bf-eq__part.is-total strong { font-size: 24px; }
  .bfc-next, .bfc-bar .bf-cta, .bfc-bar .bf-cartlink { height: 50px; padding: 0 18px; font-size: 14px; }
  .bfc-bar .bf-cartlink { padding: 0 14px; }
}

/* Niedrige Fenster: Auswahl noch kompakter, damit nichts scrollt */
@media (max-height: 780px) {
  .bfl-dock [data-bflp="design"] .bw-step__in { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .bfl-dock .bw-opt--design { grid-template-columns: 1fr; gap: 2px; padding: 9px 12px; border-radius: 14px; }
  .bfl-dock .bw-opt--design .bw-opt__ic, .bfl-dock .bw-opt--design .bw-opt__t small { display: none; }
  .bfl-dock .bw-opt--design .bw-opt__t, .bfl-dock .bw-opt--design .bw-opt__pr { grid-column: 1; }
  .bfl-dock .bw-opt--design .bw-opt__pr { padding: 2px 7px; }
  .bfl-dock .bw-opt--design.is-active::after { top: 8px; right: 8px; width: 18px; height: 18px; background-size: 11px; }
  .bfl-dock .bf-grid { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); }
  .bfl-dock .bf-grid .bf-color { gap: 4px; padding: 3px 0 1px; }
  .bfl-dock .bf-grid .bf-color__img { width: 36px; height: 36px; border-radius: 11px; }
  .bfl-dock .bf-grid .bf-color__name { font-size: 10px; line-height: 1.15; }
  .bfl-dock .bf-inwrap input { height: 42px; font-size: 17px; }
  .bfl-dock [data-bflp="size"] .bf-pill { height: 30px; font-size: 12.5px; padding: 0 10px; }
  .bfl-dock [data-bflp="size"] .bw-step__in { gap: 8px 22px; }
  .bfl-dock .bw-mhelp { padding: 6px 12px 6px 8px; }
}
@media (max-width: 1280px) {
  .bfl-buehne .bfl-dock { left: auto; right: 12px; transform: none; --bfl-tx: 0px; width: min(800px, calc(100% - 232px)); }
}
@media (max-height: 780px) {
  .bfl-dock .bf-grid:has(.bf-color:nth-child(21)) .bf-color__name { display: none; }
  .bfl-dock .bf-grid:has(.bf-color:nth-child(21)) { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); }
  .bfl-dock .bw-opt--pp { padding: 8px 12px; gap: 10px; }
  .bfl-dock .bw-opt--pp .bw-opt__ic { width: 36px; height: 36px; }
  .bfl-dock [data-bflp="extra"] .bw-dachnote { padding: 7px 12px; }
}

/* Tastaturfokus sichtbar */
[data-layout] button:focus-visible, [data-layout] input:focus-visible, [data-layout] textarea:focus-visible, [data-layout] a:focus-visible { outline: 3px solid var(--m-acc); outline-offset: 2px; }
[data-layout] .bfc-tile:focus-visible, [data-layout] .bfa-row:focus-visible { outline-offset: -3px; }

/* Bildposition bearbeiten: Leiste und Karte weichen */
.bf-workspace.is-editing .bfc-bar { opacity: 0; pointer-events: none; transform: translateY(30px); transition: opacity .25s, transform .25s; }
.bf-workspace.is-editing .bfl-dock { display: none !important; }
.bfc-bar { transition: opacity .25s, transform .25s; }

/* Wand-Foto-Karte darf die untere Leiste nicht überdecken */
.bfl-buehne .bf-wallcard[open] { max-height: calc(100% - 252px - var(--bfl-bar, 190px)); overflow-y: auto; scrollbar-width: thin; }

/* ===== Überarbeitung: Zurück-Button, Symbole, Hauptbutton, Einklappen, Zoom ===== */
.bfl-buehne .bf-back { height: 44px; padding: 0 18px 0 12px; border: 0; border-radius: 14px; background: #d92d27; color: #fff; font: 650 14px/1 var(--m-font); letter-spacing: -.005em; box-shadow: 0 8px 20px rgba(217, 45, 39, .28); backdrop-filter: none; transition: background .2s, transform .2s, box-shadow .2s; }
.bfl-buehne .bf-back:hover { background: #bf2520; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(217, 45, 39, .34); }
.bfl-buehne .bf-back svg { stroke: #fff; width: 18px; height: 18px; }
.bfl-buehne .bf-back span { color: #fff; }

/* Bild-Leiste und Wandfoto nur bei Bedarf */
.bfl-buehne .bf-imgbar { display: none; }
.bfl-buehne.bfl-has-img .bf-imgbar, .bfl-buehne .bfl-has-img .bf-imgbar { display: flex; }
.bfl-buehne .bf-wallcard:not([open]) { display: none; }
.bfl-buehne .bf-workspace.bfl-has-img .bf-imgbar { display: flex; }

/* eigene Symbolsprache: eckig, mit hellem Flächenanteil */
[data-layout] .bfc-tile__ic svg, [data-layout] .bfa-row__ic svg, [data-layout] .bf-ibtn svg, [data-layout] .bfl-dock__x svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: square; stroke-linejoin: miter; }
[data-layout] .ic-soft { fill: currentColor !important; fill-opacity: .17; stroke: none !important; }
[data-layout] .bf-ibtn svg { width: 22px; height: 22px; }

/* Hauptbutton */
.bfc-bar .bfc-next, .bfc-bar .bf-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; height: 58px; padding: 0 8px 0 22px; border: 0; border-radius: 18px; white-space: nowrap; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.bfc-bar .bfc-next { background: var(--m-acc); color: #fff; box-shadow: 0 10px 26px rgba(18, 19, 22, .32); }
.bfc-bar .bfc-next:hover { background: #2240e6; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(18, 19, 22, .4); }
.bfc-bar .bfc-next, .bfc-bar .bfc-next * { color: #fff; }
.bfc-next__t { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; }
.bfc-next__t b { font: 650 16px/1 var(--m-font); letter-spacing: -.01em; }
.bfc-next__t small { font: 500 12px/1 var(--m-font); opacity: .78; letter-spacing: 0; }
.bfc-next__t small:empty { display: none; }
.bfc-next__ar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(255, 255, 255, .2); transition: transform .2s, background .2s; }
.bfc-next__ar svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.bfc-bar .bfc-next:hover .bfc-next__ar { transform: translateX(2px); background: rgba(255, 255, 255, .3); }
.bfc-bar .bf-cta { background: var(--m-ink); color: #fff; box-shadow: 0 10px 26px rgba(15, 17, 21, .3); font: 650 16px/1 var(--m-font); }
.bfc-bar .bf-cta::after { content: "→"; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(255, 255, 255, .14); font: 400 20px/1 var(--m-font); transition: transform .2s; }
.bfc-bar .bf-cta:hover:not(:disabled)::after { transform: translateX(2px); }
.bfc-bar .bf-cartlink { height: 58px; border-radius: 18px; }

/* Einklappen */
.bfl-dock__grip { position: absolute; top: 7px; left: 50%; width: 44px; height: 14px; margin-left: -22px; padding: 0; border: 0; background: transparent; cursor: pointer; z-index: 3; }
.bfl-dock__grip::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 5px; border-radius: 5px; background: var(--m-line2); transition: background .2s, transform .2s; }
.bfl-dock__grip:hover::before { background: var(--m-mute); transform: scaleX(1.15); }
.bfl-dock__h { padding-top: 22px; }
[data-layout] .bfl-dock__x { display: inline-flex; align-items: center; gap: 6px; width: auto; height: 36px; padding: 0 12px 0 14px; border-radius: 12px; background: var(--m-chip); font: 600 13px/1 var(--m-font); color: var(--m-ink); transition: background .15s; }
[data-layout] .bfl-dock__x:hover { background: #e4e4e0; transform: none; }
[data-layout] .bfl-dock__x svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bfl-dock.is-closing { animation: bflDown .24s cubic-bezier(.4, 0, 1, 1) forwards; pointer-events: none; }
@keyframes bflDown { from { opacity: 1; transform: translate(var(--bfl-tx, 0), 0) scale(1); } to { opacity: 0; transform: translate(var(--bfl-tx, 0), 22px) scale(.985); } }

/* Linien: keine Trennstriche in der Leiste, Abstand statt Linie */
.bfc-top { border-bottom: 0; padding-bottom: 4px; transition: max-height .3s ease, opacity .25s ease, padding .3s ease; max-height: 80px; }
.bfc-bar .bf-pricing { border-left: 0; }
.bfc-main { padding-top: 2px; }

/* Herangezoomt: Leiste klappt auf eine Zeile zusammen, beim Darüberfahren wieder auf */
.bfl-compact .bfc-bar .bfc-top { max-height: 0; opacity: 0; padding: 0; overflow: hidden; margin-bottom: -8px; }
.bfl-compact .bfc-bar .bfc-tile__t small { display: none; }
.bfl-zoomed .bfc-bar { transition: opacity .3s; }
.bfl-compact .bfc-bar { opacity: .94; }
.bfl-buehne .bf-back span { display: inline !important; }
.bfl-buehne .bf-back { width: auto; gap: 8px; }
.bfl-buehne .bf-back { width: auto !important; min-width: 44px; max-width: none; overflow: visible; white-space: nowrap; flex: 0 0 auto; }
.bfl-buehne .bf-back span { display: inline !important; opacity: 1 !important; max-width: none !important; }
.bfl-compact .bfc-bar .bfc-tile:not(.is-on) { grid-template-columns: 36px; flex: 0 0 auto; min-width: 0; padding-right: 6px; }
.bfl-compact .bfc-bar .bfc-tile:not(.is-on) .bfc-tile__t, .bfl-compact .bfc-bar .bfc-tile:not(.is-on) .bfc-tile__sw { display: none; }
.bfl-compact .bfc-bar .bfc-tile.is-on { flex: 1 1 auto; }

/* ===================== Handy (bis 900 px) ===================== */
@media (max-width: 900px) {
  .bfl-buehne { display: block; height: max(600px, calc(100dvh - 72px)); min-height: 0; border: 0; }
  .bfl-buehne .bf-workspace { order: 0; height: 100%; flex: none; }
  .bfl-buehne .bf-hero { inset: 0; }

  /* oben: Zurück, Werkzeuge, Ansicht */
  .bfl-buehne .bf-topbar { top: 10px; left: 10px; right: 10px; }
  .bfl-buehne .bf-back { height: 44px; padding: 0 14px 0 10px; font-size: 13.5px; }
  .bfl-buehne .bf-toolbar { max-width: calc(100% - 20px); padding: 5px; gap: 2px; }
  .bfl-buehne .bf-ibtn { width: 44px; height: 44px; border-radius: 13px; }
  .bfl-buehne .bf-views { top: 64px; bottom: auto; left: 10px; right: 10px; width: auto; justify-content: space-between; }
  .bfl-buehne .bf-views .bf-thumb { flex: 1 1 0; padding: 11px 4px; font-size: 12.5px; text-align: center; }
  .bfl-buehne .bf-views .bf-thumb svg, .bfl-buehne .bf-views .bf-thumb span:first-child:not(:only-child) { display: none; }
  .bfl-buehne .bf-cap, .bfl-buehne .bf-hero__badge { display: none; }
  
  /* unten: Leiste als Sheet */
  .bfc-bar { left: 0; right: 0; bottom: 0; width: 100%; transform: none; padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; border-left: 0; border-right: 0; border-bottom: 0; gap: 6px; }
  .bfc-top { gap: 8px; padding: 0 2px 2px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .bfc-top::-webkit-scrollbar { display: none; }
  .bfc-top .bf-roombar { flex: 0 0 auto; max-width: none; height: 40px; }
  .bfc-top .bf-rtab__main { height: 34px; padding: 0 12px; }
  .bfc-top .bf-rtab__edit { display: none; }
  .bfc-top .bf-roombar__add span { display: none; }
  .bfc-top .bf-roombar__add { padding: 0 12px; }
  .bfc-top .bf-strip { flex: 0 0 auto; max-width: none; margin: 0; overflow: visible; }
  .bfc-top .bf-chip { min-height: 44px; }
  .bfc-main { flex-direction: column; align-items: stretch; gap: 8px; }
  .bfc-tiles { gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .bfc-tiles::-webkit-scrollbar { display: none; }
  .bfc-tile { flex: 1 0 64px; min-width: 64px; grid-template-columns: 1fr; justify-items: center; gap: 4px; padding: 8px 4px 6px; border-radius: 16px; scroll-snap-align: start; text-align: center; }
  .bfc-tile__ic { width: 34px; height: 34px; }
  .bfc-tile__t { align-items: center; }
  .bfc-tile__t small { font-size: 11px; opacity: .75; }
  .bfc-tile__t b, .bfc-tile__sw { display: none; }
  .bfc-tile.is-locked::after { right: 6px; top: 6px; margin: 0; width: 13px; height: 13px; }
  .bfc-bar .bf-pricing { width: 100%; padding: 0; gap: 12px; justify-content: space-between; }
  .bfc-bar .bf-eq { flex: 0 0 auto; }
  .bfc-bar .bf-eq__part.is-total strong { font-size: 26px; }
  .bfc-bar .bfc-next, .bfc-bar .bf-cta { flex: 1 1 auto; min-width: 0; height: 56px; padding: 0 8px 0 18px; }
  .bfc-bar .bf-cartlink { height: 56px; padding: 0 14px; }
  .bfc-bar .bf-msg { bottom: calc(100% + 8px); }

  /* Auswahl: Sheet über der Leiste */
  .bfl-buehne .bfl-dock { left: 0 !important; right: 0 !important; width: auto !important; transform: none !important; --bfl-tx: 0px; border-radius: 24px 24px 0 0; border-left: 0; border-right: 0; border-bottom: 0; box-shadow: 0 -18px 50px rgba(15, 17, 21, .2); }
  .bfl-buehne .bfl-dock__h { padding: 20px 16px 4px; }
  .bfl-buehne .bfl-dock__tt b { font-size: 19px; }
  .bfl-buehne .bfl-dock__v { display: none; }
  .bfl-buehne .bfl-dock__x span { display: none; }
  .bfl-buehne .bfl-dock__x { width: 40px; padding: 0; justify-content: center; }
  .bfl-buehne .bfl-dock__b { padding: 6px 16px 14px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .bfl-dock [data-bflp="design"] .bw-step__in { grid-template-columns: 1fr 1fr; }
  .bfl-dock .bw-opt--design { min-height: 64px; }
  .bfl-dock .bf-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bfl-dock .bf-grid .bf-color__img { width: 46px; height: 46px; }
  .bfl-dock .bf-grid .bf-color__name { display: block; font-size: 10.5px; }
  .bfl-dock [data-bflp="size"] .bw-step__in { grid-template-columns: 1fr; grid-template-areas: "dims" "outer" "presets" "actions"; }
  .bfl-dock .bf-dims { gap: 10px; }
  .bfl-dock .bf-field { width: auto; flex: 1 1 0; }
  .bfl-dock .bf-inwrap input { height: 52px; font-size: 19px; }
  .bfl-dock .bf-pill { height: 40px; }
  .bfl-dock .bw-mhelp { min-height: 44px; }
  .bfl-dock .bw-opt--pp { flex: 1 1 100%; }
  .bfl-dock .bf-qty button { width: 44px; height: 44px; }
  /* geöffnete Karte: Leiste nur noch Hauptbutton + Schritte */
  .bfl-dockopen .bfc-bar .bfc-top { display: none; }
}
@media (max-width: 900px) {
  .bfl-buehne .bf-views { top: 130px; left: 10px; right: 10px; bottom: auto; transform: none; width: auto; margin: 0; }
    .bfl-buehne .bf-toolbar { left: 10px; right: 10px; top: 64px; transform: none; max-width: none; width: auto; overflow-x: auto; justify-content: space-between; }
}

/* Keine Rahmenlinien um Buttons: weder vom Browser noch vom Theme */
[data-layout] button, [data-layout] summary, [data-layout] a, [data-layout] [role="button"], [data-layout] [tabindex] { -webkit-tap-highlight-color: transparent; }
[data-layout] button:focus:not(:focus-visible), [data-layout] summary:focus:not(:focus-visible), [data-layout] a:focus:not(:focus-visible), [data-layout] [tabindex]:focus:not(:focus-visible), [data-layout] input:focus:not(:focus-visible):not([type="text"]) { outline: none !important; box-shadow: none; }
[data-layout] .bfl-dock__grip, [data-layout] .bfl-dock__grip:focus, [data-layout] .bfl-dock__grip:hover, [data-layout] .bfl-dock__grip:active { outline: none !important; border: 0 !important; box-shadow: none !important; background: transparent !important; -webkit-appearance: none; appearance: none; }
[data-layout] .bfc-tile, [data-layout] .bfa-row, [data-layout] .bfl-dock__x, [data-layout] .bf-ibtn, [data-layout] .bf-thumb, [data-layout] .bw-opt, [data-layout] .bf-color, [data-layout] .bf-pill { outline: none; }
[data-layout] .bfl-dock .bf-note { overflow: hidden; resize: none; }
[data-layout] button:focus-visible, [data-layout] a:focus-visible { outline: 2px solid var(--m-acc) !important; outline-offset: 2px; }
@media (max-width: 900px) {
  .bfl-buehne .bfl-dock__x { width: 44px; height: 44px; border-radius: 14px; }
  .bfl-dock .bw-opt--design { grid-template-columns: 56px minmax(0, 1fr); padding: 8px 10px 8px 8px; min-height: 0; }
  .bfl-dock .bw-opt--design .bw-opt__ic { width: 56px; height: 48px; }
  .bfl-dock .bw-opt--design .bw-opt__t small { display: none; }
  .bfl-dock .bf-grid:has(.bf-color:nth-child(21)) .bf-color__name { display: none; }
  .bfl-dock .bf-grid:has(.bf-color:nth-child(21)) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Keine Umrandungen: Flächen und weiche Schatten statt Linien */
.bfl-dock .bw-opt { box-shadow: 0 2px 10px rgba(15, 17, 21, .08); }
.bfl-dock .bw-opt:hover { box-shadow: 0 10px 26px rgba(15, 17, 21, .13); }
.bfl-dock .bw-opt.is-active { box-shadow: 0 0 0 2px var(--m-acc), 0 10px 26px rgba(18, 19, 22, .18); }
.bfl-dock .bf-inwrap input, .bfl-dock .bf-note, .bfl-dock .bf-qty, .bfl-dock .bf-pill { box-shadow: none; background: var(--m-chip); }
.bfl-dock .bf-qty button { background: #fff; box-shadow: 0 1px 4px rgba(15, 17, 21, .12); }
.bfl-dock .bf-pill:hover:not(:disabled) { box-shadow: none; background: #e6e6e2; transform: none; }
.bfl-dock .bf-pill.is-active, .bfl-dock .bf-pill[aria-pressed="true"] { background: var(--m-ink) !important; }
.bfl-dock .bf-inwrap input:focus, .bfl-dock .bf-note:focus { background: #fff; box-shadow: 0 0 0 2px var(--m-acc), 0 0 0 6px var(--m-acc-soft); }
.bfl-dock .bf-grid .bf-color__img { box-shadow: 0 4px 12px rgba(15, 17, 21, .16); }
.bfl-dock .bf-grid .bf-color.is-active .bf-color__img { box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--m-acc), 0 10px 22px rgba(18, 19, 22, .28); }
.bfl-dock__x, .bfl-dock .bw-mhelp, .bfm__steps li { box-shadow: none; border: 0; }
.bfc-top .bf-chip { border: 0 !important; background: var(--m-chip); box-shadow: none; }
.bfc-top .bf-chip.is-on { background: #fff; box-shadow: 0 2px 10px rgba(15, 17, 21, .14); }
.bfc-top .bf-chip__add { border: 0 !important; background: var(--m-chip); border-radius: 999px; box-shadow: none; }
.bfc-top .bf-chip__add:hover { background: #e6e6e2; }
.bfc-top .bf-chip__x { border: 0; }
.bfc-tile__sw { box-shadow: 0 2px 6px rgba(15, 17, 21, .18); }
.bfc-tile.is-on .bfc-tile__sw { box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
[data-layout] .bf-modal__card .bf-inwrap input, [data-layout] .bf-roomtype { box-shadow: none; background: var(--m-chip); }
[data-layout] .bf-roomtype.is-on { background: var(--m-acc-soft); box-shadow: 0 0 0 2px var(--m-acc); }
[data-layout] .bf-back, [data-layout] .bf-roombar, [data-layout] .bf-toolbar, [data-layout] .bf-views, [data-layout] .bf-wallcard { border: 0; }
.bfc-bar, .bfl-dock { border: 0; }
@media (max-width: 900px) {
  .bfl-dock .bf-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
  .bfl-dock .bf-grid .bf-color { padding: 4px 0 2px; gap: 4px; }
  .bfl-dock .bf-grid .bf-color__img { width: 40px; height: 40px; border-radius: 12px; }
  .bfl-dock .bf-grid .bf-color__name { font-size: 9.5px; line-height: 1.15; }
  .bfl-dock .bf-grid:has(.bf-color:nth-child(21)) { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .bfl-dock .bf-inwrap input { height: 48px; }
  .bfl-dock [data-bflp="size"] .bf-pill { height: 36px; padding: 0 12px; }
  .bfl-dock [data-bflp="size"] .bw-step__in { gap: 8px; }
}
.bfc-bar .bf-msg { display: none !important; }

/* Schlichtere Buttons: flach, ohne Leuchten, ohne Kachel-Pfeil */
.bfl-buehne .bf-back { height: 38px; padding: 0 14px 0 10px; border-radius: 9px; background: #c4231e; box-shadow: none; font: 600 13.5px/1 var(--m-font); letter-spacing: 0; gap: 7px; }
.bfl-buehne .bf-back:hover { background: #a91b17; transform: none; box-shadow: none; }
.bfl-buehne .bf-back:active { transform: translateY(1px); }
.bfl-buehne .bf-back svg { width: 16px; height: 16px; stroke-width: 2; }

.bfc-bar .bfc-next, .bfc-bar .bf-cta { height: 52px; padding: 0 20px; gap: 14px; border-radius: 10px; background: #111214; color: #fff; box-shadow: none; justify-content: center; transition: background .15s, transform .1s; }
.bfc-bar .bfc-next:hover, .bfc-bar .bf-cta:hover:not(:disabled) { background: #2b2d31; transform: none; box-shadow: none; }
.bfc-bar .bfc-next:active, .bfc-bar .bf-cta:active:not(:disabled) { transform: translateY(1px); }
.bfc-next__t { flex-direction: row; align-items: baseline; gap: 8px; }
.bfc-next__t b { font: 600 15px/1 var(--m-font); letter-spacing: 0; }
.bfc-next__t small { font: 400 13.5px/1 var(--m-font); opacity: .62; }
.bfc-next__t small:empty { display: none; }
.bfc-next__ar { width: auto; height: auto; background: none !important; border-radius: 0; }
.bfc-next__ar svg { width: 18px; height: 18px; stroke-width: 1.8; }
.bfc-bar .bfc-next:hover .bfc-next__ar { transform: translateX(3px); background: none; }
.bfc-bar .bf-cta { font: 600 15px/1 var(--m-font); }
.bfc-bar .bf-cta::after { width: auto; height: auto; background: none; border-radius: 0; font-size: 18px; }
.bfc-bar .bf-cta.is-wait { background: #8a8c91; }
.bfc-bar .bf-cartlink { height: 52px; border-radius: 10px; background: #ececea; font: 600 14.5px/1 var(--m-font); }
.bfc-bar .bf-cartlink:hover { background: #e0e0dd; }
@media (max-width: 900px) {
  .bfc-bar .bfc-next, .bfc-bar .bf-cta, .bfc-bar .bf-cartlink { height: 54px; }
  .bfc-next__t small { display: none; }
}

/* ===================== Tablet hochkant (601 bis 900 px) ===================== */
@media (min-width: 601px) and (max-width: 900px) {
  .bfl-buehne { height: max(680px, calc(100dvh - 80px)); }
  .bfl-buehne .bf-topbar { top: 14px; left: 14px; right: 14px; }
  .bfl-buehne .bf-toolbar { top: 14px; left: auto; right: 14px; width: auto; max-width: calc(100% - 190px); overflow: visible; justify-content: flex-end; }
  .bfl-buehne .bf-views { top: 68px; left: 50%; right: auto; width: min(460px, calc(100% - 28px)); transform: translateX(-50%); }
  .bfc-bar { left: 0; right: 0; margin: 0 auto; width: min(720px, calc(100% - 28px)); bottom: 14px; border-radius: 26px; padding: 10px 12px 12px; }
  .bfc-tile { grid-template-columns: 38px minmax(0, 1fr); justify-items: stretch; text-align: left; gap: 10px; padding: 8px 10px 8px 8px; flex: 1 1 0; min-width: 0; }
  .bfc-tile__t { align-items: flex-start; }
  .bfc-tile__t b { display: block; font-size: 13px; }
  .bfc-tile__ic { width: 38px; height: 38px; }
  .bfc-tile.is-locked::after { right: 8px; top: 50%; margin-top: -7px; }
  .bfl-buehne .bfl-dock { left: 0 !important; right: 0 !important; margin: 0 auto !important; width: min(720px, calc(100% - 28px)) !important; --bfl-tx: 0px; border-radius: 26px; box-shadow: 0 24px 70px rgba(15, 17, 21, .24); }
  .bfl-buehne .bfl-dock__v { display: inline-block; }
  .bfl-buehne .bfl-dock__x span { display: inline; }
  .bfl-buehne .bfl-dock__x { width: auto; padding: 0 12px 0 14px; }
  .bfl-dock [data-bflp="design"] .bw-step__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bfl-dock .bw-opt--design { grid-template-columns: 84px minmax(0, 1fr); }
  .bfl-dock .bw-opt--design .bw-opt__ic { width: 84px; height: 66px; }
  .bfl-dock .bw-opt--design .bw-opt__t small { display: -webkit-box; }
  .bfl-dock .bf-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .bfl-dock .bf-grid:has(.bf-color:nth-child(21)) { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .bfl-dock .bf-grid .bf-color__img { width: 48px; height: 48px; }
  .bfl-dock [data-bflp="size"] .bw-step__in { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); grid-template-areas: "dims presets" "outer presets" "actions actions"; gap: 12px 22px; }
  .bfc-bar .bf-eq__part.is-total strong { font-size: 28px; }
}

/* ===================== Handy quer / sehr niedrige Fenster ===================== */
@media (max-width: 900px) and (max-height: 520px) {
  .bfl-buehne { height: max(320px, 100dvh); }
  .bfl-buehne .bf-topbar { top: 8px; left: 8px; right: 8px; }
  .bfl-buehne .bf-back { height: 40px; }
  .bfl-buehne .bf-toolbar { top: 8px; left: auto; right: 8px; width: auto; max-width: calc(100% - 180px); overflow: visible; padding: 3px; }
  .bfl-buehne .bf-ibtn { width: 40px; height: 40px; }
  .bfl-buehne .bf-views { top: 56px; left: auto; right: 8px; width: 220px; flex-direction: column; padding: 3px; }
  .bfl-buehne .bf-views .bf-thumb { padding: 7px 8px; text-align: left; }
  .bfc-bar { left: 0; right: 0; width: 100%; transform: none; bottom: 0; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
  .bfc-top { display: none; }
  .bfc-main { flex-direction: row; align-items: center; gap: 8px; }
  .bfc-tiles { flex: 1 1 auto; }
  .bfc-tile { flex: 1 1 0; min-width: 0; padding: 4px 2px; }
  .bfc-tile__t { display: none; }
  .bfc-tile__ic { width: 36px; height: 36px; }
  .bfc-bar .bf-pricing { width: auto; flex: 0 0 auto; }
  .bfc-bar .bf-eq__part.is-total span { display: none; }
  .bfc-bar .bf-eq__part.is-total strong { font-size: 20px; }
  .bfc-bar .bfc-next, .bfc-bar .bf-cta, .bfc-bar .bf-cartlink { height: 46px; flex: 0 0 auto; }
  .bfl-buehne .bfl-dock { left: auto !important; right: 8px !important; width: min(400px, 52%) !important; top: 108px; border-radius: 18px; transform: none !important; }
  .bfl-buehne .bfl-dock__h { padding: 16px 12px 2px; }
  .bfl-dock [data-bflp="design"] .bw-step__in { grid-template-columns: 1fr; }
  .bfl-dock .bf-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 601px) and (max-width: 900px) {
  .bfc-tile { gap: 8px; padding: 8px 6px 8px 6px; }
  .bfc-tile__t b { font-size: 12.5px; }
  .bfc-tile__t small { font-size: 10.5px; }
  .bfc-tile__t b, .bfc-tile__t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .bfc-tile__t { min-width: 0; }
  .bfc-tile.is-locked::after { display: none; }
}
@media (max-width: 900px) and (max-height: 520px) {
  .bfl-buehne .bfl-dock { top: 62px; }
  .bfl-dockopen .bf-views { display: none; }
  .bfl-dock .bf-dims { flex-wrap: nowrap; }
  .bfl-dock [data-bflp="size"] .bw-step__in { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .bfc-tiles { min-width: 0; }
  .bfl-compact .bfc-bar .bfc-tile:not(.is-on) { grid-template-columns: 1fr; flex: 1 1 0; }
  .bfl-compact .bfc-bar .bfc-tile.is-on { flex: 1 1 0; }
}
@media (max-width: 900px) and (max-height: 520px) {
  .bfc-main { min-width: 0; }
  .bfc-bar .bf-pricing { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
  .bfc-bar .bfc-next, .bfc-bar .bf-cta { flex: 1 1 auto; min-width: 0; padding: 0 14px; font-size: 14px; }
  .bfc-tiles { flex: 0 1 280px; }
  .bfc-bar .bf-cta::after { display: none; }
}

/* ===================== Vollbild (ohne Theme-Kopf und -Fuß) ===================== */
html.bfk-full, html.bfk-full body { overflow: hidden !important; height: 100%; margin: 0; }
html.bfk-full .bfk-wrap { position: fixed !important; inset: 0 !important; z-index: 100000; width: 100vw !important; max-width: none !important; margin: 0 !important; padding: 0 !important; transform: none !important; background: #ece9e3; overflow: hidden; }
html.bfk-full .bf-root { height: 100%; }
html.bfk-full .bf-app, html.bfk-full .bfl-buehne { height: 100dvh !important; min-height: 0 !important; border: 0; }
html.bfk-full .bfl-buehne .bf-workspace { height: 100% !important; }
@media (max-width: 900px) {
  html.bfk-full .bfl-buehne { height: 100dvh !important; }
}

/* Zoomstufen wie bei Plissee: Raum, Rahmen, Ecke */
.bfl-zoomlv { position: absolute; right: 14px; top: 50%; transform: translateY(-62%); z-index: 12; display: flex; flex-direction: column; gap: 2px; padding: 4px; border-radius: 16px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 4px 18px rgba(15, 17, 21, .12); }
.bfl-zoomlv button { height: 34px; padding: 0 16px; border: 0; border-radius: 12px; background: transparent; color: #111214; font: 600 13px/1 var(--m-font); text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.bfl-zoomlv button:hover { background: rgba(15, 17, 21, .07); }
.bfl-zoomlv button.is-on { background: #111214; color: #fff; }
.bfl-photo .bfl-zoomlv, .bf-workspace.is-editing .bfl-zoomlv { display: none; }
@media (max-width: 900px) { .bfl-zoomlv { top: 190px; right: 10px; transform: none; } }
@media (max-width: 900px) and (max-height: 520px) { .bfl-zoomlv { display: none; } }

/* Weiter-Button zwischen den Schritten */
.bfc-next[hidden] { display: none !important; }
.bfc-bar .bfc-tiles .bfc-next.is-inrow { order: 0; flex: 0 0 auto; align-self: center; width: 34px; height: 34px; padding: 0; margin: 0 2px; border-radius: 50%; gap: 0; justify-content: center; }
.bfc-tiles .bfc-next.is-inrow .bfc-next__t { display: none; }
.bfc-tiles .bfc-next.is-inrow .bfc-next__ar svg { width: 16px; height: 16px; }

/* ===================== Handy: Bedienung mit dem Finger ===================== */
.bfl-toolsbtn { display: none; }
html.bfk-full { overscroll-behavior: none; }
.bfl-buehne .bfl-dock { --bfl-dy: 0px; }
.bfl-dock.is-drag { transition: none !important; }
@media (max-width: 600px) and (min-height: 521px) {
  .bfl-buehne .bf-topbar { top: 8px; left: 8px; right: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .bfl-buehne .bf-back { height: 46px; padding: 0 14px 0 10px; font-size: 14px; border-radius: 12px; }
  .bfl-toolsbtn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px 0 12px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); color: #111214; font: 600 14px/1 var(--m-font); box-shadow: 0 2px 12px rgba(15, 17, 21, .14); cursor: pointer; }
  .bfl-toolsbtn svg { width: 20px; height: 20px; fill: currentColor; }
  .bfl-tools-open .bfl-toolsbtn { background: #111214; color: #fff; }

  /* Werkzeuge als Auswahl-Feld mit Beschriftung */
  .bfl-buehne .bf-toolbar { display: none; position: absolute; top: 62px; left: 8px; right: 8px; width: auto; max-width: none; transform: none; padding: 10px 8px; border-radius: 20px; background: rgba(255, 255, 255, .97); box-shadow: 0 18px 50px rgba(15, 17, 21, .25); grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px 2px; overflow: visible; z-index: 40; }
  .bfl-tools-open .bf-toolbar { display: grid; }
  .bfl-buehne .bf-toolbar .bf-ibtn { width: auto; height: 68px; flex-direction: column; justify-content: center; gap: 6px; border-radius: 14px; padding: 0 2px; }
  .bfl-buehne .bf-toolbar .bf-ibtn svg { width: 26px; height: 26px; }
  .bfl-buehne .bf-toolbar .bf-ibtn::after { content: attr(data-lbl); font: 600 11px/1 var(--m-font); }

  /* Ansichten schlank unter der Kopfzeile */
  .bfl-buehne .bf-views { top: 62px; left: 8px; right: 8px; height: 44px; padding: 3px; }
  .bfl-buehne .bf-views .bf-thumb { height: 38px; padding: 0 4px; font-size: 13px; }
  .bfl-zoomlv { top: 118px; right: 8px; }
  .bfl-zoomlv button { height: 40px; padding: 0 14px; font-size: 13px; }

  /* Auswahl-Sheet */
  .bfl-buehne .bfl-dock { max-height: min(48dvh, 480px) !important; transform: translateY(var(--bfl-dy, 0px)) !important; border-radius: 26px 26px 0 0; }
  .bfl-buehne .bfl-dock__h { padding: 22px 16px 6px; align-items: flex-start; }
  .bfl-buehne .bfl-dock__tt b { font-size: 21px; }
  .bfl-buehne .bfl-dock__x { width: 46px; height: 46px; border-radius: 14px; }
  .bfl-dock__grip { width: 120px; height: 24px; margin-left: -60px; top: 0; }
  .bfl-dock__grip::before { top: 9px; width: 44px; margin: 0 auto; }
  .bfl-buehne .bfl-dock__b { padding: 6px 16px 18px; overflow-y: auto; }

  /* große Berührungsflächen */
  .bfl-dock [data-bflp="design"] .bw-step__in { grid-template-columns: 1fr; gap: 10px; }
  .bfl-dock .bw-opt--design { grid-template-columns: 92px minmax(0, 1fr); min-height: 84px; padding: 10px 14px 10px 10px; gap: 14px; border-radius: 18px; }
  .bfl-dock .bw-opt--design .bw-opt__ic { width: 92px; height: 68px; }
  .bfl-dock .bw-opt--design .bw-opt__t b { font-size: 17px; }
  .bfl-dock .bw-opt--design .bw-opt__t small { display: -webkit-box; font-size: 13px; }
  .bfl-dock .bf-grid, .bfl-dock .bf-grid:has(.bf-color:nth-child(21)) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 4px; }
  .bfl-dock .bf-grid .bf-color { min-height: 92px; padding: 6px 0 4px; }
  .bfl-dock .bf-grid .bf-color__img { width: 60px; height: 60px; border-radius: 17px; }
  .bfl-dock .bf-grid .bf-color__name, .bfl-dock .bf-grid:has(.bf-color:nth-child(21)) .bf-color__name { display: block; font-size: 12px; line-height: 1.2; }
  .bfl-dock .bf-inwrap input { height: 58px; font-size: 22px; }
  .bfl-dock [data-bflp="size"] .bf-pill { height: 46px; padding: 0 16px; font-size: 15px; }
  .bfl-dock .bw-mhelp { min-height: 50px; padding: 0 16px 0 12px; }
  .bfl-dock .bw-opt--pp { min-height: 76px; padding: 14px; }
  .bfl-dock .bf-qty button { width: 52px; height: 52px; font-size: 26px; }
  .bfl-dock .bf-qty input { width: 64px; font-size: 22px; }
  .bfl-dock .bf-note { font-size: 16px; }

  /* untere Leiste: große Schritte, ein Hauptbutton */
  .bfc-bar { padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); gap: 8px; }
  .bfc-tile { min-height: 62px; border-radius: 16px; }
  .bfc-tile__ic { width: 36px; height: 36px; }
  .bfc-tile__t small { font-size: 11.5px; opacity: .85; }
  .bfc-bar .bfc-next, .bfc-bar .bf-cta, .bfc-bar .bf-cartlink { height: 58px; font-size: 16px; }
  .bfc-bar .bf-eq__part.is-total strong { font-size: 28px; }
  .bfc-top .bf-chip, .bfc-top .bf-roombar { min-height: 46px; }
  .bfc-top .bf-rtab__main { height: 40px; }
  .bfc-top .bf-roombar__add { min-width: 46px; }
}
@media (max-width: 600px) and (min-height: 521px) {
  .bfl-buehne .bfl-dock { max-height: min(42dvh, 400px) !important; }
  .bfc-tile { min-height: 56px; }
  .bfc-bar .bfc-next, .bfc-bar .bf-cta, .bfc-bar .bf-cartlink { height: 54px; }
  .bfc-bar { gap: 6px; padding-top: 6px; }
}

/* Herangezoomt: kompakte Leiste ohne gestreckten Schritt */
.bfl-compact .bfc-bar .bfc-tiles { justify-content: flex-start; }
.bfl-compact .bfc-bar .bfc-tile, .bfl-compact .bfc-bar .bfc-tile.is-on, .bfl-compact .bfc-bar .bfc-tile:not(.is-on) { flex: 0 0 auto; }
.bfl-compact .bfc-bar .bfc-tile.is-on { grid-template-columns: 44px minmax(0, 150px) auto; }
.bfl-compact .bfc-bar .bfc-tiles .bfc-next { margin-left: 6px; }
@media (max-width: 900px) {
  .bfl-compact .bfc-bar .bfc-tile, .bfl-compact .bfc-bar .bfc-tile.is-on, .bfl-compact .bfc-bar .bfc-tile:not(.is-on) { flex: 1 1 0; }
}

/* Schloss als kleines Siegel auf dem Symbol */
.bfc-tile.is-locked { opacity: .55; }
.bfc-tile.is-locked::after { content: ""; position: absolute; left: 38px; top: auto; right: auto; bottom: 6px; width: 20px; height: 20px; margin: 0; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1115' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: 0 1px 4px rgba(15, 17, 21, .28); display: block; }
@media (min-width: 601px) and (max-width: 900px) {
  .bfc-tile.is-locked::after { display: block; left: 30px; bottom: 4px; width: 18px; height: 18px; background-size: 11px; }
}
@media (max-width: 600px) and (min-height: 521px) {
  .bfc-tile.is-locked::after { left: 50%; margin-left: 6px; top: 6px; bottom: auto; right: auto; width: 18px; height: 18px; background-size: 11px; }
}
@media (max-width: 900px) and (max-height: 520px) {
  .bfc-tile.is-locked::after { left: 50%; margin-left: 6px; top: 3px; bottom: auto; width: 16px; height: 16px; background-size: 10px; }
}
@media (min-width: 901px) and (max-width: 1280px) { .bfc-tile.is-locked::after { left: 30px; } }
.bfc-tile.is-locked .bfc-tile__sw { display: none; }

/* Zurück zum Shop: runde Pille, wie bei Plissee */
.bfl-buehne .bf-back { height: 44px; padding: 0 22px 0 16px; border-radius: 999px; background: #b4251d; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); font: 700 15px/1 var(--m-font); gap: 9px; }
.bfl-buehne .bf-back:hover { background: #9c1f18; box-shadow: 0 3px 12px rgba(0, 0, 0, .26); }
.bfl-buehne .bf-back svg { width: 18px; height: 18px; stroke-width: 2.3; }
@media (max-width: 600px) and (min-height: 521px) { .bfl-buehne .bf-back { height: 46px; padding: 0 20px 0 14px; border-radius: 999px; font-size: 15px; } }
.bfl-tools-open .bfl-zoomlv { visibility: hidden; }

/* Bildschirmtastatur (Handy): Leiste weicht, Fläche folgt dem sichtbaren Bereich */
html.bfk-full .bfk-wrap { height: 100dvh !important; bottom: auto !important; }
html.bfk-full .bf-app, html.bfk-full .bfl-buehne { height: 100dvh !important; }
html.bfk-full.bfk-kb .bfk-wrap { height: var(--bfk-vh, 100dvh) !important; }
html.bfk-full.bfk-kb .bf-app, html.bfk-full.bfk-kb .bfl-buehne { height: var(--bfk-vh, 100dvh) !important; }
@media (max-width: 900px) {
  .bfl-kb .bfc-bar { display: none; }
  .bfl-kb .bfl-dock { bottom: 0 !important; max-height: calc(var(--bfk-vh, 100dvh) - 70px) !important; }
  .bfl-kb .bfl-zoomlv, .bfl-kb .bf-views { display: none; }
}
@media (max-width: 600px) and (min-height: 521px) { .bfc-tile__t small { font-size: 12px; } }

/* Hilfe-Knopf unten rechts mit häufigen Fragen (wie bei Plissee) */
.bfl-help { position: absolute; right: 16px; bottom: calc(var(--bfl-bar, 170px) + 10px); z-index: 31; width: 46px; height: 46px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: #111214; font: 600 21px/1 var(--m-font); cursor: pointer; box-shadow: 0 2px 14px rgba(15, 17, 21, .2); transition: transform .15s, background .15s, color .15s; }
.bfl-help:hover { transform: scale(1.07); }
.bfl-help.is-on { background: #111214; color: #fff; }
.bfl-helppop { position: absolute; right: 16px; bottom: calc(var(--bfl-bar, 170px) + 66px); z-index: 32; width: min(380px, calc(100% - 32px)); max-height: min(68%, 520px); display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: 0 18px 54px rgba(15, 17, 21, .28); overflow: hidden; font-family: var(--m-font); }
.bfl-helppop[hidden] { display: none !important; }
.bfl-helppop__h { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; }
.bfl-helppop__h b { font: 650 18px/1.2 var(--m-font); letter-spacing: -.02em; }
.bfl-helppop__h button { width: 36px; height: 36px; border: 0; border-radius: 12px; background: var(--m-chip); cursor: pointer; display: grid; place-items: center; }
.bfl-helppop__h svg { width: 16px; height: 16px; fill: none; stroke: #111214; stroke-width: 2.2; stroke-linecap: round; }
.bfl-helppop__b { overflow: auto; padding: 0 20px 14px; }
.bfl-helppop details { border-top: 1px solid rgba(15, 17, 21, .09); }
.bfl-helppop summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; font: 600 14.5px/1.3 var(--m-font); cursor: pointer; list-style: none; }
.bfl-helppop summary::-webkit-details-marker { display: none; }
.bfl-helppop summary::after { content: "+"; flex: 0 0 auto; font: 400 22px/1 var(--m-font); color: rgba(15, 17, 21, .5); }
.bfl-helppop details[open] summary::after { content: "–"; }
.bfl-helppop .bfl-help__a { padding: 0 0 14px; font: 400 13.5px/1.55 var(--m-font); color: rgba(15, 17, 21, .75); }
.bfl-helppop .bfl-help__a p { margin: 0 0 8px; }
@media (max-width: 900px) {
  .bfl-help { right: 10px; bottom: calc(var(--bfl-bar, 170px) + 10px); }
  .bfl-helppop { right: 10px; bottom: calc(var(--bfl-bar, 170px) + 66px); width: calc(100% - 20px); max-height: 60%; }
  .bfl-dockopen .bfl-help { display: none; }
  .bfl-photo .bfl-help { display: none; }
}
@media (max-width: 900px) and (max-height: 520px) { .bfl-help { display: none; } }
.bfl-buehne .bf-faq { display: none; }

/* Warenkorb-Symbol oben rechts, sobald ein Rahmen drin liegt */
.bfl-cartbtn { position: absolute; z-index: 13; top: 16px; right: 16px; left: auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 999px; background: #b4251d; color: #fff !important; text-decoration: none !important; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); transition: background .15s, box-shadow .15s; }
.bfl-cartbtn[hidden] { display: none; }
.bfl-cartbtn:hover { background: #9c1f18; box-shadow: 0 3px 12px rgba(0, 0, 0, .26); }
.bfl-cartbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bfl-cartbtn__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bfl-cartbtn__n { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #fff; color: #b4251d; font: 700 12px/20px var(--m-font); text-align: center; box-shadow: 0 0 0 2px #b4251d; }
.bfl-cartbtn__n:empty { display: none; }
.bfl-cartbtn.is-pop { animation: bflpop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bflpop { 0% { transform: scale(.7); } 100% { transform: scale(1); } }
@media (min-width: 601px) {
  .bfl-buehne .bf-workspace.bfl-hascart .bf-topbar { right: 68px; }
}
.bf-toast.has-link { pointer-events: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; width: max-content; max-width: calc(100% - 24px); }
.bf-toast__link { color: #fff !important; font-weight: 600; text-decoration: underline !important; text-underline-offset: 3px; white-space: nowrap; }
@media (max-width: 600px) and (min-height: 521px) {
  .bfl-cartbtn { top: 8px; right: 58px; width: 46px; height: 46px; border-radius: 999px; }
  .bfl-cartbtn svg { width: 20px; height: 20px; }
  .bfl-hascart .bfl-toolsbtn { width: 46px; padding: 0; justify-content: center; }
  .bfl-hascart .bfl-toolsbtn span { display: none; }
}
@media (max-width: 900px) and (max-height: 520px) { .bfl-cartbtn { top: 8px; right: 8px; width: 46px; height: 46px; border-radius: 999px; } .bfl-buehne .bf-workspace.bfl-hascart .bf-topbar { right: 62px; } }
@media (prefers-reduced-motion: reduce) { .bfl-cartbtn.is-pop { animation: none; } }

/* Farbschritt: Vorschau-Karte mit Foto, Profil und Querschnitt der gewählten Farbe */
.bw-cprev, .bw-cbig { display: none; }
.bfl .bf-views { display: none !important; }
.bfl-dock .bw-cwrap { display: flex; align-items: flex-start; gap: 24px; }
.bfl-dock .bw-cwrap .bf-gridbox { flex: 1 1 auto; width: auto; min-width: 0; }
.bfl-dock .bw-cprev { display: flex; flex-direction: column; gap: 9px; flex: 0 0 188px; width: 188px; padding: 8px 8px 12px; margin-top: 2px; border-radius: 24px; background: linear-gradient(180deg, #fff, #f4f3ef); box-shadow: 0 1px 2px rgba(15, 17, 21, .06), 0 14px 34px rgba(15, 17, 21, .13), inset 0 0 0 1px rgba(15, 17, 21, .05); }
.bfl-dock .bw-cprev[hidden] { display: none !important; }
.bw-cprev__img { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; border-radius: 17px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #fff, #e9e6e0); cursor: zoom-in; box-shadow: inset 0 0 0 1px rgba(15, 17, 21, .06); }
.bw-cprev__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .28s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.bw-cprev__img img.is-loading, .bw-cbig__img.is-loading { opacity: .25; }
.bw-cprev__big { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 9px; border-radius: 999px; background: rgba(17, 18, 20, .82); backdrop-filter: blur(8px); color: #fff; box-shadow: 0 4px 12px rgba(15, 17, 21, .28); transition: transform .2s, background .2s; }
.bw-cprev__big svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bw-cprev__big b { font: 600 11.5px/1 var(--m-font); }
.bw-cprev__img:hover .bw-cprev__big { background: #111214; transform: translateY(-1px); }
.bw-seg { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(15, 17, 21, .07); }
.bw-seg button { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; padding: 0 7px; border: 0; border-radius: 999px; background: transparent; color: #4a4e56; font: 600 11px/1 var(--m-font); white-space: nowrap; cursor: pointer; transition: background .18s, color .18s, box-shadow .18s; }
.bw-seg button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bw-seg button:hover { color: #111214; }
.bw-seg button.is-on { background: #fff; color: #111214; box-shadow: 0 1px 3px rgba(15, 17, 21, .2), 0 0 0 .5px rgba(15, 17, 21, .06); }
.bw-cprev__n { margin: 0; padding: 0 4px; display: flex; flex-direction: column; gap: 2px; }
.bw-cprev__n small, .bw-cbig__n small { font: 600 10.5px/1 var(--m-font); letter-spacing: .08em; text-transform: uppercase; color: var(--m-mute); }
.bw-cprev__n b { font: 650 14px/1.2 var(--m-font); color: var(--m-ink); }

/* Großformat: helle Galerie über der Bühne, Farben bleiben unten in einer Reihe wählbar */
.bw-cbig { position: absolute; z-index: 28; left: 50%; width: min(1060px, calc(100% - 40px)); top: 84px; bottom: 200px; border-radius: 28px; overflow: hidden; background: rgba(255, 255, 255, .95); backdrop-filter: blur(28px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .85); box-shadow: var(--m-shadow-lg); opacity: 0; transform: translateY(10px) scale(.985); transition: opacity .28s ease, transform .35s cubic-bezier(.2, .8, .2, 1); }
.bw-cbig:not([hidden]) { display: block; }
.bw-cbig.is-in { opacity: 1; transform: none; }
.bw-cbig__top { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px 10px 22px; }
.bw-cbig__n { margin: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bw-cbig__n b { font: 650 19px/1.1 var(--m-font); color: var(--m-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-seg--big button { height: 34px; padding: 0 14px; font-size: 12.5px; }
.bw-cbig__x { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px 0 11px; border: 0; border-radius: 999px; background: rgba(15, 17, 21, .07); color: #111214; font: 600 13px/1 var(--m-font); cursor: pointer; transition: background .15s; }
.bw-cbig__x:hover { background: rgba(15, 17, 21, .14); }
.bw-cbig__x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.bw-cbig__grid { position: absolute; inset: 66px 14px 14px; display: grid; gap: 10px; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: minmax(0, 1fr); }
.bw-cbig__grid[data-mode="all"][data-orient="tall"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1.35fr) minmax(0, 1fr); }
.bw-tile { position: relative; margin: 0; min-width: 0; min-height: 0; overflow: hidden; border-radius: 20px; background: radial-gradient(120% 100% at 50% 28%, #f8f6f2, #e5e0d7); box-shadow: inset 0 0 0 1px rgba(15, 17, 21, .06); cursor: zoom-in; }
.bw-tile[hidden] { display: none; }
.bw-tile img { position: absolute; display: block; max-width: none; transition: opacity .3s ease; user-select: none; -webkit-user-drag: none; }
.bw-tile img.is-loading { opacity: .25; }
.bw-tile.is-foto { grid-column: 1; grid-row: 1; }
.bw-tile.is-foto img { mix-blend-mode: multiply; }
.bw-tile.is-profil { grid-column: 2; grid-row: 1; }
.bw-tile.is-schnitt { grid-column: 3; grid-row: 1; }
.bw-cbig__grid[data-mode="all"].no-cut .bw-tile.is-profil { grid-column: 2 / span 2; }
.bw-cbig__grid[data-mode="all"][data-orient="tall"] .bw-tile.is-foto { grid-column: 1 / span 2; grid-row: 1; }
.bw-cbig__grid[data-mode="all"][data-orient="tall"] .bw-tile.is-profil { grid-column: 1; grid-row: 2; }
.bw-cbig__grid[data-mode="all"][data-orient="tall"] .bw-tile.is-schnitt { grid-column: 2; grid-row: 2; }
.bw-cbig__grid[data-mode="all"][data-orient="tall"].no-cut .bw-tile.is-profil { grid-column: 1 / span 2; }
.bw-tile.is-profil::before { content: ""; position: absolute; inset: -24px; background: var(--bg) center / cover; filter: blur(28px) saturate(1.15) brightness(.95); }
.bw-tile.is-profil img { left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; }
.bw-tile.is-schnitt img { left: 14px; top: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; mix-blend-mode: multiply; }
.bw-tile figcaption { position: absolute; left: 12px; bottom: 12px; }
.bw-tile figcaption span { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); color: #111214; font: 600 11.5px/1 var(--m-font); box-shadow: 0 2px 10px rgba(15, 17, 21, .16); }
.bw-cbig__grid:not([data-mode="all"]) { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.bw-cbig__grid:not([data-mode="all"]) .bw-tile { grid-column: 1; grid-row: 1; cursor: default; }
.bw-cbig__grid[data-mode="foto"] .bw-tile:not(.is-foto), .bw-cbig__grid[data-mode="profil"] .bw-tile:not(.is-profil), .bw-cbig__grid[data-mode="schnitt"] .bw-tile:not(.is-schnitt) { display: none; }
/* Dock im Großformat: Farben in einer Reihe, Karte entfällt */
.bw-big .bfl-dock .bw-cprev { display: none !important; }
.bw-big .bfl-dock .bw-cwrap .bf-gridbox { overflow-x: auto; scrollbar-width: thin; }
.bw-big .bfl-dock .bf-grid { display: flex; flex-wrap: nowrap; gap: 4px; width: max-content; }
.bw-big .bfl-dock .bf-grid .bf-color { flex: 0 0 auto; width: 78px; }
@media (max-width: 900px) {
  .bw-cbig { left: 50%; width: calc(100% - 28px); top: 70px; border-radius: 22px; }
  .bw-cbig__n { display: none; }
  .bw-cbig__x span { display: none; }
  .bw-cbig__x { padding: 0; width: 38px; flex: none; justify-content: center; }
  .bw-cbig__top { padding: 12px; }
  .bw-cbig__top .bw-seg { flex: 1 1 auto; }
  .bw-seg--big button { flex: 1 1 0; padding: 0 8px; font-size: 12px; }
  .bw-seg--big button svg { display: none; }
  .bw-cbig__grid { inset: 60px 12px 12px; }
}
@media (max-width: 600px) {
  .bfl-dock .bw-cwrap { flex-direction: column; gap: 6px; }
  .bfl-dock .bw-cwrap .bf-gridbox { width: 100%; }
  .bfl-dock .bw-cprev { order: -1; flex: none; width: 100%; display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "img n" "img seg"; align-items: center; gap: 8px 12px; padding: 8px; border-radius: 20px; }
  .bw-cprev__img { grid-area: img; width: 88px; border-radius: 14px; }
  .bw-cprev__big b { display: none; }
  .bw-cprev__big { padding: 0 8px; height: 24px; right: 5px; bottom: 5px; }
  .bw-cprev .bw-seg { grid-area: seg; }
  .bw-cprev__n { grid-area: n; padding: 0 2px; align-self: end; }
}
@media (max-height: 520px) { .bfl-dock .bw-cprev { display: none !important; } .bw-cbig { top: 56px; } }

/* Viele Farben (z. B. Massivholz): Farbfelder scrollen im Fenster, die Karte bleibt sichtbar, der Rahmen dahinter bleibt frei */
.bfl-dock .bw-cwrap .bf-gridbox { max-height: clamp(190px, 34vh, 290px) !important; overflow-y: auto !important; padding-right: 6px; scrollbar-width: thin; }
.bfl-dock .bw-cwrap .bw-cprev { position: sticky; top: 2px; }
.bw-big .bfl-dock .bw-cwrap .bf-gridbox { max-height: none !important; overflow-y: visible !important; overflow-x: auto !important; }

/* Schrift: eine moderne Grotesk als eigene Datei (keine Verbindung zu Google), klare Hierarchie über Größe und Gewicht */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/InstrumentSans.woff2") format("woff2"); }
[data-layout] {
  --m-font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --m-ink: #121316; --m-mute: #6b6e75;
  font-feature-settings: "kern" 1, "liga" 1, "ss01" 0;
}
[data-layout] .bfl-dock__tt { gap: 6px; }
[data-layout] .bfl-dock__tt b { font: 600 28px/1.08 var(--m-font); letter-spacing: -.028em; }
[data-layout] .bfl-dock__tt small { font: 500 12.5px/1 var(--m-font); letter-spacing: .005em; color: var(--m-mute); }
[data-layout] .bfl-dock .bw-opt--design .bw-opt__t b, [data-layout] .bfl-dock .bw-opt--pp .bw-opt__t b { font: 600 17px/1.2 var(--m-font); letter-spacing: -.015em; }
[data-layout] .bfc-bar .bf-eq__part.is-total strong, [data-layout] .bfl .bf-eq__part.is-total strong { font: 600 30px/1 var(--m-font); letter-spacing: -.035em; font-variant-numeric: tabular-nums lining-nums; }
[data-layout] .bfc-tile__t b { font-weight: 600; letter-spacing: -.012em; }
[data-layout] .bfc-tile__t small { font-weight: 500; }
[data-layout] .bw-cprev__n b { font: 600 17px/1.15 var(--m-font); letter-spacing: -.02em; }
[data-layout] .bw-cprev__n small, [data-layout] .bw-cbig__n small { font: 500 12.5px/1 var(--m-font); letter-spacing: .005em; text-transform: none; color: var(--m-mute); }
[data-layout] .bw-cbig__n b { font: 600 26px/1.05 var(--m-font); letter-spacing: -.028em; }
[data-layout] .bw-tile figcaption span, [data-layout] .bw-seg button { font-weight: 600; letter-spacing: -.005em; }
[data-layout] .bf-color__name { font-weight: 500; letter-spacing: -.005em; }
@media (max-height: 820px) { [data-layout] .bfl-dock__tt b { font-size: 24px; } }
@media (max-width: 600px) { [data-layout] .bfl-dock__tt b { font-size: 22px; } [data-layout] .bfc-bar .bf-eq__part.is-total strong { font-size: 26px; } [data-layout] .bw-cprev__n b { font-size: 16px; } }

/* Fensterkopf ruhiger: der gewählte Wert steht schon unten in der Leiste, Einklappen nur als Symbol */
[data-layout] .bfl-dock__v { display: none; }
[data-layout] .bfl-dock__x { margin-left: auto; width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; }
[data-layout] .bfl-dock__x span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[data-layout] .bfc-bar .bfc-tile.is-on { flex-grow: 1.7; min-width: 190px; }

/* Format-Schritt: zwei Zahlenfelder, eine Reihe Standardformate */
[data-layout] .bfl-dock [data-bflp="size"] .bw-step__in { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); grid-template-rows: auto 1fr auto; grid-template-areas: "dims presets" "outer presets" "actions actions"; gap: 14px 48px; align-items: start; }
[data-layout] .bfl-dock [data-bflp="size"] .bf-dims { grid-area: dims; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: end; }
[data-layout] .bfl-dock [data-bflp="size"] .bf-field > span { display: flex; flex-direction: column; gap: 3px; margin: 0 0 8px; font: 600 13.5px/1.1 var(--m-font); color: var(--m-ink); }
[data-layout] .bfl-dock [data-bflp="size"] .bf-field > span small { font: 400 12px/1.2 var(--m-font); color: var(--m-mute); }
[data-layout] .bfl-dock [data-bflp="size"] .bf-inwrap { height: 56px; padding: 0 14px 0 16px; border: 1px solid var(--m-line2); border-radius: 8px; background: #fff; box-shadow: none; }
[data-layout] .bfl-dock [data-bflp="size"] .bf-inwrap:focus-within { border-color: var(--m-ink); box-shadow: 0 0 0 1px var(--m-ink); }
[data-layout] .bfl-dock [data-bflp="size"] .bf-inwrap input { border: 0; background: transparent; box-shadow: none; font: 600 24px/1 var(--m-font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
[data-layout] .bw-swap { width: 40px; height: 40px; margin-bottom: 8px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--m-mute); cursor: pointer; transition: background .15s, color .15s; }
[data-layout] .bw-swap:hover { background: var(--m-chip); color: var(--m-ink); }
[data-layout] .bw-swap svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[data-layout] .bfl-dock [data-bflp="size"] .bf-outer { grid-area: outer; margin: 0; padding: 0; border: 0; background: none; font: 400 13px/1.5 var(--m-font); color: var(--m-mute); }
[data-layout] .bfl-dock [data-bflp="size"] .bf-outer b { font-weight: 600; color: var(--m-ink); }
[data-layout] .bfl-dock [data-bflp="size"] .bf-presets { grid-area: presets; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
[data-layout] .bw-fh { flex: 0 0 100%; margin: 0 0 2px; font: 600 13.5px/1.1 var(--m-font); color: var(--m-ink); }
[data-layout] .bfl-dock [data-bflp="size"] .bf-pill { height: 38px; padding: 0 15px; border: 1px solid var(--m-line2); border-radius: 8px; background: #fff; box-shadow: none; color: var(--m-ink); font: 500 13.5px/1 var(--m-font); transition: background .12s, border-color .12s; }
[data-layout] .bfl-dock [data-bflp="size"] .bf-pill:hover:not(:disabled) { border-color: var(--m-ink); background: #fff; }
[data-layout] .bfl-dock [data-bflp="size"] .bf-pill.is-active { background: var(--m-ink); border-color: var(--m-ink); color: #fff; }
[data-layout] .bfl-dock [data-bflp="size"] .bf-pill:disabled { color: #b9b8b3; border-color: var(--m-line); }
[data-layout] .bfl-dock [data-bflp="size"] .bfl-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 6px 26px; padding-top: 12px; border-top: 1px solid var(--m-line); }
[data-layout] .bfl-dock [data-bflp="size"] .bfl-actions .bw-mhelp { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--m-ink); }
[data-layout] .bfl-dock [data-bflp="size"] .bfl-actions .bw-mhelp:hover { background: none; }
[data-layout] .bfl-dock [data-bflp="size"] .bfl-actions .bw-mhelp svg { width: 18px; height: 18px; }
[data-layout] .bfl-dock [data-bflp="size"] .bfl-actions .bw-mhelp b { font: 600 13.5px/1.2 var(--m-font); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(18, 19, 22, .35); }
[data-layout] .bfl-dock [data-bflp="size"] .bfl-actions .bw-mhelp:hover b { text-decoration-color: var(--m-ink); }
@media (max-width: 900px) {
  [data-layout] .bfl-dock [data-bflp="size"] .bw-step__in { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "dims" "outer" "presets" "actions"; gap: 12px; }
  [data-layout] .bfl-dock [data-bflp="size"] .bf-inwrap { height: 50px; }
}

/* Adminleiste von WordPress bleibt im Vollbild sichtbar, wenn man als Admin angemeldet ist */
body.admin-bar { --bfk-ab: 32px; }
@media (max-width: 782px) { body.admin-bar { --bfk-ab: 46px; } }
html.bfk-full body.admin-bar .bfk-wrap { top: var(--bfk-ab) !important; height: calc(var(--bfk-vh, 100dvh) - var(--bfk-ab)) !important; }
html.bfk-full body.admin-bar .bf-app, html.bfk-full body.admin-bar .bfl-buehne { height: calc(var(--bfk-vh, 100dvh) - var(--bfk-ab)) !important; }
html.bfk-full #wpadminbar { z-index: 100001; }

/* Auswahlzustand ohne blaue Ringe: Tinte statt Blau, Farbmuster als eckigere Proben */
[data-layout] { --m-acc: #121316; --m-acc-soft: rgba(18, 19, 22, .07); }
[data-layout] .bfl-dock .bf-grid .bf-color__img { border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(18, 19, 22, .1); }
[data-layout] .bfl-dock .bf-grid .bf-color.is-active .bf-color__img { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--m-ink); }
[data-layout] .bfl-dock .bf-grid .bf-color:hover .bf-color__img { box-shadow: 0 6px 14px rgba(18, 19, 22, .16); }

/* Mini-Übersicht des Warenkorbs: schlicht wie die Warenkorb-Schublade bei Shopify */
.bfl-mini { position: absolute; z-index: 50; top: 70px; right: 16px; width: min(360px, calc(100% - 32px)); max-height: min(75%, 560px); display: flex; flex-direction: column; border-radius: 4px; background: #fff; border: 1px solid rgba(18, 19, 22, .2); box-shadow: 0 12px 40px rgba(18, 19, 22, .22); overflow: hidden; color: var(--m-ink); font-family: var(--m-font); }
.bfl-mini[hidden] { display: none; }
.bfl-mini__h { display: flex; align-items: center; justify-content: space-between; padding: 14px 8px 10px 20px; }
.bfl-mini__h b { font: 600 19px/1.2 var(--m-font); letter-spacing: -.015em; }
.bfl-mini__h span { display: none; }
.bfl-mini__x { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 0; background: none; color: var(--m-ink); cursor: pointer; }
.bfl-mini__x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.bfl-mini__l { list-style: none; margin: 0; padding: 4px 20px 6px; overflow-y: auto; }
.bfl-mini__i { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 0; }
.bfl-mini__t { width: 68px; height: 68px; overflow: hidden; background: #f3f3f1; border: 1px solid rgba(18, 19, 22, .08); }
.bfl-mini__t img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bfl-mini__m { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bfl-mini__m b { font: 500 14px/1.3 var(--m-font); color: var(--m-ink); }
.bfl-mini__m small { font: 400 12.5px/1.35 var(--m-font); color: rgba(18, 19, 22, .62); }
.bfl-mini__p { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.bfl-mini__p b { font: 500 14px/1.3 var(--m-font); white-space: nowrap; }
.bfl-mini__p small { font: 400 12.5px/1.3 var(--m-font); color: rgba(18, 19, 22, .62); }
.bfl-mini__f { padding: 14px 20px 20px; border-top: 1px solid rgba(18, 19, 22, .2); }
.bfl-mini__s { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 14px; }
.bfl-mini__s span { font: 500 14px/1 var(--m-font); }
.bfl-mini__s b { font: 500 17px/1 var(--m-font); white-space: nowrap; }
.bfl-mini__b { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 4px; background: var(--m-ink); color: #fff !important; font: 500 14.5px/1 var(--m-font); letter-spacing: .01em; text-decoration: none !important; transition: background .15s; }
.bfl-mini__b:hover { background: #2b2d31; }
.bfl-mini__v { display: block; margin-top: 14px; text-align: center; color: var(--m-ink) !important; font: 400 13.5px/1 var(--m-font); text-decoration: underline !important; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.bfl-mini__e { margin: 0; padding: 8px 20px 26px; font: 400 14px/1.4 var(--m-font); color: rgba(18, 19, 22, .62); }
@media (max-width: 600px) { .bfl-mini { top: 64px; right: 12px; width: calc(100% - 24px); } }

/* Kleiner Übersichts-Knopf für alle Rahmen neben dem Gesamtpreis */
.bfc-ov { position: relative; flex: none; width: 46px; height: 46px; display: grid; place-items: center; align-self: center; margin-right: 4px; border: 0; border-radius: 12px; background: var(--m-chip); color: var(--m-ink); cursor: pointer; transition: background .15s; }
.bfc-ov:hover { background: #e4e4df; }
.bfc-ov svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.bfc-ov b { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--m-ink); color: #fff; font: 600 11px/19px var(--m-font); text-align: center; box-shadow: 0 0 0 2px #fff; }
.bfc-ov b:empty { display: none; }

/* ===== Handy: wenige Handgriffe, große Flächen, kaum Text ===== */
.bfl-prog, .bfc-prev { display: none; }
@media (max-width: 900px) and (min-height: 521px) {
  [data-layout] .bfl-dock__tt small { display: none; }
  .bfl-prog { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }
  .bfl-prog i { display: block; width: 20px; height: 5px; border-radius: 3px; background: rgba(18, 19, 22, .14); transition: width .25s, background .25s; }
  .bfl-prog i.is-done { background: rgba(18, 19, 22, .5); }
  .bfl-prog i.is-on { width: 34px; background: var(--m-ink); }
  [data-layout] .bfl-dock__tt b { font-size: 26px; }
  [data-layout] .bfl-dock__x { width: 46px; height: 46px; }
  .bfc-tiles { display: none !important; }
  .bfc-bar .bfc-prev { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border: 0; border-radius: 14px; background: var(--m-chip); color: var(--m-ink); cursor: pointer; }
  .bfc-bar .bfc-prev[hidden] { display: none; }
  .bfc-prev svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .bfc-bar .bfc-next, .bfc-bar .bf-cta { height: 54px; font-size: 17px; }
  .bfc-bar .bfc-next { flex: 1 1 auto; }
  /* Rahmenart: zwei große Karten pro Zeile, nur Bild, Name und Preis */
  [data-layout] .bfl-dock [data-bflp="design"] .bw-step__in { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  [data-layout] .bfl-dock .bw-opt--design { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 8px 12px; grid-template-columns: none; text-align: left; }
  [data-layout] .bfl-dock .bw-opt--design .bw-opt__ic { width: 100%; height: 92px; }
  [data-layout] .bfl-dock .bw-opt--design .bw-opt__t small { display: none; }
  [data-layout] .bfl-dock .bw-opt--design .bw-opt__t b { font-size: 17px; }
  [data-layout] .bfl-dock .bw-opt--design .bw-opt__pr { margin: 0; align-self: flex-start; }
  /* Farbe: nur Bild und Name, ohne Reiter */
  [data-layout] .bw-cprev .bw-seg { display: none; }
  [data-layout] .bfl-dock .bw-cprev { grid-template-areas: "img n"; align-items: center; }
  [data-layout] .bw-cprev__n { align-self: center; }
  [data-layout] .bfl-dock .bf-grid .bf-color__name { font-size: 12.5px; }
  /* Format: eine Hilfe, größere Auswahl */
  [data-layout] .bfl-dock [data-bflp="size"] .bfl-actions .bw-mhelp:nth-child(2) { display: none; }
  [data-layout] .bfl-dock [data-bflp="size"] .bf-pill { height: 44px; padding: 0 16px; font-size: 15px; }
  /* Passepartout: nur Titel */
  [data-layout] .bfl-dock [data-wzpp="0"] .bw-opt__t small, [data-layout] .bfl-dock [data-bflp="extra"] .bf-hint:not(.is-warn) { display: none; }
  [data-layout] .bfl-dock textarea { font-size: 16px; }
  /* Nach dem Hinzufügen zeigt die kleine Warenkorb-Übersicht alles, daher keine zweite Meldung und kein zweiter Knopf */
  .bf-toast.has-link, .bfc-bar .bf-cartlink { display: none !important; }
}
@media (max-width: 600px) and (min-height: 521px) {
  .bfl-buehne .bfl-toolsbtn, .bfl-buehne .bfl-zoomlv, .bfl-buehne .bf-toolbar, .bfc-ov { display: none !important; }
  .bfl-buehne .bfl-cartbtn { right: 12px; }
}
/* Tablet hochkant: drei Karten pro Zeile, Dock nie höher als die Hälfte, damit der Rahmen sichtbar bleibt */
@media (min-width: 601px) and (max-width: 900px) and (min-height: 521px) {
  [data-layout] .bfl-dock [data-bflp="design"] .bw-step__in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  [data-layout] .bfl-dock .bw-opt--design .bw-opt__ic { height: 110px; }
  [data-layout] .bfl-dock__tt b { font-size: 28px; }
  .bfc-bar .bfc-prev { width: 58px; height: 58px; }
  .bfc-bar .bfc-next, .bfc-bar .bf-cta { height: 58px; font-size: 18px; }
  [data-layout] .bw-cprev .bw-seg { display: flex; }
  [data-layout] .bfl-dock [data-bflp="size"] .bfl-actions .bw-mhelp:nth-child(2) { display: inline-flex; }
}


/* Kleine Schrift klar lesbar: kräftigere Grautöne, etwas größer, kein Dünn-Rendering */
[data-layout] { --m-mute: #4b4e55; -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; text-rendering: optimizeLegibility; }
[data-layout] .bfl-dock__tt small { font-size: 14px; font-weight: 500; letter-spacing: 0; }
[data-layout] .bfl-dock .bf-grid .bf-color__name { font-size: 13.5px; font-weight: 500; line-height: 1.25; color: var(--m-ink); }
[data-layout] .bfl-dock .bf-grid .bf-color.is-active .bf-color__name { font-weight: 700; }
[data-layout] .bfl-dock .bw-opt--design .bw-opt__t small { font-size: 14px; line-height: 1.4; color: var(--m-mute); }
[data-layout] .bfl-dock .bw-opt--design .bw-opt__pr, [data-layout] .bfl-dock .bw-opt--pp .bw-opt__pr { font-size: 13px; font-weight: 600; padding: 5px 11px; }
[data-layout] .bfc-tile__t small { font-size: 13px; font-weight: 500; opacity: .85; }
[data-layout] .bfc-bar .bf-eq__part span { font-size: 13px; font-weight: 500; }
[data-layout] .bfl-dock [data-bflp="size"] .bf-field > span small { font-size: 13.5px; color: var(--m-mute); }
[data-layout] .bfl-dock [data-bflp="size"] .bf-outer { font-size: 14px; }
[data-layout] .bw-fh { font-size: 14px; }
[data-layout] .bw-cprev__n small, [data-layout] .bw-cbig__n small { font-size: 13.5px; font-weight: 500; }
[data-layout] .bw-seg button { font-size: 12.5px; }
[data-layout] .bw-tile figcaption span { font-size: 12.5px; }
.bfl-mini__m small, .bfl-mini__p small { font-size: 13px; color: rgba(18, 19, 22, .72); }

/* Flüssig auch auf schwachen Geräten: keine Echtzeit-Weichzeichner über dem 3D-Bild */
[data-layout] *, [data-layout] *::before, [data-layout] *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
[data-layout] .bfl-dock, [data-layout] .bfc-bar { background: rgba(255, 255, 255, .97); }
[data-layout] .bf-toolbar, [data-layout] .bf-roombar, [data-layout] .bfl-zoomlv { background: rgba(255, 255, 255, .95); }

/* Format-Schritt in der gleichen Formensprache wie Rahmenart und Farbe: runde weiße Karten, weicher Schatten, dunkler Auswahlring */
[data-layout] .bfl-dock [data-bflp="size"] .bf-inwrap { height: 60px; padding: 0 18px 0 20px; border: 0; border-radius: 18px; background: var(--m-card); box-shadow: 0 0 0 1px var(--m-line), 0 1px 2px rgba(15, 17, 21, .04); transition: box-shadow .2s; }
[data-layout] .bfl-dock [data-bflp="size"] .bf-inwrap:focus-within { box-shadow: 0 0 0 2px var(--m-acc), 0 0 0 6px var(--m-acc-soft); }
[data-layout] .bfl-dock [data-bflp="size"] .bf-pill { height: 44px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--m-card); box-shadow: 0 0 0 1px var(--m-line), 0 1px 2px rgba(15, 17, 21, .04); color: var(--m-ink); font: 600 14.5px/1 var(--m-font); transition: box-shadow .2s, transform .2s; }
[data-layout] .bfl-dock [data-bflp="size"] .bf-pill:hover:not(:disabled) { background: var(--m-card); border: 0; transform: translateY(-2px); box-shadow: 0 0 0 1px var(--m-line2), 0 10px 22px rgba(15, 17, 21, .1); }
[data-layout] .bfl-dock [data-bflp="size"] .bf-pill.is-active { background: var(--m-card); border: 0; color: var(--m-ink); font-weight: 700; box-shadow: 0 0 0 2px var(--m-acc), 0 0 0 6px var(--m-acc-soft); transform: none; }
[data-layout] .bfl-dock [data-bflp="size"] .bf-pill:disabled { opacity: .4; border: 0; box-shadow: 0 0 0 1px var(--m-line); }
[data-layout] .bfl-dock [data-bflp="size"] .bf-presets { gap: 10px; }
[data-layout] .bw-swap { width: 44px; height: 44px; margin-bottom: 8px; border-radius: 50%; background: var(--m-chip); color: var(--m-ink); }
[data-layout] .bw-swap:hover { background: #e4e4df; }
[data-layout] .bfl-dock [data-bflp="size"] .bfl-actions { gap: 10px; padding-top: 6px; border-top: 0; }
[data-layout] .bfl-dock [data-bflp="size"] .bfl-actions .bw-mhelp { padding: 11px 18px 11px 14px; border-radius: 16px; background: var(--m-chip); }
[data-layout] .bfl-dock [data-bflp="size"] .bfl-actions .bw-mhelp:hover { background: #e6e6e2; }
[data-layout] .bfl-dock [data-bflp="size"] .bfl-actions .bw-mhelp b { text-decoration: none; font-size: 14px; }
[data-layout] .bfl-dock [data-bflp="size"] .bf-pill.is-active, [data-layout] .bfl-dock [data-bflp="size"] .bf-pill[aria-pressed="true"] { background: var(--m-card) !important; color: var(--m-ink) !important; font-weight: 700; }

/* Warenkorb-Symbol: ausgegraut, solange nichts drin liegt */
.bfl-cartbtn.is-empty { background: #c9c8c4; box-shadow: none; cursor: default; color: rgba(255, 255, 255, .92) !important; }
.bfl-cartbtn.is-empty:hover { background: #c9c8c4; box-shadow: none; }

/* Gesamtpreis in der Leiste öffnet die Übersicht, sobald man in den Warenkorb legen kann */
.bfc-bar .bf-eq__part.is-link { cursor: pointer; border-radius: 10px; }
.bfc-bar .bf-eq__part.is-link span { display: inline-flex; align-items: center; gap: 4px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(18, 19, 22, .35); }
.bfc-bar .bf-eq__part.is-link span::after { content: ""; width: 11px; height: 11px; 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='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 15 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='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 15 6-6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.bfc-bar .bf-eq__part.is-link:hover span { text-decoration-color: var(--m-ink); }
.bfc-bar .bf-eq__part.is-link:focus-visible { outline: 2px solid var(--m-ink); outline-offset: 4px; }

/* Übersicht: runde Karten wie in den Schritten */
[data-layout] .bf-modal__card:has(.bfo) { width: min(520px, calc(100vw - 32px)); padding: 28px 28px 24px; border-radius: 28px; }
.bfo__h { margin: 0 0 18px; font: 600 26px/1.1 var(--m-font); letter-spacing: -.03em; color: var(--m-ink); }
.bfo__room + .bfo__room { margin-top: 18px; }
.bfo__room > header { display: flex; justify-content: space-between; align-items: baseline; margin: 0 2px 8px; font: 600 14px/1.2 var(--m-font); color: var(--m-ink); }
.bfo__room > header em { font-style: normal; font-weight: 500; color: var(--m-mute); }
.bfo__l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bfo__i { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 16px 10px 10px; border-radius: 20px; background: var(--m-card); box-shadow: 0 0 0 1px var(--m-line), 0 1px 2px rgba(15, 17, 21, .04); }
.bfo__sw { width: 60px; height: 60px; border-radius: 14px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(15, 17, 21, .08); }
.bfo__t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bfo__t b { font: 600 15.5px/1.25 var(--m-font); letter-spacing: -.01em; }
.bfo__t small { font: 400 14px/1.3 var(--m-font); color: var(--m-mute); }
.bfo__p { font: 600 16px/1 var(--m-font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bfo__e { margin: 0; padding: 18px 4px; font: 400 15px/1.4 var(--m-font); color: var(--m-mute); }
.bfo__sum { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 2px 16px; padding-top: 16px; border-top: 1px solid var(--m-line2); }
.bfo__sum span { font: 500 15px/1 var(--m-font); color: var(--m-mute); }
.bfo__sum strong { font: 600 32px/1 var(--m-font); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.bfo__a { display: flex; gap: 10px; }
.bfo__b { flex: 1 1 0; height: 52px; padding: 0 16px; border: 0; border-radius: 16px; background: var(--m-chip); color: var(--m-ink); font: 600 15px/1 var(--m-font); cursor: pointer; transition: background .15s; }
.bfo__b:hover { background: #e4e4df; }
.bfo__b.is-main { background: var(--m-ink); color: #fff; }
.bfo__b.is-main:hover { background: #2b2d31; }
@media (max-width: 600px) { [data-layout] .bf-modal__card:has(.bfo) { padding: 22px 18px 18px; } .bfo__a { flex-direction: column-reverse; } .bfo__b { flex: none; width: 100%; height: 54px; } .bfo__sum strong { font-size: 28px; } }

/* Handy und Tablet hochkant: Farbnamen immer sichtbar, Farbmuster gut greifbar */
@media (max-width: 900px) and (min-height: 521px) {
  [data-layout] .bfl-dock .bf-grid .bf-color__name, [data-layout] .bfl-dock .bf-grid:has(.bf-color:nth-child(21)) .bf-color__name { display: block !important; }
}
@media (min-width: 601px) and (max-width: 900px) and (min-height: 521px) {
  [data-layout] .bfl-dock .bf-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)) !important; gap: 8px 4px; }
  [data-layout] .bfl-dock .bf-grid .bf-color__img { width: 58px; height: 58px; }
}

/* Tablet quer (Touch, breiter als 900 px): Farbnamen und größere Muster wie hochkant */
@media (pointer: coarse) and (min-width: 901px) {
  [data-layout] .bfl-dock .bf-grid .bf-color__name, [data-layout] .bfl-dock .bf-grid:has(.bf-color:nth-child(21)) .bf-color__name { display: block !important; }
  [data-layout] .bfl-dock .bf-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)) !important; gap: 8px 4px; }
  [data-layout] .bfl-dock .bf-grid .bf-color__img { width: 54px; height: 54px; }
  [data-layout] .bfl-dock .bf-grid .bf-color { gap: 6px; }
  [data-layout] .bfl-dock .bf-grid .bf-color__name { font-size: 12.5px; }
  [data-layout] .bfl-dock .bf-pill, [data-layout] .bfl-dock .bw-opt { min-height: 48px; }
  [data-layout] .bfl-dock__x { width: 46px; height: 46px; }
}

/* Schmale Breiten (Tablet): Hilfe-Knopf oben rechts unter dem Warenkorb, damit er das Fenster nicht überdeckt */
@media (max-width: 1200px) and (min-height: 521px) {
  .bfl-help { bottom: auto; top: 72px; }
  .bfl-helppop { bottom: auto; top: 126px; }
}

/* Tablet quer: in der Leiste zeigt nur der aktive Schritt Text, die anderen nur Symbole, nichts wird abgeschnitten */
@media (min-width: 901px) and (max-width: 1180px) and (min-height: 521px) {
  [data-layout] .bfc-bar .bfc-tile:not(.is-on) { grid-template-columns: 40px; flex: 0 0 auto; min-width: 0; padding-right: 8px; }
  [data-layout] .bfc-bar .bfc-tile:not(.is-on) .bfc-tile__t, [data-layout] .bfc-bar .bfc-tile:not(.is-on) .bfc-tile__sw { display: none; }
  [data-layout] .bfc-bar .bfc-tile.is-on { flex: 1 1 auto; }
}

/* Eingabefelder: nur ein Fokusring (am Kasten), kein zweiter Ring um das Zahlenfeld */
[data-layout] .bf-inwrap input, [data-layout] .bf-inwrap input:focus, [data-layout] .bf-inwrap input:focus-visible, [data-layout] .bf-inwrap input:active { outline: 0 !important; box-shadow: none !important; border-color: transparent !important; background: transparent !important; border-radius: 0 !important; }
[data-layout] .bfl-dock [data-bflp="size"] .bf-inwrap:focus-within { box-shadow: 0 0 0 2px var(--m-acc), 0 0 0 6px var(--m-acc-soft); }

/* Schritt-Felder unten sind erkennbar anklickbar: weiße Karten mit Rand und Pfeil, nur der aktive Schritt ist dunkel */
@media (min-width: 901px) {
  [data-layout] .bfc-bar .bfc-tile:not(.is-on):not(.is-locked) { background: var(--m-card); box-shadow: 0 0 0 1px var(--m-line2), 0 1px 2px rgba(15, 17, 21, .05); padding-right: 32px; cursor: pointer; transition: box-shadow .15s, transform .15s; }
  [data-layout] .bfc-bar .bfc-tile:not(.is-on):not(.is-locked):hover { box-shadow: 0 0 0 1.5px var(--m-ink), 0 8px 18px rgba(15, 17, 21, .1); transform: translateY(-1px); }
  [data-layout] .bfc-bar .bfc-tile:not(.is-on):not(.is-locked)::after { content: ""; position: absolute; right: 11px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: var(--m-mute); -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='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%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='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat; }
  [data-layout] .bfc-bar .bfc-tile.is-locked { background: transparent; box-shadow: inset 0 0 0 1px var(--m-line); cursor: not-allowed; }
}
@media (min-width: 901px) and (max-width: 1180px) and (min-height: 521px) {
  [data-layout] .bfc-bar .bfc-tile:not(.is-on):not(.is-locked) { padding-right: 8px; }
  [data-layout] .bfc-bar .bfc-tile:not(.is-on):not(.is-locked)::after { display: none; }
}

/* Schritt-Felder: Rahmen und Anheben beim Darüberfahren werden nicht mehr abgeschnitten, Text bekommt mehr Platz */
[data-layout] .bfc-bar .bfc-tiles { padding: 5px 4px; margin: -5px -4px; }
[data-layout] .bfc-bar .bfc-tile { min-width: 140px; }
[data-layout] .bfc-bar .bfc-tile.is-on { flex-grow: 1.25; min-width: 170px; }
@media (min-width: 901px) and (max-width: 1500px) {
  [data-layout] .bfc-bar .bfc-tile:not(.is-on) .bfc-tile__sw { display: none; }
}
@media (min-width: 901px) and (max-width: 1500px) {
  [data-layout] .bfc-bar .bfc-tile { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; padding: 6px 24px 6px 6px; }
  [data-layout] .bfc-bar .bfc-tile:not(.is-on):not(.is-locked) { padding-right: 26px; }
  [data-layout] .bfc-bar .bfc-tile__ic { width: 36px; height: 36px; border-radius: 11px; }
  [data-layout] .bfc-bar .bfc-tile__ic svg { width: 19px; height: 19px; }
  [data-layout] .bfc-bar .bfc-tile:not(.is-on):not(.is-locked)::after { right: 8px; }
  [data-layout] .bfc-bar .bfc-tile__t b { font-size: 14px; }
}

/* Kleines Hinweisfeld unter den Werkzeug-Symbolen */
.bfl-tip { position: absolute; z-index: 60; padding: 6px 10px; border-radius: 8px; background: #121316; color: #fff; font: 500 12.5px/1 var(--m-font); white-space: nowrap; pointer-events: none; box-shadow: 0 6px 16px rgba(15, 17, 21, .28); animation: bfltip .12s ease-out; }
.bfl-tip[hidden] { display: none; }
.bfl-tip::before { content: ""; position: absolute; top: -4px; left: var(--tip-x, 50%); width: 8px; height: 8px; margin-left: -4px; background: #121316; transform: rotate(45deg); border-radius: 1px; }
@keyframes bfltip { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@media (min-width: 901px) and (max-width: 1500px) {
  [data-layout] .bfc-bar .bfc-tile.is-on { grid-template-columns: 36px minmax(0, 1fr) auto; }
}

@media (max-width: 600px) {
  [data-layout] .bfc-bar .bf-cta { white-space: normal; line-height: 1.12; text-align: center; padding: 0 12px; font-size: 15px; min-width: 104px; max-width: 46%; overflow-wrap: anywhere; hyphens: auto; }
  [data-layout] .bfc-bar .bf-eq__part.is-total { min-width: 0; flex: 1 1 auto; }
  [data-layout] .bfc-bar .bf-eq__part.is-total span { white-space: normal; line-height: 1.15; font-size: 12px; }
}

[data-layout] .bfl-lang svg.bfl-flag, .bfl-langmenu svg.bfl-flag { width: 24px; height: 24px; fill: initial; stroke: none; display: block; }
[data-layout] .bfl-lang svg.bfl-flag circle[fill="none"], .bfl-langmenu svg.bfl-flag circle[fill="none"] { stroke: rgba(0, 0, 0, .18); }
[data-layout] .bfl-lang svg.bfl-flag path[stroke], .bfl-langmenu svg.bfl-flag path[stroke] { fill: none; }
[data-layout] .bfl-lang[aria-expanded="true"] { background: #f0eee9; }
.bfl-langmenu { position: absolute; z-index: 70; min-width: 188px; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 18px 44px rgba(15, 17, 21, .22), 0 0 0 1px rgba(15, 17, 21, .06); animation: bfltip .14s ease-out; }
.bfl-langmenu[hidden] { display: none; }
.bfl-langmenu__i { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px; color: #15171a; text-decoration: none; font: 560 15px/1.2 var(--m-font, system-ui, sans-serif); min-height: 44px; box-sizing: border-box; }
.bfl-langmenu__i:hover, .bfl-langmenu__i:focus-visible { background: #f3f1ec; outline: 0; }
.bfl-langmenu__i.is-cur { background: #f3f1ec; font-weight: 700; }
.bfl-langmenu__i.is-cur::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: #1d7a46; }

.bfl-lang--top { display: none; position: absolute; z-index: 13; top: 16px; right: 70px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: #fff; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); cursor: pointer; }
.bfl-lang--top svg.bfl-flag { width: 26px; height: 26px; }
@media (max-width: 600px) and (min-height: 521px) {
  .bfl-buehne .bfl-lang--top { display: inline-flex; right: 66px; top: 16px; }
}

.bfl-langload { position: fixed; inset: 0; z-index: 100002; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: rgba(236, 233, 227, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .2s ease; pointer-events: all; }
.bfl-langload.is-on { opacity: 1; }
.bfl-langload__f { position: relative; width: 64px; height: 64px; display: grid; place-items: center; }
.bfl-langload__f svg.bfl-flag { width: 38px; height: 38px; }
.bfl-langload__f i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(17, 18, 20, .12); border-top-color: #111214; animation: bflspin .8s linear infinite; }
.bfl-langload b { font: 600 15px/1.2 var(--m-font, system-ui, sans-serif); color: #15171a; letter-spacing: -.005em; }
@keyframes bflspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bfl-langload, .bfl-langload__f i { animation-duration: 2s; transition: none; } }

/* Lesbarkeit in allen Sprachen: nie mitten im Wort umbrechen, nichts über den Rand */
[data-layout] .bfl-dock .bw-opt--design .bw-opt__t small { -webkit-line-clamp: 8; overflow-wrap: break-word; hyphens: manual; }
@media (min-width: 601px) {
  [data-layout] .bf-chip__t small { white-space: normal; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: normal; }
}
@media (min-width: 901px) {
  [data-layout] .bfc-tile { flex: 1 1 auto; min-width: min-content; grid-template-columns: 32px minmax(min-content, 1fr) auto; gap: 8px; padding: 6px 10px 6px 6px; }
  [data-layout] .bfc-tile__ic { width: 32px; height: 32px; border-radius: 10px; }
  [data-layout] .bfc-tile__ic svg { width: 18px; height: 18px; }
  [data-layout] .bfc-tile__t { gap: 3px; min-width: min-content; }
  [data-layout] .bfc-tile__t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow: hidden; text-overflow: clip; overflow-wrap: normal; word-break: normal; hyphens: manual; font-size: 14px; line-height: 1.2; }
  [data-layout] .bfc-tile__t small { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.12; overflow-wrap: normal; }
  [data-layout] .bfc-tile__sw { display: none; }
  [data-layout] .bfc-bar .bf-eq__part.is-total { flex: 0 0 auto; max-width: none; overflow: visible; }
  [data-layout] .bfc-bar .bf-eq__part.is-total span { white-space: normal; max-width: 150px; line-height: 1.15; overflow: visible; text-overflow: clip; }
  [data-layout] .bfc-bar .bf-eq__part.is-total strong { white-space: nowrap; font-size: 26px; overflow: visible; }
  [data-layout] .bfc-bar .bf-cta { padding: 0 18px; }
  [data-layout] .bfc-bar .bf-pricing { gap: 12px; padding-left: 12px; flex: 0 0 auto; }
  [data-layout] .bfc-bar .bf-eq { flex: 0 0 auto; min-width: max-content; }
}
@media (min-width: 1500px) {
  [data-layout] .bfc-tile__sw { display: block; width: 22px; height: 22px; border-radius: 7px; }
}

/* Einheitliche Größen: alle Kacheln einer Auswahl sind gleich groß, egal wie viel Text sie haben */
[data-layout] .bfl-dock .bw-step__in:has(> .bw-opt) { align-items: stretch; grid-auto-rows: 1fr; }
[data-layout] .bfl-dock .bw-step__in > .bw-opt { height: 100%; box-sizing: border-box; align-items: center; }
[data-layout] .bfl-dock .bf-grid { grid-auto-rows: 1fr; align-items: stretch; }
[data-layout] .bfl-dock .bf-grid > .bf-color { height: 100%; box-sizing: border-box; }
@media (min-width: 901px) {
  [data-layout] .bfc-tile { flex: 1 1 0; }
}
[data-layout] .bfl-dock [data-bflp="size"] .bf-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); align-content: start; }
[data-layout] .bfl-dock [data-bflp="size"] .bf-presets .bf-pill { width: 100%; justify-content: center; text-align: center; white-space: nowrap; padding-left: 8px; padding-right: 8px; }
[data-layout] .bfl-dock [data-bflp="size"] .bf-presets .bw-fh { grid-column: 1 / -1; margin: 0 0 2px; }
[data-layout] .bfl-dock [data-bflp="size"] .bf-inwrap input { padding: 0 32px 0 0; min-width: 0; width: 100%; font-size: 22px; }

/* Ruhige Leiste: alle Felder gleich groß, nichts springt beim Auswählen oder Doppelklicken */
.bfc-bar, .bfl-dock, .bf-toolbar { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.bfc-bar button, .bfl-dock button, .bfc-tile { touch-action: manipulation; }
@media (min-width: 901px) and (min-height: 521px) {
  [data-layout] .bfc-bar .bfc-tiles { position: relative; gap: 6px; }
  [data-layout] .bfc-bar .bfc-tile,
  [data-layout] .bfc-bar .bfc-tile.is-on,
  [data-layout] .bfc-bar .bfc-tile:not(.is-on):not(.is-locked),
  [data-layout] .bfc-bar .bfc-tile.is-locked:not(.is-on) { flex: 1 1 0; min-width: 0; grid-template-columns: 32px minmax(0, 1fr); gap: 8px; padding: 6px 40px 6px 8px; container-type: inline-size; container-name: bfctile; transform: none; transition: background .15s, box-shadow .15s; }
  [data-layout] .bfc-bar .bfc-tile:not(.is-on):not(.is-locked):hover { transform: none; }
  [data-layout] .bfc-bar .bfc-tile__sw { display: none; }
  [data-layout] .bfc-bar .bfc-tile__t b { overflow-wrap: break-word; }
  [data-layout] .bfc-bar .bfc-tiles .bfc-next.is-inrow { position: absolute; top: 50%; margin: -15px 0 0; width: 30px; height: 30px; z-index: 3; background: #fff; color: var(--m-ink); border: 0; box-shadow: 0 1px 4px rgba(15, 17, 21, .3); transition: none; }
  [data-layout] .bfc-bar .bfc-tiles .bfc-next.is-inrow:hover { background: #f1eee9; }
}
@container bfctile (max-width: 168px) {
  .bfc-tile__ic { display: none; }
}
@container bfctile (max-width: 168px) {
  .bfc-tile__t { grid-column: 1 / -1; }
}
@media (min-width: 901px) and (min-height: 521px) {
  [data-layout] .bfc-bar .bfc-tile:not(.is-on) .bfc-tile__t, [data-layout] .bfc-bar .bfc-tile .bfc-tile__t { display: flex; }
}
@media (min-width: 901px) and (max-width: 1199px) and (min-height: 521px) {
  [data-layout] .bfc-bar .bfc-tiles { gap: 5px; }
  [data-layout] .bfc-bar .bfc-tile,
  [data-layout] .bfc-bar .bfc-tile.is-on,
  [data-layout] .bfc-bar .bfc-tile:not(.is-on):not(.is-locked),
  [data-layout] .bfc-bar .bfc-tile.is-locked:not(.is-on) { padding: 6px 33px 6px 9px; }
  [data-layout] .bfc-bar .bfc-tile__t small { font-size: 11.5px; }
  [data-layout] .bfc-bar .bfc-tile__t b { font-size: 13px; }
  [data-layout] .bfc-bar .bf-eq__part.is-total span { display: none; }
  [data-layout] .bfc-bar .bfc-tiles .bfc-next.is-inrow { width: 24px; height: 24px; margin-top: -12px; }
  [data-layout] .bfc-bar .bf-cta { padding: 0 14px; font-size: 14.5px; }
}
@media (min-width: 601px) and (max-width: 1000px) and (min-height: 521px) {
  [data-layout] .bfl-buehne .bf-toolbar { min-width: 0; }
  [data-layout] .bfl-buehne .bf-toolbar .bf-ibtn { flex: 0 1 40px; min-width: 28px; width: auto; }
}

@media (max-width: 600px) {
  [data-layout] .bfc-bar .bf-cta { overflow-wrap: normal; hyphens: manual; word-break: normal; font-size: 14.5px; padding: 0 10px; min-width: 112px; }
}

/* Handy quer: Symbole mit kurzem Titel, Preis und Knopf behalten ihre Größe */
@media (max-width: 900px) and (max-height: 520px) {
  [data-layout] .bfc-bar .bfc-tiles { flex: 1 1 0; min-width: 0; overflow: hidden; gap: 4px; }
  [data-layout] .bfc-bar .bfc-tile,
  [data-layout] .bfc-bar .bfc-tile.is-on,
  [data-layout] .bfc-bar .bfc-tile:not(.is-on),
  [data-layout] .bfc-bar .bfc-tile:not(.is-on):not(.is-locked),
  [data-layout] .bfc-bar .bfc-tile.is-locked:not(.is-on) { flex: 1 1 0; min-width: 0; grid-template-columns: 1fr; justify-items: center; align-content: center; text-align: center; padding: 4px 2px; gap: 2px; }
  [data-layout] .bfc-bar .bfc-tile__ic { width: 30px; height: 30px; }
  [data-layout] .bfc-bar .bfc-tile__t { align-items: center; display: flex; }
  [data-layout] .bfc-bar .bfc-tile__t b, [data-layout] .bfc-bar .bfc-tile__sw { display: none; }
  [data-layout] .bfc-bar .bfc-tile__t small { font-size: 11px; white-space: normal; line-height: 1.1; text-align: center; opacity: .85; }
  [data-layout] .bfc-bar .bfc-tile:not(.is-locked)::after { display: none; }
  [data-layout] .bfc-bar .bfc-tile.is-locked::after { left: auto; right: 6px; top: 4px; bottom: auto; margin: 0; width: 16px; height: 16px; background-size: 10px; }
  [data-layout] .bfc-bar .bf-pricing { flex: 0 0 auto; width: auto; max-width: none; }
  [data-layout] .bfc-bar .bf-cta { flex: 0 0 auto; width: auto; padding: 0 16px; min-width: 0; max-width: none; white-space: nowrap; }
  [data-layout] .bfc-bar .bf-eq { flex: 0 0 auto; min-width: max-content; }
  [data-layout] .bfc-bar .bf-eq__part.is-total span { display: none; }
}
@media (max-width: 900px) and (max-height: 520px) {
  [data-layout] .bfl-dock .bw-opt--design { grid-template-columns: minmax(0, 1fr); }
  [data-layout] .bfl-dock .bw-opt--design > * { grid-column: 1; }
}
[data-layout] .bfc-bar .bfc-tiles .bfc-next.is-inrow, [data-layout] .bfc-bar .bfc-tiles .bfc-next.is-inrow:hover { transform: none; }
[data-layout] .bfc-bar .bfc-tiles .bfc-next.is-inrow .bfc-next__ar { width: 100%; height: 100%; border-radius: 50%; background: transparent; transform: none; }
[data-layout] .bfc-bar .bfc-tiles .bfc-next.is-inrow .bfc-next__ar svg { width: 15px; height: 15px; stroke: var(--m-ink); stroke-width: 2.4; transform: none; }
[data-layout] .bfc-bar .bfc-tiles .bfc-next.is-inrow, [data-layout] .bfc-bar .bfc-tiles .bfc-next.is-inrow * { color: var(--m-ink); }

@media (min-width: 901px) and (min-height: 521px) {
  [data-layout] .bfc-bar .bfc-tile.is-locked::after { left: auto; right: 12px; top: 50%; bottom: auto; margin: -9px 0 0; width: 18px; height: 18px; border-radius: 0; background-color: transparent; background-size: 15px; box-shadow: none; }
}
