/* Euantos Designs – Shop (Konfigurator, Positions-Grafiken, Lightbox, Warenkorb).
   Wird nur auf Shop-Seiten geladen, baut auf den Variablen aus style.css auf. */

/* Das hidden-Attribut gewinnt immer – auch gegen display: flex/grid der Komponenten-Klassen. */
[hidden] { display: none !important; }

/* ---------- Galerie + Zoom (Layout/Sticky der Galerie steht in style.css) ---------- */
.produkt-gallery-main::after {
  content: ''; position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008ED1' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12); pointer-events: none;
}
.produkt-gallery-hint { font-size: 0.86rem; color: #4a5560; margin-top: 0.5rem; }
/* „Auf einen Blick“ + Kategorie-Einleitung auf den statischen Produktseiten (scripts/build-produkte.py) */
.produkt-intro { font-size: 0.92rem; color: #4a5560; margin: 0.9rem 0 0; line-height: 1.55; }
.produkt-facts { margin: 0.9rem 0 0; padding: 0.2rem 0 0; border-top: 1px solid var(--color-border); font-size: 0.86rem; }
.produkt-facts > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0 0.8rem; padding: 0.45rem 0; border-bottom: 1px solid var(--color-border); }
.produkt-facts dt { font-weight: 600; color: var(--color-dark); }
.produkt-facts dd { margin: 0; color: #4a5560; }

.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(12, 20, 26, 0.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox-stage { position: relative; width: min(92vw, 1100px); height: min(86vh, 1100px); overflow: hidden; border-radius: var(--radius); background: #fff; cursor: zoom-in; touch-action: pan-y; }
.lightbox-stage.is-zoomed { cursor: zoom-out; touch-action: none; }
.lightbox-stage img { width: 100%; height: 100%; object-fit: contain; transition: transform 180ms ease; transform-origin: center; user-select: none; -webkit-user-drag: none; }
.lightbox-btn { position: absolute; border: 0; background: rgba(255,255,255,0.14); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-btn:focus-visible { background: var(--color-primary); outline: none; }
@media (hover: hover) {
  .lightbox-btn:hover { background: var(--color-primary); outline: none; }
}
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-caption { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 0.85rem; background: rgba(0,0,0,0.35); padding: 0.35rem 0.9rem; border-radius: 999px; white-space: nowrap; }
@media (max-width: 700px) {
  .lightbox-stage { width: 100vw; height: 78vh; border-radius: 0; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; transform: none; }
  .lightbox-caption { bottom: 74px; }
}

/* ---------- Konfigurator ---------- */
.cfg-step { border-top: 1px solid var(--color-border); padding: var(--space-md) 0; }
.cfg-step:first-of-type { border-top: 0; padding-top: 0; }
.cfg-step-title { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; margin: 0 0 0.8rem; }
.cfg-step-num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--color-primary); color: #fff; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; }
.cfg-step-sub { font-size: 0.92rem; color: #3f4a54; margin: -0.3rem 0 0.9rem; line-height: 1.5; }

.cfg-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 0.5rem; }
.cfg-size { border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 0.4rem 0.4rem 0.5rem; text-align: center; background: #fff; transition: border-color var(--transition); }
.cfg-size:focus-within, .cfg-size.has-qty { border-color: var(--color-primary); background: var(--color-primary-tint); }
.cfg-size label { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.25rem; }
.cfg-size small { display: block; font-size: 0.66rem; color: #8a8a8a; margin-top: 0.15rem; }
.cfg-size input { width: 100%; box-sizing: border-box; border: 1px solid var(--color-border); border-radius: 6px; padding: 0.35rem 0.2rem; text-align: center; font: inherit; font-size: 0.95rem; background: #fff; }
.cfg-size input:focus { outline: none; border-color: var(--color-primary); }
.cfg-total-qty { margin-top: 0.7rem; font-size: 0.88rem; }
.cfg-total-qty strong { font-size: 1rem; }

.pos-views { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; }
.pos-view { border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg-light); padding: 0.6rem 0.6rem 0.4rem; text-align: center; }
.pos-view-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; }
.pos-svg { width: 100%; max-width: 230px; height: auto; display: block; margin: 0 auto; }
.pos-garment { fill: #fff; stroke: #2b3a45; stroke-width: 1.6; stroke-linejoin: round; }
.pos-detail { fill: none; stroke: #2b3a45; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; opacity: 0.55; }
.pos-stripes { fill: #cfd6dc; stroke: none; }
.pos-zone { cursor: pointer; outline: none; }
.pos-zone rect { fill: rgba(0, 142, 209, 0.08); stroke: var(--color-primary); stroke-width: 1.3; stroke-dasharray: 4 3; transition: fill 150ms ease; }
.pos-zone text { font: 700 12px var(--font-heading); fill: var(--color-primary); text-anchor: middle; pointer-events: none; }
.pos-zone:focus-visible rect { fill: rgba(0, 142, 209, 0.22); }
@media (hover: hover) {
  .pos-zone:hover rect { fill: rgba(0, 142, 209, 0.22); }
}
.pos-zone:focus-visible rect { stroke-width: 2.2; }
.pos-zone.is-selected rect { fill: var(--color-primary); stroke-dasharray: none; }
.pos-zone.is-selected text { fill: #fff; }

.pos-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0 0; }
.pos-chip { border: 1px solid var(--color-border); background: #fff; border-radius: 999px; padding: 0.35rem 0.8rem; font: inherit; font-size: 0.82rem; cursor: pointer; }
@media (hover: hover) {
  .pos-chip:hover { border-color: var(--color-primary); }
}
.pos-chip.is-selected { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.pos-list { display: grid; gap: 0.7rem; margin-top: 0.9rem; }
.pos-item { border: 1px solid var(--color-border); border-left: 4px solid var(--color-primary); border-radius: var(--radius-sm); padding: 0.75rem 0.85rem; background: #fff; }
.pos-item-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.55rem; }
.pos-item-head strong { font-size: 0.92rem; }
.pos-item-remove { border: 0; background: none; color: #8a8a8a; font-size: 0.8rem; cursor: pointer; padding: 0.2rem; }
@media (hover: hover) {
  .pos-item-remove:hover { color: #b23b3b; }
}
.pos-item-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.55rem; }
.pos-item label { display: block; font-size: 0.72rem; font-weight: 600; color: #6b7280; margin-bottom: 0.2rem; }
.pos-item select { width: 100%; font: inherit; font-size: 0.85rem; padding: 0.4rem 0.5rem; border: 1px solid var(--color-border); border-radius: 6px; background: #fff; }
.pos-item select:focus { outline: none; border-color: var(--color-primary); }
.seg { display: inline-flex; border: 1px solid var(--color-border); border-radius: 6px; overflow: hidden; width: 100%; }
.seg button { flex: 1; border: 0; background: #fff; font: inherit; font-size: 0.82rem; padding: 0.42rem 0.4rem; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--color-border); }
.seg button.is-active { background: var(--color-primary); color: #fff; font-weight: 600; }
.seg button:disabled { color: #bbb; cursor: not-allowed; }
.pos-item-method { font-size: 0.84rem; color: #3f4a54; margin-top: 0.55rem; }
.pos-item-method strong { color: var(--color-dark); }

.cfg-choice { display: grid; gap: 0.5rem; }
.cfg-choice label { display: flex; gap: 0.6rem; align-items: flex-start; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 0.7rem 0.8rem; cursor: pointer; background: #fff; }
.cfg-choice label[hidden] { display: none; }
.cfg-choice label:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-tint); }
.cfg-choice input { margin-top: 0.2rem; accent-color: var(--color-primary); }
.cfg-choice strong { display: block; font-size: 0.9rem; }
.cfg-choice span span { display: block; font-size: 0.8rem; color: #6b7280; }

/* Preisbox */
.cfg-price { border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg-light); padding: var(--space-md); margin-top: var(--space-sm); }
.cfg-price-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: end; padding-bottom: 0.9rem; border-bottom: 1px solid var(--color-border); }
.cfg-price-label { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6b7280; margin-bottom: 0.15rem; }
.cfg-price-sum strong { display: block; font-family: var(--font-heading); font-size: 2.1rem; font-weight: 800; line-height: 1.05; color: var(--color-dark); }
.cfg-price-per { text-align: right; }
.cfg-price-per strong { display: block; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 800; line-height: 1.1; color: var(--color-primary); }
.cfg-price-head .cfg-gross { display: block; white-space: nowrap; }
.cfg-price-head small { display: block; font-size: 0.8rem; color: #6b7280; margin-top: 0.2rem; }
.cfg-price-rows { margin: 0.7rem 0 0; font-size: 0.9rem; color: #2f3a44; }
.cfg-price-rows div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; }
.cfg-price-rows div > span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cfg-price-rows .is-sub { padding-top: 0; font-size: 0.82rem; color: #6b7280; }
.cfg-price-rows .is-total { margin-top: 0.35rem; padding-top: 0.55rem; border-top: 1px solid var(--color-border); font-weight: 700; color: var(--color-dark); }
.cfg-price-note { font-size: 0.82rem; color: #6b7280; margin: 0.6rem 0 0; line-height: 1.5; }
@media (max-width: 420px) { .cfg-price-sum strong { font-size: 1.7rem; } .cfg-price-per strong { font-size: 1.15rem; } .cfg-price-head small { font-size: 0.74rem; } }
.cfg-price-msg { font-size: 0.95rem; color: #2f3a44; margin: 0; }
.cfg-price-msg.is-warn { color: #9a5b00; }
.cfg-tier { margin-top: 0.8rem; background: #e7f7ee; color: #0a6b36; border-radius: var(--radius-sm); padding: 0.55rem 0.75rem; font-size: 0.84rem; font-weight: 600; display: flex; justify-content: space-between; gap: 0.6rem; align-items: center; }
.cfg-tier button { border: 0; background: #0a6b36; color: #fff; border-radius: 6px; padding: 0.3rem 0.6rem; font: inherit; font-size: 0.78rem; cursor: pointer; white-space: nowrap; }
.cfg-actions { display: grid; gap: 0.5rem; margin-top: var(--space-sm); }
.cfg-actions .btn { width: 100%; justify-content: center; }
.cfg-trust { list-style: none; padding: 0; margin: var(--space-md) 0 0; display: grid; gap: 0.5rem; font-size: 0.92rem; color: #2f3a44; }
.cfg-trust li { display: flex; gap: 0.5rem; align-items: flex-start; }
.cfg-trust li::before { content: '✓'; color: var(--color-success); font-weight: 800; }
.pay-title { font-size: 0.85rem; font-weight: 700; color: var(--color-dark); margin: var(--space-sm) 0 0.45rem; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.5rem; }
.pay-logo { display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; height: 36px; min-width: 56px; padding: 0 0.55rem; border: 1px solid var(--color-border); border-radius: 6px; background: #fff; box-sizing: border-box; }
.pay-logo img { height: 22px; width: auto; max-width: 72px; display: block; }
.pay-logo-text { font-size: 0.74rem; font-weight: 700; color: #3b4650; white-space: nowrap; }
.pay-logo-text small { display: block; font-size: 0.62rem; font-weight: 500; color: #6b7682; line-height: 1.1; }
.pay-logo svg { width: 16px; height: 16px; fill: none; stroke: #3b4650; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cfg-added { margin-top: 0.6rem; background: var(--color-primary-tint); border-radius: var(--radius-sm); padding: 0.6rem 0.75rem; font-size: 0.85rem; }
.cfg-added[hidden] { display: none; }
.cfg-draft { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.8rem; margin: 0 0 var(--space-sm); background: var(--color-primary-tint); border-radius: var(--radius-sm); padding: 0.55rem 0.8rem; font-size: 0.86rem; color: #2f3a44; }
.cfg-draft[hidden] { display: none; }
.cfg-draft button { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--color-primary); text-decoration: underline; cursor: pointer; }
.cfg-added a { font-weight: 700; }

/* Mobile: Preisleiste unten */
.cfg-mobilebar { display: none; }
@media (max-width: 900px) {
  .cfg-mobilebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: #fff; border-top: 1px solid var(--color-border); box-shadow: 0 -6px 20px rgba(0,0,0,0.08); padding: 0.6rem 1rem; gap: 0.8rem; align-items: center; justify-content: space-between; }
  .cfg-mobilebar[hidden] { display: none; }
  .cfg-mobilebar strong { display: block; font-size: 1.05rem; }
  .cfg-mobilebar small { color: #6b7280; font-size: 0.75rem; }
  body.has-mobilebar { padding-bottom: 72px; }
}

/* ---------- Warenkorb ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: var(--space-lg); align-items: start; }
.cart-layout[hidden] { display: none; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-lines { display: grid; gap: var(--space-sm); }
.cart-line { display: grid; grid-template-columns: 92px 1fr auto; gap: 1rem; border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-sm); background: #fff; }
.cart-line img { width: 92px; height: 100px; object-fit: contain; border-radius: var(--radius-sm); background: var(--color-bg-light); }
.cart-line h3 { font-size: 1rem; margin: 0 0 0.2rem; }
.cart-line-meta { font-size: 0.82rem; color: #6b7280; margin: 0.1rem 0; }
.cart-line-pos { font-size: 0.82rem; margin: 0.4rem 0 0; padding: 0; list-style: none; }
.cart-line-pos li { margin: 0.15rem 0; }
.cart-line-price { text-align: right; min-width: 110px; }
.cart-line-price strong { display: block; font-size: 1.05rem; }
.cart-line-price small { font-size: 0.78rem; color: #6b7280; }
.cart-line-actions { display: flex; gap: 0.8rem; margin-top: 0.5rem; font-size: 0.8rem; }
.cart-line-actions a, .cart-line-actions button { border: 0; background: none; padding: 0; color: var(--color-primary); cursor: pointer; font: inherit; font-size: 0.8rem; }
@media (hover: hover) {
  .cart-line-actions button:hover { color: #b23b3b; }
}
.cart-line-warn { font-size: 0.82rem; color: #9a5b00; margin-top: 0.4rem; }
@media (max-width: 560px) {
  .cart-line { grid-template-columns: 70px 1fr; }
  .cart-line img { width: 70px; height: 80px; }
  .cart-line-price { grid-column: 1 / -1; text-align: left; display: flex; justify-content: space-between; align-items: baseline; }
}

.cart-box { border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; padding: var(--space-md); }
.cart-box + .cart-box { margin-top: var(--space-sm); }
.cart-box h2 { font-size: 1.1rem; margin: 0 0 0.8rem; }
.cart-sum div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; font-size: 0.9rem; }
.cart-sum .cart-sum-total { border-top: 1px solid var(--color-border); margin-top: 0.4rem; padding-top: 0.6rem; font-weight: 700; font-size: 1.05rem; }
.cart-sum .cart-sum-gross { font-size: 0.85rem; color: #6b7280; }
.cart-freeship { font-size: 0.8rem; color: #0a6b36; background: #e7f7ee; border-radius: var(--radius-sm); padding: 0.45rem 0.65rem; margin-top: 0.6rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid label { display: block; font-size: 0.78rem; font-weight: 600; margin-bottom: 0.2rem; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 0.9rem; padding: 0.55rem 0.65rem; border: 1px solid var(--color-border); border-radius: 6px; background: #fff; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 2px var(--color-primary-tint); }
/* Basis-Regeln für .form-check stehen in style.css – hier nur die Shop-Abweichungen */
.form-check { font-size: 0.84rem; margin-top: 0.6rem; }
.form-check input { accent-color: var(--color-primary); }
.cart-submit { width: 100%; justify-content: center; margin-top: var(--space-sm); font-size: 1rem; }
.cart-msg { font-size: 0.85rem; border-radius: var(--radius-sm); padding: 0.6rem 0.75rem; margin-top: 0.7rem; }

.cart-msg.is-warn { background: #fff4e0; color: #7a4a00; }
.cart-msg.is-info { background: #eaf2fb; color: #1d3f66; }
.cart-msg[hidden] { display: none; }
.cart-empty { text-align: center; padding: var(--space-xl) 0; color: #6b7280; }

.form-grid .form-check input { width: auto; }

/* Hinweis-Boxen: deutlich sichtbar statt Kleingedrucktem */
.cfg-notice { display: flex; gap: 0.75rem; align-items: flex-start; border-radius: var(--radius-sm); padding: 0.85rem 1rem; margin-top: 0.9rem; font-size: 0.95rem; line-height: 1.5; color: #1f2a33; border: 1px solid transparent; }
.cfg-notice[hidden] { display: none; }
.cfg-notice p { margin: 0; }
.cfg-notice strong { color: var(--color-dark); }
.cfg-notice svg { flex: none; width: 24px; height: 24px; margin-top: 0.05rem; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.cfg-notice-upload, .cfg-notice-upload-print { background: var(--color-primary-tint); border-color: rgba(0, 142, 209, 0.35); }
.cfg-notice-upload svg, .cfg-notice-upload-print svg { stroke: var(--color-primary); }
.cfg-notice-wish { background: #f4f7fa; border-color: #dfe6ec; border-left: 4px solid var(--color-primary); }
.cfg-notice-wish svg { stroke: var(--color-primary); }
.cfg-note { width: 100%; box-sizing: border-box; margin-top: 0.7rem; font: inherit; font-size: 0.95rem; padding: 0.65rem 0.75rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); resize: vertical; background: #fff; }
.cfg-note:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 2px var(--color-primary-tint); }
.cfg-added { font-size: 0.95rem; padding: 0.8rem 0.95rem; }

/* Warenkorb: Upload-Slots je Position */
.slot-group + .slot-group { margin-top: var(--space-sm); }
.slot-group h3 { font-size: 0.98rem; margin: 0 0 0.5rem; }
.slot { border: 1px solid var(--color-border); border-left: 4px solid var(--color-primary); border-radius: var(--radius-sm); padding: 0.8rem 0.9rem; background: #fff; }
.slot + .slot { margin-top: 0.55rem; }
.slot-title { font-weight: 700; font-size: 0.93rem; margin: 0 0 0.55rem; display: flex; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.slot-title span { font-weight: 500; color: #4a5560; font-size: 0.85rem; }
.slot-opts { display: grid; gap: 0.45rem; }
.slot-opt { display: flex; gap: 0.55rem; align-items: center; flex-wrap: wrap; font-size: 0.9rem; }
.slot-opt input[type=radio] { accent-color: var(--color-primary); margin: 0; }
.slot-opt select { font: inherit; font-size: 0.86rem; padding: 0.3rem 0.45rem; border: 1px solid var(--color-border); border-radius: 6px; max-width: 100%; }
.slot-opt input[type=file] { font-size: 0.84rem; max-width: 100%; }
.slot-status { font-size: 0.86rem; margin: 0.5rem 0 0; }
.slot-status.is-ok { color: var(--color-success); }
.slot-status.is-warn { color: #9a5b00; }
.slot-status.is-error { color: #b23b3b; font-weight: 600; }
.cart-line-note { font-size: 0.86rem; background: #f4f7fa; border-left: 3px solid var(--color-primary); border-radius: 6px; padding: 0.4rem 0.6rem; margin: 0.45rem 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.journey-pay { text-align: center; margin-top: var(--space-md); }
.journey-pay .pay-badges { justify-content: center; }

/* Text als Motiv */
.pos-item-content { margin-bottom: 0.6rem; }
.pos-item-content .seg { max-width: 360px; }
.pos-text { margin-top: 0.8rem; border-top: 1px dashed var(--color-border); padding-top: 0.8rem; }
.pos-text label { display: block; font-size: 0.78rem; font-weight: 600; color: #4a5560; margin: 0.6rem 0 0.3rem; }
.pos-text label:first-child { margin-top: 0; }
.pos-text-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; padding: 0.55rem 0.7rem; border: 1px solid var(--color-border); border-radius: 6px; resize: vertical; }
.pos-text-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 2px var(--color-primary-tint); }
.pos-text-count { font-size: 0.76rem; color: #6b7280; margin: 0.25rem 0 0; }

.text-colors { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.text-colors .produkt-color-swatch { width: 28px; height: 28px; }
.text-preview { min-height: 72px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; text-align: center; padding: 0.8rem 1rem; font-size: 1.6rem; line-height: 1.2; white-space: pre-line; word-break: break-word; }
.text-preview.is-placeholder { opacity: 0.55; }
.pos-text-hint { font-size: 0.82rem; color: #4a5560; margin: 0.6rem 0 0; }
.slot-text { font-size: 0.92rem; background: var(--color-bg-light); border-radius: 6px; padding: 0.55rem 0.7rem; }
.slot-text strong { color: var(--color-dark); }
.pay-logo img { max-width: 96px; }

/* Datei-Auswahl im Warenkorb */
.slot-upload { flex-wrap: wrap; }
.slot-upload > label { display: inline-flex; gap: 0.55rem; align-items: center; }
.file-pick { display: inline-flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.file-btn { display: inline-flex; align-items: center; border: 1px solid var(--color-primary); color: var(--color-primary); background: #fff; border-radius: 6px; padding: 0.32rem 0.75rem; font-size: 0.86rem; font-weight: 600; cursor: pointer; }
.file-btn:focus-within { background: var(--color-primary-tint); }
@media (hover: hover) {
  .file-btn:hover { background: var(--color-primary-tint); }
}
.file-chip { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--color-bg-light); border: 1px solid var(--color-border); border-radius: 999px; padding: 0.2rem 0.3rem 0.2rem 0.75rem; font-size: 0.85rem; max-width: 100%; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.file-remove { border: 0; background: #e3e8ec; color: #3b4650; width: 24px; height: 24px; border-radius: 50%; font-size: 1rem; line-height: 1; cursor: pointer; flex: none; }
.file-remove:focus-visible { background: #b23b3b; color: #fff; outline: none; }
@media (hover: hover) {
  .file-remove:hover { background: #b23b3b; color: #fff; outline: none; }
}
.format-list { margin: 0.7rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.3rem; font-size: 0.88rem; }
.format-list strong { display: inline-block; min-width: 8.5rem; }

/* Optionales Muster vor der Produktion */
.cfg-sample { display: flex; gap: 0.7rem; align-items: flex-start; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; padding: 0.85rem 1rem; margin-top: var(--space-sm); cursor: pointer; }
.cfg-sample[hidden] { display: none; }
.cfg-sample:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-tint); }
.cfg-sample input { margin-top: 0.25rem; width: 18px; height: 18px; accent-color: var(--color-primary); flex: none; }
.cfg-sample strong { display: block; font-size: 0.95rem; }
.cfg-sample > span > span { display: block; font-size: 0.88rem; color: #3f4a54; margin-top: 0.2rem; line-height: 1.45; }
.cfg-sample-price { color: var(--color-primary); font-weight: 700; white-space: nowrap; }
.cart-line-sample { display: flex; gap: 0.45rem; align-items: center; font-size: 0.86rem; margin: 0.45rem 0 0; cursor: pointer; }
.cart-line-sample input { accent-color: var(--color-primary); }

/* --- Unbedruckt & freie Motivgröße --- */

.dims { display: flex; align-items: center; gap: 0.35rem; }
.dims input { width: 100%; min-width: 0; padding: 0.42rem 0.5rem; border: 1px solid var(--color-border); border-radius: 6px; font: inherit; font-size: 0.9rem; }
.dims span { color: #6b7280; }
.dims-hint { display: block; color: #6b7280; font-size: 0.75rem; margin-top: 0.2rem; }
.pos-item-band { font-size: 0.82rem; color: #3b4652; margin: 0.55rem 0 0; }
.pos-item-band.is-warn { color: #b45309; font-weight: 600; }

/* --- Schrift-Dropdown mit Vorschau --- */
.font-select { position: relative; max-width: 420px; }
.font-select-btn { width: 100%; display: flex; align-items: center; gap: 0.7rem; background: #fff; border: 1px solid var(--color-border); border-radius: 8px; padding: 0.5rem 0.7rem; cursor: pointer; font: inherit; text-align: left; }
.font-select-btn[aria-expanded="true"] { border-color: var(--color-primary); }
@media (hover: hover) {
  .font-select-btn:hover { border-color: var(--color-primary); }
}
.font-select-btn img, .font-select-list img { height: 26px; width: 175px; object-fit: contain; object-position: left center; flex: none; }
.font-select-btn span, .font-select-list span { font-size: 0.8rem; color: #4a5560; flex: 1; }
.font-select-btn svg { width: 18px; height: 18px; fill: none; stroke: #4a5560; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.font-select-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 0.3rem; list-style: none; background: #fff; border: 1px solid var(--color-border); border-radius: 8px; box-shadow: 0 16px 36px rgba(15, 30, 45, 0.16); max-height: 330px; overflow-y: auto; }
.font-select-list[hidden] { display: none; }
.font-select-list li { display: flex; align-items: center; gap: 0.7rem; padding: 0.45rem 0.5rem; border-radius: 6px; cursor: pointer; }
.font-select-list li:focus { background: var(--color-primary-tint); outline: none; }
@media (hover: hover) {
  .font-select-list li:hover { background: var(--color-primary-tint); outline: none; }
}
.font-select-list li.is-active { background: var(--color-primary-tint); box-shadow: inset 3px 0 0 var(--color-primary); }
@media (max-width: 480px) { .font-select-btn img, .font-select-list img { width: 140px; } }

/* --- Kosten-Hinweis & persönliche Beratung --- */
.cfg-cost-hint { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.55rem 0 0; font-size: 0.85rem; color: #3b4652; background: #f4f7fa; border: 1px solid #dfe6ec; border-radius: 8px; padding: 0.6rem 0.75rem; }
.cfg-cost-hint svg { flex: none; width: 18px; height: 18px; fill: none; stroke: #6b7785; stroke-width: 2; stroke-linecap: round; margin-top: 0.1rem; }
.cfg-help { margin-top: var(--space-sm); border: 1px solid rgba(0, 142, 209, 0.3); background: var(--color-primary-tint); border-radius: var(--radius); padding: 0.9rem 1rem; }
aside .cfg-help { margin-top: var(--space-sm); }
.cfg-help-head { display: flex; gap: 0.75rem; align-items: flex-start; }
.cfg-help-head > svg { flex: none; width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: #fff; fill: none; stroke: var(--color-primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cfg-help-head strong { display: block; font-size: 0.98rem; color: #1a1a1a; }
.cfg-help-head span { display: block; font-size: 0.86rem; color: #3b4652; margin-top: 0.15rem; }
.cfg-help-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; margin-top: 0.75rem; }
.cfg-help-links a { display: flex; align-items: center; justify-content: center; gap: 0.35rem; background: #fff; border: 1px solid rgba(0, 142, 209, 0.35); border-radius: 8px; padding: 0.5rem 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--color-primary); text-decoration: none; }
@media (hover: hover) {
  .cfg-help-links a:hover { background: var(--color-primary); color: #fff; }
}
.cfg-help-links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cfg-notice-design { background: #f4f7fa; border-color: #dfe6ec; border-left: 4px solid var(--color-primary); }
.cfg-notice-design svg { stroke: var(--color-primary); }
.cfg-notice-design > div p { margin: 0 0 0.35rem; }
.cfg-notice-design .design-lead { color: var(--color-dark, #15222b); }
.design-range-inline { font-weight: 600; }
.design-prices { list-style: none; margin: 0.2rem 0 0.4rem; padding: 0; display: grid; gap: 0.25rem; font-size: 0.9rem; }
.design-prices li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.35rem 0; border-bottom: 1px solid #dfe6ec; }
.design-prices li:last-child { border-bottom: 0; }
.design-prices strong { white-space: nowrap; color: var(--color-primary-dark, #006fa3); }
.cfg-notice-design .design-prices-note { font-size: 0.85rem; color: #4b5563; margin-bottom: 0.6rem; }
.design-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; font-size: 0.9rem; }
.slot-design p { font-size: 0.9rem; color: #3b4652; background: #f4f7fa; border: 1px solid #dfe6ec; border-left: 4px solid var(--color-primary); border-radius: 8px; padding: 0.7rem 0.85rem; margin: 0; }

/* --- Kleinmengen prominent --- */
.cfg-smallqty { display: flex; gap: 0.9rem; align-items: flex-start; margin-top: 0.8rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: linear-gradient(120deg, #15222b 0%, #0b3d57 60%, var(--color-primary-dark, #006fa3) 100%); border: 0; color: #fff; box-shadow: 0 12px 28px rgba(11, 61, 87, 0.22); }
.cfg-smallqty-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); display: flex; align-items: center; justify-content: center; }
.cfg-smallqty-icon svg { width: 24px; height: 24px; fill: none; stroke: #8fd4f5; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cfg-smallqty strong { display: block; font-size: 1.02rem; color: #fff; }
.cfg-smallqty p { margin: 0.25rem 0 0.65rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.82); }

.dims-field { position: relative; flex: 1; min-width: 0; }
.dims-field input { width: 100%; padding-right: 2.1rem; }
.dims-field span { position: absolute; right: 0.55rem; top: 50%; transform: translateY(-50%); font-size: 0.8rem; color: #6b7280; pointer-events: none; }

.pos-item-grid .f-dims { grid-column: auto; } @media (max-width: 600px) { .pos-item-grid .f-dims { grid-column: 1 / -1; } }
#cfgSmallQty { margin: var(--space-sm) 0; }

.cfg-smallqty .btn-white { background: #fff; color: var(--color-primary-dark, #006fa3); border: 0; font-weight: 700; }
@media (hover: hover) {
  .cfg-smallqty .btn-white:hover { background: #e8f6fd; }
}
.cfg-actions .btn:disabled, .cfg-mobilebar .btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; filter: grayscale(0.3); }
.pos-item-upload { display: flex; gap: 0.45rem; align-items: flex-start; margin: 0.5rem 0 0; font-size: 0.84rem; color: #1f5f80; }
.pos-item-upload[hidden] { display: none; }
.pos-item-upload svg { flex: none; width: 17px; height: 17px; fill: none; stroke: var(--color-primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 0.1rem; }
.pos-item-method:empty { display: none; }
.cfg-smallqty #cfgSmallQtyText { margin: 0.3rem 0 0; color: #fff; }
.cfg-smallqty #cfgSmallQtyText strong { display: inline; color: #fff; font-size: inherit; }
.cfg-smallqty .sq-offer { margin: 0.55rem 0 0.7rem; }
.sq-raise { display: inline; background: none; border: 0; padding: 0; margin-left: 0.2rem; font: inherit; font-weight: 700; color: #8fd4f5; text-decoration: underline; cursor: pointer; }
@media (hover: hover) {
  .sq-raise:hover { color: #fff; }
}

/* --- Handy-Optimierung --------------------------------------------------- */
@media (max-width: 700px) {
  .format-list strong { display: block; min-width: 0; }
  .format-list li + li { margin-top: 0.35rem; }
  .produkt-color-swatch { width: 40px; height: 40px; }
  .text-colors .produkt-color-swatch { width: 34px; height: 34px; }
  .pos-chip { min-height: 40px; }
}

/* ===== Print-Shop: Produktseite ===== */
.produkt-gallery-main.no-zoom { cursor: default; }
.produkt-gallery-main.no-zoom::after { display: none; }
.print-choice label { position: relative; padding-right: 5.5rem; }
.print-choice-price { position: absolute; right: 0.8rem; top: 0.75rem; font-style: normal; font-size: 0.82rem; font-weight: 600; color: #4a5560; font-variant-numeric: tabular-nums; }
.print-choice label:has(input[type=radio]:disabled) { opacity: 0.45; cursor: not-allowed; }
.print-qty { display: grid; gap: 0.4rem; }
.print-motifs { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 0.5rem; padding: 0.75rem 0.85rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; }
.print-qty-sum { margin: 0.5rem 0 0; font-size: 0.86rem; font-weight: 600; }
.print-qty-sum[hidden] { display: none; }
.print-motifs label strong { display: block; font-size: 0.92rem; }
.print-motifs label span { display: block; font-size: 0.8rem; color: #6b7280; line-height: 1.45; }
.print-stepper { display: flex; align-items: center; flex: none; border: 1px solid var(--color-border); border-radius: 999px; overflow: hidden; background: #fff; }
.print-stepper button { width: 36px; height: 36px; border: 0; background: none; font-size: 1.15rem; color: var(--color-primary); cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.print-stepper input { touch-action: manipulation; width: 3rem; height: 36px; border: 0; text-align: center; font: inherit; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.print-stepper input::-webkit-outer-spin-button, .print-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.print-dd-lead { max-width: 62ch; color: #4a5560; margin-bottom: var(--space-md); }
.print-dd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.print-dd-card { background: #fff; border: 1px solid #E3EAF0; border-radius: var(--radius); padding: var(--space-md); }
.print-dd-card h3 { font-size: 1.05rem; margin-bottom: 0.8rem; }
.print-dd-list { margin: 0; display: grid; gap: 0.55rem; }
.print-dd-list div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.8rem; font-size: 0.92rem; }
.print-dd-list dt { font-weight: 700; color: var(--color-dark); }
.print-dd-list dd { margin: 0; color: #3f4a54; }
.print-dd-downloads { margin-top: var(--space-md); padding-top: var(--space-sm); border-top: 1px solid #E3EAF0; }
.print-dd-downloads h4 { font-size: 0.95rem; margin: 0 0 0.5rem; }
.print-dd-downloads ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.print-dd-downloads li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.2rem 0.8rem; font-size: 0.92rem; }
.print-dd-downloads a { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--color-primary-dark); text-decoration: none; }
.print-dd-downloads a:hover span { text-decoration: underline; }
.print-dd-downloads svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.print-dd-downloads small { color: #6b7680; }
.print-dd-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; font-size: 0.92rem; color: #3f4a54; line-height: 1.5; }
.print-dd-rules strong { color: var(--color-dark); }
@media (max-width: 800px) {
  .print-dd-grid { grid-template-columns: minmax(0, 1fr); }
  .print-dd-list div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
}

/* --- Warenkorb: Textil + Print ------------------------------------------- */
.cart-more { margin: 0.9rem 0 var(--space-lg); font-size: 0.95rem; }
.cart-empty-actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.cart-line-chip { display: inline-block; background: var(--color-primary-tint); color: var(--color-primary); font-weight: 600; border-radius: 999px; padding: 0.15rem 0.6rem; margin-top: 0.4rem; }
.cart-line-chip[hidden] { display: none; }
.cart-line-print img.is-missing { visibility: hidden; }
.cart-ship-lead { font-size: 0.9rem; color: #4a5560; margin: 0 0 0.8rem; }
.cart-ship { display: grid; gap: 0.45rem; }
.cart-ship-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "radio n price" "radio days price"; column-gap: 0.7rem; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 0.6rem 0.85rem; cursor: pointer; background: #fff; }
.cart-ship-row:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-tint); }
.cart-ship-row input { grid-area: radio; accent-color: var(--color-primary); margin: 0; }
.cart-ship-n { grid-area: n; font-weight: 700; font-size: 0.93rem; }
.cart-ship-days { grid-area: days; font-size: 0.8rem; color: #6b7280; }
.cart-ship-price { grid-area: price; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-sum-head { font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; margin: 0 0 0.3rem; color: var(--color-dark); }
.cart-sum-head-2 { margin-top: 1.1rem; padding-top: 0.9rem; border-top: 2px solid var(--color-border); }
.cart-sum-sub { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: #6b7280; margin: 0.6rem 0 0.1rem; font-weight: 600; }
.cart-sum .cart-sum-req { font-size: 0.95rem; }
.cart-sum-note { font-size: 0.82rem; color: #4a5560; background: #f4f7fa; border-radius: var(--radius-sm); padding: 0.5rem 0.65rem; margin: 0.6rem 0 0; }
.slot-hint { font-size: 0.82rem; color: #6b7280; margin: 0.45rem 0 0; }
.print-dd-hint { grid-column: 1 / -1; font-size: 0.88rem; color: #4a5560; background: #f4f7fa; border-left: 3px solid var(--color-primary); border-radius: 6px; padding: 0.55rem 0.75rem; margin: 0.3rem 0 0; }
.produkt-format { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; color: var(--color-dark); margin: 0.2rem 0 0.9rem; font-weight: 600; }
.produkt-format svg { width: 20px; height: 20px; fill: none; stroke: var(--color-primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.print-fixed { display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; align-items: baseline; font-size: 0.95rem; background: #f4f7fa; border: 1px solid #dfe6ec; border-radius: var(--radius-sm); padding: 0.65rem 0.9rem; margin: 0 0 var(--space-sm); }
.print-fixed strong { color: var(--color-dark); }
.print-fixed small { flex-basis: 100%; color: #6b7280; font-size: 0.82rem; }
.print-custom { flex-wrap: wrap; }
.print-choice label.print-custom { padding-right: 1rem; }
.print-custom > span { flex: 1 1 12rem; min-width: 0; }
.cfg-choice label { min-width: 0; }
.print-size { flex: 1 1 100%; min-width: 0; display: flex; align-items: center; gap: 0.45rem; margin: 0.25rem 0 0 1.6rem; }
.print-size input { flex: 0 1 6.5rem; width: 6.5rem; min-width: 0; font: inherit; font-size: 0.95rem; padding: 0.45rem 0.6rem; border: 1px solid var(--color-border); border-radius: 6px; background: #fff; }
.print-size input:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.print-size-x, .print-size-unit { color: #4a5560; font-size: 0.9rem; }
.print-size-hint { flex-basis: 100%; margin: 0.35rem 0 0 1.6rem; font-size: 0.84rem; color: #6b7280; }
.print-size-hint:empty { display: none; }
@media (max-width: 600px) {
  .print-size, .print-size-hint { margin-left: 0; }
  /* Größere Tippflächen, kein Doppeltipp-Zoom */
  .print-stepper button { width: 44px; height: 44px; font-size: 1.35rem; }
  .print-stepper input { height: 44px; }
}
.print-size-hint.is-ok { color: var(--color-success); }
.print-size-hint.is-error { color: #b23b3b; font-weight: 600; }
.cfg-choice label:has(input:checked) .print-size input { border-color: rgba(0, 142, 209, 0.5); }
.print-freeqty-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 0.85rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; }
.print-freeqty-row label strong { display: block; font-size: 0.92rem; }
.print-freeqty-row label span { display: block; font-size: 0.8rem; color: #6b7280; line-height: 1.45; }
.print-freeqty-row .print-stepper input, .print-motifs .print-stepper input { width: 5.5rem; }
.print-freeqty-hint { color: var(--color-primary); font-size: 0.84rem; font-weight: 600; margin: 0.6rem 0 0; }
.print-staffel-note { color: #6b7280; font-size: 0.78rem; margin: 0.45rem 0 0; }
.print-staffel tbody tr { cursor: pointer; }
.print-staffel tbody tr:hover td, .print-staffel tbody tr:focus-visible td { background: #f3f8fc; }
.print-staffel tbody tr:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -2px; }
.print-staffel tbody tr.is-current td { font-weight: 600; }
.print-staffel { width: 100%; border-collapse: collapse; margin: 0.7rem 0 0; font-size: 0.86rem; }
.print-staffel th { text-align: left; font-weight: 600; color: #6b7280; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.3rem 0.5rem; border-bottom: 1px solid var(--color-border); }
.print-staffel td { padding: 0.4rem 0.5rem; border-bottom: 1px solid #eef2f5; font-variant-numeric: tabular-nums; }
.print-staffel th:not(:first-child), .print-staffel td:not(:first-child) { text-align: right; }
.print-staffel tr:last-child td { border-bottom: 0; }
.print-size-fixed { font-weight: 700; color: var(--color-dark); }
.file-upload-state { white-space: nowrap; color: #4b5563; font-size: 0.8rem; }
