/* ============================================
   BB Brands · shared.css
   Color-Tokens, Base, Top-Bar, Header, Nav, Footer
   ============================================ */

:root{
  /* Brand-Tokens — Quelle: Marke/Brand/brand-guidelines.html */
  /* Primary */
  --blue:#0305C6;
  --blue-soft:#1E3AFF;
  --blue-tint:#EEF1FF;
  --blue-deep:#02038F;
  /* Accent */
  --accent:#FF6B3D;
  --accent-bg:#FFF4EE;
  --accent-hover:#E85A2C;
  /* Neutrals */
  --bg:#ffffff;
  --bg-alt:#fafaf7;
  --bg-card:#ffffff;
  --bg-elev:#f5f5f0;
  --bg-input:#fafaf7;
  --cream:#F5F1E8;
  --cream-2:#EFE9DA;
  --text:#0a0a0a;
  --text-2:#3D3D3A;
  --text-3:#787872;
  --text-4:#b8b8b3;
  --line:#E8E8E3;
  --line-strong:#D0D0CB;
  /* Status */
  --green:#16a34a;
  --green-bg:#ecfdf5;
  /* Typography · BRAND-FONTS V1 (final · 2026-05-09)
     · Body + Display: Inter Tight (single-font für h1/h2/h3 + body)
     · Akzent: Saira Condensed (nur Eyebrows · Tags · Step-Labels · Caps) */
  --display:'Inter Tight',-apple-system,BlinkMacSystemFont,sans-serif;
  --body:'Inter Tight',-apple-system,BlinkMacSystemFont,sans-serif;
  --accent-font:'Saira Condensed','Inter Tight',-apple-system,BlinkMacSystemFont,sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--body);
  font-size:16px;line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* ========== AKZENT-SCHRIFT ==========
   Saira Condensed (Google Fonts) — nur für Eyebrows, Tags, Step-Labels.
   Headlines + Body bleiben Inter Tight für single-font-Konsistenz. */
.accent-font,
.eyebrow,
.trust-label,
.step-eyebrow,
.tag,
.case-meta,
.bs-pill-meta,
.guar-num,
.brand-name{
  font-family:var(--accent-font);
  letter-spacing:.005em;
}
.stat-num{font-weight:600}
h1 em,h2 em{font-weight:500}
.wrap{max-width:1120px;margin:0 auto;padding:0 32px}
@media (max-width:780px){.wrap{padding:0 20px}}

a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

/* ========== TOP BAR (Ankündigungsleiste — auf JEDER Page) ==========
   38px schwarz, sticky-relative (scrollt mit weg, Header bleibt sticky drunter).
   Auf allen Pages identische Höhe → Nav-Items bleiben pixel-genau an derselben Y-Position. */
.top-bar{
  background:#0a0a0a;color:rgba(255,255,255,.9);
  font-size:12.5px;position:relative;z-index:51;
}
.top-bar .wrap{
  display:flex;align-items:center;justify-content:space-between;
  height:38px;gap:18px;
}
.top-bar-left{display:flex;align-items:center;gap:24px;flex:1}
.top-bar-item{
  display:inline-flex;align-items:center;gap:7px;
  color:rgba(255,255,255,.85);font-weight:500;letter-spacing:-.005em;
}
.top-bar-item:hover{color:#fff;text-decoration:none}
.top-bar-item svg{width:14px;height:14px;flex-shrink:0;opacity:.7}
.top-bar-right{display:flex;align-items:center;gap:18px}
.top-bar-socials{display:flex;gap:14px}
.top-bar-socials a{
  width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;
  color:rgba(255,255,255,.7);transition:color .15s ease;
}
.top-bar-socials a:hover{color:#fff;text-decoration:none}
.top-bar-socials svg{width:14px;height:14px}
.top-bar-cta{
  background:var(--accent);color:#fff;
  padding:7px 14px;border-radius:5px;
  font-weight:700;font-size:12px;letter-spacing:-.005em;
  transition:all .2s ease;
}
.top-bar-cta:hover{background:var(--accent-hover);text-decoration:none}
@media (max-width:780px){.top-bar{display:none}}

/* ========== HEADER ==========
   Höhe + max-width identisch zu .bb-topnav (Baulig-Pages) damit Nav-Items
   beim Page-Wechsel pixel-genau an derselben Position bleiben. */
header.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(20px);
  -webkit-backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid rgba(232,232,227,.5);
}
header.site-header .wrap{
  /* Identisches Layout zu .bb-topnav (Baulig-Pages):
     flex mit absolut positionierter Nav → garantiert pixel-exakt gleiche Nav-Position. */
  display:flex;align-items:center;
  max-width:1340px;
  height:90px;gap:14px;
  padding:0 32px;
  position:relative;
}
.header-actions{margin-left:auto}
@media (max-width:780px){
  header.site-header .wrap{padding:0 20px}
}

/* ========== BRAND LOGO (Typo-Lockup mit gespiegeltem B) ========== */
/* Brand Guidelines §3 Logo:
   - Default (auf Weiß/Cream): Blue
   - Auf Black/Dark: Orange
   - Auf Blue: White */
.brand-logo{
  display:inline-flex;align-items:baseline;
  text-decoration:none;color:var(--blue);
  font-family:var(--display);
  font-weight:300;font-size:36px;line-height:1;
  letter-spacing:-.01em;
  transition:opacity .15s ease,color .3s ease;
  white-space:nowrap;
}
.brand-logo:hover{text-decoration:none;opacity:.85}
.brand-mark-mirror{
  display:inline-block;
  transform:scaleX(-1);
  margin-right:-1px;
}

/* ========== MAIN NAV ==========
   Identisches Layout zu .bb-topnav-items (Baulig-Pages):
   absolut zentriert via transform → pixel-exakt gleiche Position bei Page-Wechsel. */
.main-nav{
  display:flex;gap:36px;
  font-size:14px;font-weight:600;letter-spacing:.02em;
  position:absolute;left:50%;top:50%;
  transform:translate(-50%,-50%);
}
@media (max-width:980px){
  .main-nav{position:static;transform:none;left:auto;top:auto}
}
.main-nav a{
  color:var(--text-2);font-weight:600;text-decoration:none;
  transition:color .15s ease;letter-spacing:.02em;
  position:relative;padding:6px 0;
}
.main-nav a:hover{color:var(--text);text-decoration:none}
.main-nav a.active{color:var(--accent);font-weight:600}
.main-nav a.active::after{
  content:"";position:absolute;left:0;right:0;bottom:-2px;
  height:2px;background:var(--accent);border-radius:2px;
}

/* ========== HEADER ACTIONS ========== */
.header-actions{display:flex;align-items:center;gap:14px}
.header-login{
  display:inline-flex;align-items:center;gap:7px;
  color:var(--text-3);text-decoration:none;
  font-family:var(--body);font-size:13px;font-weight:600;letter-spacing:.02em;
  padding:8px 12px;border-radius:6px;
  transition:all .15s ease;
}
.header-login:hover{color:var(--blue);background:var(--bg-alt);text-decoration:none}
.header-login svg{width:14px;height:14px;opacity:.85}
@media (max-width:1100px){.header-login span{display:none}}
@media (max-width:980px){.header-login{display:none}}
.header-search{
  width:36px;height:36px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  color:var(--text-2);transition:all .15s ease;
  background:transparent;border:none;cursor:pointer;
}
.header-search:hover{background:var(--bg-alt);color:var(--text)}
.header-search svg{width:18px;height:18px}
.header-cta{
  background:var(--accent);color:#fff;
  padding:11px 22px;border-radius:7px;
  font-size:13.5px;font-weight:700;letter-spacing:-.005em;
  transition:all .2s ease;
  box-shadow:0 3px 10px rgba(255,107,61,.25);
}
.header-cta:hover{
  background:var(--accent-hover);text-decoration:none;
  transform:translateY(-1px);box-shadow:0 6px 16px rgba(255,107,61,.35);
}

.mobile-toggle{
  display:none;width:40px;height:40px;
  background:transparent;border:none;cursor:pointer;
  flex-direction:column;justify-content:center;align-items:center;gap:5px;
}
.mobile-toggle span{
  display:block;width:22px;height:2px;background:var(--text);
  border-radius:1px;transition:all .2s ease;
}

@media (max-width:980px){
  header.site-header .wrap{grid-template-columns:auto 1fr auto}
  .main-nav{display:none}
  .mobile-toggle{display:flex}
  .header-cta{display:none}
}
@media (max-width:780px){
  header.site-header .wrap{height:64px;gap:14px}
  .brand-logo{font-size:26px}
  .header-search{display:none}
}

.mobile-menu{
  display:none;
  position:fixed;top:64px;left:0;right:0;
  background:#fff;border-bottom:1px solid var(--line);
  padding:24px;flex-direction:column;gap:18px;
  z-index:49;box-shadow:0 8px 24px rgba(0,0,0,.08);
}
.mobile-menu.open{display:flex}
.mobile-menu a{
  font-size:17px;font-weight:600;color:var(--text);
  text-decoration:none;padding:8px 0;
  border-bottom:1px solid var(--line);
}
.mobile-menu a:last-of-type{border-bottom:none}
.mobile-menu a.mobile-cta{
  background:var(--accent);color:#fff;
  text-align:center;padding:14px;border-radius:8px;
  border:none;margin-top:8px;
}
@media (min-width:981px){.mobile-menu{display:none !important}}

/* ========== FOOTER ========== */
footer{
  padding:48px 0 32px;border-top:1px solid var(--line);background:var(--bg);
}
footer .wrap{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:18px}
.footer-brand{font-size:13px;color:var(--text-3)}
.footer-links{display:flex;gap:22px;font-size:13px;flex-wrap:wrap}
.footer-links a{color:var(--text-3)}
.footer-links a:hover{color:var(--text-2);text-decoration:none}
@media (max-width:780px){
  footer .wrap{flex-direction:column;align-items:flex-start;text-align:left}
}
