/* ==========================================================================
   A+ Hausgeräte – WooCommerce Shop-Skin (portabel)
   --------------------------------------------------------------------------
   Zielt auf die Blocksy/WooCommerce-Selektoren (ul.products, li.product,
   .woocommerce-ordering, .ct-pagination). Lädt auf allen Seiten, weil auch die Startseite
   Produktkarten zeigt (Klasse body.aplus-cards, siehe functions.php).
   ========================================================================== */

/* Farben und Maße des Shop-Skins; werden auch von woo-product.css und woo-cart.css benutzt */
:root {
  --s-ink: #0f1513;
  --s-steel: #18211e;
  --s-green: #019c7c;
  --s-deep: #017a62;
  --s-mint: #22e0b4;
  --s-paper: #f3f5f4;
  --s-line: #e4e9e7;
  --s-text: #1b2320;
  --s-muted: #55645e;
  --s-amber: #ffb43a;
  --s-hex-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M0 16.2 28 0 56 16.2M0 16.2v32.3M56 16.2v32.3M0 48.5 28 64.7 56 48.5M28 64.7V97' fill='none' stroke='%23ffffff' stroke-opacity='.07'/%3E%3C/svg%3E");
  --s-ease: cubic-bezier(.2, .8, .2, 1);
  --s-icon-bag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
  --s-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   1. Einleitung (H1, Brotkrumen, Lead)
   -------------------------------------------------------------------------- */
.ah-intro {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background: var(--s-ink); padding: clamp(40px, 5vw, 72px) 0 clamp(34px, 4.4vw, 60px);
}
.ah-intro--bleed { width: 100%; margin-inline: 0; }
.ah-intro::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--intro-img, none) 50% 45% / cover no-repeat; opacity: .6;
}
.ah-intro::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 12, 11, .94) 0%, rgba(8, 12, 11, .66) 58%, rgba(8, 12, 11, .3) 100%),
    var(--s-hex-dark);
}
.ah-intro__in { width: min(100% - 40px, 1280px); margin-inline: auto; }
.ah-intro .woocommerce-breadcrumb, .ah-intro .ct-breadcrumbs {
  margin: 0 0 1rem; font-size: .88rem; color: rgba(255, 255, 255, .72);
}
.ah-intro .woocommerce-breadcrumb a, .ah-intro .ct-breadcrumbs a { color: inherit; text-decoration: none; }
.ah-intro .woocommerce-breadcrumb a:hover { color: var(--s-mint); }
.ah-intro h1 {
  margin: 0; max-width: 18ch; color: #fff;
  font-size: clamp(2rem, 4.8vw, 3.8rem); font-stretch: 122%; font-weight: 800; line-height: 1.02; letter-spacing: -.02em; text-wrap: balance;
}
.ah-intro__lead { margin: 1.1rem 0 0; max-width: 54ch; font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.55; color: rgba(255, 255, 255, .9); }
.ah-intro__chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.ah-intro__chips li, .ah-intro__chips a {
  display: inline-flex; align-items: center; gap: .6em; padding: .55em 1em; font-size: .92rem; font-weight: 500; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); text-decoration: none;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ah-intro__chips a:hover { background: rgba(255, 255, 255, .2); }
.ah-intro__chips .status::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--s-amber); }
.ah-intro__chips .status.is-open::before { background: var(--s-mint); }
/* Blocksys leere Titelzeile (nur Brotkrumen) auf der Shop-Seite ausblenden, die Einleitung ersetzt sie */
body.woocommerce-shop .hero-section { display: none; }

/* --------------------------------------------------------------------------
   2. Vorteile + Kategorie-Kacheln
   -------------------------------------------------------------------------- */
.ah-benefits {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 26px; padding: 0; list-style: none; background: #fff;
}
.ah-benefits li { display: flex; align-items: center; gap: .85rem; padding: 16px 18px; border-left: 1px solid var(--s-line); }
.ah-benefits li:first-child { border-left: 0; }
.ah-benefits strong { display: block; font-size: .95rem; line-height: 1.25; color: var(--s-ink); }
.ah-benefits div > span { display: block; font-size: .82rem; line-height: 1.35; color: var(--s-muted); }
.ah-hex {
  display: grid; place-items: center; flex: none; width: 40px; height: 44px; background: var(--s-deep); color: #fff;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.ah-hex svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.ah-cats {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); gap: 12px; margin: 0 0 30px;
  overflow-x: auto; scroll-snap-type: x proximity; padding: 0 0 8px; scrollbar-width: thin;
}
.ah-cat { display: grid; gap: .55rem; align-content: start; color: var(--s-ink); font-size: .92rem; font-weight: 700; line-height: 1.2; text-decoration: none; scroll-snap-align: start; }
.ah-cat__img, .ah-cat__ph {
  display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #fff;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.ah-cat__img img { width: 100%; height: 100%; padding: 8%; object-fit: contain; transition: transform .9s var(--s-ease); }
.ah-cat__ph { display: grid; place-items: center; background: var(--s-deep); color: #fff; }
.ah-cat__ph svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ah-cat:hover img, .ah-cat:focus-visible img { transform: scale(1.09); }
.ah-cat:hover .ah-cat__name, .ah-cat:focus-visible .ah-cat__name { color: var(--s-deep); }
.ah-cat.is-active .ah-cat__name { color: var(--s-deep); box-shadow: 0 2px 0 var(--s-green); }
.ah-cat__name { display: inline-block; justify-self: start; min-width: 0; transition: color .2s; }
/* auf breiten Bildschirmen passen alle sieben Kacheln nebeneinander, darunter wird gescrollt */
@media (min-width: 1300px) {
  .ah-cats { grid-auto-flow: row; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; padding-bottom: 0; }
  .ah-cat__name { font-size: .85rem; }
}

/* --------------------------------------------------------------------------
   3. Werkzeugleiste: Trefferzahl, Aktive Filter, Sortierung, Ansicht
   -------------------------------------------------------------------------- */
body.woocommerce .woo-listing-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  margin: 0 0 18px; padding: 0 0 16px; border-bottom: 2px solid var(--s-line);
}
body.woocommerce .woocommerce-result-count { margin: 0; font-size: .95rem; color: var(--s-muted); }
body.woocommerce .woo-listing-top .woocommerce-ordering { margin: 0; position: relative; display: flex; align-items: center; gap: 10px; }
body.woocommerce select.orderby {
  appearance: none; -webkit-appearance: none; min-height: 46px; margin: 0; padding: .6em 2.8em .6em 1em; cursor: pointer;
  font: inherit; font-size: .95rem; font-weight: 600; color: var(--s-ink); background-color: #fff;
  border: 2px solid var(--s-line); border-radius: 0; transition: border-color .2s, box-shadow .2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23017a62' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8em center;
}
body.woocommerce select.orderby:hover { border-color: #c4cdc9; }
body.woocommerce select.orderby:focus { outline: none; border-color: var(--s-green); box-shadow: 0 0 0 3px rgba(1, 156, 124, .2); }
body.woocommerce .woocommerce-ordering .ct-sort-icon { display: none; }

.ah-view { display: inline-flex; border: 2px solid var(--s-line); background: #fff; }
.ah-view button {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; background: transparent; color: var(--s-muted); cursor: pointer; transition: background-color .2s, color .2s;
}
.ah-view button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ah-view button:hover { color: var(--s-ink); }
.ah-view button[aria-pressed="true"] { background: var(--s-ink); color: #fff; }

.ah-activebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
.ah-activebar[hidden] { display: none; }
.ah-chip {
  display: inline-flex; align-items: center; gap: .55em; padding: .45em .5em .45em .9em; font: inherit; font-size: .86rem; font-weight: 600; line-height: 1.2;
  color: var(--s-ink); background: #fff; border: 2px solid var(--s-ink); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s;
}
.ah-chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; flex: none; }
.ah-chip:hover { background: var(--s-ink); color: #fff; }
.ah-chip--reset { border-color: transparent; background: transparent; color: var(--s-deep); text-decoration: underline; padding-inline: .6em; }
.ah-chip--reset:hover { background: transparent; color: var(--s-ink); }

/* --------------------------------------------------------------------------
   4. Produktkarten
   -------------------------------------------------------------------------- */
body:is(.woocommerce, .aplus-cards) ul.products {
  display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr)); gap: 20px;
  margin: 0 0 8px; padding: 0; list-style: none;
}
body:is(.woocommerce, .aplus-cards) ul.products li.product {
  --cut: 28px;
  position: relative; display: grid; align-content: start; width: auto; min-width: 0; margin: 0; padding: 0 18px 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto auto auto auto 1fr;
  grid-template-areas: "fig fig" "title title" "price energy" "saving energy" "info info" "stock stock" "actions actions";
  background: #fff; color: var(--s-text); text-align: left;
  border: 0; border-radius: 0; box-shadow: none; overflow: visible;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: transform .4s var(--s-ease);
}
body:is(.woocommerce, .aplus-cards) ul.products li.product:hover { border: 0; box-shadow: none; transform: translateY(-5px); }
body:is(.woocommerce, .aplus-cards) ul.products li.product::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--s-green);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--s-ease);
}
body:is(.woocommerce, .aplus-cards) ul.products li.product:hover::after, body:is(.woocommerce, .aplus-cards) ul.products li.product:focus-within::after { transform: scaleX(1); }

/* Bild */
body:is(.woocommerce, .aplus-cards) ul.products li.product > figure {
  grid-area: fig; position: relative; margin: 0 -18px 14px; background: #fff; overflow: hidden;
}
body:is(.woocommerce, .aplus-cards) ul.products li.product .ct-media-container { display: block; padding: 18px 20px 4px; background: #fff; overflow: hidden; }
body:is(.woocommerce, .aplus-cards) ul.products li.product img.wp-post-image {
  display: block; width: 100% !important; height: auto !important; aspect-ratio: 1 / 1 !important;
  object-fit: contain !important; object-position: center !important; transition: transform .8s var(--s-ease);
}
body:is(.woocommerce, .aplus-cards) ul.products li.product:hover img.wp-post-image { transform: scale(1.05); }

/* Rabatt-Plakette */
body:is(.woocommerce, .aplus-cards) ul.products li.product .onsale {
  position: absolute; z-index: 3; top: 16px; left: 0; right: auto; min-width: 0; min-height: 0; margin: 0; padding: .5em 1em .5em .9em;
  font-size: .8rem; font-weight: 800; line-height: 1; letter-spacing: 0; text-transform: none; color: var(--s-ink); background: var(--s-amber);
  border: 0; border-radius: 0; clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%);
  padding-right: 1.5em;
}

/* Titel */
body:is(.woocommerce, .aplus-cards) ul.products li.product .woocommerce-loop-product__title {
  grid-area: title; margin: 0 0 .75rem; font-size: 1rem; font-weight: 700; line-height: 1.32; letter-spacing: 0; color: var(--s-ink);
  display: -webkit-box !important; -webkit-box-orient: vertical !important; -webkit-line-clamp: 3 !important; overflow: hidden !important;
  min-height: calc(1.32em * 3) !important;
}
body:is(.woocommerce, .aplus-cards) ul.products li.product .woocommerce-loop-product__title a { color: inherit; text-decoration: none; display: block !important; -webkit-line-clamp: unset !important; overflow: visible !important; }
body:is(.woocommerce, .aplus-cards) ul.products li.product .woocommerce-loop-product__title a:hover { color: var(--s-deep); }
/* ganze Karte klickbar */
body:is(.woocommerce, .aplus-cards) ul.products li.product .woocommerce-loop-product__title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Preis */
body:is(.woocommerce, .aplus-cards) ul.products li.product .price {
  grid-area: price; display: block; margin: 0; font-size: 1rem; font-weight: 800; line-height: 1.05; color: var(--s-ink);
}
body:is(.woocommerce, .aplus-cards) ul.products li.product .price .sale-price { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: .25rem; }
body:is(.woocommerce, .aplus-cards) ul.products li.product .price ins { text-decoration: none; background: none; font-size: 1.7rem; letter-spacing: -.015em; color: var(--s-ink); }
body:is(.woocommerce, .aplus-cards) ul.products li.product .price ins .amount, body:is(.woocommerce, .aplus-cards) ul.products li.product .price > .amount { font-size: 1.7rem; letter-spacing: -.015em; }
body:is(.woocommerce, .aplus-cards) ul.products li.product .price del { font-size: .9rem; font-weight: 500; color: var(--s-muted); opacity: 1; }
.ah-saving {
  grid-area: saving; display: flex; align-items: center; gap: .5em; margin: .5rem 0 0 !important; font-size: .86rem; font-weight: 700; line-height: 1.2; color: var(--s-deep);
}
.ah-saving::before {
  content: ""; width: .62em; height: .7em; background: var(--s-green); flex: none;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* Energielabel (Inline-Stile des vorhandenen Snippets werden überschrieben) */
body:is(.woocommerce, .aplus-cards) ul.products li.product .ah-energy-badge {
  grid-area: energy; margin: 0 !important; align-self: start !important; justify-content: flex-end !important; max-width: none !important;
}
body:is(.woocommerce, .aplus-cards) ul.products li.product .ah-energy-badge > a { display: block; transition: transform .3s var(--s-ease); }
body:is(.woocommerce, .aplus-cards) ul.products li.product .ah-energy-badge > a:hover { transform: scale(1.08); }
body:is(.woocommerce, .aplus-cards) ul.products li.product .ah-energy-badge span { width: 56px !important; }

/* Preis-Hinweis, Lagerstatus */
body:is(.woocommerce, .aplus-cards) ul.products li.product .ah-price-info { grid-area: info; margin: .7rem 0 0; font-size: .76rem; line-height: 1.4; color: var(--s-muted); }
body:is(.woocommerce, .aplus-cards) ul.products li.product .ah-price-info a { position: relative; z-index: 2; color: inherit; text-decoration: underline; }
body:is(.woocommerce, .aplus-cards) ul.products li.product .ah-price-info a:hover { color: var(--s-deep); }
.ah-stock {
  grid-area: stock; display: flex; align-items: center; gap: .55em; margin: .55rem 0 0 !important; font-size: .82rem; font-weight: 700; line-height: 1.2; color: var(--s-deep);
}
.ah-stock::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--s-green); flex: none; }
body:is(.woocommerce, .aplus-cards) ul.products li.product .ct-woo-card-stock:empty { display: none; }

/* In den Warenkorb – immer sichtbar (Blocksys „auto-hide“ verbirgt den Button sonst bis zum Hover) */
body:is(.woocommerce, .aplus-cards) ul.products li.product .ct-woo-card-actions {
  grid-area: actions; align-self: end; position: relative; z-index: 2; margin: 16px 0 0 !important; padding: 0;
  opacity: 1 !important; visibility: visible !important; transform: none !important; height: auto !important; max-height: none !important; display: block !important;
}
body:is(.woocommerce, .aplus-cards) ul.products li.product .button.add_to_cart_button,
body:is(.woocommerce, .aplus-cards) ul.products li.product .button.product_type_variable,
body:is(.woocommerce, .aplus-cards) ul.products li.product .button.product_type_grouped {
  display: flex; align-items: center; justify-content: center; gap: .6em; width: 100%; min-height: 50px; margin: 0; padding: .8em 1em;
  font-size: .98rem; font-weight: 700; line-height: 1.1; color: #fff; background: var(--s-deep); border: 0; border-radius: 0; box-shadow: none; text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s;
}
body:is(.woocommerce, .aplus-cards) ul.products li.product .button.add_to_cart_button::before {
  content: ""; width: 1.2em; height: 1.2em; background: currentColor; flex: none;
  -webkit-mask: var(--s-icon-bag) center / contain no-repeat; mask: var(--s-icon-bag) center / contain no-repeat;
}
body:is(.woocommerce, .aplus-cards) ul.products li.product .button:hover, body:is(.woocommerce, .aplus-cards) ul.products li.product .button:focus-visible { background: var(--s-mint); color: var(--s-ink); }
body:is(.woocommerce, .aplus-cards) ul.products li.product .button.loading { opacity: .75; pointer-events: none; }
body:is(.woocommerce, .aplus-cards) ul.products li.product .button.loading::before { animation: ah-spin .7s linear infinite; -webkit-mask: none; mask: none; background: none; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }
body:is(.woocommerce, .aplus-cards) ul.products li.product .button.loading::after, body:is(.woocommerce, .aplus-cards) ul.products li.product .button.added::after { display: none; }
body:is(.woocommerce, .aplus-cards) ul.products li.product .button.added { background: var(--s-ink); color: #fff; }
body:is(.woocommerce, .aplus-cards) ul.products li.product .button.added::before { -webkit-mask-image: var(--s-icon-check); mask-image: var(--s-icon-check); }
body:is(.woocommerce, .aplus-cards) ul.products li.product a.added_to_cart {
  display: block; margin: 10px 0 0; font-size: .92rem; font-weight: 700; text-align: center; color: var(--s-deep); text-decoration: underline; text-underline-offset: 3px;
}
body:is(.woocommerce, .aplus-cards) ul.products li.product a.added_to_cart:hover { color: var(--s-ink); }
@keyframes ah-spin { to { transform: rotate(360deg); } }

/* Listenansicht (nur ab 700 px; per .ah-view umschaltbar) */
@media (min-width: 700px) {
  body:is(.woocommerce, .aplus-cards) ul.products[data-view="list"] { grid-template-columns: 1fr !important; gap: 14px; }
  body:is(.woocommerce, .aplus-cards) ul.products[data-view="list"] li.product {
    --cut: 24px; padding: 18px 20px 18px 0; column-gap: 24px;
    grid-template-columns: 190px minmax(0, 1fr) auto 230px;
    grid-template-rows: auto auto auto auto auto;
    grid-template-areas:
      "fig title energy actions"
      "fig price energy actions"
      "fig saving energy actions"
      "fig info energy actions"
      "fig stock energy actions";
    align-items: start;
  }
  body:is(.woocommerce, .aplus-cards) ul.products[data-view="list"] li.product > figure { margin: -18px 0 -18px; align-self: stretch; }
  body:is(.woocommerce, .aplus-cards) ul.products[data-view="list"] li.product .ct-media-container { height: 100%; display: grid; align-items: center; padding: 14px; }
  body:is(.woocommerce, .aplus-cards) ul.products[data-view="list"] li.product .woocommerce-loop-product__title { min-height: 0 !important; font-size: 1.1rem; -webkit-line-clamp: 2 !important; }
  body:is(.woocommerce, .aplus-cards) ul.products[data-view="list"] li.product .ct-woo-card-actions { align-self: center; margin: 0 !important; grid-row: 1 / -1; }
  body:is(.woocommerce, .aplus-cards) ul.products[data-view="list"] li.product .ah-energy-badge { justify-content: center !important; }
  body:is(.woocommerce, .aplus-cards) ul.products[data-view="list"] li.product .onsale { top: 14px; }
}

/* Leer-Zustand und Hinweise */
body.woocommerce .woocommerce-info, body.woocommerce .woocommerce-no-products-found {
  margin: 0 0 20px; padding: 28px; font-size: 1.05rem; color: var(--s-ink); background: #fff; border: 0; border-left: 4px solid var(--s-green); border-radius: 0;
}
body.woocommerce .woocommerce-info::before { display: none; }
.ah-empty { display: grid; gap: 14px; justify-items: start; }
.ah-empty strong { font-size: 1.25rem; font-stretch: 112%; }
.ah-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: .85em 1.4em; font: inherit; font-weight: 700; line-height: 1.1;
  color: #fff; background: var(--s-deep); border: 2px solid transparent; border-radius: 0; text-decoration: none; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s;
}
.ah-btn:hover { background: var(--s-mint); color: var(--s-ink); }
.ah-btn--ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .55); }
.ah-btn--ghost:hover { background: #fff; color: var(--s-ink); border-color: #fff; }
.ah-btn--outline { color: var(--s-ink); background: transparent; border-color: var(--s-ink); }
.ah-btn--outline:hover { background: var(--s-ink); color: #fff; }

/* --------------------------------------------------------------------------
   5. Seitennavigation
   -------------------------------------------------------------------------- */
body.woocommerce .ct-pagination { display: flex; justify-content: center; gap: 8px; margin: 34px 0 0; }
body.woocommerce .ct-pagination > div { display: flex; flex-wrap: wrap; gap: 8px; }
body.woocommerce .ct-pagination .page-numbers {
  display: inline-grid; place-items: center; grid-auto-flow: column; gap: .5em; min-width: 46px; height: 46px; padding: 0 .9em;
  font-weight: 700; color: var(--s-ink); background: #fff; border: 2px solid var(--s-line); border-radius: 0; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s;
}
body.woocommerce .ct-pagination a.page-numbers:hover { border-color: var(--s-green); color: var(--s-deep); }
body.woocommerce .ct-pagination .page-numbers.current { color: #fff; background: var(--s-ink); border-color: var(--s-ink); }
body.woocommerce .ct-pagination .page-numbers.dots { border-color: transparent; background: transparent; }
body.woocommerce .ct-pagination .next { background: var(--s-deep); border-color: var(--s-deep); color: #fff; }
body.woocommerce .ct-pagination .next:hover { background: var(--s-mint); border-color: var(--s-mint); color: var(--s-ink); }

/* --------------------------------------------------------------------------
   7. Beratung + Textblock unter der Liste
   -------------------------------------------------------------------------- */
.ah-help {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 1.15fr .85fr; gap: 0; margin: 44px 0 0; color: #fff;
  background: var(--s-ink) var(--s-hex-dark);
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
}
.ah-help__text { display: grid; gap: 1rem; align-content: center; justify-items: start; padding: clamp(26px, 4vw, 52px); }
.ah-help h2 { margin: 0; color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-stretch: 118%; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.ah-help p { margin: 0; max-width: 46ch; color: rgba(255, 255, 255, .86); }
.ah-help__btns { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .4rem; }
.ah-help__img { position: relative; min-height: 240px; }
.ah-help__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ah-help__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--s-ink) 0%, rgba(15, 21, 19, 0) 40%); }

.ah-seo { margin: 44px 0 0; padding: clamp(24px, 3.5vw, 44px); background: #fff; }
.ah-seo h2 { margin: 0 0 .8rem; color: var(--s-ink); font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-stretch: 112%; font-weight: 800; line-height: 1.15; }
.ah-seo p { margin: 0 0 1em; max-width: 70ch; color: var(--s-muted); line-height: 1.65; }
.ah-seo p:last-child { margin-bottom: 0; }
.ah-seo a { color: var(--s-deep); font-weight: 700; }

/* --------------------------------------------------------------------------
   8. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .ah-benefits { grid-template-columns: 1fr 1fr; }
  .ah-benefits li:nth-child(3) { border-left: 0; }
  .ah-benefits li:nth-child(n+3) { border-top: 1px solid var(--s-line); }
}
@media (max-width: 760px) {
  .ah-help { grid-template-columns: 1fr; }
  .ah-help__img { min-height: 200px; order: -1; }
  .ah-help__img::after { background: linear-gradient(0deg, var(--s-ink) 0%, rgba(15, 21, 19, 0) 50%); }
}
@media (max-width: 599px) {
  body:is(.woocommerce, .aplus-cards) ul.products { grid-template-columns: 1fr 1fr; gap: 12px; }
  body:is(.woocommerce, .aplus-cards) ul.products li.product { --cut: 20px; padding: 0 12px 14px; }
  body:is(.woocommerce, .aplus-cards) ul.products li.product > figure { margin-inline: -12px; }
  body:is(.woocommerce, .aplus-cards) ul.products li.product .ct-media-container { padding: 12px 12px 2px; }
  body:is(.woocommerce, .aplus-cards) ul.products li.product .woocommerce-loop-product__title { font-size: .88rem; }
  body:is(.woocommerce, .aplus-cards) ul.products li.product .price ins, body:is(.woocommerce, .aplus-cards) ul.products li.product .price ins .amount, body:is(.woocommerce, .aplus-cards) ul.products li.product .price > .amount { font-size: 1.28rem; }
  body:is(.woocommerce, .aplus-cards) ul.products li.product .ah-energy-badge span { width: 44px !important; }
  body:is(.woocommerce, .aplus-cards) ul.products li.product .onsale { font-size: .72rem; top: 10px; }
  body:is(.woocommerce, .aplus-cards) ul.products li.product .button.add_to_cart_button { min-height: 46px; font-size: .88rem; padding-inline: .5em; }
  .ah-benefits { grid-template-columns: 1fr 1fr; margin-bottom: 18px; }
  .ah-benefits li { padding: 12px; gap: .6rem; }
  .ah-benefits li:nth-child(odd) { border-left: 0; }
  .ah-benefits li:nth-child(even) { border-left: 1px solid var(--s-line); }
  .ah-benefits li:nth-child(n+3) { border-top: 1px solid var(--s-line); }
  .ah-benefits strong { font-size: .84rem; }
  .ah-benefits div > span { display: none; }
  .ah-hex { width: 32px; height: 36px; }
  .ah-hex svg { width: 16px; height: 16px; }
  .ah-view { display: none; }
  body.woocommerce .woo-listing-top { gap: 10px; }
  body.woocommerce .woo-listing-top .woocommerce-ordering { width: 100%; }
  body.woocommerce select.orderby { width: 100%; }
}

/* [hidden] muss gegen die display-Regeln oben gewinnen */
body:is(.woocommerce, .aplus-cards) ul.products[hidden],
body:is(.woocommerce, .aplus-cards) ul.products li.product[hidden],
body.woocommerce .ct-pagination[hidden],
body.woocommerce .woocommerce-result-count[hidden] { display: none !important; }


@media (prefers-reduced-motion: reduce) {
  body:is(.woocommerce, .aplus-cards) ul.products li.product, body:is(.woocommerce, .aplus-cards) ul.products li.product *, .ah-cat__img img { transition: none !important; }
}


/* --------------------------------------------------------------------------
   Shop-Archiv: Seitenleiste links (292 px), Raster daneben, Karten-Look der Filter
   -------------------------------------------------------------------------- */
body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag, .post-type-archive-product) main > .ct-container[data-sidebar] {
  display: grid !important; grid-template-columns: 292px minmax(0, 1fr) !important; column-gap: clamp(24px, 3vw, 40px) !important; align-items: start;
  width: min(100% - 2 * var(--ap-gutter), 1480px); max-width: none; margin-inline: auto;
  padding-block: clamp(28px, 4vw, 52px) clamp(56px, 8vw, 110px) !important;
}
body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag, .post-type-archive-product) main > .ct-container[data-sidebar] > aside {
  position: sticky; top: 100px; width: auto; max-height: calc(100svh - 116px); overflow-y: auto; scrollbar-width: thin; padding: 0 2px 0 0;
}
@media (max-width: 999px) {
  body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag, .post-type-archive-product) main > .ct-container[data-sidebar] { grid-template-columns: minmax(0, 1fr) !important; }
  body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag, .post-type-archive-product) main > .ct-container[data-sidebar] > aside { display: none; }
}
.ct-sidebar .ct-widget { margin: 0 0 16px; padding: 0; background: #fff; border: 1px solid #eaeaec; border-radius: 12px; overflow: hidden; color: #111518; font-size: 13.5px; }
.ct-sidebar .ct-widget > .wp-block-heading { margin: 0; padding: 16px 18px; font-size: 15px; font-weight: 700; letter-spacing: .01em; line-height: 1.6; color: #111518; border-bottom: 1px solid #eaeaec; }
.ct-sidebar .ct-widget > :not(.wp-block-heading) { margin: 0; padding: 12px 12px 14px; }
.ct-sidebar ul { list-style: none; margin: 0; padding: 0; }
.ct-sidebar .wc-block-product-categories-list-item { margin: 1px 2px; padding: 0; border-radius: 7px; }
.ct-sidebar .wc-block-product-categories-list-item > a { display: inline-block; padding: 6px 6px 6px 8px; font-size: 13.5px; color: #111518; text-decoration: none; }
.ct-sidebar .wc-block-product-categories-list-item:hover { background: #f4f4f5; }
.ct-sidebar .wc-block-product-categories-list-item-count { font-size: 11.5px; color: #868c90; border: 0; padding: 0; margin-left: 6px; font-variant-numeric: tabular-nums; }
.ct-sidebar .wc-block-product-categories-list--depth-1 { padding-left: 20px; }
.ct-sidebar .wc-block-components-price-slider__range-input-progress { --range-color: var(--ap-green, #019c7c); }
.ct-sidebar .wc-block-components-price-slider .wc-block-components-price-slider__range-input-progress { color: var(--ap-green, #019c7c); }
.ct-sidebar .wc-block-components-checkbox .wc-block-components-checkbox__input:checked { background: var(--ap-green, #019c7c); border-color: var(--ap-green, #019c7c); }
.ct-sidebar .wc-block-components-checkbox__label, .ct-sidebar .wc-block-components-product-filter-checkbox-list__text { font-size: 13.5px; }
.ct-sidebar .ah-trust > ul { padding: 6px 0; }
.ct-sidebar .ah-trust li { display: flex; align-items: center; gap: .75rem; padding: 10px 18px; }
.ct-sidebar .ah-trust li + li { border-top: 1px solid #eaeaec; }
.ct-sidebar .ah-trust strong { display: block; font-size: 13.5px; line-height: 1.3; color: #111518; }
.ct-sidebar .ah-trust li > div > span { display: block; font-size: 12px; line-height: 1.35; color: #868c90; }
.ct-sidebar .ah-trust .ah-hex { width: 32px; height: 36px; flex: none; }
.ct-sidebar .ah-trust .ah-hex svg { width: 16px; height: 16px; }
.ah-intro__chips.ap-chips { margin-top: 1.6rem; }
.ah-help__btns .ah-btn::before { content: ""; width: 1.15em; height: 1.15em; background: currentColor; flex: none; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.ah-help__btns .ah-btn { display: inline-flex; align-items: center; gap: .65em; }

/* Mobiler Shop-Kopf: Foto als Fenster oben, Text darunter. Höhe und Verlauf kommen aus den Variablen
   --hero-photo-h und --hero-fade in tools/mobile-hero.css (dort steht das Muster für alle Seiten).
   Die Regeln stehen hier und nicht dort, weil sie nach den Grundregeln von .ah-intro gelten müssen. */
@media (max-width: 700px) {
  .ah-intro--bleed { padding: calc(var(--hero-photo-h) - 22px) 0 40px; }
  .ah-intro::before { inset: 0 0 auto 0; height: var(--hero-photo-h); opacity: 1; background-position: 50% 55%; }
  .ah-intro::after { background: var(--hero-fade), var(--s-hex-dark); }
  .ah-intro__lead { margin-top: .9rem; font-size: 1rem; }
  .ah-intro__chips { gap: .35rem 1.1rem; margin-top: 1.25rem; }
  .ah-intro__chips li, .ah-intro__chips a { padding: 0; font-size: .82rem; font-weight: 600; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ah-intro__chips a { text-decoration: underline; text-underline-offset: 3px; }
}

/* „In den Warenkorb“ in den schmalen Zwei-Spalten-Karten: Text passt komplett hinein (26.10.2026) */
@media (max-width: 599px) {
  body:is(.woocommerce, .aplus-cards) ul.products li.product .button.add_to_cart_button,
  body:is(.woocommerce, .aplus-cards) ul.products li.product .button.product_type_variable,
  body:is(.woocommerce, .aplus-cards) ul.products li.product .button.product_type_grouped { font-size: .84rem; padding-inline: .4em; gap: 0; text-align: center; }
  body:is(.woocommerce, .aplus-cards) ul.products li.product .button.add_to_cart_button::before { display: none; }
}
@media (max-width: 380px) {
  body:is(.woocommerce, .aplus-cards) ul.products li.product .button.add_to_cart_button,
  body:is(.woocommerce, .aplus-cards) ul.products li.product .button.product_type_variable,
  body:is(.woocommerce, .aplus-cards) ul.products li.product .button.product_type_grouped { white-space: normal; line-height: 1.15; }
}

/* „Alle Filter zurücksetzen“ oben in der Filterleiste (Knopf legt assets/js/shop-filter-reset.js an) */
.ap-filter-reset { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; margin: 0 0 16px; padding: 11px 14px; font: inherit; font-size: 14px; font-weight: 600; color: #fff; background: var(--theme-palette-color-4, #111518); border: 0; border-radius: 10px; cursor: pointer; transition: background .15s ease; }
.ap-filter-reset:hover { background: var(--theme-palette-color-1, #019C7C); }
.ap-filter-reset:focus-visible { outline: 2px solid var(--theme-palette-color-1, #019C7C); outline-offset: 2px; }
.ap-filter-reset[hidden] { display: none; }

