/* Ansatz 3 · Katalog – Qubinox Konfigurator-Studio.
   Linksbündiger Kopf mit großer Geist-Zeile, Schrittlinie mit drei Marken, Filter links, Karten mit Grundriss
   auf dem 50-cm-Raster, Schnellansicht als Seitenblatt, Übersicht aus overviewHTML. Weiß, Haarlinien, Tanne, eckig. */
.v3 {
  --ink: #17191A; --ink-2: rgba(23, 25, 26, 0.64); --ink-3: rgba(23, 25, 26, 0.44); --line: rgba(23, 25, 26, 0.12); --line-s: #D8D7D2;
  --pic: #ECEAE6; --soft: #F4F3F0; --pine: #1F3A36; --pine-2: #2C504A; --pine-soft: #E4EBE9; --accent: #EC8306;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1); --gut: 2.5rem;
  background: #FFFFFF; color: var(--ink); font: 400 0.9375rem/1.5 "Geist", "Helvetica Neue", Arial, sans-serif;
}
.v3 select { font: inherit; color: inherit; }
.v3 a { color: inherit; }
html.is-sheet { overflow: hidden; }

/* ---- header ---- */
.v3-head { display: flex; align-items: center; gap: 1.5rem; height: 4rem; padding: 0 var(--gut) 0 calc(var(--gut) + 0.5rem); border-bottom: 1px solid var(--line); }
.v3-head .st-logo svg { width: 1.625rem; height: 1.625rem; }
.v3-head .st-word { width: 6rem; height: 1.3rem; }
.v3-head__crumb { padding-left: 1.5rem; border-left: 1px solid var(--line); color: var(--ink-2) !important; font-size: 0.875rem; text-decoration: none; transition: color 200ms ease; }
.v3-head__crumb:hover { color: var(--ink) !important; }
.v3-head__icons { display: flex; gap: 0.25rem; margin-left: auto; }
.v3-ico { position: relative; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; color: var(--ink); transition: color 200ms ease, background-color 200ms ease, box-shadow 200ms ease; }
.v3-ico:hover { background: var(--soft); }
.v3-ico svg { width: 1.25rem; height: 1.25rem; }
.v3-ico i { position: absolute; top: 0.25rem; right: 0.125rem; min-width: 1rem; height: 1rem; padding: 0 0.25rem; background: var(--pine); color: #FFFFFF; font: 500 0.625rem/1rem "Geist", sans-serif; font-style: normal; text-align: center; }

.v3-main { max-width: 90rem; margin: 0 auto; padding: 0 var(--gut) 6rem calc(var(--gut) + 0.5rem); }

/* ---- intro: left-aligned, big Geist ---- */
.v3-intro { max-width: 60rem; padding: 2.5rem 0 2rem; }
.v3-intro h1 { margin: 0; font-size: clamp(2.25rem, 4.4vw, 4rem); font-weight: 600; line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }
.v3-intro h1 #h-count { font-variant-numeric: tabular-nums; color: var(--pine); }
.v3-intro p { max-width: 40rem; margin: 1rem 0 0; color: var(--ink-2); font-size: 1rem; }

/* ---- steps: thin rule, three square markers, progress fill ---- */
.v3-steps { position: relative; margin: 0 0 2.5rem; }
.v3-steps__rule { position: absolute; left: 0; right: 0; top: 0.75rem; height: 1px; background: var(--line-s); }
.v3-steps__rule i { position: absolute; left: 0; top: -0.5px; height: 2px; width: 0; background: var(--pine); transition: width 700ms var(--ease); }
.v3-steps__rule i::after { content: ""; position: absolute; right: -0.25rem; top: -0.1875rem; width: 0.5rem; height: 0.5rem; background: var(--accent); transition: opacity 300ms ease; }
.v3-steps__rule.is-zero i::after { opacity: 0; }
.v3-steps ol { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.v3-step { display: grid; align-content: start; gap: 0.25rem; padding-right: 1.5rem; }
.v3-step__main { display: grid; justify-items: start; gap: 0.75rem; text-align: left; }
.v3-step__n { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line-s); color: var(--ink-2); font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease; }
.v3-step__l { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); transition: color 200ms ease; }
.v3-step__main:hover .v3-step__l { color: var(--ink); }
.v3-step.is-on .v3-step__n { background: var(--ink); color: #FFFFFF; box-shadow: none; }
.v3-step.is-on .v3-step__l { color: var(--ink); }
.v3-step.is-done .v3-step__n { background: var(--pine); color: #FFFFFF; box-shadow: none; }
.v3-step.is-done .v3-step__l { color: var(--ink); }
.v3-step__v { display: flex; align-items: center; gap: 0.5rem; min-width: 0; color: var(--ink-2); font-size: 0.8125rem; }
.v3-step__v > span, .v3-step__v:not(:has(span)) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3-step__sw { flex: none; width: 0.75rem; height: 0.75rem; background: var(--fin, #383E42); box-shadow: 0 0 0 1px var(--line); transition: background-color 400ms ease; }
.v3-step__links { display: flex; gap: 1rem; font-size: 0.8125rem; }
.v3-step__links button { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-s); text-underline-offset: 0.2em; transition: text-decoration-color 200ms ease; }
.v3-step__links button:hover { text-decoration-color: var(--ink); }

/* ---- views ---- */
/* backwards, not both: a held transform would trap the fixed filter sheet inside the view */
.v3-view { animation: v3-in 480ms var(--ease) backwards; }
.v3-view.is-back { animation-name: v3-in-back; }

/* ---- step 1: filters + results ---- */
.v3-cat { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); gap: 3rem; align-items: start; }
.v3-filters { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); display: flex; flex-direction: column; }
.v3-filters__head, .v3-filters__foot { display: none; }
.v3-filters__scroll { overflow: auto; padding-right: 0.75rem; scrollbar-width: thin; }
.v3-f { padding: 1rem 0 1.375rem; border-top: 1px solid var(--line); }
.v3-f:first-child { border-top-color: var(--ink); }
.v3-f__h { margin: 0 0 0.75rem; font-size: 0.875rem; font-weight: 600; }

/* segmented buttons: hairline grid, the 1px gap is the line */
.v3-seg { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 1px; background: var(--line-s); border: 1px solid var(--line-s); }
.v3-seg--1 { --cols: 1; }
.v3-seg button { display: grid; align-content: center; gap: 0.125rem; min-height: 2.5rem; padding: 0.375rem 0.75rem; background: #FFFFFF; font-size: 0.8125rem; text-align: left; transition: background-color 200ms ease, color 200ms ease; }
.v3-seg button:hover { background: var(--soft); }
.v3-seg button[aria-pressed="true"] { background: var(--pine); color: #FFFFFF; }
.v3-seg b { font-weight: 500; }
.v3-seg small { color: var(--ink-2); font-size: 0.75rem; line-height: 1.35; transition: color 200ms ease; }
.v3-seg button[aria-pressed="true"] small { color: rgba(255, 255, 255, 0.74); }

.v3-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.v3-tile { position: relative; display: grid; align-content: start; gap: 0.375rem; padding: 0.25rem 0.25rem 0.5rem; color: var(--ink-2); font-size: 0.75rem; line-height: 1.25; text-align: left; box-shadow: inset 0 0 0 1px var(--line); transition: color 200ms ease, box-shadow 200ms ease; }
.v3-tile { min-width: 0; overflow: hidden; grid-template-columns: minmax(0, 1fr); }
.v3-tile img { width: 100%; max-width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--pic); }
.v3-tile span { padding: 0 0.25rem; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }
.v3-tile:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.v3-tile[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 0 0 2px var(--pine); }
.v3-tile[aria-pressed="true"]::after { content: ""; position: absolute; top: 0.25rem; right: 0.25rem; width: 0.625rem; height: 0.625rem; background: var(--pine); }

/* dual range slider: square handles */
.v3-range__track { position: relative; height: 1.5rem; margin: 0 0.5rem; }
.v3-range__track::before { content: ""; position: absolute; left: -0.5rem; right: -0.5rem; top: 50%; height: 1px; background: var(--line-s); }
.v3-range__fill { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: var(--pine); }
.v3-range input[type="range"] { position: absolute; inset: 0 -0.5rem; width: calc(100% + 1rem); height: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.v3-range input[type="range"]::-webkit-slider-runnable-track { height: 100%; background: none; }
.v3-range input[type="range"]::-webkit-slider-thumb { width: 1rem; height: 1rem; margin-top: 0.25rem; border: 0; border-radius: 0; background: #FFFFFF; box-shadow: inset 0 0 0 2px var(--pine); pointer-events: auto; cursor: grab; -webkit-appearance: none; appearance: none; transition: background-color 200ms ease, box-shadow 200ms ease; }
.v3-range input[type="range"]:hover::-webkit-slider-thumb { background: var(--pine); }
.v3-range input[type="range"]::-moz-range-track { background: none; }
.v3-range input[type="range"]::-moz-range-thumb { width: 1rem; height: 1rem; border: 0; border-radius: 0; background: #FFFFFF; box-shadow: inset 0 0 0 2px var(--pine); pointer-events: auto; cursor: grab; }
.v3-range input[type="range"]:focus-visible { outline: none; }
.v3-range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: inset 0 0 0 2px var(--pine), 0 0 0 2px #FFFFFF, 0 0 0 4px var(--accent); }
.v3-range__vals { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.5rem; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.v3-range__vals span { display: none; }
.v3-range__vals output:last-child { margin-left: auto; }
.v3-range--seg .v3-range__vals { display: none; }
.v3-range__ticks { display: flex; justify-content: space-between; margin: 0.25rem 0 0; padding: 0; color: var(--ink-3); font-size: 0.75rem; list-style: none; font-variant-numeric: tabular-nums; }
.v3-range__ticks li { width: 1rem; text-align: center; transition: color 200ms ease; }
.v3-range__ticks li.is-in { color: var(--ink); font-weight: 500; }

/* square checkbox */
.v3-check { display: flex; align-items: center; gap: 0.75rem; min-height: 2.25rem; font-size: 0.875rem; cursor: pointer; }
.v3-check input { position: absolute; opacity: 0; pointer-events: none; }
.v3-check > i { display: grid; place-items: center; flex: none; width: 1.125rem; height: 1.125rem; box-shadow: inset 0 0 0 1px var(--ink-3); transition: background-color 200ms ease, box-shadow 200ms ease; }
.v3-check > i svg { width: 0.875rem; height: 0.875rem; color: #FFFFFF; opacity: 0; transition: opacity 200ms ease; }
.v3-check:hover > i { box-shadow: inset 0 0 0 1px var(--ink); }
.v3-check input:checked + i { background: var(--pine); box-shadow: none; }
.v3-check input:checked + i svg { opacity: 1; }
.v3-check input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.v3-check--box { align-items: flex-start; padding: 0.875rem 1rem; box-shadow: inset 0 0 0 1px var(--line-s); }
.v3-check--box > i { margin-top: 0.125rem; }
.v3-check--box span { display: grid; gap: 0.125rem; }
.v3-check--box b { font-weight: 500; }
.v3-check--box small { color: var(--ink-2); font-size: 0.8125rem; }

/* toolbar */
.v3-bar { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.v3-tabs { display: flex; gap: 1.75rem; margin-right: auto; align-self: stretch; }
.v3-tabs button { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; height: 3rem; color: var(--ink-2); font-size: 0.9375rem; transition: color 200ms ease; }
.v3-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; transition: background-color 200ms ease; }
.v3-tabs button:hover { color: var(--ink); }
.v3-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 500; }
.v3-tabs button[aria-selected="true"]::after { background: var(--ink); }
.v3-tabs i { min-width: 1.375rem; padding: 0 0.3125rem; box-shadow: inset 0 0 0 1px var(--line-s); color: var(--ink-2); font-size: 0.75rem; font-style: normal; font-weight: 500; line-height: 1.375rem; text-align: center; font-variant-numeric: tabular-nums; }
.v3-tabs [aria-selected="true"] i { background: var(--ink); color: #FFFFFF; box-shadow: none; }
.v3-filterbtn { display: none; align-items: center; gap: 0.5rem; height: 2.5rem; padding: 0 0.75rem; box-shadow: inset 0 0 0 1px var(--line-s); font-size: 0.8125rem; }
.v3-filterbtn svg { width: 1.125rem; height: 1.125rem; }
.v3-filterbtn i { min-width: 1.125rem; height: 1.125rem; background: var(--pine); color: #FFFFFF; font: 500 0.6875rem/1.125rem "Geist", sans-serif; font-style: normal; text-align: center; }
.v3-sort { position: relative; display: flex; align-items: center; gap: 0.5rem; height: 2.5rem; padding: 0 2.25rem 0 0.75rem; box-shadow: inset 0 0 0 1px var(--line-s); font-size: 0.8125rem; transition: box-shadow 200ms ease; }
.v3-sort:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.v3-sort span { color: var(--ink-2); }
.v3-sort select { position: relative; z-index: 1; padding: 0 1.5rem 0 0; margin-right: -1.5rem; border: 0; border-radius: 0; background: none; font-size: 0.8125rem; cursor: pointer; -webkit-appearance: none; appearance: none; }
.v3-sort svg { position: absolute; right: 0.75rem; width: 1rem; height: 1rem; pointer-events: none; }
.v3-toggle { display: flex; box-shadow: inset 0 0 0 1px var(--line-s); }
.v3-toggle button { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; color: var(--ink-3); transition: color 200ms ease, background-color 200ms ease; }
.v3-toggle button:hover { color: var(--ink); }
.v3-toggle button svg { width: 1.125rem; height: 1.125rem; }
.v3-toggle button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }

/* active filters: small square tags with × */
.v3-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; margin: -0.25rem 0 1.25rem; }
.v3-tag { display: inline-flex; align-items: center; gap: 0.375rem; height: 1.75rem; padding: 0 0.375rem 0 0.625rem; box-shadow: inset 0 0 0 1px var(--line-s); font-size: 0.75rem; transition: box-shadow 200ms ease; animation: v3-fade 260ms ease both; }
.v3-tag:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.v3-tag svg { width: 0.875rem; height: 0.875rem; color: var(--ink-2); }
.v3-tags__all { margin-left: 0.5rem; color: var(--ink-2); font-size: 0.75rem; text-decoration: underline; text-underline-offset: 0.2em; transition: color 200ms ease; }
.v3-tags__all:hover { color: var(--ink); }

/* ---- cards: white, hairline frame, picture + Grundriss strip ---- */
.v3-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; min-height: 20rem; transition: opacity 120ms ease; }
.v3-grid.is-swap { opacity: 0.35; }
.v3-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-width: 0; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 220ms ease; animation: v3-rise 460ms var(--ease) both; animation-delay: calc(min(var(--i, 0), 12) * 30ms); }
.v3-card:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.v3-card:has(.v3-card__open:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.v3-card__img { position: relative; aspect-ratio: 4 / 3; margin: 1px 1px 0; overflow: hidden; background: var(--pic); }
.v3-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transition: opacity 480ms ease; }
.v3-card__img img + img { opacity: 0; }
.v3-card:hover .v3-card__img img + img, .v3-card:has(:focus-visible) .v3-card__img img + img { opacity: 1; }
.v3-card__body { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; align-content: start; gap: 0.125rem; padding: 0.875rem 1rem 1rem; border-top: 1px solid var(--line); }
.v3-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.v3-card__top h3 { min-width: 0; overflow-wrap: break-word; margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.v3-card__open { text-align: left; }
.v3-card__open:focus-visible { outline: none; }
.v3-card__open::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* the whole card opens the quick view */
.v3-card__meta { margin: 0 0 0.75rem; color: var(--ink-2); font-size: 0.8125rem; }
.v3-card__spec { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: end; gap: 0.875rem; padding-top: 0.75rem; border-top: 1px dashed var(--line-s); }
.v3-card__spec dl { display: grid; gap: 0.1875rem; margin: 0; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.v3-card__spec dl div { display: flex; justify-content: space-between; gap: 0.5rem; }
.v3-card__spec dt { color: var(--ink-3); }
.v3-card__spec dd { margin: 0; text-align: right; white-space: nowrap; }
.v3-card__spec .is-price { margin-top: 0.25rem; padding-top: 0.375rem; border-top: 1px solid var(--line); }
.v3-card__spec .is-price dd { font-size: 0.9375rem; font-weight: 600; }

/* bookmark: small square, sits above the card link */
.v3-mark { position: relative; z-index: 2; flex: none; width: 2rem; height: 2rem; margin: -0.3125rem -0.375rem 0 0; color: var(--ink-2); }
.v3-mark svg { width: 1.125rem; height: 1.125rem; }
.v3-mark:hover { color: var(--ink); }
.v3-mark[aria-pressed="true"] { color: var(--pine); }
.v3-mark[aria-pressed="true"] svg { --fill: currentColor; }
.v3-mark--line { width: 3rem; height: 3rem; margin: 0; box-shadow: inset 0 0 0 1px var(--line-s); }
.v3-mark--line:hover { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--ink); }

/* Grundriss (SVG) */
.v3-plan { display: block; width: 100%; height: auto; overflow: visible; font-family: "Geist", sans-serif; }
.v3-plan .p-grid path { stroke: var(--line-s); stroke-width: 0.35; fill: none; }
.v3-plan rect { stroke-width: 0.6; }
.v3-plan .p-box, .v3-plan .p-post, .v3-plan .p-seat { fill: #FFFFFF; stroke: var(--ink); }
.v3-plan .p-plant { fill: var(--pine); stroke: var(--pine); }
.v3-plan .p-slat { stroke: var(--ink-3); stroke-width: 0.55; fill: none; }
.v3-plan .p-badge { fill: var(--ink); stroke: none; }
.v3-plan .p-badge.is-inv { fill: #FFFFFF; }
.v3-plan .p-n { fill: #FFFFFF; font-size: 4px; font-weight: 600; text-anchor: middle; }
.v3-plan .p-n.is-inv { fill: var(--pine); }
.v3-plan .p-dim { stroke: var(--ink-2); stroke-width: 0.35; fill: none; }
.v3-plan .p-dimt { fill: var(--ink); font-size: 3.4px; text-anchor: middle; font-variant-numeric: tabular-nums; }
.v3-plan .p-dimt.is-soft { fill: var(--ink-3); }
.v3-plan .p-dimt.is-start { text-anchor: start; }
.v3-plan .p-dimt { paint-order: stroke; stroke: #FFFFFF; stroke-width: 1.4px; stroke-linejoin: round; }
.v3-plan--big { max-width: 100%; }

/* list view */
.v3-grid.is-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
.v3-lhead, .v3-row { display: grid; grid-template-columns: 4.5rem 5rem minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 1.1fr) minmax(0, 0.6fr) minmax(0, 0.7fr) 2.5rem; align-items: center; gap: 1rem; }
.v3-lhead { padding: 0 0 0.5rem; border-bottom: 1px solid var(--ink); color: var(--ink-2); font-size: 0.75rem; }
.v3-row { position: relative; padding: 0.625rem 0; border-bottom: 1px solid var(--line); font-size: 0.875rem; text-align: left; font-variant-numeric: tabular-nums; animation: v3-fade 340ms ease both; animation-delay: calc(min(var(--i, 0), 16) * 18ms); transition: background-color 200ms ease; }
.v3-row:hover { background: var(--soft); }
.v3-row:has(.v3-card__open:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.v3-row img { width: 4.5rem; height: 4.5rem; object-fit: cover; background: var(--pic); }
.v3-row .v3-plan { width: 5rem; }
.v3-row__name { display: grid; }
.v3-row__name .v3-card__open { font-weight: 600; }
.v3-row__name small { color: var(--ink-2); font-size: 0.75rem; }
.v3-row b { font-weight: 600; }
.v3-row .v3-mark { margin: 0; }

.v3-empty { padding: 3rem 0; color: var(--ink-2); }
.v3-empty button { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.v3-note { display: flex; gap: 0.75rem; max-width: 46rem; margin: 2.5rem 0 0; color: var(--ink-2); font-size: 0.8125rem; }
.v3-note svg { flex: none; width: 1.125rem; height: 1.125rem; margin-top: 0.125rem; color: var(--pine); }

/* ---- 3D boxes ---- */
.v3-glbox { position: absolute; inset: 0; --q-night-950: #F1F0EC; }
.v3-glbox canvas { display: block; width: 100% !important; height: 100% !important; touch-action: none; }

/* ---- buttons + links ---- */
.v3-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem; min-height: 3rem; padding: 0 1.5rem; background: var(--pine); color: #FFFFFF; font-size: 0.9375rem; font-weight: 500; transition: background-color 220ms ease, color 220ms ease, box-shadow 220ms ease; }
.v3-btn:hover { background: var(--ink); }
.v3-btn svg { width: 1.125rem; height: 1.125rem; }
.v3-btn--big { min-height: 3.5rem; }
.v3-btn--line { background: #FFFFFF; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-s); }
.v3-btn--line:hover { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--ink); }
.v3-link { justify-self: start; color: var(--ink); font-size: 0.875rem; text-decoration: underline; text-decoration-color: var(--line-s); text-underline-offset: 0.2em; transition: text-decoration-color 200ms ease, color 200ms ease; }
.v3-link:hover { text-decoration-color: var(--ink); }
.v3-small { margin: 0.5rem 0 0; color: var(--ink-2); font-size: 0.8125rem; }

/* ---- side sheets (quick view, cart) ---- */
/* dimming via the dialog itself (not ::backdrop), panel on the right */
.v3-sheet { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(23, 25, 26, 0.42); color: var(--ink); overflow: hidden; }
.v3-sheet::backdrop { background: transparent; }
.v3-sheet[open] { display: flex; justify-content: flex-end; animation: v3-fade 300ms ease both; }
.v3-sheet__panel { display: flex; flex-direction: column; width: min(40rem, 100%); height: 100%; background: #FFFFFF; box-shadow: -1.5rem 0 4rem rgba(0, 0, 0, 0.16); animation: v3-slide 520ms var(--ease) both; }
.v3-sheet--cart .v3-sheet__panel { width: min(30rem, 100%); }
.v3-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex: none; height: 3.5rem; padding: 0 0.75rem 0 1.75rem; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 0.8125rem; }
.v3-sheet__body { flex: 1; overflow: auto; padding: 1.5rem 1.75rem 2rem; overscroll-behavior: contain; }
.v3-sheet__foot { display: grid; gap: 0.875rem; flex: none; padding: 1rem 1.75rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--ink); }
.v3-sheet__price { display: grid; gap: 0.125rem; }
.v3-sheet__price b { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.v3-sheet__price small { color: var(--ink-2); font-size: 0.75rem; }
.v3-sheet__acts { display: flex; gap: 0.5rem; }
.v3-sheet__acts .v3-btn:last-child { flex: 1; }

.v3-qv__name { margin: 0; font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; }
.v3-qv__meta { margin: 0.5rem 0 1.25rem; color: var(--ink-2); font-size: 0.875rem; }
.v3-qv__big { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #F1F0EC; }
.v3-qv__big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform: scale(1.12); animation: v3-fade 380ms ease both; }
.v3-qv__cap { position: absolute; left: 0.75rem; bottom: 0.625rem; color: var(--ink-2); font-size: 0.75rem; pointer-events: none; }
.v3-qv__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.5rem; }
.v3-qv__thumbs button { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #F1F0EC; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 200ms ease; }
.v3-qv__thumbs button:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.v3-qv__thumbs button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--pine); }
.v3-qv__thumbs img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.v3-qv__thumbs span { display: grid; place-items: center; align-content: center; gap: 0.25rem; height: 100%; color: var(--ink-2); font-size: 0.75rem; }
.v3-qv__thumbs span svg { width: 1.25rem; height: 1.25rem; }
.v3-qv__plan { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.v3-qv__plan figure { margin: 0; }
.v3-qv__plan figcaption { margin-top: 0.5rem; color: var(--ink-2); font-size: 0.75rem; }
.v3-qv__specs { display: grid; gap: 0; margin: 0; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.v3-qv__specs div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4375rem 0; border-bottom: 1px solid var(--line); }
.v3-qv__specs dt { color: var(--ink-2); }
.v3-qv__specs dd { margin: 0; text-align: right; }
.v3-legend { display: flex; flex-wrap: wrap; gap: 0.375rem 1rem; margin: 1rem 0 0; padding: 0; color: var(--ink-2); font-size: 0.75rem; list-style: none; }
.v3-legend li { display: inline-flex; align-items: center; gap: 0.375rem; }
.v3-legend i { display: grid; place-items: center; width: 0.875rem; height: 0.875rem; box-shadow: inset 0 0 0 1px var(--ink); font-size: 0.5625rem; font-style: normal; font-weight: 600; }
.v3-legend .is-plant { background: var(--pine); box-shadow: none; }
.v3-legend .is-seat { background: repeating-linear-gradient(180deg, #FFFFFF 0 0.1875rem, var(--ink-3) 0.1875rem 0.25rem); }
.v3-legend .is-n { background: var(--ink); color: #FFFFFF; box-shadow: none; }
.v3-qv__more { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.v3-qv__more summary { display: flex; align-items: center; justify-content: space-between; padding: 0.875rem 0; font-size: 0.875rem; font-weight: 500; list-style: none; cursor: pointer; }
.v3-qv__more summary::-webkit-details-marker { display: none; }
.v3-qv__more summary svg { width: 1rem; height: 1rem; transition: transform 300ms var(--ease); }
.v3-qv__more[open] summary svg { transform: rotate(180deg); }
.v3-bomlist { display: grid; font-size: 0.8125rem; }
.v3-bomlist div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.125rem 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.v3-bomlist b { font-weight: 500; }
.v3-bomlist small { grid-column: 1; color: var(--ink-2); }
.v3-bomlist span { font-variant-numeric: tabular-nums; }
.v3-cart__pic { position: relative; aspect-ratio: 16 / 10; margin-bottom: 1.25rem; background: #F1F0EC; }
.v3-cart__pic img { width: 100%; height: 100%; object-fit: cover; animation: v3-fade 400ms ease both; }
.v3-sheet--cart .v3-qv__specs { margin-top: 1rem; }

/* ---- step 2: colour + accessories ---- */
.v3-opts { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.v3-opts__stage { position: sticky; top: 1rem; aspect-ratio: 4 / 3; background: #F1F0EC; }
.v3-stagecap { position: absolute; left: 1rem; bottom: 0.875rem; z-index: 1; color: var(--ink-2); font-size: 0.75rem; pointer-events: none; }
.v3-opts__side { display: grid; gap: 0; }
.v3-blk { padding: 1.25rem 0 1.5rem; border-top: 1px solid var(--line); }
.v3-blk:first-child { padding-top: 1rem; border-top-color: var(--ink); }
.v3-h { margin: 0 0 0.875rem; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; }
.v3-fin { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-s); border: 1px solid var(--line-s); }
.v3-fin button { display: grid; gap: 0.5rem; padding: 0.5rem 0.5rem 0.625rem; background: #FFFFFF; font-size: 0.8125rem; text-align: left; transition: background-color 200ms ease, box-shadow 200ms ease; }
.v3-fin button:hover { background: var(--soft); }
.v3-fin button[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--pine); font-weight: 500; }
.v3-fin i { height: 3.5rem; background: var(--c); }
.v3-acc { display: grid; gap: 0.5rem; }
.v3-accb { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) 1.375rem; align-items: center; gap: 0.875rem; width: 100%; padding: 0.5rem 0.875rem 0.5rem 0.5rem; box-shadow: inset 0 0 0 1px var(--line-s); font-size: 0.875rem; text-align: left; transition: box-shadow 200ms ease, background-color 200ms ease; }
.v3-accb:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--ink); }
.v3-accb[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--pine); background: var(--pine-soft); }
.v3-accb:disabled { opacity: 0.45; cursor: default; }
.v3-accb img { width: 3.5rem; height: 3.5rem; object-fit: cover; }
.v3-accb span { display: grid; gap: 0.0625rem; min-width: 0; }
.v3-accb b { font-weight: 500; }
.v3-accb small { color: var(--ink); font-size: 0.8125rem; }
.v3-accb em { color: var(--ink-2); font-size: 0.75rem; font-style: normal; }
.v3-accb i { display: grid; place-items: center; width: 1.375rem; height: 1.375rem; box-shadow: inset 0 0 0 1px var(--ink-3); transition: background-color 200ms ease; }
.v3-accb i svg { width: 0.875rem; height: 0.875rem; color: #FFFFFF; opacity: 0; transition: opacity 200ms ease; }
.v3-accb[aria-pressed="true"] i { background: var(--pine); box-shadow: none; }
.v3-accb[aria-pressed="true"] i svg { opacity: 1; }
.v3-rule { display: grid; gap: 0.125rem; margin: 0 0 0.5rem; padding: 0.75rem 1rem; background: var(--pine-soft); font-size: 0.8125rem; }
.v3-rule b { font-weight: 600; }
.v3-go { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.5rem; padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.v3-go span { display: grid; }
.v3-go b { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.v3-go small { color: var(--ink-2); font-size: 0.75rem; }
.v3-opts__side > .v3-link { margin-top: 1rem; }

/* ---- step 3: Übersicht ---- */
.v3-done { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(24rem, 1fr); gap: 3rem; align-items: start; }
.v3-gal { position: sticky; top: 1rem; display: grid; gap: 0.5rem; }
.v3-gal figure { position: relative; margin: 0; overflow: hidden; background: #F1F0EC; }
.v3-gal__live { aspect-ratio: 4 / 3; }
.v3-gal__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.v3-gal__row figure { aspect-ratio: 4 / 3; }
.v3-gal__row img { width: 100%; height: 100%; object-fit: cover; animation: v3-fade 600ms ease both; }
.v3-gal figcaption { position: absolute; left: 0.75rem; bottom: 0.5rem; display: inline-flex; align-items: center; gap: 0.375rem; color: var(--ink-2); font-size: 0.75rem; pointer-events: none; }
.v3-gal figcaption svg { width: 1rem; height: 1rem; }
.v3-gal__wait { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%) 0 0 / 300% 100%; animation: v3-shimmer 1100ms linear infinite; }
.v3-sum { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; min-width: 0; }
.v3-sum__head { display: grid; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--ink); }
.v3-sum__k { margin: 0; color: var(--ink-2); font-size: 0.8125rem; }
.v3-sum__price { margin: 0; font-size: 3rem; font-weight: 600; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.v3-sum__head .v3-small { margin: 0 0 0.75rem; }
.v3-sum__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 0.5rem; }

/* the shared Übersicht in this page's look */
.v3-over .so { --so-ink: #17191A; --so-ink-2: rgba(23, 25, 26, 0.64); --so-line: rgba(23, 25, 26, 0.12); --so-bg: #F4F3F0; --so-accent: #1F3A36; --so-display: "Geist", sans-serif; gap: 2.25rem; }
.v3-over .so-h { padding-top: 1rem; border-top: 1px solid var(--so-ink); font-size: 1.125rem; letter-spacing: -0.015em; }
.v3-over .so-facts { background: var(--so-line); }
.v3-over .so-facts div { background: #FFFFFF; }
.v3-over .so-facts .so-total { font-weight: 600; letter-spacing: -0.02em; color: var(--pine); }
.v3-over .so-guides li { border-color: var(--line-s); }
.v3-over .so-pic { background: #F1F0EC; }
.v3-over .so-acts button { border-color: var(--line-s); }
.v3-over .so-acts button:hover { border-color: var(--pine); background: var(--pine); color: #FFFFFF; }
.v3-over .so-url:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }

/* phone bar */
.v3-mbar { display: none; }

@keyframes v3-in { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
@keyframes v3-in-back { from { opacity: 0; transform: translateY(-0.5rem); } to { opacity: 1; transform: none; } }
@keyframes v3-rise { from { opacity: 0; transform: translateY(0.5rem); } to { opacity: 1; transform: none; } }
@keyframes v3-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes v3-slide { from { transform: translateX(100%); } to { transform: none; } }
@keyframes v3-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes v3-shimmer { to { background-position: -150% 0; } }

/* ---- smaller screens ---- */
@media (max-width: 80rem) {
  .v3-cat { grid-template-columns: 15rem minmax(0, 1fr); gap: 2rem; }
  .v3-lhead, .v3-row { grid-template-columns: 4rem 4.5rem minmax(0, 1.6fr) minmax(0, 1.1fr) minmax(0, 0.7fr) 2.5rem; }
  .v3-lhead > :nth-child(4), .v3-row > :nth-child(4), .v3-lhead > :nth-child(6), .v3-row > :nth-child(6) { display: none; }
}
@media (max-width: 70rem) {
  .v3-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-done { grid-template-columns: minmax(0, 1fr) minmax(20rem, 1fr); gap: 2rem; }
}
@media (max-width: 63.99rem) {
  .v3 { --gut: 1rem; }
  .v3-head { gap: 1rem; height: 3.5rem; padding-left: 2.25rem; }
  .v3-head__crumb { padding-left: 1rem; font-size: 0.8125rem; }
  .v3-head__crumb span { display: none; }
  .v3-head .st-word { width: 5.2rem; }
  .v3-main { padding: 0 1rem 6rem 2.25rem; }
  .v3-intro { padding: 1.75rem 0 1.5rem; }
  .v3-intro h1 { font-size: 2.125rem; letter-spacing: -0.035em; }
  .v3-intro p { font-size: 0.875rem; }
  .v3-steps { margin-bottom: 1.75rem; }
  .v3-step { padding-right: 0.5rem; }
  .v3-step__main { gap: 0.5rem; }
  .v3-step__l { font-size: 0.8125rem; line-height: 1.25; }
  .v3-step__v, .v3-step__links { display: none !important; }

  .v3-cat { display: block; }
  .v3-filters { position: fixed; inset: auto 0 0 0; z-index: 60; height: min(92vh, 100%); max-height: none; background: #FFFFFF; box-shadow: 0 -1rem 3rem rgba(0, 0, 0, 0.18); transform: translateY(100%); visibility: hidden; transition: transform 460ms var(--ease), visibility 0s 460ms; }
  .v3-filters.is-open { transform: none; visibility: visible; transition: transform 460ms var(--ease); }
  .v3-filters__head { display: flex; align-items: center; justify-content: space-between; flex: none; height: 3.5rem; padding: 0 0.5rem 0 1rem; border-bottom: 1px solid var(--ink); font-size: 1rem; }
  .v3-filters__scroll { flex: 1; padding: 0 1rem; }
  .v3-f:first-child { border-top: 0; }
  .v3-seg--2 { --cols: 4; }
  .v3-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .v3-filters__foot { display: grid; grid-template-columns: 1fr 1.6fr; gap: 0.75rem; flex: none; padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .v3-filterbtn { display: inline-flex; }
  .v3-bar { flex-wrap: wrap; gap: 0.5rem; padding-bottom: 0.75rem; }
  .v3-tabs { flex: 1 0 100%; gap: 1.25rem; border-bottom: 1px solid var(--line); margin: 0 0 0.25rem; }
  .v3-tabs button { height: 2.75rem; font-size: 0.875rem; }
  .v3-bar { border-bottom: 0; }
  .v3-sort { flex: 1; min-width: 0; padding-left: 0.625rem; }
  .v3-sort span { display: none; }
  .v3-sort select { flex: 1; min-width: 0; }

  .v3-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
  .v3-card__body { padding: 0.625rem 0.625rem 0.75rem; }
  .v3-card__top h3 { font-size: 0.875rem; }
  .v3-card__meta { margin-bottom: 0.5rem; font-size: 0.75rem; }
  .v3-card__spec { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; padding-top: 0.5rem; }
  .v3-card__spec .v3-plan { width: min(100%, 6.5rem); }
  .v3-card__spec dl { font-size: 0.75rem; }
  .v3-card__spec dl div:not(.is-price) dt { display: none; }
  .v3-card__spec dl div:not(.is-price) { justify-content: flex-start; }
  .v3-card__spec .is-price dd { font-size: 0.875rem; }
  .v3-card .v3-mark { width: 1.75rem; height: 1.75rem; margin: -0.25rem -0.25rem 0 0; }
  .v3-lhead { display: none; }
  .v3-row { grid-template-columns: 3.75rem minmax(0, 1fr) auto 2.5rem; gap: 0.75rem; }
  .v3-row img { width: 3.75rem; height: 3.75rem; }
  .v3-row > .v3-plan, .v3-row > :nth-child(4), .v3-row > :nth-child(5), .v3-row > :nth-child(6) { display: none; }

  .v3-sheet__panel { width: 100%; }
  .v3-sheet--cart .v3-sheet__panel { width: 100%; }
  .v3-sheet__head { padding-left: 1rem; }
  .v3-sheet__body { padding: 1.25rem 1rem 1.5rem; }
  .v3-sheet__foot { padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); }
  .v3-sheet__price b { font-size: 1.25rem; }
  .v3-sheet__acts .v3-btn { padding: 0 1rem; }
  .v3-qv__plan { grid-template-columns: minmax(0, 1fr); gap: 1rem; }

  .v3-opts, .v3-done { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .v3-opts__stage, .v3-gal { position: relative; top: 0; }
  .v3-go { display: none; }
  .v3-sum__price { font-size: 2.5rem; }
  .v3-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); background: #FFFFFF; border-top: 1px solid var(--ink); }
  .v3-mbar[hidden] { display: none; }
  .v3-mbar span { display: grid; }
  .v3-mbar b { font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
  .v3-mbar small { color: var(--ink-2); font-size: 0.75rem; }
  .v3-mbar .v3-btn { padding: 0 1rem; }
}
@media (max-width: 30rem) {
  .v3-seg--2 { --cols: 2; }
  .v3-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v3-intro h1 { font-size: 1.875rem; }
  .v3-head__crumb { display: none; }
  .v3-sheet__acts #qv-next { display: none; }
}
@media (max-width: 22rem) {
  .v3-grid { gap: 0.5rem; }
  .v3-card__body { padding: 0.5rem; }
  .v3-step__l { font-size: 0.75rem; }
  .v3-mbar small { display: none; }
}
/* the big price sits in the head above → facts show size, weight, modules */
.v3-over .so-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v3-over .so-facts div:first-child { display: none; }
@media (max-width: 80rem) { .v3-over .so-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .v3-over .so-facts div:nth-child(2) { grid-column: 1 / -1; } }
@media (max-width: 30rem) { .v3-over .so-facts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 30rem) {
  /* phones: each article as a small block – Art.-Nr. above, name · amount · price below */
  .v3-over .so-bom table, .v3-over .so-bom tbody, .v3-over .so-bom tfoot { display: block; font-size: 0.875rem; }
  .v3-over .so-bom thead { display: none; }
  .v3-over .so-bom tr { display: grid; grid-template-columns: minmax(0, 1fr) auto 4.5rem; column-gap: 0.75rem; row-gap: 0.125rem; padding: 0.625rem 0; border-bottom: 1px solid var(--so-line); }
  .v3-over .so-bom td { padding: 0; border: 0; }
  .v3-over .so-bom tbody td:first-child { grid-column: 1 / -1; font-size: 0.75rem; white-space: normal; }
  .v3-over .so-bom tbody td:nth-child(3)::before { content: "× "; color: var(--so-ink-2); }
  .v3-over .so-bom tfoot tr { grid-template-columns: minmax(0, 1fr) auto; border-bottom: 0; }
}
