/* optional + preload in index.html: no late swap from the fallback font (it reflowed the server-rendered lists, CLS 0.24) */
@font-face { font-family: Archivo; src: url(fonts/archivo-latin.woff2) format('woff2');
  font-weight: 100 900; font-stretch: 62% 125%; font-display: optional;
  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: Archivo; src: url(fonts/archivo-latin-ext.woff2) format('woff2');
  font-weight: 100 900; font-stretch: 62% 125%; font-display: optional;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f6f4ef; --surface: #ffffff; --surface-2: #efece5; --ink: #14181f; --ink-2: #4a505c; --ink-3: #666b74;
  --line: #e1ddd3; --accent: #0a6e8f; --accent-ink: #ffffff; --accent-soft: #e2f1f6;
  --cyan: #00a3d9; --magenta: #e0157a; --yellow: #f6c200; --ok: #1a7a43; --warn: #9a5c00;
  --price: #14181f; --shadow: 0 1px 2px rgb(20 24 31 / .06), 0 4px 16px rgb(20 24 31 / .06);
  --radius: 12px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101318; --surface: #181c23; --surface-2: #21262f; --ink: #eef0f3; --ink-2: #b4b9c2; --ink-3: #8c929d;
    --line: #2c323c; --accent: #38b6dc; --accent-ink: #061218; --accent-soft: #11303b; --ok: #4cc27f; --warn: #e3a23a;
    --price: #ffffff; --shadow: 0 1px 2px rgb(0 0 0 / .4); color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 Archivo, system-ui, sans-serif; font-stretch: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.muted { color: var(--ink-3); }
.img-credit { display: block; font-size: 11px; color: var(--ink-3); margin-top: 4px; text-align: center; } /* „Bild: Icecat (Open Content License)“ under hub Icecat pictures */
.pdp-img .img-credit { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0; } /* the picture box centres its content: the credit sits at its bottom */
.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; } /* for screen readers only */
h1, h2, h3 { font-stretch: 112%; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 750; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 650; }

.proto { background: var(--ink); color: var(--bg); font-size: 12px; text-align: center; padding: 5px 16px; letter-spacing: .02em; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-row { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-mark { display: flex; gap: 3px; height: 28px; align-items: stretch; }
.logo-mark i { width: 6px; border-radius: 3px; background: var(--cyan); }
.logo-mark i:nth-child(2) { background: var(--magenta); }
.logo-mark i:nth-child(3) { background: var(--yellow); }
.logo-mark i:nth-child(4) { background: var(--ink); width: 4px; }
.logo-text { font-weight: 800; font-size: 21px; font-stretch: 118%; line-height: 1; letter-spacing: -.02em; display: flex; flex-direction: column; }
.logo-text small { font-weight: 500; font-size: 11px; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; font-stretch: 100%; margin-top: 3px; }
.logo-text small.by { text-transform: none; letter-spacing: .02em; font-size: 12px; } /* „druckflotte by DOTCOM“: „by“ stays lower case */
.search { flex: 1; position: relative; display: flex; max-width: 640px; min-width: 0; } /* may shrink: the header row must not overflow */
.search input { min-width: 0; }
.search input { flex: 1; min-width: 0; height: 44px; border: 1.5px solid var(--line); border-right: 0; background: var(--bg); border-radius: 10px 0 0 10px; padding: 0 14px; outline: none; }
.search input:focus { border-color: var(--accent); background: var(--surface); }
.search button { width: 52px; border: 0; border-radius: 0 10px 10px 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; display: grid; place-items: center; }
.suggest { position: absolute; top: 50px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgb(0 0 0 / .18); overflow: hidden; max-height: 70vh; overflow-y: auto; }
.suggest h4 { margin: 0; padding: 10px 14px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.suggest a { display: flex; gap: 12px; align-items: center; padding: 8px 14px; text-decoration: none; }
.suggest a:hover, .suggest a.on { background: var(--accent-soft); }
.suggest .thumb { width: 40px; height: 40px; flex: none; }
.suggest .s-main { flex: 1; min-width: 0; }
.suggest .s-main div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest .s-sub { font-size: 12px; color: var(--ink-3); }
.suggest .all { justify-content: center; font-weight: 600; color: var(--accent); border-top: 1px solid var(--line); padding: 11px; }
.cart-btn { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; position: relative; flex: none; padding: 8px 4px; }
.cart-btn b { background: var(--magenta); color: #fff; font-size: 11px; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; position: absolute; top: 0; left: 14px; }
.cats { border-top: 1px solid var(--line); }
.cats .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cats .wrap::-webkit-scrollbar { display: none; }
.cats a { white-space: nowrap; text-decoration: none; padding: 10px 12px; font-size: 14px; font-weight: 550; color: var(--ink-2); border-bottom: 2.5px solid transparent; }
.cats a:hover { color: var(--ink); }
.cats a.on { color: var(--ink); border-bottom-color: var(--accent); }

main.wrap { padding-top: 24px; padding-bottom: 56px; min-height: 100vh; /* the footer starts below the fold: the SPA replacing the server HTML must not move it while visible (CLS) */ outline: none; }

/* home */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; margin-bottom: 36px; }
.hero-copy { background: var(--ink); color: var(--bg); border-radius: 18px; padding: 36px; position: relative; overflow: hidden; }
.hero-copy h1 { font-size: clamp(28px, 4vw, 44px); max-width: 14ch; }
.hero-copy p { color: color-mix(in srgb, var(--bg) 75%, transparent); max-width: 44ch; font-size: 16px; }
.hero-copy .bars { position: absolute; right: -10px; bottom: -10px; display: flex; gap: 10px; transform: rotate(-14deg); opacity: .9; }
.hero-copy .bars i { width: 26px; height: 170px; border-radius: 13px; background: var(--cyan); }
.hero-copy .bars i:nth-child(2) { background: var(--magenta); height: 210px; }
.hero-copy .bars i:nth-child(3) { background: var(--yellow); height: 150px; }
.stats { display: flex; gap: 28px; margin-top: 28px; position: relative; flex-wrap: wrap; }
.stats b { display: block; font-size: 26px; font-stretch: 115%; }
.stats span { font-size: 13px; opacity: .7; }
.finder { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.finder h2 { margin-bottom: 4px; }
.finder p { margin: 0 0 18px; color: var(--ink-2); }
.brand-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pill { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 600; font-size: 14px; }
.pill.on { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.finder-input { position: relative; }
.finder-input input { width: 100%; height: 48px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 14px; background: var(--bg); outline: none; }
.finder-input input:focus { border-color: var(--accent); }
.finder-results { margin-top: 10px; display: grid; gap: 2px; max-height: 236px; overflow-y: auto; }
.finder-results a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; }
.finder-results a:hover { background: var(--accent-soft); }
.finder-results small { color: var(--ink-3); white-space: nowrap; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.section-head a { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 14px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 40px; }
.cat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; display: flex; gap: 14px; align-items: flex-start; transition: border-color .15s, transform .15s; }
.cat-tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.cat-tile svg { flex: none; }
.cat-tile p { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.cat-tile .n { font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 6px; display: block; }
.brand-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 40px; }
.brand-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; text-decoration: none; }
.brand-tile:hover { border-color: var(--accent); }
.brand-tile b { font-size: 22px; font-stretch: 120%; font-weight: 800; letter-spacing: -.02em; display: block; }
.brand-tile span { font-size: 13px; color: var(--ink-3); }
.usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 40px; }
.usp div { padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.usp b { display: block; }
.usp span { font-size: 13px; color: var(--ink-2); }
.ai-box { display: flex; gap: 16px 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 20px 24px; margin: -16px 0 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ai-box > div:first-child { flex: 1 1 420px; min-width: 0; }
.ai-box h2 { margin: 0 0 4px; font-size: 18px; }
.ai-box p { margin: 0; color: var(--ink-2); font-size: 14px; }
.ai-url { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-width: 0; }
.ai-url code { font-size: 14px; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; overflow-wrap: anywhere; }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: var(--shadow); }
.card > a { text-decoration: none; display: flex; flex-direction: column; flex: 1; padding: 14px 14px 0; }
.card .img { aspect-ratio: 1; display: grid; place-items: center; background: #fff; border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.card .img img { width: 86%; height: 86%; object-fit: contain; }
.card .img svg { width: 78%; height: 78%; }
.card .brand { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.card .name { font-weight: 550; line-height: 1.3; margin: 2px 0 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
.card .meta { font-size: 12px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: auto; }
.card .foot { padding: 12px 14px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 750; font-size: 19px; color: var(--price); font-stretch: 105%; font-variant-numeric: tabular-nums; }
.price small { font-size: 11px; font-weight: 500; color: var(--ink-3); display: block; letter-spacing: 0; }
.buybox .price small.gross { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.price.na { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.add { border: 0; background: var(--accent); color: var(--accent-ink); width: 40px; height: 40px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; flex: none; }
.add:hover { filter: brightness(1.08); }
.add:disabled { background: var(--surface-2); color: var(--ink-3); cursor: not-allowed; }
.stock { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock.in_stock { color: var(--ok); }
.stock.limited { color: var(--warn); }
.stock.on_request { color: var(--ink-3); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; border: 1px solid rgb(0 0 0 / .15); }

/* listing */
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.crumbs a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; } /* underlined: links in running text must not rely on colour alone */
.crumbs a:hover { color: var(--accent); }
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.list-head p { margin: 6px 0 0; color: var(--ink-2); }
section.group[id] { scroll-margin-top: 130px; } /* jumps to #g-… land below the sticky header */
@media (max-width: 640px) { section.group[id] { scroll-margin-top: 190px; } }
.tape-devices { margin: 0 0 26px; }
.tape-devices h2 { font-size: 18px; margin: 0 0 4px; }
.tape-devices > p { margin: 0 0 12px; }
.tape-brands { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-bottom: 0; }
.tape-hits .printer-hit .thumb { width: 72px; height: 72px; }
.tape-hits .printer-hit .thumb img { width: 100%; height: 100%; object-fit: contain; }
.answer { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 0 0 22px; max-width: 900px; }
.answer h2 { font-size: 18px; margin: 0 0 6px; }
.answer p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.answer a { color: var(--accent); font-weight: 600; text-decoration: none; }
/* backoffice crawler & AI analysis */
.cr-top { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; margin: 8px 0 12px; }
.cr-days { display: flex; gap: 6px; flex-wrap: wrap; }
.cr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.cr-card { border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 10px; padding: 10px 12px; background: var(--surface); text-decoration: none; color: inherit; display: grid; }
.cr-card b { font-size: 22px; } .cr-card span { font-size: 13px; color: var(--ink-3); }
.cr-chart { display: flex; gap: 4px; align-items: flex-end; height: 160px; padding: 8px 0 22px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.cr-col { flex: 1 0 18px; max-width: 56px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.cr-stack { width: 100%; display: flex; flex-direction: column-reverse; border-radius: 3px 3px 0 0; overflow: hidden; min-height: 2px; }
.cr-stack i { display: block; min-height: 1px; }
.cr-col small { position: absolute; bottom: -20px; font-size: 10px; color: var(--ink-3); }
.ctag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 99px; background: color-mix(in srgb, var(--c) 14%, transparent); color: color-mix(in srgb, var(--c) 75%, var(--ink, #222)); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); white-space: nowrap; }
body.bo .cr-top ~ h3, .cr-grid h3 { margin: 26px 0 8px; }
.cr-grid { display: grid; gap: 16px; } @media (min-width: 1100px) { .cr-grid { grid-template-columns: 1fr 1fr; } }
.cr-grid > div { min-width: 0; }
b.err { color: #c0392b; }
.qbar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; width: 160px; max-width: 100%; } .qbar i { display: block; height: 100%; background: var(--accent); }
tr.on td { background: color-mix(in srgb, var(--accent, #2a6) 10%, transparent); }
/* backoffice catalog browser: whole page width, list + detail side by side from 1100 px */
/* the backoffice uses the whole screen; its menu wraps instead of scrolling */
.bo .wrap { max-width: none; }
.bo .tabs { flex-wrap: wrap; overflow: visible; row-gap: 0; }
/* backoffice shell: side bar (desktop) / drawer (below 1000 px), page head */
.bo-side[hidden], .bo-menu[hidden], .bo-scrim[hidden] { display: none !important; }
.bo-in .bo-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
.bo-side { position: sticky; top: 69px; height: calc(100vh - 69px); overflow-y: auto; padding: 18px 12px 20px; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.bo-nav-group { display: grid; gap: 2px; }
.bo-nav-group > span, .bo-nav-user > span { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); padding: 0 10px 4px; }
.bo-side a, .bo-side .link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14.5px; line-height: 1.25; text-align: left; }
.bo-side a:hover, .bo-side .link:hover { background: var(--surface-2); color: var(--ink); }
.bo-side a.on { background: var(--accent-soft); color: var(--accent); }
.bo-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; text-align: center; }
.bo-nav-user { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.bo-in #view { padding: 6px 32px 56px; min-width: 0; margin: 0; max-width: none; } /* no auto margins: they size a grid item to its content */
.bo-ph { margin: 22px 0 18px; }
.bo-ph h1, .bo-in #view > h1, .cr-top h1 { margin: 0; font-size: 26px; letter-spacing: -.01em; }
.bo-ph p { margin: 4px 0 0; color: var(--ink-3); max-width: 900px; }
.bo-in .crumbs { margin-top: 20px; }
.bo-menu { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 42px; height: 42px; margin-left: -6px; padding: 0 10px; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.bo-menu span { display: block; height: 2px; border-radius: 2px; background: var(--ink); }
.bo-menu:hover { background: var(--surface-2); }
.bo .otable .btn { height: 32px; padding: 0 12px; font-size: 13px; margin-top: 6px !important; }
.cr-top > div:first-child { flex: 1 1 420px; min-width: 0; }
.bo-in #view p { overflow-wrap: anywhere; }
.set-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.set-tab { scroll-margin-top: 160px; }
.cr-grid > *, .bo-in #view > * { min-width: 0; }
.bo-side button.link { width: 100%; padding: 8px 10px !important; margin: 0 !important; color: var(--ink-2); font-weight: 600; font-size: 14.5px; justify-content: flex-start; }
@media (max-width: 560px) { #pkf { grid-template-columns: 1fr !important; } }
.order-grid > *, .legal-edit > * { min-width: 0; }
@media (min-width: 1000px) { .bo-nav-user { display: none; } }
@media (max-width: 999px) {
  .bo-in .bo-shell { display: block; }
  .bo-menu { display: inline-flex; }
  .bo-in .bo-user { display: none; }
  .bo-side { position: fixed; top: 0; bottom: 0; left: 0; z-index: 50; width: min(300px, 86vw); height: auto; transform: translateX(-105%); transition: transform .18s ease; box-shadow: var(--shadow); }
  .bo-nav-open .bo-side { transform: none; }
  .bo-scrim { position: fixed; inset: 0; z-index: 45; background: rgb(0 0 0 / .35); }
  .bo-in #view { padding: 4px 16px 40px; }
  .bo-ph h1, .bo-in #view > h1, .cr-top h1 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .bo-side { transition: none; } }
.cat-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cat-filters input[type=search] { flex: 1 1 280px; min-width: 0; }
.cat-split { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1100px) { .cat-split { grid-template-columns: minmax(0, 1.75fr) minmax(400px, 1fr); }
  .cat-detail { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; } }
.cat-list { min-width: 0; }
.cat-table td { vertical-align: top; }
.cat-table td:first-child { width: 52px; }
.cat-table img { width: 40px; height: 40px; min-width: 40px; max-width: none; object-fit: contain; background: #fff; border-radius: 6px; }
.cat-table tr[data-key] { cursor: pointer; }
.cat-table tr[data-key]:hover td { background: var(--bg, #f6f4ef); }
.cat-table tr.on td { background: color-mix(in srgb, var(--accent, #2a6) 12%, transparent); }
.cat-ext { display: inline-block; font-size: 11px; color: var(--ink-3); border: 1px dashed var(--line); border-radius: 6px; padding: 10px 4px; width: 40px; text-align: center; }
.cat-pages { display: flex; gap: 8px; justify-content: center; margin: 12px 0; }
.cat-detail { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 16px; min-width: 0; }
.cat-detail h3 { margin: 18px 0 6px; font-size: 15px; }
.cat-head { display: flex; gap: 16px; align-items: flex-start; }
.cat-head img, .cat-noimg { width: 160px; height: 160px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line); flex: none; }
.cat-noimg { display: grid; place-items: center; color: var(--ink-3); font-size: 13px; text-align: center; padding: 8px; }
.kv { width: 100%; border-collapse: collapse; font-size: 13px; }
.kv th { text-align: left; font-weight: 600; width: 34%; padding: 4px 8px 4px 0; vertical-align: top; color: var(--ink-2, inherit); }
.kv td { padding: 4px 0; overflow-wrap: anywhere; }
.kv tr + tr th, .kv tr + tr td { border-top: 1px solid var(--line); }
.cat-printers { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.cat-json { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; max-height: 420px; overflow: auto; background: var(--bg, #f6f4ef); padding: 10px; border-radius: 8px; }
@media (max-width: 640px) { .cat-head { flex-direction: column; } .cat-table th:nth-child(n+5):not(:nth-child(8)), .cat-table td:nth-child(n+5):not(:nth-child(8)) { display: none; } }
.gone-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
/* archived mails (Kundenkonto, Backoffice) */
.mail-list { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.mail { border-bottom: 1px solid var(--line); }
.mail:last-child { border-bottom: 0; }
.mail summary { display: flex; gap: 14px; align-items: baseline; padding: 12px 14px; cursor: pointer; list-style: none; }
.mail summary::-webkit-details-marker { display: none; }
.mail-date { flex: none; width: 128px; font-size: 13px; color: var(--ink-3); }
.mail-subj { min-width: 0; display: grid; gap: 2px; }
.mail-subj b { overflow-wrap: anywhere; }
.mail-body { padding: 0 14px 14px; }
.mail-body pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.55 inherit; font-family: inherit; margin: 0; background: var(--bg, #f6f4ef); border-radius: 8px; padding: 12px; }
.mail-body table td { overflow-wrap: anywhere; max-width: 420px; font-size: 13px; vertical-align: top; }
.mail-att { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (max-width: 640px) { .mail summary { flex-direction: column; gap: 2px; } .mail-date { width: auto; } }
.faq { max-width: 820px; margin: 40px 0 10px; }
.faq h2 { font-size: 20px; margin: 24px 0 10px; }
.faq > p { color: var(--ink-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 650; }
.faq details p { margin: 0 0 14px; color: var(--ink-2); line-height: 1.6; }
.listing { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.filters { position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow-y: auto; padding-right: 4px; }
.fgroup { border-bottom: 1px solid var(--line); padding: 12px 0; }
.fgroup h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 8px; }
.fgroup label { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; font-size: 14px; }
.fgroup label span:last-child { margin-left: auto; color: var(--ink-3); font-size: 12px; }
.fgroup input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.fgroup .more { background: none; border: 0; color: var(--accent); padding: 4px 0; cursor: pointer; font-size: 13px; font-weight: 600; }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar select { height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 0 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--accent-soft); color: var(--ink); border: 0; border-radius: 999px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.chip::after { content: ' ×'; color: var(--ink-3); }
.toolbar .filter-toggle { display: none; }
.filters-head, .filters-foot, .filter-back { display: none; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; color: inherit; text-decoration: none; }
.pager .on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager .dis { opacity: .4; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--ink-2); }

/* printer hits on search page */
.printer-hits { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-bottom: 28px; }
.printer-hit { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-decoration: none; }
.printer-hit:hover { border-color: var(--accent); }
.printer-hit .thumb { width: 48px; height: 48px; flex: none; }
.printer-hit small { display: block; color: var(--ink-3); font-size: 12px; }
.thumb { background: #fff; border-radius: 6px; display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 90%; height: 90%; object-fit: contain; }
.thumb svg { width: 80%; height: 80%; }

/* product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; margin-bottom: 40px; }
.pdp-img { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; aspect-ratio: 1; max-height: 520px; width: 100%; margin: 0 auto; }
.pdp-img > img, .pdp-img > span { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; display: grid; place-items: center; }
.pdp-img > svg { position: absolute; inset: 20%; width: 60%; height: 60%; }
.pdp-img > span svg { width: 75%; height: 75%; }
.pdp .brand { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.pdp h1 { margin: 6px 0 10px; font-size: clamp(22px, 2.6vw, 30px); }
.sku-line { color: var(--ink-3); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sku-line b { color: var(--ink-2); font-weight: 600; }
.buybox { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 18px 0; }
.buybox .price { font-size: 32px; }
.buybox .row { display: flex; gap: 10px; margin-top: 16px; }
.qty { display: flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; height: 48px; }
.qty button { width: 40px; border: 0; background: var(--surface-2); cursor: pointer; font-size: 18px; }
.qty input { width: 48px; border: 0; text-align: center; background: var(--surface); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.btn { border: 0; background: var(--accent); color: var(--accent-ink); height: 48px; border-radius: 10px; padding: 0 22px; font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:hover { filter: brightness(1.07); }
.btn.big { flex: 1; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.buy-notes { list-style: none; margin: 14px 0 0; padding: 0; font-size: 13px; color: var(--ink-2); display: grid; gap: 4px; }
.buy-notes li::before { content: '✓ '; font-family: system-ui, sans-serif; color: var(--ok); font-weight: 700; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--ink-3); font-weight: 500; width: 42%; padding-right: 12px; }
.doc-links a { font-weight: 600; }
.doc-links .sep { color: var(--ink-3); }
.printer-docs { margin: 10px 0 0; font-size: 14px; }
.compat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 40px; }
.compat-filter { width: 100%; max-width: 320px; height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: var(--bg); margin: 12px 0; }
.compat-list { columns: 3 220px; column-gap: 24px; font-size: 14px; }
.compat-list a { display: block; padding: 3px 0; text-decoration: none; color: var(--ink-2); break-inside: avoid; }
.compat-list a:hover { color: var(--accent); }
.desc { color: var(--ink-2); margin: 0 0 12px; }

/* printer page */
.printer-head { display: flex; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 28px; }
.printer-head .thumb { width: 140px; height: 140px; flex: none; }
.printer-head .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { background: var(--surface-2); border-radius: 6px; padding: 3px 8px; font-size: 12px; color: var(--ink-2); }
.group { margin-bottom: 32px; }
.group h2 { margin-bottom: 12px; display: flex; gap: 10px; align-items: baseline; }
.group h2 small { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.families { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }

/* cart & checkout */
.cart { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart-lines { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.line { display: grid; grid-template-columns: 72px 1fr auto auto 32px; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .thumb { width: 72px; height: 72px; }
.line a { text-decoration: none; font-weight: 550; }
.line small { display: block; color: var(--ink-3); }
.line .qty { height: 38px; }
.line .qty button { width: 32px; }
.line .qty input { width: 40px; }
.line .sum { font-weight: 700; min-width: 80px; text-align: right; font-variant-numeric: tabular-nums; }
.rm { background: none; border: 0; cursor: pointer; color: var(--ink-3); font-size: 20px; }
.rm:hover { color: var(--magenta); }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; position: sticky; top: 130px; }
.summary .r { display: flex; justify-content: space-between; padding: 6px 0; font-variant-numeric: tabular-nums; }
.summary .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 750; font-size: 18px; }
.summary .btn { width: 100%; margin-top: 16px; }
.summary .hint { font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.freebar { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin: 6px 0 10px; }
.freebar i { display: block; height: 100%; background: var(--ok); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form h2 { grid-column: 1 / -1; margin-top: 6px; }
.form label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); font-weight: 550; }
.form label.full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { height: 44px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 12px; background: var(--bg); outline: none; color: var(--ink); font-size: 15px; }
.form input:focus, .form select:focus { border-color: var(--accent); }
.radio { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px !important; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; font-size: 14px !important; color: var(--ink) !important; }
.radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio input { height: auto !important; accent-color: var(--accent); }
.err { color: var(--magenta); font-weight: 600; grid-column: 1 / -1; }
.done { max-width: 640px; margin: 20px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px; text-align: center; }
.done .check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; font-size: 32px; }
.done table { width: 100%; text-align: left; margin: 20px 0; border-collapse: collapse; font-size: 14px; }
.done td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.done td:last-child { text-align: right; white-space: nowrap; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; transition: transform .25s; z-index: 50; display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--bg); }

.foot { background: var(--surface); border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot p { margin: 4px 0 0; }
.skel { background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; height: 320px; }
@keyframes sk { to { background-position: -200% 0; } }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .listing { grid-template-columns: 1fr; }
  /* filters: sheet sliding in from the bottom */
  .filters { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60; max-height: 82vh; max-height: 82dvh; overflow-y: auto; overscroll-behavior: contain;
    background: var(--surface); border-radius: 18px 18px 0 0; padding: 0 max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
    box-shadow: 0 -12px 40px rgb(0 0 0 / .25); transform: translateY(105%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
  .filters.open { transform: none; visibility: visible; transition: transform .25s ease; }
  .filters-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--surface); padding: 12px 0 8px; z-index: 1; font-size: 17px; }
  .filters-foot { display: block; position: sticky; bottom: 0; background: var(--surface); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
  .filters-foot .btn { width: 100%; }
  .filter-back:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 59; background: rgb(10 12 16 / .45); }
  .toolbar .filter-toggle { display: inline-flex; height: 40px; }
  .cart-label { display: none; }
}
@media (min-width: 641px) and (max-width: 1000px) { /* tablets: centred sheet instead of full width */
  .cart-label { display: none; } /* account, Merkliste and cart icons next to the search field */
  .top-row { gap: 14px; }
  .filters { left: 50%; right: auto; width: min(600px, 100%); transform: translate(-50%, 105%); }
  .filters.open { transform: translate(-50%, 0); }
  .pdp-img { max-height: 340px; }
}
@media (max-width: 1000px) { /* tablets and phones: product page and cart in one column */
  .pdp { grid-template-columns: 1fr; gap: 20px; }
  .cart { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 640px) {
  .top-row { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .logo { flex: 1; }
  .cart-label { display: none; }
  .hero-copy { padding: 24px; }
  .finder { padding: 20px; }
  .cat-grid, .usp, .foot-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .card > a { padding: 10px 10px 0; }
  .card .foot { padding: 10px; }
  .price { font-size: 16px; }
  .add { width: 36px; height: 36px; }
  .line { grid-template-columns: 56px 1fr auto; }
  .line .thumb { width: 56px; height: 56px; }
  .line .qty { grid-column: 2; justify-self: start; }
  .line .sum { grid-column: 3; grid-row: 2; }
  .line .rm { grid-column: 3; grid-row: 1; justify-self: end; }
  .form { grid-template-columns: 1fr; padding: 16px; }
  .printer-head { flex-direction: column; align-items: flex-start; }
  .printer-head .thumb { width: 100px; height: 100px; }
  .filters { top: auto; }
}

/* ---- B2B additions */
.punch { background: var(--yellow); color: #14181f; font-size: 13px; font-weight: 600; text-align: center; padding: 7px 16px; }
.fav-btn { display: flex; align-items: center; text-decoration: none; position: relative; flex: none; padding: 8px 4px; color: inherit; }
.fav-btn b { background: var(--magenta); color: #fff; font-size: 11px; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; position: absolute; top: 0; left: 14px; }
.fav-toggle { display: inline-flex; align-items: center; gap: 6px; }
.fav-toggle svg { flex: none; }
.fav-toggle[aria-pressed="true"] svg path { fill: var(--magenta); stroke: var(--magenta); }
.buybox .fav-toggle { margin-top: 10px; }
.printer-head .fav-toggle { margin-top: 10px; }
.fav-printers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 28px; }
.fav-printer { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.fav-printer a { font-weight: 650; text-decoration: none; }
.fav-printer small { color: var(--ink-3); }
.fav-item { display: grid; grid-template-rows: 1fr auto; gap: 4px; }
.fav-item > .link, .fav-printer > .link { justify-self: start; font-size: 13px; }
.acct-btn { display: flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; flex: none; position: relative; padding: 8px 4px; }
.acct-btn b { background: var(--magenta); color: #fff; font-size: 11px; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; position: absolute; top: 0; left: 12px; }
.notice { background: color-mix(in srgb, var(--yellow) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--yellow) 55%, var(--line)); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-top: 12px; }
.code, pre.code { background: #14181f; color: #e7ebf0; border-radius: 10px; padding: 14px 16px; font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; white-space: pre; margin: 8px 0 14px; }
code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.code code, pre code { background: none; padding: 0; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font-weight: 600; font-size: 13px; }
.login { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; align-items: start; }
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.demo h3 { margin: 16px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.demo-user { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 6px; cursor: pointer; }
.demo-user:hover { border-color: var(--accent); }
.demo-user span { color: var(--ink-3); font-size: 13px; }
.acct-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.acct-head h1 { margin: 4px 0 8px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { text-decoration: none; padding: 10px 14px; font-weight: 600; color: var(--ink-2); border-bottom: 2.5px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.series-link { margin: 4px 0 12px; }
.series-link a { font-weight: 600; color: var(--accent); text-decoration: none; }
.series-table td .btn { white-space: nowrap; }
/* label tape matrix (printer pages): scrolls inside .table-wrap, width column stays visible */
.tm { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; }
.tm th, .tm td { padding: 8px 10px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: top; text-align: left; }
.tm thead th { font-weight: 500; white-space: nowrap; min-width: 112px; }
.tm thead th span:not(.tape-chip) { display: block; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.tm tbody th, .tm thead th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; white-space: nowrap; font-weight: 650; min-width: 0; }
.tape-chip { display: inline-block; padding: 2px 8px; border-radius: 4px; font-weight: 750; font-size: 12px; letter-spacing: .02em; }
.tm-item { display: flex; align-items: center; gap: 6px; white-space: nowrap; line-height: 1.5; }
.tm-item a { font-weight: 600; text-decoration: none; }
.tm-item small { color: var(--ink-3); }
.tm-add { border: 1px solid var(--line); background: var(--surface); color: var(--accent); border-radius: 6px; width: 22px; height: 22px; padding: 0; font-weight: 700; line-height: 1; cursor: pointer; }
.tape-matrix > .more { background: none; border: 0; color: var(--accent); padding: 10px 0; cursor: pointer; font-size: 14px; font-weight: 600; min-height: 40px; }
.tm-rest { margin-top: 12px; font-size: 14px; }
.tm-rest ul { margin: 8px 0 0; padding-left: 18px; }
.otable { width: 100%; border-collapse: collapse; font-size: 14px; }
.otable th, .otable td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.otable th { font-size: 12px; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.otable tr:last-child td { border-bottom: 0; }
.otable .r { text-align: right; white-space: nowrap; }
.otable a { color: var(--accent); text-decoration: none; }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.s-awaiting_approval { background: color-mix(in srgb, var(--yellow) 35%, var(--surface)); color: #6b4e00; }
.s-confirmed { background: var(--accent-soft); color: var(--accent); }
.s-shipped { background: color-mix(in srgb, var(--cyan) 22%, var(--surface)); }
.s-invoiced { background: color-mix(in srgb, var(--ok) 20%, var(--surface)); color: var(--ok); }
.s-rejected, .s-cancelled { background: color-mix(in srgb, var(--magenta) 15%, var(--surface)); color: var(--magenta); }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.addr { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.addr p { margin: 6px 0; color: var(--ink-2); }
.addr-actions { display: flex; gap: 14px; margin-top: 8px; }
.add-addr { border-style: dashed; cursor: pointer; color: var(--accent); font-weight: 600; min-height: 120px; }
.addr-pick { border: 1px solid var(--line); border-radius: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; padding: 12px; }
.addr-pick legend { font-size: 13px; color: var(--ink-2); padding: 0 6px; }
.roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.roles div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.roles b { display: block; margin-bottom: 2px; }
.roles span { color: var(--ink-2); }
.steps { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 6px; flex-wrap: wrap; counter-reset: s; }
.steps li { flex: 1; min-width: 100px; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); color: var(--ink-3); font-size: 13px; font-weight: 600; counter-increment: s; }
.steps li::before { content: counter(s) '. '; }
.steps li.on { background: var(--accent); color: var(--accent-ink); }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin-top: 16px; align-items: start; }
.timeline { list-style: none; padding: 0 0 0 16px; margin: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 14px 14px; position: relative; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; left: -23px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.timeline small { display: block; color: var(--ink-3); }
.doc { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.doc small { display: block; color: var(--ink-3); }
.doc-f { display: flex; flex-wrap: wrap; gap: 6px; }
.doc-f a { font-size: 12px; font-weight: 600; text-decoration: none; background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 3px 8px; }
.doc-page { max-width: 900px; }
.doc-page h2 { margin: 36px 0 10px; padding-top: 8px; scroll-margin-top: 130px; }
.doc-page h3 { margin: 18px 0 4px; }
.doc-page p { color: var(--ink-2); }
.lead { font-size: 17px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.toc a { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.std-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.std-grid div { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; padding: 12px 14px; font-size: 13px; }
.std-grid b { display: block; font-size: 15px; }
.std-grid span { color: var(--ink-2); }
details.compat summary { cursor: pointer; }
@media (max-width: 1000px) { .order-grid, .login { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .acct-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* hidden but still the link name */ #ocit { grid-template-columns: 1fr !important; } }
[hidden] { display: none !important; }
a.pill { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.consent { max-width: 560px; margin: 24px auto; display: grid; gap: 14px; }
.consent h1 { font-size: 24px; }
.consent .logo { margin-bottom: 8px; }
.consent .who { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.scopes { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.scopes legend { font-size: 13px; color: var(--ink-2); padding: 0 6px; }
.scopes small, .consent .radio small { color: var(--ink-3); font-weight: 400; }
.radio span { line-height: 1.35; }
ul.plain { color: var(--ink-2); padding-left: 20px; }
.paylist { display: grid; gap: 8px; }
.radio.pay { align-items: flex-start; }
.radio.pay.off { opacity: .55; cursor: not-allowed; }
.pay-ico { width: 34px; height: 24px; border-radius: 5px; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; background: var(--surface-2); color: var(--ink); }
.pay-paypal { background: #e8eef9; color: #1f3d7a; font-style: italic; }
.pay-stripe { background: #ece9fb; color: #4b3fb5; }
.pay-invoice { background: color-mix(in srgb, var(--ok) 15%, var(--surface)); color: var(--ok); }
.s-awaiting_payment { background: color-mix(in srgb, var(--magenta) 14%, var(--surface)); color: #9c0f55; }
.paybox { border-color: color-mix(in srgb, var(--magenta) 40%, var(--line)); background: color-mix(in srgb, var(--magenta) 6%, var(--surface)); }
.toast:not(.show) { visibility: hidden; }
body.noscroll { overflow: hidden; }

/* backoffice */
.bo-search { display: flex; max-width: 520px; }
.bo-search input { flex: 1; height: 42px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--surface); color: var(--ink); font-size: 15px; outline: none; }
.bo-search input:focus { border-color: var(--accent); }
.bo-act { margin-top: 16px; }
.form > .full { grid-column: 1 / -1; }
.form > .hint { margin: 0; }
.bo-act h2 { margin: 0; }
/* impressum */
.legal { max-width: 720px; }
.legal .specs th { width: 38%; }

/* registration */
.reg { max-width: 680px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .reg .form { grid-template-columns: 1fr; } }
/* backoffice: views per day */
.vchart { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.vbar { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.vbar span { display: block; width: 100%; min-height: 1px; background: var(--accent); opacity: .5; border-radius: 3px 3px 0 0; }
.vbar.today span { opacity: 1; }
.vbar:hover span { opacity: .85; }
.vaxis { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
/* backoffice app (admin.druckflotte.at) */
.bo-user { margin-left: auto; display: flex; gap: 16px; align-items: center; font-size: 14px; flex-wrap: wrap; }
.bo-user a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.bo-user a:hover { color: var(--accent); }
.bo-user .link { font-size: 14px; }
.bo-warn { background: color-mix(in srgb, var(--yellow) 30%, var(--surface)); border-bottom: 1px solid color-mix(in srgb, var(--yellow) 60%, var(--line)); padding: 10px 0; font-size: 14px; }
.auth-card { max-width: 440px; margin: 48px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.auth-card h1, .auth-wide h1 { margin: 0 0 8px; }
.auth-wide { max-width: 760px; margin: 32px auto; }
.totp-setup { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.totp-setup .qr { width: 180px; flex: none; background: #fff; padding: 6px; border-radius: 8px; }
.totp-setup .qr svg { display: block; width: 100%; height: auto; }
.totp-setup > div:last-child { flex: 1; min-width: 220px; }
.totp-key { font-size: 15px; letter-spacing: .04em; word-break: break-all; }

/* ---------- phones, tablets and the installed app */
.toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
.back-btn { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -8px; border: 0; background: none; color: var(--ink); cursor: pointer; flex: none; }
.back-btn[hidden] { display: none; }
.install-btn { height: 40px; margin-top: 10px; gap: 8px; font-size: 14px; }
dialog.sheet { border: 0; border-radius: 16px; padding: 22px; max-width: min(420px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
dialog.sheet::backdrop { background: rgba(10, 12, 16, .45); }
dialog.sheet h2 { margin: 0 0 10px; }
dialog.sheet ol { padding-left: 20px; line-height: 1.7; }
dialog.sheet .btn { width: 100%; margin-top: 8px; }
@media (max-width: 640px) {
  .pdp-img { max-height: 280px; }
  /* tables with many columns: one card per row, labels from the header (app.js adds .cards and data-label) */
  .table-wrap:has(.otable.cards) { overflow-x: visible; }
  .otable.cards thead { display: none; }
  .otable.cards, .otable.cards tbody, .otable.cards tr { display: block; }
  .otable.cards tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .otable.cards tr:last-child { border-bottom: 0; }
  .otable.cards td { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 3px 0; border: 0; text-align: right; white-space: normal; }
  .otable.cards td::before { content: attr(data-label); flex: none; color: var(--ink-3); font-size: 12px; font-weight: 600; text-align: left; }
  .otable.cards td:not([data-label])::before { content: none; }
  .otable.cards td:empty { display: none; }
}
/* touch screens: 16 px text in fields (iOS zooms into anything smaller) and finger-sized targets */
.dd { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; max-width: 1100px; }
.dd-kind { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 16px 14px; margin: 0; min-width: 0; display: grid; gap: 8px; align-content: start; }
.dd-kind legend { font-weight: 700; padding: 0 6px; }
.dd-when { margin-top: -6px; }
.dd .radio, .dd .radio:has(input:checked) { border: 0; padding: 2px 0; font-size: 14px !important; background: none; }
.dd-body { display: grid; gap: 8px; }
.dd-body[hidden] { display: none; }
.dd-to { display: grid; gap: 4px; font-size: 13px; }
.dd-to input { width: 100%; }
.dd-formats { display: flex; flex-wrap: wrap; column-gap: 16px; row-gap: 2px; align-items: center; }
.dd-formats > span { font-size: 13px; color: var(--ink-3); width: 100%; }
.dd-note { grid-column: 1 / -1; margin: 0; font-size: 13px; }
.dd-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.tpl-group { font-size: 15px; margin: 22px 0 8px; color: var(--ink-2); }
.tpl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.tpl-item { display: grid; gap: 2px; padding: 12px 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; position: relative; }
.tpl-item:hover { border-color: var(--accent); }
.tpl-item .tag { position: absolute; top: 10px; right: 10px; }
.tpl-in { font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace !important; }
textarea.tpl-in { resize: vertical; }
.tpl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tpl-subject { display: grid; gap: 2px; padding: 10px 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px 12px 0 0; border-bottom: 0; }
.tpl-tabs { display: flex; gap: 4px; padding: 8px 10px 0; background: var(--surface); border: 1.5px solid var(--line); border-top: 0; border-bottom: 0; }
.tpl-tabs button { border: 0; background: none; padding: 6px 12px; border-radius: 8px 8px 0 0; font: inherit; color: var(--ink-3); cursor: pointer; }
.tpl-tabs button.on { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.tpl-frame { display: block; width: 100%; height: 980px; border: 1.5px solid var(--line); border-radius: 0 0 12px 12px; background: #f6f4ef; }
.tpl-frame.doc { height: 1100px; border-radius: 12px; background: #fff; }
.tpl-text { margin: 0; padding: 16px; border: 1.5px solid var(--line); border-radius: 0 0 12px 12px; background: var(--surface); white-space: pre-wrap; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; max-height: 760px; overflow: auto; }
@media (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px !important; }
  .crumbs a { display: inline-block; padding: 12px 4px; margin: -12px -4px; }
  .tm-add { width: 36px; height: 36px; }
  .tm-item { min-height: 40px; }
  .doc-links a { display: inline-block; padding: 10px 2px; margin: -10px -2px; }
  .link { padding: 10px 6px; margin: -10px -6px; }
  .pill, .chip, .toc a { min-height: 40px; display: inline-flex; align-items: center; }
  .pager a, .pager span { min-width: 44px; height: 44px; }
  .fgroup label { min-height: 40px; }
  .rm { min-width: 44px; min-height: 44px; }
  .fgroup .more { min-height: 40px; }
  .qty button { min-width: 40px; }
  .cats a, .tabs a { padding-top: 13px; padding-bottom: 13px; }
}
/* backoffice: legal text editor */
.legal-edit { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.legal-edit textarea { font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; min-height: 420px; resize: vertical; }
.legal-edit aside .summary { max-height: 640px; overflow-y: auto; }
.ph { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 8px 2px; cursor: pointer; color: inherit; }
.ph:hover { background: var(--accent-soft); }
.ph code { font-size: 12.5px; color: var(--accent); }
.ph small { display: block; color: var(--ink-3); font-size: 12px; }
.legal-preview { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 24px 20px; max-height: 70vh; overflow-y: auto; }
@media (max-width: 1000px) { .legal-edit { grid-template-columns: 1fr; } }
