/* Konfigurator – Layout wie Altplattform: Schritt-Leiste | Bühne | Entwurf */
.cfg-pick { display: flex; flex-direction: column; gap: var(--gap); }
.cfg-pick-hero h1 { font-size: 34px; }
.cfg-pick-check { white-space: nowrap; }
.cfg-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.cfg-cust { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; flex-wrap: wrap; }
.cfg-cust:hover { border-color: var(--navy); background: var(--sky-2); }
.cfg-cust .cell-2 { flex: 1; min-width: 0; }
.cfg-cust .cell-2 small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cfg { display: grid; grid-template-columns: 76px minmax(0, 1fr) 300px; gap: var(--gap); align-items: start; }
.cfg-rail { position: sticky; top: calc(var(--top-h) + 24px); max-height: calc(100vh - var(--top-h) - 40px); overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 8px 6px; display: flex; flex-direction: column; gap: 4px; scrollbar-width: thin; }
.cfg-rail-step { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border: 1px solid transparent; border-radius: 12px; background: none; }
.cfg-rail-step:hover { background: var(--sky-2); }
.cfg-rail-step.active { background: var(--sky); border-color: var(--navy); }
.cfg-rail-n { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); background: #fff; }
.cfg-rail-step.done .cfg-rail-n { border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }
.cfg-rail-step.active .cfg-rail-n { background: var(--navy); border-color: var(--navy); color: #fff; }
.cfg-rail-label { font-size: 9.5px; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.2; }
.cfg-rail-step.active .cfg-rail-label { color: var(--navy); }

.cfg-stage { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.cfg-stage-head { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.cfg-stage-head h1 { font-size: 32px; margin: 2px 0 4px; }
.cfg-lang { align-self: flex-start; }
.cfg-content { padding: 22px 24px; min-height: 360px; animation: fade .2s; }
.cfg-foot { display: flex; justify-content: space-between; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: rgba(255,255,255,.96); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.cfg-draftbar { margin-bottom: 18px; }
.cfg-section { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.cfg-section h3 { font-size: 20px; }
.cfg-narrow { max-width: 440px; }

.cfg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.cfg-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cfg-opt { position: relative; display: flex; flex-direction: column; text-align: left; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; padding: 0; transition: border-color .15s, box-shadow .15s; }
.cfg-opt:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.cfg-opt.selected { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.cfg-opt-media { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--sky-2); border-bottom: 1px solid var(--line); color: var(--navy); }
.cfg-opt-media img { width: 72%; height: 88%; object-fit: contain; background: #fff; border-radius: 6px; mix-blend-mode: multiply; }
.cfg-opt-media .opt-icon { width: 55%; height: 75%; }
.cfg-opt-radio { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; }
.cfg-opt.multi .cfg-opt-radio { border-radius: 6px; }
.cfg-opt.selected .cfg-opt-radio { background: var(--navy); border-color: var(--navy); }
.cfg-opt.selected .cfg-opt-radio::after { content: ''; position: absolute; left: 7px; top: 3.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cfg-opt-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.cfg-opt-body b { font-size: 14.5px; }
.cfg-opt-body small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cfg-opt-body small.plus { color: var(--blue); }
.cfg-opt-body s { color: var(--muted); font-weight: 500; }
.cfg-opt.text { padding: 18px 16px; }
.cfg-opt.text .cfg-opt-body { padding: 0; }
.cfg-opt.text .cfg-opt-radio { top: 16px; }
.opt-icon .ia { fill: var(--blue-soft); fill-opacity: .35; }
.opt-icon .ia.soft { fill-opacity: .14; }
.opt-icon .ia.dot { fill-opacity: 1; stroke: none; }
.opt-icon .white { fill: #fff; }
.opt-icon .ib { stroke: var(--blue-soft); }
.opt-icon .arm { stroke: var(--sky); }

.cfg-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cfg-cat { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 18px 20px; border: 1.5px solid var(--line); border-radius: var(--r); background: linear-gradient(135deg, #fff, var(--sky-2)); }
.cfg-cat:hover { border-color: var(--navy); }
.cfg-cat b { font-size: 22px; letter-spacing: -.02em; }
.cfg-cat-price { margin-top: 8px; font-weight: 800; color: var(--blue); }
.cfg-cat-arrow { position: absolute; top: 18px; right: 18px; color: var(--muted); }
.cfg-catbox { display: flex; flex-direction: column; padding: 12px 16px; border-radius: var(--r); background: var(--sky); }
.cfg-catbox b { font-size: 18px; }
.cfg-hits { display: flex; flex-direction: column; gap: 6px; }
.cfg-hit { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; text-align: left; }
.cfg-hit:hover { border-color: var(--line-2); }
.cfg-hit.selected { border-color: var(--navy); }
.cfg-hit .cell-2 { flex: 1; }
.cfg-swatch { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); flex: none; }
.cfg-designs .row { gap: 8px; }
.cfg-design { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line-2); padding: 0; }
.cfg-design.selected { border-color: var(--navy); box-shadow: 0 0 0 3px var(--sky); }
.cfg-num { position: relative; display: flex; }
.cfg-num input { flex: 1; padding-right: 44px !important; }
.cfg-num span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
.cfg-color { display: flex; align-items: center; gap: 10px; }
.cfg-color select { flex: 1; }
.cfg-color-dot { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; background: #fff; }
.cfg-color-dot.match { background: conic-gradient(#dce8f6 0 25%, #fff 0 50%, #7a9ccb 0 75%, #fff 0); }
.cfg-mono { padding: 24px; border-radius: var(--r); background: var(--sky-2); border: 1px dashed var(--line-2); text-align: center; font-size: 34px; font-weight: 800; letter-spacing: .08em; }
.cfg-mono.script { font-family: Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: 0; }
.cfg-review { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px; border-radius: var(--r); }
.cfg-review b { display: inline-flex; align-items: center; gap: 6px; }
.cfg-review p { font-size: 13.5px; margin-top: 4px; }
.cfg-review.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid #f0d9c2; }
.cfg-review.ok { background: var(--ok-bg); color: var(--ok); }
.cfg-reviewlist { border: 1px solid var(--line); border-radius: var(--r); padding: 6px 16px; }
.cfg-reviewlist div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cfg-reviewlist div:last-child { border-bottom: 0; }
.cfg-reviewlist b.open { color: var(--muted); font-weight: 600; }
.cfg-reviewlist .total b { font-size: 18px; color: var(--blue); }
.cfg-qty { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 50px 0; }

.cfg-cart-progress { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); }
.cfg-cart-item { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.cfg-ci-top { display: flex; gap: 14px; align-items: flex-start; }
.cfg-ci-n { font-weight: 800; color: var(--blue); font-size: 14px; }
.cfg-ci-copy { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cfg-ci-copy small { color: var(--muted); font-size: 12.5px; }
.cfg-ci-price { display: flex; flex-direction: column; align-items: flex-end; }
.cfg-ci-price small { color: var(--muted); }
.cfg-ci-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cfg-ci-details { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); align-self: flex-start; }
.cfg-breakdown { list-style: none; margin: 0; padding: 10px 12px; background: var(--sky-2); border-radius: var(--r-sm); font-size: 13px; }
.cfg-breakdown li { display: flex; justify-content: space-between; padding: 3px 0; }
.cfg-minbox { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: var(--r); background: var(--warn-bg); border: 1px solid #f0d9c2; }
.cfg-minbox b { display: inline-flex; align-items: center; gap: 6px; color: var(--warn); }
.cfg-coupon { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); }
.cfg-coupon .small { display: inline-flex; align-items: center; gap: 6px; }
.cfg-coupon form { flex-wrap: nowrap; }
.cfg-coupon .input { flex: 1; text-transform: uppercase; }
.cfg-cart-sum { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.cfg-cart-sum div { display: flex; justify-content: space-between; }
.cfg-cart-sum .total { font-size: 20px; font-weight: 800; padding-top: 6px; }

.cfg-summary { position: sticky; top: calc(var(--top-h) + 24px); }
.cfg-sum-title { font-size: 24px; margin: 6px 0 12px; }
.cfg-sum-cust { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r-sm); background: var(--sky-2); margin-bottom: 10px; }
.cfg-sum-rows div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 13px; }
.cfg-sum-rows span { color: var(--muted); }
.cfg-sum-rows b { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.cfg-sum-price { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.cfg-sum-big { font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: var(--blue); line-height: 1.1; }
.cfg-sum-cart { width: 100%; display: flex; flex-direction: column; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--sky-2); text-align: left; }
.cfg-sum-cart b { font-size: 20px; }
.cfg-prev-toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; border: 0; background: none; padding: 0; font-size: 12.5px; font-weight: 600; color: var(--blue); }
.cfg-sum-preview { margin-top: 8px; background: var(--sky-2); border-radius: var(--r); padding: 4px; }
.cfg-sum-preview .shirt-svg { width: 100%; height: auto; display: block; }
.cfg-saved { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; }
.shirt-svg { display: block; width: 100%; height: auto; }
.dim-line { stroke: var(--blue); stroke-width: 1.2; }
.dim-dash { stroke: var(--blue); stroke-width: 1.2; stroke-dasharray: 4 4; opacity: .7; }
.dim-dash.active { stroke: var(--blue-2); opacity: 1; stroke-width: 1.6; }
.dim-pill rect { fill: #fff; stroke: var(--line-2); }
.dim-pill text { font-family: var(--font); font-size: 11.5px; font-weight: 700; fill: var(--navy); }
.dim-pill.active rect { fill: var(--blue); stroke: var(--blue); }
.dim-pill.active text { fill: #fff; }
/* Demo-Hemd: Klick zum Vergrößern, Umschalter vorn/hinten, Lightbox */
.sp-wrap { position: relative; width: 100%; container-type: inline-size; }
.sp-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; border-radius: var(--r); }
.sp-zoom:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.sp-hint { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,.88); border: 1px solid var(--line); color: var(--navy); font-size: 11.5px; font-weight: 600; opacity: .7; transition: opacity .15s; pointer-events: none; }
.sp-wrap .sp-hint .ic { width: 13px; height: 13px; max-height: none; flex: none; }
.sp-zoom:hover .sp-hint, .sp-zoom:focus-visible .sp-hint { opacity: 1; }
.sp-views { position: absolute; left: 6px; bottom: 6px; display: inline-flex; padding: 2px; gap: 2px; border-radius: 999px; background: rgba(255,255,255,.9); border: 1px solid var(--line); }
.sp-views button { border: 0; background: none; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.sp-views button.on { background: var(--navy); color: #fff; }
.sp-lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(11,31,58,.55); animation: fade .2s; overflow-y: auto; }
.sp-lightbox-card { position: relative; width: min(100%, 620px); background: var(--sky-2); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 44px 12px 12px; }
.sp-lightbox-card .shirt-svg { width: 100%; height: auto; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); }
.sp-lightbox-close { position: absolute; right: 10px; top: 10px; z-index: 1; }
.sp-lightbox-card .sp-views { left: 12px; bottom: auto; top: 13px; }
@media (hover: none) { .sp-hint { opacity: 1; } }
@container (max-width: 320px) { .sp-hint-text { display: none; } .sp-hint { padding: 5px; } }
@media (max-width: 760px) {
  .sp-lightbox { padding: 10px; }
  .sp-lightbox-card { padding: 44px 4px 4px; }
}
.mono.script { font-family: Georgia, serif; font-style: italic; }
.mono.block { font-family: var(--font); font-weight: 700; letter-spacing: .08em; }

@media (max-width: 1280px) {
  .cfg { grid-template-columns: 76px minmax(0, 1fr); }
  .cfg-summary { grid-column: 2; position: static; }
  .cfg-sum-preview { max-width: 280px; }
}
@media (max-width: 760px) {
  .cfg { grid-template-columns: 1fr; }
  .cfg-rail { position: sticky; top: calc(var(--top-h) + 12px); z-index: 5; flex-direction: row; overflow-x: auto; max-height: none; padding: 6px; }
  .cfg-rail-step { flex: none; min-width: 58px; }
  .cfg-summary { grid-column: 1; }
  .cfg-stage-head { flex-direction: column; padding: 18px 16px 14px; }
  .cfg-stage-head h1 { font-size: 26px; }
  .cfg-content { padding: 18px 16px; }
  .cfg-foot { padding: 12px 16px; bottom: 84px; }
  .cfg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cfg-cats { grid-template-columns: 1fr; }
  .cfg-ci-top { flex-wrap: wrap; }
}
/* Lightbox-Leiste: Ansicht + Maße ein/aus */
.sp-lightbox-bar { position: absolute; left: 12px; top: 10px; display: flex; gap: 8px; align-items: center; }
.sp-lightbox-bar .sp-views { position: static; }
.sp-dims-btn { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.9); font-size: 11.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.sp-dims-btn.on { background: var(--navy); border-color: var(--navy); color: #fff; }
