/* Version im Seitenquelltext (custom.css?v=…) setzt das Modul hanz_assets automatisch aus dem Änderungszeitpunkt –
   nach einem Deploy laden Browser die neue Datei ohne Strg+F5. */

/* ===== Font Faces ===== */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-v23-latin-regular.woff2') format('woff2'),
       url('../fonts/montserrat-v23-latin-regular.woff') format('woff');
}

@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-v23-latin-italic.woff2') format('woff2'),
       url('../fonts/montserrat-v23-latin-italic.woff') format('woff');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-v23-latin-700.woff2') format('woff2'),
       url('../fonts/montserrat-v23-latin-700.woff') format('woff');
}

@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-v23-latin-700italic.woff2') format('woff2'),
       url('../fonts/montserrat-v23-latin-700italic.woff') format('woff');
}

@font-face {
  font-family: 'Microgramma D Extended Bold';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/MicrogrammaD-BoldExte.woff2') format('woff2'),
       url('../fonts/MicrogrammaD-BoldExte.woff') format('woff');
}

/* ===== CSS Custom Properties ===== */
:root {
  --dwg-primary: #253237;
  --dwg-primary-dark: #252D30;
  --dwg-secondary: #354651;
  --dwg-accent: #147EB3;
  /* Von hzm_theme_config aus der Markenfarbe berechnet; hier nur Rückfallwerte.
     --dwg-accent-ink      lesbar auf hellem Grund (>= 4,5:1)
     --dwg-accent-readable derselbe Wert, wird nie überschrieben
     --dwg-accent-contrast Schrift, die auf der Akzentfläche selbst liest */
  --dwg-accent-ink: #147EB3;
  --dwg-accent-readable: #147EB3;
  --dwg-accent-contrast: #ffffff;
  --dwg-hover: #1190cc;
  --dwg-text: #666666;
  --dwg-text-light: #707070;
  --dwg-text-dark: #253237;
  --dwg-bg: #ffffff;
  --dwg-bg-alt: #EFEFEF;
  --dwg-border: #e0e0e0;
  --dwg-success: #1e7e34;
  --dwg-danger: #dc3545;
  --dwg-warning: #e0a800;
  --dwg-font-body: 'Montserrat', sans-serif;
  --dwg-font-heading: 'Microgramma D Extended Bold', sans-serif;
}

/* ===== Global typography ===== */
:root {
  --bs-body-font-family: 'Montserrat', sans-serif;
  --bs-font-sans-serif: 'Montserrat', sans-serif;
  --bs-link-color: var(--dwg-accent-ink);
  --bs-link-color-rgb: 20, 126, 179;
  --bs-link-hover-color: var(--dwg-accent-ink);
  --bs-link-hover-color-rgb: 17, 144, 204;
}

body {
  font-family: var(--dwg-font-body);
  color: var(--dwg-text);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dwg-text-dark);
}

a {
  color: var(--dwg-accent-ink);
}

a:hover {
  /* --dwg-hover bleibt den Flächen vorbehalten; als Schrift würde eine helle
     Markenfarbe auf Weiß durchfallen. */
  color: var(--dwg-accent-ink);
  text-decoration-thickness: from-font;
}

/* ===== Header — dark theme ===== */
#header {
  background-color: var(--dwg-primary-dark);
}

/* DWG custom header — main row */
.dwg-header__main {
  background-color: var(--dwg-primary-dark);
  padding: 0.625rem 0;
}

.dwg-header__logo-link {
  display: block;
}

.dwg-header__logo-link img {
  max-height: 55px;
  width: auto;
}

/* Action icons — icon-only style like live site */
.dwg-header__actions {
  white-space: nowrap;
}

.dwg-header__action {
  position: relative;
}

.dwg-header__action a,
.dwg-header__action button,
.dwg-header__action .header-block__action-btn,
.dwg-header__action span.header-block__action-btn {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.375rem;
  font-size: 0.8125rem;
  position: relative;
}

.dwg-header__action a:hover,
.dwg-header__action button:hover,
.dwg-header__action .header-block__action-btn:hover {
  color: var(--dwg-accent-ink);
}

.dwg-header__action .material-icons,
.dwg-header__action .header-block__icon {
  font-size: 1.625rem;
  color: #fff;
}

.dwg-header__action a:hover .material-icons,
.dwg-header__action a:hover .header-block__icon,
.dwg-header__action .header-block__action-btn:hover .header-block__icon {
  color: var(--dwg-accent-ink);
}

/* Hide text labels — icon-only like live site */
.dwg-header__label {
  display: none !important;
}

#_desktop_ps_customersignin .header-block__title,
#_desktop_ps_shoppingcart .header-block__title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Badge — superscript count */
.dwg-header__badge,
.dwg-header__action .header-block__badge {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: #fff;
  background-color: var(--dwg-accent);
  border-radius: 50%;
  padding: 0 3px;
}

/* Module wrappers */
.dwg-header__action .header-block,
.dwg-header__action .ps-shoppingcart,
.dwg-header__action .ps-customersignin {
  display: flex;
  align-items: center;
}

.dwg-header__action .blockcart {
  position: relative;
}

/* Sticky header */
.js-sticky-header.is-sticky {
  background-color: var(--dwg-primary-dark);
}

/* Mobile — Suche und Navigation wechseln gemeinsam bei lg (992px) */
@media (max-width: 991.98px) {
  .dwg-header__main {
    padding: 0.5rem 0;
  }
  .dwg-header__logo-link img {
    max-height: 40px;
  }
  .dwg-header__label {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .dwg-header__logo-link img {
    max-height: 36px;
  }
}

/* Hide parent header elements we don't use */
.header-top,
.header-bottom,
.header-nav-full-width {
  display: none;
}

.dwg-header ~ .header-top,
.dwg-header ~ .header-bottom,
.dwg-header ~ .header-nav-full-width {
  display: none;
}

/* ===== Footer — two-tone dark theme (matches live) ===== */
#footer,
.footer {
  background-color: var(--dwg-primary-dark);
  color: #ccc;
}

.footer a {
  color: #ccc;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.footer__main {
  color: #ccc;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.footer__main > .container {
  position: relative;
}

/* Two-tone background: left dark, right slightly lighter */
.footer__main-top {
  position: relative;
}

.footer__main-top::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 58.33%;
  background-color: #2d3940;
  z-index: 0;
}

.footer__main-top > * {
  position: relative;
  z-index: 1;
}

/* Company info column — left side */
.footer__company-col {
  background-color: var(--dwg-primary-dark);
  padding: 2.5rem 2rem 2.5rem 0;
}

.footer__logo {
  filter: brightness(0) invert(1);
  max-height: 55px;
  width: auto;
  margin-bottom: 1rem;
}

.footer__company-name {
  color: #fff;
  font-family: var(--dwg-font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__company-desc {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #c0c0c0;
  margin-bottom: 1.25rem;
}

.footer__contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
}

.footer__contact-list li {
  margin-bottom: 0.5rem;
}

.footer__contact-list a,
.footer__address {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ccc;
  font-size: 0.8125rem;
}

.footer__contact-list .material-icons {
  font-size: 1rem;
  color: #ccc;
}

/* Social icons */
.footer__social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer__social a {
  color: #ccc;
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
}

.footer__social a:hover {
  color: #fff;
}

.footer__social a {
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}

.footer__social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Right side columns */
.footer__right-col {
  padding: 2.5rem 0 2.5rem 2rem;
}

.footer .footer-block__title {
  color: #fff;
  font-family: var(--dwg-font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer .footer-block__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-block__list li {
  margin-bottom: 0.5rem;
}

.footer .footer-block__list a {
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

/* Partner logos — bigger, no title */
/* Eine Zeile nebeneinander (spart Footer-Höhe), mobil schmaler statt umbrechen */
.footer__partners {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  align-items: center;
  padding-top: 0.5rem;
}

.footer__partner-logo {
  display: block;
  flex: 0 1 100px;
  min-width: 0;
  max-width: 100px;
}

/* Querformat-Abzeichen (CZ Armorer): breiter, damit die Schrift lesbar bleibt */
.footer__partner-logo--badge {
  flex-basis: 170px;
  max-width: 170px;
}

/* Mobil: die drei runden Logos in einer Zeile, das Abzeichen darunter */
@media (max-width: 575.98px) {
  .footer__partners {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .footer__partner-logo {
    flex-basis: calc((100% - 2rem) / 3);
  }
  .footer__partner-logo--badge {
    flex-basis: 170px;
  }
}

.footer__partner-logo img {
  max-width: 100%;
  height: auto;
  transition: opacity 0.2s ease;
}

.footer__partner-logo:hover img {
  opacity: 0.85;
}

/* Copyright */
.footer .copyright {
  background-color: #2d3940;
  color: #b0b0b0;
  font-size: 0.8rem;
  padding: 1rem 0;
  margin: 0;
  text-align: left;
}

.footer .copyright a {
  color: #b0b0b0;
}

.footer .copyright a:hover {
  color: var(--dwg-accent-ink);
}

.footer .copyright__agency {
  font-size: 0.75rem;
}

.footer .copyright__agency a {
  color: #666;
}

.footer .copyright__agency a:hover {
  color: var(--dwg-accent-ink);
}

@media (max-width: 991.98px) {
  .footer__main-top::before {
    display: none;
  }
  .footer__company-col,
  .footer__right-col {
    padding: 1.5rem 0;
  }
  .footer__right-col {
    background-color: #2d3940;
    padding: 1.5rem;
    border-radius: 4px;
  }
}

@media (max-width: 767.98px) {
  .footer .footer-block__title {
    margin-bottom: 0;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 767.98px) {
  .footer__main {
    padding-top: 1.5rem;
  }
  .footer .footer-block__title {
    margin-bottom: 0;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* ===== Buttons ===== */
.btn {
  border-radius: 0;
}

.btn-primary {
  background-color: var(--dwg-accent);
  border-color: var(--dwg-accent);
  /* Schrift richtet sich nach der Markenfarbe — auf Messing liest Schwarz, auf Blau Weiß */
  color: var(--dwg-accent-contrast);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--dwg-hover);
  border-color: var(--dwg-hover);
  color: var(--dwg-accent-contrast);
}

.btn-outline-primary {
  color: var(--dwg-accent-ink);
  border-color: var(--dwg-accent);
}

.btn-outline-primary:hover {
  background-color: var(--dwg-accent);
  border-color: var(--dwg-accent);
  color: var(--dwg-accent-contrast);
}

/* ===== Product miniature — availability ===== */
.product-miniature__availability {
  font-size: 0.75rem;
  margin-top: 0.375rem;
  line-height: 1.3;
}

.product-miniature__availability .in-stock {
  color: var(--dwg-success);
}

.product-flags .badge.online-only {
  background: var(--dwg-success);
  color: #fff;
}

.product-miniature__availability .last-items {
  color: var(--dwg-warning);
}

.product-miniature__availability .out-of-stock {
  color: var(--dwg-danger);
}

/* ===== Product miniature — card styling ===== */
.product-miniature {
  border: 1px solid var(--dwg-border);
  transition: border-color 0.2s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-miniature:hover {
  border-color: var(--dwg-accent);
}

.product-miniature__bottom {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-miniature__infos {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-miniature__title {
  min-height: 2.625em;
}

.product-miniature__manufacturer {
  margin-bottom: 0.25rem;
}

.product-miniature__manufacturer-link {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--dwg-text-light);
  text-decoration: none;
}

.product-miniature__manufacturer-link:hover {
  color: var(--dwg-accent-ink);
}

.product-miniature__title {
  font-weight: 600;
  font-size: 0.875rem;
}

.product-miniature__price {
  font-weight: 400;
  font-size: 1rem;
}

.product-miniature__regular-price {
  text-decoration: line-through;
  color: var(--dwg-text-light);
  font-size: 0.85rem;
  margin-right: 0.25rem;
}

.product-miniature__discount {
  background-color: var(--dwg-danger);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.2rem;
  margin-left: 0.25rem;
}

.product-miniature__prices {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.product-miniature__actions {
  margin-top: auto;
  padding-top: 0.5rem;
  text-align: center;
}

.product-miniature__add,
.product-miniature__details {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* ===== Product detail — stock info ===== */
.product__stock-info {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.availability-list {
  font-size: 0.875rem;
  font-weight: 500;
}

.availability-list.in-stock {
  color: var(--dwg-success);
}

.availability-list.out-of-stock {
  color: var(--dwg-danger);
}

/* ===== Product detail — Buy Now button ===== */
.product__buy-now {
  margin-top: 0.75rem;
}

.btn-buy-now {
  width: 100%;
  background-color: var(--dwg-primary-dark);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease;
}

.btn-buy-now:hover {
  background-color: var(--dwg-secondary);
  color: #fff;
}

.btn-buy-now:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== Product detail — Tabs ===== */
.product__tabs .nav-tabs {
  border-bottom: 2px solid var(--dwg-border);
  margin-bottom: 0;
}

.product__tabs .nav-tabs .nav-link {
  color: var(--dwg-text);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.75rem 1.25rem;
  margin-bottom: -2px;
  background: none;
}

.product__tabs .nav-tabs .nav-link:hover {
  color: var(--dwg-accent-ink);
  border-bottom-color: var(--dwg-accent);
}

.product__tabs .nav-tabs .nav-link.active {
  color: var(--dwg-accent-ink);
  border-bottom-color: var(--dwg-accent);
  background: none;
}

.product__tabs .tab-content {
  padding: 1.5rem 0;
}

.product__tabs .tab-pane .product-description {
  line-height: 1.7;
}

/* Hide parent accordion wrapper */
.product__bottom .product__accordion {
  display: none;
}

/* ===== Inner accordions (inside Details tab) ===== */
.js-product-details .accordion-item {
  border: 1px solid var(--dwg-border);
  border-radius: 0 !important;
  margin-bottom: -1px;
}

.js-product-details .accordion-button {
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--dwg-text-dark);
  background-color: var(--dwg-bg-alt);
  border-radius: 0 !important;
  padding: 0.875rem 1.25rem;
  box-shadow: none;
}

.js-product-details .accordion-button:not(.collapsed) {
  color: var(--dwg-accent-ink);
  background-color: #fff;
  border-bottom: 2px solid var(--dwg-accent);
  box-shadow: none;
}

.js-product-details .accordion-button:focus {
  box-shadow: none;
}

.js-product-details .accordion-button:focus-visible {
  outline: 2px solid var(--dwg-accent);
  outline-offset: -2px;
}

.js-product-details .accordion-body {
  padding: 1rem 1.25rem;
}

.js-product-details .details__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.js-product-details .details__item {
  display: flex;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--dwg-border);
}

.js-product-details .details__item:last-child {
  border-bottom: none;
}

.js-product-details .details__left {
  flex: 0 0 40%;
  max-width: 40%;
}

.js-product-details .details__title {
  font-weight: 600;
  color: var(--dwg-text-dark);
  font-size: 0.875rem;
}

.js-product-details .details__right {
  flex: 1;
  color: var(--dwg-text);
  font-size: 0.875rem;
}

.js-product-details .details__right a {
  color: var(--dwg-accent-ink);
}

.js-product-details .details__manufacturer-logo {
  max-height: 50px;
  width: auto;
}

/* ===== Product detail — name ===== */
.product__name {
  font-family: var(--dwg-font-body);
  color: var(--dwg-text-dark);
}

/* ===== Category Hero Banner ===== */
.category__hero {
  position: relative;
  overflow: hidden;
  /* Bild als <img> (catalog/_partials/listing-hero-image.tpl: Kategoriebild > hzm_theme_config > Theme-Bild,
     responsive WebP + Preload). Lädt es nicht, bleibt die dunkle Fläche – Text steht trotzdem lesbar. */
  background-color: var(--dwg-primary-dark);
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 60px;
}

.category__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.category__hero-overlay {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  background: rgba(37, 45, 48, 0.65);
  padding: 60px 0;
}

.category__hero-content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.category__hero .breadcrumb__wrapper {
  margin-top: 0.75rem;
  margin-bottom: 0;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.category__hero .breadcrumb__wrapper .container {
  padding: 0;
  background: none !important;
}

.category__hero .breadcrumb {
  margin-bottom: 0;
  padding: 0;
  background: none !important;
}

.category__hero .breadcrumb-item,
.category__hero .breadcrumb-item a,
.category__hero .breadcrumb-item span,
.category__hero .breadcrumb-link,
.category__hero .breadcrumb-link span {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.8rem;
  background: none !important;
}

.category__hero .breadcrumb-item:last-child span {
  color: #fff !important;
}

.category__hero-title {
  font-family: var(--dwg-font-heading);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.category__hero-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  max-width: 600px;
  line-height: 1.5;
}

@media (max-width: 767.98px) {
  .category__hero-overlay {
    padding: 40px 0;
  }
  .category__hero {
    margin-bottom: 30px;
  }
  .category__hero-title {
    font-size: 1.5rem;
  }
}

/* Hide default breadcrumb on category listing pages — hero has its own */
body#category #wrapper > .breadcrumb__wrapper,
body#best-sales #wrapper > .breadcrumb__wrapper,
body#new-products #wrapper > .breadcrumb__wrapper,
body#prices-drop #wrapper > .breadcrumb__wrapper {
  display: none;
}

/* ===== Kompakter Listenkopf ab Seite 2 (catalog/_partials/listing-page-header.tpl) =====
   Pfad + H1 mit Seitenangabe statt Hero: gleiche Schrift wie der Hero-Titel, aber dunkel auf Weiß
   und niedrig, damit die Artikel sofort im Blick sind. */
.listing-head {
  border-bottom: 1px solid var(--dwg-border);
  margin-bottom: 1.5rem;
}

.listing-head__inner {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.listing-head .breadcrumb__wrapper {
  margin: 0 0 0.375rem;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.listing-head .breadcrumb__wrapper .container {
  padding: 0;
  background: none !important;
}

.listing-head .breadcrumb {
  margin-bottom: 0;
  padding: 0;
  font-size: 0.8rem;
  background: none !important;
}

.listing-head__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.75rem;
  row-gap: 0.125rem;
  margin: 0;
  font-family: var(--dwg-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dwg-text-dark);
}

/* Seitenangabe gehört zur H1 (eindeutige Überschrift je Seite), tritt optisch zurück */
.listing-head__page {
  font-family: var(--dwg-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--dwg-text-light);
}

@media (max-width: 767.98px) {
  .listing-head {
    margin-bottom: 1rem;
  }
  .listing-head__inner {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .listing-head__title {
    font-size: 1.25rem;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: anywhere;
  }
  .listing-head .breadcrumb {
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }
}

/* ===== Category page — description ===== */
.category__description {
  max-width: 50%;
}

@media (max-width: 767.98px) {
  .category__description {
    max-width: 100%;
  }
}

/* ===== Category Tree — indent subcategories, accent only on hover ===== */
.category-tree__list[data-depth="0"] {
  padding-left: 0.75rem;
}

.category-tree__list[data-depth="1"] {
  padding-left: 0.75rem;
}

.category-tree__item-link {
  color: var(--dwg-text-dark);
  text-decoration: none;
}

.category-tree__item-link:hover {
  color: var(--dwg-accent-ink);
}

.left-block__title-link {
  color: var(--dwg-accent-ink);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

/* ===== Breadcrumb ===== */
.breadcrumb .breadcrumb-item.active {
  color: var(--dwg-accent-ink);
}

/* ===== Subcategory listing ===== */
.subcategory__link {
  border: 1px solid var(--dwg-border);
  transition: border-color 0.2s ease;
}

.subcategory__link:hover {
  border-color: var(--dwg-accent);
}

.subcategory__thumbnail {
  display: none;
}

.subcategory__list--with-images .subcategory__link--with-image {
  padding: 0.5rem 1rem;
}

/* ===== Pagination accent ===== */
.pagination .page-item.active .page-link {
  background-color: var(--dwg-accent);
  border-color: var(--dwg-accent);
  color: #fff;
}

.pagination .page-link {
  color: var(--dwg-accent-ink);
  border-radius: 0;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
  border-radius: 0;
}

/* ===== Faceted search accent ===== */
.facet .custom-checkbox input[type="checkbox"]:checked + span {
  background-color: var(--dwg-accent);
  border-color: var(--dwg-accent);
}

/* ===== Product flags ===== */
.product-flag.discount,
.product-flag.on-sale {
  background-color: var(--dwg-danger);
}

.product-flag.new {
  background-color: var(--dwg-accent);
}

/* ===== Back to top ===== */
.back-to-top-link:focus {
  background-color: var(--dwg-accent);
}

/* ===== Forms — focus accent ===== */
.form-control:focus {
  border-color: var(--dwg-accent);
  box-shadow: 0 0 0 0.2rem rgba(20, 126, 179, 0.25);
}

/* ===== Toast / notifications ===== */
.toast--success {
  border-color: var(--dwg-success);
}

/* ===== POS CE Widgets ===== */

/* Banner */
.pos-banner-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.pos-banner-link {
  display: block;
  position: relative;
  text-decoration: none;
}

.pos-banner-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.pos-banner-wrapper:hover .pos-banner-img {
  transform: scale(1.03);
}

.pos-banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}

.pos-banner-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
}

.pos-banner-title h3 {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.pos-banner-btn {
  display: inline-block;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #fff;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

/* Title */
.pos-title-wrapper {
  margin-bottom: 1.5rem;
}

.pos-title {
  color: var(--dwg-text-dark);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.pos-title-image img {
  max-height: 30px;
  width: auto;
  margin-bottom: 0.75rem;
}

.pos-description {
  color: #707070;
  font-size: 0.9375rem;
}

/* Slideshow */
.pos-slideshow-wrapper {
  position: relative;
  overflow: hidden;
}

.pos-slideshow-slide {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.pos-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pos-slideshow-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1;
}

.pos-slideshow-wrapper .swiper-slide > .pos-slide-content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  min-width: 0 !important;
  width: 100%;
  max-width: 1410px;
  padding: 2rem 40px !important;
  z-index: 2;
}

.pos-slide-align-center {
  justify-content: center;
  text-align: center;
}

.pos-slide-align-right {
  justify-content: flex-end;
  text-align: right;
}

.pos-slide-inner {
  max-width: 600px;
}

.pos-slide-title1 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pos-slide-title1 h1 {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.pos-slide-title2,
.pos-slide-title3 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pos-slide-subtitle {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.pos-slide-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--dwg-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 0.2s ease;
}

.pos-slide-btn:hover {
  background-color: var(--dwg-hover);
  color: #fff;
}

/* Newsletter */
.pos-newsletter-inner {
  display: flex;
  gap: 0;
}

.pos-newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--dwg-border);
  border-right: none;
  font-size: 0.875rem;
  outline: none;
}

.pos-newsletter-input:focus {
  border-color: var(--dwg-accent);
}

.pos-newsletter-btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--dwg-accent);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.pos-newsletter-btn:hover {
  background-color: var(--dwg-hover);
}

.pos-newsletter-gdpr {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--dwg-text);
}

.pos-newsletter-gdpr label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}

/* Product grid from pos_products */
.ce-product-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns, 4), 1fr);
  gap: 1rem;
}

@media (max-width: 991.98px) {
  .ce-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pos-slideshow-slide {
    min-height: 300px;
  }
  .pos-slide-title1 {
    font-size: 1.75rem;
  }
  .pos-slide-content {
    padding: 1.5rem 2rem !important;
  }
}

@media (max-width: 767.98px) {
  .ce-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pos-slideshow-slide {
    min-height: 250px;
  }
  .pos-slide-title1 {
    font-size: 1.25rem;
  }
  .pos-slide-title2,
  .pos-slide-title3 {
    font-size: 1rem;
  }
  .pos-slide-content {
    padding: 1rem 1.5rem !important;
  }
}

/* Handy: zwei Spalten wie in den Kategorien – einspaltig war die Startseite über 11.000 px lang (README 32) */
@media (max-width: 575.98px) {
  .ce-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
  }
}

/* ===== CLS Prevention — Banner images ===== */
.pos-banner-wrapper {
  position: relative;
  overflow: hidden;
}
.pos-banner-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 913;
  object-fit: cover;
}

/* Banner mit anderem Seitenverhältnis (Logos, Fotos): in Creative Elements der Sektion die
   CSS-Klasse „dwg-banner-natural“ geben – Bilder dann vollständig, im eigenen Format, ohne Beschnitt.
   Verwendet: Startseite, Sektion „Glock Certified“. */
.dwg-banner-natural .pos-banner-img {
  aspect-ratio: auto;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  .dwg-banner-natural .pos-banner-img {
    max-height: 220px;
  }
}

/* Ohne Banner-Text kein Abdunkel-Verlauf (färbt transparente Logos sonst grau) */
.dwg-banner-natural .pos-banner-content {
  background: none;
}

/* ===== Swiper Pagination Touch Targets ===== */
.swiper-pagination-bullet {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
}
.swiper-pagination-bullet::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}
.swiper-pagination-bullet-active::after {
  background: #fff;
}

/* ===== Cookie Banner Contrast Fix ===== */
.gc_cookielaw .wrapper {
  color: #333;
}
.gc_cookielaw .wrapper a {
  color: var(--dwg-accent-ink);
  text-decoration: underline;
}
.gc_cookielaw .accept-button-save-all {
  background-color: var(--dwg-accent);
  color: #fff;
  border: none;
}

/* ===== Checkout steps accent ===== */
.checkout-step .step-title .step-number {
  background-color: var(--dwg-accent);
}

/* ===== Global Focus Styles ===== */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.page-link:focus-visible {
  outline: 2px solid var(--dwg-accent);
  outline-offset: 2px;
}

.dwg-header__action a:focus-visible,
.dwg-header__action button:focus-visible,
.dwg-nav__link:focus-visible {
  outline: 2px solid var(--dwg-accent);
  outline-offset: 2px;
}

.footer__social a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 50%;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .category__hero:hover .category__hero-overlay,
  .swiper-slide,
  .pos-slide-bg {
    transform: none !important;
  }
}

/* ==========================================================================
   Relaunch-Analyse Tonich (27.07.2026) — Umsetzung
   ========================================================================== */

/* ===== Topbar mit Trust-Botschaften (Analyse 1.2) ===== */
.dwg-topbar {
  background-color: var(--dwg-primary-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dwg-topbar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  /* Feste Höhe: der Wechsel darf kein Layout-Shift erzeugen */
  height: 34px;
}

.dwg-topbar__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}

.dwg-topbar__item.is-active {
  opacity: 1;
  visibility: visible;
}

.dwg-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
}

.dwg-topbar__link:hover {
  color: #fff;
  text-decoration: underline;
}

.dwg-topbar__icon {
  font-size: 1.0625rem;
  color: var(--dwg-accent-ink);
}

.dwg-topbar__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 575.98px) {
  .dwg-topbar {
    font-size: 0.75rem;
  }

  .dwg-topbar__list {
    height: 30px;
  }
}

/* ===== Preisauszeichnung (Analyse 1.1) ===== */
.hzm-price-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.4rem;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--dwg-text-light);
}

.hzm-price-notice__shipping {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hzm-price-notice__shipping:hover {
  color: var(--dwg-accent-ink);
}

.hzm-price-notice__unit {
  flex-basis: 100%;
}

.hzm-price-notice--product {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
}

/* ===== Zahlungs-/Versandart-Badges (Analyse 1.7, 1.8) ===== */
.hzm-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.hzm-badges__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dwg-text-light);
}

.hzm-badges__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hzm-badges__svg {
  display: block;
  width: 48px;
  height: 30px;
  color: var(--dwg-text-dark);
}

/* ===== Produktseite: Trust-Punkte am Kaufen-Button (Analyse 1.7) ===== */
.product__trust {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0.875rem 0 0;
  border-top: 1px solid var(--dwg-border);
  display: grid;
  gap: 0.625rem;
}

.product__trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.product__trust-icon {
  font-size: 1.375rem;
  color: var(--dwg-accent-ink);
  flex: none;
}

.product__trust-body {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.product__trust-title {
  font-size: 0.875rem;
  color: var(--dwg-text-dark);
}

.product__trust-text {
  font-size: 0.8125rem;
  color: var(--dwg-text-light);
}

.product__right .hzm-badges {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--dwg-border);
}

/* ===== Produktseite: Weißraum reduzieren (Analyse 1.6, 1.7) ===== */
.product__container {
  gap: 2rem;
  margin-bottom: 2rem;
}

.product__right > * + * {
  margin-top: 0.75rem;
}

.product__right .product__manufacturer {
  margin-top: 0.25rem;
}

.product__right .product__prices {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.product__description-short {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--dwg-text);
}

.product__description-short p:last-child {
  margin-bottom: 0;
}

.product__actions {
  margin-top: 1rem;
}

.product__bottom {
  margin-top: 2rem;
  gap: 2rem;
}

/* Bildspalte nicht ins Übermaß wachsen lassen — sonst steht der Kaufbereich
   auf großen Screens weit rechts und der Weißraum dazwischen dominiert */
@media (min-width: 992px) {
  .product__left {
    max-width: 560px;
  }
}

/* ===== Artikeldetails ohne zweites Aufklappen (Analyse 1.13) ===== */
.product__details-section + .product__details-section {
  margin-top: 1.5rem;
}

.product__details-heading {
  font-family: var(--dwg-font-heading);
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dwg-text-dark);
  margin: 0 0 0.625rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--dwg-border);
}

.product__details .details__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.product__details .details__item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 0.4375rem 0;
  border-bottom: 1px solid #f2f2f2;
  font-size: 0.875rem;
}

.product__details .details__item:last-child {
  border-bottom: none;
}

.product__details .details__left {
  flex: 0 0 40%;
  max-width: 40%;
}

.product__details .details__title {
  color: var(--dwg-text-light);
}

.product__details .details__right {
  color: var(--dwg-text-dark);
}

@media (max-width: 575.98px) {
  .product__details .details__left {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* ===== Sticky "In den Warenkorb" mobil (Analyse 1.6) ===== */
.hzm-sticky-cart {
  display: none;
}

@media (max-width: 991.98px) {
  .hzm-sticky-cart {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    /* unter Cookie-Banner (i. d. R. 1050+), über dem Seiteninhalt */
    z-index: 1030;
    background-color: #fff;
    border-top: 1px solid var(--dwg-border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
    transform: translateY(110%);
    transition: transform 0.25s ease;
  }

  .hzm-sticky-cart.is-visible {
    transform: translateY(0);
  }

  .hzm-sticky-cart__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .hzm-sticky-cart__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
  }

  .hzm-sticky-cart__name {
    font-size: 0.8125rem;
    color: var(--dwg-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hzm-sticky-cart__price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dwg-text-dark);
  }

  .hzm-sticky-cart__button {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 46px;
    white-space: nowrap;
  }

  /* Platz schaffen, damit die Leiste nichts verdeckt */
  body.has-sticky-cart {
    padding-bottom: 72px;
  }

  body.has-sticky-cart .back-to-top,
  body.has-sticky-cart #back-to-top {
    bottom: 88px;
  }
}

/* ===== Kategorieseite mobil (Analyse 1.14) ===== */
@media (max-width: 767.98px) {
  /* Produkte zuerst. Vorher scrollte man am Smartphone erst durch den
     kompletten Kategoriebaum der linken Spalte und danach durch die
     Unterkategorien, bevor überhaupt ein Produkt sichtbar wurde. */
  #left-column {
    order: 2;
    margin-top: 2rem;
  }

  #center-column {
    order: 1;
    display: flex;
    flex-direction: column;
  }

  #center-column > #products {
    order: 1;
  }

  /* Unterkategorien sind mobil eine zugeklappte Ausklappliste (48px) – die darf
     wieder über den Produkten stehen (16.10.2026, vorher Kacheln unter den Produkten) */
  #center-column > #js-product-list-header {
    order: 0;
  }

  #center-column > #js-product-list-footer {
    order: 3;
  }

  /* Zwei Produkte pro Zeile statt einem */
  #products .products,
  #js-product-list .products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  #products .products > * ,
  #js-product-list .products > * {
    width: 100%;
    max-width: 100%;
    flex: none;
    margin: 0;
  }

  .product-miniature__title {
    font-size: 0.8125rem;
    line-height: 1.3;
  }

  .product-miniature__price {
    font-size: 0.9375rem;
  }

  .product-miniature__add,
  .product-miniature__details {
    width: 100%;
    padding-inline: 0.5rem;
    font-size: 0.75rem;
  }

  .product-miniature__add span,
  .product-miniature__details span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hzm-price-notice {
    font-size: 0.6875rem;
  }
}

/* ===== Footer: Bezahl- und Versandarten (Analyse 1.8) ===== */
.footer__methods {
  background-color: var(--dwg-primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.125rem 0;
}

.footer__methods-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer__methods .hzm-badges__label {
  color: rgba(255, 255, 255, 0.7);
}

.copyright__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

/* „Vertrag widerrufen“ – § 13a FAGG verlangt eine hervorgehobene Schaltfläche */
.copyright__legal-link {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.copyright__legal-link:hover,
.copyright__legal-link:focus-visible {
  color: var(--dwg-accent-ink);
}

/* ===== Markenseite (Analyse 1.14) ===== */
.brand__header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--dwg-border);
}

.brand__logo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  padding: 0.75rem;
  background-color: #fff;
  border: 1px solid var(--dwg-border);
}

.brand__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Fallback ohne Logo: Wortmarke statt kaputtem Bild */
.brand__logo--text {
  font-family: var(--dwg-font-heading);
  font-size: 1.125rem;
  text-align: center;
  line-height: 1.2;
  color: var(--dwg-text-dark);
  word-break: break-word;
  hyphens: auto;
}

.brand__body {
  flex: 1;
  min-width: 0;
}

.brand__body .brand__title {
  font-family: var(--dwg-font-heading);
  font-size: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.brand__description {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--dwg-text);
}

.brand__description p:last-child {
  margin-bottom: 0;
}

@media (max-width: 575.98px) {
  .brand__header {
    flex-direction: column;
    gap: 1rem;
  }

  .brand__logo {
    width: 96px;
    height: 96px;
  }

  .brand__body .brand__title {
    font-size: 1.375rem;
  }
}

/* Markenübersicht: Kachel-Titel. Teilt sich die Klasse .brand__title mit der
   H1 der Markendetailseite, deshalb dort über .brand__body begrenzt. Die breite
   Überschriftenschrift passt nicht in die schmalen Kacheln, lange Namen brechen um. */
.brand__list .brand__title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* ===== Markenfarbe auf dunklen Flächen ==================================
   Auf dem dunklen Grund ist die volle Markenfarbe gut lesbar (Messing kommt
   dort auf 7,8:1). Die abgedunkelte Variante wäre hier zu schwach — deshalb
   wird --dwg-accent-ink in diesen Containern auf die Marke zurückgesetzt.
   Die Variable vererbt sich, es genügen die Container selbst.
   ======================================================================== */
.dwg-topbar,
.dwg-header,
.dwg-header__nav,
.footer,
.copyright,
.category__hero {
  --dwg-accent-ink: var(--dwg-accent);
}

/* Helle Inseln innerhalb dunkler Container holen den lesbaren Wert zurück:
   das Megamenü steht auf Weiß. */
.dwg-mega {
  --dwg-accent-ink: var(--dwg-accent-readable);
}

/* ==========================================================================
   Hauptnavigation (Shop-Gerüst, Teil A)
   Markup: modules/ps_mainmenu/ps_mainmenu.tpl, Logik: custom.js (initMainNav)
   ========================================================================== */
:root {
  --dwg-nav-bg: var(--dwg-secondary);
  --dwg-nav-fg: #ffffff;
  --dwg-nav-hover-bg: rgba(255, 255, 255, 0.08);
  --dwg-nav-active: var(--dwg-accent);
  --dwg-nav-height: 46px;
  --dwg-mega-bg: #ffffff;
  --dwg-mega-fg: var(--dwg-text-dark);
  --dwg-mega-muted: #555555;
  /* Shop-in-Shop-Akzent; hanz_shopinshop überschreibt den Wert aus dem BO */
  --dwg-sis-accent: #8a6218;
  --dwg-sis-contrast: #ffffff;
}

.dwg-header__nav {
  background-color: var(--dwg-nav-bg);
}

.dwg-header__nav-inner {
  position: relative;
  display: flex;
  align-items: stretch;
}

.dwg-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.dwg-nav__list {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0 0.5rem;
}

/* static: das Dropdown richtet sich an der vollen Leistenbreite aus */
.dwg-nav__item {
  position: static;
  display: flex;
  align-items: stretch;
}

.dwg-nav__link,
.dwg-nav__toggle {
  display: flex;
  align-items: center;
  min-height: var(--dwg-nav-height);
  color: var(--dwg-nav-fg);
  background: none;
  border: 0;
  font-family: var(--dwg-font-body);
  font-size: 0.875rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.dwg-nav__link {
  position: relative;
  gap: 0.375rem;
  padding: 0 0.75rem;
}

.dwg-nav__item.has-mega .dwg-nav__link {
  padding-right: 0.125rem;
}

.dwg-nav__toggle {
  justify-content: center;
  min-width: 24px;
  padding: 0 0.5rem 0 0.125rem;
  cursor: pointer;
}

.dwg-nav__toggle .material-icons {
  font-size: 1.125rem;
  transition: transform 0.2s ease;
}

/* Unterstrich in Akzentfarbe für Hover, Offen und aktiven Pfad */
.dwg-nav__link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.125rem;
  bottom: 0;
  height: 3px;
  background-color: var(--dwg-nav-active);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.15s ease;
}

.dwg-nav__item:not(.has-mega) .dwg-nav__link::after {
  right: 0.75rem;
}

.dwg-nav__item:hover,
.dwg-nav__item.is-open {
  background-color: var(--dwg-nav-hover-bg);
}

.dwg-nav__link:hover,
.dwg-nav__link:focus-visible {
  color: var(--dwg-nav-fg);
}

.dwg-nav__item:hover .dwg-nav__link::after,
.dwg-nav__item.is-open .dwg-nav__link::after,
.dwg-nav__item.is-active .dwg-nav__link::after {
  transform: scaleX(1);
}

.dwg-nav__item.is-active .dwg-nav__link {
  font-weight: 700;
}

.dwg-nav__item.is-open .dwg-nav__toggle .material-icons {
  transform: rotate(180deg);
}

.dwg-nav__link:focus-visible,
.dwg-nav__toggle:focus-visible {
  outline: 2px solid var(--dwg-nav-fg);
  outline-offset: -4px;
}

/* Shop-in-Shop-Kennzeichnung (Teil C) */
.dwg-nav__flag {
  display: inline-block;
  padding: 0.0625rem 0.3125rem;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dwg-sis-contrast);
  background-color: var(--dwg-sis-accent);
}

.dwg-nav__item.is-shopinshop .dwg-nav__link::after {
  background-color: var(--dwg-sis-accent);
}

/* ----- Mega-Dropdown ----- */
.dwg-mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--dwg-mega-bg);
  color: var(--dwg-mega-fg);
  border-top: 3px solid var(--dwg-nav-active);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.dwg-nav__item.is-shopinshop .dwg-mega {
  border-top-color: var(--dwg-sis-accent);
}

/* Ohne JS: Hover und Tastaturfokus öffnen direkt (progressive enhancement) */
.dwg-nav:not(.is-enhanced) .dwg-nav__item.has-mega:hover > .dwg-mega,
.dwg-nav:not(.is-enhanced) .dwg-nav__item.has-mega:focus-within > .dwg-mega,
.dwg-nav__item.is-open > .dwg-mega {
  display: block;
}

.dwg-mega__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1.5rem;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dwg-mega__head {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--dwg-border);
}

.dwg-mega a {
  text-decoration: none;
}

.dwg-mega__all {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--dwg-font-heading);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dwg-accent-ink);
}

.dwg-mega__all .material-icons {
  font-size: 1.125rem;
}

.dwg-mega__all:hover {
  text-decoration: underline;
}

/* Drei Spalten, Gruppen werden nicht zerrissen */
.dwg-mega__cols {
  columns: 3;
  column-gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dwg-mega__group {
  break-inside: avoid;
  padding-bottom: 1rem;
}

.dwg-mega__title {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--dwg-mega-fg);
}

.dwg-mega__links {
  list-style: none;
  margin: 0.125rem 0 0;
  padding: 0;
}

.dwg-mega__link,
.dwg-mega__more {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  color: var(--dwg-mega-muted);
}

.dwg-mega__more {
  font-weight: 600;
  color: var(--dwg-accent-ink);
}

.dwg-mega__title:hover,
.dwg-mega__link:hover,
.dwg-mega__title.is-active,
.dwg-mega__link.is-active {
  color: var(--dwg-accent-ink);
}

.dwg-mega__title.is-active,
.dwg-mega__link.is-active {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dwg-mega a:focus-visible {
  outline: 2px solid var(--dwg-accent-ink);
  outline-offset: 2px;
}

/* 992–1399px: Schrift und Abstände stufenweise kleiner, damit alle Einträge
   einzeilig in die Leiste passen. „Alle Artikelgruppen“ ist bis 1599px nur ein Symbol-Knopf;
   die Beschriftung bleibt für Screenreader im Knopf (kein display:none). */
@media (min-width: 992px) and (max-width: 1599.98px) {
  .dwg-nav__all-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .dwg-nav__link,
  .dwg-nav__toggle {
    font-size: 0.8125rem;
  }

  .dwg-nav__link {
    padding: 0 0.5rem;
  }

  .dwg-nav__link::after {
    left: 0.5rem;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .dwg-nav__list {
    padding: 0;
  }

  .dwg-nav__link,
  .dwg-nav__toggle {
    font-size: 0.75rem;
  }

  .dwg-nav__link {
    padding: 0 0.3125rem;
  }

  .dwg-nav__link::after {
    left: 0.3125rem;
  }

  .dwg-nav__toggle {
    padding: 0 0.25rem 0 0;
  }

  .dwg-nav__flag {
    display: none;
  }

  .dwg-mega__cols {
    column-gap: 1.5rem;
  }
}

/* ----- Mobiles Menü: Akkordeon im Offcanvas ----- */
.dwg-mnav.offcanvas {
  --bs-offcanvas-width: min(88vw, 360px);
  background-color: var(--dwg-primary);
  color: #fff;
}

.dwg-mnav .offcanvas-header {
  background-color: var(--dwg-primary-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 56px;
  padding: 0.5rem 1rem;
}

.dwg-mnav__title {
  font-family: var(--dwg-font-heading);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dwg-mnav .offcanvas-header .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
  opacity: 0.9;
  margin-left: auto;
}

.dwg-mnav__body {
  flex-grow: 1;
  overflow-y: auto;
}

.dwg-mnav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dwg-mnav__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dwg-mnav__list--l2,
.dwg-mnav__list--l3,
.dwg-mnav__list--l4 {
  background-color: rgba(0, 0, 0, 0.18);
}

.dwg-mnav__list--l2 .dwg-mnav__item:last-child,
.dwg-mnav__list--l3 .dwg-mnav__item:last-child {
  border-bottom: 0;
}

.dwg-mnav__row {
  display: flex;
  align-items: stretch;
}

.dwg-mnav__link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 48px;
  padding: 0.5rem 1rem;
  color: #fff;
  font-size: 0.9375rem;
  text-decoration: none;
}

.dwg-mnav__list--l2 .dwg-mnav__link {
  padding-left: 1.75rem;
  font-size: 0.875rem;
}

.dwg-mnav__list--l3 .dwg-mnav__link {
  padding-left: 2.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}

.dwg-mnav__link:hover,
.dwg-mnav__link:active {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dwg-mnav__item.is-active > .dwg-mnav__row > .dwg-mnav__link {
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--dwg-accent);
}

.dwg-mnav__item.is-shopinshop > .dwg-mnav__row > .dwg-mnav__link {
  box-shadow: inset 3px 0 0 var(--dwg-sis-accent);
}

.dwg-mnav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-height: 48px;
  padding: 0;
  color: #fff;
  background: none;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.dwg-mnav__toggle .material-icons {
  transition: transform 0.2s ease;
}

.dwg-mnav__toggle[aria-expanded="true"] .material-icons {
  transform: rotate(180deg);
}

.dwg-mnav__toggle:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.dwg-mnav a:focus-visible,
.dwg-mnav button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}

.dwg-mnav__extra {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
}

.dwg-mnav__extra a {
  color: rgba(255, 255, 255, 0.85);
}

/* Offcanvas sitzt im Flex-Container der Leiste, darf aber nicht mitfließen */
.dwg-header__nav-inner > .dwg-mnav.offcanvas {
  position: fixed;
  flex: none;
}

/* ==========================================================================
   Suche mit Such-Layer (Shop-Gerüst Teil B, hanz_search v2)
   Markup: modules/ps_searchbar/ps_searchbar.tpl, Logik: custom.js (initLiveSearch)
   ========================================================================== */
.dwg-header__search {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  justify-content: center;
}

.hanz-search {
  position: relative;
  width: 100%;
}

.hanz-search__form {
  display: flex;
  align-items: stretch;
  width: 100%;
  background: #fff;
  border: 2px solid var(--dwg-accent);
  border-radius: 4px;
}

.hanz-search__input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  color: #333;
  background: transparent;
  border: 0;
  border-radius: 4px 0 0 4px;
  -webkit-appearance: none;
  appearance: none;
}

.hanz-search__input::placeholder {
  color: #6b6b6b;
}

.hanz-search__input::-webkit-search-cancel-button {
  cursor: pointer;
}

.hanz-search__input:focus-visible {
  outline: 2px solid var(--dwg-accent-readable);
  outline-offset: -2px;
}

.hanz-search__submit {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  color: var(--dwg-accent-contrast);
  background-color: var(--dwg-accent);
  border: 0;
  cursor: pointer;
}

.hanz-search__submit:hover {
  background-color: var(--dwg-hover);
}

.hanz-search__submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

/* Ladeindikator: dünner Balken statt Spinner, kein Layout-Sprung */
.hanz-search.is-loading .hanz-search__form {
  background-image: linear-gradient(90deg, transparent, var(--dwg-accent), transparent);
  background-size: 40% 2px;
  background-repeat: no-repeat;
  background-position: -40% 100%;
  animation: hanz-search-loading 0.9s linear infinite;
}

@keyframes hanz-search-loading {
  to {
    background-position: 140% 100%;
  }
}

.hanz-search__panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1100;
  overflow: hidden;
  color: var(--dwg-text-dark);
  background: #fff;
  border: 1px solid var(--dwg-border);
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  --dwg-accent-ink: var(--dwg-accent-readable);
}

.hanz-search__panel[hidden] {
  display: none;
}

.hanz-search__listbox {
  max-height: min(70vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.hanz-search__group {
  padding-bottom: 0.25rem;
}

.hanz-search__group + .hanz-search__group,
.hanz-search__dym + .hanz-search__group {
  border-top: 1px solid var(--dwg-border);
}

.hanz-search__heading {
  padding: 0.625rem 1rem 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dwg-text-light);
}

/* Gemeinsamer Auswahlzustand aller Optionen (Pfeiltasten/Hover) */
.hanz-search__opt.is-active,
.hanz-search__product:hover,
.hanz-search__link:hover {
  color: var(--dwg-text-dark);
  background-color: #f2f4f5;
  box-shadow: inset 3px 0 0 var(--dwg-accent);
}

.hanz-search__chip.is-active,
.hanz-search__remove.is-active,
.hanz-search__cart.is-active {
  outline: 2px solid var(--dwg-accent-readable);
  outline-offset: 1px;
  box-shadow: none;
}

/* „Meintest du …“ */
.hanz-search__dym {
  padding: 0.25rem 0;
}

.hanz-search__dym-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.375rem 1rem;
  font-size: 0.9375rem;
  color: var(--dwg-text-dark);
  text-decoration: none;
}

.hanz-search__dym-link strong {
  margin: 0 0.25em;
  color: var(--dwg-accent-ink);
  text-decoration: underline;
}

.hanz-search__note {
  margin: 0 0 0.25rem;
  padding: 0 1rem;
  font-size: 0.8125rem;
  color: var(--dwg-text-light);
}

/* Produktkarten: feste Höhe, Bildmaße gesetzt → kein Layout-Sprung */
.hanz-search__cards {
  display: flex;
  flex-direction: column;
}

.hanz-search__card {
  display: flex;
  align-items: center;
  min-height: 80px;
}

.hanz-search__card.is-unavailable .hanz-search__media img {
  opacity: 0.6;
}

.hanz-search__product {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 80px;
  padding: 0.5rem 1rem;
  color: var(--dwg-text-dark);
  text-decoration: none;
}

.hanz-search__media {
  position: relative;
  flex: none;
  width: 64px;
  height: 64px;
  background: #f5f5f5;
}

.hanz-search__media img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.hanz-search__badge--sale {
  position: absolute;
  top: 0;
  left: 0;
  padding: 1px 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  background-color: var(--dwg-danger);
}

.hanz-search__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hanz-search__name {
  font-size: 0.875rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hanz-search__name mark {
  padding: 0;
  font-weight: 700;
  color: inherit;
  background: none;
}

.hanz-search__cat {
  font-size: 0.75rem;
  color: var(--dwg-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hanz-search__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.75rem;
}

.hanz-search__price {
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--dwg-text-dark);
}

.hanz-search__regular {
  font-weight: 400;
  color: var(--dwg-text-light);
}

.hanz-search__stock {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.hanz-search__stock.is-in {
  color: var(--dwg-success);
}

.hanz-search__stock.is-out {
  color: var(--dwg-text-light);
}

.hanz-search__cart {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: 0.75rem;
  padding: 0;
  color: var(--dwg-accent-ink);
  background: #fff;
  border: 1px solid var(--dwg-accent-readable);
  border-radius: 4px;
  cursor: pointer;
}

.hanz-search__cart:hover {
  color: var(--dwg-accent-contrast);
  background-color: var(--dwg-accent);
}

.hanz-search__cart:focus-visible {
  outline: 2px solid var(--dwg-accent-readable);
  outline-offset: 1px;
}

.hanz-search__cart .material-icons {
  font-size: 22px;
}

.hanz-search__cart-done,
.hanz-search__cart.is-done .hanz-search__cart-icon {
  display: none;
}

.hanz-search__cart.is-done .hanz-search__cart-done {
  display: block;
}

.hanz-search__cart.is-done {
  color: #fff;
  background-color: var(--dwg-success);
  border-color: var(--dwg-success);
}

.hanz-search__cart.is-error {
  border-color: var(--dwg-danger);
}

.hanz-search__cart.is-busy {
  opacity: 0.6;
  cursor: progress;
}

/* Kategorien, Marken */
.hanz-search__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  color: var(--dwg-text-dark);
  text-decoration: none;
}

.hanz-search__count {
  flex: none;
  font-size: 0.75rem;
  color: var(--dwg-text-light);
}

.hanz-search__link--redirect {
  font-weight: 700;
}

/* Chips: Beliebte Suchen, Zuletzt gesucht, Kurz-Facetten */
.hanz-search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.25rem 1rem 0.75rem;
}

.hanz-search__chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--dwg-text-dark);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--dwg-border);
  border-radius: 999px;
}

.hanz-search__chip:hover {
  color: var(--dwg-text-dark);
  border-color: var(--dwg-accent-readable);
}

.hanz-search__recent {
  display: inline-flex;
  align-items: center;
}

.hanz-search__recent .hanz-search__chip {
  border-right: 0;
  border-radius: 999px 0 0 999px;
}

.hanz-search__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 0.5rem 0 0.25rem;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--dwg-text-light);
  background: #fff;
  border: 1px solid var(--dwg-border);
  border-left: 0;
  border-radius: 0 999px 999px 0;
  cursor: pointer;
}

.hanz-search__remove:hover {
  color: var(--dwg-danger);
}

/* Null-Treffer */
.hanz-search__empty-title {
  margin: 0;
  padding: 0.75rem 1rem 0;
  font-weight: 700;
  color: var(--dwg-text-dark);
}

.hanz-search__empty-hint {
  margin: 0;
  padding: 0.25rem 1rem 0.75rem;
  font-size: 0.875rem;
}

.hanz-search__contact {
  color: var(--dwg-accent-ink);
  text-decoration: underline;
}

.hanz-search__all {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dwg-accent-ink);
  background-color: #fafafa;
  border-top: 1px solid var(--dwg-border);
  text-decoration: none;
}

.hanz-search__all:hover,
.hanz-search__all:focus-visible,
.hanz-search__all.is-active {
  text-decoration: underline;
  background-color: #f2f4f5;
}

/* Spracheingabe (nur wenn der Browser sie kann, per JS eingefügt) */
.hanz-search__mic {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  padding: 0;
  color: #555;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.hanz-search__mic:hover {
  color: var(--dwg-text-dark);
}

.hanz-search__mic:focus-visible {
  outline: 2px solid var(--dwg-accent-readable);
  outline-offset: -4px;
}

.hanz-search__mic.is-listening {
  color: var(--dwg-danger);
  animation: hanz-search-listening 1.2s ease-in-out infinite;
}

@keyframes hanz-search-listening {
  50% {
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hanz-search__mic.is-listening,
  .hanz-search.is-loading .hanz-search__form {
    animation: none;
  }
}

/* Desktop: Artikel links, Kategorien/Marken/Facetten rechts */
@media (min-width: 992px) {
  .hanz-search__listbox.has-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: start;
  }

  .hanz-search__listbox.has-aside > .hanz-search__main {
    grid-column: 1;
    grid-row: 1;
  }

  .hanz-search__listbox.has-aside > .hanz-search__aside {
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    background-color: #fafafa;
    border-left: 1px solid var(--dwg-border);
  }

  .hanz-search__listbox > .hanz-search__all {
    grid-column: 1 / -1;
  }

  .hanz-search__aside .hanz-search__group + .hanz-search__group {
    border-top: 1px solid var(--dwg-border);
  }

  .hanz-search__aside .hanz-search__chip {
    background: #fff;
  }

  .hanz-search.is-focus-state .hanz-search__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: Offcanvas wird Vollbild-Layer, Feld oben fixiert, Ergebnisse scrollen */
.hanz-search-canvas.offcanvas-top {
  height: 100vh;
  height: 100dvh;
  max-height: none;
  background-color: #fff;
}

.hanz-search-canvas .offcanvas-header {
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: var(--dwg-primary-dark);
}

.hanz-search-canvas__slot {
  flex: 1;
  min-width: 0;
}

.hanz-search-canvas__close {
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.hanz-search-canvas__close:hover,
.hanz-search-canvas__close:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.hanz-search-canvas .hanz-search__input {
  height: 44px;
  font-size: 1rem; /* verhindert Zoom beim Fokussieren auf iOS */
}

.hanz-search-canvas .hanz-search__mic {
  width: 44px;
}

.hanz-search-canvas .hanz-search__panel {
  position: fixed;
  top: 68px;
  right: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hanz-search-canvas .hanz-search__listbox {
  max-height: none;
  overflow: visible;
}

.hanz-search-canvas .hanz-search__chip,
.hanz-search-canvas .hanz-search__remove,
.hanz-search-canvas .hanz-search__link {
  min-height: 44px;
}

.hanz-search-canvas .hanz-search__aside {
  border-top: 1px solid var(--dwg-border);
}

/* Suchergebnisseite /suche (catalog/listing/search.tpl, hanz_search v2) */
.hanz-results__title {
  margin-bottom: 0.5rem;
}

.hanz-results__count {
  display: inline-block;
  margin-left: 0.5rem;
  font-family: var(--dwg-font-body);
  font-size: 0.5em;
  font-weight: 400;
  color: var(--dwg-text-light);
  vertical-align: middle;
}

.hanz-results__hint,
.hanz-results__lead {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--dwg-text-dark);
}

.hanz-results__hint a,
.hanz-results__lead a {
  color: var(--dwg-accent-ink);
  text-decoration: underline;
}

.hanz-results__subtitle {
  margin: 1.5rem 0 0.75rem;
}

.hanz-results__chips,
.hanz-results__tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hanz-results__chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 1rem;
  color: var(--dwg-text-dark);
  text-decoration: none;
  border: 1px solid var(--dwg-border);
  border-radius: 999px;
}

.hanz-results__tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.hanz-results__tile {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--dwg-text-dark);
  text-decoration: none;
  background-color: var(--dwg-bg-alt);
  border-left: 3px solid var(--dwg-accent);
}

.hanz-results__chip:hover,
.hanz-results__tile:hover {
  color: var(--dwg-text-dark);
  border-color: var(--dwg-accent-readable);
  text-decoration: underline;
}

@media (max-width: 1199.98px) {
  .dwg-header__search {
    padding: 0 1rem;
  }
}

/* ==========================================================================
   Shop-in-Shop (Shop-Gerüst, Teil C) – hanz_shopinshop
   Farben nur über Variablen: --dwg-sis-accent/-ink/-contrast kommen aus dem
   Modul (BO), im Bereich setzt body.shopinshop auch --dwg-accent* um.
   ========================================================================== */
/* Schlanke Bereichsleiste: Bereichsname links, Ausstieg rechts */
.hanz-sis-bar {
  background-color: var(--dwg-primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 2px solid var(--dwg-sis-accent);
}

.hanz-sis-bar__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 36px;
}

.hanz-sis-bar__brand {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  color: var(--dwg-sis-contrast);
  background-color: var(--dwg-sis-accent);
  text-decoration: none;
}

.hanz-sis-bar__brand:hover {
  color: var(--dwg-sis-contrast);
}

.hanz-sis-bar__name {
  font-family: var(--dwg-font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hanz-sis-bar__logo {
  display: block;
  height: 24px;
  width: auto;
}

.hanz-sis-bar__back {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  text-decoration: none;
}

.hanz-sis-bar__back .material-icons {
  font-size: 1rem;
}

.hanz-sis-bar__back:hover {
  color: #fff;
  text-decoration: underline;
}

.hanz-sis-bar a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}

/* Smartphone: „Zurück zum“ nur für Screenreader, sichtbar bleibt „← Waffengeschäft“ */
@media (max-width: 575.98px) {
  .hanz-sis-bar__brand,
  .hanz-sis-bar__back {
    padding: 0 0.75rem;
    min-height: 40px;
  }

  .hanz-sis-bar__back-prefix {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ----- Landingpage ----- */
.hanz-sis-hero {
  margin-bottom: 2rem;
  padding: 3.5rem 0 2.5rem;
  color: #fff;
  background-color: var(--dwg-primary-dark);
  background-image:
    linear-gradient(115deg, rgba(37, 45, 48, 0.94) 0%, rgba(37, 45, 48, 0.8) 55%, rgba(37, 45, 48, 0.55) 100%),
    var(--dwg-hero-bg, url('../img/hero-artikelgruppen-1920.webp'));
  background-position: center;
  background-size: cover;
  border-bottom: 4px solid var(--dwg-sis-accent);
  --dwg-accent-ink: #fff;
}

.hanz-sis-hero__inner {
  max-width: 1320px;
  padding: 0 1.5rem;
}

.hanz-sis-hero__brand {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.375rem 0.75rem;
  font-family: var(--dwg-font-heading);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dwg-sis-contrast);
  background-color: var(--dwg-sis-accent);
}

.hanz-sis-hero__logo {
  display: block;
  height: 56px;
  width: auto;
}

.hanz-sis-hero__brand:has(.hanz-sis-hero__logo) {
  padding: 0;
  background: none;
}

.hanz-sis-hero__title {
  margin: 0 0 0.5rem;
  font-family: var(--dwg-font-heading);
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  text-transform: uppercase;
  color: #fff;
}

.hanz-sis-hero__claim {
  max-width: 40rem;
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.92);
}

.hanz-sis-hero .breadcrumb__wrapper {
  margin: 0.75rem 0 0;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.hanz-sis-hero .breadcrumb,
.hanz-sis-hero .breadcrumb a,
.hanz-sis-hero .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 575.98px) {
  .hanz-sis-hero {
    padding: 2rem 0 1.5rem;
  }
}

/* Im Bereich: Hauptnavigation nimmt den Bereichsakzent auf */
body.shopinshop .dwg-header__nav {
  --dwg-nav-active: var(--dwg-sis-accent);
}

/* ==========================================================================
   „Alle Artikelgruppen“ (ersetzt FEATURED): erster Eintrag der Leiste,
   Dropdown mit komplettem Kategoriebaum und den Marken-Shops
   ========================================================================== */
.dwg-nav__toggle.dwg-nav__all {
  gap: 0.5rem;
  min-width: 44px;
  padding: 0 1rem;
  color: var(--dwg-accent-contrast);
  background-color: var(--dwg-accent);
  font-family: var(--dwg-font-heading);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dwg-nav__toggle.dwg-nav__all .material-icons {
  font-size: 1.25rem;
  transform: none;
}

.dwg-nav__item--all:hover .dwg-nav__all,
.dwg-nav__item--all.is-open .dwg-nav__all {
  background-color: var(--dwg-hover);
}

.dwg-nav__item--all .dwg-nav__all:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.dwg-nav__list > .dwg-nav__item--all {
  margin-left: -0.5rem; /* bündig mit der Leistenkante */
}

@media (min-width: 1200px) and (max-width: 1599.98px) {
  .dwg-nav__toggle.dwg-nav__all {
    width: 64px;
    padding: 0;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .dwg-nav__toggle.dwg-nav__all {
    width: 44px;
    padding: 0;
  }

  .dwg-nav__list > .dwg-nav__item--all {
    margin-left: 0;
  }
}

.dwg-all__heading {
  margin: 0 0 0.75rem;
  font-family: var(--dwg-font-heading);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dwg-text-dark);
}

/* Zweigeteilt: links die Hauptgruppen (Rail), rechts die Unterkategorien der
   gewählten Gruppe in Spalten. Hält das Dropdown kompakt, auch wenn eine Gruppe
   (z. B. Ausrüstung & Zubehör) viel mehr Unterpunkte hat als die anderen. */
.dwg-all__body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  border: 1px solid var(--dwg-border);
}

.dwg-all__rail {
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background-color: #f5f5f5;
  border-right: 1px solid var(--dwg-border);
}

.dwg-all__tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 44px;
  margin-right: -1px; /* aktiver Eintrag geht nahtlos ins Panel über */
  padding: 0.5rem 0.875rem 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--dwg-text-dark);
  border-left: 3px solid transparent;
  border-right: 1px solid transparent;
}

.dwg-all__tab .material-icons {
  font-size: 1.25rem;
  color: var(--dwg-text-light);
}

.dwg-all__tab:hover,
.dwg-all__tab.is-current {
  color: var(--dwg-accent-ink);
  background-color: #fff;
}

.dwg-all__tab.is-current {
  border-left-color: var(--dwg-accent);
  border-right-color: #fff;
}

.dwg-all__tab.is-current .material-icons {
  color: var(--dwg-accent-ink);
}

.dwg-all__tab.is-shopinshop.is-current {
  color: var(--dwg-sis-ink);
  border-left-color: var(--dwg-sis-accent);
}

.dwg-all__cols {
  margin: 0;
  padding: 1rem 1.5rem 1.25rem;
  list-style: none;
}

.dwg-all__col {
  display: none;
}

.dwg-all__col.is-current {
  display: block;
}

.dwg-all__list,
.dwg-all__sub,
.dwg-all__brand-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Gruppen in Spalten, eine Gruppe wird nicht zerrissen */
.dwg-all__list {
  columns: 4 170px;
  column-gap: 2rem;
}

.dwg-all__list > li {
  break-inside: avoid;
  padding-bottom: 0.5rem;
}

.dwg-all__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  color: var(--dwg-accent-ink);
  border-bottom: 2px solid var(--dwg-border);
}

.dwg-all__top-label {
  font-size: 1.125rem;
  font-weight: 700;
}

.dwg-all__top-more {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
}

.dwg-all__top-more .material-icons {
  font-size: 1.125rem;
}

.dwg-all__col.is-shopinshop .dwg-all__top {
  color: var(--dwg-sis-ink);
  border-bottom-color: var(--dwg-sis-accent);
}

.dwg-all__link,
.dwg-all__sublink {
  display: block;
  padding: 0.1875rem 0;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--dwg-text-dark);
}

.dwg-all__sub {
  margin: 0 0 0.25rem;
  padding-left: 0.625rem;
  border-left: 1px solid var(--dwg-border);
}

.dwg-all__link {
  font-size: 0.875rem;
  font-weight: 600;
}

.dwg-all__sublink {
  font-size: 0.8125rem;
  color: var(--dwg-mega-muted);
}

.dwg-all__top:hover .dwg-all__top-more,
.dwg-all__link:hover,
.dwg-all__sublink:hover,
.dwg-all__link.is-active,
.dwg-all__sublink.is-active {
  color: var(--dwg-accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dwg-all__brands {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--dwg-border);
}

.dwg-all__brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dwg-all__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.375rem 0.875rem 0.375rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dwg-text-dark);
  background: #f5f5f5;
  border: 1px solid var(--dwg-border);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dwg-all__brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

.dwg-all__brand .material-icons {
  font-size: 0.9375rem;
  color: var(--dwg-text-light);
}

.dwg-all__brand:hover {
  color: var(--dwg-text-dark);
  background: #fff;
  border-color: var(--dwg-accent);
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .dwg-all__body {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .dwg-all__cols {
    padding: 0.875rem 1rem 1rem;
  }
}

/* Marken-Shops im mobilen Menü */
.dwg-mnav__brands {
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dwg-mnav__heading {
  margin: 0;
  padding: 0.875rem 1rem 0.5rem;
  font-family: var(--dwg-font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.dwg-mnav__brand-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

.dwg-mnav__ext {
  margin-left: auto;
  font-size: 1rem;
  opacity: 0.7;
}

/* Suchfeld im Dropdown „Alle Artikelgruppen“ */
.dwg-all__search {
  position: relative;
  max-width: 420px;
  margin: 0 0 1.25rem;
}

.dwg-all__search[hidden] {
  display: none;
}

.dwg-all__search-icon {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  font-size: 1.25rem;
  color: var(--dwg-text-light);
  transform: translateY(-50%);
  pointer-events: none;
}

.dwg-all__input {
  width: 100%;
  height: 42px;
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  font-size: 0.9375rem;
  color: var(--dwg-text-dark);
  background: #fff;
  border: 2px solid var(--dwg-border);
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
}

.dwg-all__input:focus {
  border-color: var(--dwg-accent);
  outline: none;
}

.dwg-all__input:focus-visible {
  outline: 2px solid var(--dwg-accent-ink);
  outline-offset: 1px;
}

.dwg-all__input::placeholder {
  color: #6b6b6b;
}

.dwg-all__empty {
  margin: -0.5rem 0 1.25rem;
  font-size: 0.875rem;
  color: var(--dwg-text-dark);
}

.dwg-all__empty[hidden] {
  display: none;
}

.dwg-all__empty a {
  margin-left: 0.25rem;
  font-weight: 600;
  color: var(--dwg-accent-ink);
  text-decoration: underline;
}

.dwg-mega--all .is-filtered-out {
  display: none;
}

/* Beim Filtern: Marken-Shops ausblenden, Treffer hervorheben */
.dwg-mega--all.is-filtering .dwg-all__brands {
  display: none;
}

/* Beim Filtern alle Gruppen mit Treffern nebeneinander, ohne Rail */
.dwg-mega--all.is-filtering .dwg-all__body {
  grid-template-columns: minmax(0, 1fr);
}

.dwg-mega--all.is-filtering .dwg-all__rail,
.dwg-mega--all.is-filtering .dwg-all__top-more {
  display: none;
}

.dwg-mega--all.is-filtering .dwg-all__cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem 1.5rem;
}

.dwg-mega--all.is-filtering .dwg-all__col:not(.is-filtered-out) {
  display: block;
}

.dwg-mega--all.is-filtering .dwg-all__list {
  columns: auto;
}

/* Dropdown „Marken“: Marken-Shops als Logo-Karten, darunter „Alle Marken“ */
.dwg-brands__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.dwg-brands__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
  padding: 1rem 0.75rem 0.875rem;
  color: var(--dwg-text-dark);
  text-align: center;
  background: #fff;
  border: 1px solid var(--dwg-border);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dwg-brands__card:hover {
  color: var(--dwg-text-dark);
  border-color: var(--dwg-accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.dwg-brands__card:focus-visible {
  outline: 2px solid var(--dwg-accent-ink);
  outline-offset: 2px;
}

.dwg-brands__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  font-family: var(--dwg-font-heading);
  font-size: 1.25rem;
  color: var(--dwg-text-light);
  background: #f5f5f5;
  border-radius: 50%;
}

.dwg-brands__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dwg-brands__name {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
}

.dwg-brands__ext {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.9375rem;
  color: var(--dwg-text-light);
}

.dwg-brands__all {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding-top: 0.75rem;
  font-family: var(--dwg-font-heading);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dwg-accent-ink);
  border-top: 1px solid var(--dwg-border);
}

.dwg-brands__all .material-icons {
  font-size: 1.125rem;
}

.dwg-brands__all:hover {
  text-decoration: underline;
}

/* Markenseite: SEO-Langtext unter der Artikelliste */
.brand__seo {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--dwg-border);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--dwg-text);
}

.brand__seo h2,
.brand__seo h3 {
  margin-top: 1.5rem;
  font-size: 1.125rem;
}

.brand__seo > :first-child {
  margin-top: 0;
}

/* Unterkategorien mobil (< 992px) als Ausklappliste – catalog/_partials/subcategory-dropdown.tpl */
.dwg-subcats {
  margin-bottom: 1.25rem;
  background: #fff;
  border: 1px solid var(--dwg-border);
  border-radius: 4px;
}

.dwg-subcats__toggle {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 48px;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--dwg-text-dark);
  cursor: pointer;
  list-style: none;
}

.dwg-subcats__toggle::-webkit-details-marker {
  display: none;
}

.dwg-subcats__count {
  font-weight: 400;
  color: var(--dwg-text-light);
}

.dwg-subcats__icon {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.dwg-subcats[open] .dwg-subcats__icon {
  transform: rotate(180deg);
}

.dwg-subcats[open] .dwg-subcats__toggle {
  border-bottom: 1px solid var(--dwg-border);
}

.dwg-subcats__toggle:focus-visible {
  outline: 2px solid var(--dwg-accent-ink);
  outline-offset: 2px;
}

.dwg-subcats__list {
  max-height: 60vh;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.dwg-subcats__list li + li {
  border-top: 1px solid #f0f0f0;
}

.dwg-subcats__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  color: var(--dwg-text-dark);
  text-decoration: none;
}

.dwg-subcats__link .material-icons {
  font-size: 1.125rem;
  color: var(--dwg-text-light);
}

.dwg-subcats__link:hover,
.dwg-subcats__link:active {
  color: var(--dwg-accent-ink);
  background-color: #f7f7f7;
}

.dwg-subcats__link:focus-visible {
  outline: 2px solid var(--dwg-accent-ink);
  outline-offset: -2px;
}

/* Im Wiederladeshop mit Bereichsakzent */
body.shopinshop .dwg-subcats {
  border-left: 4px solid var(--dwg-sis-accent);
}

/* ==========================================================================
   Hanz Group (Modul hanz_group, README 8)
   Gruppenblock über dem Footer, Footer-Zeile, „Social Media der Hanz Group“,
   Gruppenseite. Gleiche Struktur wie hanz-arms.at/gruppe/, Optik im dwg-Stil.
   Akzent nur für Flächen/Rahmen/Marker – als Schrift auf Dunkel wäre er < 4,5:1.
   ========================================================================== */
.footer__before {
  padding: 0;
}

.hanz-group {
  background-color: var(--dwg-primary);
  color: #ccc;
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hanz-group__head {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.hanz-group__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hanz-group__eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 2px;
  background-color: var(--dwg-accent);
}

.hanz-group__title {
  margin: 0 0 1rem;
  color: #fff;
  font-family: var(--dwg-font-heading);
  font-size: 1.75rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.hanz-group__title-logo {
  display: block;
  width: auto;
  height: 3.25rem;
  max-width: 100%;
}

.hanz-group__intro {
  margin: 0;
  color: #ccc;
  font-size: 1rem;
  line-height: 1.7;
}

.hanz-group__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 576px) {
  .hanz-group__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .hanz-group__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.hanz-group__item {
  display: flex;
}

/* Die ganze Kachel ist der Link */
.hanz-group .hanz-group__card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 44px;
  padding: 1.25rem 1.25rem 2.75rem;
  background-color: var(--dwg-primary-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid transparent;
  color: #ccc;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.hanz-group .hanz-group__card:hover {
  color: #ccc;
  border-color: var(--dwg-accent);
  background-color: var(--dwg-secondary);
}

.hanz-group .hanz-group__card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-color: var(--dwg-accent);
}

@media (prefers-reduced-motion: no-preference) {
  .hanz-group .hanz-group__card:hover {
    transform: translateY(-2px);
  }
}

/* Eigene Marke: Akzent als Rahmen oben + Kennzeichnung (nicht nur Farbe) */
.hanz-group .hanz-group__card--own {
  border-color: var(--dwg-accent);
  border-top-color: var(--dwg-accent);
}

.hanz-group__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 1.5rem;
  margin-bottom: 1rem;
}

.hanz-group__number {
  color: #b0b0b0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hanz-group__badge {
  padding: 0.125rem 0.5rem;
  background-color: var(--dwg-accent);
  color: var(--dwg-accent-contrast);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hanz-group__logo {
  display: flex;
  align-items: center;
  height: 3.5rem;
  margin-bottom: 1rem;
}

.hanz-group__logo img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

/* Text-Fallback, wenn kein Logo gepflegt ist */
.hanz-group__wordmark {
  color: #fff;
  font-family: var(--dwg-font-heading);
  font-size: 1.125rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.hanz-group__name {
  margin: 0 0 0.5rem;
  color: #fff;
  font-family: var(--dwg-font-body);
  font-size: 1rem;
  font-weight: 700;
}

.hanz-group__desc {
  margin: 0;
  color: #c0c0c0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.hanz-group__arrow {
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  color: #fff;
  font-size: 1.125rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.hanz-group .hanz-group__card:hover .hanz-group__arrow,
.hanz-group .hanz-group__card:focus-visible .hanz-group__arrow {
  transform: translate(2px, -2px);
}

@media (max-width: 767.98px) {
  .hanz-group {
    padding: 2.5rem 0;
  }
  .hanz-group__title {
    font-size: 1.375rem;
  }
  .hanz-group__title-logo {
    height: 2.75rem;
  }
}

/* Footer-Zeile „Ein Unternehmen der Hanz Group ↗“ */
.hanz-group-line {
  margin: -0.5rem 0 1.25rem;
  font-size: 0.8125rem;
}

.footer .hanz-group-line a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 44px;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--dwg-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer .hanz-group-line a:hover {
  text-decoration-color: #fff;
}

/* WhatsApp in der Kontaktliste (mit hanz_group statt Icon-Reihe) */
.footer__contact-svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex-shrink: 0;
}

/* „Social Media der Hanz Group“ */
.hanz-social {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hanz-social__groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 2rem;
}

@media (min-width: 768px) {
  .hanz-social__groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hanz-social__name {
  margin: 0 0 0.375rem;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}

.hanz-social__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer .hanz-social__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: #ccc;
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.footer .hanz-social__links a:hover {
  color: #fff;
}

.hanz-social__links svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}

.hanz-social__links .material-icons {
  font-size: 20px;
}

@media (max-width: 767.98px) {
  /* Kein Klapp-Titel wie bei den Linklisten – der Block ist immer offen */
  .footer .hanz-social__title {
    padding: 0 0 0.5rem;
    margin-bottom: 0.75rem;
  }
}

/* Gruppenseite (CMS „Ein Unternehmen der Hanz Group“) */
.hanz-group-page {
  margin-top: 2rem;
}

.hanz-group-page .hanz-group {
  padding: 2rem 1.5rem;
  border-bottom: 0;
}

.hanz-group-page .hanz-group > .container {
  max-width: none;
  padding: 0;
}

/* rich-text-Typografie der CMS-Seite im dunklen Block zurücksetzen */
.hanz-group-page .hanz-group__list,
.hanz-group-page .hanz-group-back__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hanz-group-page .hanz-group__item::before,
.hanz-group-page .hanz-group-back__list li::before {
  content: none;
}

.hanz-group-back {
  margin-top: 2.5rem;
}

.hanz-group-back__title {
  margin-bottom: 1rem;
  color: var(--dwg-text-dark);
  font-family: var(--dwg-font-heading);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.hanz-group-back__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hanz-group-back .hanz-group-back__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.125rem;
  border: 1px solid var(--dwg-border);
  background-color: var(--dwg-bg);
  color: var(--dwg-text-dark);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.hanz-group-back .hanz-group-back__link:hover {
  border-color: var(--dwg-accent);
  color: var(--dwg-accent-ink);
}

/* Öffnungszeiten in der Firmenspalte (hanz_group, Widget hanzGroupHours) */
.footer__hours {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
}

.footer__hours-title {
  margin: 0 0 0.5rem;
  color: #fff;
  font-family: var(--dwg-font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer__hours-list {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  max-width: 26rem;
}

.footer__hours-row {
  display: grid;
  grid-template-columns: minmax(9.5rem, auto) 1fr;
  gap: 0.25rem 1rem;
}

.footer__hours-row dt {
  color: #ccc;
  font-weight: 400;
}

.footer__hours-row dd {
  margin: 0;
  color: #fff;
}

/* Überschrift über den Partnerlogos – kein Klapp-Titel, mobil ohne Trennlinie */
.footer .footer__partners-title {
  margin: 1.5rem 0 0.75rem;
}

@media (max-width: 767.98px) {
  .footer .footer__partners-title {
    padding: 0;
    border-bottom: 0;
  }
}

/* ==========================================================================
   Artikelkacheln in Listen (Kategorie, Suche, Marke) – kompakt, Wunsch Christoph
   Spaltenzahl nach der Breite der Artikelliste (Container-Query), damit es mit und
   ohne Filterspalte passt: ab 640 px Listenbreite 3, ab 800 px 4 (Kategorie bei 1440 px,
   wie Live), ab 1100 px 5 (Suche ohne Filterspalte, große Bildschirme). Kachel niedriger:
   kleinere Schrift, Titel max. 2 Zeilen, Bruttopreis-/Versand- und Lagerzeile platzsparend,
   kleinerer Button (min. 36 px hoch). Handy-Raster (2 Spalten < 768 px) unverändert.
   ========================================================================== */
#js-product-list {
  container: dwg-product-list / inline-size;
}

@container dwg-product-list (min-width: 640px) {
  .products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .products > * {
    width: 100%;
    max-width: 100%;
    flex: none;
    margin: 0;
  }
}

@container dwg-product-list (min-width: 800px) {
  .products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@container dwg-product-list (min-width: 1100px) {
  .products {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  #js-product-list .product-miniature__bottom {
    padding: 0.5rem 0.75rem 0.75rem;
  }

  #js-product-list .product-miniature__manufacturer {
    margin-bottom: 0.125rem;
  }

  #js-product-list .product-miniature__manufacturer-link {
    font-size: 0.65rem;
  }

  /* Titel höchstens 2 Zeilen; der volle Name steht im aria-label des Links */
  #js-product-list .product-miniature__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.6em;
    margin-bottom: 0.25rem;
    font-size: 0.8125rem;
    line-height: 1.3;
  }

  #js-product-list .product-miniature__price {
    font-size: 0.9375rem;
  }

  #js-product-list .hzm-price-notice {
    justify-content: center;
    margin-top: 0.125rem;
    font-size: 0.6875rem;
    line-height: 1.3;
  }

  #js-product-list .product-miniature__availability {
    margin-top: 0.125rem;
    font-size: 0.6875rem;
  }

  #js-product-list .product-miniature__actions {
    padding-top: 0.375rem;
  }

  #js-product-list .product-miniature__add,
  #js-product-list .product-miniature__details {
    min-height: 36px;
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* ===== Kategorie-Langtext (additional_description, nur Seite 1) – Kategorie-SEO 17.10.2026 =====
   Lesbare Zeilenlänge, Überschriften im Text (H2/H3, nie H1), Tabellen mobil scrollbar. */
.category__additional-description {
  max-width: 75ch;
  margin-top: 2.5rem;
  color: var(--dwg-text-dark);
}

.category__additional-description h2 {
  font-size: 1.375rem;
  margin: 2rem 0 0.75rem;
}

.category__additional-description h3 {
  font-size: 1.125rem;
  margin: 1.5rem 0 0.5rem;
}

.category__additional-description table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
}

.category__additional-description th,
.category__additional-description td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--dwg-border);
  text-align: left;
  vertical-align: top;
}

.category__additional-description thead th {
  background: var(--dwg-bg-alt);
}

/* ===== Mobile Überbreite (17.10.2026) =====
   1. Sehr lange Wörter in Artikelnamen/Herstellern (z. B. „…Schreckschusspistole“) sprengten die
      Kachel und machten die Seite bei 375 px seitlich scrollbar (#products 384 px auf /3-waffen).
      Umbruch nur, wenn ein Wort nicht in die Zeile passt – normale Titel bleiben unverändert.
   2. Breadcrumb im Kategorie-Hero / Shop-in-Shop-Hero: Einträge sind „nowrap“ in einer
      nicht umbrechenden Zeile; bei tiefen Kategorien (z. B. /112-langwaffengeschosse, 406 px)
      lief sie über den Rand. Mobil darf sie jetzt in die nächste Zeile umbrechen.
   3. Hero-H1 mit sehr langen Kategorienamen mobil silbentrennen. */
.product-miniature,
.product-miniature__infos {
  min-width: 0;
}

.product-miniature__title,
.product-miniature__manufacturer-link {
  overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
  .category__hero .breadcrumb,
  .hanz-sis-hero .breadcrumb {
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }

  .category__hero .breadcrumb-item,
  .hanz-sis-hero .breadcrumb-item {
    white-space: normal;
  }

  /* 3. Lange Kategorienamen in der H1 (Großbuchstaben + Sperrung, z. B. „Langwaffengeschoße“)
        an Silbengrenzen trennen (html lang="de-DE"); Notbremse, falls keine Trennstelle passt. */
  .category__hero-title,
  .hanz-sis-hero__title {
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: anywhere;
  }
}

/* ==========================================================================
   Kundenkonto: „Bestellung übernommen“ und Hinweise (Modul hanz_checkout, README 22)
   ========================================================================== */
.hanz-status--handed-over {
  background-color: var(--dwg-secondary);
  color: #fff;
}

.hanz-account-hint {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 1rem;
  background: #f4f6f7;
  border-left: 3px solid var(--dwg-secondary);
  color: var(--dwg-text-dark);
}

.hanz-account-hint .material-icons {
  flex: 0 0 auto;
  font-size: 1.25rem;
  line-height: 1.4;
}

.hanz-order-withdrawal {
  margin: 1rem 0 0;
}

/* Footer niedriger (README 31): vier Linkspalten, darunter Partnerlogos und „Social Media“ nebeneinander
   (992–1199 px: 2 × 2 Linkspalten, Partner und Social untereinander – rechte Spalte dort nur ~560 px breit).
   Beide Hälften mit derselben Trennlinie oben, damit die Überschriften auf einer Höhe stehen. */
@media (min-width: 768px) {
  .footer__partners-col,
  .footer__social-col {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .footer .footer__partners-title {
    margin-top: 0;
  }
  .footer__social-col .hanz-social {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
}

/* Kontakt und Öffnungszeiten nebeneinander (README 31) – nur wo die Firmenspalte breit genug ist:
   768–991 px (volle Breite) und ab 1400 px (bei 1200–1399 px brächen sonst auch „Freitag (Sommerzeit)“ usw. um).
   Uhrzeiten brechen nur nach „und“ um (.footer__hours-time),
   die Wochentage stehen in einer gemeinsamen Spalte (Zeilen per display: contents im Raster der Liste). */
.footer__hours-time {
  white-space: nowrap;
}

@media (min-width: 768px) and (max-width: 991.98px), (min-width: 1400px) {
  .footer__contact-hours {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.25rem;
  }
  .footer__contact-hours .footer__contact-list,
  .footer__contact-hours .footer__hours {
    margin-bottom: 0;
  }
  .footer__contact-hours .footer__hours-list {
    /* Uhrzeiten-Spalte so schmal wie „09:00–13:00 und“, Wochentage in voller Länge */
    grid-template-columns: minmax(min-content, max-content) min-content;
    justify-content: start;
    gap: 0.25rem 0.75rem;
  }
  .footer__contact-hours .footer__hours-row {
    display: contents;
  }
}

/* ===== Artikelseite: Zustand, Waffenrecht, Auf einen Blick, Häufige Fragen (hanz_product, README 32) ===== */
.hanz-condition {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0.5rem 0 0;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--dwg-border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dwg-text-dark);
  background: var(--dwg-bg-alt);
}

.hanz-condition .material-icons {
  font-size: 1rem;
}

.hzm-price-notice__shipping--pickup {
  font-weight: 600;
}

.hanz-legal {
  display: flex;
  gap: 0.625rem;
  margin-top: 0.875rem;
  padding: 0.75rem 0.875rem;
  border-left: 3px solid var(--dwg-accent-ink);
  background: #f5f8fa;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.hanz-legal__icon {
  font-size: 1.25rem;
  color: var(--dwg-accent-ink);
  flex: none;
}

.hanz-legal__title {
  display: block;
  color: var(--dwg-text-dark);
  font-size: 0.875rem;
}

.hanz-legal__text {
  margin: 0.125rem 0 0;
  color: var(--dwg-text);
}

.hanz-summary {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--dwg-border);
  background: #fafafa;
}

.hanz-summary__title,
.hanz-faq__title {
  font-family: var(--dwg-font-heading);
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dwg-text-dark);
  margin: 0 0 0.5rem;
}

.hanz-summary__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--dwg-text-dark);
}

.hanz-faq__item {
  border-bottom: 1px solid var(--dwg-border);
}

.hanz-faq__item:first-of-type {
  border-top: 1px solid var(--dwg-border);
}

.hanz-faq__question {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--dwg-text-dark);
  cursor: pointer;
  list-style: none;
}

.hanz-faq__question::-webkit-details-marker {
  display: none;
}

.hanz-faq__question::after {
  content: '+';
  flex: none;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--dwg-accent-ink);
}

.hanz-faq__item[open] .hanz-faq__question::after {
  content: '–';
}

.hanz-faq__question:focus-visible {
  outline: 2px solid var(--dwg-accent-ink);
  outline-offset: 2px;
}

.hanz-faq__answer {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--dwg-text);
}

.product__tabs--single > .nav-tabs {
  display: none;
}

.product__tabs--single .tab-content {
  padding-top: 0;
}

/* Filter am Handy: fixierte Schaltfläche „X Artikel anzeigen“ (README 32) */
.hanz-facet-footer {
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--dwg-border);
  background: var(--dwg-bg);
}

.hanz-facet-footer .btn {
  min-height: 48px;
  font-weight: 600;
}

/* Filteroptionen am Handy mit 44 px hoher Tippfläche (WCAG 2.5.8) */
#offcanvas-faceted .search-filters__item {
  min-height: 44px;
  display: flex;
  align-items: center;
}

#offcanvas-faceted .search-filters__item .form-check {
  width: 100%;
  margin: 0;
}

#offcanvas-faceted .search-filters__item .form-check-label,
#offcanvas-faceted .search-filters__item a {
  display: block;
  padding: 0.625rem 0;
}

/* Streichpreis-Hinweis nach § 9a PrAG (README 32) */
.product-miniature__prior-label,
.product__prior-label {
  font-size: 0.6875rem;
  color: var(--dwg-text-light);
  line-height: 1.2;
}

.product-miniature__prior-label {
  display: block;
  width: 100%;
}

.product__prior-label {
  font-size: 0.8125rem;
}

/* Artikelseite unten einspaltig: rechte Spalte (Vertrauens-Box) entfällt (README 32) */
.page-product .product__bottom {
  grid-template-columns: minmax(0, 1fr);
}

.page-product .product__bottom-right {
  display: none;
}

/* Artikelbeschreibung (Artikeltexte 31.10.2026): Datentabellen mit Zeilenüberschriften,
   am Handy scrollt eine zu breite Tabelle in sich statt die Seite zu verschieben */
.product__description table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
}

.product__description th,
.product__description td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--dwg-border);
  text-align: left;
  vertical-align: top;
}

.product__description thead th,
.product__description th[scope="row"] {
  background: var(--dwg-bg-alt);
}

.product__description th[scope="row"] {
  width: 38%;
}

@media (max-width: 575.98px) {
  .product__description table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}

/* Lange Fachwörter („Mündungsgewinde“, „Magazinkapazität“) in Zeilenüberschriften trennen statt die Tabelle
   am Handy zu verbreitern; Seite ist lang="de-DE", daher deutsche Silbentrennung */
.product__description th,
.product__description td {
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: anywhere; /* senkt die Mindestbreite; bricht nur, wenn ein Wort sonst nicht passt */
}

@media (max-width: 575.98px) {
  .product__description th,
  .product__description td {
    padding: 0.5rem 0.5rem;
  }
}

/* Markenübersicht: Suche, Sprungleiste A–Z, Kacheln kompakt, am Handy zwei Spalten (README 27) */
.hanz-brands__search {
  position: relative;
  max-width: 28rem;
  margin-bottom: 0.5rem;
}
.hanz-brands__search .material-icons {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
}
.hanz-brands__search input {
  min-height: 44px;
  padding-left: 2.75rem;
  font-size: 1rem;
}
.hanz-brands__count {
  margin-bottom: 0.5rem;
  color: #6c757d;
  font-size: 0.875rem;
}
.hanz-brands__letters {
  position: sticky;
  top: var(--hanz-header-height, 0px);
  z-index: 5;
  display: flex;
  gap: 0.25rem;
  margin: 0 -0.75rem 0.5rem;
  padding: 0.5rem 0.75rem;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hanz-brands__letters::-webkit-scrollbar {
  display: none;
}
.hanz-brands__letter-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
}
.hanz-brands__letter-link:hover,
.hanz-brands__letter-link[aria-current="true"] {
  color: var(--dwg-accent-contrast, #fff);
  background: var(--dwg-accent, #147EB3);
}
.hanz-brands__group {
  scroll-margin-top: calc(var(--hanz-header-height, 0px) + 3.75rem);
  margin-bottom: 1.25rem;
}
.hanz-brands__heading {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.hanz-brands .brand__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hanz-brands .brand {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0.625rem;
  text-align: center;
}
.hanz-brands .brand[hidden] {
  display: none;
}
.hanz-brands .brand__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  margin-bottom: 0.375rem;
}
.hanz-brands .brand__image picture {
  display: contents;
}
.hanz-brands .brand__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.brand__initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: #6c757d;
  background: #f1f3f5;
  font-size: 1.125rem;
  font-weight: 600;
}
.hanz-brands .brand__infos {
  margin-bottom: 0.125rem;
}
.hanz-brands .brand__products {
  margin: auto 0 0;
  color: #6c757d;
  font-size: 0.8125rem;
}
.hanz-brands__empty {
  padding: 2rem 0;
  text-align: center;
}
@media (min-width: 576px) {
  .hanz-brands .brand__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .hanz-brands .brand__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hanz-brands__letters { flex-wrap: wrap; gap: 0.125rem; margin-right: 0; margin-left: 0; padding-right: 0; padding-left: 0; }
  .hanz-brands__letter-link { min-width: 1.875rem; }
}
@media (min-width: 1200px) {
  .hanz-brands .brand__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
