/*
 Theme Name: HirschnLugg Shop
 Theme URI: https://shop.hirschnlugg.de
 Description: Shop-Theme von HirschnLugg Designs: neue Startseite mit Live-Vorschau, Produktkarten, Hell/Dunkel und Kopfbereich passend zu hirschnlugg.de.
 Author: Lukas Jelinek
 Template: storefront
 Version: 6.0.0
 Text Domain: hirschnlugg-shop
*/

/* Montserrat lokal (wie auf hirschnlugg.de, keine Google Fonts) */
@font-face{font-family:"Montserrat";src:url("fonts/montserrat-var.woff") format("woff");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Montserrat";src:url("fonts/montserrat-italic-var.woff") format("woff");font-weight:100 900;font-style:italic;font-display:swap}

/* --------------------------------------------------------------------------
   1. HIGH-END DESIGN SYSTEM & VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Typography & Layout */
  --hl-font-sans: "Montserrat", "Merriweather Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --hl-radius-sm: 0.25rem;
  --hl-radius-md: 0.75rem;
  --hl-radius-lg: 1rem;
  --hl-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  /* Corporate Colors */
  --hl-primary: #345944;
  --hl-accent: #49734c;
  --hl-accent-hover: #619164;
  --hl-gold: #d4af37;

  /* Light Mode Palette */
  --hl-bg-light: #ffffff;
  --hl-surface-light: #f8f9fa;
  --hl-surface-glass-light: rgba(255, 255, 255, 0.9);
  --hl-text-light: #212529;
  --hl-text-muted-light: #6c757d;
  --hl-border-light: #dee2e6;
  --hl-shadow-light: 0 0.5rem 1rem rgba(0, 0, 0, 0.075);
  --hl-shadow-hover-light: 0 1rem 2rem rgba(0, 0, 0, 0.12);

  /* Dark Mode Palette */
  --hl-bg-dark: #141c26;
  --hl-surface-dark: #243340;
  --hl-surface-glass-dark: rgba(20, 28, 38, 0.85);
  --hl-surface-dark-focus: #2c3e4d;
  --hl-text-dark: #e8ece9;
  --hl-text-muted-dark: #a0b0a5;
  --hl-border-dark: #a0b0a5;
  --hl-shadow-dark: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
  --hl-shadow-hover-dark: 0 1rem 2rem rgba(0, 0, 0, 0.7);
}

/* Global Typography & Behavior */
html {
  scroll-behavior: smooth;
  font-family: var(--hl-font-sans);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: var(--hl-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip statt hidden: Storefront setzt overflow-x:hidden – das macht body zum Scroll-Container und der Header klebt nicht mehr */
  overflow-x: clip !important;
  overflow-y: visible !important;
}

h1, h2, h3, h4, h5, h6,
.site-title, .woocommerce-loop-product__title {
  font-family: var(--hl-font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.Hirschnlugg {
  font-family: recherche, cursive, sans-serif !important;
  color: var(--hl-primary) !important;
  font-size: 180%;
  text-decoration: none !important;
}

/* Custom Divider Accent Line */
hr.divider {
  height: 0.2rem;
  max-width: 3.25rem;
  margin: 1.5rem auto;
  background-color: var(--hl-primary);
  opacity: 1;
  border: 0;
}

.woocommerce-info, .woocommerce-noreviews, p.no-comments {
  background-color: var(--hl-primary) !important;;
}

/* --------------------------------------------------------------------------
   2. LIGHT MODE
   -------------------------------------------------------------------------- */
html:not(.dark-mode) body,
html:not(.dark-mode) #page,
html:not(.dark-mode) .site,
html:not(.dark-mode) .site-main,
html:not(.dark-mode) #content,
html:not(.dark-mode) .storefront-breadcrumb {
  background-color: var(--hl-bg-light);
  color: var(--hl-text-light);
}

/* Header Light */
html:not(.dark-mode) .site-header {
  background-color: var(--hl-surface-glass-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hl-border-light);
  position: sticky;
  top: 0;
  z-index: 999;
}

html:not(.dark-mode) .main-navigation ul.menu > li > a,
html:not(.dark-mode) .site-header-cart .cart-contents,
html:not(.dark-mode) h1, 
html:not(.dark-mode) h2, 
html:not(.dark-mode) h3 {
  color: var(--hl-text-light);
}

html:not(.dark-mode) a:hover,
html:not(.dark-mode) .main-navigation ul.menu > li > a:hover {
  color: var(--hl-primary);
}

/* Formulare Light */
html:not(.dark-mode) input[type="text"],
html:not(.dark-mode) input[type="email"],
html:not(.dark-mode) input[type="password"],
html:not(.dark-mode) textarea,
html:not(.dark-mode) select {
  background-color: #ffffff;
  color: var(--hl-text-light);
  border: 1px solid var(--hl-border-light);
  border-radius: var(--hl-radius-sm);
  padding: 0.5rem 0.75rem;
}

html:not(.dark-mode) input:focus,
html:not(.dark-mode) textarea:focus,
html:not(.dark-mode) select:focus {
  outline: none;
  border-color: var(--hl-accent);
}

.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
  width: 100%;
}

#order_review_heading {
  width: 100%;
}

/* --------------------------------------------------------------------------
   3. BRAND DARK MODE
   -------------------------------------------------------------------------- */
html.dark-mode body,
html.dark-mode #page,
html.dark-mode .site,
html.dark-mode .site-main,
html.dark-mode #content,
html.dark-mode .storefront-breadcrumb {
  background-color: var(--hl-bg-dark) !important;
  color: var(--hl-text-dark) !important;
}

/* Navigation Links Dark Mode */
html.dark-mode .secondary-navigation ul.menu a,
html.dark-mode .brand-text,
html.dark-mode .main-navigation ul.menu > li > a,
html.dark-mode .main-navigation ul.sub-menu > li > a,
html.dark-mode .site-header-cart .cart-contents {
  color: #ffffff !important;
}

html.dark-mode .sub-menu {
color: #ffffff !important;
background-color: var(--hl-surface-dark) !important;
  border: 1px solid var(--hl-border-dark) !important;
}

html.dark-mode .main-navigation ul.menu > li > a:hover,
html.dark-mode .secondary-navigation ul.menu a:hover {
  color: var(--hl-accent) !important;
}

/* Dark Header with Glassmorphism */
html.dark-mode .site-header {
  background-color: var(--hl-surface-glass-dark);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hl-border-dark);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 999;
}

html.dark-mode h1, 
html.dark-mode h2, 
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode h5,
html.dark-mode h6 {
  color: #ffffff !important;
}

html.dark-mode p {
  color: #d1d8d3;
}
html.dark-mode .fpd-modal-content p {
  color: rgba(0,0,0,.7);
}

html.dark-mode a {
  color: var(--hl-green-ink); /* Kontrast >= 4.5:1 auf dunklem Grund */
}

html.dark-mode a:hover {
  color: #a9dbb5;
}

/* Zahlungsarten/Fieldsets in Kasse+Warenkorb: siehe Abschnitt 17 */
html.dark-mode fieldset { background-color: transparent; }

html.dark-mode .woocommerce-product-attributes, html.dark-mode .shop_attributes, html.dark-mode th.woocommerce-product-attributes-item__label, html.dark-mode tr.woocommerce-product-attributes-item, html.dark-mode td.woocommerce-product-attributes-item__value {
background-color: var(--hl-surface-dark) !important;
  color: var(--hl-text-dark) !important;
  border: 1px solid var(--hl-line) !important;
}

/* Warenkorb-/Kassentabellen dunkel: siehe Abschnitt 17 */

/* Formulare Dark Mode */
html.dark-mode input[type="text"],
html.dark-mode input[type="email"],
html.dark-mode input[type="tel"],
html.dark-mode input[type="password"],
html.dark-mode textarea,
html.dark-mode select,
html.dark-mode .select2-container--default.select2-selection--single {
  background-color: var(--hl-surface-dark) !important;
  color: var(--hl-text-dark) !important;
  border: 1px solid var(--hl-border-dark) !important;
  border-radius: var(--hl-radius-sm);
  padding: 0.5rem 0.75rem;
}

html.dark-mode input:focus,
html.dark-mode textarea:focus,
html.dark-mode select:focus,
html.dark-mode .select2-container--default.select2-selection--single:focus {
  outline: none;
  background-color: var(--hl-surface-dark-focus) !important;
  border-color: var(--hl-accent) !important;
}

/* --------------------------------------------------------------------------
   4. BUTTONS & INTERACTIVE ELEMENTS
   -------------------------------------------------------------------------- */
.button,
button:not(.menu-toggle):not(.dropdown-toggle):not(.themeToggleBtn):not(.hl-pill):not(.hl-chip):not(.hl-search__toggle):not(.hl-ship-choice__opt):not(.hl-nav__dd-toggle),
input[type="submit"],
.btn-primary {
  display: inline-block;
  background-color: var(--hl-primary) !important;
  color: #ffffff !important;
  font-family: var(--hl-font-sans);
  font-weight: 500;
  border: 1px solid var(--hl-primary) !important;
  border-radius: 999px !important;
  padding: 0.65rem 1.4rem !important;
  min-height: 44px;
  cursor: pointer;
  transition: var(--hl-transition);
  text-decoration: none;
}

#fpd-start-customizing-button {
  display: inline-block;
  background-color: var(--hl-primary) !important;
  color: #ffffff !important;
  font-family: var(--hl-font-sans);
  font-weight: 500;
  border: 1px solid var(--hl-primary) !important;
  border-radius: var(--hl-radius-sm) !important;
  padding: 0.5rem 1.25rem !important;
  cursor: pointer;
  transition: var(--hl-transition);
  text-decoration: none;
  margin-left: .875em;
}

.button:hover,
button:not(.menu-toggle):not(.dropdown-toggle):not(.themeToggleBtn):not(.hl-pill):not(.hl-chip):not(.hl-search__toggle):not(.hl-ship-choice__opt):not(.hl-nav__dd-toggle):hover,
#fpd-start-customizing-button:hover,
input[type="submit"]:hover,
.btn-primary:hover {
  background-color: var(--hl-accent) !important;
  border-color: var(--hl-accent) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

  .paypal-button-container{
    min-width: 500px;
    max-width: 100% !important;
  }

/* Onsale Badge */
.onsale {
  background-color: var(--hl-primary) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase;
  border-radius: var(--hl-radius-sm) !important;
  padding: 0.25rem 0.6rem !important;
  border: none !important;
}

/* --------------------------------------------------------------------------
   5. ORIGINAL MAIN SITE FOOTER (LIGHT & DARK MODE TOGGLE FIX)
   -------------------------------------------------------------------------- */

/* Standard Storefront Handheld & Info Bar ausblenden */
.site-footer .site-info,
.site-footer .storefront-handheld-footer-bar {
  display: none !important;
}

/* Base Footer Reset */
footer,
.site-footer,
#colophon {
  width: 100% !important;
  max-width: 100% !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* --------------------------------------------------------------------------
   LIGHT MODE FOOTER
   -------------------------------------------------------------------------- */
html:not(.dark-mode) footer,
html:not(.dark-mode) .site-footer,
html:not(.dark-mode) #colophon {
  background-color: var(--hl-surface-light) !important; /* #f8f9fa */
  color: var(--hl-text-light) !important;
  border-top: 1px solid var(--hl-border-light) !important;
}

html:not(.dark-mode) footer a,
html:not(.dark-mode) .site-footer a {
  color: var(--hl-primary) !important;
  text-decoration: none !important;
}

html:not(.dark-mode) footer a:hover,
html:not(.dark-mode) .site-footer a:hover {
  color: var(--hl-accent) !important;
  text-decoration: none !important;
}

/* --------------------------------------------------------------------------
   DARK MODE FOOTER (STRICT OVERRIDE)
   -------------------------------------------------------------------------- */
html.dark-mode footer,
html.dark-mode .site-footer,
html.dark-mode #colophon,
html.dark-mode footer .bg-light,
html.dark-mode footer .bg-light-footer,
html.dark-mode footer .bg-white,
html.dark-mode .site-footer .bg-light,
html.dark-mode .site-footer .bg-white {
  background-color: var(--hl-bg-dark) !important; /* #141c26 */
  color: #a0b0a5 !important;
  border-top-color: var(--hl-border-dark) !important;
  box-shadow: 0 -0.5rem 1rem rgba(0, 0, 0, 0.3);
}

/* Spezifische Textfarben der Hauptseite im Dark Mode erzwingen */
html.dark-mode footer .text-dark,
html.dark-mode footer .text-secondary,
html.dark-mode footer .text-muted,
html.dark-mode .site-footer .text-dark,
html.dark-mode .site-footer .text-secondary,
html.dark-mode .site-footer .text-muted {
  color: #a0b0a5 !important;
}

/* Link-Farben & Unterstrich-Removal im Dark Mode */
html.dark-mode footer a,
html.dark-mode .site-footer a {
  color: var(--hl-green-ink) !important; /* #8cc79a: Kontrast >= 4.5:1 */
  text-decoration: none !important;
}

html.dark-mode footer a:hover,
html.dark-mode .site-footer a:hover {
  color: #a9dbb5 !important;
  text-decoration: none !important;
}

/* Sterne-Bewertung & Brand-Logo */
.star, 
.rating-star, 
.footer-google-rating .stars,
.hl-google-rating-box .star {
  color: #ffc107 !important;
}

.Hirschnlugg {
  font-family: recherche, cursive, sans-serif !important;
  text-decoration: none !important;
}

/* --------------------------------------------------------------------------
   6. KOPFBEREICH & NAVIGATION (angeglichen an hirschnlugg.de / css/navbar.css)
   -------------------------------------------------------------------------- */
:root {
  --hl-nav-text: #212529;
  --hl-nav-muted: #6c757d;
  --hl-nav-line: rgba(0, 0, 0, .08);
  --hl-nav-hover-bg: rgba(52, 89, 68, .07);
  --hl-nav-accent: var(--hl-primary);
}
html.dark-mode {
  --hl-nav-text: #e8ece9;
  --hl-nav-muted: #adb5bd;
  --hl-nav-line: rgba(255, 255, 255, .1);
  --hl-nav-hover-bg: rgba(255, 255, 255, .05);
  --hl-nav-accent: #8cc79a;
}

/* Header immer oben kleben lassen (hell + dunkel) */
.site-header {
  position: sticky !important;
  top: 0;
  z-index: 999;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ---------- Logo: Hirsch + Schriftzug als SVG-Maske in Textfarbe ---------- */
.hl-wordmark {
  --wm-h: 30px;
  display: inline-block;
  flex: none;
  height: var(--wm-h);
  width: calc(var(--wm-h) * 6.0133);
  vertical-align: middle;
  background-color: currentColor;
  -webkit-mask: url("assets/hirschnlugg-schriftzug.svg") center / contain no-repeat;
  mask: url("assets/hirschnlugg-schriftzug.svg") center / contain no-repeat;
}
.hl-vh {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.site-header .site-branding.hl-branding {
  float: left;
  width: auto;
  margin: 0;
}
.hl-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none !important;
  color: var(--hl-nav-text) !important;
}
.hl-brand:hover { color: var(--hl-primary) !important; }
html.dark-mode .hl-brand { color: #fff !important; }
html.dark-mode .hl-brand:hover { color: var(--hl-nav-accent) !important; }
.hl-brand img { flex: none; width: 40px; height: 40px; margin-right: 16px; }
.hl-brand sup {
  align-self: flex-start;
  margin: .25em 0 0 .15rem;
  font-family: var(--hl-font-sans);
  font-size: .65rem;
  font-weight: 400;
  top: 0;
}

/* ---------- Hell/Dunkel-Schalter: identisch zu hirschnlugg.de (.btn-outline-secondary, rund, 38px) ---------- */
.themeToggleBtn.hl-theme-btn {
  flex: none;
  width: 38px !important;
  height: 38px !important;
  padding: .5rem !important;
  margin: 0;
  border: 1px solid #6c757d !important;
  border-radius: 50% !important;
  background-color: transparent !important;
  color: #6c757d !important;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transform: none !important;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.themeToggleBtn.hl-theme-btn:hover,
.themeToggleBtn.hl-theme-btn:active {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: #fff !important;
}
.themeToggleBtn.hl-theme-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 .25rem rgba(108, 117, 125, .5);
}
.themeToggleBtn.hl-theme-btn svg { display: block; flex: none; }
.themeToggleBtn.hl-theme-btn svg.d-none { display: none !important; }
html.dark-mode .themeToggleBtn.hl-theme-btn {
  color: #e8ece9 !important;
  border-color: var(--hl-border-dark) !important;
  background-color: transparent !important;
}
html.dark-mode .themeToggleBtn.hl-theme-btn:hover,
html.dark-mode .themeToggleBtn.hl-theme-btn:active {
  background-color: var(--hl-border-dark) !important;
  color: #fff !important;
}
.themeToggleBtn::before,
.themeToggleBtn::after { display: none !important; content: none !important; } /* Storefront-Pfeil an Menü-Buttons */
.nav-item-toggle { display: inline-flex !important; align-items: center; vertical-align: middle; margin-left: .5rem; }
.main-navigation ul.menu > li.nav-item-toggle > a { display: none; }

/* Mobile Elemente auf dem Desktop ausblenden */
.hl-mobile-cart { display: none; }

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  .site-header .site-branding.hl-branding { margin-right: 2rem; padding-top: .35rem; }
  .main-navigation ul.menu > li.nav-item-toggle { padding: 0 0 0 .5rem; }
}

/* ---------- Handy: kompakter Kopf, Hamburger, Menü wie auf hirschnlugg.de ---------- */
@media (max-width: 767.98px) {
  .site-header {
    padding: .55rem 0 0 !important;
    margin-bottom: 0 !important;
  }
  .site-header > .col-full {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding-right: 7rem !important; /* Platz für Warenkorb + Menü */
  }
  .site-header .site-branding.hl-branding { float: none; }
  .hl-brand img { width: 36px; height: 36px; margin-right: 12px; }
  .hl-wordmark { --wm-h: 22px; }
  .hl-brand sup { font-size: .55rem; }

  /* Storefront-Header-Warenkorb und Suche aus, eigener Warenkorb + Suche im Menü */
  .site-header #site-header-cart,
  .site-header .site-search { display: none !important; }

  .storefront-primary-navigation,
  .storefront-primary-navigation > .col-full,
  .main-navigation { position: static !important; }

  /* Hamburger statt grünem „Menü“-Kasten */
  .site-header .menu-toggle {
    position: absolute !important;
    top: .55rem;
    right: .75rem;
    width: 46px;
    height: 46px;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    border: 0 !important;
    border-radius: .5rem !important;
    background: transparent !important;
    color: var(--hl-nav-text) !important;
    font-size: 0 !important;
    line-height: 0;
    box-shadow: none !important;
    transform: none !important;
  }
  .site-header .menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .site-header .menu-toggle::before,
  .site-header .menu-toggle span::before { display: none !important; content: none !important; }
  .site-header .menu-toggle::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    margin: auto !important;
    width: 26px !important;
    height: 26px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    background: currentColor !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='black' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='black' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .site-header .main-navigation.toggled .menu-toggle::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='black' stroke-linecap='round' stroke-width='2' d='M7 7l16 16M23 7L7 23'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='black' stroke-linecap='round' stroke-width='2' d='M7 7l16 16M23 7L7 23'/%3E%3C/svg%3E");
  }
  .site-header .menu-toggle:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--hl-nav-accent) !important; }

  /* Warenkorb-Symbol links neben dem Hamburger */
  .hl-mobile-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: .55rem;
    right: 3.6rem;
    width: 46px;
    height: 46px;
    font-size: 1.35rem;
    color: var(--hl-nav-text) !important;
    text-decoration: none !important;
  }
  .hl-cart-count {
    position: absolute;
    top: 6px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--hl-primary);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
  }
  .hl-cart-count.is-empty { display: none; }

  /* Aufgeklapptes Menü: scrollt selbst, Seite bleibt stehen */
  .main-navigation .handheld-navigation { margin: 0 !important; }
  .main-navigation.toggled .handheld-navigation {
    max-height: calc(100vh - 64px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
  @supports (height: 100dvh) {
    .main-navigation.toggled .handheld-navigation { max-height: calc(100dvh - 64px) !important; }
  }
  .handheld-navigation ul.menu { margin: .4rem 0 .9rem !important; padding: 0; }
  .handheld-navigation ul.menu > li {
    position: relative;
    display: block !important;
    margin: 0 !important;
    border-top: 1px solid var(--hl-nav-line);
    border-bottom: 0 !important;
  }
  .handheld-navigation ul.menu li a {
    display: block;
    padding: .8rem .25rem !important;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--hl-nav-text) !important;
    text-decoration: none !important;
  }
  .handheld-navigation ul.menu li a:hover,
  .handheld-navigation ul.menu li.current-menu-item > a { color: var(--hl-nav-accent) !important; }

  /* Untermenüs als feste Gruppe (eingerückt, grüne Linie) – kein extra Antippen nötig */
  .handheld-navigation .dropdown-toggle { display: none !important; }
  .handheld-navigation ul.sub-menu {
    display: block !important;
    max-height: none !important;
    margin: 0 0 .6rem .3rem !important;
    padding: 0 !important;
    border: 0 !important;
    border-left: 2px solid var(--hl-nav-accent) !important;
    background: transparent !important;
    opacity: 1 !important;      /* Storefront blendet Untermenüs per opacity/visibility aus */
    visibility: visible !important;
  }
  .handheld-navigation ul.sub-menu li { border: 0 !important; }
  .handheld-navigation ul.sub-menu li a {
    padding: .55rem .9rem !important;
    font-size: 1rem;
    font-weight: 500;
  }
  .handheld-navigation ul.sub-menu li a:hover { background: var(--hl-nav-hover-bg); }

  /* Produktsuche oben im Menü */
  .handheld-navigation ul.menu > li.hl-nav-search { border-top: 0; padding: .35rem 0 .75rem; }
  .hl-nav-search .widget, .hl-nav-search form { margin: 0 !important; }
  .hl-nav-search form { display: flex; gap: .5rem; }
  .hl-nav-search .search-field { flex: 1; min-width: 0; height: 42px; border-radius: 999px !important; padding: 0 1rem 0 2.6rem !important; } /* links Platz für die Lupe */
  .hl-nav-search button[type="submit"] { height: 42px; border-radius: 999px !important; padding: 0 1.1rem !important; font-weight: 700; }
  html:not(.dark-mode) .hl-nav-search .search-field { background: #f1f3f5; border-color: transparent; }

  /* Untere Zeile: zurück zur Hauptseite + Hell/Dunkel */
  .handheld-navigation ul.menu > li.hl-nav-util {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: 1rem 0 .25rem;
  }
  .hl-util-label {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hl-nav-muted);
  }

  /* Shop-Hinweis ausblenden, solange das Menü offen ist (sonst liegt er über den letzten Einträgen) */
  body:has(.main-navigation.toggled) .woocommerce-store-notice { display: none !important; }

  /* Desktop-Navigationen am Handy sicher aus */
  .secondary-navigation { display: none !important; }
}

/* --------------------------------------------------------------------------
   7. SHOP-HINWEIS (ersetzt die „Zusätzliches CSS“-Regeln im Customizer)
   -------------------------------------------------------------------------- */
.woocommerce-store-notice,
p.demo_store {
  background-color: var(--hl-primary) !important;
  color: #fff !important;
  font-family: var(--hl-font-sans);
  box-shadow: 0 -0.25rem 1rem rgba(0, 0, 0, .15);
}
.woocommerce-store-notice a,
p.demo_store a { color: #fff !important; }
.woocommerce-store-notice__dismiss-link {
  background: none !important;
  color: #fff !important;
}
@media (max-width: 767.98px) {
  /* Storefront lässt unten 69px Platz für die (ausgeblendete) Fußleiste */
  .woocommerce-store-notice,
  p.demo_store {
    top: auto !important;
    bottom: 0 !important;
    margin: 0 !important;
    padding: .65rem 3rem .65rem 1rem !important;
    font-size: .85rem !important;
    line-height: 1.4;
    text-align: left !important;
  }
  .woocommerce-store-notice::before,
  p.demo_store::before { display: none !important; }
  .woocommerce-store-notice__dismiss-link {
    position: absolute;
    top: 50%;
    right: .5rem;
    width: 36px;
    height: 36px;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%);
    font-size: 0 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  .woocommerce-store-notice__dismiss-link::before {
    content: "\00d7";
    font-size: 1.6rem;
    line-height: 1;
  }
}


/* --------------------------------------------------------------------------
   8. WARENKORB IM KOPF (Desktop) + VORSCHAU ALS KARTE
   -------------------------------------------------------------------------- */
:root {
  --hl-card-bg: #fff;
  --hl-card-border: var(--hl-border-light);
  --hl-card-shadow: 0 1rem 2rem rgba(0, 0, 0, .12);
}
html.dark-mode {
  --hl-card-bg: var(--hl-surface-dark);
  --hl-card-border: rgba(160, 176, 165, .35);
  --hl-card-shadow: 0 1rem 2rem rgba(0, 0, 0, .6);
}

/* Auslöser: „34,00 € · 2 Artikel“ ohne Unterstreichung */
.site-header-cart .cart-contents {
  display: flex !important;
  align-items: center;
  gap: .45rem;
  text-decoration: none !important;
  color: var(--hl-nav-text) !important;
  font-weight: 600;
}
.site-header-cart .cart-contents .amount { font-weight: 700; }
.site-header-cart .cart-contents .count {
  opacity: 1 !important;
  padding: .1rem .55rem;
  border-radius: 999px;
  background: var(--hl-nav-hover-bg);
  color: var(--hl-nav-muted) !important;
  font-size: .78rem;
  font-weight: 600;
}
.site-header-cart .cart-contents:hover,
.site-header-cart .cart-contents:hover .amount { color: var(--hl-nav-accent) !important; }

/* Vorschau: rechtsbündige Karte, 360 px breit */
.site-header-cart .widget_shopping_cart {
  width: 360px !important;
  max-width: calc(100vw - 2rem);
  right: auto;
  margin-top: .35rem;
  padding: 0 !important;
  border: 1px solid var(--hl-card-border) !important;
  border-radius: var(--hl-radius-md) !important;
  background: var(--hl-card-bg) !important;
  box-shadow: var(--hl-card-shadow);
  overflow: hidden;
  font-size: .9rem;
  color: var(--hl-nav-text) !important;
}
.site-header-cart:hover .widget_shopping_cart,
.site-header-cart.focus .widget_shopping_cart {
  left: auto !important;
  right: 0 !important;
}
.site-header-cart .widget_shopping_cart_content {
  background: transparent !important;
  color: var(--hl-nav-text) !important;
}

/* Artikelliste */
.site-header-cart .widget_shopping_cart .product_list_widget {
  max-height: 55vh;
  overflow-y: auto;
  margin: 0 !important;
  padding: .25rem 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.site-header-cart .widget_shopping_cart .product_list_widget li {
  position: relative;
  min-height: calc(52px + 1.5rem);
  margin: 0 !important;
  padding: .75rem 2.75rem .75rem calc(52px + 1.75rem) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hl-nav-line) !important;
  background: transparent !important;
  list-style: none;
}
.site-header-cart .widget_shopping_cart .product_list_widget li:last-child { border-bottom: 0 !important; }
.site-header-cart .widget_shopping_cart .product_list_widget li a:not(.remove) {
  display: block;
  font-weight: 600;
  line-height: 1.35;
  color: var(--hl-nav-text) !important;
  text-decoration: none !important;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}
.site-header-cart .widget_shopping_cart .product_list_widget li a:not(.remove):hover { color: var(--hl-nav-accent) !important; }
.site-header-cart .widget_shopping_cart .product_list_widget li img {
  position: absolute;
  top: .75rem;
  left: 1rem;
  float: none !important;
  width: 52px !important;
  max-width: none !important;
  height: 52px !important;
  margin: 0 !important;
  object-fit: cover;
  border-radius: var(--hl-radius-sm);
  border: 1px solid var(--hl-nav-line);
}
.site-header-cart .widget_shopping_cart .product_list_widget li .quantity {
  display: block;
  margin-top: .2rem;
  color: var(--hl-nav-muted) !important;
  font-size: .82rem;
}
.site-header-cart .widget_shopping_cart .product_list_widget li .quantity * { color: inherit !important; }
.site-header-cart .widget_shopping_cart .product_list_widget li dl.variation {
  margin: .2rem 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: .78rem;
  color: var(--hl-nav-muted);
}
/* Entfernen-× oben rechts, rund */
.site-header-cart .widget_shopping_cart .product_list_widget li a.remove {
  position: absolute !important;
  top: .7rem !important;
  right: .75rem !important;
  left: auto !important;
  width: 26px;
  height: 26px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem !important;
  line-height: 1;
  text-indent: 0 !important; /* Storefront versteckt das × per text-indent und zeigt ein Icon-Font-Zeichen */
  overflow: visible !important;
  opacity: 1 !important;
  color: var(--hl-nav-muted) !important;
  text-decoration: none !important;
  background: transparent !important;
}
.site-header-cart .widget_shopping_cart .product_list_widget li a.remove::before { display: none !important; }
.site-header-cart .widget_shopping_cart .product_list_widget li a.remove:hover {
  background: rgba(220, 53, 69, .12) !important;
  color: #dc3545 !important;
}

/* Zwischensumme */
.site-header-cart .widget_shopping_cart p.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 !important;
  padding: .85rem 1rem !important;
  border: 0 !important;
  border-top: 1px solid var(--hl-nav-line) !important;
  background: var(--hl-nav-hover-bg) !important;
  color: var(--hl-nav-text) !important;
  font-size: .95rem;
}
.site-header-cart .widget_shopping_cart p.total strong { font-weight: 600; }
.site-header-cart .widget_shopping_cart p.total .amount { font-weight: 700; color: var(--hl-nav-text) !important; }

/* Buttons nebeneinander: „Warenkorb“ als Umriss, „Kasse“ gefüllt */
.site-header-cart .widget_shopping_cart p.buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin: 0 !important;
  padding: .85rem 1rem 1rem !important;
  border: 0 !important;
  background: transparent !important;
  text-align: center;
}
.site-header-cart .widget_shopping_cart p.buttons a.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 !important;
  padding: .6rem .75rem !important;
  border-radius: 999px !important;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none !important;
}
.site-header-cart .widget_shopping_cart p.buttons a.button::after { display: none !important; } /* Storefront-Pfeil */
.site-header-cart .widget_shopping_cart p.buttons a.button:not(.checkout) {
  background: transparent !important;
  border: 1px solid var(--hl-primary) !important;
  color: var(--hl-primary) !important;
}
html.dark-mode .site-header-cart .widget_shopping_cart p.buttons a.button:not(.checkout) {
  border-color: var(--hl-nav-accent) !important;
  color: var(--hl-nav-accent) !important;
}
.site-header-cart .widget_shopping_cart p.buttons a.button:not(.checkout):hover {
  background: var(--hl-primary) !important;
  border-color: var(--hl-primary) !important;
  color: #fff !important;
}
.site-header-cart .widget_shopping_cart p.buttons a.button.checkout {
  background: var(--hl-primary) !important;
  border: 1px solid var(--hl-primary) !important;
  color: #fff !important;
}
.site-header-cart .widget_shopping_cart p.buttons a.button.checkout:hover {
  background: var(--hl-accent) !important;
  border-color: var(--hl-accent) !important;
}

/* Leerer Warenkorb */
.site-header-cart .widget_shopping_cart .woocommerce-mini-cart__empty-message {
  margin: 0 !important;
  padding: 1.25rem 1rem !important;
  border: 0 !important;
  background: transparent !important;
  text-align: center;
  color: var(--hl-nav-muted) !important;
}


/* --------------------------------------------------------------------------
   9. DESIGN-TOKENS (neuer Look, hell + dunkel) UND BARRIEREFREIHEIT
   -------------------------------------------------------------------------- */
:root {
  --hl-ink: #212529;
  --hl-muted: #5f6870;
  --hl-line: rgba(0, 0, 0, .12);
  --hl-edge: #8a939b;          /* Rahmen interaktiver Elemente, >= 3:1 */
  --hl-card: #ffffff;
  --hl-band: #f4f5f2;
  --hl-tint: rgba(52, 89, 68, .09);
  --hl-green-ink: #345944;
  --hl-focus: #345944;
}
html.dark-mode {
  --hl-ink: #e8ece9;
  --hl-muted: #a9b6ad;
  --hl-line: rgba(160, 176, 165, .28);
  --hl-edge: #7f8f86;
  --hl-card: #1b2531;
  --hl-band: #18212c;
  --hl-tint: rgba(255, 255, 255, .08);
  --hl-green-ink: #8cc79a;
  --hl-focus: #8cc79a;
}

a:focus-visible,
button:focus-visible,
.button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--hl-focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   10. SHOP-ARCHIV: volle Breite, Kategorie-Chips, Produktkarten
   -------------------------------------------------------------------------- */
.hl-archive .content-area,
.hl-archive #primary { width: 100%; float: none; margin-right: 0; }
.hl-archive .widget-area { display: none; }

.hl-chips ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.hl-chips li { margin: 0; }
.hl-chips .hl-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--hl-edge);
  border-radius: 999px;
  color: var(--hl-ink);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  transition: background-color .2s, color .2s;
}
html:not(.dark-mode) .hl-chips a.hl-chip:hover,
html.dark-mode .hl-chips a.hl-chip:hover { background: var(--hl-tint); color: var(--hl-ink); }
html:not(.dark-mode) .hl-chips a.hl-chip[aria-current="page"],
html.dark-mode .hl-chips a.hl-chip[aria-current="page"] { background: #345944; border-color: #345944; color: #fff; }
html.dark-mode .hl-chips a.hl-chip[aria-current="page"] { border-color: #8cc79a; }

/* Raster */
.woocommerce ul.products,
ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 20px;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product,
.woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--hl-card);
  border: 1px solid var(--hl-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none;
  text-align: left;
}
ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  color: var(--hl-ink);
  text-decoration: none;
}
ul.products li.product a img,
ul.products li.product img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0 !important;
  border-radius: 0;
  box-shadow: none;
}
.hl-loop-cat {
  padding: 14px 18px 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hl-green-ink);
}
ul.products li.product .woocommerce-loop-product__title {
  margin: 0;
  padding: 4px 18px 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--hl-ink) !important;
}
ul.products li.product .price,
ul.products li.product .price .amount,
ul.products li.product .price bdi {
  color: var(--hl-ink) !important;
}
ul.products li.product .price {
  display: block;
  margin: 0;
  padding: 8px 18px 0;
  font-size: 1.25rem;
  font-weight: 700;
}
ul.products li.product .price del { font-size: .85em; font-weight: 400; color: var(--hl-muted) !important; }
ul.products li.product .price ins { background: none; text-decoration: none; }
/* Pflichtangaben (Germanized) kompakt – nur gestaltet, nicht entfernt */
ul.products li.product .price-unit,
ul.products li.product .wc-gzd-additional-info,
ul.products li.product .legal-price-info,
ul.products li.product .product-units-wrapper,
ul.products li.product .shipping-costs-info,
ul.products li.product .tax-info,
ul.products li.product .delivery-time-info {
  display: block;
  margin: 2px 0 0;
  padding: 0 18px;
  font-size: .75rem;
  line-height: 1.4;
  font-weight: 400;
  color: var(--hl-muted);
}
ul.products li.product .wc-gzd-additional-info a,
ul.products li.product .legal-price-info a,
ul.products li.product .shipping-costs-info a { color: var(--hl-muted); text-decoration: underline; }
ul.products li.product .hl-star { font-weight: 700; }
ul.products li.product .hl-loop-ship {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 32px;
  padding: 0 18px;
  font-size: .75rem;
  color: var(--hl-muted);
  text-decoration: underline;
}
ul.products li.product .button {
  align-self: flex-start;
  margin: 12px 18px 18px !important;
}
ul.products li.product .added_to_cart { margin: 0 18px 18px; }
@media (prefers-reduced-motion: no-preference) {
  ul.products li.product { transition: transform .3s ease, border-color .3s ease; }
  ul.products li.product:hover { transform: translateY(-4px); border-color: var(--hl-green-ink); }
}
ul.products li.product:focus-within { border-color: var(--hl-green-ink); }

.hl-footnote { margin: 1rem 0 0; font-size: .8rem; color: var(--hl-muted); }
.hl-footnote a { color: var(--hl-muted); text-decoration: underline; }
html.dark-mode .hl-footnote { color: var(--hl-muted); }

.storefront-sorting { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 1rem; }
.storefront-sorting .woocommerce-ordering select { min-height: 44px; border-radius: 999px; padding: 0 1.2rem; }
/* Seitenzahlen: siehe Abschnitt 16 */

/* --------------------------------------------------------------------------
   11. EINZELPRODUKT
   -------------------------------------------------------------------------- */
.hl-single div.product .woocommerce-product-gallery img { border-radius: 16px; }
.hl-single div.product .flex-control-thumbs img { border-radius: 10px; }
.hl-single div.product .product_title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.15; }
.hl-single div.product p.price,
.hl-single div.product span.price { font-size: 1.75rem; font-weight: 700; color: var(--hl-ink) !important; }
.hl-single div.product p.price .amount,
.hl-single div.product span.price .amount { color: var(--hl-ink) !important; }
.hl-single div.product .wc-gzd-additional-info,
.hl-single div.product .legal-price-info,
.hl-single div.product .price-unit,
.hl-single div.product .product-units-wrapper { font-size: .82rem; color: var(--hl-muted); line-height: 1.45; }
.hl-single div.product .wc-gzd-additional-info a { color: var(--hl-muted); text-decoration: underline; }
.hl-single form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 1rem; }
.hl-single form.cart .quantity .qty { min-height: 52px; min-width: 5rem; border-radius: 999px; text-align: center; }
.hl-single form.cart .single_add_to_cart_button { min-height: 52px; padding: 0 2rem !important; font-weight: 700; }
.hl-no-withdrawal {
  margin: 0 0 1rem;
  padding: .6rem .9rem;
  border-left: 3px solid var(--hl-green-ink);
  border-radius: 8px;
  background: var(--hl-band);
  font-size: .85rem;
  line-height: 1.45;
  color: var(--hl-ink);
}
html.dark-mode .hl-single .hl-no-withdrawal { color: var(--hl-ink); }
.hl-single .product_meta { font-size: .85rem; color: var(--hl-muted); }

/* Reiter als Pillen statt Storefront-Spalte */
.woocommerce-tabs ul.tabs,
.woocommerce-tabs .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  float: none !important;
  width: 100% !important;
  margin: 0 0 1.5rem !important;
  padding: 0 !important;
  list-style: none;
}
.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs::after,
.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce-tabs ul.tabs li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.woocommerce-tabs ul.tabs li a {
  display: inline-flex !important;
  align-items: center;
  min-height: 44px;
  padding: 0 1.2rem !important;
  border: 1px solid var(--hl-edge);
  border-radius: 999px;
  color: var(--hl-ink) !important;
  font-weight: 600;
  text-decoration: none;
}
.woocommerce-tabs ul.tabs li a:hover { background: var(--hl-tint); }
.woocommerce-tabs ul.tabs li.active a { background: #345944; border-color: #345944; color: #fff !important; }
html.dark-mode .woocommerce-tabs ul.tabs li.active a { border-color: #8cc79a; }
.woocommerce-tabs .woocommerce-Tabs-panel,
.woocommerce-tabs .panel { float: none !important; width: 100% !important; margin: 0 !important; }

/* --------------------------------------------------------------------------
   12. WARENKORB & KASSE (dezent, gleicher Stil)
   -------------------------------------------------------------------------- */
.woocommerce table.shop_table {
  border: 1px solid var(--hl-line);
  border-radius: 16px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-cart table.cart td.actions .coupon .input-text {
  min-height: 44px;
  border-radius: 12px;
}
.woocommerce-checkout #payment { border-radius: 16px; overflow: hidden; }
.woocommerce-checkout #payment div.payment_box { border-radius: 12px; }
#place_order, .wc-proceed-to-checkout a.checkout-button { min-height: 52px; font-weight: 700; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: 12px; }
.woocommerce-cart table.cart img { border-radius: 10px; }
.woocommerce-cart .cart_totals h2, .woocommerce-checkout h3 { font-weight: 700; }
.woocommerce a.remove { min-width: 44px; min-height: 44px; display: inline-flex !important; align-items: center; justify-content: center; }

/* --------------------------------------------------------------------------
   13. FOOTER-ZUSATZ: Link „Vertrag widerrufen“ (nur, falls der Hauptseiten-Footer ihn nicht enthält)
   -------------------------------------------------------------------------- */
.hl-legal-line {
  margin: 0;
  padding: 14px 20px;
  text-align: center;
  font-size: .85rem;
  border-top: 1px solid var(--hl-line);
  color: var(--hl-muted);
}
.hl-legal-line a { display: inline-block; min-height: 24px; padding: 8px 4px; color: var(--hl-green-ink); font-weight: 600; text-decoration: underline; }

/* --------------------------------------------------------------------------
   14. EINZEILIGER KOPF (Desktop ab 768 px) – Logo | Navigation | Suche | Konto | Warenkorb | Hell/Dunkel
   Markup: inc/nav.php (Hooks storefront_header 30/40/45/62). Handy bleibt bei Abschnitt 6.
   -------------------------------------------------------------------------- */
:root {
  --hl-chip: rgba(33, 37, 41, .06);
  --hl-chip-line: rgba(33, 37, 41, .14);
}
html.dark-mode {
  --hl-chip: rgba(255, 255, 255, .09);
  --hl-chip-line: rgba(255, 255, 255, .2);
}
html { scroll-padding-top: 88px; } /* Sprungmarken (#druck, #vereine, #gestalten) landen nicht unter dem klebenden Kopf */

/* Handy: Desktop-Elemente des Kopfs aus (Handy-Menü bringt eigene Suche, Links und Schalter mit) */
.hl-nav, .hl-search, .hl-account, .hl-theme-slot { display: none; }

/* Handy-Menü: die fünf Hauptlinks (gleiche Ziele wie Desktop) */
@media (max-width: 767.98px) {
  .handheld-navigation ul.menu > li.hl-nav-main.is-accent > a { color: var(--hl-green-ink) !important; }
  .handheld-navigation ul.menu > li.hl-nav-main > a { min-height: 44px; }
}

@media (min-width: 768px) {
  /* Zwei Storefront-Container (Kopf + Primärnavigation) lösen sich auf: alle Kinder sitzen in einer Flex-Zeile */
  /* Innerer Container wie ein 1320-px-Wrapper: Breite/Innenabstand kommen NUR aus dem Header-Padding.
     Die Storefront-.col-full (max-width, Padding, Margin) lösen sich per display:contents auf und werden zusätzlich genullt. */
  .site-header {
    box-sizing: border-box;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;
    margin-bottom: 0 !important;
    padding-block: 10px !important;
    padding-inline: max(24px, calc((100% - 1320px) / 2 + 32px)) !important;
  }
  .site-header > .col-full,
  .site-header .storefront-primary-navigation,
  .site-header .storefront-primary-navigation > .col-full {
    display: contents !important;
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .site-header .col-full::before,
  .site-header .col-full::after { display: none !important; content: none !important; } /* Storefront-Clearfix */

  /* Storefront-Primärnavigation (Hamburger + Handheld-Menü) und Desktop-Menü: am Desktop aus */
  .site-header .main-navigation,
  .site-header .hl-mobile-cart { display: none !important; }

  /* Logo */
  .site-header .site-branding.hl-branding {
    order: 1;
    float: none;
    width: auto;
    margin: 0 8px 0 0;
    padding: 0;
  }
  .hl-wordmark { --wm-h: 27px; }
  .hl-brand { min-height: 44px; }
  .hl-brand img { width: 38px; height: 40px; margin-right: 12px; object-fit: contain; }

  /* Navigation */
  .hl-nav { display: block; order: 2; flex: 1 1 auto; min-width: 0; margin: 0 0 0 8px; }
  .hl-nav__list { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; margin: 0; padding: 0; list-style: none; }
  .hl-nav__list li { margin: 0; padding: 0; list-style: none; }
  .hl-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--hl-nav-text) !important;
    text-decoration: none !important;
    transition: background-color .15s ease, color .15s ease;
  }
  .hl-nav__link:hover { background: var(--hl-nav-hover-bg); color: var(--hl-nav-accent) !important; }
  .hl-nav__link.is-accent { color: var(--hl-green-ink) !important; }
  .hl-nav__link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 11px; right: 11px; bottom: 5px;
    height: 2px;
    border-radius: 2px;
    background: var(--hl-nav-accent);
  }

  /* Suche als Pille: Lupe links im Pillenrand (Absenden-Knopf, 44 px), Text nur für Screenreader */
  .hl-search { display: block; order: 3; position: relative; float: none; width: auto; margin: 0; padding: 0; }
  .hl-search .widget, .hl-search form { margin: 0 !important; padding: 0 !important; }
  .hl-search form { position: relative; display: block; }
  .site-header .hl-search .search-field {
    box-sizing: border-box;
    display: block;
    width: 176px;
    height: 44px;
    margin: 0;
    padding: 0 12px 0 44px !important;
    border: 1px solid var(--hl-chip-line) !important;
    border-radius: 999px !important;
    background: var(--hl-chip) !important;
    color: var(--hl-nav-text) !important;
    font: 500 .8125rem/1 var(--hl-font-sans);
    box-shadow: none !important;
    transition: width .2s ease, border-color .15s ease;
  }
  .site-header .hl-search .search-field::placeholder { color: var(--hl-nav-muted); opacity: 1; }
  .site-header .hl-search .search-field::-webkit-search-cancel-button { -webkit-appearance: none; }
  .site-header .hl-search .search-field:focus { width: 220px; border-color: var(--hl-nav-accent) !important; }
  .site-header .hl-search .search-field:focus-visible { outline: 3px solid var(--hl-focus); outline-offset: 2px; }
  /* :not() hebt die Spezifität über die Sammelregel „button:not(…)“ aus Abschnitt 4 */
  html .site-header .hl-search .woocommerce-product-search button[type="submit"]:not(.x):not(.y),
  html .site-header .hl-search .woocommerce-product-search button[type="submit"]:not(.x):not(.y):hover {
    position: absolute;
    top: 0; left: 0;
    width: 44px; height: 44px; min-height: 44px;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: var(--hl-nav-muted) !important;
    font-size: 0 !important;
    line-height: 0;
    overflow: hidden;
    transform: none !important;
    box-shadow: none !important;
  }
  html .site-header .hl-search .woocommerce-product-search button[type="submit"]:not(.x):not(.y):hover { color: var(--hl-nav-accent) !important; }
  .hl-search button[type="submit"]::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 17px; height: 17px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .hl-search button[type="submit"]:focus-visible { outline: 3px solid var(--hl-focus); outline-offset: -3px; }

  /* Konto */
  .hl-account {
    display: inline-flex; order: 4;
    align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    color: var(--hl-nav-text) !important;
    text-decoration: none !important;
    transition: background-color .15s ease, color .15s ease;
  }
  .hl-account:hover { background: var(--hl-nav-hover-bg); color: var(--hl-nav-accent) !important; }

  /* Warenkorb: Storefront-Header-Cart mit Vorschau-Karte (Abschnitt 8), hier nur als Symbol + Zähler */
  .site-header #site-header-cart {
    order: 5;
    position: relative !important;
    display: block !important;
    float: none !important;
    width: auto !important;
    margin: 0 0 -8px !important;
    padding: 0 0 8px !important; /* Hover-Brücke zur Karte */
    list-style: none;
  }
  .site-header #site-header-cart > li { position: static !important; display: block !important; float: none !important; margin: 0 !important; padding: 0 !important; }
  .site-header .site-header-cart .widget_shopping_cart { margin-top: 0; top: 100%; }
  .site-header .site-header-cart a.cart-contents {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    margin: 0; padding: 0 !important;
    border-radius: 50%;
    transition: background-color .15s ease;
  }
  .site-header .site-header-cart a.cart-contents::before,
  .site-header .site-header-cart a.cart-contents::after { display: none !important; content: none !important; } /* Storefront-Icon-Font */
  .site-header .site-header-cart a.cart-contents:hover { background: var(--hl-nav-hover-bg); }
  .site-header .site-header-cart a.cart-contents .hl-cart-icon { display: block; flex: none; }
  .site-header .site-header-cart a.cart-contents .count {
    position: absolute;
    top: 3px; right: 0;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--hl-primary);
    color: #fff !important;
    font-size: .6875rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
  }
  html.dark-mode .site-header .site-header-cart a.cart-contents .count { background: var(--hl-nav-accent); color: #0f1a14 !important; }
  .site-header .site-header-cart a.cart-contents .count.is-empty { display: none; }
  .site-header .site-header-cart a.cart-contents:focus-visible { outline: 3px solid var(--hl-focus); outline-offset: 0; }

  /* Hell/Dunkel: runder Schalter, 44 px Zielfläche */
  .hl-theme-slot { display: inline-flex; order: 6; align-items: center; justify-content: center; margin-left: 2px; }
  .hl-theme-slot .themeToggleBtn.hl-theme-btn { width: 44px !important; height: 44px !important; }
}

/* (Kopf-Breakpoints: siehe Abschnitt 16 am Dateiende) */

/* --------------------------------------------------------------------------
   15. RECHTLICHES IM FOOTER (Impressum, AGB, Datenschutz, Widerruf, Versand) – von jeder Seite erreichbar
   -------------------------------------------------------------------------- */
.hl-legal {
  clear: both;
  width: 100%;
  padding: 6px 16px;
  border-top: 1px solid var(--hl-line);
  background: var(--hl-band);
  text-align: center;
}
.hl-legal__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; margin: 0; padding: 0; list-style: none; }
.hl-legal__list li { margin: 0; padding: 0; list-style: none; }
.hl-legal__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--hl-ink) !important;
  text-decoration: none !important;
}
.hl-legal__list a:hover { color: var(--hl-green-ink) !important; text-decoration: underline !important; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   16. KOPF EINZEILIG, WARENKORB-KARTE, WIDGET-STREIFEN, SEITENZAHLEN (Befunde Live 27.11.2026)
   -------------------------------------------------------------------------- */

/* Dunkler Grund hinter allem: nirgends blitzt Weiß durch (Overscroll, leere Widget-Bereiche, Ränder) */
html.dark-mode,
html[data-theme="dark"] { background-color: #141c26; } /* KEIN color-scheme: dark – siehe Abschnitt 17 (PayPal-iframes wuerden sonst weiss) */

/* Leerer Storefront-Widgetbereich unter dem Kopf (nur leere Blöcke) = kein Streifen. PHP gibt ihn bei leerem Inhalt gar nicht aus. */
.header-widget-region:not(:has(li, p, img, a, h2, h3, figure, form)) { display: none !important; }
.header-widget-region { background: transparent; }

/* ---------- Suche: Lupen-Knopf + aufklappbares Feld ---------- */
.hl-search__toggle { display: none; }

@media (min-width: 768px) {
  .hl-search { flex: none; }
  .hl-search__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    margin: 0; padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: var(--hl-nav-text) !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
  }
  .hl-search__toggle:hover,
  .hl-search.is-open .hl-search__toggle { background: var(--hl-nav-hover-bg) !important; color: var(--hl-nav-accent) !important; }
  .hl-search__toggle:focus-visible { outline: 3px solid var(--hl-focus); outline-offset: 0; }
  .hl-search__toggle::before, .hl-search__toggle::after { display: none !important; content: none !important; }

  /* Schmal: Feld als Karte unter der Lupe */
  .hl-search__panel {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 5;
    box-sizing: border-box;
    width: min(340px, calc(100vw - 48px));
    padding: 8px;
    border: 1px solid var(--hl-card-border);
    border-radius: 999px;
    background: var(--hl-card-bg);
    box-shadow: var(--hl-card-shadow);
  }
  .hl-search.is-open .hl-search__panel { display: block; }
  .site-header .hl-search .hl-search__panel .search-field,
  .site-header .hl-search .hl-search__panel .search-field:focus { width: 100%; }
}

/* Ab 1360 px: volle Pille, keine Lupe zum Aufklappen */
@media (min-width: 1360px) {
  .hl-search__toggle { display: none; }
  .hl-search__panel,
  .hl-search.is-open .hl-search__panel {
    display: block;
    position: static;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .site-header .hl-search .hl-search__panel .search-field { width: 176px; }
  .site-header .hl-search .hl-search__panel .search-field:focus { width: 220px; }
}

/* ---------- Kopf ab 1024 px: EINE Zeile ---------- */
@media (min-width: 1024px) {
  .site-header { flex-wrap: nowrap; column-gap: 12px; }
  .site-header .site-branding.hl-branding { flex: none; margin: 0 4px 0 0; }
  .hl-nav { flex: 1 1 auto; min-width: 0; margin: 0; order: 2; }
  .hl-nav__list { flex-wrap: nowrap; justify-content: center; gap: 0; }
  .hl-nav__link { padding: 0 8px; font-size: .8125rem; }
  .hl-nav__link[aria-current="page"]::after { left: 8px; right: 8px; }
  .hl-search, .hl-account, .hl-theme-slot,
  .site-header #site-header-cart { flex: none; margin-left: 0; }
  .site-header #site-header-cart { margin-bottom: -8px !important; }
}
@media (min-width: 1240px) {
  .site-header { column-gap: 16px; }
  .hl-nav__link { padding: 0 11px; font-size: .875rem; }
  .hl-nav__link[aria-current="page"]::after { left: 11px; right: 11px; }
}

/* ---------- 768–1023 px: zweizeilig, sauber (Logo + Werkzeuge oben, Navigation darunter) ---------- */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .site-header { flex-wrap: wrap; row-gap: 0; padding-bottom: 4px !important; }
  .hl-search { margin-left: auto; }
  .hl-nav { order: 10; flex: 1 0 100%; margin: 0 -11px; }
  .hl-nav__list { flex-wrap: wrap; justify-content: flex-start; }
  .hl-nav__link { padding: 0 11px; }
}

/* ---------- Warenkorb im Kopf: Zähler-Badge oben rechts am Taschen-Symbol ---------- */
@media (min-width: 768px) {
  .site-header .site-header-cart a.cart-contents .count {
    position: absolute;
    top: 2px;
    right: 1px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin: 0;
    padding: 0 4px;
    border-radius: 999px;
    font-size: .6875rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
  }
}

/* ---------- Seitenzahlen: exakte Kreise, Zahl mittig ---------- */
.woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 1.5rem 0; padding: 0; border: 0; list-style: none; }
.woocommerce-pagination ul.page-numbers li { margin: 0; padding: 0; border: 0 !important; float: none; display: block; }
.woocommerce-pagination ul.page-numbers li a.page-numbers,
.woocommerce-pagination ul.page-numbers li span.page-numbers,
.woocommerce-pagination .page-numbers li .page-numbers,
.woocommerce-pagination a.page-numbers,
.woocommerce-pagination span.page-numbers {
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  margin: 0;
  padding: 0 !important;
  border: 1px solid var(--hl-nav-line);
  border-radius: 999px;
  background: transparent;
  color: var(--hl-nav-text) !important;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.woocommerce-pagination ul.page-numbers li a.page-numbers:hover { background: var(--hl-nav-hover-bg); border-color: var(--hl-nav-accent); color: var(--hl-nav-accent) !important; }
.woocommerce-pagination ul.page-numbers li .page-numbers.current,
.woocommerce-pagination span.page-numbers.current { background: var(--hl-primary) !important; border-color: var(--hl-primary); color: #fff !important; }
html.dark-mode .woocommerce-pagination ul.page-numbers li .page-numbers.current,
html.dark-mode .woocommerce-pagination span.page-numbers.current { background: var(--hl-nav-accent) !important; border-color: var(--hl-nav-accent); color: #0f1a14 !important; }
.woocommerce-pagination ul.page-numbers li .page-numbers.dots { border-color: transparent; background: transparent; min-width: 28px; }
.woocommerce-pagination a.page-numbers:focus-visible { outline: 3px solid var(--hl-focus); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   17. WARENKORB + KASSE (volle Breite, zweispaltig), FOKUS-RING, PAYPAL-FIX
   Ursachen/Befunde: siehe Kommentare. Nur CSS; WooCommerce-/Germanized-Templates unveraendert.
   -------------------------------------------------------------------------- */

/* 17.0 Tokens */
:root {
  --hl-ring: #49734c;            /* Fokus-Ring hell (5.6:1 auf Weiss) */
  --hl-danger: #b3261e;
  --hl-pill: #345944;
  --hl-pill-hover: #49734c;
  --hl-pay-select: rgba(52, 89, 68, .07);
}
html.dark-mode {
  --hl-ring: #8cc79a;
  --hl-danger: #ff9a8f;
  --hl-pay-select: rgba(140, 199, 154, .10);
}

/* 17.1 PayPal-iframes: color-scheme
   URSACHE des weissen Hintergrunds: style.css (Abschnitt 16) setzte auf <html> `color-scheme: dark`. Browser legen hinter
   cross-origin-iframes, deren Dokument ein anderes color-scheme hat (PayPal = hell/normal) als das Element, eine DECKENDE
   weisse Flaeche. Jetzt: <html> bleibt `normal`; nur Formularfelder bekommen dunkle Browser-Widgets, und die PayPal-Container
   erzwingen zusaetzlich `light` (= gleiches Schema wie der iframe-Inhalt -> transparent). */
html.dark-mode input,
html.dark-mode select,
html.dark-mode textarea { color-scheme: dark; }
.ppc-button-wrapper, [id^="ppc-button"], .ppcp-button-apm, .ppcp-messages,
.paypal-buttons, .paypal-button-container, .paypal-buttons iframe, .paypal-buttons-context-iframe,
iframe[name^="__zoid__paypal"], iframe[src*="paypal.com"], iframe[title*="PayPal"] {
  color-scheme: light;
  background: transparent !important;
}
.paypal-button-container { min-width: 0 !important; max-width: 100% !important; }

/* 17.2 Fokus: nie lila. Maus-Klick ohne Ring, Tastatur/Textfelder mit HL-Ring */
html body :is(a, button, .button, .btn, input, select, textarea, summary, [tabindex], .select2-selection, .select2-container--focus .select2-selection, .wc-block-components-button, .quantity .qty):is(:focus, :active, :focus-within) {
  box-shadow: none !important;
}
html body :is(a, button, .button, .btn, input, select, textarea, summary, [tabindex], .select2-selection, .wc-block-components-button):focus {
  outline: none;
}
html body :is(a, button, .button, .btn, input, select, textarea, summary, [tabindex], .select2-selection, .wc-block-components-button):focus-visible,
html body .select2-container--focus .select2-selection,
html body .select2-container--open .select2-selection {
  outline: 3px solid var(--hl-ring) !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}
html body input[type="radio"]:focus-visible,
html body input[type="checkbox"]:focus-visible { outline-offset: 3px !important; }
html body :is(input, select, textarea):focus { border-color: var(--hl-ring) !important; }
html body ::selection { background: rgba(73, 115, 76, .35); }

/* 17.3 Seitenleiste weg, volle Breite (zusaetzlich zur PHP-Entfernung) */
body.hl-full-width #secondary,
body.hl-full-width .widget-area { display: none !important; }
body.hl-full-width #primary,
body.hl-full-width .content-area { float: none !important; width: 100% !important; margin-right: 0 !important; }
body.hl-full-width .site-content > .col-full { max-width: 1240px; }
body.hl-full-width .hentry .entry-content { margin: 0; }
body.hl-full-width .woocommerce-notices-wrapper:empty { display: none; }

/* 17.4 Gemeinsame Bausteine: Karten, Tabellen, Felder, Meldungen */
body.hl-cart .cart_totals,
body.hl-checkout #order_review,
body.hl-checkout .woocommerce-billing-fields,
body.hl-checkout .woocommerce-shipping-fields,
body.hl-checkout .woocommerce-additional-fields,
body.hl-cart table.cart {
  background: var(--hl-card);
  border: 1px solid var(--hl-line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
html.dark-mode body.hl-cart .cart_totals,
html.dark-mode body.hl-checkout #order_review,
html.dark-mode body.hl-checkout .woocommerce-billing-fields,
html.dark-mode body.hl-checkout .woocommerce-shipping-fields,
html.dark-mode body.hl-checkout .woocommerce-additional-fields,
html.dark-mode body.hl-cart table.cart { box-shadow: none; }

body.hl-full-width table.shop_table { border: 0; border-radius: 0; background: transparent; margin: 0; width: 100%; }
body.hl-cart table.shop_table.cart { border: 1px solid var(--hl-line); border-radius: 16px; overflow: hidden; background: var(--hl-card); }
body.hl-full-width .shop_table :is(th, td),
body.hl-full-width .shop_table tbody tr:nth-child(2n) td,
body.hl-full-width .shop_table tbody td {
  background: transparent !important;
  color: var(--hl-ink);
  border: 0;
  border-bottom: 1px solid var(--hl-line);
  padding: 14px 16px;
  vertical-align: middle;
}
body.hl-full-width .shop_table :is(tfoot, tbody) tr:last-child :is(th, td) { border-bottom: 0; }
body.hl-full-width .shop_table thead th {
  font-size: .8125rem; font-weight: 600; color: var(--hl-muted);
  background: transparent !important; border-bottom: 1px solid var(--hl-line);
}
body.hl-full-width .shop_table .amount,
body.hl-full-width .shop_table bdi { color: inherit; }
body.hl-full-width .shop_table .woocommerce-Price-amount { font-variant-numeric: tabular-nums; }
body.hl-full-width .shop_table small,
body.hl-full-width .shop_table .includes_tax,
body.hl-full-width .shop_table .tax-info { color: var(--hl-muted); font-weight: 400; }

body.hl-full-width .woocommerce form .form-row label,
body.hl-full-width form .form-row label { display: block; margin: 0 0 6px; font-size: .875rem; font-weight: 600; color: var(--hl-ink); line-height: 1.35; }
body.hl-full-width form .form-row { margin: 0 0 16px; padding: 0; }
body.hl-full-width abbr.required { color: var(--hl-danger); text-decoration: none; border: 0; }
body.hl-full-width form .form-row :is(input.input-text, textarea, select) {
  width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--hl-edge) !important; border-radius: 12px;
  background: var(--hl-card); color: var(--hl-ink);
  font: inherit; font-size: .9375rem;
}
html.dark-mode body.hl-full-width form .form-row :is(input.input-text, textarea, select),
html.dark-mode body.hl-full-width .coupon .input-text { background: #243340 !important; color: var(--hl-ink) !important; }
body.hl-full-width form .form-row textarea { min-height: 112px; resize: vertical; }
body.hl-full-width form .form-row ::placeholder,
body.hl-full-width .coupon .input-text::placeholder { color: var(--hl-muted); opacity: 1; }
body.hl-full-width .woocommerce-invalid :is(input.input-text, select, textarea) { border-color: var(--hl-danger) !important; }
body.hl-full-width .select2-container { display: block; width: 100% !important; }
body.hl-full-width .select2-container .select2-selection--single { display: block; }
body.hl-full-width .select2-container .select2-selection--single { height: 46px; border: 1px solid var(--hl-edge); border-radius: 12px; background: var(--hl-card); }
body.hl-full-width .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 44px; padding: 0 36px 0 14px; color: var(--hl-ink); }
body.hl-full-width .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; right: 8px; }
body.hl-full-width .select2-container--default .select2-selection--single .select2-selection__arrow b { border-top-color: var(--hl-muted); }
html.dark-mode body .select2-container--default .select2-selection--single { background: #243340 !important; border-color: var(--hl-border-dark) !important; }
html.dark-mode body .select2-dropdown { background: #243340; border-color: var(--hl-border-dark); color: var(--hl-ink); }
html.dark-mode body .select2-search--dropdown .select2-search__field { background: #1b2531 !important; color: var(--hl-ink) !important; border: 1px solid var(--hl-border-dark) !important; }
html.dark-mode body .select2-container--default .select2-results__option { color: var(--hl-ink); background: transparent; }
html.dark-mode body .select2-container--default .select2-results__option--highlighted[aria-selected],
html.dark-mode body .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--hl-pill); color: #fff; }
html.dark-mode body .select2-container--default .select2-results__option[aria-selected="true"],
html.dark-mode body .select2-container--default .select2-results__option[data-selected="true"] { background: rgba(140, 199, 154, .16); }

/* Radios/Checkboxen: eigene Darstellung (gut sichtbar hell + dunkel), 20 px, gut treffbar */
body.hl-full-width :is(input[type="radio"], input[type="checkbox"]) {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; margin: 0; padding: 0 !important; flex: none; cursor: pointer;
  background-color: var(--hl-card) !important; border: 2px solid var(--hl-edge) !important; border-radius: 50%;
  display: inline-block; vertical-align: middle; position: relative;
}
body.hl-full-width input[type="checkbox"] { border-radius: 6px; }
html.dark-mode body.hl-full-width :is(input[type="radio"], input[type="checkbox"]) { background-color: #243340 !important; }
body.hl-full-width input[type="radio"]:checked { border-color: var(--hl-pill-hover) !important; background-image: radial-gradient(circle, var(--hl-pill-hover) 0 45%, transparent 50%); }
html.dark-mode body.hl-full-width input[type="radio"]:checked { border-color: #8cc79a !important; background-image: radial-gradient(circle, #8cc79a 0 45%, transparent 50%); }
body.hl-full-width input[type="checkbox"]:checked {
  background-color: var(--hl-pill-hover) !important; border-color: var(--hl-pill-hover) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}
html.dark-mode body.hl-full-width input[type="checkbox"]:checked { background-color: #8cc79a !important; border-color: #8cc79a !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23141c26' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E"); }

/* Meldungen / Hinweis-Boxen: dezente Karte mit Icon statt gruener Vollflaeche */
body.hl-full-width :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 12px; padding: 12px 16px !important;
  background: var(--hl-band) !important; color: var(--hl-ink) !important;
  border: 1px solid var(--hl-line) !important; border-left: 4px solid var(--hl-pill-hover) !important;
  border-radius: 12px; font-size: .9375rem; line-height: 1.45; list-style: none;
}
html.dark-mode body.hl-full-width :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) { border-left-color: #8cc79a !important; }
body.hl-full-width .woocommerce-error { border-left-color: var(--hl-danger) !important; }
body.hl-full-width :is(.woocommerce-info, .woocommerce-message, .woocommerce-error)::before {
  content: ""; position: static; flex: none; width: 20px; height: 20px; margin: 0; padding: 0;
  background: var(--hl-green-ink); border: 0; font-size: 0;
  -webkit-mask: var(--hl-ico-info) center / contain no-repeat; mask: var(--hl-ico-info) center / contain no-repeat;
}
body.hl-full-width .woocommerce-error::before { background: var(--hl-danger); }
body.hl-full-width :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) a:not(.button) { color: var(--hl-green-ink) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
body.hl-full-width .woocommerce-message .button { margin-left: auto; order: 3; }
body.hl-full-width .woocommerce-error li { list-style: none; margin: 0; }
:root { --hl-ico-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16'/%3E%3Cpath d='m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0'/%3E%3C/svg%3E"); }

/* Express-Zahlung (Apple Pay / Google Pay) kompakt */
body.hl-checkout :is(#wc-stripe-payment-request-wrapper, #wc-stripe-express-checkout-element, .wc-stripe-banner-checkout, .ppcp-express-checkout, .hl-express) {
  box-sizing: border-box; margin: 0 0 16px; padding: 16px;
  background: var(--hl-card); border: 1px solid var(--hl-line); border-radius: 16px;
}
body.hl-checkout :is(#wc-stripe-payment-request-button-separator, .wc-stripe-payment-request-button-separator) { margin: 10px 0 0; text-align: center; font-size: .8125rem; color: var(--hl-muted) !important; background: none !important; }

/* 17.5 Primaere Pillen */
body.hl-full-width :is(.checkout-button, #place_order) {
  display: flex !important; align-items: center; justify-content: center;
  box-sizing: border-box; width: 100%; min-height: 56px;
  margin: 0; padding: 14px 28px !important;
  font-size: 1.0625rem; font-weight: 700; line-height: 1.2; text-align: center;
  float: none; background: var(--hl-pill) !important; border: 1px solid #49734c !important; color: #fff !important;
}
body.hl-full-width :is(.checkout-button, #place_order):hover { background: var(--hl-pill-hover) !important; transform: none; }
body.hl-full-width :is(.checkout-button, #place_order):disabled { opacity: .6; cursor: not-allowed; }

/* ======================= WARENKORB ======================= */
body.hl-cart .woocommerce-cart-form { margin: 0; }
body.hl-cart table.cart { table-layout: fixed; }
body.hl-cart table.cart th.product-remove, body.hl-cart table.cart td.product-remove { width: 56px; padding-right: 0; text-align: center; }
body.hl-cart table.cart th.product-thumbnail, body.hl-cart table.cart td.product-thumbnail { width: 96px; padding-right: 4px; }
body.hl-cart table.cart th.product-price, body.hl-cart table.cart td.product-price { width: 84px; text-align: right; color: var(--hl-muted); }
body.hl-cart table.cart th.product-quantity, body.hl-cart table.cart td.product-quantity { width: 104px; text-align: center; }
body.hl-cart table.cart th.product-subtotal, body.hl-cart table.cart td.product-subtotal { width: 140px; text-align: right; font-weight: 700; }
body.hl-cart table.cart td.product-thumbnail img { display: block; width: 72px; height: 72px; max-width: none; object-fit: cover; border-radius: 12px; margin: 0; }
body.hl-cart table.cart td.product-name { min-width: 0; word-break: normal; overflow-wrap: break-word; }
body.hl-cart table.cart td.product-name > a { display: block; font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--hl-ink); text-decoration: none; }
body.hl-cart table.cart td.product-name > a:hover { color: var(--hl-green-ink); text-decoration: underline; text-underline-offset: 3px; }
/* Germanized-Infos + Varianten: klein, grau, kompakt */
body.hl-cart table.cart td.product-name :is(.wc-gzd-item-desc, .wc-gzd-cart-info, .delivery-time-info, .product-item-desc, dl.variation, p) {
  margin: 4px 0 0; padding: 0; font-size: .8125rem; line-height: 1.4; font-weight: 400; color: var(--hl-muted); max-width: 60ch;
}
body.hl-cart table.cart td.product-name .wc-gzd-item-desc,
body.hl-cart table.cart td.product-name .product-item-desc {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
body.hl-cart table.cart td.product-name dl.variation { display: flex; flex-wrap: wrap; gap: 0 .35em; }
body.hl-cart table.cart td.product-name dl.variation :is(dt, dd) { margin: 0; padding: 0; float: none; font-weight: 400; }
body.hl-cart table.cart td.product-name dl.variation dt { font-weight: 600; }
body.hl-cart table.cart td.product-name dl.variation dd p { display: inline; margin: 0; }
body.hl-cart table.cart td.product-name a { color: var(--hl-ink); }
body.hl-cart table.cart td.product-name .wc-gzd-cart-info a { color: var(--hl-muted); text-decoration: underline; }
body.hl-cart .quantity .qty {
  width: 72px; min-height: 44px; padding: 6px 8px; text-align: center; box-sizing: border-box;
  border: 1px solid var(--hl-edge) !important; border-radius: 12px; background: var(--hl-card); color: var(--hl-ink);
}
html.dark-mode body.hl-cart .quantity .qty { background: #243340 !important; color: var(--hl-ink) !important; }
body.hl-full-width a.remove {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: 0; border: 0; border-radius: 50%;
  font-size: 1.5rem; font-weight: 400; line-height: 1;
  color: var(--hl-muted) !important; background: transparent !important; text-decoration: none;
}
body.hl-full-width a.remove:hover { background: rgba(179, 38, 30, .12) !important; color: var(--hl-danger) !important; }

/* Gutschein + Aktualisieren: eine saubere Zeile */
body.hl-cart table.cart td.actions { padding: 16px; border-bottom: 0; text-align: left; }
body.hl-cart table.cart td.actions::after { content: ""; display: table; clear: both; }
body.hl-cart table.cart td.actions .coupon { float: left; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: auto; margin: 0; padding: 0; }
body.hl-cart table.cart td.actions .coupon label { display: none; }
body.hl-cart table.cart td.actions .coupon .input-text {
  width: 220px; max-width: 100%; min-height: 46px; margin: 0; box-sizing: border-box;
  border: 1px solid var(--hl-edge) !important; border-radius: 12px; background: var(--hl-card); color: var(--hl-ink); padding: 8px 14px;
}
body.hl-cart table.cart td.actions > .button[name="update_cart"] { float: right; margin: 0; background: transparent !important; color: var(--hl-ink) !important; border: 1px solid var(--hl-edge) !important; }
body.hl-cart table.cart td.actions > .button[name="update_cart"]:hover:not(:disabled) { background: var(--hl-tint) !important; }
body.hl-cart table.cart td.actions > .button[name="update_cart"]:disabled { opacity: .55; cursor: not-allowed; }
body.hl-cart table.cart td.actions .coupon .button { margin: 0; background: transparent !important; color: var(--hl-ink) !important; border: 1px solid var(--hl-edge) !important; }
body.hl-cart table.cart td.actions .coupon .button:hover { background: var(--hl-tint) !important; }

/* Summenkarte */
body.hl-cart .cart_totals { float: none !important; width: 100% !important; box-sizing: border-box; padding: 24px; }
body.hl-cart .cart_totals > h2 { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.3; }
body.hl-cart .cart_totals table.shop_table { border: 0; table-layout: auto; }
body.hl-cart .cart_totals .shop_table :is(th, td) { padding: 12px 0; }
body.hl-cart .cart_totals .shop_table th { text-align: left; font-weight: 500; vertical-align: top; overflow-wrap: break-word; }
body.hl-cart .cart_totals .shop_table td { text-align: right; vertical-align: top; }
body.hl-cart .cart_totals tr.cart-discount th { font-weight: 400; font-size: .875rem; line-height: 1.4; color: var(--hl-muted); }
body.hl-cart .cart_totals tr.cart-discount td { white-space: nowrap; color: var(--hl-green-ink); font-weight: 600; }
body.hl-cart .cart_totals tr.cart-discount td a { display: block; margin-top: 2px; font-size: .75rem; font-weight: 400; color: var(--hl-muted); text-decoration: underline; }
/* Summentabellen: Zeilen als 2-Spalten-Grid (Label | Betrag); Versandzeile einspaltig gestapelt */
body.hl-cart .cart_totals table.shop_table,
body.hl-checkout #order_review table.shop_table { display: block; }
body.hl-cart .cart_totals table.shop_table :is(tbody, tfoot),
body.hl-checkout #order_review table.shop_table :is(thead, tbody, tfoot) { display: block; }
body.hl-cart .cart_totals table.shop_table tr,
body.hl-checkout #order_review table.shop_table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: start; border-bottom: 1px solid var(--hl-line); }
body.hl-cart .cart_totals table.shop_table tr :is(th, td),
body.hl-checkout #order_review table.shop_table tr :is(th, td) { border: 0 !important; width: auto !important; min-width: 0; }
body.hl-cart .cart_totals table.shop_table tr:last-child,
body.hl-checkout #order_review table.shop_table tr:last-child { border-bottom: 0; }
body.hl-checkout #order_review table.shop_table thead tr { border-bottom: 1px solid var(--hl-line); }
body.hl-cart .cart_totals table.shop_table td::before,
body.hl-checkout #order_review table.shop_table td::before { display: none !important; }
body.hl-cart .cart_totals tr.cart-discount th { width: auto !important; }
body.hl-cart .cart_totals tr.cart-subtotal td, body.hl-cart .cart_totals tr.cart-discount td { white-space: nowrap; }
/* Versand: Titel oben, Optionen als Auswahl-Zeilen darunter */
body.hl-full-width :is(tr.woocommerce-shipping-totals, tr.shipping) { grid-template-columns: minmax(0, 1fr) !important; }
body.hl-full-width :is(tr.woocommerce-shipping-totals, tr.shipping) :is(th, td) { box-sizing: border-box; text-align: left !important; }
body.hl-full-width :is(tr.woocommerce-shipping-totals, tr.shipping) th { padding-bottom: 4px !important; }
body.hl-full-width :is(tr.woocommerce-shipping-totals, tr.shipping) td { padding-top: 0 !important; }
body.hl-full-width :is(tr.woocommerce-shipping-totals, tr.shipping) td::before { display: none; }
body.hl-full-width ul#shipping_method { margin: 0; padding: 0; list-style: none; }
body.hl-full-width ul#shipping_method li { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 8px; padding: 10px 12px; border: 1px solid var(--hl-line); border-radius: 12px; }
body.hl-full-width ul#shipping_method li:has(input:checked) { border-color: var(--hl-green-ink); background: var(--hl-pay-select); }
body.hl-full-width ul#shipping_method li input { margin-top: 2px; }
body.hl-full-width ul#shipping_method li input[type="hidden"] { display: none; }
body.hl-full-width ul#shipping_method li label { flex: 1; min-width: 0; margin: 0; font-weight: 500; font-size: .9375rem; line-height: 1.4; }
body.hl-full-width .woocommerce-shipping-destination,
body.hl-full-width .shipping-calculator-button { margin: 6px 0 0; font-size: .8125rem; color: var(--hl-muted); }
body.hl-full-width .shipping-calculator-button { color: var(--hl-green-ink); text-decoration: underline; }
body.hl-full-width tr.order-total th { white-space: nowrap; }
body.hl-full-width tr.order-total :is(th, td) { padding-top: 18px; font-size: 1.0625rem; font-weight: 700; }
body.hl-full-width tr.order-total td .woocommerce-Price-amount { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; }
body.hl-full-width tr.order-total td .woocommerce-Price-amount { white-space: nowrap; }
body.hl-full-width tr.order-total td small { display: block; max-width: 10em; margin-left: auto; text-align: right; margin-top: 2px; font-size: .75rem; font-weight: 400; line-height: 1.35; }
body.hl-cart .wc-proceed-to-checkout { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 0; padding: 0; }
body.hl-cart .wc-proceed-to-checkout > * { margin: 0; }
body.hl-cart .wc-proceed-to-checkout :is(#ppc-button-ppcp-gateway, .ppc-button-wrapper, [id^="ppc-button"]) { width: 100%; min-width: 0; }
body.hl-cart .cart_totals :is(.wc-gzd-cart-info, .wc-gzd-additional-info, .legal-price-info, .shipping-costs-info, .tax-info) { margin-top: 10px; font-size: .75rem; line-height: 1.45; color: var(--hl-muted); }
/* Pflichtbild „Gesetzliche Gewaehrleistung“: bleibt, nur dezent */
body.hl-full-width img[src*="legal_guarantee"] {
  display: block; width: 100%; max-width: 280px; height: auto; margin: 16px auto 0; border-radius: 12px;
}
html.dark-mode body.hl-full-width img[src*="legal_guarantee"] { background: #e8ece9; padding: 8px; box-sizing: border-box; }

/* Cross-Sells */
body.hl-cart .cross-sells { float: none !important; width: 100% !important; margin: 40px 0 0; }
body.hl-cart .cross-sells > h2 { margin: 0 0 16px; font-size: 1.25rem; }
body.hl-cart .cross-sells ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; }
@media (max-width: 991.98px) { body.hl-cart .cross-sells ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 539.98px) { body.hl-cart .cross-sells ul.products { grid-template-columns: 1fr; } }

/* Desktop-Layout Warenkorb: links Positionen, rechts Summe (sticky), unten Cross-Sells */
@media (min-width: 1200px) {
  body.hl-cart .entry-content > .woocommerce:has(> form.woocommerce-cart-form) {
    display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: 32px; row-gap: 0; align-items: start;
  }
  body.hl-cart .woocommerce-notices-wrapper { grid-column: 1 / -1; grid-row: 1; margin-bottom: 16px; }
  body.hl-cart .woocommerce-cart-form { grid-column: 1; grid-row: 2; min-width: 0; }
  body.hl-cart .cart-collaterals { display: contents; }
  body.hl-cart .cart_totals { grid-column: 2; grid-row: 2; position: sticky; top: 96px; }
  body.hl-cart .cross-sells { grid-column: 1 / -1; grid-row: 3; }
  body.hl-cart .cart-collaterals > :not(.cart_totals):not(.cross-sells) { grid-column: 1 / -1; grid-row: 4; }
}
@media (max-width: 991.98px) {
  body.hl-cart .cart-collaterals { display: flex; flex-direction: column; }
  body.hl-cart .cart_totals { order: 1; margin-top: 24px; }
  body.hl-cart .cross-sells { order: 2; }
  body.hl-cart .cart-collaterals > :not(.cart_totals):not(.cross-sells) { order: 3; }
}
/* Woo-Smallscreen blendet th aus und nutzt data-title; in den Summen-Grids bleibt das Label (th) sichtbar */
@media (max-width: 768px) {
  body.hl-cart .cart_totals table.shop_table tbody th,
  body.hl-cart .cart_totals table.shop_table th,
  body.hl-checkout #order_review table.shop_table th { display: block !important; }
  body.hl-cart .cart_totals table.shop_table td,
  body.hl-checkout #order_review table.shop_table td { text-align: right !important; }
  body.hl-checkout #order_review table.shop_table td.product-name,
  body.hl-cart .cart_totals table.shop_table tr:is(.woocommerce-shipping-totals, .shipping) td,
  body.hl-checkout #order_review table.shop_table tr:is(.woocommerce-shipping-totals, .shipping) td { text-align: left !important; }
  body.hl-checkout #order_review ul.wc_payment_methods > li > label img { max-width: 40px; max-height: 20px; }
}

/* Mobil: Positionen als Karten (shop_table_responsive + data-title) */
@media (max-width: 768px) {
  body.hl-cart table.cart { border: 0; background: transparent; overflow: visible; display: block; }
  body.hl-cart table.cart thead { display: none; }
  body.hl-cart table.cart tbody { display: block; }
  body.hl-cart table.cart tr.cart_item {
    position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; align-items: start;
    margin: 0 0 14px; padding: 16px; background: var(--hl-card);
    border: 1px solid var(--hl-line); border-radius: 16px;
  }
  body.hl-cart table.cart tr.cart_item > td { display: block; padding: 0; border: 0 !important; text-align: left !important; width: auto !important; }
  body.hl-cart table.cart td.product-thumbnail { grid-column: 1; grid-row: 1 / span 4; display: block !important; }
  body.hl-cart table.cart td.product-thumbnail::before { display: none; }
  body.hl-cart table.cart td.product-name { grid-column: 2; grid-row: 1; padding-right: 40px; }
  body.hl-cart table.cart td.product-name::before { display: none; }
  body.hl-cart table.cart td.product-remove { position: absolute; top: 6px; right: 6px; width: auto !important; padding: 0; }
  body.hl-cart table.cart td.product-remove::before { display: none; }
  body.hl-cart table.cart tr.cart_item > td:is(.product-price, .product-quantity, .product-subtotal) {
    grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hl-line) !important; min-height: 28px;
  }
  body.hl-cart table.cart tr.cart_item > td:is(.product-price, .product-quantity, .product-subtotal)::before {
    content: attr(data-title); float: none; font-size: .8125rem; font-weight: 500; color: var(--hl-muted);
  }
  body.hl-cart table.cart td.product-quantity { text-align: right; }
  body.hl-cart table.cart tr:has(td.actions) { display: block; padding: 16px; background: var(--hl-card); border: 1px solid var(--hl-line); border-radius: 16px; }
  body.hl-cart table.cart td.actions { display: block; padding: 0 !important; border: 0 !important; }
  body.hl-cart table.cart td.actions::before { display: none; }
  body.hl-cart table.cart td.actions .coupon { float: none; display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 12px; }
  body.hl-cart table.cart td.actions .coupon .input-text { width: 100%; }
  body.hl-cart table.cart td.actions .button { width: 100%; float: none !important; }
  body.hl-cart .cart_totals { padding: 20px 18px; }
}

/* ======================= KASSE ======================= */
body.hl-checkout form.checkout { margin: 0; }
body.hl-checkout #customer_details.col2-set { display: flex; flex-direction: column; gap: 20px; width: 100%; float: none; }
body.hl-checkout #customer_details .col-1,
body.hl-checkout #customer_details .col-2 { float: none; width: 100%; max-width: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
body.hl-checkout :is(.woocommerce-billing-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields) { padding: 24px; box-sizing: border-box; }
body.hl-checkout :is(.woocommerce-billing-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields) > h3,
body.hl-checkout #order_review h3 { margin: 0 0 16px; font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
body.hl-checkout #ship-to-different-address { margin: 0; }
body.hl-checkout #ship-to-different-address label { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.0625rem; font-weight: 700; cursor: pointer; }
body.hl-checkout .woocommerce-billing-fields__field-wrapper,
body.hl-checkout .woocommerce-shipping-fields__field-wrapper,
body.hl-checkout .woocommerce-additional-fields__field-wrapper,
body.hl-checkout .shipping_address > .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
body.hl-checkout .woocommerce-additional-fields__field-wrapper { grid-template-columns: 1fr; }
body.hl-checkout .form-row { float: none !important; width: auto !important; clear: none; grid-column: 1 / -1; }
body.hl-checkout .form-row.form-row-first,
body.hl-checkout .form-row.form-row-last { grid-column: span 1; }
body.hl-checkout .shipping_address { margin-top: 16px; }

/* Rechte Karte: Bestellung. Germanized verschiebt Ueberschrift/Reihenfolge – mit flex+order damit arbeiten */
body.hl-checkout #order_review { display: flex; flex-direction: column; box-sizing: border-box; float: none; width: 100%; padding: 24px; }
body.hl-checkout #order_review #payment { display: contents; background: transparent; border: 0; }
body.hl-checkout #order_review > #order_review_heading,
body.hl-checkout #order_review > h3 { order: 10; }
body.hl-checkout #order_review > table.shop_table { order: 20; margin-bottom: 22px; }
body.hl-checkout #order_review :is(#order_payment_heading, .wc-gzd-payment-heading) { order: 29; }
body.hl-checkout #order_review ul.wc_payment_methods,
body.hl-checkout #order_review ul.payment_methods { order: 30; }
body.hl-checkout #order_review :is(.place-order, #order_submit, .wc-gzd-order-submit) { order: 40; }
body.hl-checkout #order_review > * { max-width: 100%; }
body.hl-checkout #order_review_heading { float: none; width: auto; }
body.hl-checkout #order_review table.shop_table { border: 0; }
body.hl-checkout #order_review table.shop_table :is(th, td) { padding: 10px 0; font-size: .9375rem; }
body.hl-checkout #order_review table.shop_table thead th { font-size: .75rem; padding-top: 0; }
body.hl-checkout #order_review table.shop_table td.product-name,
body.hl-checkout #order_review table.shop_table th.product-name {
  word-break: normal; overflow-wrap: break-word; hyphens: manual; text-align: left; width: auto; min-width: 0; padding-right: 14px; line-height: 1.4;
}
body.hl-checkout #order_review td.product-name .product-quantity { color: var(--hl-muted); font-weight: 400; white-space: nowrap; }
body.hl-checkout #order_review td.product-name img { float: left; width: 48px; height: 48px; margin: 0 12px 0 0; border-radius: 8px; object-fit: cover; }
body.hl-checkout #order_review td.product-name :is(dl.variation, .wc-gzd-cart-info, .delivery-time-info, .wc-gzd-item-desc) { overflow: hidden; margin: 3px 0 0; font-size: .8125rem; line-height: 1.4; color: var(--hl-muted); }
body.hl-checkout #order_review td.product-name dl.variation { display: flex; flex-wrap: wrap; gap: 0 .35em; }
body.hl-checkout #order_review td.product-name dl.variation :is(dt, dd) { margin: 0; float: none; font-weight: 400; }
body.hl-checkout #order_review td.product-name dl.variation dd p { display: inline; margin: 0; }
body.hl-checkout #order_review td.product-total,
body.hl-checkout #order_review tfoot td { text-align: right; white-space: nowrap; vertical-align: top; }
body.hl-checkout #order_review tfoot th { text-align: left; font-weight: 500; vertical-align: top; }
body.hl-checkout #order_review tfoot tr.cart-discount th { font-weight: 400; font-size: .875rem; color: var(--hl-muted); overflow-wrap: anywhere; }
body.hl-checkout #order_review tfoot tr.cart-discount td { color: var(--hl-green-ink); font-weight: 600; }
body.hl-checkout #order_review tfoot tr.order-total th, body.hl-checkout #order_review tfoot tr.order-total td { white-space: normal; }

/* Zahlungsarten als Auswahl-Karten */
body.hl-checkout #order_review ul.wc_payment_methods { list-style: none; margin: 0 0 20px; padding: 0; border: 0; background: transparent; }
body.hl-checkout #order_review ul.wc_payment_methods > li {
  position: relative; margin: 0 0 10px; padding: 0; overflow: hidden;
  background: var(--hl-card); border: 1px solid var(--hl-line); border-radius: 14px;
  transition: border-color .15s ease, background-color .15s ease;
}
html.dark-mode body.hl-checkout #order_review ul.wc_payment_methods > li { background: #1b2531 !important; border: 1px solid var(--hl-line) !important; box-shadow: none; padding-bottom: 0; }
body.hl-checkout #order_review ul.wc_payment_methods > li:hover { background: var(--hl-tint); }
body.hl-checkout #order_review ul.wc_payment_methods > li:has(> input[type="radio"]:checked) {
  border-color: var(--hl-green-ink) !important; background: var(--hl-pay-select) !important; box-shadow: inset 0 0 0 1px var(--hl-green-ink);
}
body.hl-checkout #order_review ul.wc_payment_methods > li > input[type="radio"] { position: absolute; left: 16px; top: 16px; }
body.hl-checkout #order_review ul.wc_payment_methods > li > label {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; box-sizing: border-box; width: 100%; margin: 0;
  padding: 15px 16px 15px 48px; font-size: .9375rem; font-weight: 600; line-height: 1.3; color: var(--hl-ink); cursor: pointer;
}
body.hl-checkout #order_review ul.wc_payment_methods > li > label img { float: none !important; width: auto; max-width: 64px; max-height: 24px; margin: 0; }
body.hl-checkout #order_review ul.wc_payment_methods > li > label img:first-of-type { margin-left: auto; }
body.hl-checkout #order_review ul.wc_payment_methods > li > label a { font-weight: 400; font-size: .75rem; color: var(--hl-muted); }
body.hl-checkout #order_review ul.wc_payment_methods .payment_box {
  margin: 0 16px 16px 48px !important; padding: 12px 14px !important; box-sizing: border-box;
  background: var(--hl-band) !important; color: var(--hl-ink); border: 1px solid var(--hl-line); border-radius: 12px;
  font-size: .875rem; line-height: 1.5;
}
html.dark-mode body.hl-checkout #order_review ul.wc_payment_methods .payment_box { background: #18212c !important; padding-bottom: 12px; }
body.hl-checkout #order_review ul.wc_payment_methods .payment_box::before { display: none; }
body.hl-checkout #order_review ul.wc_payment_methods .payment_box p { margin: 0 0 .5em; color: var(--hl-ink); }
body.hl-checkout #order_review ul.wc_payment_methods .payment_box p:last-child { margin-bottom: 0; }
body.hl-checkout #order_review ul.wc_payment_methods > li:not(:has(> input[type="radio"]:checked)) > .payment_box { display: none !important; }
body.hl-checkout #order_review ul.wc_payment_methods > li:has(> input[type="radio"]:checked) > .payment_box { display: block !important; }
body.hl-checkout #order_review ul.wc_payment_methods .payment_box fieldset { margin: 0; padding: 0; border: 0; background: transparent !important; }
body.hl-checkout #order_review ul.wc_payment_methods .payment_box :is(.ppc-button-wrapper, [id^="ppc-button"]) { min-width: 0; }

/* Bestell-Abschluss: Germanized-Checkboxen (Texte unveraendert) + grosse Pille */
body.hl-checkout :is(.place-order, #order_submit, .wc-gzd-order-submit) { margin: 0; padding: 0; background: transparent; }
body.hl-checkout :is(.place-order, #order_submit) p.form-row { margin: 0 0 12px; }
body.hl-checkout :is(.place-order, #order_submit) label.checkbox,
body.hl-checkout :is(.place-order, #order_submit) label.woocommerce-form__label-for-checkbox {
  display: block; position: relative; margin: 0; padding-left: 32px; font-size: .8125rem; font-weight: 400; line-height: 1.5; color: var(--hl-ink); cursor: pointer;
}
body.hl-checkout :is(.place-order, #order_submit) label.checkbox input[type="checkbox"] { position: absolute; left: 0; top: 0; }
body.hl-checkout :is(.place-order, #order_submit) a { color: var(--hl-green-ink); text-decoration: underline; text-underline-offset: 2px; }
body.hl-checkout .woocommerce-privacy-policy-text,
body.hl-checkout .woocommerce-terms-and-conditions-wrapper { font-size: .8125rem; line-height: 1.5; color: var(--hl-muted); }
body.hl-checkout #place_order { margin-top: 8px; }

/* Desktop-Layout Kasse: links ca. 60 %, rechts ca. 40 % (sticky) */
@media (min-width: 992px) {
  body.hl-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: 32px; align-items: start; }
  body.hl-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
  body.hl-checkout form.checkout > #customer_details { grid-column: 1; min-width: 0; }
  body.hl-checkout form.checkout > #order_review { grid-column: 2; position: sticky; top: 96px; min-width: 0; }
  /* Ueberschrift als Geschwister von #order_review: als eigene Zeile ueber der Karte */
  body.hl-checkout form.checkout:has(> #order_review_heading) > #customer_details { grid-row: 1 / span 2; }
  body.hl-checkout form.checkout > #order_review_heading { grid-column: 2; grid-row: 1; margin: 0 0 12px; font-size: 1.25rem; }
  body.hl-checkout form.checkout:has(> #order_review_heading) > #order_review { grid-row: 2; }
}
@media (max-width: 991.98px) {
  body.hl-checkout #order_review { margin-top: 24px; }
}
@media (max-width: 599.98px) {
  body.hl-checkout :is(.woocommerce-billing-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields) { padding: 18px 16px; }
  body.hl-checkout :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper) { grid-template-columns: 1fr; }
  body.hl-checkout .form-row.form-row-first, body.hl-checkout .form-row.form-row-last { grid-column: 1 / -1; }
  body.hl-checkout #order_review { padding: 18px 16px; }
  body.hl-checkout #order_review ul.wc_payment_methods .payment_box { margin-left: 16px; }
}
/* ======================= MEIN KONTO (nur Breite + dezente Karten) ======================= */
body.woocommerce-account .u-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
body.woocommerce-account .u-columns::before, body.woocommerce-account .u-columns::after { display: none; }
body.woocommerce-account .u-columns > .u-column1, body.woocommerce-account .u-columns > .u-column2 { float: none; width: auto; }
body.woocommerce-account :is(.woocommerce-form-login, .woocommerce-form-register) { margin: 0; padding: 24px; background: var(--hl-card); border: 1px solid var(--hl-line); border-radius: 16px; }
body.woocommerce-account .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; }
body.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; color: var(--hl-ink); font-weight: 500; text-decoration: none;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--hl-tint); }
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--hl-pill); color: #fff; }
@media (max-width: 767.98px) { body.woocommerce-account .u-columns { grid-template-columns: 1fr; } }

/* ---------- Korrekturen nach Live-Prüfung (Kasse/Warenkorb) ---------- */
@media (min-width: 900px) {
  /* Lücke unter „Deine Bestellung“: Zusatzhöhe der linken Spalte in die zweite Zeile legen */
  body.hl-checkout form.checkout { grid-template-rows: auto minmax(0, 1fr); }
  body.hl-checkout form.checkout > #order_review_heading { align-self: end; }
  body.hl-checkout form.checkout > #order_review { grid-row: 2; align-self: start; }
}
/* Reihenfolge rechts: Übersicht → DHL-Wunschzustellung → Zahlungsarten → Zustimmungen → Bestellbutton */
body.hl-checkout #order_review > table.shop_table { order: 20; }
body.hl-checkout #order_review > .dhl-preferred-service-content { order: 25; margin-bottom: 18px; }
body.hl-checkout #order_review > .wc-gzd-checkbox-placeholder { order: 35; }
body.hl-checkout #order_review > .wc-gzd-checkbox-placeholder-legal { margin-top: 12px; }
body.hl-checkout #order_review > :is(.ppc-button-wrapper, [id^="ppc-button"]) { order: 45; }
/* Warenkorb: Spaltenköpfe nicht umbrechen */
body.hl-cart table.cart thead th { white-space: nowrap; }
body.hl-cart table.cart td.product-price,
body.hl-cart table.cart td.product-subtotal { white-space: nowrap; }


/* ---------- Korrekturen 2 nach Live-Prüfung ---------- */
/* Navbar: Navigation nie schmaler als ihre Links (keine Überlappung mit der Suche); volle Such-Pille erst ab 1680 px */
@media (min-width: 1024px) {
  .hl-nav { flex: 1 0 auto !important; min-width: max-content !important; }
  .hl-nav__link { white-space: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1239.98px) {
  .site-header { padding-left: 24px !important; padding-right: 24px !important; }
}
@media (min-width: 1360px) and (max-width: 1679.98px) {
  .hl-search__toggle { display: inline-flex !important; }
  .hl-search__panel {
    display: none !important; position: absolute !important; right: 0; top: calc(100% + 10px);
    width: min(340px, calc(100vw - 48px)) !important; padding: 8px !important;
    border: 1px solid var(--hl-card-border) !important; border-radius: 999px !important;
    background: var(--hl-card-bg) !important; box-shadow: var(--hl-card-shadow) !important;
  }
  .hl-search.is-open .hl-search__panel { display: block !important; }
  .site-header .hl-search .hl-search__panel .search-field,
  .site-header .hl-search .hl-search__panel .search-field:focus { width: 100% !important; }
}

/* Warenkorb: Gutschein links, „Warenkorb aktualisieren“ rechts – Zelle bleibt Tabellenzelle (kein flex auf td!) */
body.hl-cart table.cart td.actions .coupon { float: left !important; flex-wrap: nowrap; }
body.hl-cart table.cart td.actions .coupon .button { white-space: nowrap; }
body.hl-cart table.cart td.actions > .button[name="update_cart"] { float: right !important; white-space: nowrap; }
body.hl-cart table.cart td.product-name,
body.hl-cart table.cart td.product-name a { overflow-wrap: normal; word-break: normal; hyphens: auto; }
/* Unter 1200 px einspaltig: Positionen, dann Summe, dann Empfehlungen */
@media (min-width: 769px) and (max-width: 1199.98px) {
  body.hl-cart .cart-collaterals { display: flex; flex-direction: column; gap: 32px; margin-top: 24px; }
  body.hl-cart .cart-collaterals .cart_totals { order: 1; float: none; width: 100%; max-width: 560px; margin-left: auto; }
  body.hl-cart .cart-collaterals .cross-sells { order: 2; float: none; width: 100%; }
}
@media (max-width: 768px) {
  body.hl-cart .cart-collaterals { display: flex; flex-direction: column; gap: 24px; }
  body.hl-cart .cart-collaterals .cart_totals { order: 1; float: none; width: 100%; }
  body.hl-cart .cart-collaterals .cross-sells { order: 2; float: none; width: 100%; }
}

/* Kopf-Warenkorb: PayPal-Buttons über die volle Breite */
.site-header-cart .widget_shopping_cart p.woocommerce-mini-cart__buttons:has(#ppc-button-minicart) {
  display: block !important; grid-template-columns: none !important; padding-top: 0 !important;
}
.site-header-cart .widget_shopping_cart #ppc-button-minicart,
.site-header-cart .widget_shopping_cart #ppc-button-minicart > div,
.site-header-cart .widget_shopping_cart #ppc-button-minicart .paypal-buttons { display: block !important; width: 100% !important; max-width: none !important; }

/* Kopf-Warenkorb: „zzgl. Versandkosten“ gut lesbar (hell + dunkel) */
.site-header-cart .widget_shopping_cart :is(.hl-mc-shipping, .wc-gzd-total-mini-cart, .shipping-costs-cart-info) {
  display: block; margin: 0 !important; padding: 0 1rem .75rem !important; border: 0 !important;
  background: var(--hl-nav-hover-bg) !important; color: var(--hl-nav-muted) !important;
  font-size: .78rem; font-weight: 400; line-height: 1.35; text-align: left;
}
.site-header-cart .widget_shopping_cart :is(.hl-mc-shipping, .wc-gzd-total-mini-cart, .shipping-costs-cart-info) a { color: inherit !important; text-decoration: underline; }
/* Doppelung vermeiden, falls Germanized die Zeile ebenfalls ausgibt */
.site-header-cart .widget_shopping_cart:has(.hl-mc-shipping) :is(.wc-gzd-total-mini-cart, .shipping-costs-cart-info) { display: none !important; }

/* ---------- 18. Navbar: Kategorien-Dropdown ---------- */
.hl-nav__item--dd { position: relative; }
.hl-nav__dd-toggle { gap: 4px; margin: 0; border: 0; background: transparent; font-family: inherit; cursor: pointer; }
.hl-nav__dd-toggle svg { transition: transform .15s ease; }
.hl-nav__item--dd.is-open .hl-nav__dd-toggle svg { transform: rotate(180deg); }
.hl-nav__dd {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 1000;
  display: none; min-width: 260px; max-height: min(70vh, 560px); overflow: auto;
  padding: 10px; border: 1px solid var(--hl-card-border); border-radius: 16px;
  background: var(--hl-card-bg); box-shadow: var(--hl-card-shadow);
}
/* Brücke, damit das Menü beim Überfahren des Abstands nicht zuklappt */
.hl-nav__dd::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.hl-nav__item--dd.is-open .hl-nav__dd { display: block; }
@media (hover: hover) { .hl-nav__item--dd:hover .hl-nav__dd { display: block; } }
.hl-nav__dd-list, .hl-nav__dd-sub { margin: 0; padding: 0; list-style: none; }
.hl-nav__dd-list li { margin: 0; }
.hl-nav__dd a {
  display: block; padding: 8px 12px; border-radius: 10px; font-size: .875rem; line-height: 1.3;
  color: var(--hl-nav-text) !important; text-decoration: none !important; white-space: nowrap;
}
.hl-nav__dd a:hover, .hl-nav__dd a:focus-visible { background: var(--hl-nav-hover-bg); color: var(--hl-nav-accent) !important; }
.hl-nav__dd a[aria-current="page"] { color: var(--hl-nav-accent) !important; }
.hl-nav__dd .hl-nav__dd-top { font-weight: 700; }
.hl-nav__dd .hl-nav__dd-sub a { padding-left: 24px; font-weight: 500; color: var(--hl-nav-muted) !important; }
.hl-nav__dd .hl-nav__dd-all { border-bottom: 1px solid var(--hl-nav-line); margin-bottom: 6px; padding-bottom: 6px; }
.hl-nav__dd .hl-nav__dd-all a { font-weight: 700; color: var(--hl-green-ink) !important; }
/* Handy-Menü: Unterkategorien eingerückt */
.handheld-navigation .hl-nav-sub2 > a { padding-left: 2.2em !important; font-size: .92em; opacity: .85; }
/* Bis 1439 px: Gravur/Gwanda stecken bereits im Kategorien-Dropdown, damit die Kopfzeile nicht überläuft */
@media (min-width: 1024px) and (max-width: 1439.98px) {
  .hl-nav__list > li:has(> .hl-nav__link[href*="/gravur/"]),
  .hl-nav__list > li:has(> .hl-nav__link[href*="/shop/"]) { display: none; }
}
@media (min-width: 1024px) and (max-width: 1239.98px) {
  .site-header { column-gap: 8px !important; }
}

/* ---------- 19. Einzelprodukt-Layout ---------- */
body.hl-single .content-area { width: 100% !important; float: none !important; margin-right: 0 !important; }
body.hl-single div.product { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 48px; row-gap: 28px; align-items: start; }
body.hl-single div.product::before, body.hl-single div.product::after { display: none; }
body.hl-single div.product > * { float: none !important; width: auto !important; margin-left: 0; margin-right: 0; min-width: 0; }
body.hl-single div.product > .woocommerce-tabs,
body.hl-single div.product > .related,
body.hl-single div.product > .upsells { grid-column: 1 / -1; }

/* Ohne Designer: Produktbild groß und mittig, Angaben darunter */
body.hl-no-designer div.product > .woocommerce-product-gallery { justify-self: center; width: 100% !important; max-width: 760px; margin: 0 auto !important; }
body.hl-no-designer div.product > .woocommerce-product-gallery .flex-control-thumbs { display: flex; justify-content: center; gap: 8px; }
body.hl-no-designer div.product > .woocommerce-product-gallery .flex-control-thumbs li { width: 72px !important; float: none !important; margin: 0 !important; }
body.hl-no-designer div.product > .summary { justify-self: center; width: 100% !important; max-width: 760px; }
body.hl-no-designer div.product > .onsale { position: absolute; }

/* Mit HL Designer: Gestalter oben, darunter Beispielbild („So könnte es aussehen“) + Kaufbereich */
.hl-designer-top { grid-area: designer; margin: 0; }
.hl-designer-top__title { margin: 0 0 14px; font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 700; letter-spacing: -.01em; }
.hl-designer-top__next { margin: 12px 0 0; font-size: .85rem; color: var(--hl-muted); }
.hl-gallery-caption { grid-area: caption; margin: 0 0 -16px; font-size: .875rem; font-weight: 600; color: var(--hl-muted); }
body.hl-has-designer div.product { grid-template-areas: "designer" "summary" "caption" "gallery"; }
body.hl-has-designer div.product > .summary { grid-area: summary; }
body.hl-has-designer div.product > .woocommerce-product-gallery { grid-area: gallery; max-width: 520px; }
body.hl-has-designer div.product > .woocommerce-tabs,
body.hl-has-designer div.product > .related,
body.hl-has-designer div.product > .upsells { grid-area: auto; grid-column: 1 / -1; }
@media (min-width: 900px) {
  body.hl-has-designer div.product {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: auto auto auto 1fr; /* Höhe der Kaufspalte landet in der letzten Zeile, nicht zwischen Überschrift und Bild */
    grid-template-areas: "designer designer" "caption summary" "gallery summary" ". summary";
  }
  body.hl-has-designer div.product > .summary { align-self: start; }
}
/* FPD-Knopf sicherheitshalber ausblenden, wenn der HL Designer aktiv ist */
body.hl-has-designer #fpd-start-customizing-button,
body.hl-has-designer .fpd-product-designer-wrapper { display: none !important; }
body.hl-single div.product > .woocommerce-product-gallery .woocommerce-product-gallery__image > a > img.wp-post-image,
body.hl-single div.product > .woocommerce-product-gallery .woocommerce-product-gallery__image > a > img:not(.zoomImg) {
  display: block; width: 100%; height: auto; max-height: 75vh; object-fit: contain;
}

/* ---------- Warenkorb: Gutschein + „Warenkorb aktualisieren“ (Korrektur 3) ---------- */
/* Gutscheinblock schrumpft mit, damit der Button rechts daneben Platz hat und nie in die nächste Zeile rutscht */
@media (min-width: 769px) {
  body.hl-cart table.cart td.actions .coupon { width: calc(100% - 270px) !important; max-width: 520px; }
  body.hl-cart table.cart td.actions .coupon .input-text { flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; }
  body.hl-cart table.cart td.actions .coupon .button { flex: none !important; }
  body.hl-cart table.cart td.actions > .button[name="update_cart"] { width: 250px; max-width: 250px; }
}

/* ---------- 20. Abholung oder Versand ---------- */
.hl-ship-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 10px; }
.hl-ship-choice .hl-ship-choice__opt {
  display: flex !important; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 64px; margin: 0;
  padding: 10px 14px !important; border-radius: 12px !important; text-align: left; cursor: pointer;
  border: 1px solid var(--hl-edge) !important; background: transparent !important; color: var(--hl-ink) !important; box-shadow: none !important;
  font: inherit; line-height: 1.25;
}
.hl-ship-choice .hl-ship-choice__opt:hover { background: var(--hl-tint) !important; }
.hl-ship-choice .hl-ship-choice__opt[aria-checked="true"] { border: 2px solid var(--hl-accent) !important; background: var(--hl-tint) !important; padding: 9px 13px !important; }
html.dark-mode .hl-ship-choice .hl-ship-choice__opt[aria-checked="true"] { border-color: var(--hl-green-ink) !important; }
.hl-ship-choice__title { font-weight: 700; font-size: .95rem; }
.hl-ship-choice__price { font-size: .82rem; color: var(--hl-muted); }
.hl-ship-hint { margin: 0 0 8px; font-size: .82rem; color: var(--hl-muted); }
ul#shipping_method.hl-ship-list--empty { margin: 0 !important; }
ul#shipping_method li[hidden] { display: none !important; }
/* Versand-Zeile in der Summentabelle: Auswahl über die volle Breite */
body.hl-cart .cart_totals tr.woocommerce-shipping-totals td,
body.hl-checkout tr.woocommerce-shipping-totals td { min-width: 220px; }
