/*
 * LowCarbBenni Aktions-Leiste (bw.css). Im Shop nur im Aktionsfenster geladen.
 * Bauform wie die Herbst-Leiste (section.xmass-banner), damit Höhe und Umbruch gleich
 * bleiben; nur Farben und die Zusatzzeilen sind neu.
 */

/* Leiste: dunkel, weiße Schrift (überstimmt additional.css, das mit !important arbeitet) */
body section.xmass-banner.bw-leiste {
  background: #141414 !important;
  background-image: linear-gradient(135deg, #141414 0%, #262626 55%, #141414 100%) !important;
  border: 0 !important;
  border-bottom: 2px solid #c9a24a !important;
}
body section.xmass-banner.bw-leiste,
body section.xmass-banner.bw-leiste p,
body section.xmass-banner.bw-leiste strong,
body section.xmass-banner.bw-leiste b,
body section.xmass-banner.bw-leiste u,
body section.xmass-banner.bw-leiste em,
body section.xmass-banner.bw-leiste section.countdown-timer,
body section.xmass-banner.bw-leiste section.countdown-timer .wrap b,
body section.xmass-banner.bw-leiste section.countdown-timer .wrap strong {
  color: #ffffff !important;
}
body section.xmass-banner.bw-leiste u {
  text-decoration-color: #c9a24a;
}
body section.xmass-banner.bw-leiste .bw-uhr {
  font-variant-numeric: tabular-nums;
  color: #f2d27a !important;
}
/* Eigenes Layout, EINZEILIG mit fester Höhe (Plan Abschnitt 4): gilt auch ohne das Shop-Hauptstylesheet
   (z. B. /backbuch/ lädt nur das LP-CSS). Überlänge endet mit "…". Auf dem Handy die Kurzfassung (leiste_kurz).
   Keine display-Regel mit !important auf der Leiste selbst, sonst greift das Ausblenden am Aktionsende nicht. */
body section.xmass-banner.bw-leiste {
  position: relative !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 52px !important;
  padding: 0 10px !important;
  margin: 0 !important;
  overflow: hidden !important;
}
body section.xmass-banner.bw-leiste.bw-weg,
[data-bw-ausblenden].bw-weg {
  display: none !important;
}
body section.xmass-banner.bw-leiste section.countdown-timer {
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
body section.xmass-banner.bw-leiste .wrap {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  height: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
body section.xmass-banner.bw-leiste .clocks {
  flex: 0 0 auto !important;
  text-align: center !important;
  line-height: 1.1 !important;
}
body section.xmass-banner.bw-leiste .clocks p {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  text-align: center !important;
}
body section.xmass-banner.bw-leiste .bw-uhr {
  font-size: 17px !important;
}
body section.xmass-banner.bw-leiste .bw-tage {
  font-size: 10px !important;
  line-height: 1.15 !important;
  opacity: 0.9;
  max-width: 118px !important;
  white-space: normal;
}
body section.xmass-banner.bw-leiste .content {
  flex: 0 1 auto !important;
  min-width: 0 !important;
}
body section.xmass-banner.bw-leiste .content p {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  text-align: left !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
body section.xmass-banner.bw-leiste .bw-kurz { display: none; }
@media (max-width: 600px) {
  body section.xmass-banner.bw-leiste .bw-hat-kurz .bw-lang { display: none; }
  body section.xmass-banner.bw-leiste .bw-hat-kurz .bw-kurz { display: inline; }
  /* Zwei Zeilen auf dem Handy (Bennis Wunsch 09.11.), Höhe der Leiste bleibt fest. */
  body section.xmass-banner.bw-leiste .content p.bw-zweizeilig {
    white-space: normal !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    max-height: 2.5em !important;
  }
  body section.xmass-banner.bw-leiste .content p.bw-zweizeilig .bw-kurz { white-space: nowrap; }
}
/* Sehr schmale Handys (320 px, Bennis Wortlaut 09.11. "Geschenkt: Advents-eBook" fett): etwas kleinere Schrift und
   engerer Abstand, gemessen in Chromium und WebKit (wie die Landingpages bis 374 px). */
@media (max-width: 359px) {
  body section.xmass-banner.bw-leiste { padding: 0 6px !important; }
  body section.xmass-banner.bw-leiste .wrap { gap: 8px !important; }
  body section.xmass-banner.bw-leiste .bw-uhr { font-size: 16px !important; }
  body section.xmass-banner.bw-leiste .content p.bw-zweizeilig { font-size: 12px !important; }
}
@media (min-width: 769px) {
  body section.xmass-banner.bw-leiste .bw-uhr { font-size: 19px !important; }
  body section.xmass-banner.bw-leiste .content p { font-size: 15px !important; }
}

/* ===== Leiste mit eBook-Cover (Bennis Wunsch 10.11.: "alles noch ein Stück nach links und seitlich das PDF-Cover schick hin,
   auf allen Seiten"). Alles hier gilt NUR für die Leiste mit Cover (Klasse bw-mit-cover, nur Black Week); andere Aktionen
   (Christmas Sale) behalten die Regeln oben unverändert (Codex GR21). Die Leiste bleibt 52 px hoch. */
/* Gleiche Schrift auf allen Seiten: /backbuch/ lädt nur das LP-CSS mit breiterer, fetter Schrift, dort lief der Text sonst ins "…". */
body section.xmass-banner.bw-leiste.bw-mit-cover,
body section.xmass-banner.bw-leiste.bw-mit-cover p {
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif !important;
  font-weight: 400 !important;
}
body section.xmass-banner.bw-leiste.bw-mit-cover .content p span,
body section.xmass-banner.bw-leiste.bw-mit-cover .content p u,
body section.xmass-banner.bw-leiste.bw-mit-cover .bw-tage {
  font-weight: 400 !important;
}
body section.xmass-banner.bw-leiste.bw-mit-cover strong,
body section.xmass-banner.bw-leiste.bw-mit-cover b,
body section.xmass-banner.bw-leiste.bw-mit-cover .bw-uhr {
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif !important;
  font-weight: 700 !important;
}
/* Cover rechts neben dem Text: leicht gekippt, goldener Rand, Schatten per box-shadow (kein Schattenfilter auf Bildern,
   WebKit malt damit schwarze Kästen). */
body section.xmass-banner.bw-leiste.bw-mit-cover .bw-leiste-cover {
  flex: 0 0 auto !important;
  display: block !important;
  width: 32px !important;
  height: 43px !important;
  max-width: none !important;
  margin: 0 0 0 6px !important;
  padding: 0 !important;
  border-radius: 2px !important;
  object-fit: cover;
  transform: rotate(6deg);
  box-shadow: 0 0 0 1px rgba(201, 162, 74, 0.85), 0 3px 8px rgba(0, 0, 0, 0.6);
}
/* Bis 767 px (überlappt bewusst mit der Handy-Regel, lückenlos auch bei Zoom, Codex GR22): die lange Zeile mit Cover liefe ins "…",
   deshalb die zwei Zeilen. */
@media (max-width: 767px) {
  body section.xmass-banner.bw-leiste.bw-mit-cover .bw-hat-kurz .bw-lang { display: none; }
  body section.xmass-banner.bw-leiste.bw-mit-cover .bw-hat-kurz .bw-kurz { display: inline; }
  body section.xmass-banner.bw-leiste.bw-mit-cover .content p.bw-zweizeilig {
    white-space: normal !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    max-height: 2.5em !important;
  }
  body section.xmass-banner.bw-leiste.bw-mit-cover .content p.bw-zweizeilig .bw-kurz { white-space: nowrap; }
}
@media (max-width: 600px) {
  /* Handy: Uhrspalte schmaler, damit Text und Cover nebeneinander passen. */
  body section.xmass-banner.bw-leiste.bw-mit-cover .wrap { gap: 9px !important; }
  body section.xmass-banner.bw-leiste.bw-mit-cover .bw-tage { max-width: 104px !important; }
  body section.xmass-banner.bw-leiste.bw-mit-cover .bw-leiste-cover { width: 29px !important; height: 39px !important; margin-left: 2px !important; }
}
@media (max-width: 359px) {
  body section.xmass-banner.bw-leiste.bw-mit-cover .bw-leiste-cover { display: none !important; }
  /* Wie die Basis für sehr schmale Handys (12 px, Abstand 8 px); die Regeln oben würden sie sonst überstimmen (N0-Befund F1,
     Android-Kennung bei 320 px ohne Reserve). */
  body section.xmass-banner.bw-leiste.bw-mit-cover .wrap { gap: 8px !important; }
  body section.xmass-banner.bw-leiste.bw-mit-cover .content p.bw-zweizeilig { font-size: 12px !important; }
}
/* Tablet hochkant (über 767 bis 880 px, Untergrenze als Verneinung der Regel oben, also lückenlos): lange Zeile plus Cover passt
   mit etwas kleinerer Schrift ohne Abschneiden. */
@media not all and (max-width: 767px) {
  @media (max-width: 880px) {
    body section.xmass-banner.bw-leiste.bw-mit-cover .content p { font-size: 12.5px !important; }
    body section.xmass-banner.bw-leiste.bw-mit-cover .wrap { gap: 9px !important; }
  }
}

/* Box (Startseite, Warenkorb). Einfache Fassung (Zentrale-Text ohne Absätze) */
section.bw-box {
  padding: 18px 12px;
}
section.bw-box .bw-box-inhalt {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 18px;
  border: 2px solid #141414;
  border-radius: 10px;
  background: #faf7f0;
  color: #1f1f1f;
  text-align: center;
  line-height: 1.45;
}
section.bw-box .bw-box-inhalt p {
  margin: 0 0 6px;
}
section.bw-box .bw-box-inhalt p:last-child {
  margin-bottom: 0;
}

/* Box im Look der Leiste (Bennis Auftrag 09.11.: "geiler aussehen"): dunkel mit Gold, Titel auf Goldband, Vorteile mit Symbol,
   Geschenk mit eBook-Cover, Hinweise klein. Selektoren mit section.bw-box, damit Theme-Regeln für ul/li/p nicht durchschlagen. */
section.bw-box .bw-box-inhalt.bw-box-neu {
  max-width: 680px;
  padding: 0;
  border: 1px solid #c9a24a;
  border-radius: 14px;
  overflow: hidden;
  background: #141414;
  background-image: linear-gradient(160deg, #1f1f1f 0%, #121212 100%);
  color: #ece6d8;
  text-align: left;
  line-height: 1.45;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
section.bw-box .bw-box-neu .bw-box-titel {
  margin: 0;
  padding: 11px 18px;
  background: linear-gradient(90deg, #c9a24a 0%, #e9cd7e 50%, #c9a24a 100%);
  color: #141414;
  font-size: 19px;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0.01em;
}
section.bw-box .bw-box-neu .bw-box-titel strong,
section.bw-box .bw-box-neu .bw-box-titel b {
  color: #141414;
  font-weight: 800;
}
section.bw-box .bw-box-neu ul.bw-box-punkte {
  list-style: none;
  margin: 0;
  padding: 6px 18px 2px;
}
section.bw-box .bw-box-neu li.bw-box-punkt {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid rgba(201, 162, 74, 0.22);
  font-size: 15.5px;
  line-height: 1.45;
  list-style: none;
}
section.bw-box .bw-box-neu li.bw-box-punkt::before,
section.bw-box .bw-box-neu li.bw-box-punkt::marker {
  content: none;
}
section.bw-box .bw-box-neu li.bw-box-punkt:last-child {
  border-bottom: 0;
}
section.bw-box .bw-box-neu .bw-box-text {
  flex: 1 1 auto;
  min-width: 0;
}
section.bw-box .bw-box-neu .bw-box-text strong,
section.bw-box .bw-box-neu .bw-box-text b {
  color: #ffffff;
  font-weight: 700;
}
section.bw-box .bw-box-neu .bw-box-symbol {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #c9a24a;
  border-radius: 50%;
  color: #f2d27a;
  background: rgba(201, 162, 74, 0.08);
}
section.bw-box .bw-box-neu .bw-box-symbol svg {
  width: 22px;
  height: 22px;
  display: block;
}
/* Geschenk ist der Hauptpunkt: leicht hervorgehoben, Cover statt Symbol */
section.bw-box .bw-box-neu li.bw-box-punkt--geschenk {
  margin: 4px -18px 0;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(201, 162, 74, 0.16) 0%, rgba(201, 162, 74, 0.04) 100%);
  border-bottom: 0;
  border-left: 3px solid #c9a24a;
}
section.bw-box .bw-box-neu .bw-box-cover {
  flex: 0 0 54px;
  width: 54px;
  height: 72px;
  max-width: none;
  margin: 0 0 0 -3px;
  border-radius: 3px 5px 5px 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(242, 210, 122, 0.55);
  transform: rotate(-4deg);
}
section.bw-box .bw-box-neu .bw-box-hinweise {
  padding: 11px 18px 15px;
  border-top: 1px solid rgba(201, 162, 74, 0.35);
  color: #bdb6a6;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
section.bw-box .bw-box-neu .bw-box-hinweise p {
  margin: 0 0 4px;
  color: inherit;
  font-size: inherit;
}
section.bw-box .bw-box-neu .bw-box-hinweise p:last-child {
  margin-bottom: 0;
}
@media (max-width: 480px) {
  section.bw-box { padding: 14px 10px; }
  section.bw-box .bw-box-neu .bw-box-titel { font-size: 17px; padding: 10px 14px; }
  section.bw-box .bw-box-neu ul.bw-box-punkte { padding: 4px 14px 2px; }
  section.bw-box .bw-box-neu li.bw-box-punkt { gap: 12px; font-size: 15px; padding: 12px 0; }
  section.bw-box .bw-box-neu li.bw-box-punkt--geschenk { margin: 4px -14px 0; padding: 13px 14px; }
  section.bw-box .bw-box-neu .bw-box-symbol { flex-basis: 40px; width: 40px; height: 40px; }
  section.bw-box .bw-box-neu .bw-box-cover { flex-basis: 48px; width: 48px; height: 64px; }
  section.bw-box .bw-box-neu .bw-box-hinweise { padding: 10px 14px 14px; font-size: 12.5px; }
}

/* Kassen-Satz */
p.bw-kasse {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px dashed #c9a24a;
  border-radius: 8px;
  background: #fffaf0;
  color: #1f1f1f;
  text-align: center;
  font-weight: 600;
}

/* Dankeseite */
.bw-geschenk-danke {
  margin: 18px auto;
  max-width: 640px;
  padding: 16px 18px;
  border: 2px solid #141414;
  border-radius: 10px;
  background: #faf7f0;
  text-align: center;
}
.bw-geschenk-danke p { margin: 0 0 10px; }
.bw-geschenk-danke .bw-geschenk-hinweis { font-size: 0.9em; opacity: 0.8; margin: 0; }

/* Generisch für Landingpages ohne Shop-Markup: <div class="bw-leiste-lp" data-bw-ausblenden> */
.bw-leiste-lp {
  background: #141414;
  color: #ffffff;
  text-align: center;
  padding: 8px 12px;
  line-height: 1.35;
  border-bottom: 2px solid #c9a24a;
}
.bw-leiste-lp [data-bw-uhr] {
  color: #f2d27a;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Startseiten-Bild (Zentrale: Bild "Black-Week-Bild"; eigener Commit, abwerfbar).
   Szene aus den abgenommenen Black-Week-Bannern (ctrlregen/leer-alle), gleiche Maße wie das Herbst-Bild,
   die weiße Überblendung aus additional.css bleibt, damit die Schriftfarben stimmen. */
body.bw-aktiv.bw-bild.xmass section.hero-main {
  background-image: url(/wp-content/themes/abn-shop/assets/img/bw-hero__mobile.webp) !important;
}
@media (min-width: 769px) {
  body.bw-aktiv.bw-bild.xmass section.hero-main {
    background-image: url(/wp-content/themes/abn-shop/assets/img/bw-hero__desktop.webp) !important;
  }
}
