/**
 * hanz_features – Merkmal-Links, Kaliber-Seiten, „Passend im Kaliber“.
 * Farben aus den Variablen des Child-Themes (themes/dwg_child/assets/css/custom.css).
 */

/* Chips (Merkmal-Links, Bereiche, beliebte Kaliber, Reiter) */
.hanz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.hanz-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--dwg-border, #e0e0e0);
  border-radius: 999px;
  background: var(--dwg-bg, #fff);
  color: var(--dwg-text-dark, #253237);
  font-size: 0.875rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.hanz-chip:hover {
  border-color: var(--dwg-accent, #147eb3);
  color: var(--dwg-accent-ink, #147eb3);
  text-decoration: none;
}

.hanz-chip:focus-visible {
  outline: 2px solid var(--dwg-accent, #147eb3);
  outline-offset: 2px;
}

.hanz-chip--active,
.hanz-chip--active:hover {
  border-color: var(--dwg-primary, #253237);
  background: var(--dwg-primary, #253237);
  color: #fff;
}

.hanz-chip__count {
  color: var(--dwg-text-light, #707070);
  font-size: 0.75rem;
}

.hanz-chip--active .hanz-chip__count {
  color: rgba(255, 255, 255, 0.85);
}

/* Artikelseite: Merkmalwerte als Links */
.details__right .hanz-feature-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.details__right .hanz-feature-links .hanz-chip {
  min-height: 1.75rem;
  padding: 0.125rem 0.625rem;
}

.details__right .hanz-feature-links .hanz-chip::after {
  content: '›';
  color: var(--dwg-text-light, #707070);
}

/* Kaliber-Seite (Pfad steht im Seitenkopf – Hero bzw. ab Seite 2 der Kompaktkopf –, wie bei den Kategorien) */
body.hanz-caliber-hero #wrapper > .breadcrumb__wrapper {
  display: none;
}

.hanz-caliber .hanz-chips {
  margin-bottom: 0.5rem;
}

.hanz-caliber__more {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
}

/* Kaliber-Übersicht */
.hanz-caliber-list__intro {
  max-width: 48rem;
}

.hanz-caliber-list__section {
  margin: 0 0 2rem;
}

.hanz-caliber-list__search {
  max-width: 24rem;
  margin: 0 0 2rem;
}

.hanz-caliber-list__count {
  color: var(--dwg-text-light, #707070);
  font-weight: 400;
}

.hanz-caliber-list__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.375rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hanz-caliber-list__grid li {
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--dwg-bg-alt, #efefef);
}

/* Lange Filterlisten: Suchfeld und „Alle anzeigen“ */
.hanz-facet__search {
  margin: 0.25rem 0 0.5rem;
}

.hanz-facet__toggle {
  padding: 0.25rem 0;
  font-size: 0.875rem;
}

.hanz-facet__toggle[hidden] {
  display: none;
}

/* „Passend im Kaliber“ */
.hanz-match {
  margin: 2.5rem 0;
}

.hanz-match .section-title a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hanz-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.hanz-tabs[hidden] {
  display: none;
}

.hanz-match--tabs .hanz-match__area {
  display: none;
}

.hanz-match__panel + .hanz-match__panel {
  margin-top: 1.5rem;
}

.hanz-match--tabs .hanz-match__panel + .hanz-match__panel {
  margin-top: 0;
}

.hanz-match__all {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
}
