:root {
  --bg: #f3eee6;
  --surface: #fcfaf6;
  --ink: #1e2227;
  --muted: #666a71;
  --line: #e2d9cc;
  --accent: #b4552e;
  --accent-soft: #f5e4d9;
  --stage-a: #fffaf1;
  --stage-b: #e7dccb;
  --radius: 14px;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --top: 60px;
}
body[data-store="private"] {
  --bg: #f2ecef;
  --surface: #fcf9fb;
  --line: #e2d6dd;
  --accent: #7a3f6c;
  --accent-soft: #f1e2ec;
  --stage-a: #fcf5f9;
  --stage-b: #e1d0db;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  transition: background-color .3s;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Kopfzeile ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  height: var(--top);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  max-width: 1240px; height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-n { font: 600 19px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.tag {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 4px 8px; border-radius: 99px;
}
.top-ctl { display: flex; gap: 10px; }
.segs { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.seg { border: 0; background: none; padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.seg.is-on { background: var(--ink); color: #fff; }

/* ---------- Raster ---------- */
.layout {
  max-width: 1240px; margin: 0 auto; padding: 24px 24px 130px;
  display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; gap: 40px; align-items: start;
}

/* ---------- Bühne ---------- */
.stage {
  position: sticky; top: calc(var(--top) + 24px);
  height: calc(100vh - var(--top) - 24px - 118px); min-height: 440px;
  border-radius: 26px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 18%, var(--stage-a) 0%, var(--stage-b) 100%);
  transition: background .3s;
}
.figure { position: absolute; left: 0; right: 0; bottom: 0; height: 86%; display: flex; justify-content: center; }
.figure svg { height: 100%; width: auto; flex: none; display: block; }
.panel { min-width: 0; }
.cap { position: absolute; left: 22px; top: 20px; right: 90px; z-index: 2; }
.cap-n { font: 600 28px/1.1 var(--serif); letter-spacing: -.015em; overflow-wrap: anywhere; }
.cap-m { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.cap-m span { font-size: 12px; padding: 2px 9px; border-radius: 99px; background: rgba(255, 255, 255, .62); color: #3c4046; }
.ruler {
  position: absolute; right: 18px; bottom: 0; height: 80%; width: 1px; z-index: 2;
  background: repeating-linear-gradient(to top, rgba(30, 34, 39, .28) 0 1px, transparent 1px 12px);
  width: 7px;
}
.ruler span {
  position: absolute; right: 0; top: -26px; white-space: nowrap;
  font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted);
}
.stage-note {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3;
  font-size: 12px; font-weight: 500; white-space: nowrap;
  background: var(--surface); color: var(--accent); padding: 6px 12px; border-radius: 99px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

/* ---------- Schritte ---------- */
.steps { margin: 0 -4px 26px; overflow-x: auto; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.steps ol { list-style: none; margin: 0; padding: 4px; display: flex; gap: 4px; }
.step {
  display: flex; align-items: center; gap: 7px;
  border: 0; background: none; padding: 6px 12px 6px 6px; border-radius: 99px;
  color: var(--muted); font-size: 14px; white-space: nowrap;
}
.step-n {
  width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.step.is-done .step-n { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.step.is-on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.step.is-on .step-n { background: var(--accent); border-color: var(--accent); color: #fff; }

.head h1 { font: 600 clamp(26px, 3.1vw, 36px)/1.14 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.head p { margin-top: 10px; color: var(--muted); max-width: 56ch; }

/* ---------- Felder ---------- */
.field { margin-top: 30px; }
.field h3 { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.rule {
  margin-top: 14px; font-size: 13.5px; padding: 10px 14px; border-radius: 10px;
  background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 72%, #000);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  border: 1px solid var(--line); background: var(--surface); padding: 8px 16px; border-radius: 99px; font-size: 15px;
  transition: border-color .15s, background-color .15s;
}
.chip:hover:not(:disabled) { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:disabled { opacity: .4; }

.cards { display: grid; gap: 10px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  text-align: left; display: flex; flex-direction: column; gap: 3px;
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 14px 16px; min-height: 92px;
  transition: border-color .15s, box-shadow .15s;
}
.card:hover:not(:disabled) { border-color: var(--ink); }
.card.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #fff; }
.card:disabled { opacity: .5; background: transparent; border-style: dashed; }
.card-t { font-weight: 600; }
.card-d { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.card-p { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }

.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch {
  width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
  outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .15s;
}
.swatch.is-on { outline-color: var(--ink); }
.swatch:focus-visible { outline-color: var(--accent); }

.rows { display: grid; gap: 8px; }
.swatches + .rows { margin-top: 16px; }
.chips + .rows { margin-top: 14px; }
.row {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 13px 16px;
  transition: border-color .15s;
}
button.row:hover { border-color: var(--ink); }
.row.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #fff; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-t { font-weight: 600; }
.row-d { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.row-p { font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tick {
  flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #bdb4a6; background: #fff;
  display: grid; place-items: center;
}
.row.is-on .tick { background: var(--accent); border-color: var(--accent); }
.row.is-on .tick::after {
  content: ""; width: 10px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translateY(-1px);
}
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 18px; line-height: 1;
}
.stepper button:disabled { opacity: .35; }
.stepper output { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.slider { display: block; }
.slider-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; font-size: 15px; }
.slider-h output { font: 600 22px/1.2 var(--serif); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; margin: 0; }
.sliders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }

.faces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.face {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 8px 10px; overflow: hidden;
  background: linear-gradient(var(--stage-a), var(--stage-b));
  display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 14px; font-weight: 500;
}
.face svg { width: 100%; max-width: 132px; height: auto; display: block; }
.face:hover { border-color: var(--ink); }
.face.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.flow { margin: 0; padding: 0; list-style: none; counter-reset: flow; display: grid; gap: 10px; }
.flow li { counter-increment: flow; display: flex; gap: 12px; align-items: baseline; }
.flow li::before {
  content: counter(flow); flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; transform: translateY(2px);
}
.photo { display: flex; gap: 16px; align-items: center; }
.photo img, .photo-ph { flex: none; width: 76px; height: 76px; border-radius: 16px; object-fit: cover; }
.photo-ph { border: 1.5px dashed #bdb4a6; background: var(--surface); }
.photo .note { margin-top: 8px; }
.file { display: inline-flex; cursor: pointer; }
.file:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }

.input {
  width: 100%; max-width: 360px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
}
.input[aria-invalid="true"] { border-color: #b3261e; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 19px, calc(100% - 14px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }

/* ---------- Knöpfe ---------- */
.btn { border: 1px solid transparent; border-radius: 99px; padding: 11px 22px; font-weight: 600; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.btn-ghost { background: var(--surface); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.link { border: 0; background: none; padding: 0; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Übersicht ---------- */
.specs { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.lines li span:last-child { white-space: nowrap; }
.lines .total { border-bottom: 0; font-weight: 700; font-size: 17px; padding-top: 12px; }
.wl { display: grid; gap: 14px; max-width: 420px; }
.wl label > span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 5px; }
.wl .check { margin-top: 0; }
.wl .check span { margin: 0; font-weight: 400; }
.wl .input { max-width: none; }
.wl .btn { justify-self: start; }
.wl .note { margin-top: 0; }
.err { color: #b3261e; font-size: 14px; }
.done { padding: 18px 20px; border-radius: var(--radius); background: var(--accent-soft); }
.done strong { font: 600 20px/1.2 var(--serif); }

/* ---------- Preisleiste ---------- */
.pricebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.price-in { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.totals { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; row-gap: 2px; }
.totals div { display: flex; flex-direction: column; }
.totals strong { font: 600 24px/1.15 var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lbl { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.lbl.ex { align-self: flex-end; padding-bottom: 5px; letter-spacing: .03em; text-transform: none; font-weight: 400; font-size: 12px; }
.price-nav { display: flex; gap: 8px; }

/* ---------- Altersabfrage ---------- */
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(24, 20, 24, .5); }
.modal-box { width: min(440px, 100%); background: var(--surface); border-radius: 22px; padding: 28px; }
.modal-box h2 { font: 600 26px/1.15 var(--serif); letter-spacing: -.015em; }
.modal-box p { margin-top: 10px; }
.modal-act { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 900px) {
  :root { --top: 54px; }
  .top-in { padding: 0 14px; }
  .brand-n { font-size: 16px; }
  .tag, .wide { display: none; }
  .seg { padding: 5px 9px; font-size: 12px; }
  .top-ctl { gap: 6px; }
  .layout { display: block; padding: 0 0 150px; }
  .stage {
    top: var(--top); z-index: 10; height: 300px; min-height: 0; border-radius: 0 0 22px 22px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
  }
  .figure { height: 96%; }
  .cap { left: 14px; top: 12px; right: 50%; }
  .cap-n { font-size: 20px; }
  .cap-m span { font-size: 11px; padding: 1px 7px; }
  .cap-m span:nth-child(n+3) { display: none; }
  .ruler { right: 12px; height: 78%; }
  .panel { padding: 18px 16px 0; }
  .steps { margin: 0 -16px 18px; }
  .steps ol { padding: 4px 16px; }
  .step-l { display: none; }
  .step.is-on .step-l { display: inline; }
  .step { padding: 5px; }
  .step.is-on { padding-right: 12px; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-3 .card { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
  .cards-3 .card-p { margin: 0 0 0 auto; padding: 0; }
  .sliders, .specs { grid-template-columns: 1fr; }
  .price-in { padding: 10px 14px; gap: 10px; }
  .totals { gap: 16px; }
  .totals strong { font-size: 19px; }
  .lbl.ex { display: none; }
  .btn { padding: 10px 16px; }
}
@media (max-width: 420px) {
  .cards-2 { grid-template-columns: 1fr; }
  .cards-2 .card { min-height: 0; }
  .price-nav .btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
