/* =====================================================================
   Kopfbereich neu – nur aktiv mit body.wcbr-header-neu
   Farben aus der CI: Bordeaux #8e153c / #6d0f2e, Creme #f9f3ed / #fdfaf7,
   Sand #efe6dc, Text #33302d, gedämpft #6b5e58
   ===================================================================== */
.wcbr-header-neu {
  --wcbr-bx: #8e153c; --wcbr-bx-d: #6d0f2e; --wcbr-sand: #efe6dc;
  --wcbr-cream: #fdfaf7; --wcbr-ink: #33302d; --wcbr-mute: #6b5e58; --wcbr-line: #e3d7cc;
  --wcbr-trust-h: 34px;
}

/* ---------- gemeinsame Bausteine ---------- */
.wcbr-header-neu .ast-header-html-1 .ast-builder-html-element p,
.wcbr-header-neu .ast-header-html-2 .ast-builder-html-element p { margin: 0; }
.wcbr-trust { display: inline-flex; align-items: center; gap: 14px; flex-wrap: nowrap; }
.wcbr-gbew { display: inline-flex; align-items: center; gap: 6px; color: var(--wcbr-ink) !important; font-weight: 600; text-decoration: none !important; white-space: nowrap; }
.wcbr-gbew__sterne { display: inline-flex; gap: 1px; color: #b07405; }
.wcbr-gbew__anz { text-decoration: underline; text-underline-offset: 2px; }
.wcbr-gbew:hover .wcbr-gbew__anz, .wcbr-gbew:focus-visible .wcbr-gbew__anz { color: var(--wcbr-bx); }
.wcbr-trust__usp { display: none; font-weight: 600; white-space: nowrap; color: var(--wcbr-ink) !important; text-decoration: none !important; }
.wcbr-gbew__kurz { display: none; }
.wcbr-trust__usp sup { font-size: .8em; top: -.35em; margin-left: 1px; }
.wcbr-header-neu a:focus-visible, .wcbr-header-neu button:focus-visible, .wcbr-header-neu input:focus-visible {
  outline: 2px solid var(--wcbr-bx); outline-offset: 2px; border-radius: 4px;
}
.wcbr-header-neu .ast-primary-header-bar a:focus-visible { outline-color: #fff; }

/* =====================================================================
   DESKTOP  (≥ 1025 px, darunter greift Astras Handy-Kopf)
   ===================================================================== */
@media (min-width: 1025px) {
  /* Vertrauensleiste scrollt weg, Kopf + Navigation bleiben stehen */
  .wcbr-header-neu #masthead { top: calc(var(--wcbr-trust-h) * -1); }
  .wcbr-header-neu.admin-bar #masthead { top: calc(32px - var(--wcbr-trust-h)); }
  /* Weggescrollte Vertrauensleiste HINTER der Admin-Leiste (z-index 99999) – sonst lag sie für Angemeldete darüber (Marcel 24.10.) */
  .wcbr-header-neu.admin-bar #masthead, .wcbr-header-neu.admin-bar #ast-fixed-header { z-index: 99990 !important; }
  /* … der Warenkorb-Seitenschieber muss dann darüber liegen, sonst verdeckt der Kopf dessen Titel und „versandkostenfrei“ (Marcel 24.10.) */
  .wcbr-header-neu.admin-bar .astra-cart-drawer { z-index: 99995 !important; }
  .wcbr-header-neu.admin-bar .astra-mobile-cart-overlay { z-index: 99992 !important; }

  /* 1) Vertrauensleiste */
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar {
    background: var(--wcbr-sand) !important; border-bottom: 1px solid var(--wcbr-line);
    min-height: var(--wcbr-trust-h); font-size: 12.5px; color: var(--wcbr-ink);
  }
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar,
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar .site-above-header-wrap,
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar .ast-builder-grid-row {
    min-height: var(--wcbr-trust-h) !important; height: var(--wcbr-trust-h); padding-top: 0 !important; padding-bottom: 0 !important;
  }
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar { box-sizing: content-box; }
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar .widget,
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar p { margin: 0 !important; font-size: 12.5px; line-height: 1.3; }
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar img { max-height: 22px; width: auto; display: block; }
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar .header-widget-area { margin: 0; padding: 0; }

  /* 2) Kopfleiste: Logo | Suche | Konto + Warenkorb */
  .wcbr-header-neu #ast-desktop-header .ast-primary-header-bar,
  .wcbr-header-neu #ast-desktop-header .ast-primary-header-bar .ast-builder-grid-row { min-height: 76px; }
  .wcbr-header-neu #ast-desktop-header .ast-primary-header-bar .site-primary-header-wrap { padding-top: 0; padding-bottom: 0; }
  .wcbr-header-neu #ast-desktop-header .ast-primary-header-bar .ast-builder-grid-row { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 40px; }
  .wcbr-header-neu #ast-desktop-header .site-header-primary-section-center { justify-content: center; }
  /* Logo-SVG hat keine eigene Größe: feste Höhe, Breite ergibt sich aus dem Seitenverhältnis */
  .wcbr-header-neu #ast-desktop-header .site-logo-img img,
  .wcbr-header-neu #ast-desktop-header img[src$="logo_font_weiss.svg"] { height: 58px !important; min-height: 0 !important; max-height: none !important; width: auto !important; max-width: none !important; }
  .wcbr-header-neu #ast-desktop-header .site-header-primary-section-left { min-width: 96px; }
  .wcbr-header-neu #ast-desktop-header .ast-header-search { width: 100%; max-width: 640px; }
  .wcbr-header-neu #ast-desktop-header .ast-header-search .ast-search-menu-icon,
  .wcbr-header-neu #ast-desktop-header .ast-header-search .aws-container { width: 100%; }
  .wcbr-header-neu #ast-desktop-header .aws-container .aws-search-form { height: 44px; border-radius: 22px; overflow: hidden; background: #fff; }
  .wcbr-header-neu #ast-desktop-header .aws-container .aws-search-field {
    height: 44px !important; border: 0 !important; border-radius: 22px !important; padding: 0 20px !important;
    font-size: 14px !important; color: var(--wcbr-ink) !important; background: #fff !important;
  }
  .wcbr-header-neu #ast-desktop-header .site-header-primary-section-right { gap: 26px; }
  .wcbr-header-neu #ast-desktop-header .ast-header-account-wrap, .wcbr-header-neu #ast-desktop-header .ast-site-header-cart { color: #f9f3ed; }
  .wcbr-header-neu .ast-header-account-wrap .ast-header-account-link, .wcbr-header-neu .ast-header-account-wrap svg { color: #f9f3ed !important; fill: #f9f3ed !important; }

  /* 3) Navigationszeile */
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar {
    background: var(--wcbr-cream) !important; border-bottom: 1px solid var(--wcbr-line) !important; border-top: 0 !important;
    min-height: 48px; box-shadow: none;
  }
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .ast-builder-grid-row { min-height: 48px; grid-template-columns: minmax(0, 1fr) auto; }
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .site-header-below-section-left { justify-content: flex-start; }
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .site-header-below-section-left > * { flex: 1 1 auto; min-width: 0; }
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .ast-main-header-bar-alignment { margin-left: 0 !important; flex: 1 1 auto; width: 100%; }
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-bar-navigation,
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .site-navigation,
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-navigation { display: flex; width: 100%; }
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .site-below-header-wrap { padding-top: 0; padding-bottom: 0; }
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .site-header-below-section-left,
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .ast-builder-menu-1,
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-bar-navigation,
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-navigation { width: 100%; }
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu {
    display: flex; align-items: center; justify-content: flex-start; gap: 30px; width: 100%; flex-wrap: nowrap;
  }
  .wcbr-header-neu .ast-builder-menu li.menu-item { min-width: 0 !important; }
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu > .menu-item > .menu-link {
    display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 2px !important;
    font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
    color: var(--wcbr-ink) !important; background: transparent !important;
    border-bottom: 2px solid transparent; box-sizing: border-box;
  }
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu > .menu-item:hover > .menu-link,
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu > .menu-item > .menu-link[aria-expanded="true"],
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu > .current-menu-item > .menu-link,
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu > .current-menu-ancestor > .menu-link {
    color: var(--wcbr-bx) !important; border-bottom-color: var(--wcbr-bx);
  }
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu .sub-arrow,
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu .ast-icon { color: currentColor; }

  /* Saison-Punkt und Angebote rechts */
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu > .wcbr-nav-saison { margin-left: auto; }
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu > .wcbr-nav-saison > .menu-link { color: var(--wcbr-bx) !important; }
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu > .wcbr-nav-saison > .menu-link::before {
    content: ""; width: 15px; height: 15px; flex: 0 0 auto; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 6.9 7.5.7-5.7 5 1.7 7.4L12 18.2 5.5 22l1.7-7.4-5.7-5 7.5-.7z'/%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'%3E%3Cpath d='M12 2l3 6.9 7.5.7-5.7 5 1.7 7.4L12 18.2 5.5 22l1.7-7.4-5.7-5 7.5-.7z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu > .wcbr-nav-angebot { margin-left: auto; }
  /* Astra nutzt ::before für den Hover-Unterstrich (absolut, unsichtbar) – hier zurücksetzen */
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu > .wcbr-nav-angebot > .menu-link::before,
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu > .wcbr-nav-saison > .menu-link::before {
    position: static !important; opacity: 1 !important; transform: none !important; visibility: visible !important; margin: 0 !important; bottom: auto !important; left: auto !important;
  }
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu > .wcbr-nav-saison ~ .wcbr-nav-angebot { margin-left: 0; }
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu > .wcbr-nav-angebot > .menu-link {
    height: 34px !important; padding: 0 16px 0 5px !important; border-radius: 17px; border-bottom: 0 !important;
    background: var(--wcbr-bx) !important; color: #fff !important; font-weight: 700;
  }
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu > .wcbr-nav-angebot > .menu-link::before {
    content: "%"; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--wcbr-bx);
    display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; letter-spacing: 0;
  }
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu > .wcbr-nav-angebot > .menu-link:hover,
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu > .wcbr-nav-angebot > .menu-link:focus-visible { background: var(--wcbr-bx-d) !important; }
  /* alte Pill-Optik des Mega-Moduls hier nicht doppelt */
  .wcbr-header-neu .main-header-menu .wcbr-dm-salepill > .menu-link { margin: 0; }

  .wcbr-header-neu .wcbr-trust__usp { display: none; }
  .wcbr-header-neu .wcbr-quick { display: none; }
}

/* Schmalere Notebooks und Fenster */
@media (min-width: 1025px) and (max-width: 1279px) {
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu { gap: 20px; }
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu > .menu-item > .menu-link { font-size: 12px; letter-spacing: .03em; }
  .wcbr-header-neu #ast-desktop-header .ast-primary-header-bar .ast-builder-grid-row { column-gap: 24px; }
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar .site-header-above-section-right img { display: none; }
}
/* Niedrige Bildschirme (Notebooks 768–800 px, auch gezoomt): Kopf kompakter */
@media (min-width: 1025px) and (max-height: 820px) {
  .wcbr-header-neu { --wcbr-trust-h: 30px; }
  .wcbr-header-neu #ast-desktop-header .ast-primary-header-bar,
  .wcbr-header-neu #ast-desktop-header .ast-primary-header-bar .ast-builder-grid-row { min-height: 64px; }
  .wcbr-header-neu #ast-desktop-header .site-logo-img img,
  .wcbr-header-neu #ast-desktop-header img[src$="logo_font_weiss.svg"] { height: 48px !important; }
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar,
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .ast-builder-grid-row { min-height: 44px; }
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu > .menu-item > .menu-link { height: 44px; }
  .wcbr-header-neu #ast-desktop-header .aws-container .aws-search-form,
  .wcbr-header-neu #ast-desktop-header .aws-container .aws-search-field { height: 40px !important; }
}

/* =====================================================================
   HANDY & TABLET (≤ 1024 px)
   ===================================================================== */
@media (max-width: 1024px) {
  /* Vertrauenszeile */
  .wcbr-header-neu #ast-mobile-header .ast-above-header-bar {
    background: var(--wcbr-sand) !important; border-bottom: 1px solid var(--wcbr-line); min-height: 30px;
  }
  .wcbr-header-neu #ast-mobile-header .ast-above-header-bar .ast-builder-grid-row { min-height: 30px; }
  .wcbr-header-neu #ast-mobile-header .ast-above-header-bar .site-above-header-wrap { padding-top: 0; padding-bottom: 0; min-height: 30px; }
  .wcbr-header-neu #ast-mobile-header .ast-header-html-1 { font-size: 11.5px; width: 100%; }
  .wcbr-header-neu #ast-mobile-header .wcbr-trust { width: 100%; justify-content: space-between; gap: 10px; }
  .wcbr-header-neu #ast-mobile-header .wcbr-trust__usp { display: inline; }
  .wcbr-header-neu #ast-mobile-header .wcbr-gbew__sterne svg:not(:first-child) { display: none; }

  /* Kopf: Menü | Logo | Konto + Warenkorb – Ziele mind. 44 px */
  .wcbr-header-neu #ast-mobile-header .ast-primary-header-bar .ast-builder-grid-row { grid-template-columns: 1fr auto 1fr; }
  .wcbr-header-neu #ast-mobile-header .site-header-primary-section-center { justify-content: center; }
  .wcbr-header-neu #ast-mobile-header .site-header-primary-section-right { justify-content: flex-end; }
  .wcbr-header-neu #ast-mobile-header .site-logo-img img,
  .wcbr-header-neu #ast-mobile-header img[src$="logo_font_weiss.svg"] { height: 42px !important; min-height: 0 !important; max-height: none !important; width: auto !important; max-width: none !important; }
  .wcbr-header-neu #ast-mobile-header .ast-mobile-menu-trigger-fill,
  .wcbr-header-neu #ast-mobile-header .menu-toggle { min-width: 44px; min-height: 44px; }

  /* feste Hoehe der Vertrauenszeile (Astra setzt 63px) */
  .wcbr-header-neu #ast-mobile-header .ast-above-header-bar,
  .wcbr-header-neu #ast-mobile-header .ast-above-header-bar .site-above-header-wrap,
  .wcbr-header-neu #ast-mobile-header .ast-above-header-bar .ast-builder-grid-row { min-height: 30px !important; height: 30px; padding: 0 !important; }
  .wcbr-header-neu #ast-mobile-header .ast-above-header-bar .ast-builder-grid-row { padding: 0 12px !important; }
  .wcbr-header-neu #ast-mobile-header .wcbr-gbew__anz { display: none; }
  .wcbr-header-neu #ast-mobile-header .wcbr-gbew__kurz { display: inline; }

  /* Kopfzeile: kompakt, Warenkorb nur Symbol + Anzahl */
  .wcbr-header-neu #ast-mobile-header .ast-primary-header-bar,
  .wcbr-header-neu #ast-mobile-header .ast-primary-header-bar .site-primary-header-wrap,
  .wcbr-header-neu #ast-mobile-header .ast-primary-header-bar .ast-builder-grid-row { min-height: 58px !important; padding-top: 0 !important; padding-bottom: 0 !important; }
  .wcbr-header-neu #ast-mobile-header .ast-woo-header-cart-info-wrap { display: none !important; }
  .wcbr-header-neu #ast-mobile-header .site-header-primary-section-right { gap: 4px; }
  .wcbr-header-neu #ast-mobile-header .ast-header-account, .wcbr-header-neu #ast-mobile-header .ast-header-woo-cart { min-width: 44px; display: flex; justify-content: center; }

  /* Suche immer sichtbar (Astra blendet die untere Zeile auf dem Handy sonst aus) */
  .wcbr-header-neu #ast-mobile-header .ast-below-header-bar { display: block !important; background: var(--wcbr-bx) !important; border: 0 !important; }
  .wcbr-header-neu #ast-mobile-header .ast-below-header-bar .site-below-header-wrap,
  .wcbr-header-neu #ast-mobile-header .ast-below-header-bar .ast-builder-grid-row { min-height: 0 !important; padding: 0 !important; }
  .wcbr-header-neu #ast-mobile-header .ast-below-header-bar .ast-builder-grid-row { padding: 0 12px 12px !important; grid-template-columns: minmax(0, 1fr); }
  .wcbr-header-neu #ast-mobile-header .ast-below-header-bar .header-widget-area,
  .wcbr-header-neu #ast-mobile-header .ast-below-header-bar .widget { width: 100%; margin: 0 !important; padding: 0 !important; }
  .wcbr-header-neu #ast-mobile-header .ast-below-header-bar p:empty { display: none; }
  /* Astra zeigt das Such-Widget nur bis 544 px – am Tablet (545–1024 px) blieb die Zeile leer (Marcel 19.10.) */
  .wcbr-header-neu #ast-mobile-header .ast-below-header-bar .header-widget-area[data-section="sidebar-widgets-header-widget-4"] { display: block !important; }
  .wcbr-header-neu #ast-mobile-header .ast-below-header-bar .ast-builder-grid-row { max-width: 720px; margin: 0 auto; }
  .wcbr-header-neu #ast-mobile-header .aws-container .aws-search-form { height: 44px; border-radius: 22px; overflow: hidden; background: #fff; }
  .wcbr-header-neu #ast-mobile-header .aws-container .aws-search-field {
    height: 44px !important; border: 0 !important; border-radius: 22px !important; padding: 0 18px !important; font-size: 16px !important; background: #fff !important; color: var(--wcbr-ink) !important;
  }

  /* Schnellzugriff */
  .wcbr-quick { background: var(--wcbr-cream); border-bottom: 1px solid var(--wcbr-line); }
  .wcbr-quick ul { list-style: none; margin: 0; padding: 10px 12px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .wcbr-quick ul::-webkit-scrollbar { display: none; }
  .wcbr-quick li { flex: 0 0 auto; margin: 0; }
  .wcbr-quick a {
    display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 20px;
    background: #fff; border: 1px solid var(--wcbr-line); color: var(--wcbr-ink) !important; font-size: 13.5px; font-weight: 600; white-space: nowrap; text-decoration: none;
  }
  /* EWWW packt das Bild in <picture> – sonst schrumpft es im Flex-Chip zum Oval */
  .wcbr-quick a picture { display: block; flex: 0 0 28px; width: 28px; height: 28px; }
  .wcbr-quick a img { display: block; width: 28px !important; height: 28px !important; border-radius: 50%; object-fit: cover; margin: 0 !important; }
  .wcbr-quick a:has(img) { padding-left: 5px !important; }
  .wcbr-quick a.wcbr-quick__sale { background: var(--wcbr-bx); border-color: var(--wcbr-bx); color: #fff !important; padding-left: 5px; }
  .wcbr-quick a.wcbr-quick__sale span { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--wcbr-bx); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }

  /* Menü-Schublade: hell, große Zeilen, Bilder */
  .wcbr-header-neu .ast-mobile-popup-drawer .ast-mobile-popup-inner { background: var(--wcbr-cream) !important; }
  .wcbr-header-neu .ast-mobile-popup-drawer .ast-mobile-popup-header { background: var(--wcbr-bx); }
  .wcbr-header-neu .ast-mobile-popup-drawer .ast-mobile-popup-header .menu-toggle-close { color: #fff; min-width: 44px; min-height: 44px; }
  .wcbr-header-neu #ast-hf-mobile-menu .menu-item > .menu-link {
    color: var(--wcbr-ink) !important; background: transparent !important; min-height: 52px; display: flex; align-items: center; gap: 12px;
    font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--wcbr-sand) !important;
  }
  .wcbr-header-neu #ast-hf-mobile-menu > .menu-item > .menu-link { font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .wcbr-header-neu #ast-hf-mobile-menu > .menu-item.wcbr-nav-angebot > .menu-link,
  .wcbr-header-neu #ast-hf-mobile-menu > .menu-item.wcbr-nav-saison > .menu-link { color: var(--wcbr-bx) !important; }
  .wcbr-header-neu #ast-hf-mobile-menu .sub-menu { background: #fffdfb !important; }
  .wcbr-header-neu #ast-hf-mobile-menu .sub-menu .menu-link { color: var(--wcbr-ink) !important; }
  .wcbr-header-neu #ast-hf-mobile-menu .ast-menu-toggle { color: var(--wcbr-mute) !important; min-width: 44px; min-height: 44px; }
  .wcbr-mnav-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }

  /* Kacheln oben in der Schublade */
  /* Schublade: Konto + Warenkorb ganz oben */
  .wcbr-mkonto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
  .wcbr-mkonto a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 12px; border-radius: 14px;
    background: #fff; border: 1px solid #e6dbd2; color: var(--wcbr-bx) !important; font-size: 15px; font-weight: 700; text-decoration: none; }
  .wcbr-mkonto svg { flex: 0 0 auto; }
  .wcbr-mkonto__n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--wcbr-bx); color: #fff;
    font-size: 12px; line-height: 22px; text-align: center; box-sizing: border-box; }
  .wcbr-mkonto__n[hidden] { display: none; }
  /* Kopf: Konto und Warenkorb gleich groß und auf einer Linie (44 × 44, Symbol 22 px) */
  .wcbr-header-neu #ast-mobile-header .ast-header-account-link,
  .wcbr-header-neu #ast-mobile-header .ast-header-woo-cart .cart-container { display: flex !important; align-items: center; justify-content: center; width: 44px; height: 44px; }
  .wcbr-header-neu #ast-mobile-header .ast-header-account svg { width: 22px !important; height: 22px !important; }
  .wcbr-header-neu #ast-mobile-header #ast-cart-svg { width: 24px !important; height: 22px !important; }
  .wcbr-header-neu #ast-mobile-header .ast-header-woo-cart .ast-addon-cart-wrap { display: flex; align-items: center; padding: 0 !important; }
  .wcbr-header-neu #ast-mobile-header .ast-header-woo-cart .ast-icon-shopping-cart { display: flex; align-items: center; line-height: 1; }
  .wcbr-mkach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .wcbr-mkach a { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 92px; padding: 12px 14px; border-radius: 14px; box-sizing: border-box; color: #fff !important; text-decoration: none; overflow: hidden; }
  .wcbr-mkach__sale { background: var(--wcbr-bx); }
  .wcbr-mkach__sale small { display: block; font-size: 12px; font-weight: 500; opacity: .92; }
  .wcbr-mkach__sale > span:last-child { font-size: 15px; font-weight: 700; }
  .wcbr-mkach__pct { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--wcbr-bx); display: flex; align-items: center; justify-content: center; font-weight: 800; }
  .wcbr-mkach__hl { background: var(--wcbr-bx-d) center / cover no-repeat; justify-content: flex-end !important; }
  .wcbr-mkach__hl::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(60,10,25,0) 30%, rgba(60,10,25,.85)); }
  .wcbr-mkach__hl span { position: relative; font-size: 15px; font-weight: 700; }
  .wcbr-mkach__note { grid-column: 1 / -1; margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--wcbr-mute); }
  .wcbr-mkach__note a { color: var(--wcbr-bx) !important; text-decoration: underline; }
}

/* Handy: Suchzeile blendet sich beim Runterscrollen aus und beim Hochscrollen wieder ein
   (Wunsch Marcel, 19.10.2026 – mehr Platz für Produkte). Ohne Layout-Sprung: Die Suchzeile
   liegt außerhalb des Flusses direkt unter der roten Zeile, ein fester Abstand (margin)
   hält ihren Platz frei; ein-/ausgeblendet wird nur per transform. Das Umschalten der
   Klasse wcbr-suche-weg macht ein kleines Skript in inc/header-design.php. */
@media (max-width: 1024px) {
  .wcbr-header-neu #masthead { margin-bottom: 60px; }
  .wcbr-header-neu #ast-mobile-header { position: relative; }
  .wcbr-header-neu #ast-mobile-header .ast-above-header-wrap,
  .wcbr-header-neu #ast-mobile-header .ast-main-header-wrap { position: relative; z-index: 2; }
  .wcbr-header-neu #ast-mobile-header .ast-below-header-wrap {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 1; height: 60px;
    background: var(--wcbr-bx); transition: transform .22s ease, visibility 0s linear 0s;
  }
  .wcbr-header-neu.wcbr-suche-weg #ast-mobile-header .ast-below-header-wrap {
    transform: translateY(-100%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wcbr-header-neu * { scroll-behavior: auto !important; }
  .wcbr-header-neu #ast-mobile-header .ast-below-header-wrap { transition: none !important; }
}

/* =====================================================================
   Feinschliff nach Test (18.10.): Astra setzt Zeilenhöhen fest – hier
   überschreiben; Leiste einzeilig zentriert; Navigation zentriert
   ===================================================================== */
@media (min-width: 1025px) {
  .wcbr-header-neu { --wcbr-trust-h: 36px; --wcbr-head-h: 76px; --wcbr-nav-h: 48px; }
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar,
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar .site-above-header-wrap,
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar .ast-builder-grid-row {
    height: var(--wcbr-trust-h) !important; min-height: var(--wcbr-trust-h) !important; box-sizing: border-box !important;
  }
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar .site-header-section,
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar .ast-builder-layout-element,
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar .header-widget-area,
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar .widget,
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar .ast-builder-html-element {
    display: flex; align-items: center; height: 100%; margin: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important;
  }
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar p { margin: 0 !important; padding: 0 !important; line-height: 1.3 !important; }
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar .site-header-above-section-right img { max-height: none !important; height: 26px !important; width: auto !important; }

  .wcbr-header-neu #ast-desktop-header .ast-primary-header-bar,
  .wcbr-header-neu #ast-desktop-header .ast-primary-header-bar .site-primary-header-wrap,
  .wcbr-header-neu #ast-desktop-header .ast-primary-header-bar .ast-builder-grid-row {
    min-height: var(--wcbr-head-h) !important; height: var(--wcbr-head-h) !important; padding-top: 0 !important; padding-bottom: 0 !important; box-sizing: border-box !important;
  }
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar,
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .site-below-header-wrap,
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .ast-builder-grid-row {
    min-height: var(--wcbr-nav-h) !important; height: var(--wcbr-nav-h) !important; padding-top: 0 !important; padding-bottom: 0 !important; box-sizing: border-box !important;
  }
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu > .menu-item > .menu-link { height: var(--wcbr-nav-h); }
  /* Navigation zentriert, Angebote-Pille reiht sich ein */
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu { justify-content: center !important; gap: 34px; }
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu > .wcbr-nav-angebot,
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu > .wcbr-nav-saison { margin-left: 0 !important; }
}
@media (min-width: 1025px) and (max-width: 1279px) {
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu { gap: 22px; }
}
@media (min-width: 1025px) and (max-height: 820px) {
  .wcbr-header-neu { --wcbr-trust-h: 30px; --wcbr-head-h: 64px; --wcbr-nav-h: 44px; }
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar .site-header-above-section-right img { height: 22px !important; }
}

@media (max-width: 1024px) {
  .wcbr-header-neu #ast-mobile-header .ast-above-header-bar,
  .wcbr-header-neu #ast-mobile-header .ast-above-header-bar .site-above-header-wrap,
  .wcbr-header-neu #ast-mobile-header .ast-above-header-bar .ast-builder-grid-row {
    height: 32px !important; min-height: 32px !important; box-sizing: border-box !important; padding-top: 0 !important; padding-bottom: 0 !important;
  }
  .wcbr-header-neu #ast-mobile-header .ast-above-header-bar .ast-builder-layout-element,
  .wcbr-header-neu #ast-mobile-header .ast-above-header-bar .ast-builder-html-element { display: flex; align-items: center; height: 100%; padding: 0 !important; margin: 0 !important; width: 100%; }
  .wcbr-header-neu #ast-mobile-header .ast-primary-header-bar .ast-builder-grid-row { padding-right: 8px !important; padding-left: 4px !important; }
  .wcbr-header-neu #ast-mobile-header .ast-header-account svg,
  .wcbr-header-neu #ast-mobile-header .ast-header-account svg path { fill: #f9f3ed !important; color: #f9f3ed !important; }
  /* Schublade: doppelte Such-Box aus Widget 1 ausblenden, Untermenü lesbar */
  .wcbr-header-neu #ast-mobile-popup .wp-block-search { display: none !important; }
  .wcbr-header-neu #ast-hf-mobile-menu .sub-menu .menu-link .menu-text { color: inherit !important; }
  .wcbr-header-neu #ast-hf-mobile-menu .sub-menu .menu-link > .ast-icon.icon-arrow { display: none !important; }
  .wcbr-header-neu #ast-hf-mobile-menu .sub-menu .menu-link { padding-left: 20px !important; }
}

/* ---------- Feinschliff 2 (18.10.) ---------- */
/* Suchfeld: Astra setzt dem Eingabefeld 180px – Platzhalter wurde abgeschnitten */
.wcbr-header-neu .aws-container .aws-search-field { width: 100% !important; max-width: none !important; box-sizing: border-box !important; }

@media (min-width: 1025px) {
  /* Vertrauensleiste: Mitte nimmt den Restplatz, nichts bricht um */
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar .ast-builder-grid-row { grid-template-columns: auto minmax(0, 1fr) auto !important; column-gap: 24px; }
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar #block-85 p,
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar .site-header-above-section-center p { white-space: nowrap; }

  /* Hauptpunkte in der Hausschrift Amatic SC (wie Überschriften), Pille bleibt Raleway */
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu > .menu-item:not(.wcbr-nav-angebot) > .menu-link {
    font-family: 'Amatic SC', cursive !important; font-size: 25px !important; font-weight: 700 !important;
    letter-spacing: .03em !important; text-transform: none !important; line-height: 1 !important;
  }
}
@media (min-width: 1025px) and (max-width: 1279px) {
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu > .menu-item:not(.wcbr-nav-angebot) > .menu-link { font-size: 22px !important; }
  .wcbr-header-neu #ast-desktop-header .wcbr-gbew__anz { display: none; }
  .wcbr-header-neu #ast-desktop-header .wcbr-gbew__kurz { display: inline; }
  .wcbr-header-neu #ast-desktop-header .ast-above-header-bar p { font-size: 11.5px !important; }
}
@media (min-width: 1025px) and (max-height: 820px) {
  .wcbr-header-neu #ast-desktop-header .ast-below-header-bar .main-header-menu > .menu-item:not(.wcbr-nav-angebot) > .menu-link { font-size: 23px !important; }
}

@media (max-width: 1024px) {
  .wcbr-header-neu #ast-mobile-header .ast-header-account svg * { fill: #f9f3ed !important; }
  /* Schublade: Konto/Warenkorb stehen schon im Kopf */
  .wcbr-header-neu #ast-mobile-popup [data-section="sidebar-widgets-header-widget-1"] { display: none !important; }
  .wcbr-header-neu #ast-hf-mobile-menu .sub-menu .menu-link .menu-text { display: flex; align-items: center; gap: 12px; text-transform: none !important; font-size: 15px; font-weight: 600; letter-spacing: 0; }
  .wcbr-mnav-img { margin: 0 !important; }
}

/* Menü-Schublade bei eingeloggten Admins: WordPress lässt die Admin-Leiste unter 600 px
   mitscrollen, Astra rückt die Schublade aber fest um 46 px nach unten – oben blieb ein
   Streifen der Seite sichtbar (Marcel 19.10.). Für Kunden ohne Admin-Leiste ohne Wirkung. */
@media (max-width: 600px) {
  .wcbr-header-neu.admin-bar #ast-mobile-popup,
  .wcbr-header-neu.admin-bar #ast-mobile-popup .ast-mobile-popup-inner { top: 0 !important; height: 100% !important; }
}

/* Zahlarten-Logos in der Vertrauensleiste: nur Handy/Tablet ab 420 px – darunter reicht der Platz nicht
   (Bewertung + Versprechen brauchen 277 px). Desktop zeigt Widget 3. (Marcel 19.10.) */
.wcbr-trust__pay { display: none !important; }
@media (min-width: 420px) and (max-width: 1024px) {
  .wcbr-header-neu #ast-mobile-header .wcbr-trust { justify-content: flex-start; }
  .wcbr-header-neu #ast-mobile-header .wcbr-trust__pay { display: block !important; height: 21px !important; width: auto !important; max-width: none; margin-left: auto; flex: 0 0 auto; }
}

/* Menü-Schublade 922–1024 px: Die Farben stehen im Customizer-CSS („Zusätzliches CSS“) nur bis 921 px,
   der neue Kopf zeigt das Handy-Menü aber bis 1024 px – dort war die Schrift dunkel auf Bordeaux und
   „Angebote“ unsichtbar (Marcel 19.10.). Gleiche Regeln für diesen Bereich. */
@media (min-width: 922px) and (max-width: 1024px) {
  .wcbr-header-neu .ast-mobile-popup-drawer .main-header-menu a,
  .wcbr-header-neu .ast-mobile-popup-drawer .main-header-menu span,
  .wcbr-header-neu .ast-mobile-popup-drawer .menu-item a,
  .wcbr-header-neu .ast-mobile-popup-drawer .menu-item-has-children > .ast-menu-toggle { color: #fff !important; }
  .wcbr-header-neu .ast-mobile-popup-drawer .ast-menu-toggle,
  .wcbr-header-neu .ast-mobile-popup-drawer .ast-menu-toggle:focus,
  .wcbr-header-neu .ast-mobile-popup-drawer .ast-menu-toggle:hover,
  .wcbr-header-neu .ast-mobile-popup-drawer .ast-menu-toggle:active { background: transparent !important; border: none !important; outline: none !important; box-shadow: none !important; }
  .wcbr-header-neu .ast-mobile-popup-drawer .ast-menu-toggle::before,
  .wcbr-header-neu .ast-mobile-popup-drawer .ast-menu-toggle::after { display: none !important; content: none !important; }
  .wcbr-header-neu .ast-mobile-popup-drawer,
  .wcbr-header-neu .ast-mobile-popup-drawer .ast-mobile-popup-inner { scrollbar-width: none !important; }
}

/* Handy-Kopf (19.10.2026, Marcel): Trust-Zeile mittig; Konto + Warenkorb als gleiche Linien-Symbole
   (wie im Entwurf „Mobiles Menü La Perla“), direkt nebeneinander, Randabstand rechts = links. */
@media (max-width: 1024px) {
  .wcbr-header-neu #ast-mobile-header .ast-above-header-bar .ast-builder-layout-element { flex: 1 1 auto; justify-content: center; }
  .wcbr-header-neu #ast-mobile-header .ast-above-header-bar .ast-header-html,
  .wcbr-header-neu #ast-mobile-header .ast-above-header-bar .ast-builder-html-element { display: flex; justify-content: center; width: 100%; }
  .wcbr-header-neu #ast-mobile-header .wcbr-trust { justify-content: center !important; width: auto !important; }

  .wcbr-header-neu #ast-mobile-header .ast-header-account svg,
  .wcbr-header-neu #ast-mobile-header #ast-cart-svg { display: none !important; }
  .wcbr-header-neu #ast-mobile-header .ast-header-account-link::before,
  .wcbr-header-neu #ast-mobile-header .ast-icon-shopping-cart::before {
    content: ""; display: block; width: 26px; height: 26px; background: #f9f3ed;
    -webkit-mask: var(--wcbr-ic) center / contain no-repeat; mask: var(--wcbr-ic) center / contain no-repeat;
  }
  .wcbr-header-neu #ast-mobile-header .ast-header-account-link {
    --wcbr-ic: 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.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.6'/%3E%3Cpath d='M4.5 20c1.4-3.4 4.2-5 7.5-5s6.1 1.6 7.5 5'/%3E%3C/svg%3E");
  }
  .wcbr-header-neu #ast-mobile-header .ast-icon-shopping-cart {
    position: relative;
    --wcbr-ic: 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.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.2 11.2a1.6 1.6 0 001.6 1.3h8.6a1.6 1.6 0 001.6-1.2L21 8H6'/%3E%3Ccircle cx='9.5' cy='20' r='1.4'/%3E%3Ccircle cx='17.5' cy='20' r='1.4'/%3E%3C/svg%3E");
  }
  /* Burger im gleichen Linien-Stil wie Konto und Warenkorb (statt Astras gefülltem Icon), Marcel 20.10.2026 */
  .wcbr-header-neu #ast-mobile-header .menu-toggle .mobile-menu-toggle-icon svg { display: none !important; }
  .wcbr-header-neu #ast-mobile-header .menu-toggle .mobile-menu-toggle-icon { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; }
  .wcbr-header-neu #ast-mobile-header .menu-toggle .mobile-menu-toggle-icon::before {
    content: ""; display: block; width: 26px; height: 26px; background: #f9f3ed;
    -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.1' stroke-linecap='round'%3E%3Cpath d='M4 6.5h16M4 12h16M4 17.5h16'/%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.1' stroke-linecap='round'%3E%3Cpath d='M4 6.5h16M4 12h16M4 17.5h16'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .wcbr-header-neu #ast-mobile-header .site-header-primary-section-right { gap: 0 !important; padding-right: 0 !important; margin-right: 0; }
  /* Anzahl-Badge näher ans Symbol – ragte bei 390 px über den Bildschirmrand (Marcel, iPhone) */
  .wcbr-header-neu #ast-mobile-header .ast-icon-shopping-cart::after { right: -9px !important; top: -9px !important; }
  .wcbr-header-neu #ast-mobile-header .site-header-primary-section-right > * { margin: 0 !important; padding: 0 !important; }
  .wcbr-header-neu #ast-mobile-header .ast-header-account-link,
  .wcbr-header-neu #ast-mobile-header .ast-header-woo-cart .cart-container { width: 44px !important; height: 44px !important; }
}

/* Trust-Zeile: Normalziffern – Raleway setzt sonst Mediävalziffern, „4,9“ stand tiefer als „Google“.
   Zahlarten am Handy ab 430 px größer (120 × 24 statt 105 × 21), darunter reicht der Platz nicht. */
.wcbr-trust, .wcbr-trust * { font-variant-numeric: lining-nums; }
@media (min-width: 430px) and (max-width: 1024px) {
  .wcbr-header-neu #ast-mobile-header .wcbr-trust__pay { width: 120px !important; height: 24px !important; }
  .wcbr-header-neu #ast-mobile-header .wcbr-trust { gap: 10px !important; }
}
