/* Beauté Omar 2.0 – Design-Tokens, Schriften, Basis-Elemente (seitenweit) */

@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/marcellus-400.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jost-400.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jost-500.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/jost-700.woff2") format("woff2");
}

:root {
  /* Markenfarbe: Buttons, Sterne, Rahmen, Logo (wie im Entwurf).
     Hinweis: weiße 13px-Schrift darauf = 3,68:1, WCAG AA verlangt 4,5:1. */
  --bo-brand: #e4572e;
  --bo-brand-hover: #c8431d;
  /* Flächen mit weißer Schrift (Buttons, Warenkorb): Mittelweg im selben Farbton,
     4,58:1 mit Weiß – erfüllt WCAG 1.4.3 / BFSG bei normaler Schriftgröße */
  --bo-btn: #d2441a;
  --bo-btn-hover: #b23812;
  /* dunklerer Ton derselben Farbe für kleine Texte und kleine Labels (≥ 4,5:1) */
  --bo-accent: #c4401b;
  --bo-accent-dark: #a3330f;
  --bo-accent-bright: var(--bo-brand);
  /* kleiner Akzenttext auf dunklem Grund (--bo-ink): 5,9:1 */
  --bo-accent-on-dark: #f08a65;
  --bo-accent-soft: #fdf0eb;
  --bo-ink: #1f2a33;
  --bo-muted: #5c6b77;
  --bo-surface: #eef3f7;
  --bo-line: #dce4ea;
  --bo-star-off: #7a8996;
  --bo-white: #ffffff;
  --bo-font-head: "Marcellus", Georgia, "Times New Roman", serif;
  --bo-font-text: "Jost", "Helvetica Neue", Arial, sans-serif;
  --bo-radius: 6px;
  --bo-radius-pill: 999px;
  --bo-gutter: 16px;
  --bo-max: 1200px;
  --bo-section: clamp(48px, 7vw, 88px);
  --bo-shadow: 0 1px 2px rgba(31, 42, 51, 0.04), 0 8px 24px rgba(31, 42, 51, 0.06);
}

/* Schriften: überschreibt die alte Dosis-Regel (die mit !important arbeitet) */
/* Nur Textelemente – keine pauschalen div/span, damit Symbolschriften
   (Flatsome-Sterne .star-rating, icon-*, Font Awesome) erhalten bleiben. */
body.bo-redesign,
body.bo-redesign :is(p, li, a, label, input, button, select, textarea, td, th) {
  font-family: var(--bo-font-text) !important;
}
/* Die alte Dosis-Regel trifft auch span – hier ohne Icons und Sterne überschreiben */
body.bo-redesign span:not([class*="icon"]):not(.fa):not([class*="fa-"]):not(.star-rating):not(.star-rating *) {
  font-family: var(--bo-font-text) !important;
}
body.bo-redesign :is(h1, h2, h3, h4, h5, h6, .bo-h1, .bo-h2, .bo-h3),
body.bo-redesign :is(h1, h2, h3, h4, h5, h6) :is(a, span) {
  font-family: var(--bo-font-head) !important;
  font-weight: 400;
  letter-spacing: 0;
}
body.bo-redesign {
  color: var(--bo-ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Farben mit :where() ohne Spezifität, damit Flatsome-Sektionen mit .dark
   (heller Text auf dunklem Grund) weiterhin gewinnen. */
:where(body.bo-redesign) :is(h1, h2, h3, h5) {
  color: var(--bo-ink);
}
:where(body.bo-redesign) :is(h4, h6) {
  color: var(--bo-accent);
}
:where(body.bo-redesign) a {
  color: var(--bo-ink);
}
:where(body.bo-redesign) a:hover {
  color: var(--bo-accent);
}

/* Flatsome-Buttons an die neue Optik anpassen */
body.bo-redesign .button.primary,
body.bo-redesign .single_add_to_cart_button,
body.bo-redesign .checkout-button {
  background-color: var(--bo-btn) !important;
  border-color: var(--bo-btn) !important;
  border-radius: var(--bo-radius-pill);
  color: var(--bo-white) !important;
  letter-spacing: 0.08em;
}
body.bo-redesign :is(.button.primary, .single_add_to_cart_button, .checkout-button):hover {
  background-color: var(--bo-btn-hover) !important;
  border-color: var(--bo-btn-hover) !important;
}

/* ---------- Gemeinsame Bausteine ---------- */
.bo-container {
  width: 100%;
  max-width: var(--bo-max);
  margin: 0 auto;
  padding: 0 var(--bo-gutter);
  box-sizing: border-box;
}
@media (min-width: 850px) {
  .bo-container {
    padding: 0 32px;
  }
}

.bo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--bo-accent);
  font-size: 12px !important;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Leitsatz „Nature meets Science“ in der Oberzeile hervorgehoben */
.bo-motto {
  font-weight: 700;
}
/* Oberzeile mit Leitsatz: bricht sie mobil um, sitzt der Punkt mittig zur ersten Zeile */
.bo-kicker--motto {
  align-items: flex-start;
}
.bo-kicker--motto .bo-dot {
  flex: none;
  margin-top: 0.5em;
  margin-top: calc((1lh - 6px) / 2);
}

.bo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 26px;
  border: 1.5px solid var(--bo-btn);
  border-radius: var(--bo-radius-pill);
  background: var(--bo-btn);
  color: var(--bo-white) !important;
  font-size: 13px !important;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  box-sizing: border-box;
}
.bo-btn:hover,
.bo-btn:focus-visible {
  background: var(--bo-btn-hover);
  border-color: var(--bo-btn-hover);
  color: var(--bo-white) !important;
}
.bo-btn:active {
  transform: scale(0.98);
}
.bo-btn--ghost {
  background: transparent;
  border-color: transparent;
  border-bottom: 1.5px solid var(--bo-brand);
  border-radius: 0;
  padding: 0 4px;
  color: var(--bo-ink) !important;
}
.bo-btn--ghost:hover,
.bo-btn--ghost:focus-visible {
  background: transparent;
  border-color: transparent;
  border-bottom-color: var(--bo-ink);
  color: var(--bo-accent) !important;
}
.bo-btn--outline {
  background: var(--bo-white);
  border-color: var(--bo-line);
  color: var(--bo-ink) !important;
}
.bo-btn--outline:hover,
.bo-btn--outline:focus-visible {
  background: var(--bo-white);
  border-color: var(--bo-ink);
  color: var(--bo-ink) !important;
}
.bo-btn--sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 12px !important;
}
.bo-btn.added::after {
  content: " ✓";
  margin-left: 6px;
}
.bo-btn.loading {
  opacity: 0.7;
}

.bo-link {
  display: inline-block;
  padding: 6px 0;
  color: var(--bo-accent) !important;
  font-size: 13px !important;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.bo-link:hover {
  color: var(--bo-ink) !important;
}

.bo-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--bo-radius-pill);
  background: var(--bo-btn);
  color: var(--bo-white);
  font-size: 10px !important;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.bo-admin-notice {
  margin: 12px 0;
  padding: 12px 16px;
  border: 1px dashed var(--bo-accent);
  border-radius: var(--bo-radius);
  background: var(--bo-accent-soft);
  color: var(--bo-ink);
  font-size: 14px;
}

body.bo-redesign :focus-visible {
  outline: 2px solid var(--bo-brand);
  outline-offset: 3px;
}

/* Nur für Screenreader sichtbar */
.bo-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .bo-btn,
  .bo-product,
  .bo-pathway,
  .bo-post {
    transition: none !important;
  }
}

/* ---------- Kontraste älterer Flatsome-Bausteine (WCAG 1.4.3) ----------
   Datum, Abzeichen und Kategorie stehen in den älteren Ratgeber-Artikeln. Ihre Farben bleiben sonst unter 4,5:1. */
body.bo-redesign .badge-outline .badge-inner,
body.bo-redesign :is(.post-date-day, .post-date-month) {
  color: var(--bo-accent) !important;
}
body.bo-redesign .badge.callout {
  opacity: 1 !important;
}
body.bo-redesign .callout-new-bg {
  background-color: var(--bo-btn) !important;
  color: var(--bo-white) !important;
  opacity: 1 !important;
}
body.bo-redesign .product-cat {
  color: var(--bo-muted) !important;
  opacity: 1 !important;
}
