/* Holzkopf · Seiten-Gestaltung: produkt
   Wird automatisch nach holzkopf.css, kevin-runde.css und shop-basis.css geladen (functions.php, assets/seiten/*.css).
   Gestaltungssystem: _umbau-2026-11/basis/SYSTEM.md

   Produktseite (WooCommerce-Vorlage single-product, nichts überschrieben). Gilt für jedes Produkt:
   einfach, variabel, Kurs/Dienstleistung, ausverkauft, ohne Bild.
   Aufbau:  Brotkrumen · [Galerie (am Desktop stehend) | Kaufspalte] · [Reiter-Liste | Reiter-Inhalt] auf Creme-tief · Ähnliche Produkte (dunkle Fläche mit Bogen)
   Nur CSS. Die Kaufspalte wird per `order` sortiert (Titel → Preis → Lieferzeit/Bestand → Kaufen → Vertrauen → Kurzbeschreibung → Meta),
   die HTML-Reihenfolge bleibt unverändert.
   Alles ist auf body.single-product begrenzt. */

/* ==========================================================================
   0 · Rahmen: breite Spalte wie die Startseite (1840)
   ========================================================================== */
body.single-product .site-main{
  width:100%; max-width:min(var(--hk-max), 100% - 2*var(--hk-rand));
  margin-inline:auto; padding-inline:0; box-sizing:border-box;
  --hk-pd-spalten: minmax(0, 1.12fr) minmax(0, 1fr);
  --hk-pd-abstand: clamp(40px, 4.4vw, 128px);
  --hk-pd-linie: rgba(138,75,34,.18);
}
body.single-product .site-main a{ text-underline-offset:.18em; }

/* Brotkrumen: leise (Nebentext, feine Unterstreichung), erst bei Hover/Fokus holzbraun; Tippfläche ≥ 44 px */
body.single-product .site-main > .woo-breadcrumbs{
  margin:0; padding:clamp(20px, 2vw, 44px) 0 clamp(18px, 1.8vw, 36px);
  color:var(--hk-tinte-neben); font:500 var(--hk-klein)/1.5 var(--hk-font-text);
}
body.single-product .woo-breadcrumbs a{
  color:var(--hk-tinte-neben); text-decoration:underline; text-decoration-thickness:1px; text-decoration-color:rgba(92,74,61,.45);
  display:inline-block; padding-block:12px; margin-block:-12px;   /* Tippfläche ≥ 44 px ohne Zeilensprung */
  transition:color .2s ease, text-decoration-color .2s ease;
}
body.single-product .woo-breadcrumbs .breadcrumb_last{ color:var(--hk-tinte); }
@media (hover:hover) and (pointer:fine){ body.single-product .woo-breadcrumbs a:hover{ color:var(--hk-holzbraun); text-decoration-color:currentColor; } }
body.single-product .woo-breadcrumbs a:focus-visible{ outline:3px solid var(--hk-fokus-hell); outline-offset:2px; border-radius:4px; color:var(--hk-holzbraun); }

/* Hinweise (z. B. „… wurde deinem Warenkorb hinzugefügt.“) */
body.single-product .woocommerce-notices-wrapper:empty{ display:none; }
body.single-product .woocommerce-notices-wrapper{ margin:0 0 clamp(20px, 2vw, 36px); }
body.single-product .woocommerce-message,
body.single-product .woocommerce-info,
body.single-product .woocommerce-error{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 24px;
  margin:0 0 12px; padding:16px clamp(18px, 1.6vw, 28px) 16px calc(clamp(18px, 1.6vw, 28px) + 34px);
  background:var(--hk-creme-tief); color:var(--hk-tinte); border:0; border-left:4px solid var(--hk-holzbraun); border-radius:var(--hk-radius);
  font:500 var(--hk-body)/1.45 var(--hk-font-text); list-style:none;
}
body.single-product .woocommerce-error{ border-left-color:#a1361b; }
/* WooCommerce setzt den Fokus per Skript auf die Meldung (Vorlesen) – dort kein Fokusrahmen, sie ist kein Bedienelement */
body.single-product .woocommerce-notices-wrapper [tabindex="-1"]:focus,
body.single-product .woocommerce-notices-wrapper:focus{ outline:0; }
body.single-product .woocommerce-message::before,
body.single-product .woocommerce-info::before,
body.single-product .woocommerce-error::before{ color:var(--hk-holzbraun); top:50%; translate:0 -50%; left:clamp(16px, 1.4vw, 24px); }
body.single-product .woocommerce-error::before{ color:#a1361b; }
body.single-product .woocommerce-message .button,
body.single-product .woocommerce-info .button{
  order:2; float:none; display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 22px; margin:0;
  border-radius:999px; background:transparent; color:var(--hk-holzbraun); box-shadow:inset 0 0 0 2px currentColor; border:0;
  font:600 var(--hk-klein)/1.2 var(--hk-font-text); text-decoration:none; white-space:nowrap;
}
@media (hover:hover) and (pointer:fine){
  body.single-product .woocommerce-message .button:hover,
  body.single-product .woocommerce-info .button:hover{ background:rgba(138,75,34,.08); color:var(--hk-holzbraun-h); }
}

/* ==========================================================================
   1 · Raster: Galerie | Kaufspalte, darunter Reiter und Ähnliche Produkte
   ========================================================================== */
body.single-product div.product{
  display:grid; grid-template-columns:var(--hk-pd-spalten); column-gap:var(--hk-pd-abstand); row-gap:0;
  align-items:start; margin:0; padding:0 0 0;
}
body.single-product div.product::before,
body.single-product div.product::after{ display:none; }
body.single-product div.product > *{ min-width:0; }
body.single-product div.product div.images,
body.single-product div.product div.summary{ float:none; width:auto; margin:0; }
body.single-product div.product div.images{ grid-column:1; grid-row:1; }
body.single-product div.product div.summary{ grid-column:2; grid-row:1; }
body.single-product div.product .woocommerce-tabs,
body.single-product div.product section.related,
body.single-product div.product section.up-sells{ grid-column:1 / -1; }
body.single-product div.product > .onsale{
  grid-column:1; grid-row:1; justify-self:start; align-self:end; z-index:6; position:relative; top:auto; left:auto; right:auto;
  margin:0 0 calc(var(--hk-rahmen-versatz) + 16px) 16px; min-height:0; min-width:0; padding:8px 16px; line-height:1.2;
  border-radius:999px; background:var(--hk-holzbraun); color:var(--hk-licht); font:700 var(--hk-klein)/1.2 var(--hk-font-text);
}

/* ==========================================================================
   2 · Galerie: großes Foto im versetzten Holzrahmen, Vorschaubilder als Reihe, Brandstempel „Unikat“
   ========================================================================== */
body.single-product div.product div.images.woocommerce-product-gallery{ position:relative; }

/* Bühne: mehrere Bilder → .flex-viewport, ein Bild → __wrapper direkt */
body.single-product .woocommerce-product-gallery > .flex-viewport,
body.single-product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper{
  border-radius:6px; background:var(--hk-creme-tief);
  box-shadow:var(--hk-rahmen-versatz) var(--hk-rahmen-versatz) 0 0 var(--hk-holzbraun);
}
body.single-product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper{ overflow:hidden; margin:0; }
body.single-product div.product div.images .woocommerce-product-gallery__image{ background:var(--hk-creme-tief); }
body.single-product div.product div.images .woocommerce-product-gallery__image a{ display:block; }
/* Foto: natürliches Format, aber nie höher als der Bildschirm (sehr hohe Hochformate werden oben/unten knapp beschnitten – Lupe zeigt das ganze Bild) */
body.single-product div.product div.images .woocommerce-product-gallery__image > a > img,
body.single-product div.product div.images .woocommerce-product-gallery__image--placeholder img{
  display:block; width:100%; height:auto; margin:0;
  max-height:calc(100svh - var(--hk-kopf-h, 92px) - clamp(110px, 8vw, 180px)); min-height:240px;
  object-fit:cover; object-position:center; background:var(--hk-creme-tief); border-radius:0;
}
/* Produkt ohne Foto: statt des grauen WordPress-Platzhalters eine ruhige Holzfläche mit Jahresringen */
body.single-product .woocommerce-product-gallery__image--placeholder{ position:relative; border-radius:6px; overflow:hidden; background:var(--hk-creme-tief); }
body.single-product div.product div.images .woocommerce-product-gallery__image--placeholder img{ opacity:0; aspect-ratio:4 / 3; height:auto; min-height:0; }
body.single-product .woocommerce-product-gallery__image--placeholder::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:var(--hk-holzbraun); opacity:.42;
  -webkit-mask:url(../jahresringe.svg) center / min(70%, 560px) no-repeat; mask:url(../jahresringe.svg) center / min(70%, 560px) no-repeat;
}

/* Abnahme (Layout-Verschiebung, CLS mobil 1,2 → ~0): Bis WooCommerce den Bilder-Slider fertig aufgebaut hat
   (erst dann trägt ein Bild „flex-active-slide“), steht nur das erste Foto da, und die Vorschaureihe hat ihren Platz schon.
   Vorher standen kurz alle Fotos untereinander und schoben Preis und Kaufen-Knopf hin und her. */
body.single-product div.product div.images .woocommerce-product-gallery__wrapper:not(:has(.flex-active-slide)) > .woocommerce-product-gallery__image:nth-child(n+2),
body.single-product div.product div.images .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-child(n+2):not([style*="width"]){ display:none; }
/* Slider-Aufbau (rund 100 ms): Woo macht die Bildleiste erst 800 % breit und gibt den Fotos ihre Breite danach – solange bleibt die Leiste spaltenbreit */
body.single-product div.product div.images .flex-viewport > .woocommerce-product-gallery__wrapper:not(:has(> [style*="width"])){ width:100%!important; }
body.single-product div.product div.images.woocommerce-product-gallery:has(.woocommerce-product-gallery__image:nth-child(2)):not(:has(.flex-control-thumbs)){
  --hk-pd-th-gap:clamp(10px, .9vw, 18px);
  padding-bottom:calc(var(--hk-rahmen-versatz) + clamp(10px, 1vw, 22px) + 12px + (100% - 5 * var(--hk-pd-th-gap)) / 6);
}
@media (max-width:899px){
  body.single-product div.product div.images.woocommerce-product-gallery:has(.woocommerce-product-gallery__image:nth-child(2)):not(:has(.flex-control-thumbs)){
    padding-bottom:calc(var(--hk-rahmen-versatz) + 10px + 76px);
  }
}

/* Vorschaubilder: immer eine Reihe (6 sichtbar, weitere per Wischen/Scrollen) – wie am Handy */
body.single-product div.product div.images .flex-control-thumbs{
  --hk-pd-th-gap:clamp(10px, .9vw, 18px);
  display:grid; grid-auto-flow:column; grid-template-columns:none; grid-auto-columns:calc((100% - 5 * var(--hk-pd-th-gap)) / 6);
  gap:var(--hk-pd-th-gap);
  margin:calc(var(--hk-rahmen-versatz) + clamp(10px, 1vw, 22px)) -6px 0; padding:6px; list-style:none;
  overflow-x:auto; overflow-y:hidden; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scroll-padding-inline:6px;
  scrollbar-width:thin; scrollbar-color:rgba(138,75,34,.45) transparent;
}
body.single-product div.product div.images .flex-control-thumbs::before,
body.single-product div.product div.images .flex-control-thumbs::after{ display:none; }
body.single-product div.product div.images .flex-control-thumbs li{ float:none; width:auto; margin:0; padding:0; list-style:none; scroll-snap-align:start; }
body.single-product div.product div.images .flex-control-thumbs li img{
  display:block; width:100%; height:auto; aspect-ratio:1; object-fit:cover; border-radius:6px; cursor:pointer;
  opacity:1; outline:2px solid transparent; outline-offset:3px; transition:outline-color .2s ease, filter .2s ease;
}
body.single-product div.product div.images .flex-control-thumbs li img:not(.flex-active){ filter:saturate(.85) brightness(.97); }
body.single-product div.product div.images .flex-control-thumbs li img.flex-active{ outline-color:var(--hk-holzbraun); }
@media (hover:hover) and (pointer:fine){
  body.single-product div.product div.images .flex-control-thumbs li img:hover{ filter:none; outline-color:rgba(138,75,34,.45); }
  body.single-product div.product div.images .flex-control-thumbs li img.flex-active:hover{ outline-color:var(--hk-holzbraun); }
}

/* Desktop: Galerie bleibt beim Lesen einer langen Kaufspalte stehen (kein Pinning – die Seite läuft normal weiter).
   Damit Foto + Vorschaureihe in den Bildschirm passen, ist das Foto mit Vorschaureihe etwas niedriger. */
@media (min-width:900px){
  body.single-product div.product div.images.woocommerce-product-gallery{ position:sticky; top:calc(var(--hk-kopf-h, 92px) + 24px); }
  body.single-product div.product div.images:has(.flex-control-thumbs) .woocommerce-product-gallery__image > a > img{
    max-height:calc(100svh - var(--hk-kopf-h, 92px) - 48px - var(--hk-rahmen-versatz) - clamp(150px, 9.4vw, 230px));
  }
}

/* Lupe (Vollbild-Galerie) */
body.single-product div.product div.images .woocommerce-product-gallery__trigger{
  position:absolute; top:16px; right:16px; left:auto; z-index:9; box-sizing:border-box;
  display:grid; place-items:center; width:52px; height:52px; padding:0; border:0; border-radius:50%;
  background:var(--hk-creme); color:var(--hk-holzbraun); text-indent:0; overflow:hidden; font-size:0;
  box-shadow:0 8px 22px -10px rgba(20,12,6,.6), inset 0 0 0 1px rgba(138,75,34,.25);
  transition:transform .2s ease, background-color .2s ease;
}
body.single-product div.product div.images .woocommerce-product-gallery__trigger > span{ display:none; }
body.single-product div.product div.images .woocommerce-product-gallery__trigger::after{ display:none; content:none; }
body.single-product div.product div.images .woocommerce-product-gallery__trigger::before{
  content:""; position:static; display:block; width:24px; height:24px; border:0; border-radius:0; box-sizing:border-box;
  background:currentColor; transform:none;
  -webkit-mask:url(../icons/hk-lupe.svg) center/contain no-repeat; mask:url(../icons/hk-lupe.svg) center/contain no-repeat;
}
body.single-product div.product div.images .woocommerce-product-gallery__trigger:focus-visible{ outline:3px solid var(--hk-fokus-hell); outline-offset:3px; }
@media (hover:hover) and (pointer:fine){
  body.single-product div.product div.images .woocommerce-product-gallery__trigger:hover{ transform:scale(1.06); background:#fff; }
}

/* Brandstempel „Unikat“ an der Bildecke (einer pro Ansicht). Nicht bei Kursen, Dienstleistungen und CNC-Teilen. */
body.single-product div.product:not(.product_cat-drechselkurse-fuer-anfaenger):not(.product_cat-lohnschntt):not(.product_cat-mobile-drechselvorfuehrung):not(.product_cat-cnc-fraese):not(.product_cat-cnc-fraesteile) div.images.woocommerce-product-gallery--with-images::before{
  content:"Unikat" / "";
  position:absolute; z-index:8; top:-22px; left:-20px; width:112px; height:112px; box-sizing:border-box;
  display:grid; place-items:center; border-radius:50%; pointer-events:none;
  background:var(--hk-creme); color:var(--hk-holzbraun);
  border:3px solid var(--hk-holzbraun); box-shadow:inset 0 0 0 4px var(--hk-creme), inset 0 0 0 6px var(--hk-holzbraun), 0 10px 24px -14px rgba(20,12,6,.55);
  font:800 var(--hk-stempel)/1 var(--hk-font-display); letter-spacing:.1em; text-transform:uppercase;
  transform:rotate(-7deg);
}

/* Feste Bühne bei mehreren Fotos (Kevin 15.11.2026): Beim Wechsel über die Vorschaubilder springt nichts mehr.
   Jedes Foto steht GANZ (contain, nichts beschnitten) in einer Fläche mit festem Format 4:3 auf Creme-tief.
   Gilt schon vor dem Slider-Aufbau (2. Foto vorhanden), damit die Höhe beim Laden nicht wechselt (CLS).
   Am Desktop höchstens so hoch, dass Bühne und Vorschaureihe in den Bildschirm passen; Fotos mit nur einem Bild unverändert. */
body.single-product div.product div.images:is(:has(.flex-control-thumbs), :has(.woocommerce-product-gallery__image:nth-child(2))){
  --hk-pd-buehne-max:min(62svh, 520px);
}
@media (min-width:900px){
  body.single-product div.product div.images:is(:has(.flex-control-thumbs), :has(.woocommerce-product-gallery__image:nth-child(2))){
    --hk-pd-buehne-max:calc(100svh - var(--hk-kopf-h, 92px) - 48px - var(--hk-rahmen-versatz) - clamp(150px, 9.4vw, 230px));
  }
}
body.single-product div.product div.images:is(:has(.flex-control-thumbs), :has(.woocommerce-product-gallery__image:nth-child(2))) .woocommerce-product-gallery__image{
  position:relative; box-sizing:border-box; aspect-ratio:4 / 3; max-height:var(--hk-pd-buehne-max); overflow:hidden;
}
body.single-product div.product div.images:is(:has(.flex-control-thumbs), :has(.woocommerce-product-gallery__image:nth-child(2))) .woocommerce-product-gallery__image > a{ height:100%; }
body.single-product div.product div.images:is(:has(.flex-control-thumbs), :has(.woocommerce-product-gallery__image:nth-child(2))) .woocommerce-product-gallery__image > a > img{
  width:100%; height:100%; max-height:none; min-height:0; object-fit:contain; object-position:center;
}

/* ==========================================================================
   3 · Kaufspalte
   ========================================================================== */
body.single-product div.product div.summary{
  display:flex; flex-wrap:wrap; align-items:center; gap:0 12px;
  padding-top:clamp(4px, .6vw, 12px);
}
body.single-product div.summary > *{ flex:1 1 100%; margin:0; order:20; }   /* bewusst niedrige Spezifität: Einzelregeln unten gewinnen */

/* Reihenfolge: kaufen zuerst, lesen danach */
body.single-product div.product .summary > .product_title{ order:1; }
body.single-product div.product .summary > .price{ order:2; }
body.single-product div.product .summary > .wc-gzd-additional-info.price-unit,
body.single-product div.product .summary > .legal-price-info{ order:3; }
body.single-product div.product .summary > .deposit-packaging-type,
body.single-product div.product .summary > .deposit-amount{ order:4; }
body.single-product div.product .summary > .delivery-time-info{ order:5; flex:0 1 auto; }
body.single-product div.product .summary > .stock{ order:6; flex:0 1 auto; }
body.single-product div.product .summary > form.cart{ order:7; }
body.single-product div.product .summary > .ppcp-messages,
body.single-product div.product .summary > .ppc-button-wrapper,
body.single-product div.product .summary > #ppcp-recaptcha-v2-container,
body.single-product div.product .summary > div:not([class]){ order:8; }
body.single-product div.product .summary > .hk-produkt-vertrauen{ order:9; }
body.single-product div.product .summary > .woocommerce-product-details__short-description{ order:10; }
body.single-product div.product .summary > .defect-description,
body.single-product div.product .summary > .wc-gzd-garan-label{ order:11; }
body.single-product div.product .summary > .product_meta{ order:12; }

/* Titel: Plakat-Typo, auch bei sehr langen Produktnamen (bis 120 Zeichen) ruhig */
body.single-product div.product .product_title{
  margin:0 0 clamp(16px, 1.4vw, 28px); max-width:22ch; color:var(--hk-tinte);
  font:800 clamp(2rem, 0.85rem + 1.85vw, 3.75rem)/1.02 var(--hk-font-display); letter-spacing:-.01em;
  text-wrap:pretty; hyphens:none; overflow-wrap:break-word;
}

/* Preis */
body.single-product div.product .summary > p.price,
body.single-product div.product .summary > span.price{
  margin:0; color:var(--hk-tinte);
  font:800 clamp(1.875rem, 1.1rem + 1.4vw, 3.5rem)/1.05 var(--hk-font-display);
  font-variant-numeric:lining-nums proportional-nums; letter-spacing:-.005em;
}
body.single-product div.product p.price del,
body.single-product div.product .woocommerce-variation-price .price del{ color:var(--hk-tinte-neben); opacity:1; font-size:.62em; font-weight:700; margin-right:.35em; }
body.single-product div.product p.price ins,
body.single-product div.product .woocommerce-variation-price .price ins{ text-decoration:none; color:var(--hk-holzbraun); }

/* Germanized-Pflichtangaben (Kleinunternehmer, Versandkosten, Grundpreis …) */
body.single-product div.product .summary .wc-gzd-additional-info-placeholder:empty{ display:none; }
body.single-product div.product .summary > .legal-price-info{ margin:10px 0 0; }
body.single-product div.product .summary .legal-price-info p.wc-gzd-additional-info,
body.single-product div.product .summary > .wc-gzd-additional-info.price-unit,
body.single-product div.product .summary > .deposit-packaging-type,
body.single-product div.product .summary > .deposit-amount{
  margin:0; color:var(--hk-tinte-neben); font:500 var(--hk-klein)/1.5 var(--hk-font-text);
}
body.single-product div.product .wc-gzd-additional-info a,
body.single-product div.product .legal-price-info a{ color:var(--hk-holzbraun); text-decoration:underline; }
body.single-product div.product .legal-price-info .small-business-info{ display:block; }
/* Tippfläche ≥ 44 px für die kleinen Links der Kaufspalte, ohne die Zeilenhöhe zu ändern */
body.single-product div.product .summary :is(.legal-price-info a, .shipping-costs-info a, .product_meta .posted_in a, .product_meta .sku_wrapper a){
  display:inline-block; padding-block:12px; margin-block:-12px;
}

/* Nicht vorrätig: keine Lieferzeit daneben (widerspricht sich) */
body.single-product div.product .summary:has(> .stock.out-of-stock) > .delivery-time-info{ display:none; }

/* Trennlinie vor dem Kaufbereich: liegt am Lieferzeit-Hinweis bzw. am Formular */
body.single-product div.product .summary > .delivery-time-info,
body.single-product div.product .summary > .stock{ margin-top:clamp(22px, 2vw, 36px); }

/* Lieferzeit und Bestand als Plaketten in einer Zeile */
body.single-product div.product .summary > .delivery-time-info:not(:empty),
body.single-product div.product .summary > .stock,
body.single-product div.product .single_variation .delivery-time-info:not(:empty),
body.single-product div.product .single_variation .stock{
  display:inline-flex; align-items:center; gap:10px; min-height:40px; padding:6px 16px 6px 12px; box-sizing:border-box;
  border-radius:999px; background:var(--hk-creme-tief); color:var(--hk-tinte);
  font:600 var(--hk-klein)/1.3 var(--hk-font-text);
}
body.single-product div.product .delivery-time-info:not(:empty)::before{
  content:""; flex:none; width:20px; height:20px; background:var(--hk-holzbraun);
  -webkit-mask:url(../icons/hk-uhr.svg) center/contain no-repeat; mask:url(../icons/hk-uhr.svg) center/contain no-repeat;
}
body.single-product div.product .stock::before{
  content:""; flex:none; width:10px; height:10px; border-radius:50%; margin-inline:5px;
  background:#4f7a35; box-shadow:0 0 0 4px rgba(79,122,53,.16);
}
body.single-product div.product .stock.in-stock{ color:var(--hk-tinte); }
body.single-product div.product .stock.out-of-stock,
body.single-product div.product .stock.available-on-backorder{ background:var(--hk-abgeflammt-2); color:var(--hk-licht); }
body.single-product div.product .stock.out-of-stock::before{ background:var(--hk-hirnholz); box-shadow:0 0 0 4px rgba(214,168,115,.2); }
body.single-product div.product .stock.available-on-backorder::before{ background:var(--hk-hirnholz); box-shadow:none; }

/* ---------- Kaufen: Menge + großer Knopf, gleiche Höhe ---------- */
body.single-product div.product form.cart{ margin:clamp(16px, 1.4vw, 24px) 0 0; padding:0; }
body.single-product div.product form.cart::before,
body.single-product div.product form.cart::after,
body.single-product div.product .woocommerce-variation-add-to-cart::before,
body.single-product div.product .woocommerce-variation-add-to-cart::after{ display:none; }
body.single-product div.product form.cart:not(.variations_form):not(.grouped_form),
body.single-product div.product .woocommerce-variation-add-to-cart{
  display:flex; flex-wrap:wrap; align-items:stretch; gap:12px;
}
body.single-product div.product form.cart div.quantity{ float:none; margin:0; display:flex; }
body.single-product div.product form.cart div.quantity:has(input[type="hidden"]){ display:none; }
body.single-product div.product form.cart .quantity .qty{
  width:92px; min-height:60px; height:100%; box-sizing:border-box; margin:0; padding:0 8px;
  border:2px solid rgba(138,75,34,.38); border-radius:999px; background:var(--hk-creme); color:var(--hk-tinte);
  font:700 var(--hk-button)/1 var(--hk-font-text); text-align:center; font-variant-numeric:tabular-nums;
}
@media (pointer:coarse){   /* Handy: Zahlentastatur statt winziger Pfeile */
  body.single-product div.product form.cart .quantity .qty{ -moz-appearance:textfield; }
  body.single-product div.product form.cart .quantity .qty::-webkit-inner-spin-button,
  body.single-product div.product form.cart .quantity .qty::-webkit-outer-spin-button{ -webkit-appearance:none; margin:0; }
}
body.single-product div.product form.cart .quantity .qty:focus-visible{ border-color:var(--hk-holzbraun); outline:3px solid var(--hk-fokus-hell); outline-offset:3px; }
body.single-product div.product form.cart .single_add_to_cart_button,
body.single-product div.product form.cart .button.alt{
  float:none; flex:1 1 220px; display:inline-flex; align-items:center; justify-content:center; gap:.6em;
  min-height:60px; margin:0; padding:0 32px; border:0; border-radius:999px;
  background:var(--hk-holzbraun); color:var(--hk-licht);
  font:650 var(--hk-button)/1.2 var(--hk-font-text); letter-spacing:.005em; text-transform:none;   /* wie die Startseiten-Buttons, nur höher (Hauptaktion) */
  box-shadow:0 1px 0 rgba(255,255,255,.12) inset, 0 10px 24px -12px rgba(20,12,6,.6);
  transition:background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
body.single-product div.product form.cart .single_add_to_cart_button::before{
  content:""; flex:none; width:1.15em; height:1.15em; background:currentColor;
  -webkit-mask:url(../icons/hk-rohling.svg) center/contain no-repeat; mask:url(../icons/hk-rohling.svg) center/contain no-repeat;
  display:none; /* bewusst ohne Symbol: der Text trägt */
}
@media (hover:hover) and (pointer:fine){
  body.single-product div.product form.cart .single_add_to_cart_button:not(.disabled):hover{
    background:var(--hk-holzbraun-h); transform:translateY(-2px); box-shadow:0 1px 0 rgba(255,255,255,.12) inset, 0 16px 30px -14px rgba(20,12,6,.7);
  }
}
body.single-product div.product form.cart .single_add_to_cart_button:active{ transform:translateY(1px); }
body.single-product div.product form.cart .single_add_to_cart_button:focus-visible{ outline:3px solid var(--hk-fokus-hell); outline-offset:3px; }
body.single-product div.product form.cart .single_add_to_cart_button.disabled,
body.single-product div.product form.cart .single_add_to_cart_button:disabled{
  opacity:1; cursor:not-allowed; background:var(--hk-creme-tief); color:var(--hk-tinte-neben); box-shadow:inset 0 0 0 2px rgba(138,75,34,.22);
}
body.single-product div.product form.cart .single_add_to_cart_button.loading{ opacity:.8; }

/* ---------- Varianten (Auswahl + Zurücksetzen) ---------- */
body.single-product div.product form.cart table.variations{
  display:block; width:100%; max-width:640px; margin:0 0 18px; border:0; border-collapse:collapse;
}
body.single-product div.product form.cart table.variations tbody{ display:grid; gap:18px; }
body.single-product div.product form.cart table.variations tr{ display:grid; gap:8px; }
body.single-product div.product form.cart table.variations th,
body.single-product div.product form.cart table.variations td{ display:block; padding:0; margin:0; border:0; background:none; text-align:left; line-height:1.3; }
body.single-product div.product form.cart table.variations th.label label{
  display:block; margin:0; color:var(--hk-tinte); font:600 var(--hk-klein)/1.3 var(--hk-font-text);
}
body.single-product div.product form.cart table.variations td.value{ position:relative; display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; }
body.single-product div.product form.cart table.variations td.value::after{
  content:""; position:absolute; top:30px; right:22px; translate:0 -50%; width:20px; height:20px; pointer-events:none;
  background:var(--hk-holzbraun);
  -webkit-mask:url(../icons/hk-chevron-unten.svg) center/contain no-repeat; mask:url(../icons/hk-chevron-unten.svg) center/contain no-repeat;
}
body.single-product div.product form.cart table.variations select{
  -webkit-appearance:none; appearance:none; flex:1 1 100%; width:100%; min-width:0; min-height:60px; margin:0; box-sizing:border-box;
  padding:0 58px 0 22px; border:2px solid rgba(138,75,34,.38); border-radius:var(--hk-radius);
  background:var(--hk-creme); color:var(--hk-tinte); font:600 var(--hk-body)/1.2 var(--hk-font-text); cursor:pointer;
}
body.single-product div.product form.cart table.variations select:focus-visible{ border-color:var(--hk-holzbraun); outline:3px solid var(--hk-fokus-hell); outline-offset:3px; }
@media (hover:hover) and (pointer:fine){ body.single-product div.product form.cart table.variations select:hover{ border-color:var(--hk-holzbraun); } }
body.single-product div.product form.cart .reset_variations{
  display:inline-flex!important; align-items:center;   /* WooCommerce schreibt per Skript display:inline in den Stil */ min-height:44px; margin:0; padding:0 18px; box-sizing:border-box;
  border-radius:999px; color:var(--hk-holzbraun); background:transparent; box-shadow:inset 0 0 0 2px currentColor;
  font:600 var(--hk-klein)/1.2 var(--hk-font-text); text-decoration:none;
}
body.single-product div.product form.cart td.value .reset_variations[style*="hidden"]{ display:none!important; }
@media (hover:hover) and (pointer:fine){ body.single-product div.product form.cart .reset_variations:hover{ background:rgba(138,75,34,.08); color:var(--hk-holzbraun-h); } }

/* Ergebnis der Variantenwahl: Preis, Lieferzeit, Bestand */
body.single-product div.product .single_variation_wrap{ max-width:640px; }
body.single-product div.product .woocommerce-variation.single_variation:not(:empty){
  display:flex; flex-wrap:wrap; align-items:center; gap:10px 12px; margin:0 0 18px;
}
body.single-product div.product .woocommerce-variation.single_variation > *{ margin:0; }
body.single-product div.product .woocommerce-variation-description{ flex:1 1 100%; color:var(--hk-tinte-neben); font:500 var(--hk-klein)/1.5 var(--hk-font-text); }
body.single-product div.product .woocommerce-variation-description p{ margin:0; }
body.single-product div.product .woocommerce-variation-price{ flex:1 1 100%; }
body.single-product div.product .woocommerce-variation-price .price{
  color:var(--hk-tinte); font:800 clamp(1.5rem, 1rem + 1vw, 2.5rem)/1.05 var(--hk-font-display);
}
body.single-product div.product .woocommerce-variation .wc-gzd-additional-info:not(.delivery-time-info){
  flex:1 1 100%; color:var(--hk-tinte-neben); font:500 var(--hk-klein)/1.5 var(--hk-font-text);
}
body.single-product div.product .woocommerce-variation-availability:empty{ display:none; }
body.single-product div.product .woocommerce-variation-availability{ flex:0 1 auto; }

/* PayPal-Knöpfe/Hinweise (live) auf Kaufbreite */
body.single-product div.product .summary > .ppc-button-wrapper,
body.single-product div.product .summary > .ppcp-messages{ max-width:none; }
/* Kaufbreite 640 px per Außenabstand statt max-width: so bleibt jedes Element allein in seiner Zeile (Flex-Basis 100 %) */
body.single-product div.product .summary > form.cart,
body.single-product div.product .summary > .ppcp-messages,
body.single-product div.product .summary > .ppc-button-wrapper,
body.single-product div.product .summary > .hk-produkt-vertrauen{ margin-right:max(0px, calc(100% - 640px))!important; }
body.single-product div.product .summary > .ppc-button-wrapper:not(:empty){ margin-top:12px; }
body.single-product div.product .summary > #ppcp-recaptcha-v2-container{ margin:0!important; }
body.single-product div.product .summary > #ppcp-recaptcha-v2-container:not(:empty){ margin-top:12px!important; }

/* ---------- Vertrauen (Markup kommt per Woo-Hook aus der Basis: ul.hk-produkt-vertrauen) ---------- */
body.single-product .hk-produkt-vertrauen{
  display:grid; gap:0; margin-top:clamp(22px, 2vw, 36px)!important; margin-left:0!important; margin-bottom:0!important; padding:4px clamp(16px, 1.4vw, 24px);
  list-style:none; background:var(--hk-creme-tief); border-radius:var(--hk-radius);
}
body.single-product .hk-produkt-vertrauen li{
  display:grid; grid-template-columns:44px minmax(0, 1fr); column-gap:16px; align-items:center;
  margin:0; padding:14px 0; list-style:none;
}
body.single-product .hk-produkt-vertrauen li + li{ border-top:1px solid var(--hk-pd-linie); }
body.single-product .hk-produkt-vertrauen li::before{
  content:""; grid-column:1; grid-row:1 / span 2; width:44px; height:44px; border-radius:50%;
  background:var(--hk-holzbraun);
}
body.single-product .hk-produkt-vertrauen li::after{
  content:""; grid-column:1; grid-row:1 / span 2; justify-self:center; align-self:center; width:22px; height:22px; background:var(--hk-licht);
  -webkit-mask:var(--hk-pv-icon) center/contain no-repeat; mask:var(--hk-pv-icon) center/contain no-repeat;
}
body.single-product .hk-produkt-vertrauen .hk-pv--versand{ --hk-pv-icon:url(../icons/hk-versand.svg); }
body.single-product .hk-produkt-vertrauen .hk-pv--unikat{ --hk-pv-icon:url(../icons/hk-unikat.svg); }
body.single-product .hk-produkt-vertrauen .hk-pv--hand{ --hk-pv-icon:url(../icons/hk-rohling.svg); }
body.single-product .hk-produkt-vertrauen .hk-pv--zahlung{ --hk-pv-icon:url(../icons/hk-bezahlen.svg); }
body.single-product .hk-produkt-vertrauen strong{
  grid-column:2; grid-row:1; align-self:end; display:block; color:var(--hk-tinte); font:800 clamp(1.0625rem, .95rem + .3vw, 1.375rem)/1.15 var(--hk-font-display);
}
body.single-product .hk-produkt-vertrauen span{
  grid-column:2; grid-row:2; align-self:start; display:block; margin-top:2px; color:var(--hk-tinte-neben); font:500 var(--hk-klein)/1.45 var(--hk-font-text);
}

/* ---------- Kurzbeschreibung (bis zu 10-fach verschachtelt – nur Abstände neutralisieren) ---------- */
body.single-product div.product .woocommerce-product-details__short-description{
  margin-top:clamp(26px, 2.4vw, 44px); padding-top:clamp(22px, 2vw, 36px); border-top:1px solid var(--hk-pd-linie);
  color:var(--hk-tinte); font:400 var(--hk-body)/1.6 var(--hk-font-text);
}
body.single-product div.product .woocommerce-product-details__short-description .woocommerce-product-details__short-description{
  margin:0; padding:0; border:0;
}
body.single-product div.product .woocommerce-product-details__short-description p{ margin:0 0 .8em; max-width:62ch; }
body.single-product div.product .woocommerce-product-details__short-description > :last-child{ margin-bottom:0; }
body.single-product div.product .woocommerce-product-details__short-description ul{
  margin:0 0 .8em; padding:0; list-style:none; display:grid; gap:.55em; max-width:62ch;
}
body.single-product div.product .woocommerce-product-details__short-description ul li{
  position:relative; margin:0; padding-left:1.5em;
}
body.single-product div.product .woocommerce-product-details__short-description ul li::before{
  content:""; position:absolute; left:.1em; top:.58em; width:.5em; height:.5em; border-radius:50%;
  border:2px solid var(--hk-holzbraun); box-sizing:border-box;
}
body.single-product div.product .woocommerce-product-details__short-description h2,
body.single-product div.product .woocommerce-product-details__short-description h3{
  margin:1.1em 0 .45em; max-width:26ch; color:var(--hk-tinte); font:800 var(--hk-lead)/1.15 var(--hk-font-display); text-align:left;
}
body.single-product div.product .woocommerce-product-details__short-description h2:first-child{ margin-top:0; }
body.single-product div.product .woocommerce-product-details__short-description a{ color:var(--hk-holzbraun); text-decoration:underline; }
body.single-product div.product .hiddenSpellError{ background:none; border:0; color:inherit; text-decoration:none; }
/* Farben aus dem Produkt-Editor (z. B. knallrote Hinweise) in Holzbraun – die Betonung bleibt, die Farbe passt zum Haus */
body.single-product div.product :is(.woocommerce-product-details__short-description, .woocommerce-tabs .panel) [style*="color"]:not(a){ color:var(--hk-holzbraun)!important; }

/* ---------- Meta: Artikelnummer, Kategorien (Schlagwörter bleiben im Quelltext, sichtbar sind sie ein 80-Link-Block) ---------- */
body.single-product div.product .product_meta{
  display:grid; gap:8px; margin-top:clamp(22px, 2vw, 36px); padding-top:clamp(18px, 1.6vw, 28px); border-top:1px solid var(--hk-pd-linie);
  color:var(--hk-tinte-neben); font:500 var(--hk-klein)/1.5 var(--hk-font-text);
}
body.single-product div.product .product_meta > span{ display:block; }
body.single-product div.product .product_meta .tagged_as{ display:none; }
body.single-product div.product .product_meta .sku{ color:var(--hk-tinte); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
body.single-product div.product .product_meta a{ color:var(--hk-holzbraun); text-decoration:underline; }
@media (hover:hover) and (pointer:fine){ body.single-product div.product .product_meta a:hover{ color:var(--hk-holzbraun-h); } }

/* ==========================================================================
   4 · Reiter: links die Liste (wie ein Inhaltsverzeichnis), rechts der Text – auf der Linie der Kaufspalte
   ========================================================================== */
body.single-product div.product .woocommerce-tabs{
  display:grid; grid-template-columns:var(--hk-pd-spalten); column-gap:var(--hk-pd-abstand); align-items:start;
  position:relative; isolation:isolate;
  margin:clamp(72px, 6.4vw, 168px) 0 0; padding:clamp(56px, 5vw, 128px) 0 clamp(64px, 5.6vw, 144px); border-top:0;
  --hk-pd-linie: rgba(138,75,34,.22);
}
/* Beschreibung als eigene Fläche: Creme-tief, randlos bis an den Bildschirmrand (Kauf → Lesen → Ähnliche Produkte) */
body.single-product div.product .woocommerce-tabs::before{
  content:""; position:absolute; top:0; bottom:0; left:50%; z-index:-1; pointer-events:none;
  width:calc(100vw - var(--hk-scrollbar, 0px)); transform:translateX(-50%);
  background:var(--hk-creme-tief);
}
body.single-product div.product .woocommerce-tabs::after{
  content:""; position:absolute; top:0; bottom:0; left:50%; z-index:-1; pointer-events:none;
  width:calc(100vw - var(--hk-scrollbar, 0px)); transform:translateX(-50%); opacity:.5;
  background:url("../jahresringe.svg") no-repeat right -10vw top -12vw / min(40vw, 720px) auto;
}
/* Auf der Creme-tief-Fläche sind Kästen hell */
body.single-product div.product .woocommerce-tabs #reviews .woocommerce-noreviews,
body.single-product div.product .woocommerce-tabs #reviews #comments ol.commentlist li .comment-text{ background:var(--hk-creme); }
body.single-product div.product .woocommerce-tabs ul.tabs{
  grid-column:1; grid-row:1; display:grid; gap:0; margin:0; padding:0; list-style:none; overflow:visible; border:0;
  position:sticky; top:calc(var(--hk-kopf-h, 92px) + 24px);
}
body.single-product div.product .woocommerce-tabs ul.tabs::before,
body.single-product div.product .woocommerce-tabs ul.tabs::after{ display:none; content:none; }
body.single-product div.product .woocommerce-tabs ul.tabs li{
  display:block; position:relative; margin:0; padding:0; border:0; border-radius:0; background:none;
  border-bottom:1px solid var(--hk-pd-linie);
}
body.single-product div.product .woocommerce-tabs ul.tabs li:first-child{ border-top:1px solid var(--hk-pd-linie); }
body.single-product div.product .woocommerce-tabs ul.tabs li::before,
body.single-product div.product .woocommerce-tabs ul.tabs li::after{ display:none; content:none; }
body.single-product div.product .woocommerce-tabs ul.tabs li a{
  display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:56px; box-sizing:border-box;
  padding:clamp(14px, 1.2vw, 24px) 4px; color:var(--hk-tinte-neben); text-decoration:none;
  font:800 clamp(1.375rem, .9rem + 1.1vw, 2.5rem)/1.05 var(--hk-font-display); transition:color .2s ease, padding .25s ease;
}
body.single-product div.product .woocommerce-tabs ul.tabs li a::after{
  content:""; flex:none; width:.8em; height:.8em; background:currentColor; opacity:0; transform:translateX(-.3em);
  -webkit-mask:url(../icons/hk-pfeil.svg) center/contain no-repeat; mask:url(../icons/hk-pfeil.svg) center/contain no-repeat;
  transition:opacity .2s ease, transform .25s ease;
}
body.single-product div.product .woocommerce-tabs ul.tabs li.active{ background:none; border-color:var(--hk-pd-linie); z-index:auto; }
body.single-product div.product .woocommerce-tabs ul.tabs li.active a{ color:var(--hk-tinte); padding-left:22px; }
body.single-product div.product .woocommerce-tabs ul.tabs li.active::before{
  display:block; content:""; position:absolute; left:0; top:18%; bottom:18%; width:6px; height:auto; border:0; border-radius:3px; box-shadow:none;
  background:var(--hk-holzbraun);
}
body.single-product div.product .woocommerce-tabs ul.tabs li.active a::after{ opacity:1; transform:none; color:var(--hk-holzbraun); background:var(--hk-holzbraun); }
@media (hover:hover) and (pointer:fine){
  body.single-product div.product .woocommerce-tabs ul.tabs li:not(.active) a:hover{ color:var(--hk-holzbraun); }
  body.single-product div.product .woocommerce-tabs ul.tabs li:not(.active) a:hover::after{ opacity:1; transform:none; }
}
body.single-product div.product .woocommerce-tabs ul.tabs li a:focus-visible{ outline:3px solid var(--hk-fokus-hell); outline-offset:-3px; border-radius:6px; }

/* Inhalt */
body.single-product div.product .woocommerce-tabs .panel{
  grid-column:2; grid-row:1; margin:0; padding:0; border:0; background:none; box-shadow:none;
  color:var(--hk-tinte); font:400 var(--hk-body)/1.65 var(--hk-font-text);
}
body.single-product div.product .woocommerce-tabs .panel > h2:first-child{   /* „Beschreibung“ / „Zusätzliche Informationen“ = schon der Reiter */
  position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; margin:0; padding:0;
}
body.single-product div.product .woocommerce-tabs .panel p,
body.single-product div.product .woocommerce-tabs .panel ul,
body.single-product div.product .woocommerce-tabs .panel ol{ max-width:66ch; }
body.single-product div.product .woocommerce-tabs .panel p{ margin:0 0 1em; }
body.single-product div.product .woocommerce-tabs .panel > :last-child{ margin-bottom:0; }
/* Überschriften aus dem Produkt-Editor (dort teils H1, zentriert) – auf Abschnittsgröße, linksbündig */
body.single-product div.product .woocommerce-tabs .panel h1,
body.single-product div.product .woocommerce-tabs .panel h2,
body.single-product div.product .woocommerce-tabs .panel h3{
  margin:1.4em 0 .5em; max-width:24ch; color:var(--hk-tinte); text-align:left!important;
  font:800 var(--hk-h3)/1.05 var(--hk-font-display);
}
body.single-product div.product .woocommerce-tabs .panel h4,
body.single-product div.product .woocommerce-tabs .panel h5{ margin:1.2em 0 .4em; color:var(--hk-tinte); font:700 var(--hk-lead)/1.2 var(--hk-font-display); text-align:left!important; }
body.single-product div.product .woocommerce-tabs .panel > h2:first-child + h1,
body.single-product div.product .woocommerce-tabs .panel > h1:first-child{ margin-top:0; }
body.single-product div.product .woocommerce-tabs .panel ul{ margin:0 0 1.1em; padding:0; list-style:none; display:grid; gap:.55em; }
body.single-product div.product .woocommerce-tabs .panel ul li{ position:relative; padding-left:1.5em; }
body.single-product div.product .woocommerce-tabs .panel ul li::before{
  content:""; position:absolute; left:.1em; top:.62em; width:.5em; height:.5em; border-radius:50%;
  border:2px solid var(--hk-holzbraun); box-sizing:border-box;
}
body.single-product div.product .woocommerce-tabs .panel ol{ padding-left:1.4em; }
body.single-product div.product .woocommerce-tabs .panel a{ color:var(--hk-holzbraun); text-decoration:underline; overflow-wrap:anywhere; }
@media (hover:hover) and (pointer:fine){ body.single-product div.product .woocommerce-tabs .panel a:hover{ color:var(--hk-holzbraun-h); } }
body.single-product div.product .woocommerce-tabs .panel img{ max-width:100%; height:auto; border-radius:6px; }

/* Zusätzliche Informationen (Attribute) */
body.single-product div.product .woocommerce-tabs table.shop_attributes{
  width:100%; max-width:66ch; margin:0; border:0; border-collapse:collapse; border-top:1px solid var(--hk-pd-linie);
}
body.single-product div.product .woocommerce-tabs table.shop_attributes tr{ background:none!important; }
body.single-product div.product .woocommerce-tabs table.shop_attributes th,
body.single-product div.product .woocommerce-tabs table.shop_attributes td{
  padding:16px 0; border:0; border-bottom:1px solid var(--hk-pd-linie); background:none; text-align:left; vertical-align:top;
  font:500 var(--hk-body)/1.45 var(--hk-font-text); font-style:normal;
}
body.single-product div.product .woocommerce-tabs table.shop_attributes th{ width:38%; padding-right:24px; color:var(--hk-tinte-neben); font-weight:600; }
body.single-product div.product .woocommerce-tabs table.shop_attributes td p{ margin:0; padding:0; }

/* Rezensionen: Woo-Standard bleibt, englische 0-%-Balken des Zusatz-Plugins (MWB) ausgeblendet */
body.single-product .mwb_prfw_parent_avg_bar{ display:none; }
body.single-product div.product #reviews #comments{ margin:0 0 clamp(24px, 2vw, 40px); }
body.single-product div.product #reviews h2.woocommerce-Reviews-title{ margin:0 0 .6em; font:800 var(--hk-h3)/1.05 var(--hk-font-display); }
body.single-product div.product #reviews .woocommerce-noreviews{
  margin:0; padding:16px 22px; border-radius:var(--hk-radius); background:var(--hk-creme-tief); color:var(--hk-tinte);
  font:500 var(--hk-body)/1.5 var(--hk-font-text);
}
body.single-product div.product #reviews #comments ol.commentlist{ margin:0; padding:0; list-style:none; display:grid; gap:16px; }
body.single-product div.product #reviews #comments ol.commentlist li{ margin:0; padding:0; }
body.single-product div.product #reviews #comments ol.commentlist li .comment-text{
  margin:0; padding:20px 24px; border:0; border-radius:var(--hk-radius); background:var(--hk-creme-tief);
}
body.single-product div.product #reviews #comments ol.commentlist li img.avatar{ display:none; }
body.single-product div.product #review_form_wrapper{ max-width:66ch; }
body.single-product div.product #review_form #respond{ margin:0; padding:0; }
/* Zusatz-Plugin (MWB) zentriert das Formular auf 500 px – auf die Textspalte zurück */
body.single-product div.product #review_form.mwb_prfw_review_custom_wrapper,
body.single-product div.product #review_form{ margin:0; width:auto; max-width:66ch; float:none; }
body.single-product div.product #review_form .comment-reply-title{
  display:block; margin:0 0 .5em; color:var(--hk-tinte); font:800 var(--hk-lead)/1.2 var(--hk-font-display);
}
body.single-product div.product #review_form .comment-notes,
body.single-product div.product #review_form .comment-form-cookies-consent{ color:var(--hk-tinte-neben); font:500 var(--hk-klein)/1.5 var(--hk-font-text); }
body.single-product div.product #review_form label{ display:block; margin:0 0 6px; color:var(--hk-tinte); font:600 var(--hk-klein)/1.3 var(--hk-font-text); }
body.single-product div.product #review_form .comment-form-cookies-consent{ display:flex; align-items:flex-start; gap:10px; }
body.single-product div.product #review_form .comment-form-cookies-consent label{ display:inline; margin:0; font-weight:500; color:var(--hk-tinte-neben); }
body.single-product div.product #review_form .comment-form-cookies-consent input{ width:22px; height:22px; margin:1px 0 0; accent-color:var(--hk-holzbraun); flex:none; }
body.single-product div.product #review_form textarea,
body.single-product div.product #review_form input[type="text"],
body.single-product div.product #review_form input[type="email"]{
  width:100%; min-height:52px; box-sizing:border-box; padding:12px 16px; border:2px solid rgba(138,75,34,.32); border-radius:var(--hk-radius);
  background:var(--hk-creme); color:var(--hk-tinte); font:500 var(--hk-body)/1.45 var(--hk-font-text);
}
body.single-product div.product #review_form textarea{ min-height:160px; }
body.single-product div.product #review_form textarea:focus-visible,
body.single-product div.product #review_form input:focus-visible{ border-color:var(--hk-holzbraun); outline:3px solid var(--hk-fokus-hell); outline-offset:3px; }
body.single-product div.product #review_form p.stars a{ width:1.6em; height:1.6em; font-size:1.4rem; color:#c98b2b; }
body.single-product div.product #review_form p.stars a::before{ color:#c98b2b; }
body.single-product div.product #review_form .form-submit{ margin:8px 0 0; }
body.single-product div.product #review_form .form-submit input#submit,
body.single-product div.product #review_form .form-submit .submit{
  display:inline-flex; align-items:center; justify-content:center; min-height:52px; padding:0 30px; border:0; border-radius:999px; cursor:pointer;
  background:var(--hk-holzbraun); color:var(--hk-licht); font:600 var(--hk-button)/1.2 var(--hk-font-text);
  box-shadow:0 1px 0 rgba(255,255,255,.12) inset, 0 6px 18px -10px rgba(20,12,6,.55);
}
@media (hover:hover) and (pointer:fine){ body.single-product div.product #review_form .form-submit input#submit:hover{ background:var(--hk-holzbraun-h); } }
body.single-product div.product .star-rating{ color:#c98b2b; }

/* ==========================================================================
   5 · Ähnliche Produkte / Zubehör: dunkle Fläche mit Schüsselrand-Bogen, Karten auf einer Linie
   ========================================================================== */
body.single-product div.product section.related,
body.single-product div.product section.up-sells{
  position:relative; isolation:isolate; box-sizing:border-box;
  margin:clamp(48px, 4vw, 104px) 0 0; padding:calc(var(--hk-bogen-h) + clamp(56px, 5vw, 128px)) 0 clamp(64px, 5.6vw, 144px);
  color:var(--hk-licht);
}
body.single-product div.product section.up-sells + section.related{ margin-top:0; padding-top:0; }
body.single-product div.product .woocommerce-tabs + :is(section.related, section.up-sells){ margin-top:0; }
body.single-product div.product .woocommerce-tabs + :is(section.related, section.up-sells)::after{ background:var(--hk-creme-tief); }
body.single-product div.product section.up-sells + section.related::after{ display:none; }
/* Fläche randlos */
body.single-product div.product section.related::before,
body.single-product div.product section.up-sells::before{
  content:""; position:absolute; top:0; bottom:0; left:50%; z-index:-2; pointer-events:none;
  width:calc(100vw - var(--hk-scrollbar, 0px)); transform:translateX(-50%);
  background:var(--hk-abgeflammt) url("../kreis-ringe.svg") no-repeat left -10vw bottom -14vw / min(52vw, 860px) auto;
}
/* Bogen: die Creme-Fläche wölbt sich in die dunkle Fläche */
body.single-product div.product section.related::after,
body.single-product div.product section.up-sells::after{
  content:""; position:absolute; top:-1px; left:50%; z-index:-1; pointer-events:none;
  width:calc(100vw - var(--hk-scrollbar, 0px)); height:var(--hk-bogen-h); transform:translateX(-50%);
  background:var(--hk-creme); clip-path:ellipse(75.6% 400% at 50% -300%);
}
body.single-product div.product section.related > h2,
body.single-product div.product section.up-sells > h2{
  margin:0 0 clamp(32px, 3vw, 72px); max-width:18ch; color:var(--hk-licht);
  font:800 var(--hk-h2)/1 var(--hk-font-display);
}
body.single-product div.product section.related :focus-visible,
body.single-product div.product section.up-sells :focus-visible{ outline:3px solid var(--hk-fokus-dunkel); outline-offset:3px; }

/* Karten = dieselbe Produktkarte wie in der Shop-Liste (shop-liste.css §5/§6): weiße Karte, Radius 18, Foto 4:3 ganz sichtbar,
   Titel · Preis · Pflichtangaben · Button per Subgrid auf einer Linie. Hier auf der dunklen Fläche (wie die Bewertungskarten der Startseite). */
body.single-product div.product :is(section.related, section.up-sells) ul.products{
  display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); column-gap:clamp(14px, 1.3vw, 28px); row-gap:0;
  margin:0; padding:0; list-style:none;
}
body.single-product div.product :is(section.related, section.up-sells) ul.products::before,
body.single-product div.product :is(section.related, section.up-sells) ul.products::after{ display:none; content:none; }
body.single-product div.product :is(section.related, section.up-sells) ul.products li.product{
  --hk-karte-innen:clamp(18px, 1.4vw, 28px);
  float:none; width:auto; min-width:0; margin:0 0 clamp(18px, 1.6vw, 36px); box-sizing:border-box;
  position:relative; isolation:isolate; grid-row:span 8;
  display:grid; grid-template-rows:subgrid; grid-template-columns:minmax(0, 1fr); row-gap:0;
  padding:0 0 var(--hk-karte-innen); text-align:left; list-style:none;
  background:#fff; color:var(--hk-tinte); border-radius:18px;
  box-shadow:0 0 0 1px rgba(138,75,34,.12), 0 22px 44px -30px rgba(0,0,0,.7);
  transition:transform .25s ease, box-shadow .25s ease;
}
body.single-product div.product :is(section.related, section.up-sells) ul.products li.product :focus-visible{ outline-color:var(--hk-fokus-hell); }
@media (hover:hover) and (pointer:fine){
  body.single-product div.product :is(section.related, section.up-sells) ul.products li.product:hover{
    transform:translateY(-4px); box-shadow:0 0 0 1px rgba(138,75,34,.2), 0 28px 50px -28px rgba(0,0,0,.8);
  }
  body.single-product div.product :is(section.related, section.up-sells) ul.products li.product:hover img{ transform:scale(1.03); }
  body.single-product div.product :is(section.related, section.up-sells) ul.products li.product:hover .woocommerce-loop-product__title{ color:var(--hk-holzbraun); }
}
body.single-product div.product :is(section.related, section.up-sells) li.product > a.woocommerce-LoopProduct-link{
  grid-row:1 / 4; grid-column:1; display:grid; grid-template-rows:subgrid; grid-template-columns:minmax(0, 1fr);
  color:inherit; text-decoration:none; border-radius:18px 18px 0 0; overflow:hidden;
}
body.single-product div.product :is(section.related, section.up-sells) li.product a img{
  grid-row:1; display:block; width:100%; max-width:none; height:auto; aspect-ratio:4 / 3; margin:0;
  object-fit:cover; object-position:50% 50%; background:var(--hk-creme-tief); border-radius:18px 18px 0 0; box-shadow:none;   /* randlos wie die Startseiten-Kacheln */
  transition:transform .6s cubic-bezier(.2,.7,.2,1);
}
body.single-product div.product :is(section.related, section.up-sells) li.product .woocommerce-loop-product__title{
  grid-row:2; margin:clamp(16px, 1.3vw, 24px) var(--hk-karte-innen) 0; padding:0; max-width:none;
  color:var(--hk-tinte); font:700 clamp(1.125rem, 0.9rem + 0.45vw, 1.625rem)/1.18 var(--hk-font-display);
  letter-spacing:-.003em; text-wrap:pretty; hyphens:none; overflow-wrap:break-word; transition:color .2s ease;
}
body.single-product div.product :is(section.related, section.up-sells) li.product .price{
  grid-row:3; align-self:start; display:block; margin:clamp(12px, 1vw, 18px) var(--hk-karte-innen) 0; padding:0;
  color:var(--hk-holzbraun); font:800 clamp(1.375rem, 1.05rem + 0.6vw, 2rem)/1.1 var(--hk-font-display); font-variant-numeric:proportional-nums;
}
body.single-product div.product :is(section.related, section.up-sells) li.product .price del{ color:var(--hk-tinte-neben); opacity:1; font-size:.7em; font-weight:700; margin-right:.3em; }
body.single-product div.product :is(section.related, section.up-sells) li.product .price ins{ text-decoration:none; background:none; }
body.single-product div.product :is(section.related, section.up-sells) li.product .onsale{
  position:absolute; z-index:2; top:14px; left:auto; right:14px; margin:0; min-width:0; min-height:0;
  padding:8px 14px; border-radius:999px; background:var(--hk-holzbraun); color:var(--hk-licht); font:700 var(--hk-klein)/1 var(--hk-font-text);
}
/* Pflichtangaben */
body.single-product div.product :is(section.related, section.up-sells) li.product .wc-gzd-additional-info{
  margin:2px var(--hk-karte-innen) 0; padding:0; color:var(--hk-tinte-neben); font:500 var(--hk-klein)/1.45 var(--hk-font-text);
}
body.single-product div.product :is(section.related, section.up-sells) li.product .small-business-info{
  grid-row:4; margin-top:clamp(12px, 1vw, 16px); padding-top:clamp(12px, 1vw, 16px); border-top:1px solid rgba(138,75,34,.14);
}
body.single-product div.product :is(section.related, section.up-sells) li.product .shipping-costs-info{ grid-row:5; margin-top:6px; }
body.single-product div.product :is(section.related, section.up-sells) li.product .delivery-time-info{ grid-row:6; margin-top:2px; }
body.single-product div.product :is(section.related, section.up-sells) li.product :is(.shipping-costs-info, .delivery-time-info){ display:flex; align-items:flex-start; gap:8px; }
body.single-product div.product :is(section.related, section.up-sells) li.product :is(.shipping-costs-info, .delivery-time-info)::before{
  content:""; flex:none; width:18px; height:18px; margin-top:.14em; background:var(--hk-holzbraun);
  -webkit-mask:url("../icons/hk-versand.svg") center / contain no-repeat; mask:url("../icons/hk-versand.svg") center / contain no-repeat;
}
body.single-product div.product :is(section.related, section.up-sells) li.product .delivery-time-info::before{
  -webkit-mask-image:url("../icons/hk-uhr.svg"); mask-image:url("../icons/hk-uhr.svg");
}
body.single-product div.product :is(section.related, section.up-sells) li.product .wc-gzd-additional-info a{
  color:var(--hk-holzbraun); text-decoration:underline; text-underline-offset:.18em; text-decoration-thickness:1px;
  display:inline-block; padding:4px 0; margin:-4px 0;
}
body.single-product div.product :is(section.related, section.up-sells) li.product .delivery-time-data{ white-space:nowrap; }
/* Nicht vorrätig: Hinweis am Bild */
body.single-product div.product :is(section.related, section.up-sells) li.product.outofstock::after{
  content:"Nicht vorrätig"; position:absolute; z-index:2; top:14px; left:14px;
  padding:9px 14px 9px 12px; border-radius:999px; background:var(--hk-abgeflammt); color:var(--hk-licht);
  font:600 var(--hk-klein)/1 var(--hk-font-text); letter-spacing:.01em; box-shadow:0 6px 16px -10px rgba(20,12,6,.8); pointer-events:none;
}
body.single-product div.product :is(section.related, section.up-sells) li.product.outofstock a img{ filter:saturate(.6); }
/* Kaufbare Stücke zuerst, ausverkaufte ans Ende (Auswahl selbst kommt von WooCommerce) */
body.single-product div.product :is(section.related, section.up-sells) ul.products li.product.outofstock{ order:1; }
/* Buttons */
body.single-product div.product :is(section.related, section.up-sells) li.product .button{
  grid-row:7; align-self:end; justify-self:stretch;
  display:inline-flex; align-items:center; justify-content:center; gap:.5em; box-sizing:border-box;
  min-height:52px; margin:clamp(16px, 1.3vw, 22px) var(--hk-karte-innen) 0; padding:10px 24px;
  border:0; border-radius:999px; background:var(--hk-holzbraun); color:var(--hk-licht);
  font:600 var(--hk-button)/1.2 var(--hk-font-text); letter-spacing:.01em; text-align:center; text-decoration:none; text-transform:none;
  box-shadow:0 1px 0 rgba(255,255,255,.12) inset, 0 6px 18px -10px rgba(20,12,6,.55);
  transition:background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
body.single-product div.product :is(section.related, section.up-sells) li.product .button.ajax_add_to_cart::before{
  content:""; flex:none; width:1.15em; height:1.15em; background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.2l2.3 11h10.3l2-7.6H6.4'/%3E%3Ccircle cx='9.5' cy='19.5' r='1.4'/%3E%3Ccircle cx='17' cy='19.5' r='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.2l2.3 11h10.3l2-7.6H6.4'/%3E%3Ccircle cx='9.5' cy='19.5' r='1.4'/%3E%3Ccircle cx='17' cy='19.5' r='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.single-product div.product :is(section.related, section.up-sells) li.product .button:not(.ajax_add_to_cart)::after{
  content:""; flex:none; width:1em; height:1em; background:currentColor; margin-right:-.1em;
  -webkit-mask:url("../icons/hk-pfeil.svg") center / contain no-repeat; mask:url("../icons/hk-pfeil.svg") center / contain no-repeat;
  transition:transform .3s ease;
}
body.single-product div.product :is(section.related, section.up-sells) li.product .button:not(.add_to_cart_button){
  background:transparent; color:var(--hk-holzbraun); box-shadow:inset 0 0 0 2px currentColor;
}
@media (hover:hover) and (pointer:fine){
  body.single-product div.product :is(section.related, section.up-sells) li.product .button:hover{
    background:var(--hk-holzbraun-h); color:var(--hk-licht); transform:translateY(-2px);
    box-shadow:0 1px 0 rgba(255,255,255,.12) inset, 0 12px 24px -12px rgba(20,12,6,.6);
  }
  body.single-product div.product :is(section.related, section.up-sells) li.product .button:not(.add_to_cart_button):hover{
    background:rgba(138,75,34,.08); color:var(--hk-holzbraun-h); box-shadow:inset 0 0 0 2px currentColor;
  }
  body.single-product div.product :is(section.related, section.up-sells) li.product .button:not(.ajax_add_to_cart):hover::after{ transform:translateX(.25em); }
}
body.single-product div.product :is(section.related, section.up-sells) li.product .button:active{ transform:translateY(1px); }
body.single-product div.product :is(section.related, section.up-sells) li.product .button:focus-visible{ outline:3px solid var(--hk-fokus-hell); outline-offset:3px; }
body.single-product div.product :is(section.related, section.up-sells) li.product .button.loading{ opacity:.7; pointer-events:none; }
body.single-product div.product :is(section.related, section.up-sells) li.product .button.loading::after{
  content:""; position:static; flex:none; width:1em; height:1em; margin:0; box-sizing:border-box;
  border:2px solid currentColor; border-right-color:transparent; border-radius:50%; font-family:inherit; animation:hk-pd-dreh .8s linear infinite;
}
body.single-product div.product :is(section.related, section.up-sells) li.product .button.added::after{
  content:""; position:static; flex:none; width:.45em; height:.85em; margin:-.2em 0 0 .1em; box-sizing:border-box;
  border:solid currentColor; border-width:0 2.5px 2.5px 0; transform:rotate(45deg); font-family:inherit;
}
@keyframes hk-pd-dreh{ to{ transform:rotate(360deg); } }
body.single-product div.product :is(section.related, section.up-sells) li.product .added_to_cart{
  grid-row:8; justify-self:stretch; box-sizing:border-box;
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  min-height:48px; margin:10px var(--hk-karte-innen) 0; padding:8px 22px;
  border-radius:999px; background:transparent; color:var(--hk-holzbraun); box-shadow:inset 0 0 0 2px currentColor;
  font:600 var(--hk-button)/1.2 var(--hk-font-text); text-decoration:none;
}
body.single-product div.product :is(section.related, section.up-sells) li.product .star-rating{ display:none; }

/* ==========================================================================
   6 · Breiten
   ========================================================================== */
@media (max-width:1199px){
  body.single-product .site-main{ --hk-pd-spalten: minmax(0, 1fr) minmax(0, 1fr); --hk-pd-abstand: clamp(28px, 3.4vw, 48px); }
}
@media (min-width:980px) and (max-width:1199px){
  body.single-product div.product :is(section.related, section.up-sells) ul.products{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
}
@media (min-width:700px) and (max-width:979px){
  body.single-product div.product :is(section.related, section.up-sells) ul.products{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width:899px){
  body.single-product div.product{ display:block; }
  body.single-product div.product div.images{ margin:0 0 clamp(32px, 7vw, 48px); }
  body.single-product div.product > .onsale{ position:absolute; top:12px; left:12px; margin:0; }
  body.single-product div.product div.images .woocommerce-product-gallery__image > a > img{
    max-height:min(62svh, 520px); min-height:200px;
  }
  /* Vorschaubilder am Handy: eine wischbare Reihe statt mehrerer Zeilen – Preis und Kaufen rücken nach oben */
  body.single-product div.product div.images .flex-control-thumbs{
    display:flex; gap:8px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x proximity; scrollbar-width:none;
    margin-inline:calc(-1 * var(--hk-rand)); padding:6px var(--hk-rand); scroll-padding-inline:var(--hk-rand);   /* aktiver Rahmen nie angeschnitten */
  }
  body.single-product div.product div.images .flex-control-thumbs::-webkit-scrollbar{ display:none; }
  body.single-product div.product div.images .flex-control-thumbs li{ flex:0 0 64px; scroll-snap-align:start; }
  body.single-product div.product:not(.product_cat-drechselkurse-fuer-anfaenger):not(.product_cat-lohnschntt):not(.product_cat-mobile-drechselvorfuehrung):not(.product_cat-cnc-fraese):not(.product_cat-cnc-fraesteile) div.images.woocommerce-product-gallery--with-images::before{
    width:84px; height:84px; top:-14px; left:-8px; font-size:12px;
  }
  body.single-product div.product div.images .woocommerce-product-gallery__trigger{ top:10px; right:10px; width:48px; height:48px; }
  body.single-product div.product .product_title{ font-size:clamp(1.75rem, 1.1rem + 3.2vw, 2.5rem); max-width:none; }
  body.single-product div.product .summary > p.price{ font-size:clamp(1.75rem, 1.3rem + 2vw, 2.25rem); }

  /* Reiter: Liste oben (volle Breite), Text darunter */
  body.single-product div.product .woocommerce-tabs{ display:block; margin-top:clamp(48px, 10vw, 72px); padding:40px 0 56px; border-top:0; }
  body.single-product div.product .woocommerce-tabs::after{ background-size:110vw auto; background-position:right -50vw top -40vw; }
  body.single-product div.product .woocommerce-tabs ul.tabs{ position:static; margin:0 0 28px; }
  body.single-product div.product .woocommerce-tabs ul.tabs li a{ font-size:1.375rem; min-height:56px; padding-block:14px; }
  body.single-product div.product .woocommerce-tabs table.shop_attributes th{ width:42%; }

  body.single-product div.product section.related,
  body.single-product div.product section.up-sells{ margin-top:clamp(56px, 12vw, 80px); padding-bottom:56px; }
  body.single-product div.product section.related::before,
  body.single-product div.product section.up-sells::before{ background-size:120vw auto; background-position:left -50vw bottom -40vw; }
}
@media (max-width:699px){
  /* Produktkarte als Zeile wie in der Shop-Liste: Foto links, Titel + Preis rechts, Angaben und Button darunter */
  body.single-product div.product :is(section.related, section.up-sells) ul.products{ grid-template-columns:minmax(0, 1fr); }
  body.single-product div.product :is(section.related, section.up-sells) ul.products li.product{
    --hk-karte-innen:16px; grid-column:1 / -1; grid-row:auto;
    grid-template-columns:minmax(0, 40%) minmax(0, 1fr); grid-template-rows:none; column-gap:14px;
    padding:16px; margin-bottom:14px; border-radius:14px;
  }
  body.single-product div.product :is(section.related, section.up-sells) li.product > a.woocommerce-LoopProduct-link{
    grid-column:1 / -1; grid-row:auto; grid-template-columns:subgrid; grid-template-rows:auto auto 1fr; overflow:visible; border-radius:10px;
  }
  body.single-product div.product :is(section.related, section.up-sells) li.product a img{ grid-column:1; grid-row:1 / 4; align-self:start; border-radius:10px; aspect-ratio:4 / 3; }
  body.single-product div.product :is(section.related, section.up-sells) li.product .woocommerce-loop-product__title{ grid-column:2; grid-row:1; margin:0; font-size:1.0625rem; line-height:1.22; }
  body.single-product div.product :is(section.related, section.up-sells) li.product .price{ grid-column:2; grid-row:2; margin:10px 0 0; font-size:1.375rem; }
  body.single-product div.product :is(section.related, section.up-sells) li.product .wc-gzd-additional-info{ grid-column:1 / -1; grid-row:auto; margin-inline:0; }
  body.single-product div.product :is(section.related, section.up-sells) li.product .small-business-info{ margin-top:14px; padding-top:12px; }
  body.single-product div.product :is(section.related, section.up-sells) li.product :is(.button, .added_to_cart){ grid-column:1 / -1; grid-row:auto; margin-inline:0; }
  body.single-product div.product :is(section.related, section.up-sells) li.product.outofstock::after{ top:22px; left:22px; padding:6px 10px; letter-spacing:0; }
}

@media (prefers-reduced-motion:reduce){
  body.single-product div.product :is(section.related, section.up-sells) ul.products li.product,
  body.single-product div.product :is(section.related, section.up-sells) li.product img,
  body.single-product div.product :is(section.related, section.up-sells) li.product .button,
  body.single-product div.product form.cart .single_add_to_cart_button,
  body.single-product div.product .woocommerce-tabs ul.tabs li a{ transition:none; }
  body.single-product div.product :is(section.related, section.up-sells) li.product .button.loading::after{ animation:none; }
}

/* ==========================================================================
   7 · Mobile Kaufleiste (< 900 px, assets/kaufleiste.js)
   Schmale feste Leiste unten: Preis + „zzgl. Versandkosten“ links, Kaufen rechts. Steht schon beim Laden da und
   verschwindet nur, solange der echte „In den Warenkorb“-Knopf im Bild ist. Liegt fest über der Seite → kein Layout-Sprung.
   Shop-Hinweis und Borlabs-Kreis gibt es am Handy auf Produktseiten nicht (Platz für die Leiste).
   ========================================================================== */
.hk-kaufleiste{ display:none; }
@media (max-width:899px){
  html.hk-hat-kaufleiste{ --hk-kaufleiste-h:68px; --hk-kaufleiste-unten:calc(var(--hk-kaufleiste-h) + env(safe-area-inset-bottom, 0px)); }
  .hk-kaufleiste{
    position:fixed; left:0; right:0; bottom:0; z-index:190; box-sizing:border-box;
    display:flex; align-items:center; justify-content:space-between; gap:14px;
    min-height:var(--hk-kaufleiste-unten); padding:8px max(var(--hk-rand, 16px), env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(var(--hk-rand, 16px), env(safe-area-inset-left, 0px));
    background:var(--hk-abgeflammt); color:var(--hk-licht);
    box-shadow:0 -1px 0 rgba(214,168,115,.22), 0 -14px 30px -18px rgba(20,12,6,.75);
    transform:translateY(100%); visibility:hidden;
    transition:transform .28s cubic-bezier(.2,.7,.2,1), visibility 0s linear .28s;
  }
  html.hk-kaufleiste-an .hk-kaufleiste{ transform:none; visibility:visible; transition:transform .28s cubic-bezier(.2,.7,.2,1), visibility 0s; }
  .hk-kaufleiste__preisblock{ display:flex; flex-direction:column; align-items:flex-start; min-width:0; }
  .hk-kaufleiste__preis{
    display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
    color:var(--hk-licht); font:800 clamp(1.25rem, 1rem + 1.4vw, 1.5rem)/1.1 var(--hk-font-display); font-variant-numeric:proportional-nums;
  }
  .hk-kaufleiste__preis :is(.woocommerce-Price-amount, bdi){ color:inherit; }
  .hk-kaufleiste__preis del{ margin-right:.3em; color:var(--hk-licht-neben); font-size:.7em; font-weight:700; opacity:1; }
  .hk-kaufleiste__preis ins{ text-decoration:none; background:none; }
  .hk-kaufleiste__ab{ font-size:.72em; font-weight:700; color:var(--hk-licht-neben); } /* „ab 19,00 €“ bei Preisspannen (kaufleiste.js) */
  .hk-kaufleiste__versand{
    display:inline-flex; align-items:center; box-sizing:border-box; min-height:44px; padding:0; margin:-12px 0 -12px;   /* Tippfläche ≥ 44 px ohne die Leiste zu erhöhen */
    color:var(--hk-hirnholz); font:500 .8125rem/1.3 var(--hk-font-text);
    text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:.18em;
  }
  .hk-kaufleiste__knopf{
    flex:none; display:inline-flex; align-items:center; justify-content:center; gap:.5em; box-sizing:border-box;
    min-height:48px; margin:0; padding:0 22px; border:0; border-radius:999px; cursor:pointer;
    background:var(--hk-hirnholz); color:var(--hk-abgeflammt);
    font:600 1rem/1.2 var(--hk-font-text); letter-spacing:.01em; white-space:nowrap;
    box-shadow:0 1px 0 rgba(255,255,255,.18) inset;
    transition:background-color .2s ease, transform .2s ease;
    -webkit-tap-highlight-color:transparent;
  }
  .hk-kaufleiste__knopf:active{ transform:translateY(1px); background:var(--hk-hirnholz-h); }
  .hk-kaufleiste :focus-visible{ outline:3px solid var(--hk-fokus-dunkel, var(--hk-hirnholz)); outline-offset:3px; }
  .hk-kaufleiste__knopf.ist-am-laden{ opacity:.75; }
  .hk-kaufleiste__knopf.ist-am-laden::after{
    content:""; flex:none; width:1em; height:1em; box-sizing:border-box;
    border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:hk-pd-dreh .8s linear infinite;
  }
  /* Seite endet über der Leiste (dauerhaft, damit nichts springt). Am body statt am Fuß: nach dem Fuß stehen noch
     Elemente wie der Germanized-Knopf „Vertrag widerrufen“ (p.eu-owb-order-withdraw-from-contract-button) – die lagen sonst unter der Leiste. */
  html.hk-hat-kaufleiste body.single-product{ padding-bottom:calc(var(--hk-kaufleiste-unten) + 8px); }
  /* Shop-Hinweis (CNC usw.) entfällt am Handy, solange die Produktseite eine Kaufleiste hat – beide unten fest übereinander
     wären zu viel; der Hinweis erscheint auf allen anderen Seiten weiter. Borlabs-Kreis ist unter 900 px ganz aus (shop-basis.css). */
  html.hk-hat-kaufleiste :is(p.demo_store, .woocommerce-store-notice){ display:none!important; }
  html.hk-hat-kaufleiste .grecaptcha-badge{ transition:transform .28s cubic-bezier(.2,.7,.2,1); }
  html.hk-kaufleiste-an .grecaptcha-badge{ transform:translateY(calc(-1 * var(--hk-kaufleiste-unten))); }
}
@media (max-width:899px) and (prefers-reduced-motion:reduce){
  .hk-kaufleiste, html.hk-kaufleiste-an .hk-kaufleiste,
  html.hk-hat-kaufleiste .grecaptcha-badge{ transition:none; }
  .hk-kaufleiste__knopf.ist-am-laden::after{ animation:none; }
}

/* ==========================================================================
   8 · Ähnliche Produkte („Passt dazu“): Raster linksbündig (Abschluss-Review 15.11.2026; vorher war eine
   unvollständige letzte Reihe mittig gestellt – das wirkte bei 1–3 Karten wie verrutscht).
   Doppelt so viele Rasterspalten, jede Karte belegt zwei (gleiche Kartenbreite wie bisher). Handy (< 700 px): Karten als Zeilen.
   ========================================================================== */
@media (min-width:1200px){
  body.single-product div.product :is(section.related, section.up-sells) ul.products{ --hk-pd-rel-gap:clamp(14px, 1.3vw, 28px); column-gap:var(--hk-pd-rel-gap); grid-template-columns:repeat(8, minmax(0,1fr)); }
  body.single-product div.product :is(section.related, section.up-sells) ul.products > li.product{ grid-column:span 2; }
}
@media (min-width:980px) and (max-width:1199px){
  body.single-product div.product :is(section.related, section.up-sells) ul.products{ --hk-pd-rel-gap:clamp(14px, 1.3vw, 28px); column-gap:var(--hk-pd-rel-gap); grid-template-columns:repeat(6, minmax(0,1fr)); }
  body.single-product div.product :is(section.related, section.up-sells) ul.products > li.product{ grid-column:span 2; }
}
@media (min-width:700px) and (max-width:979px){
  body.single-product div.product :is(section.related, section.up-sells) ul.products{ --hk-pd-rel-gap:clamp(14px, 1.3vw, 28px); column-gap:var(--hk-pd-rel-gap); grid-template-columns:repeat(4, minmax(0,1fr)); }
  body.single-product div.product :is(section.related, section.up-sells) ul.products > li.product{ grid-column:span 2; }
}

/* ==========================================================================
   9 · Abzeichen „Ansehen“ auf dem Produktfoto (Kevin 15.11.2026, wie shop-liste.css §12)
   Zeigt, dass Foto und Titel zur Produktseite führen – ohne zweiten Button. Liegt als ::after des Produkt-Links
   in derselben Rasterzelle wie das Foto (unten rechts; „Nicht vorrätig“ sitzt oben links). Hover der ganzen Karte
   (Anheben, Foto-Zoom, Titel holzbraun) steht bereits oben; hier färbt sich zusätzlich das Abzeichen.
   ========================================================================== */
/* Foto fest in Spalte 1 (sonst schiebt das fest platzierte Abzeichen das Foto in eine zweite Spalte) */
body.single-product div.product :is(section.related, section.up-sells) ul.products li.product > a.woocommerce-LoopProduct-link:has(img) > img{ grid-column:1; }
body.single-product div.product :is(section.related, section.up-sells) ul.products li.product > a.woocommerce-LoopProduct-link:has(img)::after{
  content:"Ansehen"; grid-row:1; grid-column:1; align-self:end; justify-self:end; z-index:1;
  display:inline-flex; align-items:center; box-sizing:border-box; height:34px; margin:0 12px 12px 0; padding:0 14px 0 34px;
  border:1.5px solid var(--hk-hirnholz); border-radius:999px;
  background:var(--hk-abgeflammt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6a873' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 20 20'/%3E%3C/svg%3E") 12px 50% / 16px 16px no-repeat; color:var(--hk-licht);
  font:600 .875rem/1 var(--hk-font-text); letter-spacing:.01em; white-space:nowrap;
  box-shadow:0 6px 18px -8px rgba(20,12,6,.75); pointer-events:none;
  transition:background-color .2s ease, border-color .2s ease;
}
@media (hover:hover) and (pointer:fine){
  body.single-product div.product :is(section.related, section.up-sells) ul.products li.product:hover a.woocommerce-LoopProduct-link::after{ background-color:var(--hk-holzbraun); border-color:var(--hk-holzbraun); }
}
@media (max-width:699px){
  /* Handy: schmale Leiste bündig an der Unterkante des Fotos statt Knopf mitten im Bild (wie shop-liste.css §12; Foto 4:3) */
  body.single-product div.product :is(section.related, section.up-sells) ul.products li.product > a.woocommerce-LoopProduct-link:has(img)::after{
    grid-row:1 / 4; align-self:start; justify-self:stretch; justify-content:center;
    height:26px; margin:calc(75% - 26px) 0 0 0; padding:0 0 0 20px;
    border:0; border-top:1px solid rgba(214,168,115,.55); border-radius:0 0 10px 10px; box-shadow:none;
    background-color:rgba(36,23,14,.82); background-position:calc(50% - 33px) 50%; background-size:13px 13px;
    font-size:.75rem; letter-spacing:.02em;
  }
}
@media (prefers-reduced-motion:reduce){ body.single-product div.product :is(section.related, section.up-sells) ul.products li.product > a.woocommerce-LoopProduct-link:has(img)::after{ transition:none; } }

/* ==========================================================================
   RICHTUNG B · Produktseite Feinschliff (Kaufleiste, Galerie und Plaketten bleiben)
   „Passt dazu“ (Ähnliche Produkte / Zubehör): gerade Kante mit Hirnholz-Fuge statt Schüsselrand-Bogen,
   die Karten stehen auf einem Regalbrett (Holzleiste unter der Reihe). Überschrift kommt aus inc/shop-design.php.
   ========================================================================== */
body.single-product div.product section.related,
body.single-product div.product section.up-sells{ padding-top:clamp(64px, 5.6vw, 136px); }
body.single-product div.product section.related::after,
body.single-product div.product section.up-sells::after,
body.single-product div.product .woocommerce-tabs + :is(section.related, section.up-sells)::after{
  top:0; height:6px; background:var(--hk-fuge); clip-path:none;
}
body.single-product div.product section.up-sells + section.related{ padding-top:clamp(40px, 3.6vw, 88px); }
body.single-product div.product section.related > h2,
body.single-product div.product section.up-sells > h2{ font-size:clamp(2.5rem, 1.2rem + 4vw, 6.5rem); line-height:.92; }
@media (min-width:700px){
  body.single-product div.product :is(section.related, section.up-sells) ul.products{ position:relative; padding-bottom:22px; }
  body.single-product div.product :is(section.related, section.up-sells) ul.products li.product{ margin-bottom:0; }
  body.single-product div.product :is(section.related, section.up-sells) ul.products::after{
    content:""; display:block; position:absolute; left:-18px; right:-18px; bottom:0; height:14px; border-radius:4px;
    background:linear-gradient(to bottom, color-mix(in srgb, var(--hk-hirnholz) 60%, var(--hk-licht)) 0 4px, var(--hk-hirnholz) 4px 100%);
    box-shadow:0 16px 20px -10px rgba(0,0,0,.6);
  }
}

/* ==========================================================================
   ABSCHLUSS-FIXES (Abschluss-Review 15.11.2026)
   ========================================================================== */
/* H1 aus dem Produkttext wird als H2 ausgegeben (inc/produkt.php, Klasse hk-war-h1) – gleiche Optik wie vorher.
   Steht sie ganz oben (kein Reiter-Titel davor), darf sie nicht unter die versteckte Reiter-Überschrift fallen. */
body.single-product div.product .woocommerce-tabs .panel > h2:first-child + h2.hk-war-h1{ margin-top:0; }
body.single-product div.product .woocommerce-tabs .panel > h2.hk-war-h1:first-child{
  position:static; width:auto; height:auto; overflow:visible; clip-path:none; white-space:normal; margin:0 0 .5em;
}
/* Handy: Brotkrumen nur „‹ Kategorie“ (eine Zeile, Weg zurück). Woo gibt die Trenner und den Produktnamen als reinen
   Text aus – der wird über font-size:0 ausgeblendet, nur der letzte Link (die Kategorie des Produkts) bleibt. */
@media (max-width:899px){
  body.single-product .site-main > .woo-breadcrumbs{ font-size:0!important; line-height:0!important; padding-block:8px 6px; }
  body.single-product .woo-breadcrumbs :is(a, .breadcrumb_last){ display:none; }
  body.single-product .woo-breadcrumbs a:last-of-type{
    display:inline-flex; align-items:center; min-height:44px; margin-block:0; padding-block:0;
    font-size:var(--hk-klein); line-height:1.3; text-decoration:none;
  }
  body.single-product .woo-breadcrumbs a:last-of-type::before{ content:"‹"; margin-right:.4em; font-size:1.35em; line-height:1; }
}
/* Versandkosten-Zeile auf der Produktseite: direkt unter dem Preis */
body.single-product div.product .summary .hk-versandzeile{ margin:.2em 0 .6em; font-size:var(--hk-klein); }

/* Hinweis über den Bewertungen: nur Käufer dürfen bewerten (inc/produkt.php, § 5b UWG) */
body.single-product div.product .hk-bewertung-hinweis{
  display:flex; align-items:center; gap:.5em; margin:0 0 18px; color:var(--hk-tinte-neben); font:500 var(--hk-klein)/1.45 var(--hk-font-text);
}
body.single-product div.product .hk-bewertung-hinweis::before{
  content:""; flex:none; width:18px; height:18px; background:var(--hk-holzbraun);
  -webkit-mask:url("../icons/hk-unikat.svg") center / contain no-repeat; mask:url("../icons/hk-unikat.svg") center / contain no-repeat;
}

/* Ausverkaufte Unikate: Block „Schon verkauft – diese Stücke sind noch da“ (inc/produkt.php §7) */
body.single-product div.product section.hk-av .hk-av-text{ max-width:62ch; margin:-.4em 0 1.4em; color:var(--hk-licht-neben); font:400 var(--hk-body, 1.0625rem)/1.6 var(--hk-font-text); }
body.single-product div.product section.hk-av .hk-av-knoepfe{ display:flex; flex-wrap:wrap; gap:12px; margin:28px 0 0; }
body.single-product div.product section.hk-av a.hk-av-knopf{ display:inline-flex; align-items:center; min-height:48px; padding:0 22px; border-radius:999px; background:var(--hk-hirnholz); color:var(--hk-abgeflammt); font:600 1rem/1 var(--hk-font-text); text-decoration:none; }
body.single-product div.product section.hk-av a.hk-av-knopf--kontur{ background:transparent; color:var(--hk-hirnholz); box-shadow:inset 0 0 0 2px var(--hk-hirnholz); }
@media (hover:hover) and (pointer:fine){ body.single-product div.product section.hk-av a.hk-av-knopf:hover{ filter:brightness(.92); } }
