.richter-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--color-graphite);
  box-shadow: var(--shadow-header);
}


/* ---- Main bar: logo / search / cart ------------------------------------ */

.richter-header__top {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: var(--header-height);
}

.richter-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ---- Logo --------------------------------------------------------------- */

#logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

#logo a {
  display: block;
}

#logo img {
  display: block;
  max-height: 84px;
  width: auto;
}

#search {
  position: relative;
  flex: 1 1 auto;
  max-width: 620px;
  display: flex;
  justify-content: flex-start;
}

.richter-search__toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 var(--space-4);
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.richter-search__toggle:hover {
  border-color: var(--color-text-faint);
  color: var(--color-text);
}

.richter-search__toggle svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.richter-search__toggle-label {
  white-space: nowrap;
}

#search.is-active .richter-search__toggle {
  display: none;
}

.richter-search__field {
  display: none;
  position: relative;
  width: 100%;
}

#search.is-active .richter-search__field {
  display: block;
  animation: richter-search-expand var(--transition-base) ease;
}

@keyframes richter-search-expand {
  from { opacity: 0; transform: scaleX(0.85); transform-origin: left center; }
  to   { opacity: 1; transform: scaleX(1); }
}

#search input[type="text"] {
  width: 100%;
  height: 40px;
  padding: 0 var(--space-5) 0 40px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--color-text);
  font-size: var(--font-size-md);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

#search input[type="text"]:hover {
  border-color: var(--color-text-faint);
}

#search input[type="text"]:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 116, 44, 0.15);
}

#search .button-search {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: none;
  cursor: pointer;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--color-text-faint);
}

#search .button-search svg {
  display: block;
  flex-shrink: 0;
  width: 100%;
  height: 100%;
}

#search .button-search:hover {
  color: var(--color-text-muted);
}

#language_form {
  display: flex;
  align-items: center;
}

.richter-header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-left: auto;
}

/* ---- Header meta: hotline / account / language (desktop) --------------
   Hidden on mobile (see the max-width:991px block below); the same
   information appears inside the off-canvas menu instead
   (.richter-mobile-utility). */

.richter-header__meta {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.richter-header__hotline {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-on-dark-muted) !important;
}

.richter-header__hotline:hover {
  color: #fff !important;
  text-decoration: none;
}

.richter-header__hotline-icon {
  flex-shrink: 0;
}

.richter-header__hotline-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.richter-header__hotline-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-faint);
}

.richter-header__hotline-number {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-on-dark);
  white-space: nowrap;
}

.richter-header__account {
  color: var(--color-text-on-dark-muted);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}

.richter-header__account:hover {
  color: #fff;
  text-decoration: none;
}

.richter-header__lang {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
}

.richter-lang-link {
  color: var(--color-text-on-dark-muted);
  font-weight: var(--font-weight-medium);
}

.richter-lang-link:hover {
  color: #fff;
  text-decoration: none;
}

.richter-lang-link.is-active {
  color: #fff;
  font-weight: var(--font-weight-bold);
}

.richter-header__lang a + a {
  position: relative;
  padding-left: var(--space-2);
}

.richter-header__lang a + a::before {
  content: "|";
  position: absolute;
  left: -1px;
  color: var(--color-graphite-border);
  font-weight: var(--font-weight-normal);
}

/* ---- Mobile drawer utility block (hotline / account / wishlist / lang) --
   Rendered at the top of #menu (the off-canvas category flyout); only
   ever visible on mobile, see the max-width:991px block below. */

.richter-mobile-utility {
  display: none;
}

/* Language switcher */
#language.switcher {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
}

#language.switcher:hover .option,
#language.switcher.active .option {
  display: block !important;
}

#language .selected a {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  height: 40px;
  padding: 0 var(--space-3);
  color: var(--color-text-on-dark-muted);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-pill);
  background: var(--color-graphite-light);
}

#language .selected a img {
  border-radius: 2px;
}

#language .selected a:hover {
  background: var(--color-graphite);
  color: #fff;
  text-decoration: none;
}

#language .option {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: var(--z-dropdown);
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-2);
  min-width: 160px;
  display: none;
}

#language .option a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
}

#language .option a:hover {
  background: var(--color-bg-subtle);
  text-decoration: none;
}

@media (max-width: 991px) {

  #language .selected a {
    padding: 0 var(--space-2);
    gap: var(--space-1);
  }
}

/* Currency switcher — mirrors #language's dropdown exactly, since both
   share the same .switcher/.selected/.option markup and toggle logic
   (see theme.js) */
#currency.switcher {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
}

#currency.switcher:hover .option,
#currency.switcher.active .option {
  display: block !important;
}

#currency .selected a {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  height: 40px;
  padding: 0 var(--space-3);
  color: var(--color-text-on-dark-muted);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-pill);
  background: var(--color-graphite-light);
}

#currency .selected a:hover {
  background: var(--color-graphite);
  color: #fff;
  text-decoration: none;
}

#currency .option {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: var(--z-dropdown);
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-2);
  min-width: 160px;
  display: none;
}

#currency .option a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
}

#currency .option a:hover {
  background: var(--color-bg-subtle);
  text-decoration: none;
}

@media (max-width: 991px) {

  #currency .selected a {
    padding: 0 var(--space-2);
    gap: var(--space-1);
  }
}

/* ---- Cart dropdown -------------------------------------------------------
   Legacy used absolute-positioned ".heading"/".content" with manual
   z-index layering. Reimplemented as a clean dropdown card. */

#cart {
  position: relative !important;
}

#cart .heading {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0 !important;
  border-radius: 50%;
  background: var(--color-accent) !important;
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast);
}

#cart .heading:hover {
  background: var(--color-accent-dark) !important;
}

#cart .heading .cart-icon {
  flex-shrink: 0;
  color: #fff;
}

.cart-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--color-graphite);
  color: #fff;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--color-accent);
}

.cart-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#cart .content {
  display: none;
  position: absolute !important;
  top: 100% !important;
  left: auto !important;
  right: 0 !important;
  bottom: auto !important;
  width: 340px !important;
  min-height: 0;
  background: #fff;
  color: var(--color-text);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
  z-index: var(--z-dropdown);
  float: none !important;
}

#cart.active .content {
  display: block !important;
}

#cart.active .heading {
  background: var(--color-primary);
}

.mini-cart-info table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-3);
}

.mini-cart-info td {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  color: var(--color-text);
}

.mini-cart-info .image { width: 48px; }
.mini-cart-info .image img {
  width: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}
.mini-cart-info .name a {
  display: block;
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
}
.mini-cart-info .name > div {
  margin-top: var(--space-1);
  line-height: var(--line-height-tight);
}
.mini-cart-info .name small { color: var(--color-text-muted); }
.mini-cart-info .quantity {
  text-align: right;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  padding-right: var(--space-3);
  white-space: nowrap;
}
.mini-cart-info td.total {
  text-align: right;
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
}
.mini-cart-info .remove { text-align: right; width: 20px; }
.mini-cart-info .remove img { cursor: pointer; opacity: .6; }
.mini-cart-info .remove img:hover { opacity: 1; }

.mini-cart-total tr td.right:last-child {
  width: 1%;
  white-space: nowrap;
}

.mini-cart-total table {
  width: 100%;
  margin-bottom: var(--space-3);
}
.mini-cart-total td { padding: var(--space-1) 0; }

.mini-cart-total td.right {
  text-align: right;
  color: var(--color-text);
}

.mini-cart-total tr td.right:first-child {
  color: var(--color-text-muted);
  padding-right: var(--space-3);
}

#cart .checkout {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
  font-size: 0;
}

#cart .checkout a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  background: var(--color-bg-subtle);
  color: var(--color-text);
}

#cart .checkout a:hover {
  background: var(--color-border);
  text-decoration: none;
}

#cart .checkout a:last-child {
  background: var(--color-accent);
  color: #fff;
}

#cart .checkout a:last-child:hover {
  background: var(--color-accent-dark);
}

#cart .empty {
  padding: var(--space-6) 0;
  text-align: center;
  color: var(--color-text-muted);
}

/* ---- Primary navigation ----------------------------------------------- */

.richter-nav {
  background: var(--color-graphite-light);
  border-top: 1px solid var(--color-graphite-border);
}

.richter-nav .richter-nav__inner {
  display: flex;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

#menu {
  display: block;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(320px, 85vw);
  background: var(--color-graphite);
  z-index: calc(var(--z-overlay) + 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-8) 0 var(--space-8);
  transform: translateX(-100%);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.richter-nav.is-open #menu {
  transform: translateX(0);
}

#menu > ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: var(--space-10) 0 0 0;
  padding: 0;
}

#menu > ul > li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

#menu > ul > li > a {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-on-dark);
  border-bottom: 1px solid var(--color-graphite-border);
}

#menu > ul > li:hover > a,
#menu > ul > li > a:hover {
  background: var(--color-graphite-light);
  color: var(--color-accent-light);
  text-decoration: none;
}

#menu > ul > li > .richter-nav__expand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-graphite-border);
  color: var(--color-text-on-dark-muted);
  cursor: pointer;
}

#menu > ul > li > .richter-nav__expand:hover {
  color: #fff;
}

#menu > ul > li > .richter-nav__expand svg {
  transition: transform var(--transition-fast);
}

#menu > ul > li.is-open > .richter-nav__expand svg {
  transform: rotate(180deg);
}

#menu > ul > li > div {
  display: none;
  flex: 1 0 100%;
  position: static;
  box-shadow: none;
  border-radius: 0;
  background: var(--color-graphite);
  padding: 0 var(--space-4) var(--space-3) var(--space-6);
}

#menu > ul > li.is-open > div {
  display: block;
}

#menu > ul > li > div > ul {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
}

#menu > ul > li ul + ul {
  padding-left: 0;
  border-left: 1px solid var(--color-graphite-border);
  padding-left: var(--space-4);
}

#menu > ul > li > div > ul > li > a,
#menu > ul > li ul > li > a {
  display: block;
  padding: var(--space-1) 0;
  color: var(--color-text-on-dark-muted);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  white-space: nowrap;
}

#menu > ul > li ul > li > a:hover {
  color: var(--color-accent-light);
  text-decoration: none;
  background: none;
}

#menu > ul > li > div > ul > li > h3 {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}

/* Nav toggle + off-canvas drawer (progressive enhancement, see
   header.tpl + theme.js). Same hamburger/drawer pattern on every
   screen size — there is no separate desktop hover-menu anymore. */

.richter-nav__backdrop {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 21, 0.55);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base);
}

.richter-nav.is-open .richter-nav__backdrop {
  opacity: 1;
  visibility: visible;
}

.richter-nav__toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: none;
  color: #fff;
  padding: var(--space-3) var(--space-4);
  min-height: 44px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
}

.richter-nav__toggle .richter-nav__toggle-icon {
  width: 18px;
  height: 12px;
  position: relative;
}

.richter-nav__toggle .richter-nav__toggle-icon span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.richter-nav__toggle .richter-nav__toggle-icon span:nth-child(1) { top: 0; }
.richter-nav__toggle .richter-nav__toggle-icon span:nth-child(2) { top: 5px; }
.richter-nav__toggle .richter-nav__toggle-icon span:nth-child(3) { top: 10px; }

.richter-nav__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-graphite-light);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 991px) {
  .richter-header__meta {
    display: none;
  }

  .richter-mobile-utility {
    display: block;
    padding: 0 var(--space-4) var(--space-5) var(--space-4);
    margin-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-graphite-border);
  }

  .richter-mobile-utility .richter-header__hotline {
    padding: var(--space-3) 0;
  }

  .richter-mobile-utility__link {
    display: block;
    padding: var(--space-3) 0;
    color: var(--color-text-on-dark);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    border-top: 1px solid var(--color-graphite-border);
  }

  .richter-mobile-utility__link:hover {
    color: var(--color-accent-light);
    text-decoration: none;
  }

  .richter-mobile-utility__lang {
    padding: var(--space-3) 0 0 0;
    border-top: 1px solid var(--color-graphite-border);
    font-size: var(--font-size-sm);
  }

  .richter-mobile-utility__lang a {
    color: var(--color-text-on-dark-muted);
    font-weight: var(--font-weight-medium);
  }

  .richter-mobile-utility__lang a.is-active {
    color: #fff;
    font-weight: var(--font-weight-bold);
  }

  .richter-mobile-utility__lang a:hover {
    color: #fff;
    text-decoration: none;
  }

  .richter-mobile-utility__lang-sep {
    color: var(--color-graphite-border);
  }

  .richter-header__top {
    min-height: var(--header-height-mobile);
    padding: var(--space-3) 0;
  }

  .richter-header__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: var(--space-3);
    column-gap: var(--space-3);
  }

  #logo {
    grid-column: 1 / -1;
  }

  .richter-header__search-group {
    grid-column: 1;
    min-width: 0;
    max-width: none;
  }

  .richter-header__search-group #search {
    max-width: none;
  }

  .richter-header__ratgeber {
    display: none;
  }

  .richter-header__actions {
    grid-column: 2;
    flex: 0 0 auto;
  }

  #cart {
    flex-shrink: 0;
  }

  #cart .heading {
    height: 44px !important;
    width: 44px !important;
    padding: 0 !important;
    justify-content: center;
    white-space: nowrap;
  }

  #cart .heading .cart-icon {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
  }

  .richter-nav__toggle-label {
    display: none;
  }

  /* v1.17 round 3 — needs !important now to win against the
     hardened base rule directly above (same file, base #cart
     .content{width:340px !important}); without matching !important
     here, this narrower mobile width would be silently ignored. */
  #cart .content {
    width: 300px !important;
    right: calc(-1 * var(--space-4)) !important;
  }
}

/* Body scroll lock while the off-canvas category flyout is open
   (class toggled by theme.js) */
body.richter-nav-locked {
  overflow: hidden;
}

@media (max-width: 599px) {
  #logo img {
    max-height: 36px;
  }

  /* v1.17 round 3 — !important for the same reason as the 991px
     breakpoint above. */
  #cart .content {
    width: calc(100vw - var(--space-8)) !important;
    right: calc(-1 * var(--space-4)) !important;
  }
}

#ajaxSearchResults {
  position: absolute !important;
  top: calc(100% + var(--space-2)) !important;
  left: 0 !important;
  width: min(760px, calc(100vw - var(--space-8))) !important;
  min-width: 0 !important;
  max-height: 70vh;
  overflow-y: auto;
  margin: 0 !important;
  background: #fff !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: var(--space-3) !important;
  z-index: var(--z-dropdown);
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-body);
}

#ajaxSearchResults ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#ajaxSearchResults > ul > li {
  padding: var(--space-2) var(--space-3) !important;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

#ajaxSearchResults > ul > li + li {
  border-top: none !important;
  margin-top: var(--space-1);
}

#ajaxSearchResults > ul > li:hover,
#ajaxSearchResults > ul > li.selected {
  background-color: var(--color-bg-subtle) !important;
}

#ajaxSearchResults > ul > li > a {
  text-decoration: none !important;
  color: inherit !important;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: var(--space-4);
  row-gap: 2px;
  width: 100%;
  min-width: 0;
}

#ajaxSearchResults .image {
  grid-column: 1;
  grid-row: 1 / -1;
  padding: 2px !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--color-bg) !important;
  float: none !important;
  margin: 0 !important;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  overflow: hidden;
}

#ajaxSearchResults .image img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

#ajaxSearchResults .name {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  font-weight: var(--font-weight-semibold) !important;
  color: var(--color-text) !important;
  font-size: var(--font-size-base) !important;
  white-space: normal !important;
  overflow-wrap: break-word;
}

#ajaxSearchResults .model {
  grid-column: 2;
  min-width: 0;
  font-weight: var(--font-weight-normal) !important;
  color: var(--color-text-faint) !important;
  font-size: var(--font-size-sm) !important;
}



#ajaxSearchResults .description {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  font-size: var(--font-size-sm) !important;
  font-weight: var(--font-weight-normal) !important;
  color: var(--color-text-muted) !important;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#ajaxSearchResults .price {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  float: none !important;
  text-align: right !important;
  color: var(--color-text) !important;
  font-size: var(--font-size-base) !important;
  margin: 0 !important;
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
}

#ajaxSearchResults .price-old {
  color: var(--color-text-faint) !important;
  text-decoration: line-through;
  display: block;
  font-size: var(--font-size-sm) !important;
  font-weight: var(--font-weight-normal) !important;
}

#ajaxSearchResults .price-new {
  font-weight: var(--font-weight-bold) !important;
  color: var(--color-accent) !important;
}

#ajaxSearchResults .price-tax {
  font-size: var(--font-size-sm) !important;
  font-weight: var(--font-weight-normal) !important;
  color: var(--color-text-faint) !important;
  display: block;
}

.corrected_data {
  margin-bottom: var(--space-5) !important;
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* "Did you mean this manufacturer/category?" style result groups,
   shown by the same extension below the product results */
.enhanced-manufacturer-list,
.enhanced-category-list {
  margin-top: var(--space-5) !important;
}

.enhanced-manufacturer-list > div,
.enhanced-category-list > div {
  border-top: 1px solid var(--color-border) !important;
  padding-top: var(--space-4) !important;
  margin: var(--space-4) 0 !important;
  clear: both;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.enhanced-manufacturer-list a,
.enhanced-category-list a {
  text-decoration: none !important;
  color: var(--color-text);
}

.enhanced-manufacturer-list a:hover,
.enhanced-category-list a:hover {
  color: var(--color-primary);
  text-decoration: none !important;
}

.enhanced-manufacturer-list .image,
.enhanced-category-list .image {
  float: none !important;
  margin: 0 !important;
  flex-shrink: 0;
}

.enhanced-manufacturer-list .image img,
.enhanced-category-list .image img {
  padding: 2px !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
}

.enhanced-manufacturer-list .name,
.enhanced-category-list .name {
  margin-top: 0 !important;
}

.enhanced-manufacturer-list .name a,
.enhanced-category-list .name a {
  font-size: var(--font-size-base) !important;
  font-weight: var(--font-weight-semibold) !important;
}

.enhanced-category-list .path,
.enhanced-category-list .path a {
  font-size: var(--font-size-xs) !important;
  font-weight: var(--font-weight-normal) !important;
  color: var(--color-text-faint) !important;
}

div.clear {
  clear: both;
  display: block;
  overflow: hidden;
  visibility: hidden;
  width: 0;
  height: 0;
}

/* ---- Search result preview: narrow-screen fix ---------------------------
   IMPORTANT: this block must stay at the end of the file. On a narrow
   phone screen, the unconstrained 'auto' price column could squeeze the
   minmax(0, 1fr) name/description column down to zero width — that's
   what minmax(0, ...) explicitly allows once the other columns' content
   needs more space than is available. This was fixed once already
   further up as a media query living right after the #ajaxSearchResults
   .image/.name/.description/.price rules it targets - but since a media
   query does not add specificity on its own, and every one of those base
   rules also carries !important, the later declaration in the file wins
   any tie regardless of which one is wrapped in a media query. Moving
   the override to physically come after those rules is what actually
   makes it win. Confirmed against a local render of the real markup
   before and after this change. */
@media (max-width: 599px) {
  #ajaxSearchResults > ul > li > a {
    grid-template-columns: 56px minmax(0, 1fr) !important;
  }

  #ajaxSearchResults .name,
  #ajaxSearchResults .model,
  #ajaxSearchResults .description,
  #ajaxSearchResults .price {
    grid-column: 2 !important;
  }

  #ajaxSearchResults .price {
    grid-row: auto !important;
    text-align: left !important;
    white-space: normal !important;
    margin-top: var(--space-1) !important;
  }

  #ajaxSearchResults .price-tax {
    font-size: var(--font-size-xs) !important;
  }

  #ajaxSearchResults > ul > li > a {
    gap: var(--space-1) var(--space-3) !important;
  }
}

/* Search + Ratgeber */
.richter-header__search-group {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);

  flex: 1 1 auto;
  min-width: 0;
  max-width: 700px;
}

.richter-header__search-group #search {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 620px;
}

.richter-header__ratgeber,
.richter-header__iconlink {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1.5px solid var(--color-border-strong);
  border-radius: 50%;

  color: var(--color-text-on-dark-muted);
  text-decoration: none;

  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.richter-header__ratgeber:hover,
.richter-header__iconlink:hover {
  color: #fff;
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.08);
}

/* Wishlist / compare live counters. Kept INSIDE the 40px circle so the expanding
   search field (z-index 30, same height) hides them completely, like the Ratgeber icon. */
.richter-header__badge {
  position: absolute;
  top: 0;
  right: 0;
  box-sizing: border-box;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  border: 2px solid var(--color-graphite);
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  line-height: 14px;
  text-align: center;
  pointer-events: none;
}

.richter-header__badge[hidden] {
  display: none;
}

.richter-header__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Logout sits right next to "Mein Konto": pull the pair a little closer together */
.richter-header__account + .richter-header__logout {
  margin-left: calc(var(--space-3) - var(--space-5));
}

.richter-header__search-group {
  position: relative;
}

.richter-header__search-group #search.is-active {
  position: static;
}

.richter-header__search-group #search.is-active .richter-search__field {
  position: absolute;
  top: 50%;
  left: 0;

  width: 100%;

  transform: translateY(-50%);

  z-index: 30;
}

/* Very narrow phones (<= 359px): the search pill shrinks to its magnifier icon so
   search + wishlist + compare + Ratgeber + cart fit in one row. The "Suche" text
   stays available to screen readers. */
@media (max-width: 359px) {
  .richter-search__toggle {
    padding: 0 var(--space-3);
  }

  .richter-search__toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .richter-header__search-group {
    gap: var(--space-2);
  }
}
