/* Digital Showroom – Design nach FIXIT GRUPPE Webkatalog (LIVE-System)
   Grundlage: CD-Tokens (Roboto, quadratische Ecken, CD-Graustufen, Near-Black #1A1A1A, 8px-Raster),
   Button-/Mouseover-Standardregel, K-02 Text, K-15 Formulare, K-16 Downloads, K-23 Suche, K-25 Navigation,
   K-38 Filter-Chips, K-40 Produkt-Grid, K-44 Sprungmarken, K-45 Datentabelle, K-47 Akkordeon.
   Markenfarbe kommt pro Portfolio aus Admin › Marken (--accent), Textfarbe darauf aus der Kontrastregel (--accent-ink). */

@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/roboto-400.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/roboto-500.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/roboto-600.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/roboto-700.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/roboto-800.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 900; font-display: swap; src: url('/fonts/roboto-900.woff2') format('woff2'); }

:root {
  /* Marke (per JS überschrieben) */
  --accent: #E64415;
  --accent-rgb: 230,68,21;
  --accent-ink: #FFFFFF;
  --accent-dark: #ad3310;
  --accent-soft: #fdece8;
  --accent-text: #E64415;
  /* CD-Neutrals */
  --ink: #1A1A1A;
  --grey-light: #EDEDEE;
  --grey: #D9DADB;
  --grey-mid: #ADAEAF;
  --grey-dark: #58585A;
  /* Kompatibilität (Admin) */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --text: var(--ink);
  --muted: var(--grey-dark);
  --line: var(--grey);
  --soft: var(--grey-light);
  --ok: #0A7A2C;
  --no: var(--grey-mid);
  --radius: 0;
  --maxw: 1440px;
  --fs: 16px;              /* Webkatalog-Sektionsbasis 18px; Showroom 16px wegen Datendichte */
  --gutter: 24px;
  --ease: cubic-bezier(.2,0,.2,1);
  font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: var(--fs); line-height: 1.5; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::placeholder { color: var(--grey-dark); opacity: 1; }
.muted { color: var(--grey-dark); }
.small { font-size: .875em; }
code { font-family: ui-monospace, Consolas, monospace; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; text-align: left; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Icons (UI-Icons aus dem Webkatalog als Maske, Farbe = currentColor) */
.ic { display: inline-block; flex: none; width: 1.5em; height: 1.5em; background-color: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ic-search { --i: url('/icons/search.svg'); }
.ic-plus { --i: url('/icons/plus.svg'); }
.ic-minus { --i: url('/icons/minus.svg'); }
.ic-close { --i: url('/icons/close.svg'); }
.ic-comment { --i: url('/icons/comment.svg'); }
.ic-arrow { --i: url('/icons/arrow.svg'); }
.ic-back { --i: url('/icons/back.svg'); }
.ic-download { --i: url('/icons/download.svg'); }
.caret { display: inline-block; flex: none; width: .9em; height: .9em; background-color: currentColor; -webkit-mask: url('/icons/chevron.svg') center / contain no-repeat; mask: url('/icons/chevron.svg') center / contain no-repeat; transition: transform .15s var(--ease); }
.ci-logo { display: inline-block; max-width: 100%; -webkit-mask: var(--logo) left bottom / contain no-repeat; mask: var(--logo) left bottom / contain no-repeat; }
.ci-logo-img { display: block; width: auto; }

/* ---------- Text-Link mit Pfeil (STANDARDREGEL Textlink-Größen) */
.textlink { display: inline-flex; align-items: center; gap: 0; min-height: 44px; font-weight: 700; font-size: 1em; color: var(--ink); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; text-underline-offset: .35em; }
.textlink.small { font-size: .875em; }
.textlink:hover { text-decoration: underline; }
.tl-arrow { display: inline-block; flex: none; width: 2em; height: 2em; background-color: currentColor; -webkit-mask: url('/icons/arrow.svg') center / contain no-repeat; mask: url('/icons/arrow.svg') center / contain no-repeat; vertical-align: middle; }
.textlink .ic-back { width: 2em; height: 2em; margin-left: -.5em; }

/* ---------- Buttons (Button-Regel + Mouseover-Standardregel, Größen K-39/K-18) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 0; background: var(--accent); color: var(--accent-ink); font-size: 1em; font-weight: 700; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease); }
.btn:hover:not(:disabled) { background: #FFFFFF; color: var(--accent-text); box-shadow: inset 0 0 0 2px var(--accent); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: .875em; }
/* sekundär: weiße Fläche, schwarze Randlinie → Hover schwarz */
.btn.ghost { background: #FFFFFF; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover:not(:disabled) { background: var(--ink); color: #FFFFFF; box-shadow: inset 0 0 0 2px var(--ink); }
.btn:disabled { opacity: .35; cursor: default; }
.btn .ic { width: 1.75em; height: 1.75em; margin-left: -6px; }
.btn.sm .ic { width: 1.6em; height: 1.6em; }
.linkish { border: 0; background: none; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: .35em; cursor: pointer; font-size: inherit; font-weight: 700; min-height: 44px; }
.linkish:hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* ---------- Tags / Kicker / Badges (K-02, Letter-Spacing-Regel .1em) */
.chip { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; background: var(--grey-light); color: var(--ink); font-size: .875em; font-weight: 400; white-space: nowrap; }
.chip.warn { background: #FFF3CD; color: #6B4F00; font-weight: 700; }
.badge { display: inline-flex; align-items: center; padding: 3px 6px; margin-left: 8px; background: var(--accent); color: var(--accent-ink); font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; vertical-align: middle; }
.count { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; background: var(--grey-light); color: var(--ink); font-size: .8125rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.kicker, .fl-title, .sg-h, .mega-kicker { font-size: .875em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }

/* ---------- Kopfzeile (K-25 / K-26) */
.site-header { position: sticky; top: 0; z-index: 20; background: #FFFFFF; border-bottom: 1px solid var(--grey); }
.topbar { display: flex; align-items: center; gap: 24px; max-width: var(--maxw); margin: 0 auto; padding: 16px var(--gutter); }
.brand { display: inline-flex; align-items: flex-end; gap: 16px; text-decoration: none; white-space: nowrap; color: var(--ink); min-height: 44px; }
.brand:hover { opacity: .85; }
.logo-slot { display: inline-flex; align-items: flex-end; height: 40px; }
.logo-slot img { height: 40px; width: auto; max-width: 240px; object-fit: contain; }
#brand-name { font-weight: 800; font-size: 1.125em; text-transform: uppercase; line-height: 1.1; }
#brand-name.sub, .brand .sub { font-weight: 700; font-size: .875em; letter-spacing: .1em; color: var(--grey-dark); padding-left: 16px; border-left: 1px solid var(--grey); line-height: 1.3; align-self: center; }
.ctxlink { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 8px; background: var(--grey-light); color: var(--ink); font-size: .875em; text-decoration: none; white-space: nowrap; }
.ctxlink .chg { font-weight: 700; text-decoration: underline; text-underline-offset: .3em; }
.ctxlink:hover { background: var(--ink); color: #FFFFFF; }

/* Suche (K-23 / K-38): Eingabefeld mit 2px Markenrand + quadratischer Such-Button */
.search { position: relative; flex: 1; max-width: 560px; margin-left: auto; display: flex; }
.search input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 2px solid var(--accent); border-right: 0; border-radius: 0; background: #FFFFFF; font-size: 1em; outline: none; -webkit-appearance: none; appearance: none; }
.search input:focus-visible { box-shadow: inset 0 0 0 1px var(--accent); }
.search-btn { flex: none; width: 48px; height: 48px; border: 0; border-radius: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; }
.search-btn .ic { width: 40px; height: 40px; }
.search-btn:hover { background: #FFFFFF; color: var(--accent-text); box-shadow: inset 0 0 0 2px var(--accent); }
.suggest { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; background: #FFFFFF; border: 1px solid var(--grey); box-shadow: 0 6px 18px rgba(0,0,0,.08); max-height: 70vh; overflow: auto; }
.sg { border-bottom: 1px solid var(--grey); }
.sg-h { padding: 12px 16px 4px; }
.suggest a { display: flex; align-items: center; gap: 16px; padding: 12px 16px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--grey-light); }
.suggest a span { font-weight: 700; }
.suggest a small { color: var(--grey-dark); margin-left: auto; text-align: right; font-size: .875em; }
.suggest a:hover, .suggest a.hl { background: var(--grey-light); }
.sgimg { width: 40px; height: 40px; flex: none; background: var(--grey-light); overflow: hidden; display: grid; place-items: center; }
.sgimg img { width: 100%; height: 100%; object-fit: contain; }
.sgimg .noimg { min-height: 0; }
.sg-all { justify-content: flex-start; font-weight: 700; font-size: .875em; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-text) !important; }
.sg-all:hover { color: var(--ink) !important; background: #FFFFFF !important; text-decoration: underline; text-underline-offset: .35em; }
.sg-empty { padding: 16px; color: var(--grey-dark); }

.usermenu { display: flex; align-items: center; gap: 8px; }
/* sortable columns in the list view */
.listview th[aria-sort] { padding: 0; }
.thsort { display: inline-flex; align-items: center; gap: 6px; width: 100%; padding: 8px; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; white-space: nowrap; text-align: left; cursor: pointer; }
.thsort:hover { text-decoration: underline; text-underline-offset: .35em; }
.thsort .sortarrow { font-size: .75em; color: var(--grey-dark); }
.thsort.on .sortarrow { color: var(--ink); }
.usermenu .uname { font-size: .875em; color: var(--grey-dark); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Hauptnavigation (K-25): 600, Hover Unterstreichung .35em, offen/aktiv = Markenfarbe + 2px Linie */
.megabar { display: flex; align-items: stretch; gap: 32px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); overflow: hidden; white-space: nowrap; }
.megabar .mi { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0; border: 0; background: none; font-size: 1em; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer; flex: none; text-underline-offset: .35em; }
.megabar .mi:hover { text-decoration: underline; }
.megabar .mi::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: transparent; }
.megabar .mi.open, .megabar .mi.current { color: var(--accent-text); }
.megabar .mi.open::after, .megabar .mi.current::after { background: var(--accent); }
.megabar .mi.more { margin-left: auto; }
.mi.open .caret { transform: rotate(180deg); }

/* Mega-Dropdown (K-25): Ebene 2 | Ebene 3 | Teaser */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #FFFFFF; border-top: 1px solid var(--grey); box-shadow: 0 20px 40px rgba(0,0,0,.16); max-height: calc(100vh - var(--header-h, 140px) - 16px); overflow-y: auto; }
.mega-grid { display: grid; grid-template-columns: minmax(220px, 1.1fr) minmax(220px, 1.1fr) minmax(224px, 1fr); max-width: var(--maxw); margin: 0 auto; }
.mega-grid.mega-empty { grid-template-columns: minmax(0, 1fr); }
.mega-l1 { border-right: 1px solid var(--grey); }
.mega-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 24px; border-bottom: 1px solid var(--grey); font-weight: 600; color: var(--ink); text-decoration: none; }
.mega-row .ic { width: 2em; height: 2em; margin: -8px -8px -8px 0; }
.mega-row.on { background: var(--grey-light); color: var(--accent-text); }
.mega-row:hover span:first-child { text-decoration: underline; text-underline-offset: .35em; }
.mega-l2 { display: flex; flex-direction: column; gap: 0; padding: 16px 24px; border-right: 1px solid var(--grey); }
.mega-link { display: flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; text-underline-offset: .35em; }
.mega-link:hover { text-decoration: underline; }
.mega-link.active, .mega-row.active span:first-child { font-weight: 700; }
.mega-teaser { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; background: #FFFFFF; }
.mega-teaser::before { content: ""; display: block; align-self: stretch; height: 4px; background: var(--accent); }
.mega-t { font-size: 1.125em; font-weight: 800; text-transform: uppercase; line-height: 1.2; }
.mega-teaser p { margin: 0; font-size: .875em; }

/* ---------- Layout */
.layout { display: block; max-width: var(--maxw); margin: 0 auto; padding: 24px var(--gutter) 48px; }
main, main:focus, main:focus-visible { min-width: 0; outline: none; }
.loading { padding: 24px 0; }
.empty { background: var(--grey-light); padding: 40px 24px; text-align: center; }
.empty h2 { margin-top: 0; font-size: 1.25em; font-weight: 800; text-transform: uppercase; text-align: center; }

/* Brotkrumen + Werkzeuge */
.gridhead { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 16px; }
.crumbs { font-size: .875em; }
.crumbs a { text-decoration: none; font-weight: 700; text-underline-offset: .35em; }
.crumbs a:hover { text-decoration: underline; }
.crumbs > span:last-child:not(.sep) { color: var(--grey-dark); }
.crumbs .sep { margin: 0 8px; color: var(--grey-mid); }
.gridhead .tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .875em; }
.sort { display: inline-flex; align-items: center; gap: 8px; }
select, .sort select, .sectionbar select, .filter select, .vpick select { min-height: 44px; padding: 0 40px 0 12px; border: 1px solid var(--ink); border-radius: 0; background: #FFFFFF url('/icons/chevron.svg') right 12px center / 16px no-repeat; -webkit-appearance: none; appearance: none; cursor: pointer; }
.viewtoggle { display: inline-flex; }
.viewtoggle button { min-height: 44px; padding: 0 16px; border: 1px solid var(--grey); background: #FFFFFF; font-weight: 600; cursor: pointer; }
.viewtoggle button + button { border-left: 0; }
.viewtoggle button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.viewtoggle button:not(.on):hover { background: var(--grey-light); }

/* ---------- Filterleiste (K-38 Chips, K-44 Fläche) */
.filterwrap { margin-bottom: 24px; }
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--grey-light); border-top: 2px solid var(--ink); padding: 16px 24px; }
.filterbar .fl-title { margin-right: 8px; }
.filterbar .filter { display: inline-flex; gap: 8px; align-items: center; padding: 0; font-size: .875em; font-weight: 600; }
.filterbar .filter select { border-color: var(--grey); font-weight: 600; }
.filterbar select.set { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.fpop { position: relative; }
.fpop > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; background: #FFFFFF; border: 1px solid var(--grey); font-size: .875em; font-weight: 600; white-space: nowrap; }
.fpop > summary::-webkit-details-marker { display: none; }
.fpop > summary:hover { border-color: var(--ink); }
.fpop.set > summary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fpop[open] > summary { border-color: var(--ink); }
.fpop[open] > summary .caret { transform: rotate(180deg); }
.fpanel { position: absolute; z-index: 15; top: calc(100% + 8px); left: 0; min-width: 260px; max-height: 340px; overflow: auto; background: #FFFFFF; border: 1px solid var(--grey); box-shadow: 0 20px 40px rgba(0,0,0,.16); padding: 8px 16px 16px; }
.fpanel .opt { display: flex; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--grey-light); cursor: pointer; }
.fpanel .opt:hover span { text-decoration: underline; text-underline-offset: .3em; }
.fpanel .opt span { flex: 1; }
.fpanel .opt small { color: var(--grey-dark); }
.fpanel input[type=checkbox] { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.fpanel .range { display: flex; align-items: center; gap: 8px; margin: 8px 0 16px; }
.fpanel .range input, .fpanel.wide input[type=search] { min-height: 44px; width: 110px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 0; }
.fpanel .actions { display: flex; justify-content: flex-end; }
.fpanel p { margin: 8px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.fchip { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px 0 16px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-size: .875em; font-weight: 600; cursor: pointer; }
.fchip .ic { width: 28px; height: 28px; }
.fchip:hover { background: #FFFFFF; color: var(--ink); border-color: var(--ink); }
.filterbar .reset { margin-left: auto; }
.fcustom { display: inline-flex; align-items: stretch; }
.fcustom .frm { display: grid; place-items: center; width: 44px; border: 1px solid var(--grey); border-left: 0; background: #FFFFFF; color: var(--ink); cursor: pointer; padding: 0; }
.fcustom .frm .ic { width: 28px; height: 28px; }
.fcustom .frm:hover { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.fpop.disabled { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px dashed var(--grey-mid); color: var(--grey-dark); font-size: .875em; background: transparent; }
.addfilter > summary { border-style: dashed; border-color: var(--ink); }
.fpanel.wide { width: min(380px, calc(100vw - 32px)); display: grid; gap: 8px; }
.fpanel.wide input[type=search] { width: 100%; }
.addlist { display: grid; max-height: 320px; overflow-y: auto; }
.addopt { display: grid; gap: 2px; text-align: left; padding: 8px 0; border: 0; border-bottom: 1px solid var(--grey-light); background: none; cursor: pointer; color: var(--ink); min-height: 44px; }
.addopt:hover span, .addopt:focus-visible span { text-decoration: underline; text-underline-offset: .3em; }
.addopt span { font-weight: 600; }
.addopt small { color: var(--grey-dark); font-size: .8125em; }
.addopt.nodata span { color: var(--grey-dark); font-weight: 400; }

/* ---------- Produkt-Grid (K-40) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.grid .card { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--grey); text-decoration: none; color: var(--ink); }
.grid .card .thumb { aspect-ratio: 1 / 1; background: #FFFFFF; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--grey); padding: 16px; }
.grid .card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.grid .card .body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; flex: 1; }
.grid .card h3 { margin: 0; font-size: 1em; font-weight: 700; line-height: 1.3; }
.grid .card .textlink { margin-top: auto; min-height: 32px; }
.grid .card:hover .textlink, .grid .card:focus-visible .textlink { text-decoration: underline; }
.noimg { width: 100%; height: 100%; min-height: 48px; background: repeating-linear-gradient(135deg, var(--grey) 0 11px, var(--grey-light) 11px 22px); }
dl.mini { display: block; margin: 0; font-size: .8125em; align-self: stretch; min-width: 0; }
dl.mini dt { color: var(--grey-dark); margin-top: 8px; line-height: 1.3; }
dl.mini dt:first-child { margin-top: 0; }
dl.mini dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: break-word; word-break: normal; line-height: 1.4; }
.pager { display: flex; gap: 8px; justify-content: center; margin: 32px 0 0; flex-wrap: wrap; }
.pager a { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 8px; border: 1px solid var(--grey); text-decoration: none; font-weight: 600; background: #FFFFFF; }
.pager a:hover { border-color: var(--ink); }
.pager a.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pager .gap { display: grid; place-items: center; min-width: 24px; min-height: 44px; color: var(--grey-dark); }
.pager .pg-step .ic { width: 32px; height: 32px; }

/* Listenansicht = Datentabelle (K-45) */
table { border-collapse: collapse; font-size: .9375em; }
th, td { text-align: left; padding: 8px; border-top: 1px solid var(--grey-mid); vertical-align: top; line-height: 1.5; }
thead th { font-weight: 900; letter-spacing: .1em; text-transform: uppercase; font-size: .8125em; border-top: 4px solid var(--ink); border-bottom: 2px solid var(--ink); color: var(--ink); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 1px solid var(--grey-mid); }
.tablewrap { overflow-x: auto; max-width: 100%; }
.listview table { width: 100%; background: #FFFFFF; }
.listview td { vertical-align: middle; }
.listview tbody tr { cursor: pointer; }
.listview tbody tr:hover { background: var(--grey-light); }
.listview td a { color: var(--ink); font-weight: 700; text-decoration: none; text-underline-offset: .35em; }
.listview tbody tr:hover td a { text-decoration: underline; }
.lthumb { width: 72px; }
.lthumb img, .lthumb .noimg { width: 56px; height: 56px; object-fit: contain; min-height: 0; display: block; }

/* ---------- Detailseite */
.hero { display: grid; grid-template-columns: minmax(260px, 440px) minmax(0, 1fr); gap: 48px; padding: 8px 0 24px; }
.gallery .big { aspect-ratio: 1; background: #FFFFFF; border: 1px solid var(--grey); display: grid; place-items: center; overflow: hidden; padding: 24px; }
.gallery .big img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.thumbs button { width: 64px; height: 64px; padding: 4px; border: 1px solid var(--grey); background: #FFFFFF; cursor: pointer; overflow: hidden; }
.thumbs button:hover { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.back { margin-bottom: 8px; }
.info h1 { margin: 8px 0 16px; font-size: clamp(28px, 3.6vw, 48px); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.2; overflow-wrap: break-word; }
.info h1::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 16px; background: var(--accent); }
.info > p.muted { margin: 0 0 8px; }
.info .chip { margin-left: 8px; }
.highlights { display: grid; grid-template-columns: fit-content(45%) minmax(0, 1fr); margin: 24px 0; border-bottom: 1px solid var(--grey-mid); }
.highlights dt, .highlights dd { margin: 0; padding: 8px 16px 8px 0; border-top: 1px solid var(--grey-mid); }
.highlights dt { font-weight: 700; }
.highlights dt:first-of-type, .highlights dt:first-of-type + dd { border-top: 2px solid var(--ink); }
.vpick { display: grid; gap: 8px; margin: 16px 0; max-width: 640px; }
.vpick span { font-size: .875em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.vpick select { width: 100%; min-width: 0; min-height: 48px; }
.actions-left { margin: 24px 0 0; }

/* Reiter (Unterstreichung wie K-25) */
.tabbar { position: sticky; top: var(--header-h, 140px); z-index: 6; display: flex; gap: 32px; margin-top: 24px; background: #FFFFFF; border-bottom: 1px solid var(--grey); overflow-x: auto; }
.tabbar button { position: relative; display: inline-flex; gap: 8px; align-items: center; min-height: 56px; padding: 0; border: 0; background: none; font-weight: 600; font-size: 1.0625em; color: var(--ink); cursor: pointer; white-space: nowrap; text-underline-offset: .35em; }
.tabbar button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: transparent; }
.tabbar button:hover { text-decoration: underline; }
.tabbar button.on { color: var(--accent-text); font-weight: 700; }
.tabbar button.on::after { background: var(--accent); }

.sectionbar { position: sticky; top: var(--header-h, 140px); z-index: 5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 16px 0; background: #FFFFFF; }
.tabpanel .sectionbar { top: calc(var(--header-h, 140px) + 57px); }
.sectionbar .spacer { flex: 1; }
.sectionbar select.jump { max-width: 100%; }
.attrsearch { min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 0; min-width: 260px; background: #FFFFFF; }
.scopehint { margin: 0 0 16px; font-size: .875em; }
.scopehint .badge { margin: 0 8px 0 0; }
.nohit { padding: 24px 0; }

/* Attributgruppen = Akkordeon (K-47) */
.group { border-top: 1px solid var(--grey); scroll-margin-top: calc(var(--header-h, 140px) + 120px); }
.tabpanel > .group:last-child, .detail > .group:last-child { border-bottom: 1px solid var(--grey); }
details.group > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
details.group > summary::-webkit-details-marker { display: none; }
details.group > summary h2 { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 1.125em; font-weight: 800; letter-spacing: 0; }
.acc-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); background: #FFFFFF; color: var(--ink); display: grid; place-items: center; transition: background .15s var(--ease), color .15s var(--ease); }
.acc-ic::before { content: ""; width: 40px; height: 40px; background-color: currentColor; -webkit-mask: url('/icons/plus.svg') center / contain no-repeat; mask: url('/icons/plus.svg') center / contain no-repeat; }
details[open] > summary .acc-ic::before { -webkit-mask-image: url('/icons/minus.svg'); mask-image: url('/icons/minus.svg'); }
details.group > summary:hover .acc-ic { background: var(--ink); color: #FFFFFF; }
details.group .gbody { padding: 0 0 24px; }
details.group.has-variant > summary h2::after { content: attr(data-badge); display: inline-flex; padding: 3px 6px; background: var(--accent); color: var(--accent-ink); font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* Attributzeilen (Datentabelle K-45) */
.attr { display: grid; grid-template-columns: minmax(180px, 320px) minmax(0, 1fr) 40px; grid-template-areas: "k v c"; gap: 16px; padding: 8px 0; border-top: 1px solid var(--grey-mid); align-items: start; }
.gbody > .attr:first-child { border-top: 2px solid var(--ink); }
.gbody > .attr:last-child { border-bottom: 1px solid var(--grey-mid); }
.attr .k { grid-area: k; font-weight: 700; }
.attr .k code { display: block; font-size: .75em; font-weight: 400; color: var(--grey-dark); }
.attr .val { grid-area: v; min-width: 0; overflow-wrap: anywhere; }
.attr .cbtn { grid-area: c; }
.attr:hover { background: var(--grey-light); }
.attr.hl { background: var(--accent-soft); }
.bool.yes { font-weight: 700; }
.bool.yes::before { content: "■ "; }
.bool.no { color: var(--grey-dark); }
.vlist { margin: 0; padding-left: 0; list-style: none; }
.vlist li { position: relative; padding-left: 1.2em; }
.vlist li::before { content: "■"; position: absolute; left: 0; font-size: .7em; top: .35em; color: currentColor; }
.val a, .vt a, .comments a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.val a:hover, .vt a:hover { color: var(--accent-text); }
.val td, .val th { overflow-wrap: normal; word-break: normal; }
.val td { min-width: 5.5em; }
.val table thead th { font-size: .75em; }
table.vt { width: 100%; }
.vt a { text-decoration-thickness: 1px; }
table.vt tr.sel td { background: var(--accent-soft); font-weight: 700; }

/* Kommentar-Icon (Icon-Link-Kreis wie K-16: Marke/weiß → Hover weiß/Marke) */
.cbtn { display: grid; place-items: center; width: 32px; height: 32px; margin-top: -2px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); cursor: pointer; opacity: .25; transition: opacity .15s var(--ease); }
.cbtn .ic { width: 32px; height: 32px; }
.attr:hover .cbtn, .cbtn:focus-visible, .mblock .cbtn { opacity: 1; }
.cbtn:hover { background: #FFFFFF; color: var(--accent-text); box-shadow: inset 0 0 0 .64px var(--accent); }

/* Medien & Dateien (K-16 Downloads / K-14 Galerie) */
.mediagrid { display: grid; gap: 0; }
.mblock { padding: 16px 0 24px; border-top: 2px solid var(--ink); margin-top: 16px; }
.mblock h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; font-size: 1.125em; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.mblock h3 .spacer { flex: 1; }
.assets { display: flex; flex-wrap: wrap; gap: 16px; }
.asset { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--grey); text-decoration: none; background: #FFFFFF; color: var(--ink); max-width: 100%; font-size: .875em; font-weight: 700; }
.asset b { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 24px; padding: 0 6px; background: var(--ink); color: #FFFFFF; font-size: .75rem; font-weight: 700; }
.asset:hover { border-color: var(--ink); }
.asset:hover > span { text-decoration: underline; text-underline-offset: .3em; }
.asset.img { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px; width: 140px; }
.asset.img img, .asset.img .noimg { width: 100%; height: 122px; object-fit: contain; background: #FFFFFF; }
.asset.img span { font-size: .8125rem; overflow-wrap: anywhere; line-height: 1.3; }
.asset.img span b { margin-right: 4px; min-width: 0; min-height: 0; padding: 1px 4px; font-size: .6875rem; }
.asset.img small { font-size: .75rem; font-weight: 400; color: var(--grey-dark); }
.asset.img.doc { width: 150px; }
.asset.img.doc img, .asset.img.doc .noimg { height: 190px; object-fit: cover; object-position: top; border: 1px solid var(--grey-light); }
.asset.missing { opacity: .5; }
.asset.missing b { background: var(--grey-mid); }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.grid.small .chip { margin-right: 4px; }

/* Kommentare */
.comments { list-style: none; padding: 0; margin: 0; }
.comments li { border-top: 1px solid var(--grey-mid); padding: 12px 0; }
.comments p { margin: 4px 0; white-space: pre-wrap; }
.comments .meta { font-size: .8125em; color: var(--grey-dark); }
.comments .linkish { min-height: 0; font-size: inherit; }

/* Kommentar-Dialog (K-15 Formular, Variante mit 1px-Rahmen) */
dialog { border: 0; border-radius: 0; padding: 0; width: min(600px, 94vw); box-shadow: 0 20px 40px rgba(0,0,0,.16); color: var(--ink); }
dialog::backdrop { background: rgba(26,26,26,.5); }
.fb-form { display: grid; gap: 16px; padding: 24px; border-top: 4px solid var(--accent); }
.fb-form h2 { margin: 0; font-size: 1.125em; font-weight: 800; text-transform: uppercase; }
.fb-form .rule { border-top: 2px solid var(--ink); margin-top: -8px; }
.fb-form label { display: grid; gap: 8px; font-size: .875em; font-weight: 600; }
.fb-form label.inline { display: flex; align-items: center; gap: 12px; font-weight: 400; font-size: 1em; min-height: 44px; }
.fb-form input[type=checkbox] { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.fb-form select, .fb-form textarea, .fb-form input:not([type=checkbox]) { font-size: 1.1429em; min-height: 48px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 0; font-weight: 400; background: #FFFFFF; }
.fb-form select { padding-right: 40px; }
.fb-form textarea { padding: 12px 16px; resize: vertical; }
.fb-form :is(select, textarea, input):focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.fb-result { min-height: 1.2em; margin: 0; color: var(--grey-dark); }
.actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ---------- Anmeldung */
.login-body { display: grid; place-items: center; min-height: 100vh; background: var(--grey-light); }
.login-card { background: #FFFFFF; border-top: 4px solid var(--accent); padding: 32px; width: min(440px, 92vw); display: grid; gap: 16px; }
.login-card h1 { margin: 0; font-size: 1.5em; font-weight: 800; text-transform: uppercase; }
.login-card form { display: grid; gap: 12px; }
.login-card label { display: grid; gap: 8px; font-size: .875em; font-weight: 600; }
.login-card input { min-height: 48px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 0; font-size: 1.1429em; }
.login-card .btn { text-decoration: none; }
.login-error { color: #A4161A; background: #FDECEA; padding: 8px 12px; }

/* ---------- Einstieg: Marke → Land/Sprache */
body.starting #megabar, body.starting #search, body.starting #mega, body.starting #ctx { display: none !important; }
.start { max-width: 1120px; margin: 24px auto; }
.start h1 { margin: 0 0 8px; font-size: clamp(32px, 4.6vw, 48px); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.start h1 + p { max-width: 70ch; margin: 0; }
/* Schritte im Stil der Sprungmarken (K-44) */
.steps { display: flex; flex-wrap: wrap; gap: 8px 32px; list-style: none; margin: 24px 0; padding: 16px 24px; background: var(--grey-light); border-top: 2px solid var(--ink); counter-reset: st; }
.steps li { counter-increment: st; display: flex; align-items: center; min-height: 44px; color: var(--grey-dark); }
.steps li::before { content: counter(st); color: var(--grey-mid); font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 1em; }
.steps li.on { color: var(--ink); font-weight: 700; }
.steps li.on::before, .steps li.done::before { color: var(--accent-text); }
.steps li.done::before { content: "✓"; }
.steps li a { color: inherit; text-underline-offset: .35em; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 24px; margin-bottom: 24px; }
.choice { --c: var(--accent); display: grid; gap: 8px; align-content: start; justify-items: start; text-align: left; background: #FFFFFF; border: 1px solid var(--grey); border-top: 6px solid var(--c); padding: 24px; text-decoration: none; color: var(--ink); font: inherit; cursor: pointer; }
.choice strong { display: inline-flex; align-items: center; font-size: 1.125em; font-weight: 800; text-transform: uppercase; text-underline-offset: .35em; }
.choice strong .tl-arrow { width: 1.6em; height: 1.6em; }
.choice:hover strong, .choice:focus-visible strong { text-decoration: underline; }
.choice:hover { border-color: var(--ink); border-top-color: var(--c); }
.choice.current { background: var(--grey-light); }
.choice .chip { margin: 0; }
.choice .chip.warn { margin-top: 4px; }
.blogo { height: 56px; display: flex; align-items: flex-end; margin-bottom: 8px; justify-self: stretch; width: 100%; min-width: 0; overflow: hidden; }
.blogo .ci-logo { max-width: 100%; flex: 0 1 auto; }
.blogo .ci-logo-img { max-width: 100%; height: auto !important; max-height: 48px; }
.blogo img { max-height: 48px; max-width: 220px; object-fit: contain; }
.blogo .bname { display: inline-grid; place-items: center; width: 48px; height: 48px; background: var(--c); color: #FFFFFF; font-size: 1.5em; font-weight: 800; }
.warnbox { padding: 12px 16px; background: #FFF3CD; color: #6B4F00; }

/* Variantenansicht */
.modeltoggle { white-space: nowrap; }

/* Fußzeile */
.sitefoot { max-width: var(--maxw); margin: 0 auto; padding: 16px var(--gutter) 32px; color: var(--grey-dark); font-size: .8125em; border-top: 1px solid var(--grey); }
body.starting .sitefoot { display: none; }

/* ---------- Tablet / Mobil (Umbrüche wie Webkatalog: 900 / 600 px) */
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .topbar { flex-wrap: wrap; gap: 8px 16px; padding: 12px var(--gutter); }
  .search { order: 5; max-width: none; flex-basis: 100%; margin-left: 0; }
  .logo-slot, .logo-slot img { height: 32px; }
  .ci-logo { transform-origin: left bottom; }
  .brand .sub, #brand-name.sub { display: none; }
  .usermenu { order: 2; margin-left: auto; }
  .ctxlink, #mock { order: 3; }
  .sectionbar .btn.ghost.sm { padding: 0 12px; white-space: nowrap; }
  .usermenu .uname { display: none; }
  .megabar { gap: 24px; }
  .mega-grid { grid-template-columns: minmax(0, 1fr); }
  .mega-l1, .mega-l2 { border-right: 0; }
  .mega-l2 { border-bottom: 1px solid var(--grey); background: var(--grey-light); }
  .mega-teaser::before { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gallery .big { aspect-ratio: 4 / 3; }
  .attr { grid-template-columns: minmax(0, 1fr) 40px; grid-template-areas: "k c" "v v"; gap: 4px 8px; }
  .cbtn { opacity: 1; }
  .attrsearch { min-width: 0; flex: 1 1 100%; }
  .tabbar { gap: 24px; }
  .tabbar button { font-size: 1em; }
  .gridhead .tools { width: 100%; }
  .filterbar { padding: 16px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .grid .card .body { padding: 12px; }
  dl.mini { display: none; }
  .highlights { grid-template-columns: minmax(0, 1fr); }
  .highlights dd { border-top: 0; padding-top: 0; }
  .highlights dt:first-of-type + dd { border-top: 0; }
  .sectionbar .btn.ghost.sm { flex: 1; }
  .fpanel { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; min-width: 0; max-height: 60vh; }
  .choices { gap: 16px; }
  .start h1 { font-size: 28px; }
}

/* ---------- Quality Score + Vollständigkeit (Akeneo Data Quality Insights) */
.qs { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; font-weight: 700; font-size: 15px; color: #FFFFFF; line-height: 1; }
.qs.sm { min-width: 24px; height: 24px; font-size: 13px; }
.qs.lg { min-width: 56px; height: 56px; font-size: 32px; }
.qs-A { background: #0A7A2C; } .qs-B { background: #5E9E2F; } .qs-C { background: #F2B705; color: var(--ink); }
.qs-D { background: #E8770E; color: var(--ink); } .qs-E { background: #C62828; } .qs-none { background: var(--grey); color: var(--grey-dark); }
.compl { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.compl b { font-size: 14px; }
.cbar { display: inline-block; width: 96px; height: 8px; background: var(--grey-light); overflow: hidden; }
.compl.sm .cbar { width: 72px; height: 6px; }
.cfill { display: block; height: 100%; background: #0A7A2C; }
.compl.mid .cfill { background: #F2B705; } .compl.low .cfill { background: #C62828; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0 20px; }
.kpi { border: 1px solid var(--grey); border-left: 4px solid var(--accent); padding: 12px 16px; background: #FFFFFF; display: grid; gap: 8px; }
.kpi .kl { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--grey-dark); }
.kpi .kv { display: flex; align-items: center; gap: 14px; min-width: 0; }
.kpi .ks { font-size: 15px; line-height: 1.35; min-width: 0; }
.kpi .ks small { color: var(--grey-dark); font-size: 13px; }
.kbig { font-size: 32px; font-weight: 700; line-height: 1; color: #0A7A2C; }
.kbig.mid { color: #8A6700; } .kbig.low { color: #C62828; }
.card .thumb { position: relative; }
.qbadges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; align-items: center; z-index: 1; }
.cpill { font-size: 12px; font-weight: 700; padding: 4px 7px; background: rgba(255,255,255,.94); color: #0A7A2C; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.cpill.mid { color: #8A6700; } .cpill.low { color: #C62828; }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr; } }

/* ---------- Filterleiste kompakt (16.10.2026): alle Filter als gleich hohe Dropdown-Buttons, Label im Button */
.filterbar { gap: 6px; padding: 12px 16px; }
.filterbar .fl-title { margin-right: 4px; font-size: .75em; }
.fpop > summary { min-height: 40px; padding: 0 12px; gap: 6px; }
.fpop > summary b { font-weight: 700; }
.fpop.disabled { min-height: 40px; padding: 0 12px; }
.fcustom .frm { width: 36px; }
.fcustom .frm .ic { width: 22px; height: 22px; }
.fpanel input[type=radio] { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.chips { margin-top: 8px; gap: 6px; }
.fchip { min-height: 36px; padding: 0 6px 0 12px; }
.fchip .ic { width: 22px; height: 22px; }

/* ---------- Filter in zwei Reihen (16.10.2026): feste Filter | eigene Filter */
.filterbar { display: block; }
.filterbar .frow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filterbar .frow + .frow { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--grey); }
.filterbar .frow .fl-title { flex: none; min-width: 112px; margin-right: 4px; }
@media (max-width: 700px) { .filterbar .frow .fl-title { min-width: 0; width: 100%; } }

/* ---------- Produktbilder vollständig in der Kachel (16.10.2026): Bild absolut in die quadratische Fläche einpassen,
   damit die Prozenthöhe nicht an der Grid-Zeile scheitert und hohe Bilder (Säcke) oben/unten abgeschnitten werden */
.grid .card .thumb { position: relative; padding: 0; }
.grid .card .thumb > img, .grid .card .thumb > .noimg { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); min-height: 0; object-fit: contain; object-position: center; }
.grid .card .thumb .qbadges { z-index: 2; }

/* ---------- Liste „Filter hinzufügen“ (16.10.2026): lange, umbrechende Bezeichnungen überlappen nicht mehr */
.addlist { display: flex; flex-direction: column; }
.addopt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; flex: none; height: auto; line-height: 1.3; white-space: normal; }
.addopt span, .addopt small { display: block; max-width: 100%; overflow-wrap: anywhere; }

/* ---------- Fenster „Filter hinzufügen“ größer, nur die Liste scrollt (16.10.2026) */
.fpanel.wide { width: min(560px, calc(100vw - 32px)); max-height: none; overflow: visible; display: flex; flex-direction: column; gap: 8px; }
.fpanel.wide .addlist { max-height: min(70vh, 620px); overflow-y: auto; flex: 1 1 auto; min-height: 0; }
@media (max-width: 700px) {
  .fpanel.wide { max-height: 80vh; overflow: hidden; }
  .fpanel.wide .addlist { max-height: none; }
}

/* ---------- Produktvergleich (max. 3 Modelle ODER max. 3 Artikel) */
/* Auswahl: Kachel (oben rechts im Bild), Listenzeile, Detailseite, Variantentabelle */
.cardwrap { position: relative; display: flex; }
.cardwrap > .card { flex: 1; min-width: 0; }
.cmpbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 0; background: #FFFFFF; color: var(--ink); box-shadow: inset 0 0 0 1px var(--grey-mid); font-size: .875em; font-weight: 700; cursor: pointer; }
.cmpbtn:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.cmpbox { position: relative; flex: none; width: 18px; height: 18px; border: 2px solid var(--ink); background: #FFFFFF; }
.cmpbtn.on .cmpbox { background: var(--accent); border-color: var(--accent); }
.cmpbtn.on .cmpbox::after { content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cmpbtn.on { box-shadow: inset 0 0 0 2px var(--accent); }
.cmpbtn.oncard { position: absolute; top: 8px; right: 8px; z-index: 3; min-height: 32px; padding: 0 8px; background: rgba(255,255,255,.94); opacity: .85; }
.cardwrap:hover .cmpbtn.oncard, .cmpbtn.oncard:focus-visible, .cmpbtn.oncard.on { opacity: 1; }
.cmpbtn.inrow { min-height: 32px; padding: 0 8px; box-shadow: none; background: transparent; }
.cmpbtn.inrow .cmplbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cmpbtn.big { min-height: 48px; padding: 0 16px; text-transform: uppercase; }
td.lcmp { width: 1%; text-align: center; }
.actions-left { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Vergleichsleiste unten */
body.has-tray { padding-bottom: 96px; }
.cmptray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #FFFFFF; border-top: 4px solid var(--accent); box-shadow: 0 -4px 16px rgba(0,0,0,.12); }
.cmptray-in { max-width: var(--maxw); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cmptitle { display: inline-flex; align-items: center; gap: 8px; font-size: .9375em; }
.cmpitems { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; flex: 1; min-width: 0; }
.cmpitems li { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 0 1 260px; height: 56px; padding: 4px 4px 4px 4px; border: 1px solid var(--grey); background: #FFFFFF; }
.cmpitems li.slot { border-style: dashed; background: var(--grey-light); }
.cmpthumb { flex: none; width: 46px; height: 46px; display: grid; place-items: center; }
.cmpthumb img, .cmpthumb .noimg { width: 46px; height: 46px; min-height: 0; object-fit: contain; }
.cmpname { flex: 1; min-width: 0; font-size: .8125em; font-weight: 700; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cmprm { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.cmprm .ic { width: 28px; height: 28px; }
.cmprm:hover { background: var(--ink); color: #FFFFFF; }
.cmpactions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn.disabled { opacity: .35; cursor: default; pointer-events: none; }

.toast { position: fixed; left: 50%; bottom: 112px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 16px; max-width: min(640px, calc(100vw - 32px)); padding: 8px 8px 8px 16px; background: var(--ink); color: #FFFFFF; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.toast .linkish { color: #FFFFFF; min-height: 40px; }
.toastx { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; background: none; color: #FFFFFF; cursor: pointer; }
.toastx .ic { width: 28px; height: 28px; }

/* Vergleichsseite (K-45 Datentabelle, K-47 Akkordeon je Attributgruppe) */
.compare h1 { margin: 8px 0 4px; }
.cmphead { margin-bottom: 8px; }
.compare .sectionbar.cmptools { position: static; }
.cmptools .switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-right: 16px; cursor: pointer; font-weight: 700; font-size: .9375em; }
.cmptools .switch input { width: 20px; height: 20px; accent-color: var(--accent); }
.cmpwrap { overflow-x: auto; }
.cmptable { width: 100%; min-width: calc(200px + var(--cols, 3) * 220px); table-layout: fixed; background: #FFFFFF; }
.cmptable th.cmpcorner, .cmptable th.cmpk { width: 220px; }
.cmptable > thead > tr > th { position: sticky; top: var(--header-h, 140px); z-index: 4; background: #FFFFFF; vertical-align: top; text-transform: none; letter-spacing: 0; font-size: 1em; font-weight: 400; white-space: normal; }
.cmptable th.cmpk, .cmptable th.cmpcorner { position: sticky; left: 0; z-index: 3; background: #FFFFFF; }
.cmptable > thead > tr > th.cmpcorner { z-index: 5; vertical-align: bottom; }
.cmpcard { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; position: relative; padding-right: 8px; }
.cmpimg { width: 96px; height: 96px; display: grid; place-items: center; }
.cmpimg img, .cmpimg .noimg { width: 96px; height: 96px; min-height: 0; object-fit: contain; }
.cmplink { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .3em; line-height: 1.3; }
.cmpq { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmpcardact { position: absolute; top: 0; right: 0; display: flex; gap: 4px; }
.cmpcardact .cbtn { opacity: 1; margin: 0; }
.cmpgrow th { padding: 0; border-top: 2px solid var(--ink); background: #FFFFFF; }
.cmpg { position: sticky; left: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 8px 0; border: 0; background: none; color: var(--ink); font-size: 1.0625em; font-weight: 800; cursor: pointer; text-align: left; }
.cmpg .acc-ic { width: 32px; height: 32px; margin-left: 8px; }
.cmpg .acc-ic::before { width: 32px; height: 32px; }
.cmpg[aria-expanded="true"] .acc-ic::before { -webkit-mask-image: url('/icons/minus.svg'); mask-image: url('/icons/minus.svg'); }
.cmpg:hover .acc-ic { background: var(--ink); color: #FFFFFF; }
.dcount { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; background: var(--accent-soft); color: var(--ink); font-size: .8125rem; font-weight: 700; }
.cmpk { font-weight: 700; font-size: .9375em; }
.cmpk span { display: block; }
.cmpk code { display: block; font-weight: 400; font-size: .75em; color: var(--grey-dark); overflow-wrap: anywhere; }
.cmptable > tbody > tr > td { overflow-wrap: anywhere; }
.cmptable > tbody > tr.diff > td.d { background: var(--accent-soft); }
.cmptable > tbody > tr.diff > th.cmpk { box-shadow: inset 4px 0 0 var(--accent); }
.cmpcell { display: flex; align-items: flex-start; gap: 8px; }
.cmpcell .val { flex: 1; min-width: 0; }
.cmpcell .cbtn { flex: none; opacity: 0; }
.cmptable > tbody > tr:hover > td > .cmpcell > .cbtn, .cmpcell .cbtn:focus-visible { opacity: 1; }
.cmpempty { color: var(--grey-mid); }
.vspread { display: block; margin-top: 2px; font-size: .75em; color: var(--grey-dark); }
.cmpmore summary { cursor: pointer; }
.cmpmore summary b { text-decoration: underline; text-underline-offset: .3em; }
.cmpassets { display: flex; flex-wrap: wrap; gap: 6px; }
.cmpfile { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 32px; padding: 2px 8px 2px 2px; border: 1px solid var(--grey); color: var(--ink); text-decoration: none; font-size: .8125em; }
.cmpfile b { flex: none; padding: 2px 6px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; }
.cmpfile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmpfile:hover { border-color: var(--ink); }
.cmpfile.pic { padding: 2px; }
.cmpfile.pic img { width: 56px; height: 56px; object-fit: contain; display: block; }
.cmpfile.missing { opacity: .6; }
@media (max-width: 700px) {
  .cmptable { min-width: calc(130px + var(--cols, 3) * 170px); }
  .cmptable th.cmpcorner, .cmptable th.cmpk { width: 130px; }
  .cmpimg, .cmpimg img, .cmpimg .noimg { width: 64px; height: 64px; }
  .cmptable > thead > tr > th { position: static; }
  .cmpitems { flex-basis: 100%; }
  .cmpitems li { flex: 1 1 0; height: 48px; }
  .cmpitems .cmpname { display: none; }
  .cmptitle { width: 100%; }
  .toast { bottom: 150px; }
  body.has-tray { padding-bottom: 150px; }
}
@media print { .cmptray, .toast, .cmptools, .cbtn, .cmprm, .cmpbtn { display: none !important; } .cmptable > thead > tr > th { position: static; } }
/* Kopfzeile der Vergleichstabelle bleibt beim Scrollen stehen – geht nur ohne Scroll-Container (breite Bildschirme) */
@media (min-width: 1000px) { .tablewrap.cmpwrap { overflow: visible; } }

/* "Meine Kommentare" (#/meine-kommentare) */
.mylink { position: relative; gap: 6px; }
.mylink .badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: .75em; font-weight: 700; line-height: 1; }
.mycomments { max-width: var(--maxw); margin: 0 auto; padding: 24px var(--gutter) 48px; }
.mycomments .filter { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 16px; }
.mylist td { vertical-align: top; }
.mylist .cmt { white-space: pre-wrap; max-width: 60ch; }
.mylist tr.done td { color: var(--grey-dark); }
.mylist tr.new { box-shadow: inset 4px 0 0 var(--accent); }
.chip.status.open { background: #FFF3CD; color: #6B4F00; }
.chip.status.ok { background: #E3F2E5; color: #1E5B2A; }
@media (max-width: 600px) { .mylink { font-size: 0; } .mylink .badge { font-size: 12px; } .mylink::before { content: '✎'; font-size: 16px; } }
