/* Desktop-Kopf, Feinschliff (inc/kopf-desktop.php) – Mockup claude.ai/artifact/DFnj1Jyfc3ovEn42GHbUSd, Boards „Final“.
   Nur am Desktop (Astra ab 1025 px) und nur mit Body-Klasse wcbr-kopf2. Nichts darf umbrechen. */

.wcbr-sf__los { display: none; }

@media (min-width: 1025px) {
  /* Inhaltsbreite: Vertrauensleiste, Kopf und Menüzeile so breit wie der Seiteninhalt */
  /* Vertrauensleiste bleibt volle Breite – auf Inhaltsbreite überlappt der Versprechen-Text die Zahlarten */
  .wcbr-kopf2 #ast-desktop-header .site-primary-header-wrap,
  .wcbr-kopf2 #ast-desktop-header .site-below-header-wrap {
    max-width: var(--wcbr-k2-breite, 1240px); margin-left: auto; margin-right: auto;
    padding-left: var(--wcbr-k2-rand, 20px) !important; padding-right: var(--wcbr-k2-rand, 20px) !important; box-sizing: border-box;
  }
  /* Menüzeile bündig mit Logo und Inhalt (das Mega-Menü zentriert sonst), „Angebote“ ganz rechts */
  .wcbr-kopf2 #ast-desktop-header .ast-below-header-bar .main-header-menu { justify-content: flex-start !important; }
  .wcbr-kopf2 #ast-desktop-header .ast-below-header-bar .main-header-menu > .wcbr-nav-angebot:last-child { margin-left: auto !important; }
  .wcbr-kopf2 #ast-desktop-header .ast-below-header-bar .main-header-menu > .menu-item:first-child > .menu-link { padding-left: 0 !important; }
  .wcbr-kopf2 #ast-desktop-header .ast-primary-header-bar { border-bottom: 1px solid #6d0f2e; box-shadow: 0 2px 6px rgba(58, 43, 43, .12); }
  .wcbr-kopf2 #ast-desktop-header,
  .wcbr-kopf2 #ast-desktop-header .ast-above-header-bar,
  .wcbr-kopf2 #ast-desktop-header .ast-below-header-bar .main-header-menu > .menu-item > .menu-link { white-space: nowrap; }

  /* Suchfeld mit rundem Lupen-Knopf */
  .wcbr-kopf2 #ast-desktop-header .wcbr-sf__form { height: 48px; border-radius: 24px; align-items: center; padding-right: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
  .wcbr-kopf2 #ast-desktop-header .wcbr-sf__form:focus-within { box-shadow: 0 0 0 3px rgba(247, 240, 233, .65), 0 4px 14px rgba(0, 0, 0, .18); }
  .wcbr-kopf2 #ast-desktop-header .wcbr-sf .wcbr-sf__feld { height: 48px !important; font-size: 15px !important; padding: 0 12px 0 22px !important; text-overflow: ellipsis; }
  .wcbr-kopf2 #ast-desktop-header .wcbr-sf__los {
    display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0; padding: 0;
    border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #e6dbd2; box-sizing: border-box;
    background: #8e153c; color: #fff; cursor: pointer;
  }
  .wcbr-kopf2 #ast-desktop-header .wcbr-sf__los:hover { background: #6d0f2e; }
  .wcbr-kopf2 #ast-desktop-header .wcbr-sf__los:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .wcbr-kopf2 #ast-desktop-header .wcbr-sf__los svg { display: block; }
  .wcbr-kopf2 #ast-desktop-header .wcbr-sf__los svg, .wcbr-kopf2 #ast-desktop-header .wcbr-sf__los svg * { stroke: #fff !important; fill: none !important; }

  /* Rechts: Konto + Warenkorb als beschriftete Linien-Symbole */
  .wcbr-kopf2 #ast-desktop-header .site-header-primary-section-right { gap: 28px; flex-wrap: nowrap; }
  .wcbr-kopf2 .wcbr-k2-konto { position: relative; display: flex; align-items: center; }
  .wcbr-kopf2 .wcbr-k2-link {
    display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; margin: 0 -12px; border-radius: 22px; list-style: none; cursor: pointer;
    color: #fff !important; font: 500 14px/1 'Lexend Deca', system-ui, sans-serif; white-space: nowrap; text-decoration: none !important;
    transition: background-color .15s;
  }
  .wcbr-kopf2 .wcbr-k2-link::-webkit-details-marker { display: none; }
  /* Hover für Konto und Warenkorb gleich: helle Fläche, keine Unterstreichung */
  .wcbr-kopf2 .wcbr-k2-link:hover, .wcbr-kopf2 .wcbr-k2-menu[open] > .wcbr-k2-link { background: rgba(255, 255, 255, .12); }
  .wcbr-kopf2 .wcbr-k2-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }
  .wcbr-kopf2 .wcbr-k2-ico {
    flex: none; display: block; width: 24px; height: 24px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%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.3' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .wcbr-kopf2 .wcbr-k2-ico-wrap { position: relative; display: flex; flex: none; }
  .wcbr-kopf2 .wcbr-k2-ok {
    position: absolute; right: -4px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #8e153c;
    background: #f7f0e9; color: #2e7d32; display: flex; align-items: center; justify-content: center;
  }
  .wcbr-kopf2 .wcbr-k2-txt { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
  .wcbr-kopf2 .wcbr-k2-pfeil { flex: none; transition: transform .15s; }
  .wcbr-kopf2 .wcbr-k2-menu[open] .wcbr-k2-pfeil { transform: rotate(180deg); }
  .wcbr-kopf2 .wcbr-k2-pop {
    position: absolute; right: -12px; top: calc(100% + 14px); z-index: 1000; width: 270px; padding: 8px; box-sizing: border-box;
    background: #fff; color: #3a2b2b; border: 1px solid #ece1d8; border-radius: 14px; box-shadow: 0 10px 30px rgba(58, 43, 43, .18);
    display: flex; flex-direction: column; white-space: normal; text-align: left;
  }
  .wcbr-kopf2 .wcbr-k2-gruss { margin: 0 0 4px; padding: 12px 12px 12px; border-bottom: 1px solid #ece1d8; font-size: 14px; font-weight: 600; line-height: 1.35; color: #3a2b2b; }
  .wcbr-kopf2 .wcbr-k2-gruss small { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: #6b5e58; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wcbr-kopf2 .wcbr-k2-pop a { padding: 10px 12px; border-radius: 8px; font-size: 14px; color: #3a2b2b !important; text-decoration: none; }
  .wcbr-kopf2 .wcbr-k2-pop a:hover, .wcbr-kopf2 .wcbr-k2-pop a:focus-visible { background: #f7f0e9; }
  .wcbr-kopf2 .wcbr-k2-pop .wcbr-k2-ab { margin-top: 4px; border-top: 1px solid #ece1d8; border-radius: 0 0 8px 8px; color: #8e153c !important; }

  /* Astras Warenkorb: Betrag weg, Linien-Symbol, Abzeichen, Beschriftung */
  .wcbr-kopf2 #ast-desktop-header .ast-site-header-cart .cart-container,
  .wcbr-kopf2 #ast-desktop-header .ast-site-header-cart .ast-addon-cart-wrap {
    display: flex; align-items: center; gap: 8px; height: 44px; border: 0 !important; background: none !important; color: #fff !important; white-space: nowrap; text-decoration: none !important;
  }
  .wcbr-kopf2 #ast-desktop-header .ast-site-header-cart .cart-container { padding: 0 12px !important; margin: 0 -12px; border-radius: 22px; transition: background-color .15s; }
  .wcbr-kopf2 #ast-desktop-header .ast-site-header-cart .ast-addon-cart-wrap { padding: 0 !important; }
  .wcbr-kopf2 #ast-desktop-header .ast-site-header-cart .cart-container:hover { background: rgba(255, 255, 255, .12) !important; }
  .wcbr-kopf2 #ast-desktop-header .ast-woo-header-cart-info-wrap { display: none !important; }
  .wcbr-kopf2 #ast-desktop-header .ast-site-header-cart .ast-icon-shopping-cart {
    position: relative; display: block; width: 24px; height: 24px; margin: 0 !important; color: #fff;
  }
  .wcbr-kopf2 #ast-desktop-header .ast-site-header-cart .ast-icon-shopping-cart .ast-icon { display: none !important; }
  .wcbr-kopf2 #ast-desktop-header .ast-site-header-cart .ast-icon-shopping-cart::before {
    content: ""; position: absolute; inset: 0; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='17' cy='20' r='1.5'/%3E%3Cpath d='M3 4h2l2.2 10.8a1.6 1.6 0 0 0 1.6 1.3h7.5a1.6 1.6 0 0 0 1.6-1.2L21 8H6.2'/%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.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='17' cy='20' r='1.5'/%3E%3Cpath d='M3 4h2l2.2 10.8a1.6 1.6 0 0 0 1.6 1.3h7.5a1.6 1.6 0 0 0 1.6-1.2L21 8H6.2'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .wcbr-kopf2 #ast-desktop-header .ast-site-header-cart .ast-icon-shopping-cart::after {
    content: attr(data-cart-total) !important; position: absolute !important; top: -7px !important; right: -9px !important; left: auto !important; bottom: auto !important;
    min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; border: 0 !important;
    background: #f7f0e9 !important; color: #8e153c !important; font: 700 11px/18px 'Lexend Deca', system-ui, sans-serif !important; text-align: center;
    display: block !important; opacity: 1 !important; transform: none !important;
  }
  .wcbr-kopf2 #ast-desktop-header .ast-site-header-cart .ast-icon-shopping-cart[data-cart-total="0"]::after { display: none !important; }
  .wcbr-kopf2 #ast-desktop-header .ast-site-header-cart .ast-addon-cart-wrap::after {
    content: "Warenkorb"; margin-left: 4px; font: 500 14px/1 'Lexend Deca', system-ui, sans-serif; color: #fff;
  }
  .wcbr-kopf2 #ast-desktop-header .ast-site-header-cart .cart-container *,
  .wcbr-kopf2 #ast-desktop-header .ast-site-header-cart .cart-container:hover * { text-decoration: none !important; }
}

/* Schmaler Desktop: nur Symbole, nichts darf umbrechen */
@media (min-width: 1025px) and (max-width: 1099px) {
  .wcbr-kopf2 .wcbr-k2-txt, .wcbr-kopf2 .wcbr-k2-pfeil { display: none; }
  .wcbr-kopf2 #ast-desktop-header .ast-site-header-cart .ast-addon-cart-wrap::after { content: none; }
  .wcbr-kopf2 #ast-desktop-header .site-header-primary-section-right { gap: 16px; }
  .wcbr-kopf2 .wcbr-k2-link, .wcbr-kopf2 #ast-desktop-header .ast-site-header-cart .cart-container { min-width: 44px; justify-content: center; }
}
