/* Beauté Omar 2.0 – Flatsome-Header und neuer Footer (seitenweit) */

/* ---------- Top Bar: dunkel, kleine Versalien ---------- */
body.bo-redesign #top-bar,
body.bo-redesign .header-top {
  background-color: var(--bo-ink) !important;
  color: var(--bo-white);
  min-height: 36px;
}
body.bo-redesign .header-top :is(.nav > li > a, .html, span, p, a) {
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 11px !important;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
body.bo-redesign .header-top .nav > li > a:hover {
  color: var(--bo-white) !important;
}

/* ---------- Logo ----------
   Altes Design (Customizer-CSS): #logo{margin-top:-76px} und
   #logo img{max-height:116px} – das runde Logo hing in die Top Bar.
   Im neuen Design sitzt es normal in der Hauptleiste. */
body.bo-redesign #logo {
  margin: 0 28px 0 0 !important;
  width: auto !important;
  /* Flatsome lässt die Logo-Spalte schrumpfen – dann läuft die Wortmarke ins Menü */
  flex: none !important;
}
/* Menü wie im Entwurf rechtsbündig, direkt vor dem Warenkorb */
body.bo-redesign .header-main .hide-for-medium.flex-left {
  justify-content: flex-end;
  margin-right: 24px;
}
body.bo-redesign .header-main .hide-for-medium.flex-left .header-nav-main {
  justify-content: flex-end;
}
/* Raster: rundes Zeichen links über beide Zeilen, rechts Wortmarke (::after) und Leitsatz (::before) */
body.bo-redesign #logo a {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 14px;
  text-decoration: none;
}
body.bo-redesign #logo img {
  grid-row: 1 / span 2;
}
body.bo-redesign #logo img {
  /* Logo-SVG ohne eigene Maße: feste Breite, sonst mobil 0 px breit */
  width: 48px !important;
  height: auto !important;
  max-height: 56px !important;
}
@media (max-width: 849px) {
  body.bo-redesign #logo img {
    width: 40px !important;
  }
}
/* Wortmarke wie im Entwurf – das Logo-SVG enthält nur das runde Zeichen.
   „/ ""“: für Screenreader stumm (Name kommt aus dem alt-Text des Logos). */
body.bo-redesign #logo a::after {
  content: "Beauté Omar";
  content: "Beauté Omar" / "";
  color: var(--bo-brand);
  font-family: var(--bo-font-text) !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
  grid-column: 2;
  grid-row: 1;
  align-self: end;
}
/* Leitsatz der Marke als Claim unter der Wortmarke (Wunsch Frau Omar) – in DE und EN gleich */
body.bo-redesign #logo a::before {
  content: "Nature meets Science";
  content: "Nature meets Science" / "";
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin-top: 3px;
  color: var(--bo-ink);
  font-family: var(--bo-font-head) !important;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: none;
  white-space: nowrap;
}
@media (max-width: 849px) {
  body.bo-redesign #logo {
    margin: 0 !important;
  }
  body.bo-redesign #logo a {
    column-gap: 10px;
  }
  body.bo-redesign #logo a::after {
    font-size: 11px;
    letter-spacing: 0.24em;
  }
  body.bo-redesign #logo a::before {
    margin-top: 2px;
    font-size: 12px;
    letter-spacing: 0.04em;
  }
}
@media (max-width: 399px) {
  body.bo-redesign #logo a::after,
  body.bo-redesign #logo a::before {
    content: none;
  }
}

/* ---------- Hauptleiste ---------- */
body.bo-redesign .header-main {
  background: var(--bo-white);
  border-bottom: 1px solid var(--bo-line);
}
body.bo-redesign .header-bottom {
  background: var(--bo-white);
  border-bottom: 1px solid var(--bo-line);
}
body.bo-redesign .header-nav-main > li > a,
body.bo-redesign .header-bottom-nav > li > a {
  color: var(--bo-ink) !important;
  font-size: 14px !important;
  font-weight: 400;
  /* Flatsome „nav-uppercase“ ist im Customizer aktiv – Entwurf zeigt normale Schreibweise */
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}
body.bo-redesign .header-nav-main > li > a:hover,
body.bo-redesign .header-nav-main > li.active > a,
body.bo-redesign .header-nav-main > li.current-menu-item > a {
  color: var(--bo-accent) !important;
}
body.bo-redesign .nav-line-bottom > li > a::before,
body.bo-redesign .nav-line > li > a::before {
  background-color: var(--bo-brand);
}

/* Kopfzeile so breit wie der Inhalt (1200 px statt Flatsomes 1080 px): Logo und Warenkorb stehen
   bündig mit dem Inhalt, und Hauptmenü, Konto-Symbol und Warenkorb passen in eine Zeile */
body.bo-redesign .header-main .header-inner.container {
  max-width: var(--bo-max);
}
@media (min-width: 850px) {
  body.bo-redesign .header-main .header-inner.container {
    padding-left: 32px;
    padding-right: 32px;
  }
}
/* Mittlere Breiten (Tablet quer, kleine Laptops): Menü, Sprache, Suche, Konto und Warenkorb in einer
   Zeile – unter 1150 px ohne Schriftzug neben dem runden Logo (das Zeichen trägt den Namen),
   unter 1000 px mit schmalerem Rand und engeren Abständen im Menü */
@media (min-width: 850px) and (max-width: 1149px) {
  body.bo-redesign #logo a::after,
  body.bo-redesign #logo a::before {
    content: none;
  }
}
@media (min-width: 850px) and (max-width: 999px) {
  body.bo-redesign .header-main .header-inner.container {
    padding-left: 16px;
    padding-right: 16px;
  }
  body.bo-redesign #logo {
    margin-right: 12px !important;
  }
  body.bo-redesign .header-main .hide-for-medium.flex-left {
    margin-right: 8px;
  }
  body.bo-redesign .bo-nav__list {
    gap: 0 6px;
  }
}

/* Warenkorb als Akzent-Pill (Flatsome: Customizer > Header > Cart) */
body.bo-redesign .header-main .cart-item .header-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 18px !important;
  border-radius: var(--bo-radius-pill);
  background: var(--bo-btn);
  color: var(--bo-white) !important;
  font-size: 12px !important;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.bo-redesign .header-main .cart-item .header-cart-link :is(span, i, .cart-icon strong) {
  color: var(--bo-white) !important;
  border-color: var(--bo-white) !important;
}
body.bo-redesign .header-main .cart-item .header-cart-link:hover {
  background: var(--bo-btn-hover);
}
body.bo-redesign .header-main .cart-item .cart-icon strong::after {
  border-color: var(--bo-white) !important;
}

/* Suche dezent */
body.bo-redesign .header-search-form .search-field {
  border-radius: var(--bo-radius-pill);
  border-color: var(--bo-line);
  box-shadow: none;
}

/* ---------- Neuer Footer ([bo_footer] in einem UX-Block) ---------- */
.bo-footer {
  background: var(--bo-ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 28px;
}
.bo-footer a {
  color: rgba(255, 255, 255, 0.86) !important;
  text-decoration: none;
}
.bo-footer a:hover {
  color: var(--bo-white) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bo-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 20px;
}
.bo-footer__grid > :first-child {
  grid-column: 1 / -1;
}
@media (min-width: 700px) {
  .bo-footer__grid > :first-child {
    grid-column: auto;
  }
}
@media (min-width: 700px) {
  .bo-footer__grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}
.bo-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--bo-white) !important;
  font-size: 13px !important;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.bo-footer__ring {
  width: 34px;
  height: 34px;
  border: 2px solid var(--bo-accent-bright);
  border-radius: 50%;
  flex: none;
}
/* Leitsatz der Marke groß in der Überschriftenschrift */
.bo-footer__motto {
  margin: 22px 0 0;
  color: var(--bo-white);
  font-family: var(--bo-font-head) !important;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.15;
}
.bo-footer__claim {
  margin: 14px 0 0;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.6;
}
/* „Vertrag widerrufen“ (§ 356a BGB): als Knopf in Akzentfarbe, hebt sich von den Rechtstext-Links ab
   (Kontrast #f08a65 auf #1f2a33: 5,9 : 1) */
.bo-footer a.bo-footer__withdraw {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 20px;
  padding: 0 20px;
  border: 1.5px solid var(--bo-accent-on-dark);
  border-radius: var(--bo-radius-pill);
  color: var(--bo-accent-on-dark) !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.bo-footer a.bo-footer__withdraw:hover {
  background: var(--bo-accent-on-dark);
  color: var(--bo-ink) !important;
  text-decoration: none;
}
.bo-footer__title {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.55) !important;
  font-family: var(--bo-font-text) !important;
  font-size: 11px !important;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.bo-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bo-footer li {
  margin: 0 0 4px;
  font-size: 14px;
}
.bo-footer li a {
  display: inline-block;
  padding: 5px 0;
}
.bo-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}
.bo-footer__legal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
.bo-footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.bo-footer__legal li {
  margin: 0;
  font-size: 13px;
}

/* Flatsome-Absolute-Footer doppelt die Pflichtlinks – ausblenden, wenn der neue Footer da ist */
body.bo-redesign .bo-footer ~ .absolute-footer {
  display: none !important;
}

/* Alter Flatsome-Absolute-Footer passend einfärben, falls weiter aktiv */
body.bo-redesign .absolute-footer {
  background: var(--bo-ink) !important;
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
body.bo-redesign .absolute-footer a {
  color: rgba(255, 255, 255, 0.86) !important;
}
body.bo-redesign .absolute-footer a:hover {
  color: var(--bo-white) !important;
}

/* ---------- Mobil: Flatsome-Menü-Button und Off-Canvas-Menü ---------- */
body.bo-redesign .header-main .nav-icon > a,
body.bo-redesign .header-main .mobile-nav .icon-menu {
  color: var(--bo-ink) !important;
}
body.bo-redesign .header-main .nav-icon > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
body.bo-redesign .header-main .nav-icon .icon-menu {
  font-size: 1.6em;
}
body.bo-redesign .mobile-sidebar,
body.bo-redesign .off-canvas .sidebar-menu {
  background: var(--bo-white);
}
body.bo-redesign .nav-sidebar > li > a,
body.bo-redesign .off-canvas .nav-vertical > li > a {
  min-height: 48px;
  padding: 12px 24px;
  color: var(--bo-ink) !important;
  font-size: 16px !important;
  text-transform: none;
}
body.bo-redesign .nav-sidebar > li > a:hover,
body.bo-redesign .nav-sidebar > li.active > a {
  color: var(--bo-accent) !important;
}
body.bo-redesign .nav-sidebar > li + li {
  border-top: 1px solid var(--bo-line);
}

/* Warenkorb auf schmalen Bildschirmen kompakt */
@media (max-width: 549px) {
  body.bo-redesign .header-main .cart-item .header-cart-link {
    min-height: 40px;
    padding: 0 14px !important;
  }
}

/* Fokusrahmen auf dunklem Grund (WCAG 2.4.7) */
.bo-footer :focus-visible,
body.bo-redesign .header-top :focus-visible {
  outline-color: var(--bo-white) !important;
}

/* „Cookie-Einstellungen“ steht außerhalb der Liste – gleiche Klickfläche wie die anderen Links */
.bo-footer__legal-nav > a {
  display: inline-block;
  padding: 5px 0;
}

/* WordPress-Menüs (ul.menu): Flatsome setzt Trennlinien und eigene Abstände
   zwischen den Einträgen – im Footer wie die übrigen Links darstellen */
.bo-footer ul.menu > li,
.bo-footer ul.menu > li + li {
  border: 0 !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
}
.bo-footer ul.menu > li > a {
  display: inline-block;
  min-height: 0;
  padding: 5px 0 !important;
  font-size: 14px !important;
  line-height: 1.5;
  text-transform: none;
}
.bo-footer ul.menu > li > a::before,
.bo-footer ul.menu > li > a::after {
  display: none !important;
}

/* ---------- Sprachumschalter „DE | EN“ ---------- */
.bo-lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  white-space: nowrap;
}
.bo-lang a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px !important;
  color: var(--bo-muted) !important;
  font-size: 13px !important;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.bo-lang a:hover,
.bo-lang a:focus-visible {
  color: var(--bo-ink) !important;
}
.bo-lang a[aria-current="true"] {
  color: var(--bo-ink) !important;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--bo-brand);
  text-underline-offset: 5px;
}
.bo-lang__sep {
  color: var(--bo-line);
}
/* im Hauptmenü: Flatsome-Unterstrich-Effekt nicht für den Umschalter */
body.bo-redesign .header-nav-main > li.bo-lang-item > .bo-lang a::before {
  display: none;
}
body.bo-redesign .header-nav-main > li.bo-lang-item {
  margin-left: 8px;
}
/* im Handy-Menü */
.nav-sidebar > li.bo-lang-item {
  padding: 8px 18px;
}
/* in der dunklen Top Bar (falls per [bo_lang] dort platziert) */
.header-top .bo-lang a {
  min-height: 36px;
  color: rgba(255, 255, 255, 0.7) !important;
}
.header-top .bo-lang a[aria-current="true"],
.header-top .bo-lang a:hover {
  color: var(--bo-white) !important;
}

/* Trusted-Shops-Siegel schwebt über allem – ausblenden, solange Warenkorb oder Menü
   (Flatsome off-canvas) offen sind, sonst verdeckt es dort die Buttons */
html.has-off-canvas [id^="trustbadge-container"] {
  display: none !important;
}
