/* ==== fix-start.css ==== */
/* Fix-Stylesheet Gruppe start (Startseite) – 22.10.2026, lokaler Build.
   Lädt nach mobile.css; alle Selektoren auf body.home begrenzt. */

@media (max-width: 768px) {
  /* 22.10.2026 start-08: Mobil-Hero – Titel → Bild → Preis → Haupt-CTA im ersten Viewport;
     Farbpunkte, Beschreibung und USP folgen darunter (mobile.css P15 ordnete die Beschreibung vor das Bild). */
  html body.home:not(#a):not(#b) .bw-hero__showcase { order: 3 !important; margin: 0 auto 1.4rem !important; }
  html body.home:not(#a):not(#b) .bw-hero__price { order: 4 !important; margin-bottom: 1rem !important; }
  html body.home:not(#a):not(#b) .bw-hero__actions { order: 5 !important; margin-bottom: 1.25rem !important; }
  html body.home:not(#a):not(#b) .bw-hero__colors { order: 6 !important; margin-bottom: 1.25rem !important; }
  html body.home:not(#a):not(#b) .bw-hero__desc { order: 7 !important; }
  html body.home:not(#a):not(#b) .bw-hero__usp { order: 8 !important; }
  html body.home:not(#a):not(#b) .bw-hero__title { margin-bottom: 1rem !important; }

  /* 22.10.2026 start-14: Farbpunkte sind jetzt Links – die globale 44-px-Mindestgröße für a (mobile.css) bläht sie
     sonst zu 44-px-Kreisen auf; Trefferfläche kommt über ::after (34 px) */
  html body.home .bw-hero__colors a.bw-hero__dot { min-width: 22px !important; min-height: 22px !important; }

  /* 22.10.2026 start-10: Trust-Bar als 2×2-Raster statt verstecktem Wisch-Scroller */
  html body.home .bw-trust-bar__track {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
    padding: 0 16px !important;
  }
  html body.home .bw-trust-bar__item {
    min-width: 0;
    white-space: normal !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    line-height: 1.3 !important;
  }
  html body.home .bw-trust-bar__icon { width: 20px; height: 20px; }
  html body.home .bw-trust-bar { padding: 20px 0 !important; }
}
@media (min-width: 768px) and (max-width: 899px) {
  /* 22.10.2026 start-10: 768–899 px (ohne Pillen aus mobile.css, eine Zeile passt erst ab ~880 px) – 2×2 kompakt zentriert statt 3+1 */
  html body.home .bw-trust-bar__track {
    display: grid !important;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    gap: 14px 48px !important;
  }
}

@media (max-width: 767px) {
  /* 22.10.2026 start-11: Karten-Mikrotypografie ≥ 12 px, CTA mit 44-px-Tippziel (mobile.css: 13 px / 11 px / 38 px) */
  html body.home .bw-ts-card .bw-ts-card__name { font-size: 14px !important; }
  html body.home .bw-ts-card .bw-ts-card__brand { font-size: 12px !important; }
  html body.home .bw-ts-card .bw-btn,
  html body.home .bw-ts-card a[class*="btn"] {
    min-height: 44px !important;
    font-size: 13px !important;
  }
}
/* ==== fix-sortiment.css ==== */
/* ═══════════════════════════════════════════════════════════════════
   Fix-Datei Gruppe sortiment (Überarbeitung 22.10.2026, lokaler Build)
   Lädt nach mobile.css auf allen Seiten. Selektoren auf die Sortiment-
   Seiten begrenzt (body.woocommerce-page.archive = Shop, Kategorie, Suche)
   bzw. auf Klassen, die nur pdp-polish.php (Kartencode) ausgibt.
   ═══════════════════════════════════════════════════════════════════ */

/* ── 22.10.2026 sortiment-05: Code-Zeile der Produktkarten ──
   Desktop/Tablet: eine Zeile „Code · Ausführung“ (wie bisher, Ellipse).
   Schmale Phones (2 Spalten à ~150 px): Code und Ausführung je eine
   eigene Zeile, damit die Farbe (das Unterscheidungsmerkmal) sichtbar
   bleibt; zwei Zeilen reserviert → Preise/Buttons bleiben auf einer Linie. */
@media (max-width: 640px) {
  html body ul.products li.product span.bw-card-code {
    white-space: normal !important;
    text-overflow: clip !important;
    line-height: 1.3 !important;
    min-height: 2.6em !important;
    letter-spacing: 0.02em !important; /* „Aluminium Black“ passt so auch bei 320 px ungekürzt */
  }
  html body ul.products li.product span.bw-card-code > .bw-card-code__part {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  html body ul.products li.product span.bw-card-code > .bw-card-code__sep {
    display: none;
  }
  /* Code-Zeile bündig mit Marke/Name/Preis (16 px statt 12 px Einzug) */
  html body.woocommerce-page.archive ul.products li.product span.bw-card-code {
    padding: 0 16px !important;
  }
}

/* ── 22.10.2026 sortiment-05: einheitliche weiße Bildbühne der Karten auch mobil
   (mobile.css P16 setzt Creme #e8e0d3 – die weißen JPG-Fotos standen darin als Rechteck,
   bei Querformaten mit Creme-Balken). Gleiche Bühne wie „Ähnliche Produkte“ (produkt-10). */
@media (max-width: 768px) {
  html body.woocommerce-page.archive:not(#a):not(#b):not(#c) ul.products li.product img.attachment-woocommerce_thumbnail {
    background: #ffffff !important;
  }
}

/* ── Sortiment-Seiten bis 900 px (Sidebar steht über dem Raster, siehe archive-product.php) ── */
@media (max-width: 900px) {
  /* 22.10.2026 sortiment-19: Toolbar bündig mit Chips/Karten (vorher doppelt 16 px eingerückt),
     Zähler einzeilig, Filter + Sortierung als eine Zeile über die volle Breite */
  html body.woocommerce-page.archive .bw-shop-toolbar {
    padding: 14px 0 0 !important;
    margin: 0 !important;
    border-bottom: none !important;
  }
  html body.woocommerce-page.archive .bw-shop-toolbar__inner {
    gap: 12px !important;
  }
  html body.woocommerce-page.archive .bw-shop-toolbar__count {
    flex: 1 1 100% !important;
  }
  html body.woocommerce-page.archive .bw-shop-toolbar__count .woocommerce-result-count {
    font-size: 11.5px !important;
    letter-spacing: 0.04em !important;
    line-height: 1.4 !important;
  }
  html body.woocommerce-page.archive .bw-shop-toolbar__actions {
    display: flex !important;
    width: 100% !important;
    margin-left: 0 !important;
    gap: 10px !important;
  }
  html body.woocommerce-page.archive .bw-shop-toolbar__sort {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  html body.woocommerce-page.archive .bw-shop-toolbar__sort .woocommerce-ordering,
  html body.woocommerce-page.archive .bw-shop-toolbar__sort select {
    width: 100% !important;
    max-width: none !important;
  }
  html body.woocommerce-page.archive .bw-shop-toolbar__sort select {
    font-size: 16px !important; /* kein iOS-Zoom beim Antippen */
  }
  html body.woocommerce-page.archive .bw-shop-toolbar__filters {
    order: 2 !important;
  }

  /* 22.10.2026 sortiment-09: Abstände Toolbar → Suche → Chips → Raster gestrafft */
  html body.woocommerce-page.archive .bw-section--shop {
    padding-top: 16px !important;
  }
  html body.woocommerce-page.archive .bw-shop-layout {
    gap: 16px !important;
  }
  html body.woocommerce-page.archive .bw-shop-layout > aside.bw-shop-sidebar {
    margin: 0 !important;
  }
  html body.woocommerce-page.archive .bw-products-grid {
    padding-top: 0 !important;
  }

  /* 22.10.2026 sortiment-07: Suchfeld 16 px (kein iOS-Zoom) und bündig mit Chips/Karten */
  html body.woocommerce-page.archive #bw-search {
    margin: 0 0 12px !important;
  }
  html body.woocommerce-page.archive #bw-search .bw-search__input {
    font-size: 16px !important;
    width: 100% !important;
    margin: 0 !important;
  }
}

/* ==== fix-produkt.css ==== */
/* Fix-Stylesheet Gruppe produkt (Überarbeitung 22.10.2026, lokaler Build). Lädt nach mobile.css auf allen Seiten;
   alle Regeln sind auf body.single-product begrenzt. Spezifität mit :not(#a):not(#b) nur dort, wo mobile.css
   (ID-Boost) bzw. Inline-Styles im Footer (checkout-cro.php, pdp-polish.php) sonst gewinnen. */

/* 22.10.2026 produkt-05: Spezifikationstabelle der Beschreibung auf schmalen Handys als Liste (Label über Wert,
   wie der Technik-Tab). Vorher wuchs die Label-Spalte durch „GETRÄNKESPEZIALITÄTEN“ auf ~60 % und die Werte
   brachen mitten im Wort („Kaffeevollaut/omat“, „Milchschlauc/h“). */
@media (max-width: 560px) {
  html body.single-product .bw-sp-tabs #tab-description table,
  html body.single-product .bw-sp-tabs #tab-description table tbody,
  html body.single-product .bw-sp-tabs #tab-description table tr,
  html body.single-product .bw-sp-tabs #tab-description table th,
  html body.single-product .bw-sp-tabs #tab-description table td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  html body.single-product .bw-sp-tabs #tab-description table tr {
    padding: 11px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  }
  html body.single-product .bw-sp-tabs #tab-description table tr:last-child {
    border-bottom: 0 !important;
  }
  html body.single-product .bw-sp-tabs #tab-description table th {
    padding: 0 0 3px !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.55) !important;
    line-height: 1.4 !important;
  }
  html body.single-product .bw-sp-tabs #tab-description table td {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
}

/* 22.10.2026 produkt-06 (Folge): ohne Rezensionen-Tab stehen mobil nur zwei Tabs – gleichmäßig halbe Breite
   statt „Beschreibung“ links und „Technik“ an den rechten Rand gedrückt (space-between aus pdp-polish.php,
   flex 0 0 auto aus mobile.css P18). */
@media (max-width: 480px) {
  html body.single-product:not(#a):not(#b) .bw-sp-tabs .woocommerce-tabs ul.tabs.wc-tabs:not(:has(> li:nth-child(3))) > li {
    flex: 1 1 0 !important;
  }
}

/* 22.10.2026 produkt-09 + produkt-21: Kauf-Reihe mobil – Stepper in voller Breite (40 + 40 + 40 px, vorher
   per clamp() gekappt, „+“ 6–16 px abgeschnitten), CTA einzeilig. Passt die Reihe nicht (< 375 px), rutscht der
   Button ganz in die nächste Zeile statt umzubrechen. */
@media (max-width: 768px) {
  html body.single-product:not(#a):not(#b) .bw-sp-cart-form form.cart .quantity {
    width: auto !important;
    flex: 0 0 auto !important;
  }
  html body.single-product:not(#a):not(#b) .bw-sp-cart-form form.cart .quantity input.qty {
    width: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
  }
  html body.single-product:not(#a):not(#b) .bw-sp-cart-form form.cart button.single_add_to_cart_button {
    flex: 1 1 auto !important;
    min-height: 52px !important;
    white-space: nowrap !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* 22.10.2026 produkt-10: Ähnliche Produkte mobil auf weißer Bildbühne wie im Shop (vorher Creme #e8e0d3,
   Desktop #f4f4f4 → drei verschiedene Bühnen). Freigestellte -nobg-Bilder bleiben frei auf Dunkel. */
@media (max-width: 768px) {
  html body.single-product:not(#a):not(#b):not(#c) .related li.product a.woocommerce-loop-product__link:not(:has(img[src*="-nobg"]))::before {
    background: #ffffff !important;
  }
  html body.single-product:not(#a):not(#b):not(#c) .related li.product a.woocommerce-loop-product__link:not(:has(img[src*="-nobg"])) img {
    background: #ffffff !important;
  }
}

/* 23.10.2026 Nachtrag: Leerraum vor „Ähnliche Produkte“ (190 px) – WooCommerce-Abstand innerhalb von .bw-sp-related doppelt */
body.single-product .bw-sp-related .related.products {
	margin-top: 0 !important;
	padding-top: 0 !important;
	border-top: 0 !important;
}
body.single-product .bw-sp-related {
	padding-top: 40px !important;
}

/* ==== fix-kaufen.css ==== */
/* Fix-Datei Gruppe kaufen (Überarbeitung 22.10.2026, lokaler Build) – lädt nach mobile.css.
   Nur Konto, Kasse, Warenkorb und Hinweise des Kaufpfads; Selektoren auf diese Seiten begrenzt. */

/* ── 22.10.2026 kaufen-07 + inhalt-02: „Passwort anzeigen"-Knopf war ein leerer grauer Kasten (WooCommerce 10.6 liefert
      dafür kein CSS mehr, mobile.css zwingt Buttons auf 44 px) → Augen-Symbol im Feld rechts, mit Fokusring. ── */
body.woocommerce-account .woocommerce form .password-input,
body.woocommerce-checkout .woocommerce form .password-input {
  position: relative;
  display: block;
}
html body.woocommerce-account .woocommerce form .password-input input.input-text,
html body.woocommerce-checkout .woocommerce form .password-input input.input-text {
  padding-right: 52px !important;
}
html body.woocommerce-account .woocommerce form .password-input button.show-password-input,
html body.woocommerce-checkout .woocommerce form .password-input button.show-password-input {
  position: absolute !important;
  top: 50% !important;
  right: 6px !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(244, 244, 245, 0.62) !important;
  cursor: pointer;
}
html body.woocommerce-account .woocommerce form .password-input button.show-password-input::after,
html body.woocommerce-checkout .woocommerce form .password-input button.show-password-input::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body.woocommerce-account .woocommerce form .password-input button.show-password-input.display-password::after,
html body.woocommerce-checkout .woocommerce form .password-input button.show-password-input.display-password::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 19c-6.5 0-10-7-10-7a18.5 18.5 0 0 1 5.06-5.94'/%3E%3Cpath d='M9.9 4.24A9.12 9.12 0 0 1 12 4c6.5 0 10 7 10 7a18.5 18.5 0 0 1-2.16 3.19'/%3E%3Cpath d='M14.12 14.12a3 3 0 1 1-4.24-4.24'/%3E%3Cpath d='m1 1 22 22'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 19c-6.5 0-10-7-10-7a18.5 18.5 0 0 1 5.06-5.94'/%3E%3Cpath d='M9.9 4.24A9.12 9.12 0 0 1 12 4c6.5 0 10 7 10 7a18.5 18.5 0 0 1-2.16 3.19'/%3E%3Cpath d='M14.12 14.12a3 3 0 1 1-4.24-4.24'/%3E%3Cpath d='m1 1 22 22'/%3E%3C/svg%3E");
}
html body.woocommerce-account .woocommerce form .password-input button.show-password-input:hover,
html body.woocommerce-checkout .woocommerce form .password-input button.show-password-input:hover {
  color: #d4a27a !important;
}
html body.woocommerce-account .woocommerce form .password-input button.show-password-input:focus-visible,
html body.woocommerce-checkout .woocommerce form .password-input button.show-password-input:focus-visible {
  outline: 2px solid #d4a27a !important;
  outline-offset: 0 !important;
}

/* „Angemeldet bleiben": 13-px-Checkbox → 20 px im Kupferton, ganze Zeile als Tippziel; „Passwort vergessen?" in eigener Zeile */
html body.woocommerce-account .woocommerce-form-login .woocommerce-form-login__rememberme {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 44px;
  margin: 0 0 12px !important;
  cursor: pointer;
}
html body.woocommerce-account .woocommerce-form-login input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  margin: 0 !important;
  accent-color: #c8956c;
  cursor: pointer;
}
html body.woocommerce-account .woocommerce-form-login .woocommerce-LostPassword {
  float: none !important;
  clear: both !important;
  display: block !important;
  margin: 0 !important;
  padding-top: 16px !important;
}

/* ── 22.10.2026 kaufen-11: Bundesland für DE ist ein verstecktes Feld (inc/fix-kaufen.php); mobile.css zwingt alle
      Formularzeilen auf display:block !important und hob WooCommerces display:none auf → Zeile mit verstecktem Feld ausblenden. ── */
html body.woocommerce-checkout form.checkout .woocommerce-billing-fields__field-wrapper p.form-row:has(input[type="hidden"][name$="_state"]),
html body.woocommerce-checkout form.checkout .woocommerce-shipping-fields__field-wrapper p.form-row:has(input[type="hidden"][name$="_state"]) {
  display: none !important;
}

/* ── 22.10.2026 kaufen-08: Datenschutzhinweis vor „Zahlungspflichtig bestellen" (checkout.css blendet ihn nicht mehr aus);
      eine Eltern-Regel färbt ihn #666 (Kontrast ≈3,3:1 auf der Karte) → dezent, aber lesbar. ── */
html body.woocommerce-checkout #payment .woocommerce-privacy-policy-text,
html body.woocommerce-checkout #payment .woocommerce-privacy-policy-text p {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}
html body.woocommerce-checkout #payment .woocommerce-privacy-policy-text a {
  color: #d4a27a !important;
}

/* ── 22.10.2026 kaufen-05: Fallback ohne JS – Häkchen des Woo-Hinweises lag über dem ersten Zeichen
      (Eltern style.css setzt padding-left 1.5rem, das Icon steht absolut bei 1.5em) → Platz fürs Icon. ── */
body.single-product .woocommerce-notices-wrapper .woocommerce-message,
body.post-type-archive-product .woocommerce-notices-wrapper .woocommerce-message,
body.tax-product_cat .woocommerce-notices-wrapper .woocommerce-message {
  padding-left: 3.5em !important;
}
body.single-product .woocommerce-notices-wrapper .woocommerce-message .button,
body.post-type-archive-product .woocommerce-notices-wrapper .woocommerce-message .button,
body.tax-product_cat .woocommerce-notices-wrapper .woocommerce-message .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ==== fix-inhalt.css ==== */

/* 23.10.2026 Nachtrag: Hero-Überschrift Über uns mobil immer zweizeilig, damit der Schriftwechsel (Ersatzschrift → Playfair) die Höhe nicht ändert (Lighthouse CLS 0,21) */
@media (max-width: 767px) {
	body.page-template-page-ueber-uns .bw-uu-hero__title em,
	.bw-uu-hero .bw-uu-hero__title em {
		display: block;
	}
}

