/* Holzkopf · Seiten-Gestaltung: kasse
   Warenkorb, Kasse (Block-Kasse + Germanized), Bestellbestätigung, Mein Konto (Login, Passwort vergessen,
   Dashboard, Bestellungen, Adressen, Kontodetails, Downloads).
   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

   NUR Optik. Keine Logik, keine Felder/Checkboxen/Pflichtangaben entfernt.
   Einzige Ausblendung: doppelte Lieferzeit-Zeile mit Rohschlüssel „gzd-delivery_time:“ (die Lieferzeit selbst bleibt sichtbar).

   Alle Regeln hängen an body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content
   (#content = <main> von Hello auf diesen Seiten). Die ID schlägt die vielen Plugin-Selektoren (Woo, Block-Kasse,
   Germanized, Shiptastic, Hello-Reset) ohne !important. */

/* ==========================================================================
   0 · Werte für diesen Bereich
   ========================================================================== */
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account){
  --k-linie:      rgba(138,75,34,.16);                                         /* Kachelrahmen (SYSTEM §7) */
  --k-linie-dunkel: rgba(248,243,236,.14);                                     /* Trennlinie auf Abgeflammt */
  --k-feld-rand:  color-mix(in srgb, var(--hk-holzbraun) 70%, var(--hk-creme)); /* Feldrand, Kontrast ≥ 3:1 auf Weiß */
  --k-ring:       rgba(138,75,34,.14);                                          /* Fokus-Schein wie Kopf-Suche */
  --k-feld-h:     60px;
  --k-schatten:   0 1px 0 rgba(255,255,255,.12) inset, 0 6px 18px -10px rgba(20,12,6,.55);
  --k-schatten-h: 0 1px 0 rgba(255,255,255,.12) inset, 0 12px 24px -12px rgba(20,12,6,.6);
  --k-innen:      clamp(20px, 1.8vw, 36px);                                     /* Innenabstand Karten */
  --k-abstand:    clamp(12px, 1.2vw, 24px);                                     /* Abstand zwischen Karten */
  --k-spalte:     max(var(--hk-rand), calc((100% - var(--hk-max)) / 2));        /* gleiche Linie wie Kopf und Seitenkopf */
  --k-fehler:     var(--wc-red, #a00);
}

/* ==========================================================================
   1 · Rahmen: Inhalt in der 1840er-Spalte, Titel und Inhalt auf einer Linie
   ========================================================================== */
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content{
  max-width:none; width:100%; margin-inline:0; padding-inline:0;
  padding-bottom:var(--hk-raum);
  font-family:var(--hk-font-text); font-size:var(--hk-body); line-height:1.55;
}
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content > .page-header,
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content > .page-content{
  padding-inline:var(--k-spalte);
}
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content > .page-header .entry-title{
  padding-inline:0; margin-inline:0;
}
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content > .page-content > .woocommerce{ margin:0; }

/* Zwischentitel im Inhalt (Warenkorb-Summe, Anmelden, Adressen, Bestelldetails …) */
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content .page-content h2,
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content .page-content h3:not(.wc-block-components-product-name){
  color:var(--hk-tinte); font-family:var(--hk-font-display); font-weight:800; line-height:1.02;
  letter-spacing:-.005em; text-wrap:balance; -webkit-hyphens:manual; hyphens:manual;
}
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content .page-content h2{ font-size:var(--hk-h3); margin:0 0 clamp(16px, 1.4vw, 28px); }
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content .page-content h3:not(.wc-block-components-product-name){ font-size:clamp(1.25rem, 1rem + .6vw, 1.75rem); margin:0 0 12px; }

/* Links im Text: Holzbraun, unterstrichen (Hello-Rosa raus) */
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content .page-content a{
  color:var(--hk-holzbraun); text-decoration:underline; text-decoration-thickness:1.5px; text-underline-offset:.18em;
}
@media (hover:hover) and (pointer:fine){
  body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content .page-content a:hover{ color:var(--hk-holzbraun-h); }
}

/* ==========================================================================
   2 · Buttons (Haupt = gefüllt, Zweit = Kontur) – genau wie Startseite
   ========================================================================== */
/* Hello-Reset färbt jeden <button> rosa umrandet (auch bei Hover/Fokus) – im Bereich neutral */
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content button:not(.button):not(.wc-block-components-button),
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content button:not(.button):not(.wc-block-components-button):is(:hover, :focus, :active){
  border-color:transparent; background-color:transparent; color:inherit;
}

body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content :is(.button, .wc-block-components-button:not(.is-link), .lost_password a, .woocommerce-Address-title .edit){
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  min-height:52px; height:auto; padding:0 28px; margin:0; box-sizing:border-box;
  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; white-space:normal; cursor:pointer;
  box-shadow:var(--k-schatten); outline-offset:3px;
  transition:background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content :is(.button, .wc-block-components-button:not(.is-link)):is(:focus, :active){
  background:var(--hk-holzbraun); color:var(--hk-licht); box-shadow:var(--k-schatten);
}
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content :is(.button, .wc-block-components-button:not(.is-link)):active{ transform:translateY(1px); }
@media (hover:hover) and (pointer:fine){
  body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content :is(.button, .wc-block-components-button:not(.is-link)):hover{
    background:var(--hk-holzbraun-h); color:var(--hk-licht); transform:translateY(-2px); box-shadow:var(--k-schatten-h);
  }
}
/* Zweit-Button (Kontur): Gutschein, Warenkorb aktualisieren, Passwort vergessen, Adresse bearbeiten, Rechnung … */
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content :is(
  .actions .button, .lost_password a, .woocommerce-Address-title .edit, .woocommerce-orders-table .button:not(.view),
  .woocommerce-MyAccount-content .woocommerce-info .button, .shipping-calculator-form .button){
  background:transparent; color:var(--hk-holzbraun); box-shadow:inset 0 0 0 2px currentColor;
}
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content :is(
  .actions .button, .lost_password a, .woocommerce-Address-title .edit, .woocommerce-orders-table .button:not(.view),
  .woocommerce-MyAccount-content .woocommerce-info .button, .shipping-calculator-form .button):is(:focus, :active){
  background:transparent; color:var(--hk-holzbraun); box-shadow:inset 0 0 0 2px currentColor;
}
@media (hover:hover) and (pointer:fine){
  body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content :is(
    .actions .button, .lost_password a, .woocommerce-Address-title .edit, .woocommerce-orders-table .button:not(.view),
    .woocommerce-MyAccount-content .woocommerce-info .button, .shipping-calculator-form .button):not(:disabled):hover{
    background:rgba(138,75,34,.08); color:var(--hk-holzbraun-h); box-shadow:inset 0 0 0 2px currentColor; transform:translateY(-2px);
  }
}
/* gesperrt (z. B. „Warenkorb aktualisieren“ ohne Änderung) */
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content :is(.button, .wc-block-components-button):is(:disabled, [disabled], .disabled){
  padding:0 28px; opacity:.45; cursor:not-allowed; transform:none; color:var(--hk-holzbraun);
}
/* Pfeil an „Weiter zur Kasse“ und „Zurück zum Shop“ */
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content :is(.checkout-button, .return-to-shop .button)::after{
  content:""; flex:none; width:1.05em; height:1.05em; background:currentColor;
  -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;
}
@media (hover:hover) and (pointer:fine){
  body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content :is(.checkout-button, .return-to-shop .button):hover::after{ transform:translateX(.25em); }
}

/* ==========================================================================
   3 · Felder (klassisch und Block-Kasse)
   ========================================================================== */
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content :is(
  input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=url], textarea, select){
  -webkit-appearance:none; appearance:none; box-sizing:border-box; width:100%;
  min-height:56px; margin:0; padding:0 16px;
  border:1.5px solid var(--k-feld-rand)!important; /* !important: Plugin „WP Bewertung“ setzt auf JEDER Seite input{border:… !important} */ border-radius:var(--hk-radius); background-color:#fff;
  color:var(--hk-tinte); font:500 17px/1.3 var(--hk-font-text); /* 17 px: iOS zoomt erst unter 16 px */
  box-shadow:none; outline:0; transition:border-color .2s ease, box-shadow .2s ease;
}
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content textarea{ min-height:120px; padding:14px 16px; line-height:1.5; resize:vertical; }
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content select{
  padding-right:48px;
  /* Pfeil = hk-chevron-unten.svg in Holzbraun (als Hintergrund kennt SVG kein currentColor) */
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a4b22' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 20px 20px;
}
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content :is(input, textarea, select):focus{
  border-color:var(--hk-holzbraun)!important; box-shadow:0 0 0 4px var(--k-ring); outline:0;
}
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content :is(input, textarea, select):focus-visible{
  outline:3px solid var(--hk-holzbraun); outline-offset:2px;
}
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content ::placeholder{ color:var(--hk-tinte-neben); opacity:1; }

/* klassische Formulare: Beschriftung über dem Feld */
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content .form-row{ margin:0 0 20px; padding:0; }
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content .form-row > label:not(.woocommerce-form__label-for-checkbox):not(.screen-reader-text),
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content .woocommerce-form-row > label:not(.woocommerce-form__label-for-checkbox):not(.screen-reader-text){
  display:block; margin:0 0 8px; color:var(--hk-tinte); font:600 var(--hk-klein)/1.35 var(--hk-font-text);
}
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content .form-row .required{ color:var(--hk-holzbraun); text-decoration:none; border:0; font-weight:700; }
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content .form-row .optional{ color:var(--hk-tinte-neben); font-weight:500; }
/* klassische Checkboxen/Radios: Holzbraun, groß genug zum Tippen */
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content input:is([type=checkbox], [type=radio]):not(.wc-block-components-checkbox__input):not(.wc-block-components-radio-control__input){
  width:22px; height:22px; margin:0; flex:none; accent-color:var(--hk-holzbraun); cursor:pointer; vertical-align:middle;
}
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content .woocommerce-form__label-for-checkbox{
  display:inline-flex; align-items:center; gap:12px; min-height:44px; cursor:pointer;
  color:var(--hk-tinte); font:500 var(--hk-body)/1.4 var(--hk-font-text);
}
/* Passwort-Auge: 44 px Tippfläche, mittig im Feld */
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content .password-input{ display:block; position:relative; }
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content .password-input input{ padding-right:60px; }
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content .show-password-input{
  position:absolute; top:50%; right:6px; transform:translateY(-50%);
  width:44px; height:44px; padding:0; border:0; border-radius:8px; display:grid; place-items:center; cursor:pointer;
}
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content .show-password-input::before{ position:static; margin:0; }
@media (hover:hover) and (pointer:fine){
  body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content .show-password-input:hover{ background-color:var(--hk-creme-tief); }
}

/* ==========================================================================
   4 · Hinweise (klassisch und Block)
   ========================================================================== */
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content :is(.woocommerce-info, .woocommerce-message, .woocommerce-error, .woocommerce-notice:not(.woocommerce-thankyou-order-received)){
  position:relative; display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px;
  margin:0 0 var(--k-abstand); padding:18px 22px 18px 60px; list-style:none;
  border:1px solid var(--k-linie); border-left:4px solid var(--hk-holzbraun); 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:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content :is(.woocommerce-info, .woocommerce-message, .woocommerce-error)::before{
  position:absolute; left:22px; top:50%; transform:translateY(-50%); margin:0; color:var(--hk-holzbraun);
}
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content :is(.woocommerce-info, .woocommerce-message, .woocommerce-error)::after{ display:none; }
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content .woocommerce-error{ border-left-color:var(--k-fehler); }
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content .woocommerce-error::before{ color:var(--k-fehler); }
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) .button{ order:2; margin-left:auto; float:none; min-height:48px; }
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content .woocommerce-error li{ margin:0; }

/* Block-Kasse: Hinweisbanner */
body.woocommerce-checkout #content .wc-block-components-notice-banner{
  padding:16px 18px; gap:14px; border:1px solid var(--k-linie); border-left:4px solid var(--hk-holzbraun);
  border-radius:var(--hk-radius); background:var(--hk-creme-tief); color:var(--hk-tinte);
  font:500 var(--hk-klein)/1.5 var(--hk-font-text);
}
body.woocommerce-checkout #content .wc-block-components-notice-banner > svg{ background-color:var(--hk-holzbraun); fill:var(--hk-licht); height:24px; width:24px; }
body.woocommerce-checkout #content .wc-block-components-notice-banner.is-error{ border-left-color:var(--k-fehler); }
body.woocommerce-checkout #content .wc-block-components-notice-banner.is-error > svg{ background-color:var(--k-fehler); }
body.woocommerce-checkout #content .wc-block-components-validation-error{ color:var(--k-fehler); font-size:var(--hk-klein); }

/* ==========================================================================
   5 · WARENKORB  (.woocommerce-cart) – Richtung B „Drechselbank“ (inc/shop-design.php, shop-design.js)
   Dunkle Werkbank: Kopf mit Schritte-Stempeln, Drechselstab bis versandkostenfrei, links der helle
   „Lieferschein“ (Positionen, Mengen-Knöpfe, Entfernen, Gutschein-Klappe), rechts die Summe auf dunklem Brett
   mit Hirnholz-Rahmen. Darunter (nur mit gepflegten Cross-Sells) „Passt dazu“ und das Vertrauensband.
   Alles nur Optik über WooCommerce-Hooks – Formular, Mengenfelder, Gutschein und Aktualisieren bleiben die von WooCommerce.
   ========================================================================== */
body.woocommerce-cart #content{ background:var(--hk-abgeflammt); color:var(--hk-licht); padding-bottom:0; }
body.woocommerce-cart #content .page-content > .woocommerce{ position:relative; }
body.woocommerce-cart #content .page-content > .woocommerce:has(> .wc-empty-cart-message){ padding-bottom:var(--hk-raum); }
body.woocommerce-cart #content .page-content > .woocommerce:has(> .wc-empty-cart-message)::after{ /* Hirnholz-Fuge zum gleich dunklen Fuß */
  content:""; position:absolute; left:50%; bottom:0; width:calc(100vw - var(--hk-scrollbar, 0px)); height:6px; transform:translateX(-50%); background:var(--hk-fuge);
}
body.woocommerce-cart #content .woocommerce-notices-wrapper:empty{ display:none; }

@media (min-width:1100px){
  body.woocommerce-cart #content .page-content > .woocommerce:has(> .woocommerce-cart-form){
    display:grid; grid-template-columns:minmax(0, 1fr) minmax(400px, 31%); column-gap:clamp(40px, 4vw, 104px); align-items:start;
  }
  body.woocommerce-cart #content .woocommerce > *{ grid-column:1 / -1; }
  body.woocommerce-cart #content .woocommerce > .woocommerce-cart-form{ grid-column:1; }
  body.woocommerce-cart #content .woocommerce > .cart-collaterals{ grid-column:2; position:sticky; top:calc(var(--hk-kopf-h) + 24px); }
}
body.woocommerce-cart #content .cart-collaterals{ width:auto; float:none; margin-bottom:var(--hk-raum); }
body.woocommerce-cart #content .cart-collaterals::before,
body.woocommerce-cart #content .cart-collaterals::after{ display:none; }

/* ---------- Lieferschein ---------- */
body.woocommerce-cart #content .woocommerce-cart-form{
  position:relative; box-sizing:border-box; margin:0 var(--hk-rahmen-versatz) calc(var(--hk-raum) + var(--hk-rahmen-versatz)) 0;
  padding:clamp(20px, 2.2vw, 44px); border-radius:var(--hk-radius);
  background:var(--hk-creme); color:var(--hk-tinte);
  box-shadow:calc(var(--hk-rahmen-versatz) * 1.2) calc(var(--hk-rahmen-versatz) * 1.2) 0 var(--hk-holzbraun), 0 40px 60px -40px rgba(0,0,0,.8);
}
body.woocommerce-cart #content .hk-lieferschein-kopf{
  display:flex; align-items:baseline; justify-content:space-between; gap:16px;
  padding-bottom:16px; border-bottom:1.5px solid var(--hk-holzbraun);
}
body.woocommerce-cart #content .hk-lieferschein-kopf h2{ margin:0; color:var(--hk-tinte); font:800 var(--hk-h3)/1 var(--hk-font-display); }
.hk-lieferschein-zahl{ color:var(--hk-tinte-neben); font:500 var(--hk-klein)/1.2 var(--hk-font-text); white-space:nowrap; }

body.woocommerce-cart #content table.shop_table.cart{ display:block; width:100%; margin:0; border:0; border-radius:0; background:transparent; }
body.woocommerce-cart #content table.cart thead{ display:none; }
body.woocommerce-cart #content table.cart tbody{ display:block; }
body.woocommerce-cart #content table.cart tr.cart_item{
  --bild:clamp(88px, 8vw, 148px);
  display:grid; grid-template-columns:var(--bild) minmax(0, 1fr) auto;
  grid-template-areas:"bild name summe" "bild preis summe" "bild menge weg";
  column-gap:clamp(16px, 2vw, 36px); row-gap:6px; align-items:center;
  padding:clamp(20px, 2vw, 32px) 0; border-bottom:1.5px dashed rgba(138,75,34,.35); /* Abreißkante wie auf einem Lieferschein */
}
body.woocommerce-cart #content table.cart tr.cart_item td{
  display:block; padding:0; border:0!important; background:transparent!important; text-align:left!important; min-width:0;
}
body.woocommerce-cart #content table.cart tr.cart_item td::before{ display:none!important; }
body.woocommerce-cart #content table.cart td.product-thumbnail{ grid-area:bild; align-self:center; width:auto; }
body.woocommerce-cart #content table.cart td.product-thumbnail a{ display:block; border-radius:50%; }
body.woocommerce-cart #content table.cart td.product-thumbnail img{
  display:block; width:100%; height:auto; aspect-ratio:1; object-fit:cover; border-radius:50%; background:var(--hk-creme-tief);
  box-shadow:0 0 0 4px color-mix(in srgb, var(--hk-hirnholz) 70%, var(--hk-creme)), 0 0 0 7px var(--hk-holzbraun), 0 16px 24px -14px rgba(20,12,6,.6);
}
body.woocommerce-cart #content table.cart td.product-name{ grid-area:name; align-self:end; }
body.woocommerce-cart #content table.cart td.product-name > a{
  color:var(--hk-tinte); font:800 clamp(1.25rem, 1rem + .7vw, 1.875rem)/1.08 var(--hk-font-display); letter-spacing:-.003em;
  text-decoration:none; text-wrap:balance; display:inline-block; padding-block:5px; margin-block:-5px;
}
@media (hover:hover) and (pointer:fine){ body.woocommerce-cart #content table.cart td.product-name > a:hover{ color:var(--hk-holzbraun); text-decoration:underline; text-underline-offset:.15em; } }
body.woocommerce-cart #content table.cart td.product-name .delivery-time-info{ margin:8px 0 0; color:var(--hk-tinte-neben); font:500 var(--hk-klein)/1.4 var(--hk-font-text); }
body.woocommerce-cart #content table.cart dl.variation :is(dt, dd).variation-gzd-delivery_time{ display:none; }
body.woocommerce-cart #content table.cart dl.variation{ margin:6px 0 0; color:var(--hk-tinte-neben); font-size:var(--hk-klein); }
body.woocommerce-cart #content table.cart dl.variation:not(:has(:not(.variation-gzd-delivery_time))){ display:none; }
body.woocommerce-cart #content table.cart td.product-price{ grid-area:preis; align-self:start; color:var(--hk-tinte-neben); font:500 var(--hk-klein)/1.3 var(--hk-font-text); font-variant-numeric:tabular-nums; }
body.woocommerce-cart #content table.cart td.product-price::after{ content:" je\00a0Stück"; }
/* Einzelpreis darf vor „je Stück“ umbrechen (lange Preise wie 1.950,00 € stoßen sonst am Handy an die Zeilensumme); der Betrag selbst bleibt zusammen */
body.woocommerce-cart #content table.cart td.product-price{ white-space:normal; }
body.woocommerce-cart #content table.cart td.product-price .amount{ white-space:nowrap; }
body.woocommerce-cart #content table.cart td.product-subtotal{
  grid-area:summe; align-self:start; justify-self:end; white-space:nowrap; text-align:right!important;
  color:var(--hk-tinte); font:800 clamp(1.375rem, 1.05rem + .9vw, 2.25rem)/1 var(--hk-font-display); font-variant-numeric:tabular-nums;
}
body.woocommerce-cart #content table.cart td.product-quantity{ grid-area:menge; margin-top:8px; }
body.woocommerce-cart #content table.cart td.product-remove{ grid-area:weg; justify-self:end; margin-top:8px; width:auto; }

/* Mengen-Knöpfe (shop-design.js baut − und + um das WooCommerce-Feld; ohne Skript bleibt das Zahlenfeld) */
body.woocommerce-cart #content table.cart .quantity{ display:inline-flex; align-items:center; }
body.woocommerce-cart #content table.cart .quantity.hk-menge{
  height:52px; padding:2px; box-sizing:border-box; border-radius:999px; background:#fff;
  box-shadow:inset 0 0 0 1.5px rgba(138,75,34,.45);
}
body.woocommerce-cart #content table.cart input.qty{
  width:88px; min-height:52px; padding:0 8px; text-align:center; font-weight:700; font-variant-numeric:tabular-nums;
  -moz-appearance:textfield; appearance:textfield;
}
body.woocommerce-cart #content table.cart .hk-menge input.qty{
  width:48px; min-height:46px; height:46px; padding:0; border:0!important; border-radius:0; background:transparent; box-shadow:none!important;
  font:700 18px/1 var(--hk-font-text);
}
body.woocommerce-cart #content table.cart input.qty::-webkit-inner-spin-button,
body.woocommerce-cart #content table.cart input.qty::-webkit-outer-spin-button{ -webkit-appearance:none; appearance:none; margin:0; }
body.woocommerce-cart #content table.cart button.hk-menge-knopf{
  display:grid; place-items:center; width:46px; height:46px; padding:0; border:0; border-radius:50%; cursor:pointer;
  background:transparent; color:var(--hk-holzbraun); font:600 26px/1 var(--hk-font-text);
  transition:background-color .2s ease, color .2s ease;
}
body.woocommerce-cart #content table.cart button.hk-menge-knopf:disabled{ opacity:.35; cursor:not-allowed; }
body.woocommerce-cart #content table.cart button.hk-menge-knopf:focus-visible{ outline:3px solid var(--hk-holzbraun); outline-offset:1px; }
@media (hover:hover) and (pointer:fine){
  body.woocommerce-cart #content table.cart button.hk-menge-knopf:not(:disabled):hover{ background:var(--hk-holzbraun); color:var(--hk-licht); }
}

/* Entfernen als kleiner Zweit-Knopf (Pille, Kontur) mit Kreuz (Woo-Link bleibt, nur die Beschriftung kommt per CSS – Name bleibt im aria-label) */
body.woocommerce-cart #content table.cart a.remove{
  display:inline-flex; align-items:center; gap:8px; width:auto; height:auto; min-height:44px; padding:0 18px 0 16px; box-sizing:border-box;
  border:0; border-radius:999px; background:transparent!important; box-shadow:inset 0 0 0 1.5px currentColor;
  color:var(--hk-holzbraun)!important; font-size:0; text-decoration:none; line-height:1;
  transition:background-color .2s ease, color .2s ease;
}
body.woocommerce-cart #content table.cart a.remove::before{
  content:""; width:16px; height:16px; background:currentColor;
  -webkit-mask:url("../icons/hk-schliessen.svg") center/contain no-repeat; mask:url("../icons/hk-schliessen.svg") center/contain no-repeat;
}
body.woocommerce-cart #content table.cart a.remove::after{
  content:"Entfernen"; font:600 var(--hk-klein)/1 var(--hk-font-text); text-decoration:none;
}
@media (hover:hover) and (pointer:fine){ body.woocommerce-cart #content table.cart a.remove:hover{ background:var(--hk-holzbraun)!important; color:var(--hk-licht)!important; } }
/* Sehr schmale Handys (iPhone SE, 320–374 px): Mengen-Knopf und „Entfernen“ passen nicht nebeneinander → runder Kreuz-Knopf (Name bleibt im aria-label) */
@media (max-width:374px){
  body.woocommerce-cart #content table.cart a.remove{ width:44px; padding:0; justify-content:center; gap:0; }
  body.woocommerce-cart #content table.cart a.remove::after{ content:none; }
}

/* Gutschein (Klappe) + Aktualisieren */
body.woocommerce-cart #content table.cart tr:has(> td.actions){ display:block; }
body.woocommerce-cart #content table.cart td.actions{ display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:24px 0 0; border:0; text-align:left; background:transparent!important; }
body.woocommerce-cart #content table.cart td.actions .coupon{ float:none; display:flex; flex-wrap:wrap; gap:12px; align-items:center; padding:0; }
body.woocommerce-cart #content table.cart td.actions .coupon .input-text{
  float:none; width:clamp(200px, 18vw, 300px); min-height:52px; margin:0; padding:0 20px; border-radius:999px; font-size:17px;
}
body.woocommerce-cart #content table.cart td.actions > .button{ float:none; margin-left:auto; }
body.woocommerce-cart #content table.cart td.actions.hk-gutschein-zu .coupon{ display:none; }
body.woocommerce-cart #content table.cart button.hk-gutschein-auf{
  display:inline-flex; align-items:center; gap:10px; min-height:52px; padding:0 24px; border:0; border-radius:999px; cursor:pointer;
  background:transparent; color:var(--hk-holzbraun); box-shadow:inset 0 0 0 2px currentColor;
  font:600 var(--hk-klein)/1.2 var(--hk-font-text);
}
body.woocommerce-cart #content table.cart button.hk-gutschein-auf::after{
  content:""; width:18px; height:18px; background:currentColor; transition:transform .25s ease;
  -webkit-mask:url("../icons/hk-chevron-unten.svg") center/contain no-repeat; mask:url("../icons/hk-chevron-unten.svg") center/contain no-repeat;
}
body.woocommerce-cart #content table.cart button.hk-gutschein-auf[aria-expanded="true"]::after{ transform:rotate(180deg); }
body.woocommerce-cart #content table.cart button.hk-gutschein-auf:focus-visible{ outline:3px solid var(--hk-holzbraun); outline-offset:3px; }
@media (hover:hover) and (pointer:fine){ body.woocommerce-cart #content table.cart button.hk-gutschein-auf:hover{ background:rgba(138,75,34,.08); } }
/* Mit Skript aktualisiert der Warenkorb von selbst – der Knopf bleibt für Tastatur/Screenreader im Formular */
.hk-sd-js body.woocommerce-cart #content .woocommerce-cart-form button[name="update_cart"]{
  position:absolute!important; width:1px; height:1px; min-height:0; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;
}
/* Kursgutschein-Hinweis */
body.woocommerce-cart #content .hk-geschenk{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 20px; margin:24px 0 0; padding:16px 16px 16px 22px;
  border-radius:var(--hk-radius); background:var(--hk-creme-tief); color:var(--hk-tinte); font:500 var(--hk-body)/1.4 var(--hk-font-text);
}
body.woocommerce-cart #content .hk-geschenk .hk-knopf{ color:var(--hk-holzbraun); text-decoration:none; }
body.woocommerce-cart #content .hk-vertrauen-links .hk-knopf{ color:var(--hk-k-kontur, var(--hk-holzbraun)); text-decoration:none; }

/* ---------- Summe: dunkles Brett mit Hirnholz-Rahmen ---------- */
body.woocommerce-cart #content .cart_totals{
  float:none; width:auto; box-sizing:border-box; margin:0; position:relative; isolation:isolate; overflow:hidden;
  padding:clamp(24px, 2.2vw, 44px);
  border-radius:var(--hk-radius); background:var(--hk-abgeflammt-2); color:var(--hk-licht);
  box-shadow:inset 0 0 0 2px var(--hk-hirnholz), 0 30px 50px -30px rgba(0,0,0,.8);
}
body.woocommerce-cart #content .cart_totals::before{
  content:""; position:absolute; z-index:-1; pointer-events:none; width:min(560px, 130%); aspect-ratio:1; right:-45%; bottom:-40%;
  background:url("../jahresringe.svg") center/contain no-repeat; opacity:.16;
}
body.woocommerce-cart #content .cart_totals h2{ color:var(--hk-licht); margin:0 0 clamp(14px, 1.4vw, 24px); }
body.woocommerce-cart #content .cart_totals table.shop_table{ width:100%; margin:0; border:0; border-radius:0; border-collapse:collapse; background:transparent; }
body.woocommerce-cart #content .cart_totals table :is(th, td){
  border:0; border-bottom:1px solid var(--k-linie-dunkel); background:transparent;
  padding:14px 0; vertical-align:top; color:var(--hk-licht); line-height:1.45;
}
body.woocommerce-cart #content .cart_totals table th{ color:var(--hk-licht-neben); font:500 var(--hk-klein)/1.45 var(--hk-font-text); text-align:left; padding-right:16px; }
body.woocommerce-cart #content .cart_totals table td{ text-align:right; font-weight:600; font-variant-numeric:tabular-nums; }
body.woocommerce-cart #content .cart_totals table tr.order-total:not(.order-total-small-business-notice) :is(th, td){
  border-bottom:0; border-top:1.5px solid var(--hk-hirnholz); padding-top:20px; vertical-align:baseline;
}
body.woocommerce-cart #content .cart_totals table tr.order-total:not(.order-total-small-business-notice) th{ color:var(--hk-licht); font:800 var(--hk-h3)/1 var(--hk-font-display); }
body.woocommerce-cart #content .cart_totals table tr.order-total:not(.order-total-small-business-notice) td{
  color:var(--hk-hirnholz); font:800 clamp(2.25rem, 1.4rem + 1.6vw, 3.75rem)/1 var(--hk-font-display);
}
body.woocommerce-cart #content .cart_totals table tr.order-total-small-business-notice td{ padding:4px 0 0; border:0; text-align:left; }
body.woocommerce-cart #content .cart_totals :is(.wc-gzd-additional-info, .small-business-info){
  margin:0; color:var(--hk-licht-neben); font:500 var(--hk-klein)/1.45 var(--hk-font-text); text-align:left;
}
body.woocommerce-cart #content .cart_totals .woocommerce-shipping-methods{ list-style:none; margin:0; padding:0; }
body.woocommerce-cart #content .cart_totals .woocommerce-shipping-methods li{ margin:0 0 6px; text-align:right; }
body.woocommerce-cart #content .cart_totals .woocommerce-shipping-methods label{ display:inline; color:var(--hk-licht); font-weight:500; line-height:1.45; }
body.woocommerce-cart #content .cart_totals .woocommerce-shipping-destination{ margin:6px 0 0; color:var(--hk-licht-neben); font:500 var(--hk-klein)/1.45 var(--hk-font-text); }
body.woocommerce-cart #content .cart_totals .woocommerce-shipping-calculator{ margin:6px 0 0; }
body.woocommerce-cart #content .cart_totals .shipping-calculator-button{ /* Aktion → kleiner Kontur-Knopf statt Textlink */
  display:inline-flex; align-items:center; min-height:44px; padding:0 18px; box-sizing:border-box; border-radius:999px; color:var(--hk-hirnholz);
  box-shadow:inset 0 0 0 1.5px currentColor; font:600 var(--hk-klein)/1.2 var(--hk-font-text); text-decoration:none; text-align:center;
}
@media (hover:hover) and (pointer:fine){ body.woocommerce-cart #content .cart_totals .shipping-calculator-button:hover{ background:rgba(214,168,115,.12); } }
body.woocommerce-cart #content .cart_totals .shipping-calculator-button::after{ display:none; }
body.woocommerce-cart #content .cart_totals .shipping-calculator-button:focus-visible{ outline-color:var(--hk-hirnholz); }
body.woocommerce-cart #content .cart_totals .shipping-calculator-form{ margin-top:12px; text-align:left; }
body.woocommerce-cart #content .cart_totals .shipping-calculator-form .form-row > label{ color:var(--hk-licht); }
body.woocommerce-cart #content .cart_totals .shipping-calculator-form .button{ color:var(--hk-hirnholz); }
body.woocommerce-cart #content .cart_totals .select2-container .select2-selection--single{
  height:56px; border:1.5px solid var(--k-feld-rand); border-radius:var(--hk-radius); display:flex; align-items:center;
}
body.woocommerce-cart #content .cart_totals .select2-container .select2-selection__rendered{ color:var(--hk-tinte); font:500 17px/1.3 var(--hk-font-text); padding-left:16px; }
body.woocommerce-cart #content .cart_totals .select2-container .select2-selection__arrow{ height:54px; right:8px; }
body.woocommerce-cart #content .wc-proceed-to-checkout{ padding:clamp(20px, 1.8vw, 32px) 0 0; }
body.woocommerce-cart #content .wc-proceed-to-checkout .checkout-button{
  display:flex; width:100%; min-height:64px; margin:0; font-size:clamp(1.125rem, 1rem + .35vw, 1.375rem);
  background:var(--hk-hirnholz); color:var(--hk-abgeflammt);
}
body.woocommerce-cart #content .wc-proceed-to-checkout .checkout-button:is(:focus, :active){ background:var(--hk-hirnholz); color:var(--hk-abgeflammt); }
body.woocommerce-cart #content .wc-proceed-to-checkout .checkout-button:focus-visible{ outline:3px solid var(--hk-hirnholz); outline-offset:3px; }
@media (hover:hover) and (pointer:fine){ body.woocommerce-cart #content .wc-proceed-to-checkout .checkout-button:hover{ background:var(--hk-hirnholz-h); color:var(--hk-abgeflammt); } }
body.woocommerce-cart #content .cart_totals .ppcp-messages:empty{ display:none; }
body.woocommerce-cart #content .hk-zahlwege{ margin:12px 0 0; color:var(--hk-licht-neben); font:500 .8125rem/1.3 var(--hk-font-text); text-align:center; opacity:.85; }
/* Gelber PayPal-Button im Warenkorb (Kevin 15.11.2026): Abstand zu „Weiter zur Kasse“ */
body.woocommerce-cart #content .cart_totals .ppc-button-wrapper{ margin-top:12px; }
body.woocommerce-cart #content a.hk-weiter-einkaufen{
  display:flex; align-items:center; justify-content:center; min-height:52px; margin-top:16px; border-radius:999px;
  box-shadow:inset 0 0 0 1.5px rgba(214,168,115,.5); color:var(--hk-hirnholz); font:600 var(--hk-klein)/1.2 var(--hk-font-text); text-decoration:none;
}
body.woocommerce-cart #content a.hk-weiter-einkaufen:focus-visible{ outline:3px solid var(--hk-hirnholz); outline-offset:3px; }
@media (hover:hover) and (pointer:fine){ body.woocommerce-cart #content a.hk-weiter-einkaufen:hover{ box-shadow:inset 0 0 0 2px var(--hk-hirnholz); background:rgba(214,168,115,.08); } }

/* Hinweise auf der dunklen Werkbank (z. B. „… wurde entfernt. Rückgängig?“) */
body.woocommerce-cart #content .woocommerce > .woocommerce-notices-wrapper{ margin-bottom:clamp(20px, 2vw, 32px); }

/* ---------- Unter der Werkbank: „Passt dazu“ (Cross-Sells) und Vertrauensband ---------- */
body.woocommerce-cart #content .hk-passt h2{ margin:0 0 clamp(28px, 2.6vw, 56px); font:800 var(--hk-h2)/.95 var(--hk-font-display); color:var(--hk-tinte); }
body.woocommerce-cart #content .hk-passt ul.products{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:clamp(14px, 1.6vw, 32px); margin:0; padding:0; list-style:none; }
body.woocommerce-cart #content .hk-passt ul.products::before, body.woocommerce-cart #content .hk-passt ul.products::after{ display:none; }
body.woocommerce-cart #content .hk-passt ul.products li.product{ width:auto; float:none; margin:0; }
body.woocommerce-cart #content .hk-band{ color:var(--hk-tinte); }
body.woocommerce-cart #content .hk-vertrauen a{ text-decoration:underline; }

/* ---------- Leerer Warenkorb ---------- */
body.woocommerce-cart #content .wc-empty-cart-message .cart-empty{
  display:block; max-width:none; margin:clamp(12px, 1.6vw, 32px) 0 0; padding:0; border:0; background:transparent;
  color:var(--hk-licht); font:800 clamp(1.75rem, 1.2rem + 1.8vw, 3.5rem)/1.05 var(--hk-font-display);
}
body.woocommerce-cart #content .wc-empty-cart-message .cart-empty::before{ display:none; }
body.woocommerce-cart #content .hk-leer-start{ margin:clamp(40px, 4vw, 88px) 0 0; }
body.woocommerce-cart #content .hk-leer-start h2{ margin:0 0 clamp(28px, 2.6vw, 48px); color:var(--hk-licht-neben); font:600 var(--hk-lead)/1.3 var(--hk-font-text); }
body.woocommerce-cart #content .hk-leer-start .hk-scheiben{ --d:clamp(92px, 7vw, 140px); display:grid; grid-template-columns:repeat(auto-fill, minmax(clamp(112px, 9vw, 168px), 1fr)); gap:32px clamp(12px, 1.4vw, 28px); }
body.woocommerce-cart #content .hk-leer-start .hk-scheibe > a{ text-decoration:none; }
body.woocommerce-cart #content .hk-leer-start .hk-scheibe-name{ color:var(--hk-licht); }
body.woocommerce-cart #content .hk-leer-start .hk-scheibe-zahl{ color:var(--hk-licht-neben); }
body.woocommerce-cart #content .hk-leer-start .hk-scheibe > a:focus-visible{ outline-color:var(--hk-fokus-dunkel); }
@media (hover:hover) and (pointer:fine){ body.woocommerce-cart #content .hk-leer-start .hk-scheibe > a:hover .hk-scheibe-name{ color:var(--hk-hirnholz); } }
body.woocommerce-cart #content .return-to-shop{ margin:clamp(40px, 4vw, 72px) 0 0; }
body.woocommerce-cart #content .return-to-shop .button{ background:var(--hk-hirnholz); color:var(--hk-abgeflammt); }
@media (hover:hover) and (pointer:fine){ body.woocommerce-cart #content .return-to-shop .button:hover{ background:var(--hk-hirnholz-h); color:var(--hk-abgeflammt); } }
body.woocommerce-cart #content .return-to-shop .button:focus-visible{ outline:3px solid var(--hk-hirnholz); }

/* ---------- Tablet / Handy ---------- */
@media (max-width:1099px){
  body.woocommerce-cart #content .woocommerce-cart-form{ margin-bottom:calc(32px + var(--hk-rahmen-versatz)); }
  body.woocommerce-cart #content .cart_totals{ max-width:640px; margin-left:auto; }
}
@media (max-width:767px){
  body.woocommerce-cart #content table.cart tr.cart_item{
    --bild:84px;
    grid-template-columns:var(--bild) minmax(0, 1fr) auto;
    grid-template-areas:"bild name name" "bild preis summe" "menge menge weg";
    row-gap:8px; column-gap:14px;
  }
  body.woocommerce-cart #content table.cart td.product-name{ align-self:end; }
  body.woocommerce-cart #content table.cart td.product-subtotal{ align-self:center; }
  body.woocommerce-cart #content table.cart td.product-price{ align-self:center; }
  body.woocommerce-cart #content table.cart td.product-quantity{ margin-top:10px; }
  body.woocommerce-cart #content table.cart td.product-remove{ margin-top:10px; align-self:center; }
  body.woocommerce-cart #content table.cart td.actions{ flex-direction:column; align-items:stretch; }
  body.woocommerce-cart #content table.cart td.actions .coupon{ flex-direction:column; align-items:stretch; }
  body.woocommerce-cart #content table.cart td.actions .coupon .input-text,
  body.woocommerce-cart #content table.cart td.actions .coupon .button,
  body.woocommerce-cart #content table.cart button.hk-gutschein-auf{ width:100%!important; justify-content:center; }
  body.woocommerce-cart #content table.cart td.actions > .button{ margin-left:0; width:100%; }
  body.woocommerce-cart #content .hk-geschenk .hk-knopf{ width:100%; }
  body.woocommerce-cart #content .cart_totals table tr{ display:flex; justify-content:space-between; gap:16px; border-bottom:1px solid var(--k-linie-dunkel); }
  body.woocommerce-cart #content .cart_totals table :is(th, td){ border:0!important; }
  body.woocommerce-cart #content .cart_totals table tbody th{ display:block!important; flex:none; }
  body.woocommerce-cart #content .cart_totals table td{ text-align:right!important; flex:1 1 auto; }
  body.woocommerce-cart #content .cart_totals table td::before{ display:none!important; }
  body.woocommerce-cart #content .cart_totals table tr.order-total:not(.order-total-small-business-notice){ border-top:1.5px solid var(--hk-hirnholz); border-bottom:0; align-items:baseline; }
  body.woocommerce-cart #content .cart_totals table tr.order-total:not(.order-total-small-business-notice) :is(th, td){ border-top:0!important; }
  body.woocommerce-cart #content .cart_totals table tr.order-total-small-business-notice{ border-bottom:0; }
  body.woocommerce-cart #content .cart_totals table tr.order-total-small-business-notice td{ text-align:left!important; }
  body.woocommerce-cart #content .hk-passt ul.products{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  body.woocommerce-cart #content .hk-leer-start .hk-scheiben{ --d:84px; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:24px 10px; }
}

/* ==========================================================================
   6 · KASSE  (Block-Kasse + Germanized v2, .woocommerce-checkout)
   ========================================================================== */
body.woocommerce-checkout #content .wp-block-woocommerce-checkout{ margin:0; max-width:none; padding:0; }
body.woocommerce-checkout #content .wc-block-components-sidebar-layout{ margin:0; align-items:flex-start; }
body.woocommerce-checkout #content .wc-block-components-sidebar-layout.is-large .wc-block-components-main{
  width:auto; flex:1 1 0%; padding-right:clamp(40px, 4.6vw, 112px);
}
body.woocommerce-checkout #content .wc-block-components-sidebar-layout.is-large .wc-block-components-sidebar{
  width:clamp(400px, 33%, 640px); flex:0 0 auto;
}

/* Schritte: Abschnitte mit Holzlinie (wie Toggle der Startseite), Plakat-Zwischentitel */
body.woocommerce-checkout #content .wc-block-checkout__main .wc-block-components-checkout-step{
  margin:0; padding:clamp(28px, 2.4vw, 48px) 0; border-top:1.5px solid var(--hk-holzbraun);
}
body.woocommerce-checkout #content .wc-block-checkout__main .wc-block-components-checkout-step:first-of-type{ padding-top:0; border-top:0; }
body.woocommerce-checkout #content .wc-block-checkout__main :is(.wc-block-checkout__order-notes, .wc-block-checkout__order-notes.wc-block-components-checkout-step){
  padding:0 0 clamp(20px, 1.8vw, 32px); border-top:0;
}
body.woocommerce-checkout #content .wc-block-components-checkout-step__heading{ margin:0 0 clamp(4px, .6vw, 12px); }
body.woocommerce-checkout #content .wc-block-components-checkout-step__title{
  margin:0; color:var(--hk-tinte); font:800 clamp(1.625rem, 1.1rem + 1.1vw, 2.5rem)/1.02 var(--hk-font-display); letter-spacing:-.005em;
}
body.woocommerce-checkout #content .wc-block-components-checkout-step__description,
body.woocommerce-checkout #content .wc-block-checkout__guest-checkout-notice{
  margin:10px 0 0; color:var(--hk-tinte-neben); font:500 var(--hk-klein)/1.45 var(--hk-font-text);
}
body.woocommerce-checkout #content .wc-block-components-checkout-step__container{ font-size:var(--hk-body); }
body.woocommerce-checkout #content .wc-block-components-express-payment-continue-rule{ color:var(--hk-tinte-neben); font:500 var(--hk-klein)/1.4 var(--hk-font-text); }
body.woocommerce-checkout #content .wc-block-components-express-payment-continue-rule::before,
body.woocommerce-checkout #content .wc-block-components-express-payment-continue-rule::after{ border-color:var(--k-linie); }

/* Schwebende Beschriftung der Block-Felder an die größeren Felder angepasst (Beschriftung bleibt immer lesbar ≥ 15 px) */
body.woocommerce-checkout #content .wc-block-components-text-input{ margin-top:14px; }
body.woocommerce-checkout #content .wc-block-components-text-input :is(input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=url]){
  height:var(--k-feld-h); min-height:var(--k-feld-h); padding:0 16px; line-height:1.3;
}
/* nur das Feld bekommt oben Platz für die Beschriftung – nie die Beschriftung selbst (sonst rutscht sie beim Tippen über den Text) */
body.woocommerce-checkout #content .wc-block-components-text-input :is(input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=url]):focus,
body.woocommerce-checkout #content .wc-block-components-text-input.is-active :is(input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=url]),
body.woocommerce-checkout #content .wc-block-components-text-input :is(input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=url]):-webkit-autofill{
  padding:26px 16px 6px;
}
body.woocommerce-checkout #content .wc-block-components-text-input label{
  left:17px; top:calc(var(--k-feld-h) / 2); max-width:calc(100% - 34px); pointer-events:none;
  color:var(--hk-tinte-neben); font:500 17px/1.25 var(--hk-font-text);
}
body.woocommerce-checkout #content .wc-block-components-text-input.is-active label,
body.woocommerce-checkout #content .wc-block-components-text-input input:focus + label,
body.woocommerce-checkout #content .wc-block-components-text-input input:-webkit-autofill + label{
  top:8px; transform:scale(.88); color:var(--hk-tinte-neben); font-weight:600;
}
body.woocommerce-checkout #content .wc-block-components-text-input.has-error input{ border-color:var(--k-fehler)!important; box-shadow:0 0 0 1px var(--k-fehler); }
body.woocommerce-checkout #content .wc-block-components-text-input.has-error label{ color:var(--k-fehler); }
/* Länderauswahl */
body.woocommerce-checkout #content .wc-blocks-components-select .wc-blocks-components-select__container{ height:var(--k-feld-h); background:transparent; }
body.woocommerce-checkout #content .wc-blocks-components-select .wc-blocks-components-select__select{
  height:var(--k-feld-h); padding:24px 48px 4px 16px; background:#fff; border-radius:var(--hk-radius);
}
body.woocommerce-checkout #content .wc-blocks-components-select .wc-blocks-components-select__label{
  left:17px; top:8px; color:var(--hk-tinte-neben); font:600 15px/1.25 var(--hk-font-text);
}
body.woocommerce-checkout #content .wc-blocks-components-select .wc-blocks-components-select__expand{ right:16px; fill:var(--hk-holzbraun); }
/* Adresskarte (wenn eine Adresse schon gespeichert ist) */
body.woocommerce-checkout #content .wc-block-components-address-card{
  padding:var(--k-innen); border:1.5px solid var(--k-linie); border-radius:var(--hk-radius); background:var(--hk-creme-tief);
  font-size:var(--hk-body); line-height:1.5;
}
body.woocommerce-checkout #content .wc-block-components-address-card__edit{
  display:inline-flex; align-items:center; min-height:44px; padding:0 18px; border-radius:999px;
  box-shadow:inset 0 0 0 2px currentColor; color:var(--hk-holzbraun); font:600 var(--hk-klein)/1 var(--hk-font-text); text-decoration:none; cursor:pointer;
}

/* Checkboxen der Block-Kasse (Rechnungsadresse, Hinweis, ggf. Germanized-Rechtstexte): 24 px, Holzbraun, Text gut lesbar */
body.woocommerce-checkout #content .wc-block-components-checkbox{ margin-top:18px; }
body.woocommerce-checkout #content .wc-block-components-checkbox label{
  display:flex; align-items:flex-start; gap:14px; min-height:44px; padding:10px 0; box-sizing:border-box; position:relative; cursor:pointer;
}
body.woocommerce-checkout #content .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]{
  width:24px; min-width:24px; height:24px; margin:0; border:2px solid var(--hk-holzbraun)!important; border-radius:6px; background:#fff; cursor:pointer;
}
body.woocommerce-checkout #content .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked{ background:var(--hk-holzbraun); }
body.woocommerce-checkout #content .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:focus{ outline:0; box-shadow:0 0 0 4px var(--k-ring); }
body.woocommerce-checkout #content .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:focus-visible{ outline:3px solid var(--hk-holzbraun); outline-offset:2px; }
body.woocommerce-checkout #content .wc-block-components-checkbox .wc-block-components-checkbox__mark{
  fill:var(--hk-licht); width:18px; height:18px; left:3px; top:13px; margin:0;
}
body.woocommerce-checkout #content .wc-block-components-checkbox__label{
  color:var(--hk-tinte); font:500 var(--hk-body)/1.45 var(--hk-font-text); padding-top:1px;
}
body.woocommerce-checkout #content .wc-block-components-checkbox.has-error .wc-block-components-checkbox__input[type=checkbox]{ border-color:var(--k-fehler)!important; }

/* Auswahl-Karten: Versand, DHL-Wunschort, Zahlungsart */
body.woocommerce-checkout #content .wc-block-components-radio-control--highlight-checked::after,
body.woocommerce-checkout #content .wc-block-components-radio-control-accordion-option::after{ border-color:var(--k-linie); }
body.woocommerce-checkout #content .wc-block-components-radio-control--highlight-checked::after{
  border:1.5px solid var(--k-feld-rand); border-radius:var(--hk-radius);
}
body.woocommerce-checkout #content .wc-block-components-radio-control{ border-radius:var(--hk-radius); background:#fff; }
body.woocommerce-checkout #content .wc-block-components-radio-control__option{
  min-height:60px; box-sizing:border-box; padding:18px 18px 18px 58px; display:flex; align-items:center;
  color:var(--hk-tinte); font:500 var(--hk-body)/1.4 var(--hk-font-text);
}
body.woocommerce-checkout #content .wc-block-components-radio-control__option-layout{ width:100%; }
body.woocommerce-checkout #content .wc-block-components-radio-control__label-group{ display:flex; justify-content:space-between; gap:16px; align-items:baseline; }
body.woocommerce-checkout #content .wc-block-components-radio-control__label{ color:var(--hk-tinte); font:600 var(--hk-body)/1.4 var(--hk-font-text); }
body.woocommerce-checkout #content .wc-block-components-radio-control__secondary-label{ color:var(--hk-tinte); font:600 var(--hk-body)/1.4 var(--hk-font-text); font-variant-numeric:tabular-nums; white-space:nowrap; }
/* DHL-Wunschort: gleiche Kartenoptik wie Versand/Zahlung */
body.woocommerce-checkout #content .wc-shiptastic-block-components-radio-control{ border:1.5px solid var(--k-feld-rand); overflow:hidden; }
body.woocommerce-checkout #content .wc-shiptastic-block-components-radio-control .wc-block-components-radio-control-accordion-option + .wc-block-components-radio-control-accordion-option{ border-top:1px solid var(--k-linie); }
body.woocommerce-checkout #content .wc-shiptastic-block-components-radio-control .wc-block-components-radio-control__option-checked{ background:var(--hk-creme); }
body.woocommerce-checkout #content :is(.wc-block-components-radio-control__description, .wc-block-components-radio-control__secondary-description){ color:var(--hk-tinte-neben); font-size:var(--hk-klein); }
body.woocommerce-checkout #content .wc-block-components-radio-control__option--checked-option-highlighted,
body.woocommerce-checkout #content .wc-block-components-radio-control-accordion-option--checked-option-highlighted{
  border-radius:var(--hk-radius); box-shadow:inset 0 0 0 2px var(--hk-holzbraun); background:var(--hk-creme);
}
body.woocommerce-checkout #content .wc-block-components-radio-control .wc-block-components-radio-control__input{
  width:24px; height:24px; left:18px; border:2px solid var(--hk-holzbraun)!important; background:#fff; cursor:pointer;
}
body.woocommerce-checkout #content .wc-block-components-radio-control .wc-block-components-radio-control__input:checked{ border:2px solid var(--hk-holzbraun)!important; }
body.woocommerce-checkout #content .wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before{
  width:12px; height:12px; background:var(--hk-holzbraun);
}
body.woocommerce-checkout #content .wc-block-components-radio-control .wc-block-components-radio-control__input:focus{ outline:0; box-shadow:0 0 0 4px var(--k-ring); }
body.woocommerce-checkout #content .wc-block-components-radio-control .wc-block-components-radio-control__input:focus-visible{ outline:3px solid var(--hk-holzbraun); outline-offset:2px; }
/* Zahlungsart: Beschreibung (z. B. Vorkasse-Hinweis) gut lesbar */
body.woocommerce-checkout #content .wc-block-components-radio-control-accordion-content{
  padding:0 18px 18px 58px; color:var(--hk-tinte-neben); font:500 var(--hk-klein)/1.55 var(--hk-font-text);
}
body.woocommerce-checkout #content .wc-block-checkout__payment-method .wc-block-components-radio-control__option{ padding-left:58px; }
body.woocommerce-checkout #content .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option{ border-radius:var(--hk-radius); }

/* Shiptastic: Abholstation */
body.woocommerce-checkout #content .wc-shiptastic-pickup-location-delivery{ margin:clamp(24px, 2vw, 36px) 0 clamp(18px, 1.6vw, 28px); }
/* Zwischentitel von Shiptastic (im Quelltext H4, Ebene setzt das Plugin) in der Plakat-Typo wie die übrigen Kassen-Untertitel */
body.woocommerce-checkout #content .wc-shiptastic-pickup-location-delivery h4,
body.woocommerce-checkout #content .wc-stc-checkout-dhl-title{
  display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 8px;
  color:var(--hk-tinte); font:800 clamp(1.25rem, 1rem + .6vw, 1.75rem)/1.08 var(--hk-font-display); letter-spacing:-.005em; text-wrap:balance;
}
/* Abholstation-Suche: Adresse + PLZ gleich breit untereinander, ab 600 px nebeneinander (2 : 1) */
body.woocommerce-checkout #content .pickup-location-search-fields{
  display:grid; grid-template-columns:minmax(0, 1fr); gap:12px;
}
body.woocommerce-checkout #content .pickup-location-search-fields > .wc-block-components-text-input{ width:auto; max-width:none; flex:none; margin:0; }
@media (min-width:600px){
  body.woocommerce-checkout #content .pickup-location-search-fields{ grid-template-columns:minmax(0, 2fr) minmax(0, 1fr); }
}
body.woocommerce-checkout #content .pickup-location-search-results p{ margin:14px 0 0; color:var(--hk-tinte-neben); font:500 var(--hk-klein)/1.5 var(--hk-font-text); }
body.woocommerce-checkout #content .wc-stc-shipping-provider-options{ margin-top:clamp(20px, 1.8vw, 32px); }
body.woocommerce-checkout #content .wc-stc-checkout-dhl-title svg{ flex:none; height:28px; width:auto; }
body.woocommerce-checkout #content .wc-stc-dhl-preferred-location .wc-block-components-checkout-step__description{ margin:0 0 10px; }

/* Hinweis zur Bestellung, Rechtstext */
body.woocommerce-checkout #content .wc-block-checkout__add-note .wc-block-components-checkbox{ margin-top:0; }
body.woocommerce-checkout #content .wc-block-components-textarea{
  min-height:120px; padding:14px 16px; border:1.5px solid var(--k-feld-rand)!important; border-radius:var(--hk-radius);
  background:#fff; color:var(--hk-tinte); font:500 17px/1.5 var(--hk-font-text);
}
body.woocommerce-checkout #content .wc-block-checkout__terms{
  margin:0; padding:clamp(20px, 1.8vw, 28px) 0 0; border-top:1px solid var(--k-linie);
}
body.woocommerce-checkout #content .wc-block-checkout__terms,
body.woocommerce-checkout #content .wc-block-checkout__terms .wc-block-components-checkbox__label{
  color:var(--hk-tinte); font:500 var(--hk-klein)/1.6 var(--hk-font-text);
}
body.woocommerce-checkout #content .wc-block-checkout__terms::before{ display:none; }
/* Germanized-Checkboxen (Rechtstexte, Dienstleistung, Paketdienst …) – falls ausgegeben: unverändert, nur lesbar */
body.woocommerce-checkout #content :is(.wc-gzd-checkboxes, .wc-gzd-checkbox, .wc-gzd-checkbox-placeholder, .checkbox-legal, .legal){
  color:var(--hk-tinte); font:500 var(--hk-klein)/1.6 var(--hk-font-text);
}

/* Kaufen-Knöpfe (Woo unten + Germanized in der Seitenleiste) */
body.woocommerce-checkout #content .wc-block-components-checkout-place-order-button{
  width:100%; min-height:60px; padding:0 28px; font-size:clamp(1.0625rem, .95rem + .3vw, 1.3125rem);
}
body.woocommerce-checkout #content .wc-block-components-checkout-place-order-button .wc-block-components-button__text{ display:flex; align-items:center; gap:.5em; }
body.woocommerce-checkout #content .wc-block-checkout__actions_row{ gap:12px; }
body.woocommerce-checkout #content .wc-block-components-checkout-return-to-cart-button{
  display:inline-flex; align-items:center; gap:.4em; min-height:48px; padding:0 22px; border-radius:999px;
  color:var(--hk-holzbraun); box-shadow:inset 0 0 0 2px currentColor; font:600 var(--hk-klein)/1 var(--hk-font-text); text-decoration:none;
}
body.woocommerce-checkout #content .wc-block-components-checkout-return-to-cart-button svg{ fill:currentColor; position:static; transform:none; }

/* --- Seitenleiste: abgeflammte Karte mit Drechsel-Ringen ------------------------------------- */
body.woocommerce-checkout #content .wc-block-checkout__sidebar{
  position:sticky; top:calc(var(--hk-kopf-h) + 24px); isolation:isolate; overflow:hidden;
  box-sizing:border-box; padding:clamp(22px, 2vw, 40px);
  border-radius:var(--hk-radius); background:var(--hk-abgeflammt); color:var(--hk-licht);
  box-shadow:0 24px 48px -32px rgba(20,12,6,.7);
}
body.woocommerce-checkout #content .wc-block-checkout__sidebar::before{
  content:""; position:absolute; z-index:-1; pointer-events:none;
  width:min(560px, 130%); aspect-ratio:1; right:-42%; bottom:-34%;
  background:url("../kreis-ringe.svg") center/contain no-repeat;
}
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) :is(.wp-block-woocommerce-checkout-order-summary-block, .wc-block-components-totals-wrapper, .wc-block-components-panel, .wc-block-components-order-summary, .wc-block-components-checkout-order-summary__content){
  border-color:var(--k-linie-dunkel); background:transparent; color:var(--hk-licht);
}
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wp-block-woocommerce-checkout-order-summary-block{ border:0; margin:0; }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-totals-wrapper{ padding:16px 0; border-top:1px solid var(--k-linie-dunkel); }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-totals-wrapper:empty{ display:none; }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-totals-wrapper::after{ display:none; }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) :is(.wc-block-components-totals-item, .wc-block-components-panel, .wc-block-components-totals-coupon){ padding-left:0; padding-right:0; }
/* Titel „Bestellübersicht“ */
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-checkout-order-summary__title{ margin:0 0 clamp(14px, 1.2vw, 22px); }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-checkout-order-summary__title-text{
  margin:0; color:var(--hk-licht); font:800 clamp(1.625rem, 1.1rem + 1.1vw, 2.5rem)/1.02 var(--hk-font-display);
}
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-checkout-order-summary__title-price{ color:var(--hk-licht); font-weight:600; }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-checkout-order-summary__title-icon{ fill:var(--hk-hirnholz); }
/* Positionen */
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-order-summary-item{ padding:14px 0; gap:0; }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-order-summary-item + .wc-block-components-order-summary-item{ border-top:1px solid var(--k-linie-dunkel); }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-order-summary-item__image{ width:72px; flex:none; }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-order-summary-item__image > img{
  width:72px; max-width:72px; height:72px; object-fit:cover; border-radius:8px; background:var(--hk-abgeflammt-2);
}
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-order-summary-item__quantity{
  background:var(--hk-hirnholz); border:2px solid var(--hk-abgeflammt); min-width:26px; min-height:26px; box-sizing:border-box;
}
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-order-summary-item__quantity span{ color:var(--hk-abgeflammt); font:700 13px/1 var(--hk-font-text); }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-order-summary-item__description{ padding:0 16px; }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-product-name{
  margin:0 0 4px; color:var(--hk-licht); font:600 var(--hk-body)/1.35 var(--hk-font-text);
  /* Woo bricht Namen mitten im Wort („Holzschü-ssel“ ohne Strich, overflow-wrap:anywhere) – hier nur an Wortgrenzen bzw. mit Trennstrich */
  overflow-wrap:break-word; word-break:normal; -webkit-hyphens:auto; hyphens:auto;
}
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-cart-item__prices,
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-product-metadata{
  color:var(--hk-licht-neben); font:500 var(--hk-klein)/1.45 var(--hk-font-text);
}
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-product-metadata__description p,
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-product-details,
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-product-details *{
  margin:4px 0 0; color:var(--hk-licht-neben); font:500 var(--hk-klein)/1.45 var(--hk-font-text);
}
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-product-details *{ margin:0; }
/* Woo setzt in der Seitenleiste 13 px (font-size: small) – hier auf Holzkopf-Größen */
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) :is(.wc-block-components-order-summary, .wc-block-components-panel, .wc-block-components-totals-wrapper, .wc-block-components-checkout-order-summary__content){
  font-size:var(--hk-body);
}
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-order-summary{ padding:0; }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-order-summary-item__total-price{ font-size:var(--hk-body); padding-top:2px; }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-gzd-small-business-info{ padding:0; }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-product-details{ margin:4px 0 0; padding:0; list-style:none; }
/* Rohschlüssel „gzd-delivery_time:“ vor der Lieferzeit ausblenden – „Lieferzeit: 3-4 Werktage“ bleibt stehen */
body.woocommerce-checkout #content .wc-block-components-product-details__gzd-delivery-time .wc-block-components-product-details__name{ display:none; }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-order-summary-item__total-price{
  color:var(--hk-licht); font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap;
}
/* Gutschein-Klappe */
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-panel__button{
  min-height:48px; display:flex; align-items:center; color:var(--hk-licht); font:600 var(--hk-klein)/1.3 var(--hk-font-text);
}
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-panel__button svg{ fill:var(--hk-hirnholz); }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-panel__button:focus-visible{ outline:3px solid var(--hk-hirnholz); outline-offset:2px; }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-totals-coupon__form{ gap:10px; align-items:stretch; flex-direction:column; }
/* Feld und „Anwenden“ untereinander in voller Breite – nebeneinander war das Feld in der schmalen Seitenleiste zu kurz für „Code eingeben“ */
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-totals-coupon__form .wc-block-components-text-input{ margin-top:0; width:100%; flex:none; }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button{ width:100%; }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-totals-coupon__button{
  min-height:var(--k-feld-h); background:var(--hk-hirnholz); color:var(--hk-abgeflammt);
}
/* Summenzeilen */
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-totals-item{ padding:6px 0; align-items:baseline; }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-totals-item__label{ color:var(--hk-licht-neben); font:500 var(--hk-klein)/1.45 var(--hk-font-text); }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-totals-item__value{ color:var(--hk-licht); font-weight:600; font-variant-numeric:tabular-nums; }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-totals-item__description{ color:var(--hk-licht-neben); font-size:var(--hk-klein); }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-totals-footer-item{ padding-top:4px; }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-totals-footer-item .wc-block-components-totals-item__label{
  color:var(--hk-licht); font:600 var(--hk-lead)/1.2 var(--hk-font-text);
}
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-totals-footer-item .wc-block-components-totals-item__value{
  color:var(--hk-licht); font:800 clamp(1.75rem, 1.2rem + 1vw, 2.75rem)/1 var(--hk-font-display);
}
/* Germanized-Block in der Seitenleiste: Gesamtsumme, Kleinunternehmer-Hinweis, „Jetzt kaufen“ */
body.woocommerce-checkout #content .wc-gzd-checkout-submit{ margin-top:4px; }
body.woocommerce-checkout #content .wc-gzd-checkout-submit .wp-block-woocommerce-checkout-order-summary-block{ border:0; padding:0; }
body.woocommerce-checkout #content .wc-gzd-checkout-submit .wc-block-components-checkout-order-summary__title{ display:none; }
body.woocommerce-checkout #content .wc-gzd-checkout-submit .wc-block-components-totals-wrapper:first-child{ border-top:1.5px solid var(--hk-hirnholz); }
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) :is(.wc-gzd-small-business-info, .small-business-info, .wc-gzd-additional-info){
  margin:0; color:var(--hk-licht-neben); font:500 var(--hk-klein)/1.5 var(--hk-font-text);
}
body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) a{ color:var(--hk-hirnholz); }
body.woocommerce-checkout #content .wc-block-checkout__sidebar .wc-block-checkout__actions{ padding:clamp(14px, 1.2vw, 22px) 0 0; margin:0; }
body.woocommerce-checkout #content .wc-block-checkout__sidebar .wc-block-checkout__actions_row{ display:block; }
body.woocommerce-checkout #content .wc-block-checkout__sidebar .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout #content .wc-block-checkout__sidebar .wc-block-components-checkout-place-order-button:is(:focus, :active){
  background:var(--hk-hirnholz); color:var(--hk-abgeflammt);
}
body.woocommerce-checkout #content .wc-block-checkout__sidebar .wc-block-components-checkout-place-order-button:focus-visible{ outline:3px solid var(--hk-hirnholz); outline-offset:3px; }
@media (hover:hover) and (pointer:fine){
  body.woocommerce-checkout #content .wc-block-checkout__sidebar .wc-block-components-checkout-place-order-button:hover{ background:var(--hk-hirnholz-h); color:var(--hk-abgeflammt); }
}
/* Felder/Checkboxen, die Germanized ggf. in die dunkle Seitenleiste setzt */
body.woocommerce-checkout #content .wc-block-checkout__sidebar .wc-block-components-checkbox__label{ color:var(--hk-licht); }
body.woocommerce-checkout #content .wc-block-checkout__sidebar .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]{ border-color:var(--hk-hirnholz)!important; }
body.woocommerce-checkout #content .wc-block-checkout__sidebar .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked{ background:var(--hk-hirnholz); }
body.woocommerce-checkout #content .wc-block-checkout__sidebar .wc-block-components-checkbox .wc-block-components-checkbox__mark{ fill:var(--hk-abgeflammt); }
body.woocommerce-checkout #content .wc-block-checkout__sidebar :focus-visible{ outline-color:var(--hk-hirnholz); }
body.woocommerce-checkout #content .wc-block-checkout__sidebar .ppcp-messages:empty{ display:none; }

/* Kasse unter der großen Ansicht: Seitenleiste ist eine Karte über/unter dem Formular, nicht mitlaufend */
body.woocommerce-checkout #content .wc-block-components-sidebar-layout:not(.is-large) .wc-block-checkout__sidebar{ position:relative; top:auto; margin-bottom:clamp(24px, 3vw, 40px); }
body.woocommerce-checkout #content .wc-block-components-sidebar-layout:not(.is-large) .wc-block-components-main{ padding-right:0; }
@media (max-width:899px){
  body.woocommerce-checkout #content .wc-block-checkout__sidebar{ position:relative; top:auto; }
  body.woocommerce-checkout #content .wc-block-components-radio-control__option{ padding-left:54px; }
  body.woocommerce-checkout #content .wc-block-components-radio-control-accordion-content{ padding-left:18px; }
}

/* ==========================================================================
   7 · BESTELLBESTÄTIGUNG + BESTELLUNG ANSEHEN (klassische Woo-Vorlagen)
   ========================================================================== */
body:is(.woocommerce-checkout, .woocommerce-account) #content .woocommerce-order{ max-width:1180px; }
body:is(.woocommerce-checkout, .woocommerce-account) #content .woocommerce-thankyou-order-received{
  margin:0 0 clamp(24px, 2.4vw, 40px); color:var(--hk-tinte);
  font:800 clamp(1.75rem, 1.2rem + 1.4vw, 3rem)/1.05 var(--hk-font-display); text-wrap:balance;
}
/* Bestellnummer, Datum, E-Mail, Summe, Zahlungsart als ruhige Kachelreihe */
body:is(.woocommerce-checkout, .woocommerce-account) #content ul.woocommerce-order-overview{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:1px; margin:0 0 clamp(32px, 3vw, 56px); padding:0;
  list-style:none; border-radius:var(--hk-radius); overflow:hidden; background:var(--k-linie-dunkel);
}
body:is(.woocommerce-checkout, .woocommerce-account) #content ul.woocommerce-order-overview::before,
body:is(.woocommerce-checkout, .woocommerce-account) #content ul.woocommerce-order-overview::after{ display:none; }
body:is(.woocommerce-checkout, .woocommerce-account) #content ul.woocommerce-order-overview li{
  float:none; margin:0; padding:clamp(18px, 1.6vw, 28px); border:0;
  background:var(--hk-abgeflammt); color:var(--hk-licht-neben);
  font:500 var(--hk-klein)/1.4 var(--hk-font-text); text-transform:none; letter-spacing:0;
}
body:is(.woocommerce-checkout, .woocommerce-account) #content ul.woocommerce-order-overview li strong{
  display:block; margin-top:6px; color:var(--hk-licht); font:600 var(--hk-lead)/1.3 var(--hk-font-text); overflow-wrap:break-word; word-break:normal; -webkit-hyphens:auto; hyphens:auto;
}
/* Bankverbindung (Vorkasse) */
body:is(.woocommerce-checkout, .woocommerce-account) #content .woocommerce-order > p:not(.woocommerce-thankyou-order-received){ max-width:62ch; color:var(--hk-tinte); }
body:is(.woocommerce-checkout, .woocommerce-account) #content .woocommerce-bacs-bank-details{
  margin:0 0 clamp(32px, 3vw, 56px); padding:var(--k-innen); border:1.5px solid var(--k-linie); border-left:4px solid var(--hk-holzbraun);
  border-radius:var(--hk-radius); background:var(--hk-creme-tief);
}
body:is(.woocommerce-checkout, .woocommerce-account) #content .woocommerce-bacs-bank-details ul.bacs_details{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:14px 24px; margin:12px 0 0; padding:0; list-style:none;
}
body:is(.woocommerce-checkout, .woocommerce-account) #content .woocommerce-bacs-bank-details ul.bacs_details li{
  float:none; margin:0; padding:0; border:0; color:var(--hk-tinte-neben); font:500 var(--hk-klein)/1.4 var(--hk-font-text); text-transform:none;
}
body:is(.woocommerce-checkout, .woocommerce-account) #content .woocommerce-bacs-bank-details ul.bacs_details li strong{
  display:block; margin-top:4px; color:var(--hk-tinte); font:600 var(--hk-body)/1.35 var(--hk-font-text); overflow-wrap:break-word; word-break:normal; -webkit-hyphens:auto; hyphens:auto;
}
/* Bestelldetails-Tabelle + Adressen */
body:is(.woocommerce-checkout, .woocommerce-account) #content :is(.woocommerce-order-details, .woocommerce-customer-details){ margin:0 0 clamp(32px, 3vw, 56px); }
body:is(.woocommerce-checkout, .woocommerce-account) #content table.order_details,
body:is(.woocommerce-checkout, .woocommerce-account) #content table.woocommerce-table--order-details{
  width:100%; margin:0; border:0; border-radius:0; border-collapse:collapse; background:transparent;
}
body:is(.woocommerce-checkout, .woocommerce-account) #content table.order_details :is(th, td){
  border:0; border-bottom:1px solid var(--k-linie); background:transparent; padding:16px 12px 16px 0; text-align:left; vertical-align:top; line-height:1.45;
}
body:is(.woocommerce-checkout, .woocommerce-account) #content table.order_details :is(th, td):last-child{ padding-right:0; text-align:right; font-variant-numeric:tabular-nums; }
body:is(.woocommerce-checkout, .woocommerce-account) #content table.order_details thead th{
  border-bottom:1.5px solid var(--hk-holzbraun); color:var(--hk-tinte-neben); font:600 var(--hk-klein)/1.3 var(--hk-font-text);
}
body:is(.woocommerce-checkout, .woocommerce-account) #content table.order_details tfoot th{ color:var(--hk-tinte-neben); font:500 var(--hk-klein)/1.45 var(--hk-font-text); }
body:is(.woocommerce-checkout, .woocommerce-account) #content table.order_details tfoot tr:last-child :is(th, td){ border-bottom:0; }
body:is(.woocommerce-checkout, .woocommerce-account) #content table.order_details .product-name a{ color:var(--hk-tinte); font-weight:600; }
body:is(.woocommerce-checkout, .woocommerce-account) #content table.order_details :is(.wc-item-meta, .delivery-time-info, .wc-gzd-item-desc, small){ color:var(--hk-tinte-neben); font-size:var(--hk-klein); }
body:is(.woocommerce-checkout, .woocommerce-account) #content table.order_details .wc-item-meta{ list-style:none; margin:6px 0 0; padding:0; }
body:is(.woocommerce-checkout, .woocommerce-account) #content table.order_details .wc-item-meta :is(li, p){ margin:0; }
body:is(.woocommerce-checkout, .woocommerce-account) #content table.order_details .wc-item-meta-label{ float:none; font-weight:500; }
body:is(.woocommerce-checkout, .woocommerce-account) #content :is(.woocommerce-columns--addresses, .woocommerce-customer-details > address){
  margin:0;
}
body:is(.woocommerce-checkout, .woocommerce-account) #content .woocommerce-columns--addresses{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:var(--k-abstand);
}
body:is(.woocommerce-checkout, .woocommerce-account) #content .woocommerce-columns--addresses::before,
body:is(.woocommerce-checkout, .woocommerce-account) #content .woocommerce-columns--addresses::after{ display:none; }
body:is(.woocommerce-checkout, .woocommerce-account) #content .woocommerce-columns--addresses .woocommerce-column{ float:none; width:auto; max-width:none; margin:0; }
body:is(.woocommerce-checkout, .woocommerce-account) #content :is(.woocommerce-customer-details address, .woocommerce-Address address){
  padding:var(--k-innen); border:1px solid var(--k-linie); border-radius:var(--hk-radius); background:var(--hk-creme-tief);
  color:var(--hk-tinte); font-style:normal; font-size:var(--hk-body); line-height:1.6;
}
body:is(.woocommerce-checkout, .woocommerce-account) #content .woocommerce-customer-details address p{ margin:8px 0 0; }
body:is(.woocommerce-checkout, .woocommerce-account) #content .woocommerce-customer-details .woocommerce-customer-details--phone,
body:is(.woocommerce-checkout, .woocommerce-account) #content .woocommerce-customer-details .woocommerce-customer-details--email{ padding-left:0; }
body:is(.woocommerce-checkout, .woocommerce-account) #content .woocommerce-customer-details :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email)::before{ display:none; }
body:is(.woocommerce-checkout, .woocommerce-account) #content .woocommerce-order-details .order-again{ margin:20px 0 0; }

/* ==========================================================================
   8 · MEIN KONTO  (.woocommerce-account)
   ========================================================================== */
/* --- Abgemeldet: Anmelden / Passwort vergessen / neues Passwort ------------------------------- */
body.woocommerce-account:not(.logged-in) #content .page-content{ position:relative; isolation:isolate; }
/* leise Jahresringe rechts neben der Karte (Deko, nur breite Ansicht) */
@media (min-width:1100px){
  body.woocommerce-account:not(.logged-in) #content .page-content::after{
    content:""; position:absolute; z-index:-1; pointer-events:none;
    top:0; bottom:0; right:var(--k-spalte); width:auto; max-width:min(34vw, 620px); aspect-ratio:1;
    background:url("../jahresringe.svg") center/contain no-repeat; opacity:.45;
  }
}
body.woocommerce-account:not(.logged-in) #content .page-content > .woocommerce{ max-width:600px; }
body.woocommerce-account:not(.logged-in) #content .page-content > .woocommerce > h2{ margin-bottom:clamp(16px, 1.4vw, 24px); }
/* Registrierung an: „Anmelden“ und „Noch kein Konto?“ als zwei gleich hohe Karten nebeneinander, am Handy untereinander */
body.woocommerce-account:not(.logged-in) #content .page-content > .woocommerce:has(#customer_login){ max-width:1180px; }
body.woocommerce-account #content #customer_login.u-columns{
  display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:clamp(24px, 3vw, 56px); align-items:stretch; width:auto; margin:0;
}
body.woocommerce-account #content #customer_login.u-columns::before,
body.woocommerce-account #content #customer_login.u-columns::after{ content:none; display:none; }
body.woocommerce-account #content #customer_login .u-column1,
body.woocommerce-account #content #customer_login .u-column2{ float:none; width:auto; max-width:none; display:flex; flex-direction:column; margin:0; padding:0; }
body.woocommerce-account #content #customer_login .u-column1 > h2,
body.woocommerce-account #content #customer_login .u-column2 > h2{ margin:0 0 clamp(16px, 1.4vw, 24px); }
body.woocommerce-account #content #customer_login :is(form.woocommerce-form-login, form.woocommerce-form-register){ flex:1 1 auto; }
body.woocommerce-account #content form.woocommerce-form-register .form-row{ float:none; width:100%; }
body.woocommerce-account #content form.woocommerce-form-register .hk-konto-vorteil{ margin:0 0 20px; color:var(--hk-tinte); font:500 var(--hk-body)/1.55 var(--hk-font-text); max-width:56ch; }
body.woocommerce-account #content form.woocommerce-form-register > p:not(.form-row):not(.hk-konto-vorteil),
body.woocommerce-account #content form.woocommerce-form-register .woocommerce-privacy-policy-text p{ color:var(--hk-tinte-neben); font:500 var(--hk-klein)/1.5 var(--hk-font-text); }
/* Germanized-Zustimmung: das Pflicht-Sternchen landet im Flex-Label als eigene Spalte ganz rechts – dort ausblenden
   (der Satz selbst ist die Zustimmung; „Erforderlich“ bleibt für Screenreader) */
body.woocommerce-account #content form.woocommerce-form-register label.checkbox > .required{ display:none; }
body.woocommerce-account #content form.woocommerce-form-register .woocommerce-form-register__submit{ float:none; width:100%; min-height:56px; margin:6px 0 0; }
@media (max-width:899px){
  body.woocommerce-account #content #customer_login.u-columns{ grid-template-columns:minmax(0, 1fr); }
}
body.woocommerce-account #content :is(form.woocommerce-form-login, form.woocommerce-form-register, form.lost_reset_password, form.woocommerce-ResetPassword){
  margin:0; padding:clamp(24px, 2.4vw, 44px);
  border:1px solid var(--k-linie); border-radius:var(--hk-radius); background:var(--hk-creme-tief);
  box-shadow:0 24px 48px -36px rgba(20,12,6,.45);
}
body.woocommerce-account #content :is(form.lost_reset_password, form.woocommerce-ResetPassword) > p:first-child{
  margin:0 0 22px; color:var(--hk-tinte); font:500 var(--hk-body)/1.55 var(--hk-font-text); max-width:56ch;
}
body.woocommerce-account #content :is(form.woocommerce-form-login, form.lost_reset_password, form.woocommerce-ResetPassword) .form-row{
  float:none; width:100%;
}
body.woocommerce-account #content :is(form.lost_reset_password, form.woocommerce-ResetPassword) .clear{ display:none; }
/* Angemeldet bleiben + Anmelden untereinander, Knöpfe volle Breite */
body.woocommerce-account #content form.woocommerce-form-login .form-row:has(.woocommerce-form-login__submit){
  display:flex; flex-direction:column; align-items:stretch; gap:14px; margin:4px 0 0;
}
body.woocommerce-account #content form.woocommerce-form-login .woocommerce-form-login__rememberme{ margin:0; }
body.woocommerce-account #content :is(.woocommerce-form-login__submit, form.lost_reset_password .button, form.woocommerce-ResetPassword .button){
  float:none; width:100%; min-height:56px; margin:0;
}
body.woocommerce-account #content form.woocommerce-form-login .lost_password{ margin:12px 0 0; }
body.woocommerce-account #content form.woocommerce-form-login .lost_password a{ display:flex; width:100%; min-height:52px; }
body.woocommerce-account #content :is(form.lost_reset_password, form.woocommerce-ResetPassword) .form-row:last-of-type{ margin-bottom:0; }

/* --- Angemeldet: Navigation links, Inhalt rechts ---------------------------------------------- */
body.woocommerce-account.logged-in #content .page-content > .woocommerce{
  display:grid; grid-template-columns:minmax(240px, 320px) minmax(0, 1fr); column-gap:clamp(32px, 4.4vw, 112px); align-items:start;
}
body.woocommerce-account.logged-in #content .page-content > .woocommerce::before,
body.woocommerce-account.logged-in #content .page-content > .woocommerce::after{ display:none; }
body.woocommerce-account #content .woocommerce-MyAccount-navigation{
  float:none; width:auto; margin:0; position:sticky; top:calc(var(--hk-kopf-h) + 24px);
}
body.woocommerce-account #content .woocommerce-MyAccount-navigation ul{
  list-style:none; margin:0; padding:8px; display:grid; gap:4px;
  border:1px solid var(--k-linie); border-radius:var(--hk-radius); background:var(--hk-creme-tief);
}
body.woocommerce-account #content .woocommerce-MyAccount-navigation li{ margin:0; padding:0; }
body.woocommerce-account #content .woocommerce-MyAccount-navigation a{
  display:flex; align-items:center; min-height:52px; padding:0 18px; box-sizing:border-box; border-radius:8px;
  color:var(--hk-tinte); font:600 var(--hk-body)/1.25 var(--hk-font-text); text-decoration:none;
  transition:background-color .2s ease, color .2s ease;
}
body.woocommerce-account #content .woocommerce-MyAccount-navigation li.is-active a{
  background:var(--hk-abgeflammt); color:var(--hk-licht); box-shadow:inset 3px 0 0 var(--hk-hirnholz);
}
body.woocommerce-account #content .woocommerce-MyAccount-navigation li.is-active a:focus-visible{ outline-color:var(--hk-holzbraun); }
body.woocommerce-account #content .woocommerce-MyAccount-navigation-link--customer-logout{
  margin-top:6px!important; padding-top:6px!important; border-top:1px solid var(--k-linie);
}
body.woocommerce-account #content .woocommerce-MyAccount-navigation-link--customer-logout a{ color:var(--hk-holzbraun); }
@media (hover:hover) and (pointer:fine){
  body.woocommerce-account #content .woocommerce-MyAccount-navigation li:not(.is-active) a:hover{ background:var(--hk-creme); color:var(--hk-holzbraun); }
}
body.woocommerce-account #content .woocommerce-MyAccount-content{ float:none; width:auto; min-width:0; margin:0; }
body.woocommerce-account #content .woocommerce-MyAccount-content > p{ max-width:62ch; margin:0 0 16px; color:var(--hk-tinte); font-size:var(--hk-body); line-height:1.6; }
body.woocommerce-account #content .woocommerce-MyAccount-content > p:first-of-type{ font-size:var(--hk-lead); }
body.woocommerce-account #content .woocommerce-MyAccount-content mark{ background:var(--hk-creme-tief); color:var(--hk-tinte); padding:0 .2em; border-radius:3px; }

/* Bestellungen */
body.woocommerce-account #content table.woocommerce-orders-table,
body.woocommerce-account #content table.woocommerce-MyAccount-downloads{
  width:100%; margin:0; border:0; border-radius:0; border-collapse:collapse; background:transparent;
}
body.woocommerce-account #content :is(table.woocommerce-orders-table, table.woocommerce-MyAccount-downloads) :is(th, td){
  border:0; border-bottom:1px solid var(--k-linie); background:transparent; padding:18px 14px 18px 0; vertical-align:middle; text-align:left; line-height:1.4;
}
body.woocommerce-account #content :is(table.woocommerce-orders-table, table.woocommerce-MyAccount-downloads) thead th{
  padding-top:0; border-bottom:1.5px solid var(--hk-holzbraun); color:var(--hk-tinte-neben); font:600 var(--hk-klein)/1.3 var(--hk-font-text);
}
body.woocommerce-account #content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a{ color:var(--hk-tinte); font-weight:700; }
body.woocommerce-account #content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-total{ font-variant-numeric:tabular-nums; }
body.woocommerce-account #content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-total .amount{ font-weight:600; }
body.woocommerce-account #content table.woocommerce-orders-table :is(th, td):last-child{ padding-right:0; }
body.woocommerce-account #content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions{ text-align:right; }
body.woocommerce-account #content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .button{
  min-height:44px; padding:0 18px; margin:3px 0 3px 6px; font-size:var(--hk-klein);
}
body.woocommerce-account #content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-status{ font-weight:600; }
body.woocommerce-account #content .woocommerce-pagination{ display:flex; gap:12px; margin-top:24px; }

/* Adressen: zwei Karten nebeneinander */
body.woocommerce-account #content .woocommerce-Addresses{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:var(--k-abstand); margin-top:20px;
}
body.woocommerce-account #content .woocommerce-Addresses::before,
body.woocommerce-account #content .woocommerce-Addresses::after{ display:none; }
body.woocommerce-account #content .woocommerce-Address{
  float:none; width:auto; max-width:none; margin:0; display:flex; flex-direction:column;
  padding:var(--k-innen); border:1px solid var(--k-linie); border-radius:var(--hk-radius); background:var(--hk-creme-tief);
}
body.woocommerce-account #content .woocommerce-Address address{ padding:0; border:0; background:transparent; margin:0 0 20px; flex:1 1 auto; }
body.woocommerce-account #content .woocommerce-Address-title{ display:contents; }
body.woocommerce-account #content .woocommerce-Address-title h2{ order:0; }
body.woocommerce-account #content .woocommerce-Address-title .edit{ order:2; float:none; align-self:flex-start; min-height:48px; padding:0 22px; font-size:var(--hk-klein); }
body.woocommerce-account #content .woocommerce-Address address{ order:1; }

/* Adresse bearbeiten / Kontodetails: Raster 2 Spalten, mobil 1 */
body.woocommerce-account #content :is(.woocommerce-address-fields__field-wrapper, form.edit-account){
  display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); column-gap:24px; max-width:880px;
}
body.woocommerce-account #content :is(.woocommerce-address-fields__field-wrapper, form.edit-account) > :is(.form-row, fieldset, p, .clear, div){ grid-column:1 / -1; float:none; width:auto; }
body.woocommerce-account #content :is(.woocommerce-address-fields__field-wrapper, form.edit-account) > .form-row-first{ grid-column:1; }
body.woocommerce-account #content :is(.woocommerce-address-fields__field-wrapper, form.edit-account) > .form-row-last{ grid-column:2; }
body.woocommerce-account #content form.edit-account > .clear{ display:none; }
body.woocommerce-account #content #account_display_name_description{ display:block; margin-top:8px; color:var(--hk-tinte-neben); font-size:var(--hk-klein); }
body.woocommerce-account #content #account_display_name_description em{ font-style:normal; }
body.woocommerce-account #content form.edit-account fieldset{
  margin:12px 0 24px; padding:var(--k-innen); border:1px solid var(--k-linie); border-radius:var(--hk-radius); background:var(--hk-creme-tief);
}
body.woocommerce-account #content form.edit-account legend{
  padding:0 10px; margin-left:-10px; color:var(--hk-tinte); font:800 clamp(1.25rem, 1rem + .6vw, 1.75rem)/1.1 var(--hk-font-display);
}
body.woocommerce-account #content form.edit-account fieldset .form-row:last-child{ margin-bottom:0; }
body.woocommerce-account #content .woocommerce-MyAccount-content form > h2,
body.woocommerce-account #content .woocommerce-address-fields > p:last-child{ max-width:880px; }
/* Shiptastic-Abholstation-Fenster (Adressen) */
body.woocommerce-account #content .wc-stc-modal-content-inner{ border-radius:var(--hk-radius); background:var(--hk-creme); color:var(--hk-tinte); }
body.woocommerce-account #content .wc-stc-modal-content-inner header h4{ font:800 var(--hk-lead)/1.2 var(--hk-font-display); color:var(--hk-tinte); }
body.woocommerce-account #content .wc-stc-modal-close{ display:inline-flex; align-items:center; min-height:44px; }

/* Konto mobil */
@media (max-width:899px){
  body.woocommerce-account.logged-in #content .page-content > .woocommerce{ display:block; }
  body.woocommerce-account #content .woocommerce-MyAccount-navigation{ position:static; margin:0 0 28px; }
  body.woocommerce-account #content .woocommerce-MyAccount-navigation ul{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  body.woocommerce-account #content .woocommerce-MyAccount-navigation a{ min-height:48px; padding:0 14px; font-size:var(--hk-klein); }
  body.woocommerce-account #content .woocommerce-MyAccount-navigation-link--customer-logout{ grid-column:1 / -1; }
}
@media (max-width:768px){
  body.woocommerce-account #content :is(.woocommerce-address-fields__field-wrapper, form.edit-account){ grid-template-columns:minmax(0, 1fr); }
  body.woocommerce-account #content :is(.woocommerce-address-fields__field-wrapper, form.edit-account) > :is(.form-row-first, .form-row-last){ grid-column:1; }
  /* Bestellungen als Karten (Woo-Kartenansicht, Beschriftung links, Wert rechts) */
  body.woocommerce-account #content table.woocommerce-orders-table tbody tr{
    display:block; padding:14px 0; border-bottom:1px solid var(--k-linie);
  }
  body.woocommerce-account #content table.woocommerce-orders-table tbody :is(th, td){
    display:block!important; padding:8px 0; border:0!important; text-align:right!important; line-height:1.4;
  }
  body.woocommerce-account #content table.woocommerce-orders-table tbody :is(th, td)::before{
    float:left; margin-right:12px; content:attr(data-title); color:var(--hk-tinte-neben); font:500 var(--hk-klein)/1.55 var(--hk-font-text);
  }
  body.woocommerce-account #content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions{
    display:flex!important; flex-wrap:wrap; justify-content:flex-end; gap:8px; padding-top:12px;
  }
  body.woocommerce-account #content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .button{ margin:0; }
  body.woocommerce-account #content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions::before{ display:none; }
  body:is(.woocommerce-checkout, .woocommerce-account) #content table.order_details tbody td{ display:table-cell; }
}

/* Kasse: Zwischensumme und Versand als ein Block (keine Linie dazwischen) */
body.woocommerce-checkout #content .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-totals-block .wc-block-components-totals-wrapper:not(:empty) ~ .wc-block-components-totals-wrapper{ border-top:0; padding-top:0; }

/* Bestellbestätigung: Feinschliff */
body:is(.woocommerce-checkout, .woocommerce-account) #content .woocommerce-order h2,
body:is(.woocommerce-checkout, .woocommerce-account) #content .woocommerce-MyAccount-content h2{ max-width:none; }
body:is(.woocommerce-checkout, .woocommerce-account) #content .woocommerce-bacs-bank-details ul.bacs_details::before,
body:is(.woocommerce-checkout, .woocommerce-account) #content .woocommerce-bacs-bank-details ul.bacs_details::after{ display:none; }
body:is(.woocommerce-checkout, .woocommerce-account) #content .woocommerce-bacs-bank-details h3.wc-bacs-bank-details-account-name{ margin:8px 0 0; font-size:var(--hk-lead); }
body:is(.woocommerce-checkout, .woocommerce-account) #content .woocommerce-bacs-bank-details ul.bacs_details li strong{ font-variant-numeric:tabular-nums; overflow-wrap:normal; word-break:break-all; }
body:is(.woocommerce-checkout, .woocommerce-account) #content table.order_details tfoot tr:last-child :is(th, td){
  padding-top:18px; border-top:1.5px solid var(--hk-holzbraun); color:var(--hk-tinte); font:600 var(--hk-lead)/1.2 var(--hk-font-text);
}
body:is(.woocommerce-checkout, .woocommerce-account) #content table.order_details tbody .product-name a{ font-size:var(--hk-body); }

/* ==========================================================================
   6b · KASSE MOBIL (< 920 px): Artikel direkt über „Jetzt kaufen“ (§ 312j BGB)
   Germanized 4.1.7 blendet mobil Woos Artikelliste vor dem Kaufknopf aus (.checkout-order-summary-block-fill-wrapper)
   und zeigt nur die Kopfzeile „Bestellübersicht 20,19 €“ – deren Inhalt rendert Woo 11.3 aber erst nach Aufklappen,
   und Aufklappen sperrt Germanized (pointer-events:none). Ergebnis: keine Artikel vor dem Kaufknopf (live genauso).
   Fix nur per CSS: Woos schon gerenderte Mobil-Übersicht wieder sichtbar machen – als Oberteil der dunklen Kaufkarte:
   Block A = Artikel, Gutschein, Zwischensumme, Versand, Gesamtsumme; aus Block B (Germanized) nur der § 19-Hinweis.
   Woos zweiter Kaufknopf in diesem Bereich bleibt ausgeblendet; gekauft wird wie bisher über den Germanized-Knopf.
   ========================================================================== */
body.woocommerce-checkout #content .wc-block-checkout:not(.is-large) .wc-block-checkout__main .wc-block-checkout__actions{
  display:block!important; /* Germanized: display:none */ margin:24px 0 0; padding:0;
}
body.woocommerce-checkout #content .wc-block-checkout:not(.is-large) .wc-block-checkout__main .wc-block-checkout__actions .wc-block-checkout__actions_row{ display:none; }
body.woocommerce-checkout #content .wc-block-checkout:not(.is-large) .wc-block-checkout__main .checkout-order-summary-block-fill-wrapper{
  display:block!important; position:relative; margin:0; border:0; border-radius:0; background:var(--hk-abgeflammt); color:var(--hk-licht);
  padding:0 clamp(22px, 5vw, 32px);
}
/* A: mit Artikeln → oben gerundet */
body.woocommerce-checkout #content .wc-block-checkout:not(.is-large) .wc-block-checkout__main .checkout-order-summary-block-fill-wrapper:has(.wp-block-woocommerce-checkout-order-summary-cart-items-block){
  padding-top:clamp(22px, 5vw, 32px); border-radius:var(--hk-radius) var(--hk-radius) 0 0;
}
/* B: nur der § 19-Hinweis bleibt (Titel, Artikel und zweite Gesamtsumme wären doppelt) */
body.woocommerce-checkout #content .wc-block-checkout:not(.is-large) .wc-block-checkout__main .checkout-order-summary-block-fill-wrapper:not(:has(.wp-block-woocommerce-checkout-order-summary-cart-items-block)) :is(.wc-block-components-checkout-step__heading, .wc-gzd-hide-total-wrapper, .wc-gzd-show-total-wrapper:not(.slot-wrapper)){ display:none; }
body.woocommerce-checkout #content .wc-block-checkout:not(.is-large) .wc-block-checkout__main .checkout-order-summary-block-fill-wrapper:not(:has(.wp-block-woocommerce-checkout-order-summary-cart-items-block)) .wc-block-components-totals-wrapper{ border:0; padding:0 0 4px; }
body.woocommerce-checkout #content .wc-block-checkout:not(.is-large) .checkout-order-summary-block-fill-wrapper .wc-block-components-order-meta{ margin:0; }
/* Woos Rahmen um die Mobil-Übersicht weg – nur die Trennlinien zwischen den Zeilen bleiben */
body.woocommerce-checkout #content .wc-block-checkout:not(.is-large) .checkout-order-summary-block-fill-wrapper .checkout-order-summary-block-fill{
  border:0; border-radius:0; padding:0; background:transparent;
}
body.woocommerce-checkout #content .wc-block-checkout:not(.is-large) .checkout-order-summary-block-fill-wrapper .wc-block-components-totals-wrapper{ border-left:0; border-right:0; border-bottom:0; }
body.woocommerce-checkout #content .wc-block-checkout:not(.is-large) .checkout-order-summary-block-fill-wrapper .wp-block-woocommerce-checkout-order-summary-cart-items-block{ border-top:0; padding-top:4px; }
/* leerer Germanized-Platzhalter unter der Gesamtsumme */
body.woocommerce-checkout #content .wc-block-checkout:not(.is-large) .checkout-order-summary-block-fill-wrapper .slot-wrapper:has(> .wc-block-components-order-meta:empty){ display:none; }
body.woocommerce-checkout #content .wc-block-checkout:not(.is-large) .checkout-order-summary-block-fill-wrapper .wc-block-components-checkout-step__heading{ margin:0 0 6px; }
body.woocommerce-checkout #content .wc-block-checkout:not(.is-large) .checkout-order-summary-block-fill-wrapper .wc-block-components-checkout-step__title{
  margin:0; color:var(--hk-licht); font:800 clamp(1.625rem, 1.1rem + 1.1vw, 2.5rem)/1.02 var(--hk-font-display);
}
body.woocommerce-checkout #content .wc-block-checkout:not(.is-large) .checkout-order-summary-block-fill-wrapper :is(.checkout-order-summary-block-fill, .wp-block-woocommerce-checkout-order-summary-cart-items-block, .wc-block-components-order-summary, .wc-block-components-totals-wrapper){
  border-color:var(--k-linie-dunkel); background:transparent; color:var(--hk-licht); padding-left:0; padding-right:0;
}
body.woocommerce-checkout #content .wc-block-checkout:not(.is-large) .checkout-order-summary-block-fill-wrapper .wc-block-components-order-summary-item{ background:transparent; }
body.woocommerce-checkout #content .wc-block-checkout:not(.is-large) .checkout-order-summary-block-fill-wrapper .wc-block-components-totals-footer-item{ align-items:baseline; }
/* darunter die Seitenleiste als Unterteil derselben Karte: Kopfzeile (doppelt) aus, nur noch „Jetzt kaufen“ */
body.woocommerce-checkout #content .wc-block-components-sidebar-layout:not(.is-large) .wc-block-checkout__sidebar:has(.wc-gzd-checkout-submit){
  margin-top:0; border-radius:0 0 var(--hk-radius) var(--hk-radius); padding-top:8px;
}
body.woocommerce-checkout #content .wc-block-components-sidebar-layout:not(.is-large):has(.checkout-order-summary-block-fill-wrapper .wc-gzd-show-total-wrapper) .wc-block-checkout__sidebar > .wp-block-woocommerce-checkout-order-summary-block{ display:none; }
body.woocommerce-checkout #content .wc-block-components-sidebar-layout:not(.is-large) .wc-block-checkout__sidebar .wc-gzd-checkout-submit{ margin:0; padding:0; }
body.woocommerce-checkout #content .wc-block-components-sidebar-layout:not(.is-large) .wc-block-checkout__sidebar .wc-gzd-checkout-submit .wc-block-checkout__actions{ padding-top:12px; }
body.woocommerce-checkout #content .wc-block-components-sidebar-layout:not(.is-large) .wc-block-components-main{ padding-bottom:0; margin-bottom:0; }

/* Rückfall: falls die Germanized-Fassung fehlt, bleibt die Kopfzeile wenigstens aufklappbar (Woo rendert den Inhalt dann) */
body.woocommerce-checkout #content .wc-block-checkout:not(.is-large) .wc-block-checkout__sidebar > .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title{ pointer-events:auto; cursor:pointer; }
body.woocommerce-checkout #content .wc-block-checkout:not(.is-large) .wc-block-checkout__sidebar > .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title-icon{ display:flex; }

/* Kopfzeile der Bestellübersicht (Seitenleiste): Summe gut lesbar */
body.woocommerce-checkout #content .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title{ min-height:48px; gap:12px; }
body.woocommerce-checkout #content .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title-price{
  color:var(--hk-licht); font:800 clamp(1.375rem, 1.1rem + .8vw, 1.75rem)/1 var(--hk-font-display); white-space:nowrap;
}
body.woocommerce-checkout #content .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title-icon svg{ fill:var(--hk-hirnholz); }
body.woocommerce-checkout #content .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title:focus-visible{ outline:3px solid var(--hk-hirnholz); outline-offset:4px; border-radius:6px; }

/* Hinweise bekommen von Woo per Skript den Fokus (für Screenreader) – kein Fokusrahmen um die ganze Meldung */
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content :is(.woocommerce-info, .woocommerce-message, .woocommerce-error, .woocommerce-notices-wrapper, .wc-block-components-notice-banner):focus{ outline:0; }

/* Weitere Tabellen im Konto (z. B. Sendungen von Shiptastic, Rechnungen): gleiche ruhige Linien wie Bestellungen */
body.woocommerce-account #content .woocommerce-MyAccount-content table:not(.order_details):not(.woocommerce-orders-table):not(.woocommerce-MyAccount-downloads){
  width:100%; margin:0 0 clamp(24px, 2.4vw, 40px); border:0; border-collapse:collapse; background:transparent;
}
body.woocommerce-account #content .woocommerce-MyAccount-content table:not(.order_details):not(.woocommerce-orders-table):not(.woocommerce-MyAccount-downloads) :is(th, td){
  border:0; border-bottom:1px solid var(--k-linie); background:transparent; padding:16px 14px 16px 0; text-align:left; vertical-align:middle; line-height:1.4;
}
body.woocommerce-account #content .woocommerce-MyAccount-content table:not(.order_details):not(.woocommerce-orders-table):not(.woocommerce-MyAccount-downloads) thead th{
  border-bottom:1.5px solid var(--hk-holzbraun); color:var(--hk-tinte-neben); font:600 var(--hk-klein)/1.3 var(--hk-font-text);
}
body.woocommerce-account #content .woocommerce-MyAccount-content table :is(th, td):last-child{ padding-right:0; }
body.woocommerce-account #content .woocommerce-MyAccount-content table .button{ min-height:44px; padding:0 18px; font-size:var(--hk-klein); }
body.woocommerce-account #content .woocommerce-MyAccount-content > h2,
body.woocommerce-account #content .woocommerce-MyAccount-content section > h2{ margin-top:clamp(24px, 2.4vw, 40px); }
body.woocommerce-account #content .woocommerce-MyAccount-content > p:first-of-type mark{ font-weight:600; }

/* ==========================================================================
   9 · Unter dem Fuß: „Vertrag widerrufen“ (Widerrufsbutton, Plugin eu-owb – Pflicht, bleibt sichtbar)
   Das Plugin setzt den Absatz direkt nach <footer> in den <body>; hier als Zweit-Button im dunklen Fuß.
   (Gilt nur auf Warenkorb/Kasse/Konto – für alle Seiten gehört das in die Basis, siehe README.)
   ========================================================================== */
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) > p.eu-owb-order-withdraw-from-contract-button{
  margin:0; padding:4px var(--hk-rand) 28px; background:var(--hk-abgeflammt); text-align:center;
}
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) > p.eu-owb-order-withdraw-from-contract-button a.button{
  display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 24px; box-sizing:border-box;
  border:2px solid var(--hk-hirnholz); border-radius:999px; background:transparent; color:var(--hk-hirnholz);
  font:600 var(--hk-klein)/1.2 var(--hk-font-text); text-decoration:none; outline-offset:3px;
  transition:background-color .2s ease, color .2s ease;
}
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) > p.eu-owb-order-withdraw-from-contract-button a.button:focus-visible{ outline:3px solid var(--hk-hirnholz); }
@media (hover:hover) and (pointer:fine){
  body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) > p.eu-owb-order-withdraw-from-contract-button a.button:hover{ background:var(--hk-hirnholz); color:var(--hk-abgeflammt); }
}

/* ==========================================================================
   10 · reCAPTCHA-Badge in der Kasse
   Kommt von PayPal Payments (Betrugsschutz, reCAPTCHA v3, lädt nur in der Kasse). Das fest angeheftete Badge
   verdeckt mobil die rechte Feldkante. Google erlaubt das Ausblenden, wenn der reCAPTCHA-Hinweis sichtbar im
   Ablauf steht – der steht deshalb klein unter dem Rechtstext. (Anmelden: dort gibt es kein reCAPTCHA-Feld.)
   Die Links zu Googles Datenschutz/Nutzungsbedingungen kann CSS nicht setzen → offener Punkt in der README.
   ========================================================================== */
body.woocommerce-checkout .grecaptcha-badge{ visibility:hidden!important; }
body.woocommerce-checkout #content .wc-block-checkout__terms::after{
  content:"Diese Seite ist durch reCAPTCHA geschützt. Es gelten die Datenschutzerklärung und die Nutzungsbedingungen von Google.";
  display:block; margin:12px 0 0; color:var(--hk-tinte-neben); font:500 14px/1.5 var(--hk-font-text);
}
/* ==========================================================================
   11 · Review 15.11.: Warenkorb ohne Doppel-Knöpfe
   „Warenkorb aktualisieren“ erst zeigen, wenn eine Menge geändert wurde (WooCommerce gibt den Knopf dann frei);
   der Hinweis-Knopf „Warenkorb anzeigen“ ist auf dem Warenkorb selbst überflüssig.
   ========================================================================== */
body.woocommerce-cart #content .woocommerce-cart-form button[name="update_cart"]:disabled{ display:none!important; }
body.woocommerce-cart #content .woocommerce-message .button.wc-forward{ display:none!important; }

/* ---------- Mein Konto, nicht angemeldet: Anmelde-Fenster mittig (Kevin, 15.11.2026) ---------- */
body.woocommerce-account:not(.logged-in) #content .page-content > .woocommerce{
  max-width:600px; margin-left:auto; margin-right:auto;
}
body.woocommerce-account:not(.logged-in) #content .page-content > .woocommerce > h2{ text-align:center; max-width:none; width:100%; margin-left:0; margin-right:0; }

/* ==========================================================================
   12 · Richtung B: Kopf von Kasse, Bestellbestätigung und Konto (inc/shop-design.php, the_content)
   Dunkle Werkbank wie im Warenkorb (Kasse = Stempel 2, Bestätigung = Stempel 3), gerade Unterkante mit Hirnholz-Fuge.
   ========================================================================== */
body:is(.woocommerce-checkout, .woocommerce-account) #content .page-content > .hk-werkbank-kopf{ margin-bottom:clamp(36px, 3.4vw, 80px); }
body:is(.woocommerce-checkout, .woocommerce-account) #content .page-content > .hk-werkbank-kopf::before{
  content:""; position:absolute; left:50%; bottom:0; width:calc(100vw - var(--hk-scrollbar, 0px)); height:6px; transform:translateX(-50%);
  background:var(--hk-fuge);
}
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content .hk-werkbank-kopf .hk-plakat{ color:var(--hk-licht); }
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) #content .hk-schritt > a{ text-decoration:none; color:var(--hk-licht-neben); }
/* Konto: kein Stempel – kompakter Kopf */
body.woocommerce-account #content .hk-werkbank-kopf:not(.hat-schritte){ padding-block:clamp(32px, 3vw, 72px) clamp(28px, 2.4vw, 56px); }

/* CNC-/Shop-Hinweisfenster überdeckt auf Warenkorb, Kasse und Konto die Summe bzw. „Jetzt kaufen“ – dort aus */
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) .woocommerce-store-notice,
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) p.demo_store{ display:none!important; }
/* Sehr schmale Handys (320 px): Versandpreis neben dem Namen bricht in die nächste Zeile statt über den Rand zu ragen */
body.woocommerce-checkout #content .wc-block-components-radio-control__label-group{ flex-wrap:wrap; column-gap:12px; min-width:0; }
body.woocommerce-checkout #content .wc-block-components-radio-control__secondary-label{ min-width:0; width:auto; flex:0 0 auto; margin-left:auto; }
/* Block-Kasse baut sich per Skript auf (Platzhalter → Formular). Solange sie lädt, hält sie eine Bildschirmhöhe frei,
   damit der Fuß nicht erst im Bild steht und dann nach unten springt (Layout-Verschiebung). */
body.woocommerce-checkout #content .wp-block-woocommerce-checkout.is-loading,
body.woocommerce-checkout #content .wc-block-checkout.is-loading{ min-height:100vh; }

/* ==========================================================================
   13 · Härtetest 15.11.: Kasse am Handy ohne Sprung beim Aufbau (CLS)
   Die Block-Kasse rendert zuerst ohne Größenklasse (is-mobile/is-small …) – in diesem einen Bild steht die Seitenleiste
   (Bestellübersicht + „Jetzt kaufen“) ÜBER dem Formular und rutscht ~85 ms später nach unten (gemessen CLS 0,55 von 0,68).
   Solange die Größenklasse fehlt, steht das Formular schon da, wo es danach bleibt; die Seitenleiste wartet unsichtbar darunter.
   Optik nach dem Aufbau unverändert.
   ========================================================================== */
@media (max-width:699px){
  body.woocommerce-checkout #content .wc-block-components-sidebar-layout:not(.is-mobile):not(.is-small):not(.is-medium):not(.is-large) > .wc-block-checkout__main{ order:0; }
  body.woocommerce-checkout #content .wc-block-components-sidebar-layout:not(.is-mobile):not(.is-small):not(.is-medium):not(.is-large) > .wc-block-checkout__sidebar{ order:1; visibility:hidden; }
}

/* Warenkorb am Handy (bis 479 px): Einzelpreis und Zeilensumme untereinander statt nebeneinander –
   lange Preise (1.950,00 €, 12.500,00 €) stoßen sonst auf schmalen Geräten aneinander (Härtetest iPhone SE) */
@media (max-width:479px){
  body.woocommerce-cart #content table.cart tr.cart_item{
    grid-template-areas:"bild name name" "bild preis preis" "bild summe summe" "menge menge weg";
  }
  body.woocommerce-cart #content table.cart td.product-subtotal{ justify-self:start; text-align:left!important; align-self:start; }
}

/* ==========================================================================
   ABSCHLUSS-FIXES (Abschluss-Review 15.11.2026)
   ========================================================================== */
/* Bestellübersicht am schmalen Handy: Preis in eigene Zeile (rechtsbündig unter dem Namen), damit der Name Platz hat */
@media (max-width:400px){
  body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-order-summary-item{ flex-wrap:wrap; }
  body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-order-summary-item__description{ flex:1 1 0; min-width:0; padding-right:0; }
  body.woocommerce-checkout #content :is(.wc-block-checkout__sidebar, .checkout-order-summary-block-fill-wrapper) .wc-block-components-order-summary-item__total-price{ flex:1 0 100%; margin:6px 0 0; padding:0; text-align:right; }
}
/* Lieferzeit-Zeile der Bestellübersicht (Germanized) war breiter als ihre Spalte (Seite 8 px seitlich verschiebbar am iPhone 15 Pro) */
body.woocommerce-checkout #content .wc-block-components-order-summary-item .wc-block-components-product-details__gzd-delivery-time{ max-width:100%; }

/* Kasse: AGB-/Datenschutz-Hinweis (Block „Bedingungen“ der Kassenseite, Text unverändert) steht direkt über „Jetzt kaufen“
   (assets/shop-design.js setzt eine Kopie dorthin). Der alte Platz unten im Formular wird dann ausgeblendet – am Desktop lag
   er links weit unter dem Knopf, am Handy rund 1000 px vor ihm. Ohne Skript bleibt alles wie vorher. */
body.woocommerce-checkout .hk-kasse-hinweis{ margin:0 0 14px; color:var(--hk-licht-neben); font:500 var(--hk-klein)/1.5 var(--hk-font-text); }
body.woocommerce-checkout .hk-kasse-hinweis a{ color:var(--hk-hirnholz); text-decoration:underline; text-underline-offset:.18em; }
body.woocommerce-checkout .hk-kasse-hinweis a:focus-visible{ outline:3px solid var(--hk-hirnholz); outline-offset:2px; }
body.woocommerce-checkout .wc-block-checkout:has(.hk-kasse-hinweis) .wc-block-checkout__form .wc-block-checkout__terms{ display:none; }

/* Mobiler Warenkorb: Kopf kompakter (Titel + Schritte nebeneinander, kleinere Stempel) */
@media (max-width:899px){
  body.woocommerce-cart #content .hk-werkbank-kopf.hat-schritte{ flex-direction:row; flex-wrap:wrap; align-items:center; gap:14px 20px; padding-block:20px 18px; }
  body.woocommerce-cart #content .hk-werkbank-kopf.hat-schritte .hk-plakat{ font-size:clamp(2rem, 1.3rem + 3.6vw, 3rem); }
  body.woocommerce-cart #content .hk-werkbank-kopf .hk-schritte{ --s:40px; gap:14px; margin:0; }
  body.woocommerce-cart #content .hk-werkbank-kopf .hk-schritt, body.woocommerce-cart #content .hk-werkbank-kopf .hk-schritt > a{ gap:6px; }
  body.woocommerce-cart #content .hk-werkbank-kopf .hk-schritt-name{ font-size:13px; }
}
/* Mobile Warenkorb-Leiste (assets/shop-design.js): „Gesamt X € · Zur Kasse“, Stil wie die Kaufleiste der Produktseite.
   Nur < 900 px und nur mit Inhalt im Warenkorb; verschwindet, solange der echte „Zur Kasse“-Knopf im Bild ist. */
.hk-korbleiste{ display:none; }
@media (max-width:899px){
  html.hk-hat-korbleiste{ --hk-korbleiste-unten:calc(68px + env(safe-area-inset-bottom, 0px)); }
  html.hk-hat-korbleiste body.woocommerce-cart{ padding-bottom:calc(var(--hk-korbleiste-unten) + 8px); }
  .hk-korbleiste{
    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-korbleiste-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-korbleiste-an .hk-korbleiste{ transform:none; visibility:visible; transition:transform .28s cubic-bezier(.2,.7,.2,1), visibility 0s; }
  .hk-korbleiste__summe{ display:flex; flex-direction:column; min-width:0; }
  .hk-korbleiste__label{ color:var(--hk-licht-neben); font:500 .8125rem/1.3 var(--hk-font-text); }
  .hk-korbleiste__betrag{ color:var(--hk-licht); font:800 clamp(1.25rem, 1rem + 1.4vw, 1.5rem)/1.1 var(--hk-font-display); white-space:nowrap; }
  .hk-korbleiste__betrag :is(.woocommerce-Price-amount, bdi){ color:inherit; }
  .hk-korbleiste__knopf{
    flex:none; display:inline-flex; align-items:center; justify-content:center; gap:.5em; box-sizing:border-box;
    min-height:48px; padding:0 22px; border-radius:999px; text-decoration:none;
    background:var(--hk-hirnholz); color:var(--hk-abgeflammt)!important; font:600 1rem/1.2 var(--hk-font-text); white-space:nowrap;
    -webkit-tap-highlight-color:transparent;
  }
  .hk-korbleiste__knopf:active{ background:var(--hk-hirnholz-h); }
  .hk-korbleiste :focus-visible{ outline:3px solid var(--hk-hirnholz); outline-offset:3px; }
  html.hk-hat-korbleiste body.woocommerce-cart :is(.grecaptcha-badge){ transform:translateY(calc(-1 * var(--hk-korbleiste-unten))); }
}
@media (max-width:899px) and (prefers-reduced-motion:reduce){ .hk-korbleiste, html.hk-korbleiste-an .hk-korbleiste{ transition:none; } }

/* Hinweis Bestandskunden-Infos (§ 7 Abs. 3 UWG) – klein, aber gut lesbar */
body.woocommerce-cart #content .hk-bk-hinweis{ margin:14px 0 0; color:var(--hk-licht-neben); font:400 .78rem/1.45 var(--hk-font-text); text-align:center; }
body.woocommerce-checkout #content .hk-bk-hinweis{ margin:8px 0 0 34px; color:var(--hk-tinte-neben); font:400 .8125rem/1.5 var(--hk-font-text); }

/* Kasse: Platz für die PayPal-Express-Leiste vorab reservieren – sonst rutscht das Formular beim Nachladen (CLS) */
body.woocommerce-checkout #content .wc-block-components-express-payment{ min-height:150px; }
@media (max-width:599px){ body.woocommerce-checkout #content .wc-block-components-express-payment{ min-height:140px; } }
