/* ──────────────────────────────────────────────────────────────────────
   B&B. marketing-site UI Kit — global resets + component CSS
   ────────────────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font-display);
  background: var(--bg); color: var(--fg);
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none;
}
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── HEADER ─────────────────────────────────────────────────────────── */
.bb-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px;
  background: var(--bg);
  z-index: 100;
  transition: transform .4s var(--ease-out);
}
.bb-header.is-hidden { transform: translate3d(0, -100%, 0); }
.bb-header .bb-logo { height: 30px; }
.bb-header nav { display: flex; gap: 32px; }
.bb-header nav a {
  font-size: 18px; font-weight: 700; font-stretch: 110%;
  padding-bottom: 2px;
  background: linear-gradient(to bottom, transparent 60%, var(--accent) 0) right center / 0 100% no-repeat;
  transition: background .2s var(--ease-in-out);
}
.bb-header nav a:hover,
.bb-header nav a.is-active { background-size: 100% 100%; }
.bb-header .right { display: flex; align-items: center; gap: 18px; }
.bb-pill {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--fg); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .3s var(--ease-out-soft);
}
.bb-pill:hover { transform: rotate(15deg); }
.bb-pill svg { width: 18px; height: 18px; }
.bb-ham {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--fg);
  display: inline-flex; flex-direction: column; gap: 4px;
  align-items: center; justify-content: center;
  cursor: pointer; transition: transform .4s var(--ease-out);
}
.bb-ham span { display: block; width: 14px; height: 2px; background: var(--bg); transition: transform .3s var(--ease-out); }
.bb-ham.is-open { transform: rotate(180deg); }
.bb-ham.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.bb-ham.is-open span:nth-child(2) { opacity: 0; }
.bb-ham.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── PAGE / SECTION SCAFFOLD ────────────────────────────────────────── */
.bb-page { padding-top: 80px; }
.bb-section { display: flex; justify-content: center; width: 100%; }
.bb-container { width: 100%; max-width: 1720px; padding: 90px 60px; }
.bb-container.warm { background: var(--bg-alt); color: var(--bb-black); position: relative; }

/* ── HERO ───────────────────────────────────────────────────────────── */
.bb-hero { padding-top: 60px; }
.bb-hero .display {
  font-size: clamp(56px, 9vw, 144px);
  font-weight: 700;
  font-stretch: 120%;
  line-height: 1;
  letter-spacing: -.04em;
  max-width: 1300px;
}
.bb-hero .display .dot {
  color: var(--accent); font-stretch: 85%; font-size: 1.1em; line-height: 0;
}
.bb-hero .display .accent {
  color: var(--accent);
}
.bb-hero .lead {
  font-size: 24px; line-height: 1.55;
  max-width: 720px; margin-top: 36px;
  opacity: .85; font-weight: 370; letter-spacing: -.01em;
}
.bb-hero .meta-row {
  display: flex; gap: 36px; margin-top: 60px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  opacity: .55;
}

/* ── INTRO HOME (image + text) ──────────────────────────────────────── */
.bb-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: start;
}
.bb-intro .graphic {
  aspect-ratio: 4/5;
  background: var(--bb-warm);
  position: relative; overflow: hidden;
}
/* Flat shape composition — no gradients */
.bb-intro .graphic::before {
  content: ""; position: absolute;
  width: 32%; aspect-ratio: 1;
  top: 16%; left: 18%;
  background: var(--bb-orange);
  border-radius: 50%;
}
.bb-intro .graphic .swatch {
  position: absolute; width: 38%; height: 38%; background: var(--bb-black);
  bottom: 10%; right: 10%;
}
.bb-intro .graphic .swatch::after {
  content: ""; position: absolute; right: -8%; bottom: -8%;
  width: 30%; height: 30%; background: var(--bb-orange);
}
.bb-intro .text h2 {
  font-size: clamp(40px, 4.5vw, 76px); font-weight: 800; line-height: 1;
  letter-spacing: -.03em; max-width: 12ch;
}
.bb-intro .text h2 .dot { color: var(--accent); font-size: 1.2em; line-height: 0; font-stretch: 85%; }
.bb-intro .text .body { margin-top: 32px; font-size: 22px; line-height: 1.55; max-width: 50ch; opacity: .85; font-weight: 370; letter-spacing: -.01em; }
.bb-intro .logos { display: flex; gap: 36px; margin-bottom: 32px; align-items: center; }
.bb-intro .logos img { height: 28px; }
.bb-intro .logos .sep { width: 1px; height: 22px; background: rgba(255,255,255,.25); }

/* ── BUTTONS ────────────────────────────────────────────────────────── */
.bb-btn { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font: inherit; border: 0; background: none; color: inherit; padding: 0; text-decoration: none; }
.bb-btn-fill {
  padding: 14px 22px 12px;
  background: var(--accent); color: var(--fg);
  border-radius: 8px;
  font-size: 18px; font-weight: 700; line-height: 1;
  transition: background .4s var(--ease-out-soft), color .4s var(--ease-out-soft);
}
.bb-btn-fill:hover { background: var(--fg); color: var(--accent); }
.bb-btn-fill .arr { transition: transform .4s var(--ease-out-soft); display: inline-flex; }
.bb-btn-fill:hover .arr { transform: translateX(.3em); }
.bb-btn-capsule {
  padding: .3em .3em .3em 1.2em;
  border: 1px solid var(--fg); border-radius: 4em;
  font-size: 18px; font-weight: 700; line-height: 1;
  gap: .9em;
}
.bb-btn-capsule .circle {
  flex: 0 0 auto;
  width: 30px; height: 30px; background: var(--accent); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  transition: transform .3s var(--ease-out-soft);
}
.bb-btn-capsule .circle svg { width: 14px; height: 14px; display: block; }
.bb-btn-capsule:hover .circle { transform: translateX(.25em); }
.bb-btn-link {
  display: inline-block; padding-bottom: .2em; line-height: 1.4;
  border-bottom: 1px solid var(--accent);
  background: linear-gradient(to bottom, transparent 85%, var(--accent) 0) right center / 0 100% no-repeat;
  font-size: 18px; font-weight: 700;
  transition: background .2s var(--ease-in-out);
}
.bb-btn-link:hover { background-size: 100% 100%; }
.bb-btn-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--fg); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .4s var(--ease-out-soft);
}
.bb-btn-circle:hover { transform: scale(.92); }

/* ── GALLERY ────────────────────────────────────────────────────────── */
.bb-gallery {
  display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 32px;
  align-items: start;
  position: relative;
}
.bb-gallery .card { position: relative; }
.bb-gallery .card .img {
  aspect-ratio: 4/5;
  position: relative; overflow: hidden;
}
.bb-gallery .card.tall .img { aspect-ratio: 3/4; }
.bb-gallery .card .meta {
  padding-top: 14px; font-size: 14px; letter-spacing: .04em;
  opacity: .7;
}
.bb-gallery .card .meta h4 { font-size: 22px; font-weight: 700; opacity: 1; margin: 0 0 4px; letter-spacing: -.02em; }
.bb-gallery .card.offset { margin-top: 80px; }
.bb-gallery .badge-rotor {
  position: absolute; right: -30px; top: -30px;
  width: 130px; height: 130px;
  animation: bb-spin 18s linear infinite;
  z-index: 1;
}
@keyframes bb-spin { to { transform: rotate(360deg); } }

/* gallery placeholders — typographic colored panels with overlays */
.bb-gallery .img.proj-1 { background: #FF6008; }
.bb-gallery .img.proj-2 { background: #1E2124; border: 1px solid rgba(255,255,255,.1); }
.bb-gallery .img.proj-3 { background: #FAF1EB; }
.bb-gallery .img.proj-4 { background: #2A3138; }
.bb-gallery .img.proj-5 { background: #FF2857; }

.bb-gallery .img .word {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  font-size: clamp(28px, 4vw, 56px); font-weight: 800; line-height: .9;
  letter-spacing: -.03em; color: #fff;
  font-stretch: 120%;
}
.bb-gallery .img.proj-3 .word { color: var(--bb-black); }
.bb-gallery .img .tag {
  position: absolute; top: 14px; left: 16px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.bb-gallery .img.proj-3 .tag { color: rgba(0,0,0,.5); }

/* ── SERVICES (counter list) ────────────────────────────────────────── */
.bb-services .row {
  display: grid; grid-template-columns: 60px 1fr auto;
  align-items: baseline; gap: 32px;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.bb-services .row:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.bb-services .row .num { font-size: 16px; opacity: .55; font-feature-settings: "tnum"; letter-spacing: .04em; }
.bb-services .row .name { font-size: 36px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.bb-services .row .desc { font-size: 14px; opacity: .65; max-width: 260px; line-height: 1.55; }
.bb-services .row:hover .name { color: var(--accent); transition: color .3s ease; }
.bb-services .hd { display: flex; justify-content: space-between; align-items: end; margin-bottom: 36px; gap: 80px; }
.bb-services .hd h2 { font-size: clamp(44px, 5vw, 76px); font-weight: 800; line-height: 1; letter-spacing: -.03em; max-width: 16ch; }
.bb-services .hd .lead { font-size: 18px; line-height: 1.55; max-width: 380px; opacity: .8; }

/* ── PULL QUOTE ─────────────────────────────────────────────────────── */
.bb-quote {
  font-size: clamp(36px, 4.5vw, 80px);
  font-weight: 660; line-height: 1.1;
  letter-spacing: -.035em; font-stretch: 110%;
  max-width: 22ch;
}
.bb-quote::before { content: '\201C'; color: var(--accent); }
.bb-quote::after  { content: '\201E'; color: var(--accent); }
.bb-quote-attr { margin-top: 28px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }

/* ── CONTACT CTA — the loudest moment ────────────────────────────────── */
.bb-contact { padding: 60px 0; }
.bb-contact h2 {
  font-size: 11vw; font-weight: 900; line-height: .9;
  letter-spacing: -.04em; text-transform: uppercase;
  margin: 0; transform: translateX(-.04em);
}
.bb-contact h2 .dot { color: var(--accent); font-size: 1em; line-height: 0; font-stretch: 85%; }
.bb-contact .row { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-top: 60px; }
.bb-contact .meta { font-size: 18px; opacity: .8; }
.bb-contact .meta a { display: block; padding: 2px 0; }
.bb-contact .meta a + a { margin-top: 4px; }

/* ── FOOTER ─────────────────────────────────────────────────────────── */
.bb-footer { border-top: 1px solid rgba(255,255,255,.2); padding: 60px 60px 80px; }
.bb-footer .grid {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 40px 60px; max-width: 1720px; margin: 0 auto;
}
.bb-footer .nav-main { font-weight: 700; font-size: 18px; line-height: 1.7; }
.bb-footer .nav-main a:hover { color: var(--accent); }
.bb-footer .nav-zusatz { font-size: 14px; line-height: 1.7; opacity: .75; }
.bb-footer .sustainable { font-size: 16px; line-height: 1.2; }
.bb-footer .sustainable .green { color: var(--bb-sustainable); }
.bb-footer .sustainable h4 { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-size: 16px; font-weight: 700; }
.bb-footer .contact { display: flex; flex-direction: column; gap: 6px; font-size: 18px; }
.bb-footer .contact h3 { margin: 0 0 8px; font-size: 26px; font-weight: 700; }
.bb-footer .contact a { display: inline-block; padding-bottom: 2px; }
.bb-footer .logos { display: flex; gap: 32px; align-items: center; }
.bb-footer .logos img { height: 46px; }
.bb-footer .dsgvo { display: flex; gap: 28px; font-size: 14px; opacity: .65; align-items: center; }
.bb-footer .social { display: flex; gap: 16px; }
.bb-footer .social a { font-size: 13px; opacity: .7; }
.bb-footer .social a:hover { opacity: 1; color: var(--accent); }

/* ── HAMBURGER OVERLAY ──────────────────────────────────────────────── */
.bb-overlay {
  position: fixed; inset: 0;
  background: var(--bb-warm); color: var(--bb-black);
  z-index: 99;
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-100%);
  transition: transform .6s var(--ease-out);
}
.bb-overlay.is-open { transform: translateY(0); }
.bb-overlay nav {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  font-size: clamp(40px, 5vw, 88px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1;
}
.bb-overlay nav a {
  background: linear-gradient(to bottom, transparent 70%, var(--accent) 0) right center / 0 100% no-repeat;
  transition: background .2s var(--ease-in-out);
}
.bb-overlay nav a:hover { background-size: 100% 100%; }

/* ── DAY/NIGHT THEME OVERRIDE ───────────────────────────────────────── */
.bb-light {
  --bg: #FFFFFF; --fg: #1E2124;
  --fg-muted: rgba(30,33,36,.7);
  --hairline: rgba(0,0,0,.1);
}
.bb-light .bb-header { background: var(--bg); }
.bb-light .bb-services .row { border-color: rgba(0,0,0,.12) !important; }
.bb-light .bb-footer { border-top-color: rgba(0,0,0,.1); }
.bb-light .bb-intro .logos .sep { background: rgba(0,0,0,.2); }

/* ── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .bb-container { padding: 60px 30px; }
  .bb-header { padding: 0 30px; }
  .bb-intro { grid-template-columns: 1fr; gap: 40px; }
  .bb-gallery { grid-template-columns: 1fr 1fr; }
  .bb-gallery .card.offset { margin-top: 0; }
  .bb-header nav { display: none; }
  .bb-services .hd { flex-direction: column; align-items: flex-start; gap: 18px; }
  .bb-services .row { grid-template-columns: 40px 1fr; }
  .bb-services .row .desc { grid-column: 2; max-width: none; }
  .bb-footer .grid { grid-template-columns: 1fr 1fr; }
  .bb-footer { padding: 40px 30px 60px; }
}
@media (max-width: 600px) {
  .bb-gallery { grid-template-columns: 1fr; }
  .bb-footer .grid { grid-template-columns: 1fr; }
}
