/*
Theme Name: eRepairShop Storefront
Description: Eigenes WooCommerce-Child-Theme im eRepairShop Werkstattstil.
Author: eRepairShop
Template: storefront
Version: 1.5.0
Text Domain: erepairshop-storefront
*/

:root {
  --ers-paper: #ffffff;
  --ers-paper-light: #ffffff;
  --ers-ink: #171918;
  --ers-muted: #62665f;
  --ers-line: #c9c6bb;
  --ers-blue: #165ddb;
  --ers-orange: #ef5b36;
  --ers-green: #198754;
}

html { scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  color: var(--ers-ink);
  background: var(--ers-paper);
  font-family: "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background-image: none;
  background-size: 24px 24px;
}
h1, h2, h3, h4, h5, h6, .site-title, .button, button, input[type="submit"] {
  font-family: "Arial Narrow", "Bahnschrift SemiCondensed", "Segoe UI", sans-serif;
  letter-spacing: -.02em;
}
a { color: var(--ers-blue); }
a:focus, button:focus, input:focus, select:focus, textarea:focus { outline: 2px solid var(--ers-orange); outline-offset: 2px; }

.ers-trustbar {
  padding: .55rem 1rem;
  color: #fff;
  background: var(--ers-ink);
  text-align: center;
  font: 700 .75rem/1.4 Consolas, monospace;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.ers-trustbar span + span::before { content: " / "; color: var(--ers-orange); padding: 0 .65rem; }
.site-header {
  position: relative;
  margin-bottom: 0;
  padding: 1rem 0 0;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--ers-ink);
}
.home.page:not(.page-template-template-homepage) .site-header,
.home.post-type-archive-product .site-header,
.no-wc-breadcrumb .site-header { margin-bottom: 0 !important; }
.site-header .site-branding { width: 48%; margin-bottom: 1rem; }
.site-header .site-branding .custom-logo-link img,
.site-header .site-branding .custom-logo { width: 380px !important; height: auto !important; max-width: 100% !important; max-height: 86px !important; object-fit: contain; object-position: left center; border: 0; box-shadow: none; }
.site-title a { color: var(--ers-ink); font-size: 1.55rem; font-weight: 800; }
.site-description { color: var(--ers-muted); font: 600 .68rem/1.3 Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.storefront-primary-navigation { background: transparent; border-top: 1px solid var(--ers-line); }
.main-navigation ul.menu > li > a, .main-navigation ul.nav-menu > li > a { padding-left: .72rem; padding-right: .72rem; color: var(--ers-ink); font-size: .92rem; font-weight: 700; }
.site-header-cart .cart-contents {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  min-height: 48px;
  margin: .55rem 0;
  padding: .5rem .65rem;
  box-sizing: border-box;
  color: var(--ers-ink);
  background: var(--ers-paper-light);
  border: 1px solid var(--ers-line);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(23,25,24,.08);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.site-header-cart .cart-contents:hover,
.site-header-cart .cart-contents:focus {
  color: var(--ers-ink);
  border-color: var(--ers-blue);
  box-shadow: 0 7px 20px rgba(22,93,219,.14);
  transform: translateY(-1px);
}
.site-header-cart .cart-contents::after { content: none !important; }
.ers-cart-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--ers-blue);
  border-radius: 10px;
}
.ers-cart-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ers-cart-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  place-items: center;
  box-sizing: border-box;
  color: #fff;
  background: var(--ers-orange);
  border: 2px solid var(--ers-paper-light);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 7px rgba(23,25,24,.28);
}
.ers-cart-badge.is-empty { display: none; }
.ers-cart-copy { display: flex; min-width: 0; flex-direction: column; line-height: 1.15; }
.ers-cart-label { font-size: .82rem; font-weight: 800; }
.site-header-cart .cart-contents .count { margin-top: .16rem; color: var(--ers-muted); font-size: .72rem; opacity: 1; white-space: nowrap; }
.ers-cart-total { font-size: .84rem; font-weight: 800; white-space: nowrap; }
.site-search .widget_product_search form::before { color: var(--ers-blue); }
input[type="search"], input[type="text"], input[type="email"], textarea, select {
  color: var(--ers-ink);
  background: var(--ers-paper-light);
  border: 1px solid var(--ers-line);
  border-radius: 0;
  box-shadow: none;
}

.ers-catalog-nav {
  position: relative;
  z-index: 90;
  color: var(--ers-ink);
  background: var(--ers-paper-light);
  border-bottom: 1px solid var(--ers-ink);
}
.ers-catalog-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 46px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.ers-catalog-tab,
.ers-catalog-section {
  flex: 0 0 auto;
  min-height: 46px;
  padding: .78rem .72rem;
  color: var(--ers-ink);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  box-shadow: none;
  font: 700 .82rem/1.2 "Segoe UI", Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.ers-catalog-tab:hover,
.ers-catalog-tab.is-active,
.ers-catalog-section:hover {
  color: var(--ers-blue);
  background: #f0eee7;
  border-bottom-color: var(--ers-orange);
  box-shadow: none;
  transform: none;
}
.ers-mega-panel {
  position: absolute;
  left: 50%;
  top: 100%;
  width: min(1240px, calc(100vw - 2rem));
  max-height: min(680px, calc(100vh - 150px));
  padding: 1.25rem 1.35rem 1.5rem;
  overflow: auto;
  color: var(--ers-ink);
  background: var(--ers-paper-light);
  border: 1px solid var(--ers-ink);
  box-shadow: 7px 7px 0 rgba(23,25,24,.85);
  transform: translateX(-50%);
}
.ers-mega-panel[hidden] { display: none !important; }
.ers-mega-head {
  display: grid;
  grid-template-columns: minmax(170px, .65fr) minmax(280px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ers-line);
}
.ers-mega-head strong { font-size: 1.15rem; }
.ers-mega-head label { margin: 0; }
.ers-mega-search { width: 100%; min-height: 42px; margin: 0; }
.ers-mega-close {
  min-width: 42px;
  min-height: 42px;
  padding: .35rem;
  color: var(--ers-ink);
  background: transparent;
  border: 1px solid var(--ers-line);
  box-shadow: none;
  font-size: 1.35rem;
}
.ers-mega-close:hover { color: #fff; background: var(--ers-orange); box-shadow: none; transform: none; }
.ers-mega-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 1.4rem;
  padding: 1.3rem 0 1rem;
}
.ers-mega-family-index {
  padding-right: 1rem;
  border-right: 1px solid var(--ers-line);
}
.ers-mega-family-index a {
  display: block;
  padding: .48rem .55rem;
  color: var(--ers-ink);
  font-size: .82rem;
  font-weight: 700;
}
.ers-mega-family-index a:hover { color: var(--ers-blue); background: #f0eee7; }
.ers-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 0;
}
.ers-mega-group-toggle {
  display: block;
  width: 100%;
  margin: 0 0 .7rem;
  padding: .4rem .65rem;
  color: var(--ers-ink);
  background: #ebe9e2;
  border: 0;
  border-left: 4px solid var(--ers-blue);
  border-radius: 0;
  box-shadow: none;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}
.ers-mega-group-toggle { display: flex; align-items: center; justify-content: space-between; }
.ers-mega-group-toggle small { color: var(--ers-green); font-size: .72rem; font-weight: 800; letter-spacing: 0; }
.ers-mega-group-toggle:hover {
  color: var(--ers-ink);
  background: #e3e0d7;
  box-shadow: none;
  transform: none;
}
.ers-mega-group ul { margin: 0; list-style: none; }
.ers-mega-group li { margin: 0; }
.ers-mega-group a {
  display: block;
  padding: .34rem .65rem;
  color: var(--ers-ink);
  font-size: .82rem;
  line-height: 1.3;
}
.ers-mega-group a:hover { color: var(--ers-blue); background: #f0eee7; }
.ers-mega-group .ers-mega-group-all {
  display: inline-block;
  min-height: 0;
  margin: .45rem .65rem 0;
  padding: 0;
  color: var(--ers-blue);
  background: transparent;
  border: 0;
  box-shadow: none;
  font: 800 .82rem/1.4 "Segoe UI", Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.ers-mega-group .ers-mega-group-all:hover { color: var(--ers-orange); background: transparent; box-shadow: none; transform: none; }
.ers-mega-category-all {
  display: inline-block;
  margin: .55rem .65rem 0;
  color: var(--ers-blue);
  font-size: .78rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.ers-mega-category-all:hover { color: var(--ers-orange); background: transparent; }
.ers-mega-panel:not(.is-searching) .ers-mega-group:not(.is-showing-all) li:nth-child(n+13) { display: none; }
.ers-other-intro { max-width: 760px; margin: 1rem 0 0; color: var(--ers-muted); font-size: .88rem; }
.ers-other-brand-search { width: 100%; min-height: 42px; margin: 0; }
.ers-other-brands { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem; margin-top: 1rem; }
.ers-other-brand-card {
  display: flex;
  min-height: 78px;
  margin: 0;
  padding: .8rem .9rem;
  flex-direction: column;
  justify-content: center;
  color: var(--ers-ink);
  background: #fff;
  border: 1px solid var(--ers-line);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(23, 24, 26, .06);
  font: inherit;
  text-align: left;
}
.ers-other-brand-card strong { font-size: .94rem; }
.ers-other-brand-card span { margin-top: .18rem; color: var(--ers-muted); font-size: .74rem; font-weight: 650; }
.ers-other-brand-card:hover,
.ers-other-brand-card.is-active { color: #fff; background: var(--ers-blue); border-color: var(--ers-blue); transform: translateY(-1px); }
.ers-other-brand-card:hover span,
.ers-other-brand-card.is-active span { color: rgba(255, 255, 255, .84); }
.ers-other-brand-empty { margin: 1rem 0; color: var(--ers-muted); }
.ers-other-brand-content { margin-top: 1.15rem; padding-top: 1.15rem; border-top: 1px solid var(--ers-line); }
.ers-other-brand-placeholder { display: flex; min-height: 92px; padding: 1rem; align-items: center; justify-content: center; flex-direction: column; color: var(--ers-muted); background: #fff; border: 1px dashed var(--ers-line); border-radius: 12px; text-align: center; }
.ers-other-brand-placeholder strong { color: var(--ers-ink); }
.ers-other-brand-placeholder span { margin-top: .25rem; font-size: .8rem; }
.ers-other-brand-placeholder.is-loading { border-color: var(--ers-blue); }
.ers-other-brand-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.ers-other-brand-heading strong { font-size: 1.05rem; }
.ers-other-brand-heading a { color: var(--ers-blue); font-size: .8rem; font-weight: 800; text-decoration: underline; text-underline-offset: .18em; }
.ers-other-category-grid { padding-top: 0; }
.ers-tool-categories { background: var(--ers-paper-light); }
.ers-mega-empty { margin: 1.2rem 0; color: var(--ers-muted); }
.ers-mega-all { display: inline-block; padding-top: .75rem; font-weight: 800; text-decoration: underline; text-underline-offset: .2em; }

.ers-product-types {
  clear: both;
  margin: 0 0 1.6rem;
  padding: 1rem 0 1.15rem;
  border-top: 1px solid var(--ers-ink);
  border-bottom: 1px solid var(--ers-line);
}
.search-results .woocommerce-products-header { display: none; }
.ers-product-types-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.ers-product-types-head strong { font-size: 1.05rem; }
.ers-product-types-head span { overflow: hidden; color: var(--ers-muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.ers-product-type-list { display: flex; gap: .55rem; overflow-x: auto; padding: 0 0 .25rem; scrollbar-width: thin; }
.ers-product-type-list a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .55rem;
  min-height: 40px;
  padding: .55rem .8rem;
  color: var(--ers-ink);
  background: var(--ers-paper-light);
  border: 1px solid var(--ers-line);
  font-size: .84rem;
  font-weight: 750;
  text-decoration: none;
}
.ers-product-type-list a:hover,
.ers-product-type-list a.is-active { color: #fff; background: var(--ers-blue); border-color: var(--ers-blue); }
.ers-product-type-list small { color: var(--ers-green); font-size: .72rem; font-weight: 800; }
.ers-product-type-list a:hover small,
.ers-product-type-list a.is-active small { color: #fff; }

.ers-home-hero {
  padding: clamp(2.75rem, 6vw, 4.75rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--ers-ink);
}
.ers-kicker { color: var(--ers-orange); font: 700 .72rem/1.2 Consolas, monospace; letter-spacing: .13em; text-transform: uppercase; }
.ers-home-hero h1 { max-width: 760px; margin: .7rem 0 1rem; font-size: clamp(2.4rem, 5.2vw, 4.8rem); line-height: .95; font-weight: 800; }
.ers-home-hero p { max-width: 680px; color: var(--ers-muted); font-size: 1.05rem; line-height: 1.55; }
.ers-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.7rem; }
.ers-button, .button, button, input[type="submit"], .added_to_cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .75rem 1.05rem;
  color: #fff;
  background: var(--ers-blue);
  border: 1px solid var(--ers-blue);
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--ers-ink);
  font-weight: 800;
}
.ers-button:hover, .button:hover, button:hover, input[type="submit"]:hover { color: #fff; background: #0d4ebf; transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ers-ink); }
.ers-button-secondary { color: var(--ers-ink); background: var(--ers-paper-light); border-color: var(--ers-ink); }
.ers-button-secondary:hover { color: var(--ers-ink); background: #e8e4da; }

.ers-section { padding: clamp(2.4rem, 5vw, 4rem) 0; }
.ers-section-head { margin-bottom: 2rem; padding-top: 1rem; border-top: 1px solid var(--ers-ink); }
.ers-section-head h2 { margin: .4rem 0 0; font-size: clamp(1.9rem, 4vw, 3.2rem); }
.ers-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--ers-ink); border: 1px solid var(--ers-ink); }
.ers-category-card { min-height: 220px; padding: 1.5rem; color: var(--ers-ink); background: var(--ers-paper-light); }
.ers-category-card:hover { color: #fff; background: var(--ers-blue); }
.ers-category-card small { color: var(--ers-orange); font: 700 .67rem/1 Consolas, monospace; letter-spacing: .1em; }
.ers-category-card h3 { margin: 3.5rem 0 .6rem; font-size: 1.8rem; }
.ers-category-card p { margin: 0; color: var(--ers-muted); }
.ers-category-card:hover p, .ers-category-card:hover small { color: #fff; }

.site-main ul.products li.product { padding-bottom: 1rem; background: var(--ers-paper-light); border: 1px solid var(--ers-line); }
.site-main ul.products li.product img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  margin-bottom: .75rem;
  padding: .55rem;
  object-fit: contain;
  box-sizing: border-box;
  background: #fff;
}
.site-main ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  min-height: 5.28em;
  max-height: 5.28em;
  margin: 0 .9rem .75rem;
  padding: .62rem .72rem;
  color: var(--ers-ink);
  background: linear-gradient(135deg, #fff 0%, #f1f5fc 100%);
  border-left: 4px solid var(--ers-blue);
  border-radius: 0 8px 8px 0;
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.32;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.site-main ul.products li.product .price {
  display: inline-flex;
  align-items: baseline;
  gap: .25rem;
  width: fit-content;
  margin: 0 .9rem .2rem;
  padding: .45rem .72rem;
  color: #fff;
  background: var(--ers-blue);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ers-ink);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1;
}
.site-main ul.products li.product .price small { color: #eaf1ff; font-weight: 700; }
.ers-catalog-section-soon {
  display: inline-flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: .18rem;
  color: var(--ers-muted);
  cursor: default;
}
.ers-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  color: var(--ers-orange);
  font: 800 .62rem/1 Consolas, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ers-coming-soon svg {
  width: 14px;
  height: 14px;
  fill: var(--ers-paper-light);
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.single-product div.product .summary .product_title {
  position: relative;
  margin-bottom: 1rem;
  padding: 0 0 .85rem 1rem;
  color: var(--ers-ink);
  border-bottom: 1px solid var(--ers-line);
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  font-weight: 850;
  line-height: 1.08;
}
.single-product div.product .summary .product_title::before {
  content: "";
  position: absolute;
  top: .08em;
  bottom: .85rem;
  left: 0;
  width: 5px;
  background: linear-gradient(var(--ers-blue), var(--ers-orange));
  border-radius: 5px;
}
.single-product div.product .summary > .price {
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  width: fit-content;
  margin: 0 0 1rem;
  padding: .72rem 1rem;
  color: #fff;
  background: var(--ers-blue);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ers-ink);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 850;
  line-height: 1;
}
.single-product div.product .summary > .price small { color: #eaf1ff; font-size: .7rem; font-weight: 700; }
.site-main ul.products li.product .button { margin-left: .9rem; margin-right: .9rem; }
.woocommerce-breadcrumb { color: var(--ers-muted); }
.single-product .woocommerce-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1.35rem;
  font-size: .86rem;
}
.single-product .woocommerce-breadcrumb .breadcrumb-separator { margin: 0; opacity: .45; }
.single-product .woocommerce-breadcrumb a:last-of-type {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .62rem .9rem;
  color: #fff;
  background: var(--ers-blue);
  border: 2px solid var(--ers-ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ers-ink);
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
}
.single-product .woocommerce-breadcrumb a:last-of-type:hover,
.single-product .woocommerce-breadcrumb a:last-of-type:focus-visible {
  color: #fff;
  background: #0755b8;
  transform: translate(-1px, -1px);
}
.woocommerce-message, .woocommerce-info { background: var(--ers-blue); border-left-color: var(--ers-orange); }
.woocommerce-error { background: #9f2d2d; }
.onsale { color: var(--ers-orange); border-color: var(--ers-orange); border-radius: 0; }
.product_meta { color: var(--ers-muted); font-size: .86rem; }
.ers-product-key-facts { margin: 1rem 0; padding: .85rem .95rem; background: #f0f5ff; border-left: 4px solid var(--ers-blue); }
.ers-product-key-facts h2 { margin: 0 0 .65rem; color: var(--ers-ink); font-size: .9rem; }
.ers-product-key-facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem .9rem; margin: 0; }
.ers-product-key-facts dl div { min-width: 0; }
.ers-product-key-facts dt { color: #5b635b; font-size: .7rem; font-weight: 750; }
.ers-product-key-facts dd { margin: .08rem 0 0; color: var(--ers-ink); font-size: .86rem; font-weight: 800; overflow-wrap: anywhere; }

/* Product quality guide and modern description surface. */
.single-product .woocommerce-tabs { margin-top: 2.5rem; }
.single-product .woocommerce-tabs ul.tabs {
  display: flex;
  float: none;
  width: 100%;
  margin: 0 0 1rem;
  gap: .4rem;
  overflow-x: auto;
  border: 0;
}
.single-product .woocommerce-tabs ul.tabs li { flex: 0 0 auto; border: 0; }
.single-product .woocommerce-tabs ul.tabs li::after { display: none; }
.single-product .woocommerce-tabs ul.tabs li a {
  padding: .7rem 1rem;
  background: rgba(255,255,255,.58);
  border: 1px solid var(--ers-line);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}
.single-product .woocommerce-tabs ul.tabs li.active a {
  color: #fff;
  background: var(--ers-ink);
  border-color: var(--ers-ink);
}
.single-product .woocommerce-tabs .panel {
  float: none;
  width: 100%;
  margin: 0;
}
.ers-quality-card,
.ers-description-card {
  margin: 0 0 1.35rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ers-ink);
  border-radius: 16px;
  box-shadow: 6px 6px 0 rgba(23,25,24,.95);
}
.ers-quality-card__head {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(125deg, #edf4ff 0%, #fff 58%, #fff2ed 100%);
  border-bottom: 1px solid var(--ers-line);
}
.ers-quality-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: .4rem .7rem;
  color: #fff;
  background: var(--ers-blue);
  border-radius: 999px;
  font: 800 .7rem/1 'IBM Plex Mono', monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ers-quality-card h2,
.ers-description-card h2 { margin: 0; color: var(--ers-ink); font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.05; }
.ers-quality-card__head p { max-width: 760px; margin: .42rem 0 0; color: #424741; line-height: 1.5; }
.ers-quality-verified {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
  color: #126c42;
  font-size: .78rem;
  font-weight: 800;
}
.ers-quality-verified > span { display: grid; width: 24px; height: 24px; place-items: center; color: #fff; background: #198754; border-radius: 50%; }
.ers-quality-levels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .65rem;
  padding: 1rem 1.1rem;
  background: #f8f9fb;
}
.ers-quality-level {
  position: relative;
  min-width: 0;
  padding: .9rem .85rem .85rem;
  background: #fff;
  border: 1px solid #d9dde5;
  border-radius: 11px;
}
.ers-quality-level__dot { display: block; width: 9px; height: 9px; margin: 0 0 .55rem; background: #adb3bd; border-radius: 50%; }
.ers-quality-level strong { display: block; margin-bottom: .28rem; color: var(--ers-ink); font-size: .9rem; line-height: 1.2; }
.ers-quality-level small { display: block; color: #626861; font-size: .73rem; line-height: 1.35; }
.ers-quality-level.is-current {
  color: #fff;
  background: linear-gradient(145deg, #165ddb, #0d46aa);
  border-color: #0d46aa;
  box-shadow: 3px 3px 0 var(--ers-ink);
  transform: translateY(-2px);
}
.ers-quality-level.is-current .ers-quality-level__dot { background: #7ef0b3; box-shadow: 0 0 0 4px rgba(126,240,179,.18); }
.ers-quality-level.is-current strong,
.ers-quality-level.is-current small { color: #fff; }
.ers-quality-note { margin: 0; padding: .78rem 1.25rem; color: #4e534d; background: #fff; border-top: 1px solid #e3e5e9; font-size: .78rem; }
.ers-description-card__head {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.05rem 1.3rem;
  color: #fff;
  background: var(--ers-ink);
}
.ers-description-card__head > span { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; color: #fff; background: var(--ers-orange); border-radius: 10px; font: 850 1.15rem/1 'IBM Plex Mono', monospace; }
.ers-description-card__head small { display: block; margin-bottom: .18rem; color: #bfc8d8; font: 700 .68rem/1 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.ers-description-card__head h2 { color: #fff; }
.ers-description-card__body { padding: clamp(1.15rem, 3vw, 2rem); color: #282b28; font-size: 1rem; line-height: 1.68; }
.ers-description-card__body > :first-child { margin-top: 0; }
.ers-description-card__body > :last-child { margin-bottom: 0; }
.ers-description-card__body h2,
.ers-description-card__body h3,
.ers-description-card__body h4 { margin: 1.6rem 0 .7rem; padding-left: .75rem; color: var(--ers-ink); border-left: 4px solid var(--ers-blue); }
.ers-description-card__body ul,
.ers-description-card__body ol { margin-left: 1.15rem; }
.ers-description-card__body li { margin-bottom: .38rem; }
.ers-description-card__body table { width: 100%; overflow: hidden; background: #fff; border: 1px solid var(--ers-line); border-radius: 10px; border-collapse: separate; border-spacing: 0; }
.ers-description-card__body th,
.ers-description-card__body td { padding: .72rem .8rem; border: 0; border-bottom: 1px solid #e6e7e3; text-align: left; vertical-align: top; }
.ers-description-card__body th { width: 34%; color: var(--ers-ink); background: #f1f5fc; font-weight: 800; }
.ers-description-card__body tr:last-child th,
.ers-description-card__body tr:last-child td { border-bottom: 0; }

.ers-legal { max-width: 900px; }
.ers-legal h2 { margin-top: 2rem; padding-top: .8rem; border-top: 1px solid var(--ers-line); }
.ers-legal h3 { margin-top: 1.35rem; }
.ers-legal p, .ers-legal li { line-height: 1.65; }
.ers-legal table { width: 100%; background: var(--ers-paper-light); border: 1px solid var(--ers-line); }
.ers-legal th, .ers-legal td { padding: .75rem; border-bottom: 1px solid var(--ers-line); text-align: left; vertical-align: top; }

.site-footer { color: #fff; background: var(--ers-ink); border-top: 8px solid var(--ers-orange); }
.site-footer, .site-footer p, .site-footer li { color: #e7e9e5; }
.site-footer a,
.site-footer a:not(.button):not(.components-button) { color: #fff !important; text-decoration: underline; text-decoration-color: var(--ers-orange); text-underline-offset: .2em; }
.site-footer a:hover,
.site-footer a:not(.button):not(.components-button):hover { color: #ffd8cc !important; }
.ers-footer-links { display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; margin: 0 0 1rem; }
.ers-footer-note { max-width: 760px; color: #dfe2dc !important; font-size: .84rem; }
.ers-cookie-note { position: fixed; right: 1rem; bottom: 1rem; z-index: 99998; max-width: 460px; padding: 1rem; background: var(--ers-paper-light); border: 1px solid var(--ers-ink); box-shadow: 5px 5px 0 var(--ers-ink); }
.ers-cookie-note p { margin: 0 0 .75rem; color: var(--ers-ink); font-size: .83rem; line-height: 1.45; }
.ers-cookie-note button { min-height: 38px; padding: .45rem .75rem; }

@media (min-width: 768px) and (max-width: 1024px) {
  .ers-home-hero h1 { max-width: 650px; font-size: clamp(2.65rem, 5.3vw, 3.35rem); }
  .ers-home-hero p { font-size: 1rem; }
  .site-main ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 !important;
  }
  .site-main ul.products::before,
  .site-main ul.products::after { display: none !important; }
  .site-main ul.products li.product {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
  }
  .site-main ul.products li.product .woocommerce-loop-product__title { margin-left: .7rem; margin-right: .7rem; font-size: .9rem; }
  .site-main ul.products li.product .price { margin-left: .7rem; margin-right: .7rem; font-size: .95rem; }
  .site-main ul.products li.product .button { margin-left: .7rem; margin-right: .7rem; }
}

@media (max-width: 767px) {
  .home .site-content > .col-full { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
  .col-full { width: calc(100% - 40px) !important; max-width: none !important; margin-left: 20px !important; margin-right: 20px !important; padding-left: 0 !important; padding-right: 0 !important; box-sizing: border-box; }
  .ers-trustbar span { display: block; }
  .ers-trustbar span + span::before { content: ""; padding: 0; }
  .site-header { z-index: 100; padding: .7rem 0; }
  .site-header > .col-full { position: relative; }
  .site-header .site-branding { width: calc(100% - 165px); margin: 0; }
  .site-header .site-branding .custom-logo-link img,
  .site-header .site-branding .custom-logo { width: 250px !important; height: auto !important; max-width: 100% !important; max-height: 58px !important; }
  .site-header-cart {
    position: absolute;
    top: 0;
    right: 116px;
    z-index: 3;
    display: block;
    float: none;
    width: 46px;
    margin: 0;
  }
  .site-header-cart > li { float: none; width: 100%; }
  .site-header-cart > li:last-child { display: none; }
  .site-header-cart .cart-contents {
    position: relative;
    display: grid;
    width: 46px;
    min-height: 46px;
    margin: .2rem 0 0;
    padding: 4px;
    grid-template-columns: 1fr;
    place-items: center;
    border-color: var(--ers-ink);
    border-radius: 10px;
    box-shadow: 2px 2px 0 var(--ers-ink);
  }
  .site-header-cart .ers-cart-icon { width: 36px; height: 36px; }
  .site-header-cart .ers-cart-copy,
  .site-header-cart .ers-cart-total { display: none; }
  .site-header .site-search {
    display: block;
    clear: both;
    float: none;
    width: 100%;
    margin: 1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--ers-line);
  }
  .site-header .site-search form { margin: 0; }
  .site-header .site-search input[type="search"] {
    width: 100%;
    min-height: 50px;
    padding: .72rem 1rem .72rem 2.75rem;
    box-sizing: border-box;
    background: #fff;
    border: 2px solid var(--ers-ink);
    border-radius: 14px;
    box-shadow: 3px 3px 0 var(--ers-ink);
    font-size: 1rem;
    transition: border-color .18s ease, box-shadow .18s ease;
  }
  .site-header .site-search .widget_product_search form::before { left: 1rem; top: 1.05em; font-size: 1.15em; }
  .site-header .site-search form:focus-within input[type="search"] { border-color: var(--ers-blue); box-shadow: 3px 3px 0 var(--ers-blue); outline: 0; }
  .storefront-primary-navigation { position: absolute; top: .7rem; right: 1rem; width: auto; border-top: 0; }
  .main-navigation { position: relative; width: auto; margin: 0; }
  .menu-toggle { margin-top: .2rem; border: 1px solid var(--ers-ink); background: var(--ers-paper-light); box-shadow: 2px 2px 0 var(--ers-ink); }
  .main-navigation > div.menu:not(.primary-navigation) { display: none !important; }
  .main-navigation .primary-navigation { display: none; }
  .main-navigation.toggled .primary-navigation {
    position: absolute;
    top: calc(100% + 4rem);
    right: 0;
    display: block;
    width: min(330px, calc(100vw - 2rem));
    max-height: calc(100vh - 150px);
    padding: .65rem;
    overflow-y: auto;
    background: var(--ers-paper-light);
    border: 1px solid var(--ers-ink);
    box-shadow: 4px 4px 0 var(--ers-ink);
  }
  .main-navigation.toggled .primary-navigation ul.menu {
    max-height: none;
    margin: 0;
    overflow: visible;
  }
  .main-navigation.toggled .primary-navigation ul.menu > li { display: block; }
  .main-navigation.toggled .primary-navigation ul.menu > li > a {
    padding: .8rem .7rem;
    border-bottom: 1px solid var(--ers-line);
  }
  .main-navigation.toggled .primary-navigation ul.menu > li:last-child > a { border-bottom: 0; }
  .site-header:has(.main-navigation.toggled) { z-index: 1000001; }
  body:has(.main-navigation.toggled) .ers-catalog-nav { z-index: 80; }
  .ers-home-hero { padding: 2.1rem 0 2.35rem; }
  .ers-home-hero h1 { max-width: 100%; margin: .6rem 0 .8rem; overflow-wrap: break-word; hyphens: auto; font-size: clamp(1.85rem, 8vw, 2.25rem); line-height: .98; }
  .ers-home-hero p { font-size: .93rem; line-height: 1.48; }
  .ers-actions { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin-top: 1.15rem; }
  .ers-actions .ers-button { width: 100%; max-width: 100%; min-height: 46px; padding: .6rem .45rem; box-sizing: border-box; font-size: .76rem; line-height: 1.2; text-align: center; }
  .ers-category-grid { grid-template-columns: 1fr; }
  .ers-category-card { min-height: 170px; }
  .ers-category-card h3 { margin-top: 2rem; }
  .ers-section { padding: 2.25rem 0; }
  .ers-section-head { margin-bottom: 1.15rem; padding-top: .75rem; }
  .ers-section-head h2 { font-size: 1.85rem; }
  .ers-cookie-note { left: .7rem; right: .7rem; bottom: .7rem; width: auto; max-width: none; box-sizing: border-box; }
  .ers-prelaunch-active .ers-cookie-note { bottom: 4.7rem; }
  .ers-catalog-nav { z-index: 999999; isolation: isolate; }
  .ers-catalog-nav > .col-full { width: 100% !important; margin: 0 !important; }
  .ers-catalog-tabs { padding: 0 .65rem; }
  .ers-catalog-tab, .ers-catalog-section { padding-left: .65rem; padding-right: .65rem; font-size: .78rem; }
  .ers-mega-panel {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    width: 100%;
    max-height: none;
    padding: .85rem 1rem 1.5rem;
    border: 0;
    box-shadow: none;
    transform: none;
  }
  .ers-mega-head { position: sticky; top: -.85rem; z-index: 2; grid-template-columns: 1fr auto; gap: .65rem; padding: .85rem 0; background: var(--ers-paper-light); }
  .ers-mega-head strong { grid-column: 1; }
  .ers-mega-head label { grid-column: 1 / -1; grid-row: 2; }
  .ers-mega-head > span { grid-column: 1 / -1; grid-row: 2; color: var(--ers-muted); font-size: .82rem; }
  .ers-mega-close { grid-column: 2; grid-row: 1; }
  .ers-mega-grid { grid-template-columns: 1fr; gap: 1rem; padding-top: 1rem; }
  .ers-mega-layout { display: block; padding-top: 1rem; }
  .ers-mega-family-index { display: none; }
  .ers-mega-group-toggle { min-height: 46px; margin: 0; padding: .7rem .8rem; }
  .ers-mega-group-toggle::after { content: "+"; float: right; color: var(--ers-blue); font-size: 1.2rem; }
  .ers-mega-group.is-open .ers-mega-group-toggle::after { content: "−"; }
  .ers-mega-group ul,
  .ers-mega-group .ers-mega-group-all,
  .ers-mega-group .ers-mega-category-all { display: none; }
  .ers-mega-group.is-open ul,
  .ers-mega-group.is-open .ers-mega-group-all,
  .ers-mega-group.is-open .ers-mega-category-all { display: block; }
  .ers-mega-group.is-open ul { padding-top: .45rem; }
  .ers-mega-panel:not(.is-searching) .ers-mega-group:not(.is-showing-all) li:nth-child(n+9) { display: none; }
  .ers-other-intro { margin-top: .65rem; font-size: .8rem; }
  .ers-other-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .ers-other-brand-card { min-height: 70px; padding: .65rem .7rem; border-radius: 10px; }
  .ers-other-brand-card strong { font-size: .87rem; }
  .ers-other-brand-content { margin-top: 1rem; padding-top: 1rem; }
  .ers-other-brand-heading { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .ers-product-types { margin-left: 0; margin-right: 0; }
  .ers-product-types-head { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .ers-product-type-list { margin-right: -20px; padding-right: 20px; }
  .woocommerce-ordering { float: none; width: 100%; margin: 0 0 .65rem; }
  .woocommerce-ordering select { width: 100%; min-height: 42px; }
  .woocommerce-result-count { float: none; margin: 0 0 .7rem; font-size: .82rem; }
  .woocommerce-pagination { float: none; margin: .45rem 0 1rem; padding: .45rem 0; border-top: 1px solid var(--ers-line); border-bottom: 1px solid var(--ers-line); }
  .woocommerce-pagination .page-numbers li .page-numbers { min-width: 36px; padding: .45rem .55rem; }
  .site-main ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
    margin: 0 !important;
  }
  .site-main ul.products::before,
  .site-main ul.products::after { display: none !important; }
  .site-main ul.products li.product {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 .6rem;
    text-align: left;
  }
  .site-main ul.products li.product .woocommerce-LoopProduct-link { display: block; }
  .site-main ul.products li.product img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 0 0 .55rem !important;
    padding: .35rem;
    object-fit: contain;
  }
  .site-main ul.products li.product .woocommerce-loop-product__title {
    min-height: 5em;
    max-height: 5em;
    margin: 0 .55rem .55rem;
    padding: .48rem .5rem;
    overflow-wrap: anywhere;
    border-left-width: 3px;
    border-radius: 0 6px 6px 0;
    font-size: .75rem;
    line-height: 1.25;
    text-align: left;
  }
  .site-main ul.products li.product .price {
    display: inline-flex;
    margin: 0 .55rem .45rem;
    padding: .38rem .52rem;
    box-shadow: 1.5px 1.5px 0 var(--ers-ink);
    font-size: .9rem;
    line-height: 1;
    text-align: left;
  }
  .site-main ul.products li.product .price small { font-size: .62rem; }
  .single-product div.product .summary .product_title {
    margin-top: .5rem;
    padding-left: .75rem;
    font-size: 1.4rem;
  }
  .single-product div.product .summary > .price {
    padding: .62rem .8rem;
    font-size: 1.3rem;
  }
  .ers-catalog-section-soon { min-width: 126px; }
  .ers-coming-soon { font-size: .56rem; }
  .site-main ul.products li.product .ers-product-promises {
    gap: .3rem !important;
    margin: .4rem .55rem .5rem !important;
    padding: .42rem .48rem !important;
    font-size: .66rem !important;
    line-height: 1.25;
  }
  .site-main ul.products li.product .ers-product-promises span,
  .site-main ul.products li.product .ers-product-promises a { gap: .25rem; }
  .site-main ul.products li.product .button {
    width: calc(100% - 1.1rem);
    min-height: 38px;
    margin: .15rem .55rem 0 !important;
    padding: .5rem .4rem;
    box-shadow: 2px 2px 0 var(--ers-ink);
    font-size: .68rem;
    line-height: 1.15;
    text-align: center;
  }
  body:has(.ers-catalog-nav.is-open) { overflow: hidden; }
}

/* Modern cart, 2026-08-31. Presentation only, cart and checkout logic stay native. */
body.woocommerce-cart .woocommerce-breadcrumb { display: none; }
body.woocommerce-cart .site-main { margin-top: 1.25rem; }
body.woocommerce-cart .entry-header {
  max-width: 1180px;
  margin: 0 auto 1.2rem;
  padding: 0;
}
body.woocommerce-cart .entry-title {
  margin: 0;
  color: var(--ers-ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 850;
  line-height: 1;
  text-align: left;
}
body.woocommerce-cart .entry-title::after {
  content: "Bestellung prüfen und sicher fortfahren";
  display: block;
  margin-top: .55rem;
  color: var(--ers-muted);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: .9rem;
  font-weight: 600;
}
body.woocommerce-cart .wp-block-woocommerce-cart { max-width: 1180px; }
body.woocommerce-cart .wc-block-cart {
  gap: clamp(1.25rem, 3vw, 2.5rem) !important;
  align-items: start;
}
body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar {
  min-width: 0;
  box-sizing: border-box;
}
body.woocommerce-cart .wc-block-cart-items {
  margin: 0 !important;
  border-collapse: separate;
  border-spacing: 0 .75rem;
}
body.woocommerce-cart .wc-block-cart-items__header { display: none; }
body.woocommerce-cart .wc-block-cart-items__row {
  background: var(--ers-paper-light);
  border: 1px solid var(--ers-line);
  border-radius: 16px;
  box-shadow: 0 7px 22px rgba(23,25,24,.06);
}
body.woocommerce-cart .wc-block-cart-items__row td {
  padding: 1.1rem !important;
  border-top: 1px solid var(--ers-line) !important;
  border-bottom: 1px solid var(--ers-line) !important;
}
body.woocommerce-cart .wc-block-cart-items__row td:first-child {
  border-left: 1px solid var(--ers-line) !important;
  border-radius: 16px 0 0 16px;
}
body.woocommerce-cart .wc-block-cart-items__row td:last-child {
  border-right: 1px solid var(--ers-line) !important;
  border-radius: 0 16px 16px 0;
}
body.woocommerce-cart .wc-block-cart-item__image img {
  background: #fff;
  border: 1px solid var(--ers-line);
  border-radius: 10px;
  object-fit: contain;
}
body.woocommerce-cart .wc-block-components-product-name {
  color: var(--ers-ink);
  font-size: .94rem !important;
  font-weight: 800;
  line-height: 1.35 !important;
  text-decoration-thickness: 1px;
}
body.woocommerce-cart .wc-block-components-product-price,
body.woocommerce-cart .wc-block-components-product-metadata,
body.woocommerce-cart .wc-block-components-product-details {
  font-size: .78rem !important;
  line-height: 1.45 !important;
}
body.woocommerce-cart .wc-block-components-quantity-selector {
  min-height: 42px;
  background: #fff;
  border: 1px solid #aaa89f;
  border-radius: 10px;
}
body.woocommerce-cart .wc-block-cart__sidebar {
  padding: 1.25rem !important;
  background: var(--ers-paper-light);
  border: 1px solid var(--ers-line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(23,25,24,.09);
}
body.woocommerce-cart .wc-block-cart__totals-title {
  margin: 0 0 .8rem !important;
  color: var(--ers-ink);
  font-size: 1.15rem !important;
  font-weight: 850;
  text-align: left !important;
}
body.woocommerce-cart .wc-block-components-totals-wrapper {
  padding: .85rem 0 !important;
  border-color: var(--ers-line) !important;
}
body.woocommerce-cart .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-components-totals-item__value { font-size: .86rem; }
body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: var(--ers-ink);
  font-size: 1.18rem !important;
  font-weight: 850;
}
body.woocommerce-cart .wc-block-cart__submit-button {
  min-height: 56px;
  color: #fff;
  background: var(--ers-blue);
  border: 1px solid #0f47ad;
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ers-ink);
  font-size: .92rem;
  font-weight: 850;
  text-decoration: none;
}
body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-cart .wc-block-cart__submit-button:focus {
  color: #fff;
  background: #0f4fc3;
  box-shadow: 2px 2px 0 var(--ers-ink);
  transform: translate(2px, 2px);
}
.ers-cart-assurance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  max-width: 1180px;
  margin: 1.25rem auto 0;
}
.ers-cart-assurance div {
  padding: .85rem 1rem;
  background: var(--ers-paper-light);
  border: 1px solid var(--ers-line);
  border-radius: 12px;
}
.ers-cart-assurance strong { display: block; color: var(--ers-ink); font-size: .82rem; }
.ers-cart-assurance small { color: var(--ers-muted); font-size: .7rem; line-height: 1.35; }

@media (min-width: 900px) {
  body.woocommerce-cart .wc-block-cart {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(330px, 1fr);
  }
  body.woocommerce-cart .wc-block-cart__main { width: 100% !important; padding-right: 0 !important; }
  body.woocommerce-cart .wc-block-cart__sidebar {
    position: sticky;
    top: 1.5rem;
    width: 100% !important;
    margin: 0 !important;
  }
}

@media (max-width: 767px) {
  body.woocommerce-cart .site-main { margin-top: .7rem; }
  body.woocommerce-cart .entry-header { margin-bottom: .8rem; }
  body.woocommerce-cart .entry-title { font-size: 2rem; }
  body.woocommerce-cart .wc-block-cart-items { border-spacing: 0 .6rem; }
  body.woocommerce-cart .wc-block-cart-items__row { display: grid !important; grid-template-columns: 88px minmax(0, 1fr); }
  body.woocommerce-cart .wc-block-cart-items__row td {
    width: auto !important;
    padding: .8rem !important;
    border: 0 !important;
  }
  body.woocommerce-cart .wc-block-cart-items__row td:first-child {
    grid-column: 1;
    grid-row: 1;
    padding-right: 0 !important;
    border: 1px solid var(--ers-line) !important;
    border-right: 0 !important;
    border-radius: 14px 0 0 14px;
  }
  body.woocommerce-cart .wc-block-cart-items__row td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    border: 1px solid var(--ers-line) !important;
    border-left: 0 !important;
    border-radius: 0 14px 14px 0;
  }
  body.woocommerce-cart .wc-block-cart-items__row td.wc-block-cart-item__total { display: none !important; }
  body.woocommerce-cart .wc-block-components-product-name { font-size: .82rem !important; }
  body.woocommerce-cart .wc-block-components-product-price,
  body.woocommerce-cart .wc-block-components-product-metadata,
  body.woocommerce-cart .wc-block-components-product-details { font-size: .7rem !important; }
  body.woocommerce-cart .wc-block-cart__sidebar { padding: .9rem !important; border-radius: 12px; }
  body.woocommerce-cart .wc-block-cart__totals-title { font-size: 1.05rem !important; }
  body.woocommerce-cart .wc-block-cart__submit-container--sticky {
    position: static !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body.woocommerce-cart .wc-block-cart__submit-button { min-height: 52px; }
  .ers-cart-assurance { grid-template-columns: 1fr; gap: .5rem; margin-top: .9rem; }
  .ers-cart-assurance div { padding: .7rem .8rem; }
  body.woocommerce-cart #ers-chat { bottom: 12px; }
}

/* Modern checkout, 2026-08-31. Presentation only, payment logic stays native. */
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-breadcrumb { display: none; }
body.woocommerce-checkout:not(.woocommerce-order-received) .site-main { margin-top: 1.4rem; }
body.woocommerce-checkout:not(.woocommerce-order-received) .entry-header {
  max-width: 1180px;
  margin: 0 auto 1.2rem;
  padding: 0;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .entry-title {
  margin: 0;
  color: var(--ers-ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 850;
  line-height: 1;
  text-align: left;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .entry-title::after {
  content: "Sicher und unkompliziert bestellen";
  display: block;
  margin-top: .55rem;
  color: var(--ers-muted);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: 0;
}
.ers-checkout-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin: 0 0 1.6rem;
  overflow: hidden;
  background: var(--ers-paper-light);
  border: 1px solid var(--ers-line);
  border-radius: 14px;
}
.ers-checkout-progress span {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 48px;
  padding: .65rem .8rem;
  color: var(--ers-ink);
  font-size: .78rem;
  font-weight: 800;
}
.ers-checkout-progress span + span { border-left: 1px solid var(--ers-line); }
.ers-checkout-progress b {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  color: #fff;
  background: var(--ers-blue);
  border-radius: 50%;
  font: 800 .75rem/1 "Segoe UI", Arial, sans-serif;
}
body.woocommerce-checkout .wc-block-checkout {
  max-width: 1180px !important;
  gap: clamp(1.4rem, 3vw, 3rem) !important;
}
body.woocommerce-checkout .wc-block-checkout__main { min-width: 0; }
body.woocommerce-checkout .wc-block-components-express-payment,
body.woocommerce-checkout .wc-block-components-checkout-step {
  margin: 0 0 1rem !important;
  padding: 1.25rem !important;
  background: var(--ers-paper-light);
  border: 1px solid var(--ers-line);
  border-radius: 16px;
  box-shadow: 0 7px 22px rgba(23,25,24,.06);
}
body.woocommerce-checkout .wc-block-components-checkout-step__heading { margin: 0 0 1rem; }
body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wc-block-components-title {
  color: var(--ers-ink);
  font-size: 1.12rem;
  font-weight: 850;
  line-height: 1.2;
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
body.woocommerce-checkout .wc-block-components-address-form__country .wc-block-components-combobox-control input {
  min-height: 52px;
  color: var(--ers-ink);
  background: #fff;
  border: 1px solid #aaa89f;
  border-radius: 10px;
  box-shadow: none;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input:focus {
  border-color: var(--ers-blue);
  box-shadow: 0 0 0 3px rgba(22,93,219,.12);
}
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option,
body.woocommerce-checkout .wc-block-components-radio-control__option {
  margin-bottom: .55rem;
  background: #fff;
  border: 1px solid var(--ers-line);
  border-radius: 12px;
}
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
body.woocommerce-checkout .wc-block-components-radio-control__option-checked {
  border-color: var(--ers-blue);
  box-shadow: 0 0 0 2px rgba(22,93,219,.1);
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
  align-self: start;
  padding: 1.25rem !important;
  background: var(--ers-paper-light);
  border: 1px solid var(--ers-line) !important;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(23,25,24,.09);
}
body.woocommerce-checkout .wc-block-components-order-summary { padding: 0; }
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  min-height: 56px;
  color: #fff;
  background: var(--ers-blue);
  border: 1px solid #0f47ad;
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ers-ink);
  font-size: .92rem;
  font-weight: 850;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:focus {
  color: #fff;
  background: #0f4fc3;
  box-shadow: 2px 2px 0 var(--ers-ink);
  transform: translate(2px, 2px);
}
.ers-checkout-assurance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  max-width: 1180px;
  margin: 1.5rem auto 0;
}
.ers-checkout-assurance div {
  min-height: 80px;
  padding: .9rem 1rem;
  background: var(--ers-paper-light);
  border: 1px solid var(--ers-line);
  border-radius: 12px;
}
.ers-checkout-assurance strong { display: block; margin-bottom: .2rem; color: var(--ers-ink); font-size: .84rem; }
.ers-checkout-assurance small { color: var(--ers-muted); font-size: .72rem; line-height: 1.35; }

@media (min-width: 900px) {
  body.woocommerce-checkout .wp-block-woocommerce-checkout.wc-block-checkout {
    display: block;
  }
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(330px, 1fr);
    align-items: start;
    width: 100% !important;
    max-width: 1180px !important;
  }
  body.woocommerce-checkout .wc-block-checkout__main {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    padding-right: 0 !important;
    justify-self: stretch;
    box-sizing: border-box;
    grid-column: 1;
    grid-row: 1;
  }
  body.woocommerce-checkout .wc-block-checkout__sidebar {
    position: sticky;
    top: 1.5rem;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    justify-self: stretch;
    box-sizing: border-box;
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 767px) {
  body.woocommerce-checkout:not(.woocommerce-order-received) .site-main { margin-top: .7rem; }
  body.woocommerce-checkout:not(.woocommerce-order-received) .entry-header { margin-bottom: .9rem; }
  body.woocommerce-checkout:not(.woocommerce-order-received) .entry-title { font-size: 2rem; }
  .ers-checkout-progress { margin-bottom: 1rem; border-radius: 12px; }
  .ers-checkout-progress span { justify-content: center; min-height: 44px; padding: .55rem .3rem; font-size: .66rem; }
  .ers-checkout-progress b { width: 22px; height: 22px; flex-basis: 22px; font-size: .66rem; }
  body.woocommerce-checkout .wc-block-components-express-payment,
  body.woocommerce-checkout .wc-block-components-checkout-step { padding: .9rem !important; border-radius: 12px; }
  body.woocommerce-checkout .wc-block-checkout__sidebar { padding: .9rem !important; border-radius: 12px; }
  .ers-checkout-assurance { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin-top: 1rem; }
  .ers-checkout-assurance div { min-height: 72px; padding: .75rem; }
}

@media (max-width: 340px) {
  .ers-actions { grid-template-columns: 1fr; }
}

.ers-display-gasket-note {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid #9bc9ad;
  border-left: 5px solid #16854b;
  border-radius: 10px;
  background: #edf9f1;
  color: #123c25;
}
.ers-display-gasket-note strong { display: block; margin-bottom: .35rem; font-size: 1.02rem; }
.ers-display-gasket-note strong span { color: #16854b; }
.ers-display-gasket-note p { margin: 0; }

@media (max-width: 767px) {
  .ers-product-key-facts { margin: .8rem 0; padding: .75rem .8rem; }
  .ers-product-key-facts dl { gap: .45rem .65rem; }
  .ers-product-key-facts dt { font-size: .66rem; }
  .ers-product-key-facts dd { font-size: .8rem; }
  .single-product .woocommerce-tabs { margin-top: 1.8rem; }
  .single-product .woocommerce-tabs ul.tabs li a { padding: .58rem .75rem; font-size: .78rem; }
  .ers-quality-card,
  .ers-description-card { border-radius: 12px; box-shadow: 4px 4px 0 rgba(23,25,24,.95); }
  .ers-quality-card__head { grid-template-columns: 1fr; gap: .7rem; padding: 1rem; }
  .ers-quality-kicker { width: fit-content; }
  .ers-quality-verified { justify-self: start; }
  .ers-quality-levels {
    display: flex;
    gap: .55rem;
    padding: .85rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
  .ers-quality-level { flex: 0 0 152px; scroll-snap-align: start; }
  .ers-quality-note { padding: .7rem .9rem; line-height: 1.4; }
  .ers-description-card__head { padding: .9rem 1rem; }
  .ers-description-card__body { padding: 1rem; font-size: .93rem; line-height: 1.62; }
  .ers-display-gasket-note { margin-bottom: 1rem; padding: .8rem .85rem; }
  .ers-description-card__body table { display: block; overflow-x: auto; white-space: normal; }
}

/* Modern variation selectors: compact chips for short lists, searchable picker for long lists. */
.single-product form.variations_form table.variations {
  display: block;
  margin: 1.15rem 0 1rem;
  padding: 1rem;
  background: linear-gradient(145deg, #fff 0%, var(--ers-paper-light) 100%);
  border: 1px solid var(--ers-line);
  border-radius: 16px;
  box-shadow: 0 9px 24px rgba(23,25,24,.08);
}
.single-product form.variations_form table.variations tbody { display: grid; gap: 1rem; }
.single-product form.variations_form table.variations tr.ers-variation-field {
  display: grid;
  gap: .55rem;
}
.single-product form.variations_form table.variations th.label,
.single-product form.variations_form table.variations td.value {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
}
.single-product form.variations_form table.variations th.label label {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  color: var(--ers-ink);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.single-product form.variations_form table.variations th.label label::before {
  width: 8px;
  height: 8px;
  content: '';
  background: var(--ers-orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(242,90,47,.12);
}
.ers-native-select--enhanced {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.ers-variation-choices {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.ers-variation-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: .65rem .85rem;
  color: var(--ers-ink);
  background: #fff;
  border: 1.5px solid #c9c7bf;
  border-radius: 12px;
  box-shadow: 0 2px 0 rgba(23,25,24,.08);
  font-size: .85rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.ers-variation-chip:hover:not(:disabled) { border-color: var(--ers-blue); transform: translateY(-1px); }
.ers-variation-chip.is-selected {
  color: #fff;
  background: var(--ers-blue);
  border-color: var(--ers-blue);
  box-shadow: 3px 3px 0 var(--ers-ink);
}
.ers-variation-chip:disabled { opacity: .38; cursor: not-allowed; text-decoration: line-through; }
.ers-variation-chip__color {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  background: var(--ers-swatch-color);
  border: 2px solid rgba(23,25,24,.28);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.42);
}
.ers-variation-chip__color.is-neutral {
  background: conic-gradient(#d5d3cc 25%, #fff 0 50%, #d5d3cc 0 75%, #fff 0);
}
.ers-variation-combobox { position: relative; }
.ers-variation-combobox__trigger {
  position: relative;
  width: 100%;
  min-height: 50px;
  padding: .75rem 3rem .75rem .9rem;
  color: var(--ers-muted);
  background: #fff;
  border: 1.5px solid #aaa89f;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: left;
}
.ers-variation-combobox__trigger::after {
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 9px;
  height: 9px;
  content: '';
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .16s ease;
}
.ers-variation-combobox__trigger.has-value { color: var(--ers-ink); border-color: var(--ers-blue); }
.ers-variation-combobox.is-open .ers-variation-combobox__trigger::after { transform: translateY(-25%) rotate(225deg); }
.ers-variation-combobox__panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + .45rem);
  right: 0;
  left: 0;
  padding: .65rem;
  background: #fff;
  border: 1px solid var(--ers-line);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(23,25,24,.2);
}
.ers-variation-combobox__panel[hidden] { display: none; }
.ers-variation-combobox__search {
  width: 100%;
  min-height: 44px;
  margin: 0 0 .55rem;
  padding: .65rem .75rem;
  background: #f8f8f5;
  border: 1px solid #aaa89f;
  border-radius: 9px;
}
.ers-variation-combobox__choices {
  display: grid;
  gap: .25rem;
  max-height: min(42vh, 340px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ers-variation-combobox__option {
  width: 100%;
  min-height: 42px;
  padding: .58rem .7rem;
  color: var(--ers-ink);
  background: #fff;
  border: 0;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: left;
}
.ers-variation-combobox__option:hover:not(:disabled),
.ers-variation-combobox__option:focus { background: #edf4ff; color: #0f4fc3; }
.ers-variation-combobox__option.is-selected { color: #fff; background: var(--ers-blue); }
.ers-variation-combobox__option:disabled { display: none; }
.single-product form.variations_form .reset_variations {
  display: inline-flex;
  margin-top: .65rem;
  color: var(--ers-blue);
  font-size: .75rem;
  font-weight: 750;
}

@media (max-width: 767px) {
  .single-product form.variations_form table.variations { margin-top: .9rem; padding: .85rem; border-radius: 14px; }
  .ers-variation-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .ers-variation-chip { width: 100%; min-width: 0; padding: .62rem .7rem; font-size: .79rem; }
  body.ers-variation-picker-open { overflow: hidden; }
  body.ers-variation-picker-open::before {
    position: fixed;
    z-index: 99998;
    inset: 0;
    content: '';
    background: rgba(23,25,24,.36);
    backdrop-filter: blur(2px);
  }
  body.ers-variation-picker-open .ers-chat-launch { visibility: hidden; }
  .ers-variation-combobox__panel { position: fixed; z-index: 99999; top: auto; right: .75rem; bottom: .75rem; left: .75rem; border-radius: 16px; }
  .ers-variation-combobox__choices { max-height: 52vh; }
}

@media (max-width: 380px) {
  .ers-variation-choices { grid-template-columns: 1fr; }
}
