@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/IBMPlexMono-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/IBMPlexMono-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/IBMPlexMono-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/IBMPlexMono-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/IBMPlexSans-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/IBMPlexSans-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/IBMPlexSans-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/IBMPlexSans-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/IBMPlexSans-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/IBMPlexSans-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root {
  --paper: oklch(98.4% 0.005 80);
  --panel: oklch(96% 0.007 80);
  --ink: oklch(22% 0.012 60);
  --muted: oklch(46% 0.014 60);
  --rule: oklch(88% 0.009 75);
  --rule-2: oklch(80% 0.011 75);
  --accent: oklch(49% 0.15 38);
  --warn: oklch(52% 0.12 75);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sheet-w: 460px;
  --bar-h: 56px;
  --pad: 20px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); font-variant-numeric: tabular-nums; overflow: hidden; }
a { color: var(--accent); }
button { font: inherit; color: inherit; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- top bar (over the stage only) ---- */
.bar { position: fixed; top: 0; left: 0; right: var(--sheet-w); height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); z-index: 5; pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar-l { display: flex; align-items: baseline; gap: 12px; min-width: 0; padding: 6px 10px; margin-left: -10px; border-radius: 6px; background: color-mix(in oklch, var(--paper) 86%, transparent); }
.brand { color: var(--muted); text-decoration: none; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.bar-sep { width: 1px; height: 14px; background: var(--rule); align-self: center; }
.bar-line { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bar-model { margin: 0; font: 500 15px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.btn { white-space: nowrap; font: 500 13.5px/1 var(--mono); color: var(--paper); background: var(--ink); border: 1px solid var(--ink); border-radius: 3px; padding: 0 16px; min-height: 44px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn.quiet:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .35; cursor: default; }
.btn:focus-visible, .tile:focus-visible, .step:focus-visible, .sw:focus-visible, .seg button:focus-visible, .est:focus-visible, .grab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- stage: full-bleed ---- */
.stage { position: fixed; inset: 0; z-index: 0; background: radial-gradient(ellipse 70% 40% at 42% 78%, oklch(93% 0.012 75) 0%, var(--paper) 70%); }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#view:active { cursor: grabbing; }
.hint { position: absolute; left: var(--pad); bottom: 16px; font: 400 12px var(--mono); color: var(--muted); pointer-events: none; }

/* ---- sheet ---- */
.sheet { position: fixed; top: 0; right: 0; bottom: 0; width: var(--sheet-w); background: var(--paper); border-left: 1px solid var(--rule); display: flex; flex-direction: column; z-index: 4; }
.sheet-head { flex: none; padding: 18px var(--pad) 0; border-bottom: 1px solid var(--rule); background: var(--paper); }
.grab { display: none; }
.progress { display: flex; justify-content: space-between; align-items: baseline; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.progress b { font-weight: 500; color: var(--ink); }
.stepper { display: flex; gap: 6px; padding: 0 32px 14px 0; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.stepper::-webkit-scrollbar { display: none; }
.step { flex: none; display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 1px solid var(--rule-2); border-radius: 999px; padding: 0 12px 0 5px; height: 32px; font: 500 12.5px/1 var(--mono); color: var(--muted); cursor: pointer; white-space: nowrap; transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease); }
.step .n { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--rule-2); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); }
.step .n svg { width: 12px; height: 12px; }
.step:hover { color: var(--ink); border-color: var(--ink); }
.step.done { color: var(--ink); }
.step.done .n { border-color: var(--ink); color: var(--ink); }
.step[aria-selected="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.step[aria-selected="true"] .n { border-color: oklch(100% 0 0 / .35); color: var(--paper); }
.sheet-body { flex: 1; overflow-y: auto; padding: 22px var(--pad) 32px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet-body > * { animation: slidein .3s var(--ease) both; }
@keyframes slidein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step-title { font: 600 22px/1.2 var(--sans); margin: 0 0 6px; letter-spacing: -0.01em; }
.step-lead { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 40ch; }
.group { margin-bottom: 28px; }
.group:last-of-type { margin-bottom: 8px; }
.ghead { display: flex; flex-direction: column; gap: 2px; margin: 0 0 12px; }
.eyebrow { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin: 0; }
.ghint { font: 400 13.5px/1.4 var(--sans); color: var(--muted); }

/* segmented filter */
.seg { display: flex; gap: 0; margin: 0 0 12px; border: 1px solid var(--rule-2); border-radius: 4px; overflow-x: auto; scrollbar-width: none; width: max-content; max-width: 100%; }
.seg button { flex: none; background: transparent; border: 0; border-right: 1px solid var(--rule-2); padding: 0 12px; height: 36px; font: 500 12.5px/1 var(--mono); color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button:last-child { border-right: 0; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg button small { font-size: 11px; opacity: .65; margin-left: 4px; }

/* tiles */
.tiles { display: grid; grid-template-columns: 1fr; gap: 10px; }
.tile { position: relative; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; align-items: center; text-align: left; width: 100%; min-height: 84px; padding: 16px; background: transparent; border: 1px solid var(--rule); border-radius: 6px; cursor: pointer; transition: box-shadow .15s var(--ease), border-color .15s var(--ease); }
.tile:hover { border-color: var(--rule-2); box-shadow: 0 0 0 1px var(--rule-2); }
.tile[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tile.plain { grid-template-columns: minmax(0, 1fr); min-height: 64px; padding: 14px 16px; }
.tile .th { width: 128px; height: 80px; display: flex; align-items: center; justify-content: center; background: var(--panel); border-radius: 4px; color: var(--ink); overflow: hidden; }
.tile .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .th svg { width: 72px; height: 56px; display: block; }
.tile .tx { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tile .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-width: 0; }
.tile .brand { font: 400 12px/1.3 var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .nm { font: 600 16px/1.3 var(--sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .meta { display: flex; align-items: center; gap: 2px; min-width: 0; flex: 1 1 auto; font: 400 13.5px/1.4 var(--mono); color: var(--muted); }
.tile .meta .mt { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .meta .est { flex: none; }
.tile .pr { flex: none; font: 500 16px/1.3 var(--mono); white-space: nowrap; }
.tile .wt { flex: none; font: 400 13.5px/1.4 var(--mono); color: var(--muted); white-space: nowrap; }
.tile[aria-checked="true"] .pr { color: var(--accent); }
.tile .chk { position: absolute; top: -1px; left: -1px; width: 22px; height: 22px; border-radius: 6px 0 6px 0; background: var(--ink); color: var(--paper); display: none; align-items: center; justify-content: center; }
.tile .chk svg { width: 12px; height: 12px; }
.tile[aria-checked="true"] .chk { display: flex; }

/* "geschätzt" mark with inline explanation */
.est { display: inline-flex; align-items: flex-start; text-align: left; gap: 5px; background: none; border: 0; padding: 0; margin: 0; font: 400 12.5px/1.35 var(--mono); color: var(--muted); cursor: help; vertical-align: 0; border-radius: 3px; }
.est .i { flex: none; margin-top: 1px; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--rule-2); display: inline-flex; align-items: center; justify-content: center; font: 500 10px/1 var(--mono); font-style: normal; }
.est:hover, .est[aria-expanded="true"] { color: var(--ink); }
.est:hover .i, .est[aria-expanded="true"] .i { border-color: var(--ink); }
.tile .estrow { margin-top: 3px; }
.est-x { display: none; font: 400 13px/1.45 var(--sans); color: var(--muted); padding: 6px 10px; margin-top: 4px; border-left: 2px solid var(--rule-2); white-space: normal; }
.est-x.open, .tile:has(.est:hover) .est-x, .sum-list li:has(.est:hover) .est-x { display: block; }

/* swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 14px 6px; }
.sw { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 78px; background: none; border: 0; padding: 4px 0; cursor: pointer; border-radius: 4px; }
.sw .dot { width: 48px; height: 48px; border-radius: 50%; border: 1px solid oklch(0% 0 0 / .14); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .15s var(--ease); }
.sw:hover .dot { outline-color: var(--rule-2); }
.sw[aria-checked="true"] .dot { outline-color: var(--ink); }
.sw .nm { font: 500 13px/1.25 var(--sans); color: var(--ink); text-align: center; }
.sw .pr { font: 400 12px/1 var(--mono); color: var(--muted); }
.sw[aria-checked="true"] .pr { color: var(--accent); }

/* sheet footer */
.sheet-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--pad); border-top: 1px solid var(--rule); background: var(--paper); }
.tot { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.bar-price { font: 500 20px/1 var(--mono); letter-spacing: -0.01em; white-space: nowrap; }
.tot-sub { font: 400 12.5px/1.5 var(--mono); color: var(--muted); white-space: nowrap; }
.tot-sub a { color: var(--accent); text-decoration: none; }
.tot-sub a:hover { text-decoration: underline; }
.nav { display: flex; gap: 8px; flex: none; }
.nav .btn { min-width: 92px; }

/* summary */
.sum-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px 20px; margin: 0 0 20px; border: 1px solid var(--rule); border-radius: 6px; background: var(--panel); }
.sum-hero .lbl { display: block; font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sum-hero .val { display: block; font: 500 30px/1.2 var(--mono); letter-spacing: -0.01em; margin: 4px 0 2px; }
.sum-hero .sub { display: block; font: 400 13px/1.4 var(--sans); color: var(--muted); }
.sum-list { list-style: none; margin: 0 0 24px; padding: 0; }
.sum-list li { padding: 14px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 3px 14px; align-items: start; }
.sum-list li:last-child { border-bottom: 1px solid var(--rule); }
.sum-list .th { grid-row: 1 / span 3; width: 80px; height: 50px; border-radius: 3px; background: var(--panel); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--ink); }
.sum-list .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sum-list .th svg { width: 48px; height: 36px; }
.sum-list .cat { font: 500 11.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sum-list .nm { font: 600 15px/1.35 var(--sans); grid-column: 2; }
.sum-list .pr { grid-column: 3; grid-row: 1 / span 2; font: 500 15px/1.35 var(--mono); text-align: right; white-space: nowrap; }
.sum-list .pr small { display: block; font: 400 13px/1.4 var(--mono); color: var(--muted); }
.sum-list .src { grid-column: 2 / -1; font: 400 12.5px/1.55 var(--mono); color: var(--muted); }
.sum-list .src a { color: var(--muted); }
.sum-list .src a.find { color: var(--accent); }
.estbox { border: 1px solid var(--rule); border-radius: 6px; padding: 14px 16px; margin: 0 0 24px; }
.estbox .eyebrow { margin-bottom: 6px; }
.estbox p { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }
.estbox ul { list-style: none; margin: 0; padding: 0; font: 400 13.5px/1.6 var(--mono); }
.estbox ul b { font-weight: 500; color: var(--ink); }
.notes { list-style: none; padding: 0; margin: 0 0 24px; font-size: 14px; }
.notes li { padding: 10px 12px; border: 1px solid var(--rule); border-radius: 4px; margin-bottom: 8px; color: var(--muted); display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.notes li::before { content: "OK"; font: 500 11px/1.6 var(--mono); letter-spacing: .06em; color: var(--muted); }
.notes li.info::before { content: "INFO"; }
.notes li.warn::before { content: "PRÜFEN"; color: var(--warn); }
.notes li.err::before { content: "PASST NICHT"; color: var(--accent); }
.notes li.err { border-color: var(--accent); color: var(--ink); }
.notes li.warn { border-color: var(--warn); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.foot { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--rule); font: 400 12px/1.55 var(--mono); color: var(--muted); }
.foot a { color: var(--muted); }

/* screenshot modal */
.shotbox { position: fixed; inset: 0; background: oklch(22% 0.012 60 / .55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 10; }
.shotbox[hidden] { display: none; }
.shotinner { background: var(--paper); border: 1px solid var(--rule); padding: 12px; max-width: min(96vw, 1100px); max-height: 92vh; overflow: auto; }
.shothead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.shothead .eyebrow { margin: 0; }
.shotinner img { display: block; max-width: 100%; height: auto; border: 1px solid var(--rule); }

/* ---- phone / narrow: stage full screen, bottom sheet with drag handle ---- */
@media (max-width: 900px) {
  :root { --sheet-w: 0px; --bar-h: 48px; --pad: 16px; --sheet-h: 46vh; }
  .bar { right: 0; padding: 0 var(--pad); }
  .bar-model, .bar-line, .bar-sep { display: none; }
  .btn { min-height: 40px; font-size: 12.5px; padding: 0 12px; }
  .hint { display: none; }
  .sheet { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: var(--sheet-h); max-height: calc(100vh - 56px); border-left: 0; border-top: 1px solid var(--rule); border-radius: 14px 14px 0 0; box-shadow: 0 -8px 24px oklch(22% 0.012 60 / .08); transition: height .3s var(--ease); }
  .sheet.open { height: 88vh; }
  .sheet-head { padding-top: 0; border-radius: 14px 14px 0 0; }
  .grab { display: flex; align-items: center; justify-content: center; width: 100%; height: 28px; background: none; border: 0; cursor: grab; touch-action: none; padding: 0; }
  .grab::before { content: ""; width: 40px; height: 4px; border-radius: 2px; background: var(--rule-2); }
  .progress { margin-bottom: 8px; }
  .stepper { padding-bottom: 10px; }
  .sheet-body { padding: 18px var(--pad) 24px; }
  .tile { grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; padding: 12px; }
  .tile .th { width: 96px; height: 60px; }
  .tile .th svg { width: 56px; height: 44px; }
  .tile .nm { font-size: 15px; }
  .tile .meta .mt { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .tile .pr { font-size: 15px; }
  .tile .row { flex-wrap: wrap; gap: 2px 10px; }
  .sheet-foot { padding: 10px var(--pad) max(10px, env(safe-area-inset-bottom)); }
  .nav .btn { min-width: 0; }
  .sum-hero { grid-template-columns: 1fr 1fr; padding: 14px 16px; }
  .sum-hero .val { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
