
/* ============================================================
   chemicalworkz — Messe-Katalog Print Stylesheet
   A3 landscape (1190 x 842 pt), 1 page = 1 spread
   ============================================================ */

@page {
  size: 1190pt 842pt;
  margin: 0;
}

* { box-sizing: border-box; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

html, body {
  margin: 0; padding: 0;
  font-family: 'Open Sans', system-ui, sans-serif;
  color: var(--color-anthrazit);
  background: white;
  font-size: 11pt;
  line-height: 1.45;
}

:root {
  --color-anthrazit: #1d1e1e;
  --color-anthrazit-2: #0e0e0e;
  --color-weiss: #FFFFFF;
  --color-hellgrau: #F4F4F2;
  --color-tuerkis-50: #ECF8F9;
  --color-tuerkis-100: #D1EFF0;
  --color-tuerkis-200: #50C3C5;
  --color-tuerkis-400: #50C3C5;
  --color-tuerkis-600: #339799;
  --color-tuerkis-800: #246A6B;
  --color-tuerkis-900: #174445;
  --color-text-muted: #6B6B73;
  --color-border: #E2E2DF;
  --font-display: 'Jost', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;

  /* pt-based padding scale (matches existing brand rhythm) */
  --pad-1: 6pt;  --pad-2: 10pt;  --pad-3: 12pt;  --pad-4: 16pt;
  --pad-5: 24pt; --pad-6: 32pt;  --pad-7: 48pt;  --pad-8: 64pt;
  --pad-9: 80pt; --pad-10: 96pt;

  /* Bridge brand tokens into Bootstrap so Reboot inherits our fonts/colors */
  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: 11pt;
  --bs-body-color: var(--color-anthrazit);
  --bs-body-bg: #FAFAF8;
  --bs-link-color: var(--color-tuerkis-600);
  --bs-link-hover-color: var(--color-tuerkis-800);
}

/* Each section is exactly one A3 landscape page */
.page {
  width: 1190pt;
  height: 842pt;
  position: relative;
  overflow: hidden;
  page-break-after: always;
  break-after: page;
  background: white;
}
.page:last-child { page-break-after: auto; }

/* Slideshow layout — only when body has class="slideshow-mode".
   Without that class (i.e. catalog.html / mode="print") the body uses
   normal block flow and all .page sections stack vertically so the
   document is fully scrollable AND pages print in correct order. */
body.slideshow-mode {
  height: 100%; margin: 0; background: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
body.slideshow-mode .page {
  width: 1190pt;
  height: 842pt;
  /* scale = min(vw/1190pt, vh/842pt). 1pt = 1.333px at 96dpi, so:
     1190pt ≈ 1587px, 842pt ≈ 1123px. */
  transform: scale(min(calc((100vw) / 1190pt), calc((100vh) / 842pt)));
  transform-origin: center center;
  flex-shrink: 0;
}

/* When the slideshow is active, every .page except the current one is
   hidden via inline display:none — set by the slideshow JS. Fade-in
   animation on .is-current gives a smooth page-to-page transition. */
body.slideshow-mode .page { display: none; }
body.slideshow-mode .page.is-current {
  display: block;
  animation: pageFadeIn 0.35s ease-out;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: scale(min(calc((100vw) / 1190pt), calc((100vh) / 842pt))) translateX(8pt); }
  to   { opacity: 1; transform: scale(min(calc((100vw) / 1190pt), calc((100vh) / 842pt))) translateX(0); }
}

/* ===== Cover ===== */
.cover { width: 100%; height: 100%; position: relative; overflow: hidden; }
.cover__right {
  background: var(--color-anthrazit-2);
  color: var(--color-weiss);
}
.cover__logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 56pt;
  letter-spacing: -0.02em;
  line-height: 1;
  align-self: flex-end;
}
.cover__logo sup { font-size: 0.4em; vertical-align: super; }
.cover__product-row {
  height: 90pt;
  margin: 24pt 0 12pt;
}
.cover__product {
  flex: 1;
  /* No border, no türkis tint — let the underlying texture (camo-dark) show through cleanly */
  background: transparent;
  border-top: none;
  border-radius: 0;
  height: 100%;
}
.cover__motto {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18pt;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--color-tuerkis-400);
  margin-bottom: 8pt;
}
.cover__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 64pt;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--color-weiss);
  margin: 0 0 14pt;
}
.cover__edition {
  font-size: 11pt; letter-spacing: 0.2em;
  color: var(--color-tuerkis-400);
}

/* ===== About ===== */
.about {
  width: 100%; height: 100%;
  /* Same anthrazit backdrop as .cover__right so the texture gaps read
     identical on both pages of the spread. */
  background: var(--color-anthrazit-2);
}
.about__text {
  /* No solid bg — let the tex-dark--about texture (camo-dark-wide.jpg)
     from the parent .about container show through on both columns. */
  background: transparent;
  color: var(--color-weiss);
}
.about__eyebrow {
  font-family: var(--font-display);
  font-size: 11pt;
  letter-spacing: 0.18em;
  color: var(--color-tuerkis-400);
  margin-bottom: 14pt;
}
.about__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56pt;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 32pt;
}
.about__text p {
  font-size: 12pt; line-height: 1.65;
  color: rgba(255,255,255,0.86);
  margin: 0 0 16pt;
}
.about__promise {
  margin: 24pt 0;
  padding: 18pt 0;
  border-top: 1pt solid rgba(255,255,255,0.18);
  border-bottom: 1pt solid rgba(255,255,255,0.18);
}
.about__promise-item {
  flex: 1;
}
.about__promise-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18pt;
  color: var(--color-tuerkis-200);
  line-height: 1.1;
  margin-bottom: 4pt;
}
.about__promise-label {
  font-size: 10pt;
  line-height: 1.4;
  color: rgba(255,255,255,0.7);
}
.about__quote {
  margin: 24pt 0 0;
  padding: 0;
  border: none;
  font-family: var(--font-display);
  font-size: 14pt;
  line-height: 1.5;
  color: var(--color-tuerkis-100);
}
.about__quote-cite {
  display: block;
  margin-top: 8pt;
  font-size: 11pt;
  font-style: normal;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
}
.about__signature {
  margin-top: 24pt;
  font-family: var(--font-display);
  font-size: 14pt;
  color: var(--color-tuerkis-200);
}
.about__visual {
  /* No türkis halo — let the camo-dark texture be the only graphic on this surface */
  position: relative;
}
.about__visual-inner {
  padding: var(--pad-10) var(--pad-9);
  position: relative;
  z-index: 2;
}
.about__visual-eyebrow {
  font-family: var(--font-display);
  font-size: 11pt;
  letter-spacing: 0.2em;
  color: var(--color-tuerkis-400);
  margin-bottom: 14pt;
}
.about__visual-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36pt;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-weiss);
}
.about__stats {
  margin: 28pt 0;
  border-top: 1pt solid rgba(255,255,255,0.18);
  border-bottom: 1pt solid rgba(255,255,255,0.18);
  padding: 16pt 0;
}
.about__stat {
  padding: 8pt 0;
}
.about__stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28pt;
  line-height: 1;
  color: var(--color-tuerkis-200);
  margin-bottom: 4pt;
}
.about__stat-label {
  font-size: 10pt;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
}
.about__visual-tagline {
  border-top: 1pt solid rgba(255,255,255,0.18);
  padding-top: 18pt;
}
.about__tagline-eyebrow {
  font-family: var(--font-display);
  font-size: 12pt;
  letter-spacing: 0.18em;
  color: var(--color-tuerkis-400);
  margin-bottom: 6pt;
}
.about__tagline-main {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20pt;
  line-height: 1.2;
  color: var(--color-weiss);
}

/* ===== TOC ===== */
.toc {
  width: 100%; height: 100%;
  background: white;
}
.toc__header { margin-bottom: 50pt; }
.toc__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 64pt;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}
.toc__subtitle {
  font-family: var(--font-display);
  font-size: 13pt;
  letter-spacing: 0.15em;
  color: var(--color-tuerkis-800);
  margin-top: 16pt;
}
.toc__phases {
  display: flex;
  gap: 0 50pt;
  border-top: 1.5pt solid var(--color-anthrazit);
  padding-top: 28pt;
}
.toc__phase-anchor {
  display: block;
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  transition: transform 240ms ease-out;
}
.toc__phase-anchor:hover,
.toc__phase-anchor:focus-visible {
  transform: translateX(3pt);
  outline: none;
}
.toc__phase-anchor:focus-visible .toc__phase-name {
  letter-spacing: -0.015em;
}
.toc__phase-name {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 38pt;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-anthrazit);
  margin-bottom: 12pt;
}

/* Tilted icon background centered in each phase card (fades in on hover) */
.toc__phase-anchor[href="#phase-clean"]::before,
.toc__phase-anchor[href="#phase-care"]::before,
.toc__phase-anchor[href="#phase-coat"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 33%;
  width: 144pt;
  height: 144pt;
  transform: translate(calc(-50% - 16pt), -50%) rotate(45deg);
  background-image: url("textures/SVG/clean_bg.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 900ms ease-out;
  z-index: -1;
  pointer-events: none;
}
.toc__phase-anchor[href="#phase-clean"]:hover::before,
.toc__phase-anchor[href="#phase-clean"]:focus-visible::before,
.toc__phase-anchor[href="#phase-care"]:hover::before,
.toc__phase-anchor[href="#phase-care"]:focus-visible::before,
.toc__phase-anchor[href="#phase-coat"]:hover::before,
.toc__phase-anchor[href="#phase-coat"]:focus-visible::before {
  opacity: 0.18;
}
.toc__phase-count {
  font-family: var(--font-display);
  font-size: 10pt;
  letter-spacing: 0.18em;
  color: var(--color-tuerkis-600);
  margin-bottom: 14pt;
}
.toc__phase-lead {
  font-size: 11pt;
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 36ch;
}
.toc__phase-anchor:hover .toc__phase-lead,
.toc__phase-anchor:focus-visible .toc__phase-lead {
  color: var(--color-text);
}

/* ===== TOC: flat sub-category strip ===== */
.toc__strip {
  border-top: 1.5pt solid var(--color-anthrazit);
  padding-top: 24pt;
}
.toc__strip-list {
  display: grid;
  align-items: baseline;
}
.toc__strip-link {
  display: inline-flex;
  align-items: baseline;
  gap: 4pt;
  flex: 0 0 auto;
  width: max-content;
  font-family: var(--font-display);
  font-size: 10.5pt;
  letter-spacing: 0.02em;
  color: var(--color-anthrazit);
  transition: color 180ms ease-out;
}
.toc__strip-link:hover,
.toc__strip-link:focus-visible {
  color: var(--color-tuerkis-600);
  outline: none;
}
.toc__strip-link:hover .toc__strip-count,
.toc__strip-link:focus-visible .toc__strip-count {
  color: var(--color-tuerkis-800);
}
.toc__strip-name { font-weight: 500; }
.toc__strip-count {
  font-weight: 600;
  font-size: 9pt;
  color: var(--color-tuerkis-600);
  font-variant-numeric: tabular-nums;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toc__phase-anchor,
  .toc__strip-link,
  .toc__phase-anchor[href="#phase-clean"]::before,
  .toc__phase-anchor[href="#phase-care"]::before,
  .toc__phase-anchor[href="#phase-coat"]::before { transition: none; }
}

/* ===== Phase Intro ===== */
.phase-intro {
  width: 100%; height: 100%;
}
.page--phase-intro-clean .phase-intro__visual {
  /* Anthrazit-only backdrop — camo-dark texture provides all visual interest */
  background: linear-gradient(135deg, #1d1e1e, #0a0a14);
}
.page--phase-intro-care .phase-intro__visual {
  background: linear-gradient(135deg, #1d1e1e, #0e0e0e);
}
.page--phase-intro-coat .phase-intro__visual {
  background: linear-gradient(135deg, #0e0e0e, #1d1e1e);
}
.page--phase-intro-sets .phase-intro__visual {
  background: linear-gradient(135deg, #1d1e1e, #0e0e0e);
}
.phase-intro__visual { position: relative; overflow: hidden; }
.phase-intro__content {
  background: white;
}
.phase-intro__eyebrow {
  font-family: var(--font-display);
  font-size: 11pt; letter-spacing: 0.2em;
  color: var(--color-tuerkis-600);
  margin-bottom: 16pt;
}
.phase-intro__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 96pt;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 28pt;
  color: var(--color-anthrazit);
}
.phase-intro__lead {
  font-size: 14pt;
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 40ch;
  margin-bottom: 50pt;
}
.phase-intro__usps {
  /* 2-column via row/col-6; gap on inline style */
}
.phase-intro__usp-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32pt;
  color: var(--color-tuerkis-400);
  display: block;
  line-height: 1;
}
.phase-intro__usp-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13pt;
  color: var(--color-anthrazit);
  margin: 6pt 0 4pt;
}
.phase-intro__usp-body {
  font-size: 10pt;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* ===== Category Intro (before each subcategory grid) ===== */
.cat-intro {
  width: 100%; height: 100%;
  display: grid;
  grid-template-columns: 1fr 2fr;  /* left (visual) narrower than right (content) */
}
.cat-intro__visual {
  /* Same backdrop as cover (.cover__right) and about (.about): solid
     --color-anthrazit-2 so the spread reads consistently dark. */
  background: var(--color-anthrazit-2);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 70pt 60pt;
  color: white;
  overflow: hidden;
}
.cat-intro__visual-eyebrow {
  font-family: var(--font-display);
  font-size: 11pt;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.7);
  position: relative;
}
.cat-intro__visual-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 180pt;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: white;
  margin-top: 10pt;
  position: relative;
}
.cat-intro__visual-label {
  font-family: var(--font-display);
  font-size: 14pt;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.85);
  margin-top: 6pt;
  position: relative;
}
.cat-intro__content {
  background: white;
}
.cat-intro__eyebrow {
  font-family: var(--font-display);
  font-size: 10pt;
  letter-spacing: 0.2em;
  color: var(--color-tuerkis-600);
  margin-bottom: 14pt;
}
.cat-intro__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 78pt;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 28pt;
  color: var(--color-anthrazit);
}
.cat-intro__lead {
  font-size: 13pt;
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 80ch;
  margin-bottom: 36pt;
}
.cat-intro__bullets {
  max-width: 100%;
}
/* .cat-intro__bullet: layout via col d-flex + inline gap (see HTML emission) */
.cat-intro__bullet-mark {
  flex: 0 0 8pt;
  width: 8pt; height: 8pt;
  border-radius: 50%;
  background: var(--color-tuerkis-400);
  margin-top: 6pt;
}
.cat-intro__bullet-text {
  flex: 1 1 auto;
}
.cat-intro__bullet-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12pt;
  color: var(--color-anthrazit);
  margin-bottom: 2pt;
}
.cat-intro__bullet-body {
  font-size: 9.5pt;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* ===== Hero Product ===== */
.hero {
  width: 100%; height: 100%;
}
.hero__left {
  background: var(--color-hellgrau);
}
.hero__main {
  flex: 1;
  background: white;
  border-radius: 6pt;
  overflow: hidden;
}
.hero__main-img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
.hero__main-img--empty {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #f4f4f2, #e8e8e8);
}
.hero__phase-tag {
  position: absolute; top: 16pt; left: 16pt;
  background: var(--color-tuerkis-50);
  color: var(--color-tuerkis-800);
  font-family: var(--font-display);
  font-size: 10pt;
  font-weight: 500;
  letter-spacing: 0.15em;
  padding: 6pt 14pt;
  border-radius: 999pt;
}

.hero__right {
  background: white;
  padding: 50pt 50pt 40pt;
}
.hero__header { margin-bottom: 24pt; }
.hero__category {
  font-family: var(--font-display);
  font-size: 10pt;
  letter-spacing: 0.18em;
  color: var(--color-tuerkis-600);
  margin-bottom: 8pt;
}
.hero__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26pt;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 6pt;
  color: var(--color-anthrazit);
}
.hero__sku {
  font-size: 9pt;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}
.hero__feats {
  /* 2 columns × 2 rows of feat cards. grid-template-rows auto so the
     layout collapses cleanly when fewer than 4 feats are rendered. */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: auto;
  gap: 8pt;
  margin-bottom: 14pt;
}
.hero__feat {
  min-width: 0;  /* allow grid item to shrink so ellipsis can kick in */
  background: var(--color-hellgrau);
  padding: 7pt 10pt;
  border-radius: 4pt;
}
.hero__feat-title {
  font-family: var(--font-display);
  font-size: 7.5pt;
  letter-spacing: 0.12em;
  color: var(--color-tuerkis-800);
  margin-bottom: 2pt;
  /* Heading stays on a single line — long labels overflow into the
     specs table at the bottom (see spread_hero spec-routing). */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero__feat-value {
  font-size: 9.5pt;
  color: var(--color-anthrazit);
  font-weight: 600;
  /* Value stays on a single line; long values are routed to specs
     instead, so this is a safety net for overflow. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero__feat-empty {
  /* Spans full width via col-12; parent is now display:flex (row), not grid */
  font-size: 11pt;
  color: var(--color-text-muted);
}
.hero__bottom { margin-bottom: 16pt; }
.hero__price-block {
  display: flex; align-items: baseline; gap: 14pt;
  padding: 14pt 0;
  border-top: 2pt solid var(--color-anthrazit);
}
.hero__price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28pt;
  color: var(--color-anthrazit);
  letter-spacing: -0.01em;
}
.hero__price--na {
  font-size: 16pt;
  font-weight: 400;
  color: var(--color-text-muted);
}
.hero__avail {
  font-family: var(--font-display);
  font-size: 10pt;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 4pt 10pt;
  border-radius: 999pt;
}
.hero__avail--InStock {
  background: var(--color-tuerkis-50);
  color: var(--color-tuerkis-800);
}
.hero__avail--OutOfStock {
  background: #f4f4f2;
  color: var(--color-text-muted);
}
.hero__thumbs {
  /* flex-wrap; gap on inline style. align-items: stretch keeps cells aligned. */
  align-items: stretch;
  margin-bottom: 16pt;
}
.hero__thumb {
  /* 100px × 100px (was 124px — 20% smaller). Fixed cell, no flex-grow. */
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
  background: white;
  border: 1pt solid var(--color-border);
  border-radius: 4pt;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.hero__thumb.hero__thumb--active {
  border-color: var(--color-tuerkis-600);
  border-width: 2pt;
}
.hero__thumb img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
}
.hero__specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 9.5pt;
  margin-top: auto;
}
.hero__specs th {
  text-align: left;
  font-weight: 600;
  color: var(--color-anthrazit);
  padding: 5pt 12pt 5pt 0;
  border-bottom: 1pt solid var(--color-border);
  width: 38%;
}
.hero__specs td {
  text-align: right;
  padding: 5pt 0;
  border-bottom: 1pt solid var(--color-border);
  color: var(--color-text-muted);
}

/* ===== Grid Spread ===== */
.grid-spread {
  width: 100%; height: 100%;
  background: white;
  padding: 40pt 50pt 40pt 50pt;
  display: flex; flex-direction: column;
  container-type: size;
  container-name: gridspread;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: baseline;
  align-content: center;
}
.grid-spread__header {
  margin-bottom: 24pt;
  border-bottom: 2pt solid var(--color-anthrazit);
  /* padding-bottom: 14pt; */
}
.grid-spread__phase {
  font-family: var(--font-display);
  font-size: 11pt;
  letter-spacing: 0.2em;
  color: var(--color-tuerkis-600);
  margin-bottom: 6pt;
}
.grid-spread__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 36pt;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.grid-spread__cells {
  flex: 1;
  min-height: 0;
}
/* Cell width adapts to --cols: (100% - gap*(cols-1)) / cols, with gap=80pt */
.grid-cell {
  /* default 4 cols; pages may override via inline --cols */
  flex: 0 0 calc((100% - 80pt * (var(--cols, 4) - 1)) / var(--cols, 4));
}
/* 3-col layout (Poliermaschinen): cells are wider, so shrink image area
   to keep total row height ≤ 4-col and avoid clipping the bottom row. */
.grid-spread__cells[style*="--cols: 3;"] .grid-cell__img {
  width: 50%;
  margin-bottom: 5pt;
}
.grid-spread__cells[style*="--cols: 3;"] .grid-cell__name {
  min-height: 18pt;
  margin-bottom: 2pt;
}
.grid-spread__cells[style*="--cols: 3;"] .grid-cell__size {
  margin-bottom: 2pt;
}
/* .grid-cell: layout via d-flex flex-column (see HTML emission) */
.grid-cell__img {
  /* background: var(--color-hellgrau); */
  width: 65%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 4pt;
  margin-bottom: 8pt;
  margin-left: auto;
  margin-right: auto;
}
.grid-cell__img img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.grid-cell__img-empty {
  width: 100%;
  height: 100%;
  background: var(--color-hellgrau);
}
.grid-cell__sku {
  font-family: var(--font-display);
  font-size: 8pt;
  letter-spacing: 0.12em;
  color: var(--color-tuerkis-600);
  margin-bottom: 3pt;
}
.grid-cell__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 10pt;
  line-height: 1.25;
  color: var(--color-anthrazit);
  margin-bottom: 3pt;
  min-height: 25pt;
}
.grid-cell__size {
  font-size: 8.5pt;
  color: var(--color-text-muted);
  margin-bottom: 3pt;
  min-height: 12pt;
}
.grid-cell__price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11pt;
  color: var(--color-anthrazit);
}
.grid-cell__price--na {
  font-size: 9pt;
  color: var(--color-text-muted);
  font-weight: 400;
}
.grid-cell__variants {
  display: flex; align-items: center; gap: 6pt;
  margin-top: 5pt; padding-top: 5pt;
  border-top: 1pt dotted var(--color-border);
  min-height: 22pt;
}
.grid-cell__variants-count {
  font-family: var(--font-display);
  font-size: 7.5pt;
  letter-spacing: 0.10em;
  color: var(--color-tuerkis-600);
}
.grid-cell__variants-dots {
  display: inline-flex; gap: 3pt; align-items: center;
}
.grid-chip {
  display: inline-block;
  width: 10pt; height: 10pt;
  border-radius: 50%;
  border: 0.6pt solid rgba(28,29,44,0.35);
  display: inline-block;
}
/* Dim chips carry a text label (size, diameter, …). Override the circle shape. */
.grid-chip--dim {
  width: auto; height: auto;
  border-radius: 3pt;
  padding: 2pt 5pt;
  background: var(--color-hellgrau);
  border: 0.5pt solid var(--color-border);
  font-family: var(--font-display);
  font-size: 6.5pt;
  letter-spacing: 0.04em;
  color: var(--color-text);
  white-space: nowrap;
  line-height: 1;
}
.grid-chip--dim .grid-chip__label {
  display: inline-block;
}

/* ===== Variant color strip (in hero spread) ===== */
.color-strip {
  background: var(--color-hellgrau);
  border-radius: 4pt;
  padding: 10pt 14pt 12pt;
  margin-top: 12pt;
}
.color-strip__label {
  font-family: var(--font-display);
  font-size: 9pt;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: 8pt;
}
.color-strip__label b {
  color: var(--color-tuerkis-800);
  font-weight: 600;
}
.color-strip__chips {
  display: flex; flex-wrap: wrap; gap: 6pt;
}
.color-chip {
  display: inline-flex; align-items: center; gap: 5pt;
  background: white;
  padding: 4pt 8pt 4pt 4pt;
  border-radius: 999pt;
  border: 0.6pt solid var(--color-border);
  font-family: var(--font-display);
  font-size: 9pt;
}
.color-chip__dot {
  width: 11pt; height: 11pt;
  border-radius: 50%;
  display: inline-block;
  border: 0.6pt solid rgba(28,29,44,0.35);
  flex-shrink: 0;
}
.color-chip__label {
  color: var(--color-anthrazit);
  font-weight: 500;
  /* Keep chip text on one line — long labels like "Scrub Large Spezial-…"
     truncate with an ellipsis. The full label is still in the title attr. */
  max-width: 130pt;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.color-chip__sku {
  font-family: 'Courier New', monospace;
  font-size: 8pt;
  color: var(--color-text-muted);
  letter-spacing: 0;
}

/* ===== Back Cover ===== */
.back {
  width: 100%; height: 100%;
  background: white;
}
.back__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 56pt;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}
.back__brand sup { font-size: 0.4em; vertical-align: super; }
.back__private-label {
  font-family: var(--font-display);
  font-size: 13pt;
  letter-spacing: 0.15em;
  color: var(--color-tuerkis-600);
  margin-top: 8pt;
  margin-bottom: 60pt;
}
.back__contact {
  /* 3-column via row/col-4; gap on inline style */
  margin-bottom: 60pt;
  border-top: 2pt solid var(--color-anthrazit);
  padding-top: 30pt;
}
.back__contact-label {
  font-family: var(--font-display);
  font-size: 11pt;
  letter-spacing: 0.15em;
  color: var(--color-tuerkis-600);
  margin-bottom: 12pt;
}
.back__contact-value {
  font-size: 12pt;
  line-height: 1.65;
  color: var(--color-anthrazit);
}
.back__contact-value a { color: var(--color-tuerkis-600); }
.back__sortiment {
  border-top: 1pt solid var(--color-border);
  padding-top: 24pt;
  margin-bottom: 30pt;
}
.back__sortiment-label {
  font-family: var(--font-display);
  font-size: 11pt;
  letter-spacing: 0.15em;
  color: var(--color-tuerkis-600);
  margin-bottom: 14pt;
}
.back__sortiment-phases {
  /* 2-column via row/col-6; gap on inline style */
}
.back__sortiment-phase {
  font-size: 12pt;
  color: var(--color-anthrazit);
}
.back__sortiment-phase b {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-tuerkis-600);
}
.back__legal {
  margin-top: auto;
  font-size: 9pt;
  color: var(--color-text-muted);
  line-height: 1.55;
  padding-top: 20pt;
  border-top: 1pt solid var(--color-border);
}

/* ===== Slideshow overlay (screen only) ===== */
@media screen {
  /* Fully responsive grid: container queries scale image + text
     so 8 products always fit, never wider/taller than viewport.
     The container is the .grid-spread parent (100vw × 100vh of the page),
     so these breakpoints are viewport-height based. */
  @container gridspread (max-height: 1100px) {
    .grid-cell__sku { font-size: 1.05vmin; }
    .grid-cell__name { font-size: 1.25vmin; }
    .grid-cell__size { font-size: 1.1vmin; }
    .grid-cell__price { font-size: 1.3vmin; }
    .grid-cell__variants { min-height: 3.6vmin; }
    .grid-spread__phase { font-size: 1.3vmin; }
    .grid-spread__title { font-size: 3.6vmin; }
  }
  @container gridspread (max-height: 800px) {
    .grid-cell__sku { font-size: 0.9vmin; }
    .grid-cell__name { font-size: 1.1vmin; }
    .grid-cell__size { font-size: 0.95vmin; }
    .grid-cell__price { font-size: 1.1vmin; }
    .grid-cell__variants { min-height: 3vmin; }
    .grid-spread__phase { font-size: 1.15vmin; }
    .grid-spread__title { font-size: 3vmin; }
  }
  @container gridspread (max-height: 600px) {
    .grid-cell__sku { font-size: 0.85vmin; }
    .grid-cell__name { font-size: 1vmin; }
    .grid-cell__size { font-size: 0.9vmin; }
    .grid-cell__price { font-size: 1vmin; }
    .grid-cell__variants { min-height: 3vmin; }
    .grid-spread__phase { font-size: 1.1vmin; }
    .grid-spread__title { font-size: 2.8vmin; }
  }

  /* catalog.html / catalog-print.html (print mode): each .page fills the
     viewport edge-to-edge (100vw × 100vh). Height is locked to 100vh so it
     never changes. Inner content fills the page at the layout level — no
     transform scale, so the page is genuinely 100vw wide (not just visually).
     Slideshow mode is excluded because it uses fixed pt dimensions and a
     forced single-page view. */
  body:not(.slideshow-mode) {
    margin: 0; padding: 0;
  }
  body:not(.slideshow-mode) .page {
    width: 99vw;
    max-height: 100vh;
    min-height: 100vh;
    height: 100vh;
    box-sizing: border-box;
    padding: 0;
    overflow: hidden;
    display: block;
  }
  /* Inner content fills the page at the layout level — full width and full
     height. No transform scale: width is genuinely 100vw, height stays at
     100vh (never changes with viewport). */
  body:not(.slideshow-mode) .page > * {
    width: 100%;
    height: 100%;
  }

  /* catalog.html (print mode): one viewport per scroll. Each .page snaps
     to the top of the viewport, so a single scroll gesture advances
     exactly one page. Disabled in @media print below. */
  html { scroll-snap-type: y mandatory; scroll-behavior: smooth; }
  body:not(.slideshow-mode) .page {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .slideshow-bar {
    position: fixed; bottom: 20pt; left: 50%; transform: translateX(-50%);
    z-index: 1000;
    display: flex; gap: 14pt; align-items: center;
    background: rgba(28,29,44,0.92);
    color: white;
    padding: 10pt 18pt;
    border-radius: 999pt;
    font-family: var(--font-display);
    font-size: 12pt;
    backdrop-filter: blur(8px);
  }
  .slideshow-bar button {
    background: transparent; border: none;
    color: var(--color-tuerkis-400);
    font-family: var(--font-display);
    font-size: 14pt;
    cursor: pointer;
    padding: 4pt 8pt;
  }
  .slideshow-bar button:hover { color: white; }
  .slideshow-bar .counter { font-variant-numeric: tabular-nums; min-width: 80pt; text-align: center; }
  .slideshow-hint {
    position: fixed; top: 20pt; right: 20pt; z-index: 1000;
    color: rgba(255,255,255,0.6);
    font-family: var(--font-display);
    font-size: 10pt;
    letter-spacing: 0.1em;
  }
}
@media print {
  .slideshow-bar, .slideshow-hint { display: none !important; }
  html { scroll-snap-type: none; }
}

/* ============================================================
   Brand Textures — camo-dark.jpg & camo-light.jpg
   Subtle liquid-marble overlays. Dark texture on dark surfaces,
   light texture on light surfaces. Low opacity so the gloss
   reads as a material rather than a graphic.
   ============================================================ */

.tex-dark,
.tex-light {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  z-index: 1;
  display: block !important;
}
.tex-dark  { background-image: url("textures/camo-dark.jpg");  opacity: 0.85; }
.tex-dark--cover {
  background-image: url("textures/camo-dark-wide.jpg");
  /* Texture fills the container at 100% / 100% — same sizing on cover and
     about so both pages read identical. */
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.85;
}
.tex-dark--about {
  background-image: url("textures/camo-dark-wide.jpg");
  background-size: 100% 100%;  /* fill container, same as cover */
  background-repeat: no-repeat;
  opacity: 0.85;
}
/* Cover now spans the full page — texture fills the whole surface. */
.cover__right .tex-dark--cover { background-position: center; }
.tex-light { background-image: url("textures/camo-light.jpg"); mix-blend-mode: soft-light; opacity: 0.85; }

/* Apply textures to specific surfaces. */
.cover__right     { position: relative; overflow: hidden; }
.cover__right > *:not(.tex-dark) { position: relative; z-index: 2; }
.about__text      { position: relative; overflow: hidden; }
.about__text > *:not(.tex-dark)  { position: relative; z-index: 2; }
.about__visual    { position: relative; overflow: hidden; }
.about__visual > *:not(.tex-dark){ position: relative; z-index: 2; }
.phase-intro__visual { position: relative; overflow: hidden; }
.phase-intro__visual > *:not(.tex-dark) { position: relative; z-index: 2; }
.cat-intro__visual { position: relative; overflow: hidden; }
.cat-intro__visual > *:not(.tex-dark) { position: relative; z-index: 2; }
.toc              { position: relative; overflow: hidden; }
.toc > *:not(.tex-light)  { position: relative; z-index: 2; }
.back              { position: relative; overflow: hidden; }
.back > *:not(.tex-light)  { position: relative; z-index: 2; }
.hero__left        { position: relative; overflow: hidden; }
.hero__left > *:not(.tex-light) { position: relative; z-index: 2; }
.grid-spread       { position: relative; overflow: hidden; }
.grid-spread > *:not(.tex-light)  { position: relative; z-index: 2; }

/* Subtle polish: ensure glossy camo reads even on slightly off-white pages
   by harmonising the body backdrop with the light texture too. */
.page { background: #FAFAF8; }
