/* aed-shop — AED-Set Konfigurator
   Brand built on the aed-shop logo: navy heart (#1a2a3b) as primary,
   bolt green (#50a53c) as accent for CTAs and "done" states, Poppins
   for the wordmark/display, pill buttons, light + dark theme. */

:root {
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8f9fa;
  --ink: #202124;
  --ink-soft: #5f6368;
  --ink-faint: #80868b;
  --line: #dadce0;
  --line-soft: #e8eaed;
  --line-strong: #c4c7cc;

  --brand: #1e3049;
  --brand-strong: #0b1f32;
  --brand-tint: #eef1f4;

  --green: #50a53c;
  --green-strong: #3f8a2e;
  --green-tint: #ebf4e6;

  --logo-navy: #1a2a3b;

  --on-brand: #ffffff;
  --disabled: #c4c7cc;

  --stage-a: #ffffff;
  --stage-b: #e8eaed;
  --thumb-a: #ffffff;
  --thumb-b: #f1f3f4;

  --radius: 16px;
  --radius-sm: 12px;
  --pill: 999px;
  --shadow: 0 1px 2px rgba(60, 64, 67, .08);
  --shadow-soft: 0 1px 2px rgba(60, 64, 67, .05);
  --shadow-lift: 0 4px 14px rgba(60, 64, 67, .16);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Poppins", var(--font);
  --mono: var(--font);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131314;
    --surface: #1e1f20;
    --surface-2: #28292a;
    --ink: #e8eaed;
    --ink-soft: #9aa0a6;
    --ink-faint: #80868b;
    --line: #3c4043;
    --line-soft: #303134;
    --line-strong: #5f6368;

    --brand: #a3bbd6;
    --brand-strong: #c6d6e8;
    --brand-tint: #26292d;

    --green: #6cc453;
    --green-strong: #8ad973;
    --green-tint: #1e2b19;

    --logo-navy: #e8eaed;

    --on-brand: #131314;
    --disabled: #3c4043;

    --stage-a: #28292a;
    --stage-b: #1a1b1c;
    --thumb-a: #28292a;
    --thumb-b: #1a1b1c;

    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lift: 0 4px 14px rgba(0, 0, 0, .5);

    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #131314;
  --surface: #1e1f20;
  --surface-2: #28292a;
  --ink: #e8eaed;
  --ink-soft: #9aa0a6;
  --ink-faint: #80868b;
  --line: #3c4043;
  --line-soft: #303134;
  --line-strong: #5f6368;

  --brand: #a3bbd6;
  --brand-strong: #c6d6e8;
  --brand-tint: #26292d;

  --green: #6cc453;
  --green-strong: #8ad973;
  --green-tint: #1e2b19;

  --logo-navy: #e8eaed;

  --on-brand: #131314;
  --disabled: #3c4043;

  --stage-a: #28292a;
  --stage-b: #1a1b1c;
  --thumb-a: #28292a;
  --thumb-b: #1a1b1c;

  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-lift: 0 4px 14px rgba(0, 0, 0, .5);

  color-scheme: dark;
}

* { box-sizing: border-box; }

/* iOS Safari: kein natives Button-Styling, kein blaues Tap-Highlight,
   keine Textauswahl beim (Doppel-)Tippen auf Karten und Buttons. */
button {
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
/* niemals Browser-Blau für Links (inkl. iOS-Autoerkennung) */
a { color: inherit; }

/* iOS: keine blaue Textauswahl beim Tippen/Wischen im UI (POC = keine Copy-Flows) */
body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
::selection { background: color-mix(in srgb, var(--green) 25%, transparent); }

/* The [hidden] attribute must win over author display rules (e.g. .app{display:grid}). */
[hidden] { display: none !important; }

.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;
}

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 28px 72px;
}

/* ---------- Announcement bar ---------- */
.promo-bar {
  background: var(--surface-2);
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
  letter-spacing: .01em;
}
.promo-bar strong { font-weight: 600; color: var(--green-strong); }

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.topbar__brand { display: flex; align-items: center; gap: 10px; flex: none; text-decoration: none; }
.topbar__mark { width: 38px; height: 38px; display: block; }
.topbar__mark-heart { stroke: var(--logo-navy); }
.topbar__mark-bolt { fill: var(--green); }
.topbar__word {
  font-family: var(--display);
  font-size: 24px; font-weight: 600;
  letter-spacing: -.02em;
  color: var(--logo-navy);
  line-height: 1;
}
.topbar__word b { color: var(--green); font-weight: 600; }

.topbar__titles { border-left: 1px solid var(--line); padding-left: 22px; }
.topbar__product {
  margin: 0;
  font-family: var(--display);
  font-size: 20px; font-weight: 700;
  letter-spacing: -.01em;
}
.topbar__tagline { margin: 2px 0 0; color: var(--ink-soft); font-size: 14px; }

.topbar__actions { display: flex; gap: 6px; margin-left: auto; }
.icon-btn {
  width: 42px; height: 42px;
  border: none; border-radius: 50%;
  background: transparent; color: var(--ink-soft);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- App grid ---------- */
.app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 38px;
  align-items: start;
}

/* ---------- Progress bar + restart ---------- */
.progress-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.progress { display: flex; gap: 6px; flex: 1; }
.progress__seg {
  flex: 1; height: 7px;
  border: none; padding: 0;
  border-radius: var(--pill);
  background: var(--line-soft);
  cursor: pointer;
  transition: background .25s ease, transform .15s ease;
}
.progress__seg:hover:not(:disabled) { transform: scaleY(1.6); }
.progress__seg:disabled { cursor: default; }
.progress__seg.is-done { background: var(--green); }
.progress__seg.is-current {
  background: color-mix(in srgb, var(--green) 45%, var(--surface-2));
  box-shadow: inset 0 0 0 1.5px var(--green);
}
.restart {
  flex: none;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font: inherit; font-size: 13px; font-weight: 550;
  padding: 6px 12px;
  border-radius: var(--pill);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.restart:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- Active step ---------- */
.panel-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 32px 18px;
  box-shadow: var(--shadow);
}
.panel-step__eyebrow {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-strong);
}
.panel-step__title {
  margin: 0;
  font-family: var(--display);
  font-size: 29px; font-weight: 700; letter-spacing: -.02em;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.tag {
  font-family: var(--font);
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  padding: 4px 11px; border-radius: var(--pill);
  background: var(--green-tint); color: var(--green-strong);
}
.panel-step__subtitle { margin: 8px 0 24px; color: var(--ink-soft); font-size: 15.5px; max-width: 58ch; }

.options { display: flex; flex-direction: column; gap: 11px; }
.options__group {
  margin: 12px 0 3px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-faint);
}

.option {
  display: flex; align-items: center; gap: 18px;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.option:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lift); }
.option.is-selected {
  border-color: var(--green);
  background: var(--green-tint);
  box-shadow: inset 0 0 0 1px var(--green);
  transform: none;
}
.option--addon { border-style: dashed; }
.option--addon.is-selected { border-style: solid; }

.option__thumb {
  flex: none;
  width: 84px; height: 84px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--thumb-a), var(--thumb-b));
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.option__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.option__thumb--none { color: var(--ink-faint); font-size: 20px; background: var(--surface-2); }

.option__body { flex: 1; min-width: 0; }
.option__label { display: block; font-weight: 600; font-size: 16px; }
.option__desc { display: block; font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; margin-top: 3px; }

.option__foot { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; align-self: stretch; justify-content: space-between; }
.option__price { font-family: var(--mono); font-size: 14.5px; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.option__price--free { color: var(--ink-faint); font-weight: 500; }
.option__mark {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--line-strong);
  display: grid; place-items: center;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.option__mark--multi { border-radius: 8px; }
.option__mark i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--on-brand);
  scale: 0;
  transition: scale .2s cubic-bezier(.2, .9, .3, 1.4);
}
.option__mark--multi svg { width: 14px; height: 14px; display: block; }
.option__mark--multi svg path {
  fill: none;
  stroke: var(--on-brand);
  stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 14;
  stroke-dashoffset: 14;
  transition: stroke-dashoffset .25s ease;
}
.option:hover:not(.is-selected) .option__mark { border-color: var(--green); }
.option.is-selected .option__mark {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-tint);
}
.option.is-selected .option__mark i { scale: 1; }
.option.is-selected .option__mark--multi svg path { stroke-dashoffset: 0; }

/* extra juice for the card that was just clicked */
.option.is-just-selected .option__mark { animation: mark-pop .4s cubic-bezier(.2, .9, .3, 1.5); }
.option.is-just-selected .option__mark--multi svg path { animation: check-draw .3s .08s ease backwards; }
.option.is-just-selected .option__thumb { animation: thumb-tilt .45s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes mark-pop {
  0% { scale: .5; }
  60% { scale: 1.25; }
  100% { scale: 1; }
}
@keyframes check-draw {
  from { stroke-dashoffset: 14; }
  to { stroke-dashoffset: 0; }
}
@keyframes thumb-tilt {
  0% { rotate: 0deg; scale: 1; }
  40% { rotate: -3deg; scale: 1.06; }
  100% { rotate: 0deg; scale: 1; }
}

/* ---------- Step nav ---------- */
.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.btn {
  padding: 13px 26px;
  border: none; border-radius: var(--pill);
  background: var(--green); color: var(--on-brand);
  font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: filter .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover:not(:disabled) { filter: brightness(1.06); box-shadow: var(--shadow-lift); }
.btn--ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn--ghost:hover:not(:disabled) { background: var(--surface-2); border-color: var(--line-strong); filter: none; box-shadow: none; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Preview ---------- */
.aside {
  position: sticky; top: 24px;
  display: flex; flex-direction: column; gap: 16px;
  /* leave room for the topbar so the pinned total/CTA stay on-screen at page top */
  max-height: calc(100vh - 150px);
}
.preview {
  flex: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.preview__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: radial-gradient(120% 120% at 50% 15%, var(--stage-a) 0%, var(--stage-b) 100%);
  overflow: hidden;
  display: grid; place-items: center;
}
.hero-empty { margin: 0; width: 100%; height: 100%; position: relative; }
.hero-empty img { width: 100%; height: 100%; object-fit: cover; }
.hero-empty figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 40px 18px 16px;
  background: linear-gradient(to top, rgba(16, 35, 56, .82), transparent);
  color: #fff;
  font-family: var(--display); font-weight: 600; font-size: 16px;
  text-align: center;
}

.hero-caption {
  margin: 12px 4px 0;
  text-align: center;
  font-family: var(--display);
  font-weight: 600; font-size: 15.5px;
}
.hero-caption__step {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 2px;
}

/* ---------- Scene: the wall on which the set assembles ---------- */
.scene {
  position: absolute; inset: 0;
  background: linear-gradient(178deg, var(--stage-a) 0%, var(--stage-b) 100%);
}
.scene--outdoor {
  background: linear-gradient(180deg,
    color-mix(in srgb, #4a90d9 26%, var(--stage-a)) 0%,
    color-mix(in srgb, #4a90d9 10%, var(--stage-b)) 55%,
    var(--stage-b) 100%);
}
/* outdoor floor reads as pavement */
.scene--outdoor::before {
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--ink) 18%, var(--stage-b)),
    color-mix(in srgb, var(--ink) 26%, var(--stage-b)));
}

/* Location badge (Innen-/Außenbereich) pinned to the stage corner. */
.scene__badge {
  position: absolute; z-index: 5;
  top: 4%; left: 3.5%;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px 6px 8px;
  border-radius: var(--pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 12.5px; font-weight: 600; color: var(--ink);
}
.scene__badge img { width: 18px; height: 18px; object-fit: contain; }
/* floor */
.scene::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 12%;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--ink) 9%, var(--stage-b)),
    color-mix(in srgb, var(--ink) 16%, var(--stage-b)));
}
/* baseboard */
.scene::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 12%; height: 3.5%;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 3px 5px rgba(15, 45, 70, .14);
}

/* Mounting-height marker from cabinet down to the floor. */
.scene__measure {
  position: absolute; z-index: 4;
  left: 50%; top: 78%; bottom: 13%;
  border-left: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent);
}
.scene__measure span {
  position: absolute; left: 9px; bottom: 4px;
  font-size: 10px; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
}

.scene__item {
  position: absolute;
  margin: 0;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--thumb-a), var(--thumb-b));
  border: 1px solid var(--line);
  box-shadow: var(--shadow), var(--shadow-lift);
  overflow: hidden;
}
.scene__item img { display: block; width: 100%; height: auto; object-fit: contain; padding: 6%; }
/* Freigestellte Produktbilder (transparente PNG/WebP) hängen ohne Kachel an der Wand. */
.scene__item--bare {
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  filter: drop-shadow(0 10px 18px rgba(15, 45, 70, .25));
}
.scene__item--bare img { padding: 0; }
.scene__item.is-new { animation: scene-mount .5s cubic-bezier(.2, .85, .3, 1.15) backwards; }
@keyframes scene-mount {
  from { opacity: 0; translate: 0 16px; scale: .9; }
}

/* Slot placement (percentages of the 4:3 stage). */
.scene__item--sign      { top: 4%;  left: 50%; margin-left: -8.5%; width: 17%; z-index: 4; }
.scene__item--backplate { top: 22%; left: 50%; margin-left: -24%;  width: 48%; z-index: 1; }
.scene__item--cabinet   { top: 27%; left: 50%; margin-left: -19%;  width: 38%; z-index: 2; }
.scene__item--module    { top: 34%; right: 5%; width: 15%; z-index: 3; }

/* Device: centered and large alone; docked beside the cabinet once one is mounted. */
.scene__item--device                     { top: 27%; left: 50%; margin-left: -19%; width: 38%; z-index: 3; }
.scene--has-cabinet .scene__item--device { top: 38%; left: 6%;  margin-left: 0;    width: 24%; }

/* Non-mountable selections (Verträge, Services) as chips below the stage. */
.scene-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.scene-chips:empty { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface-2);
  font-size: 13.5px; font-weight: 550;
}
.chip img {
  width: 22px; height: 22px; object-fit: contain;
  border-radius: 7px;
  background: linear-gradient(160deg, var(--thumb-a), var(--thumb-b));
}

/* ---------- Summary ---------- */
.summary {
  flex: 1 1 auto;
  min-height: 0;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.summary__grab {
  display: none; /* mobile only: drag handle of the bottom sheet */
  flex: none;
  width: 100%;
  padding: 8px 0 10px;
  border: none; background: none;
  cursor: pointer;
}
.summary__grab span {
  display: block;
  width: 44px; height: 4.5px;
  margin: 0 auto;
  border-radius: var(--pill);
  background: var(--line-strong);
}
.summary__title { flex: none; margin: 0 0 4px; font-family: var(--display); font-size: 16.5px; font-weight: 700; }
.summary__list {
  flex: 1 1 auto; min-height: 74px;
  overflow-y: auto;
  list-style: none; margin: 0; padding: 0;
  scrollbar-width: thin;
}
.summary__item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.summary__item-label { font-weight: 550; font-size: 14.5px; min-width: 0; }
.summary__item-price { flex: none; font-family: var(--mono); font-size: 13.5px; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary__empty { padding: 12px 0; color: var(--ink-faint); font-size: 14px; }

.summary__total {
  flex: none;
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 14px; padding-top: 14px;
  border-top: 2px solid var(--ink);
  font-size: 15px; font-weight: 600;
}
.summary__total strong { font-family: var(--display); font-size: 28px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--green-strong); }
/* POC price disclaimer lives on the overview screen; hidden in the compact config aside */
.summary__note { display: none; }

.summary__cta {
  flex: none;
  width: 100%; margin-top: 14px;
  padding: 14px 16px;
  border: none; border-radius: var(--pill);
  background: var(--green); color: var(--on-brand);
  font: inherit; font-weight: 600; font-size: 15px;
  cursor: pointer;
  transition: filter .15s ease, box-shadow .15s ease;
}
.summary__cta:hover:not(:disabled) { filter: brightness(1.06); box-shadow: var(--shadow-lift); }
.summary__cta:disabled { background: var(--disabled); color: var(--surface); cursor: not-allowed; }
.summary__cta.is-sent { background: var(--green); }
.summary__hint { flex: none; margin: 9px 0 0; text-align: center; font-size: 12px; color: var(--ink-soft); }
.summary__hint:empty { display: none; }

/* ---------- Overview screen ---------- */
.overview__head { margin-bottom: 26px; }
.overview__eyebrow {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-strong);
}
.overview__title { margin: 0; font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.overview__lead { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; max-width: 56ch; }

.overview__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
/* Assembled set on the overview: stage above the component cards. */
.overview__stage {
  grid-column: 1;
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 4 / 3;
  justify-self: center;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.overview__grid { grid-column: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }

.ov-card {
  display: flex; align-items: center; gap: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .2s ease, transform .2s ease;
}
.ov-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.ov-card__media {
  flex: none;
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--thumb-a), var(--thumb-b));
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.ov-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.ov-card__media--none { color: var(--ink-faint); background: var(--surface-2); }
.ov-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ov-card__step {
  font-family: var(--mono);
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-strong);
}
.ov-card__label { font-weight: 600; font-size: 15px; margin-top: 1px; }
.ov-card__desc { font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; margin-top: 3px; }
.ov-card__price { flex: none; align-self: flex-start; font-family: var(--mono); font-size: 14px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

.overview__panel { position: sticky; top: 24px; grid-column: 2; grid-row: 1 / span 2; }
.overview__panel-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.overview__panel-title { margin: 0 0 14px; font-family: var(--display); font-size: 16px; font-weight: 700; }
.overview__total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 16px; border-bottom: 2px solid var(--ink);
}
.overview__total span { color: var(--ink-soft); font-size: 13.5px; }
.overview__total strong { font-family: var(--display); font-size: 28px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--green-strong); }
.overview__note { margin: 12px 0 0; font-size: 11.5px; color: var(--ink-faint); line-height: 1.45; }
.overview__qty {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px;
  font-size: 14px; font-weight: 600;
}
.overview__cta { width: 100%; margin-top: 14px; padding: 14px; border-radius: var(--pill); font-size: 15px; background: var(--green); }
.overview__more { width: 100%; margin-top: 10px; padding: 12px; border-radius: var(--pill); font-size: 13.5px; }
.overview__cta.is-sent { background: var(--green-strong); }
.overview__hint { margin: 12px 0 0; font-size: 12.5px; color: var(--green); text-align: center; line-height: 1.4; }
.overview__hint:empty { display: none; }
.overview__edit { width: 100%; margin-top: 10px; padding: 12px; border-radius: var(--pill); font-size: 14px; }
.overview__restart {
  width: 100%; margin-top: 8px; padding: 10px;
  border: none; background: transparent;
  color: var(--ink-soft);
  font: inherit; font-size: 13px; font-weight: 550;
  border-radius: var(--pill);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.overview__restart:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- Cart ---------- */
.icon-btn--cart { position: relative; }
.cart-badge {
  position: absolute; top: 1px; right: -1px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: var(--pill);
  background: var(--green); color: var(--on-brand);
  font-size: 10.5px; font-weight: 700; line-height: 17px;
  text-align: center;
  pointer-events: none;
}

.cart-list { grid-column: 1; display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}
.cart-item__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cart-item__title { display: flex; flex-direction: column; }
.cart-item__title strong { font-family: var(--display); font-size: 17px; font-weight: 600; }
.cart-item__title span { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.cart-item__remove {
  border: none; background: transparent;
  color: var(--ink-faint);
  font: inherit; font-size: 12.5px; font-weight: 550;
  padding: 5px 10px; border-radius: var(--pill);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.cart-item__remove:hover { background: var(--surface-2); color: var(--ink); }

.cart-item__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cart-item__thumb {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--thumb-a), var(--thumb-b));
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.cart-item__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }

.cart-item__lines { list-style: none; margin: 12px 0 0; padding: 0; }
.cart-item__lines li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.cart-item__lines li span:last-child { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }

.cart-item__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; }
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  overflow: hidden;
}
.qty__btn {
  width: 36px; height: 34px;
  border: none; background: transparent;
  color: var(--ink);
  font-size: 17px; font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}
.qty__btn:hover { background: var(--green-tint); color: var(--green-strong); }
.qty__value { min-width: 34px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-item__total { font-family: var(--display); font-size: 19px; font-variant-numeric: tabular-nums; }

.cart-empty {
  padding: 46px 20px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Thank-you screen ---------- */
.thanks { display: grid; place-items: center; min-height: 55vh; }
.thanks__inner {
  max-width: 520px;
  padding: 52px 44px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.thanks__icon {
  width: 68px; height: 68px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--on-brand);
  font-size: 32px; font-weight: 700;
  animation: mark-pop .5s cubic-bezier(.2, .9, .3, 1.4);
}
.thanks__title { margin: 0; font-family: var(--display); font-size: 27px; font-weight: 700; letter-spacing: -.02em; }
.thanks__lead { margin: 10px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.thanks__cta { margin-top: 26px; }

/* ---------- Focus & motion ---------- */
:focus-visible { outline: 2.5px solid var(--green); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .app { grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; }
}
@media (max-width: 760px) {
  /* room for the fixed summary bar at the bottom */
  .shell { padding: 20px 16px 150px; }
  .topbar { flex-wrap: wrap; gap: 12px 16px; }
  .topbar__titles { border-left: none; padding-left: 0; order: 3; flex-basis: 100%; }
  .topbar__actions { margin-left: auto; }

  /* steps first; scene preview + summary live in the bottom sheet */
  .app { grid-template-columns: 1fr; gap: 22px; }
  .step-col { order: 1; }
  .aside { display: contents; }

  .panel-step { padding: 22px 20px 10px; }
  .panel-step__title { font-size: 24px; }
  .option { gap: 14px; padding: 13px 14px; }
  .option__thumb { width: 64px; height: 64px; }

  /* --- summary: fixed bottom sheet --- */
  .summary {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    border-radius: 18px 18px 0 0;
    border-bottom: none;
    box-shadow: 0 -8px 30px rgba(15, 45, 70, .18);
    padding: 4px 18px calc(14px + env(safe-area-inset-bottom));
    max-height: 88dvh;
    overscroll-behavior: contain;
  }
  /* geöffnet: Seite dahinter abdunkeln + nicht mitscrollen lassen */
  .summary.is-open::before {
    content: "";
    position: fixed; inset: 0;
    z-index: -1;
    background: rgba(10, 18, 14, .38);
  }
  html.sheet-open, html.sheet-open body { overflow: hidden; }
  .summary__grab { display: block; }
  /* collapsed: nur Griff + Gesamtsumme; zur Übersicht geht's über den letzten Schritt */
  .summary__title, .summary__list, .summary__hint, .summary__cta, .summary .preview { display: none; }
  /* expanded: the scene sits on top of the details, compact */
  .summary.is-open .preview {
    display: block;
    flex: none;
    border: none; box-shadow: none;
    padding: 0;
    margin: 2px 0 12px;
    border-radius: 0;
  }
  .summary.is-open .preview .preview__stage { aspect-ratio: auto; height: clamp(150px, 24dvh, 250px); }
  .summary.is-open .preview .hero-caption,
  .summary.is-open .preview .scene-chips { display: none; }
  .summary__total { margin: 0; padding: 2px 0 6px; border-top: none; cursor: pointer; }
  /* expanded: details slide in above the total */
  .summary.is-open .summary__title { display: block; margin-top: 2px; }
  .summary.is-open .summary__list {
    display: block;
    max-height: clamp(110px, 24dvh, 280px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .summary.is-open .summary__total { border-top: 2px solid var(--ink); padding-top: 12px; margin-top: 12px; }
  .summary.is-open .preview,
  .summary.is-open .summary__title,
  .summary.is-open .summary__list { animation: sheet-in .28s ease backwards; }
  @keyframes sheet-in {
    from { opacity: 0; translate: 0 12px; }
  }

  .overview__body { grid-template-columns: 1fr; gap: 18px; }
  .overview__stage, .overview__grid { grid-column: 1; }
  .overview__panel { position: static; order: -1; grid-column: 1; grid-row: auto; }
  /* Warenkorb: erst die Sets, die Gesamtsumme ganz unten */
  #cart-view .overview__panel { order: 2; }
  .overview__title { font-size: 25px; }
}
