/* ============================================================
   ClickWhale Black Friday – EINGEBETTETE Styles fuer clickwhale.pro
   (Astra-basiertes ClickWhale-Theme).

   Enthaelt nur die seitenweite Sale-Leiste (#fdmbf-bar), gescopt auf
   diese ID, damit nichts ans Theme leckt. Der Preis-Rabatt laeuft ueber
   den globalen Theme-Rabatt (class-pricing-swap.php), nicht ueber eigene
   Styles.

   Marken-Look: dunkles Navy/Indigo (#27234a) mit Gelb-Akzent (#fdd231),
   passend zum ClickWhale-BF-Hero (Unterwasser/Wal).
   ============================================================ */

/* ---------- Gilroy (lokal, aus page-en/assets/fonts/) ---------- */
@font-face { font-family: "GilroyBF"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("page-en/assets/fonts/gilroy-medium-webfont.woff2") format("woff2"); }
@font-face { font-family: "GilroyBF"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("page-en/assets/fonts/gilroy-bold-webfont.woff2") format("woff2"); }
@font-face { font-family: "GilroyBF"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("page-en/assets/fonts/gilroy-extrabold-webfont.woff2") format("woff2"); }

/* ---------- Scope-lokale Tokens (lecken nicht ins Theme) ---------- */
#fdmbf-bar {
  --navy: #27234a;
  --navy-deep: #1a1733;
  --yellow: #fdd231;
  --muted: #5b6178;
  --pill: 999px;
  --fontbf: "GilroyBF", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ============================================================
   SALE-LEISTE  (#fdmbf-bar) – dunkel mit Gelb-Akzent, sticky
   ============================================================ */
#fdmbf-bar {
  position: sticky; top: 0; z-index: 2147483000;
  background: linear-gradient(90deg, #1f1c3d 0%, #2d285a 50%, #1f1c3d 100%);
  color: #fff; font-family: var(--fontbf); line-height: 1.2;
  box-shadow: 0 1px 0 rgba(253, 210, 49, .35);
}
/* WP-Admin-Bar (eingeloggt): Banner unter die Bar und deren Menues legen,
   damit die Bar beim Scrollen nicht verdeckt wird. WP-Hoehen/Breakpoints:
   >782px fixed 32px, 601-782px fixed 46px, <=600px absolut (scrollt weg) -> 0. */
body.admin-bar #fdmbf-bar { top: 32px; z-index: 99990; }
@media screen and (max-width: 782px) {
  body.admin-bar #fdmbf-bar { top: 46px; }
}
@media screen and (max-width: 600px) {
  body.admin-bar #fdmbf-bar { top: 0; }
}
#fdmbf-bar * { box-sizing: border-box; }
#fdmbf-bar .fdmbf-inner {
  display: flex; align-items: center; justify-content: center; gap: 10px 22px;
  max-width: 1340px; margin: 0 auto; padding: 14px 24px; flex-wrap: wrap;
  text-align: center; text-decoration: none; color: #fff;
}
#fdmbf-bar .fdmbf-badge {
  display: inline-flex; align-items: center; background: var(--yellow); color: var(--navy-deep);
  font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 13px; border-radius: var(--pill); white-space: nowrap;
}
#fdmbf-bar .fdmbf-text {
  display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center;
  gap: 4px 10px; font-size: 16px; font-weight: 500;
}
#fdmbf-bar .fdmbf-text b { font-weight: 800; font-size: 19px; }
#fdmbf-bar .fdmbf-cd { display: flex; gap: 7px; }
#fdmbf-bar .fdmbf-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #fff; color: var(--navy); border-radius: 10px; min-width: 54px; padding: 8px 13px; line-height: 1;
}
#fdmbf-bar .fdmbf-box b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
#fdmbf-bar .fdmbf-box i { font-size: 9px; font-weight: 600; font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
#fdmbf-bar .fdmbf-link {
  display: inline-flex; align-items: center; background: var(--yellow); color: var(--navy-deep);
  font-weight: 800; font-size: 15px; white-space: nowrap; padding: 9px 18px; border-radius: var(--pill);
}
#fdmbf-bar .fdmbf-inner:hover .fdmbf-link { filter: brightness(1.06); }
@media (max-width: 620px) {
  #fdmbf-bar .fdmbf-cd { display: none; }
  #fdmbf-bar .fdmbf-inner { gap: 8px 14px; padding: 11px 16px; }
  #fdmbf-bar .fdmbf-text { font-size: 15px; }
  #fdmbf-bar .fdmbf-text b { font-size: 17px; }
}
