/* v1.0.6: DIN/ISO und Artikelgruppenname gleich gross / linksbuendig;
 * Gruppenbild links groesser, Artikel-Gesamtzahl rechts unten.
 * Nur Shop-Sortiment; keine Preis- oder Formularaenderungen. */
#dsk-matrix #dsk-group-header.dsk-group-head {
  display: grid;
  position: relative;
  grid-template-columns: 230px minmax(0, 1fr);
  grid-template-rows: auto;
  column-gap: 24px;
  align-items: stretch;
  margin: 0 0 14px;
  padding: 0 0 18px;
  border-bottom: 1px solid #d7e1e8;
}
#dsk-matrix #dsk-group-header.dsk-group-head > div {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  max-width: none;
  padding: 0 0 30px;
  text-align: left;
}
#dsk-matrix #dsk-group-header.dsk-group-head .dsk-eyebrow,
#dsk-matrix #dsk-group-header.dsk-group-head h1 {
  display: block;
  margin-left: 0;
  padding-left: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: left;
  color: #17324c;
}
#dsk-matrix #dsk-group-header.dsk-group-head .dsk-eyebrow { margin: 2px 0 2px; text-transform: none; }
#dsk-matrix #dsk-group-header.dsk-group-head h1 { margin: 0 0 14px; }
#dsk-matrix #dsk-group-header.dsk-group-head > figure {
  grid-column: 1;
  grid-row: 1;
  box-sizing: border-box;
  width: 230px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}
#dsk-matrix #dsk-group-header.dsk-group-head > figure img {
  display: block;
  width: 226px;
  height: 226px;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
}
#dsk-matrix #dsk-group-header.dsk-group-head > figure figcaption,
#dsk-matrix #dsk-group-header.dsk-group-head .dsk-header-article-count {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  color: #526776;
}
#dsk-matrix #dsk-group-header.dsk-group-head > figure figcaption {
  width: 100%;
  margin: 8px 0 0;
  text-align: center;
}
#dsk-matrix #dsk-group-header.dsk-group-head .dsk-header-article-count {
  position: absolute;
  right: 0;
  bottom: 18px;
  padding: 2px 8px 1px;
  text-align: right;
  border: 1px solid #d7e1e8;
  border-radius: 4px;
  background: #edf4fa;
  max-width: calc(100% - 260px);
}
#dsk-matrix #dsk-group-header.dsk-group-head .dsk-header-article-count[hidden] { display: none !important; }
/* Nur die sichtbare Dopplung verstecken; Original bleibt als ARIA-Livestatus vorhanden. */
#dsk-matrix #dsk-matrix-message.dsk-total-count-mirrored {
  position: absolute !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  border: 0 !important;
  white-space: nowrap !important;
}
/* Die bisherige Trefferzeile wird an die rechte Seite der Preiszeile verlegt. */
#dsk-matrix #dsk-matrix-body .dsk-summary-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 10px;
  width: 100%;
}
#dsk-matrix #dsk-matrix-body .dsk-summary-row .dsk-help {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0 0 2px;
  align-self: flex-end;
}
#dsk-matrix #dsk-matrix-body .dsk-summary-row #dsk-result-count {
  flex: 0 0 auto;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid #d7e1e8;
  border-radius: 4px;
  background: #edf4fa;
  color: #17324c;
  font-size: 13px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.4;
  text-align: right;
  max-width: 45%;
}
@media (max-width: 760px) {
  #dsk-matrix #dsk-group-header.dsk-group-head { grid-template-columns: 144px minmax(0,1fr); column-gap: 12px; }
  #dsk-matrix #dsk-group-header.dsk-group-head > figure { width: 144px; }
  #dsk-matrix #dsk-group-header.dsk-group-head > figure img { width: 140px; height: 140px; }
  #dsk-matrix #dsk-group-header.dsk-group-head .dsk-eyebrow,
  #dsk-matrix #dsk-group-header.dsk-group-head h1 { font-size: 23px; }
  #dsk-matrix #dsk-group-header.dsk-group-head .dsk-header-article-count { max-width: calc(100% - 158px); }
  #dsk-matrix #dsk-matrix-body .dsk-summary-row { flex-wrap: wrap; gap: 6px; }
  #dsk-matrix #dsk-matrix-body .dsk-summary-row #dsk-result-count { max-width: 100%; margin-left: auto; }
}
@media (max-width: 420px) {
  #dsk-matrix #dsk-group-header.dsk-group-head { grid-template-columns: 112px minmax(0,1fr); column-gap: 10px; }
  #dsk-matrix #dsk-group-header.dsk-group-head > figure { width: 112px; }
  #dsk-matrix #dsk-group-header.dsk-group-head > figure img { width: 110px; height: 110px; }
  #dsk-matrix #dsk-group-header.dsk-group-head .dsk-eyebrow,
  #dsk-matrix #dsk-group-header.dsk-group-head h1 { font-size: 19px; }
  #dsk-matrix #dsk-group-header.dsk-group-head .dsk-header-article-count { max-width: calc(100% - 122px); }
  #dsk-matrix #dsk-group-header.dsk-group-head > figure figcaption,
  #dsk-matrix #dsk-group-header.dsk-group-head .dsk-header-article-count { font-size: 11px; }
}


/* v1.0.7: kleine Hauptgruppen-Abbildungen in der linken Gruppenauswahl */
#dsk-matrix #dsk-groups button.dsk-has-thumb {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  grid-template-rows: auto auto auto;
  column-gap: 10px;
  align-items: center;
  min-height: 78px;
  padding-right: 8px;
}
#dsk-matrix #dsk-groups button.dsk-has-thumb strong,
#dsk-matrix #dsk-groups button.dsk-has-thumb span,
#dsk-matrix #dsk-groups button.dsk-has-thumb small {
  grid-column: 1;
  min-width: 0;
}
#dsk-matrix #dsk-groups button.dsk-has-thumb .dsk-group-thumb {
  grid-column: 2;
  grid-row: 1 / span 3;
  justify-self: end;
  align-self: stretch;
  width: 68px;
  min-width: 68px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}
#dsk-matrix #dsk-groups button.dsk-has-thumb .dsk-group-thumb img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: transparent;
  mix-blend-mode: multiply;
}
#dsk-matrix #dsk-groups button[aria-current].dsk-has-thumb .dsk-group-thumb,
#dsk-matrix #dsk-groups button:hover.dsk-has-thumb .dsk-group-thumb {
  background: transparent;
}
@media (max-width: 720px) {
  #dsk-matrix #dsk-groups button.dsk-has-thumb {
    grid-template-columns: minmax(0, 1fr) 56px;
    min-height: 64px;
    column-gap: 8px;
  }
  #dsk-matrix #dsk-groups button.dsk-has-thumb .dsk-group-thumb {
    width: 52px;
    min-width: 52px;
  }
  #dsk-matrix #dsk-groups button.dsk-has-thumb .dsk-group-thumb img {
    width: 48px;
    height: 48px;
  }
}


/* v1.0.15: gleicher vertikaler Abstand DIN/ISO -> Gruppenbezeichnung
 * und Gruppenbezeichnung -> fachliche Kurzbeschreibung.
 * Keine Änderung an Bild, Daten, Matrix oder Preisberechnung. */
#dsk-matrix #dsk-group-header.dsk-group-head > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    row-gap: 12px;
}
#dsk-matrix #dsk-group-header.dsk-group-head > div > .dsk-eyebrow,
#dsk-matrix #dsk-group-header.dsk-group-head > div > h1,
#dsk-matrix #dsk-group-header.dsk-group-head > div > h1 + p {
    margin-top: 0;
    margin-bottom: 0;
}


/* v1.0.19: Katalogkopf kompakter ohne Veraenderung der Bildabmessungen.
   Die Abbildung bleibt auf Desktop 226x226px und behält ihre mobilen Groessen.
   Leerraum ueber und unter dem Kopf sowie der Bildunterschrift wird reduziert. */
#dsk-matrix #dsk-global-search {
  margin-bottom: 12px;
}
#dsk-matrix #dsk-group-header.dsk-group-head {
  margin-bottom: 6px;
  padding-bottom: 0;
}
#dsk-matrix #dsk-group-header.dsk-group-head > div {
  padding-bottom: 0;
}
#dsk-matrix #dsk-group-header.dsk-group-head > figure {
  justify-content: flex-start;
}
#dsk-matrix #dsk-group-header.dsk-group-head > figure figcaption {
  margin-top: 0;
}
#dsk-matrix #dsk-group-header.dsk-group-head .dsk-header-article-count {
  bottom: 3px;
}
