/* ═════════════════════════════════════════════════════════════════════
   keep racing — Flipbook / Magazin-Seiten (D&M Stil) — V2 Fix
   ═════════════════════════════════════════════════════════════════════ */

/* ───── Flipbook-Container ───── */
.dm-flipbook {
  position: relative;
  margin: 0 auto;
  padding: var(--s-4) 0 var(--s-6);
  /* Wichtig: Die Stage-Höhe begrenzen, sodass die ganze Seite in den Viewport passt */
  --dm-vh: calc(100vh - 220px);
  --dm-stage-max-w: min(900px, calc(var(--dm-vh) / 1.414));
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dm-flipbook-stage {
  position: relative;
  width: 100%;
  max-width: var(--dm-stage-max-w);
  /* A4 hochformat: 1 : √2 = 1 : 1.414 */
  aspect-ratio: 1 / 1.414;
  background: #fdfdfa;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border-radius: 2px;
  margin: 0 auto;
}

[data-theme="dark"] .dm-flipbook-stage {
  background: #18181b;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.dm-flipbook-page {
  position: absolute;
  inset: 0;
  padding: clamp(20px, 4%, 48px);
  display: flex;
  flex-direction: column;
  background: inherit;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.32s ease;
  will-change: transform, opacity;
}

/* Slide transitions */
.dm-slide-enter-right { transform: translateX(100%); opacity: 0; }
.dm-slide-enter-left  { transform: translateX(-100%); opacity: 0; }
.dm-slide-exit-left   { transform: translateX(-100%); opacity: 0; }
.dm-slide-exit-right  { transform: translateX(100%); opacity: 0; }
.dm-current           { transform: translateX(0); opacity: 1; }

/* ───── Klick-Zonen am Rand der Stage ───── */
.dm-nav-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  background: transparent;
  border: none;
  color: rgba(120, 120, 120, 0.5);
  font-size: 40px;
  font-family: var(--font-display);
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s, background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
}
.dm-nav-zone:hover:not(:disabled) {
  color: var(--accent);
  background: rgba(0, 0, 0, 0.025);
}
.dm-nav-zone:disabled { cursor: default; opacity: 0; pointer-events: none; }

.dm-nav-prev {
  left: calc(50% - var(--dm-stage-max-w) / 2 - 55px);
}
.dm-nav-next {
  right: calc(50% - var(--dm-stage-max-w) / 2 - 55px);
}

[data-theme="dark"] .dm-nav-zone {
  color: rgba(200, 200, 200, 0.3);
}
[data-theme="dark"] .dm-nav-zone:hover:not(:disabled) {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 900px) {
  .dm-nav-prev { left: 4px; }
  .dm-nav-next { right: 4px; }
  .dm-nav-zone {
    width: 30px;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.5);
  }
}

/* ───── Page-Controls UNTERHALB der Stage ───── */
.dm-page-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4);
  font-family: var(--font-display);
  font-size: 13px;
}

.dm-page-btn {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.dm-page-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.dm-page-btn:disabled { opacity: 0.3; cursor: default; }

.dm-page-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0 var(--s-3);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  white-space: nowrap;
}
.dm-page-input {
  width: 55px;
  padding: 6px 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--fg);
}
.dm-page-input::-webkit-outer-spin-button,
.dm-page-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

@media (max-width: 720px) {
  .dm-page-controls { gap: 4px; font-size: 11px; }
  .dm-page-btn { padding: 6px 10px; font-size: 11px; }
  .dm-page-first, .dm-page-last { display: none; }
}

/* ═════════════════════════════════════════════════════════════════════
   Page Header / Footer (auf jeder A4-Seite)
   ═════════════════════════════════════════════════════════════════════ */

.dm-page-header {
  flex: 0 0 auto;
  margin-bottom: clamp(10px, 2%, 18px);
}

.dm-page-eyebrow {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 500;
  margin-bottom: 3px;
}

.dm-page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.dm-page-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--s-2);
  margin-top: var(--s-3);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border-top: 1px solid var(--line);
}

/* ═════════════════════════════════════════════════════════════════════
   Template: Magazin-Grid (D&M S.86)
   ═════════════════════════════════════════════════════════════════════ */

.dm-magazin-grid {
  flex: 1 1 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 3%, 28px);
  min-height: 0;
  /* Wichtig: width 100% damit es die volle Breite einnimmt */
  width: 100%;
}

.dm-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--fg);
  transition: transform 0.2s ease;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.dm-tile:hover { transform: translateY(-3px); text-decoration: none; }
.dm-tile:hover .dm-tile-title { color: var(--accent); }

.dm-tile-image {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  margin-bottom: 6px;
  min-height: 60px;
  position: relative;
  overflow: hidden;
}
.dm-tile-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
[data-theme="dark"] .dm-tile-image img { mix-blend-mode: screen; }

.card-image-placeholder {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--fg-dim);
  opacity: 0.25;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}

.dm-tile-body {
  flex: 0 0 auto;
}

.dm-tile-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11.5px;
  line-height: 1.25;
  margin: 0 0 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.18s;
  color: var(--fg);
}

.dm-tile-preview {
  font-family: var(--font-body);
  font-size: 10.5px;
  color: var(--fg-muted);
  line-height: 1.35;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dm-tile-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 10px;
}

.dm-tile-artnr {
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  text-transform: uppercase;
}

.dm-tile-price {
  font-weight: 600;
  color: var(--fg);
  font-size: 11px;
}

@media (max-width: 720px) {
  .dm-magazin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }
}

/* ═════════════════════════════════════════════════════════════════════
   Template: Produktfamilie (D&M S.36)
   ═════════════════════════════════════════════════════════════════════ */

.dm-family-stack {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.5%, 16px);
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.dm-family-item {
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 35% 1fr;
  gap: clamp(12px, 2%, 20px);
  text-decoration: none;
  color: var(--fg);
  padding: clamp(6px, 1%, 12px) 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.15s;
}
.dm-family-item:last-child { border-bottom: none; }
.dm-family-item:hover { opacity: 0.75; text-decoration: none; }

.dm-family-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  min-height: 0;
}
.dm-family-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
[data-theme="dark"] .dm-family-image img { mix-blend-mode: screen; }

.dm-family-body { display: flex; flex-direction: column; min-width: 0; }

.dm-family-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.2;
  margin: 0 0 6px;
}

.dm-family-desc {
  font-family: var(--font-body);
  font-size: clamp(11px, 1.2vw, 13px);
  color: var(--fg-muted);
  line-height: 1.45;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dm-family-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
  gap: 6px;
  font-family: var(--font-display);
}

.dm-family-artnr {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  text-transform: uppercase;
}

.dm-family-price {
  font-weight: 600;
  font-size: 13px;
  color: var(--fg);
}

/* ═════════════════════════════════════════════════════════════════════
   Template: Hero-Brand (D&M S.120)
   ═════════════════════════════════════════════════════════════════════ */

.dm-hero-block {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: clamp(12px, 2%, 24px);
  width: 100%;
}

.dm-hero-main {
  flex: 2 1 0;
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: clamp(16px, 3%, 32px);
  text-decoration: none;
  color: var(--fg);
  min-height: 0;
}
.dm-hero-main:hover .dm-hero-name { color: var(--accent); }

.dm-hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.dm-hero-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
[data-theme="dark"] .dm-hero-image img { mix-blend-mode: screen; }

.dm-hero-info { display: flex; flex-direction: column; min-width: 0; }

.dm-hero-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.1;
  margin: 0 0 var(--s-2);
  transition: color 0.18s;
}

.dm-hero-desc {
  font-family: var(--font-body);
  font-size: clamp(11px, 1.2vw, 13px);
  color: var(--fg-muted);
  line-height: 1.5;
  margin: 0 0 var(--s-3);
  overflow: hidden;
}

.dm-hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
}

.dm-hero-artnr {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.dm-hero-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}

.dm-hero-secondary {
  flex: 1 1 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.5%, 16px);
  min-height: 0;
}

@media (max-width: 720px) {
  .dm-hero-main { grid-template-columns: 1fr; }
  .dm-hero-secondary { grid-template-columns: 1fr; }
}

/* ═════════════════════════════════════════════════════════════════════
   Disclaimer am Ende des Subthemes (NICHT auf jeder Seite)
   ═════════════════════════════════════════════════════════════════════ */

.dm-subtheme-disclaimer {
  max-width: 900px;
  margin: var(--s-3) auto var(--s-4);
  padding: var(--s-3) var(--s-4);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border-top: 1px solid var(--line);
}
.dm-subtheme-disclaimer-date { font-weight: 600; color: var(--fg-muted); }

/* ═════════════════════════════════════════════════════════════════════
   Curated Page (D&M-Magazin S.86/S.90 Stil)
   - kein Rahmen, kein Shadow
   - asymmetrisches Grid mit dichter Packung
   - Hauptprodukte oben groß, Ersatzteile darunter kleiner
   ═════════════════════════════════════════════════════════════════════ */

.cp-page {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(12px, 2%, 22px) clamp(14px, 2.5%, 28px);
  background: var(--bg);
  color: var(--fg);
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

/* Logo oben rechts auf jeder kuratierten Seite */
.cp-page-logo {
  position: absolute;
  top: clamp(10px, 1.5%, 18px);
  right: clamp(14px, 2.5%, 28px);
  height: clamp(28px, 3.5%, 42px);
  width: auto;
  opacity: 0.9;
  z-index: 2;
  pointer-events: none;
}

/* Header weggelassen — Titel + Eyebrow stehen schon im Breadcrumb */
.cp-page-header { display: none; }
.cp-page-eyebrow { display: none; }
.cp-page-title { display: none; }

.cp-page-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1%, 12px);
  overflow: hidden;
  min-height: 0;
  min-width: 0;
  /* Logo-Platz oben respektieren */
  padding-top: clamp(28px, 4%, 50px);
}

.cp-group {
  display: flex;
  flex-direction: column;
  gap: clamp(3px, 0.6%, 6px);
  min-width: 0;
  min-height: 0;
  /* JEDE Gruppe darf nur ihren proportionalen Anteil belegen — keine überläuft */
  flex: 1 1 auto;
}

/* Hauptprodukte dürfen mehr Platz als Sekundär-Gruppen */
.cp-group-hauptprodukte { flex: 1.8 1 0; }
/* ALLE Sekundär-Gruppen (bekannte + user-definierte) bekommen flex-basis 0
   damit sie nicht aus ihrer intrinsischen Größe heraus die Page sprengen */
.cp-group:not(.cp-group-hauptprodukte) { flex: 1 1 0; }

.cp-group-grid {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
}

/* ── Tiles, generische Form ── */
.cp-tile {
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: none;
  padding: 0;
  transition: opacity 0.15s ease;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.cp-tile:hover { opacity: 0.78; }

.cp-group-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 600;
  margin: 0;
  padding-bottom: 2px;
  flex: 0 0 auto;
}

.cp-tile-image {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
}
.cp-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.cp-tile-placeholder {
  width: 60%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle, rgba(0,0,0,0.04));
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--fg-dim);
}

.cp-tile-body {
  padding: 3px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Body muss immer sichtbar bleiben, auch wenn Tile gestaucht wird */
  flex: 1 1 auto;
  min-height: 38px;
}

.cp-tile-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.25;
  margin: 0;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  hyphens: auto;
}

.cp-tile-preview {
  font-family: var(--font-body);
  font-size: 9.5px;
  line-height: 1.3;
  color: var(--fg-dim);
  margin: 1px 0 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cp-tile-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  margin-top: 2px;
  min-height: 13px;
}

.cp-tile-artnr {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--kr-red, #c92027);
}

.cp-tile-price {
  font-family: var(--font-display);
  font-size: 9.5px;
  color: var(--fg-muted, var(--fg-dim));
}

/* ── Default-Grid für JEDE Gruppe (greift wenn keine ID-spezifische Regel matched) ──
   Damit funktionieren auch user-definierte Gruppen-IDs wie „dicht_und_reparatursaetze".
   Spaltenzahl ist auto-fit: Tile-Mindestbreite 130px, wächst auf bis zu 5 Spalten.
   Höhe der Tiles wird durch flex-Grow im Group-Container kontrolliert. */
.cp-group:not(.cp-group-hauptprodukte) .cp-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: clamp(8px, 1.5%, 14px);
  align-content: start;
}
.cp-group:not(.cp-group-hauptprodukte) .cp-tile-image {
  aspect-ratio: auto;
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
}
.cp-group:not(.cp-group-hauptprodukte) .cp-tile-body {
  min-height: 34px;
  flex: 0 0 auto;
}
.cp-group:not(.cp-group-hauptprodukte) .cp-tile-title {
  font-size: 11px;
  -webkit-line-clamp: 2;
}
.cp-group:not(.cp-group-hauptprodukte) .cp-tile-preview { display: none; }
.cp-group:not(.cp-group-hauptprodukte) .cp-tile-artnr { font-size: 11px; }
.cp-group:not(.cp-group-hauptprodukte) .cp-tile-price { font-size: 10px; }

/* ── Gruppen-spezifische Grids ── */

/* Hauptprodukte: groß, 2 nebeneinander, Composite-Fotos */
.cp-group-hauptprodukte .cp-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2%, 20px);
}
.cp-group-hauptprodukte .cp-tile-title {
  font-size: 12.5px;
  font-weight: 600;
  -webkit-line-clamp: 1;
}
.cp-group-hauptprodukte .cp-tile-preview { display: none; }
.cp-group-hauptprodukte .cp-tile-artnr { font-size: 12px; }
.cp-group-hauptprodukte .cp-tile-price { font-size: 11px; }
/* Hauptprodukte-Bild füllt verfügbare Höhe via flex statt aspect-ratio */
.cp-group-hauptprodukte .cp-tile-image {
  aspect-ratio: auto;
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
}
.cp-group-hauptprodukte .cp-tile-body { min-height: 42px; }

/* Bei nur 1 Hauptprodukt → ganzes Layout */
.cp-group-hauptprodukte .cp-group-grid:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
}

/* Reparatursätze, Manschetten → 4er-Grid (passt perfekt: 4 Items pro Reihe) */
.cp-group-ersatzteile .cp-group-grid,
.cp-group-manschetten .cp-group-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.5%, 14px);
}
/* Einzelteile (oft 5 Items) → 5er-Grid */
.cp-group-einzelteile .cp-group-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(7px, 1.3%, 12px);
}
.cp-group-ersatzteile .cp-tile-image,
.cp-group-manschetten .cp-tile-image,
.cp-group-einzelteile .cp-tile-image,
.cp-group-zubehoer .cp-tile-image,
.cp-group-werkzeug .cp-tile-image {
  aspect-ratio: auto;
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
}
.cp-group-ersatzteile .cp-tile-body,
.cp-group-manschetten .cp-tile-body,
.cp-group-einzelteile .cp-tile-body,
.cp-group-zubehoer .cp-tile-body,
.cp-group-werkzeug .cp-tile-body { min-height: 34px; flex: 0 0 auto; }
.cp-group-ersatzteile .cp-tile-title,
.cp-group-manschetten .cp-tile-title { font-size: 11px; -webkit-line-clamp: 2; }
.cp-group-einzelteile .cp-tile-title { font-size: 10.5px; -webkit-line-clamp: 2; }
.cp-group-ersatzteile .cp-tile-preview,
.cp-group-manschetten .cp-tile-preview,
.cp-group-einzelteile .cp-tile-preview { display: none; }
.cp-group-ersatzteile .cp-tile-artnr,
.cp-group-manschetten .cp-tile-artnr { font-size: 11px; }
.cp-group-einzelteile .cp-tile-artnr { font-size: 10.5px; }
.cp-group-ersatzteile .cp-tile-price,
.cp-group-manschetten .cp-tile-price { font-size: 10px; }
.cp-group-einzelteile .cp-tile-price { font-size: 9.5px; }

/* Zubehör/Werkzeug → 4er-Grid */
.cp-group-zubehoer .cp-group-grid,
.cp-group-werkzeug .cp-group-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.5%, 14px);
}
.cp-group-zubehoer .cp-tile-title,
.cp-group-werkzeug .cp-tile-title {
  font-size: 11px;
  -webkit-line-clamp: 2;
}
.cp-group-zubehoer .cp-tile-preview,
.cp-group-werkzeug .cp-tile-preview { display: none; }
.cp-group-zubehoer .cp-tile-artnr,
.cp-group-werkzeug .cp-tile-artnr { font-size: 11px; }
.cp-group-zubehoer .cp-tile-price,
.cp-group-werkzeug .cp-tile-price { font-size: 10px; }

/* Responsive Stauchen */
@media (max-width: 700px) {
  .cp-group-ersatzteile .cp-group-grid,
  .cp-group-manschetten .cp-group-grid,
  .cp-group-einzelteile .cp-group-grid,
  .cp-group-zubehoer .cp-group-grid,
  .cp-group-werkzeug .cp-group-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cp-group-hauptprodukte .cp-group-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
