/* ============================================================
   POWER-BI-BIBEL: Opt-in-Seite (Squeeze-Page)
   Dunkler Grund, eine mittige Karte, kein Site-Header/-Footer.
   Farben aus brand.css (--wcg-*).
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--wcg-ink-deep, #141720); }
html, body { margin: 0; padding: 0; overflow-x: hidden; }

body {
  min-height: 100vh;
  background: var(--wcg-ink-deep, #141720);
  color: var(--wcg-bone, #F5F1EA);
  font-family: var(--wcg-font-sans);
  -webkit-font-smoothing: antialiased;
  padding: 48px 16px 32px;
}

/* ---------- Karte ---------- */
.bb-card {
  max-width: 750px;
  margin: 0 auto;
  background: var(--wcg-ink, #1A1D24);
  border-radius: 16px;
  padding: 56px 64px 48px;
  text-align: center;
}
@media (max-width: 640px) { .bb-card { padding: 36px 20px 32px; } }

/* ---------- 1. Logo ---------- */
.bb-logo { display: block; margin: 0 auto; }
.bb-logo img { display: block; width: 190px; height: auto; margin: 0 auto; }
.bb-rule {
  width: 300px; max-width: 100%; height: 1px; border: 0;
  background: var(--wcg-ink-soft, #2C2F37);
  margin: 28px auto 36px;
}

/* ---------- 2. Headline ---------- */
.bb-headline {
  font-family: var(--wcg-font-sans);
  font-weight: 700;
  font-size: clamp(23px, 4.2vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--wcg-bone, #F5F1EA);
  margin: 0 auto 22px;
  max-width: 26ch;
}
.bb-marker {
  display: inline-block;
  position: relative;
  padding: 2px 12px 4px;
  margin-right: 2px;
  color: var(--wcg-ink, #1A1D24);
  z-index: 0;
}
.bb-marker::before {
  content: "";
  position: absolute; inset: -2px -4px;
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cpath fill='%23C9A961' d='M6 9 C 40 3, 120 6, 196 4 C 199 18, 195 38, 198 55 C 140 58, 70 53, 3 57 C 5 42, 1 24, 6 9 Z'/%3E%3Cpath fill='%23C9A961' opacity='.55' d='M0 14 C 4 12, 8 13, 9 16 L 7 50 C 4 52, 1 50, 0 47 Z M 192 6 C 196 6, 200 9, 200 12 L 199 52 C 197 55, 194 54, 193 51 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform: rotate(-1.2deg);
}

/* ---------- 3. Subheadline ---------- */
.bb-sub {
  font-family: var(--wcg-font-text);
  font-weight: 400;
  font-size: clamp(18px, 3.4vw, 24px);
  line-height: 1.5;
  color: rgba(245, 241, 234, 0.82);
  margin: 0 auto 40px;
  max-width: 32ch;
}
.bb-u { position: relative; white-space: nowrap; display: inline-block; }
.bb-u svg {
  position: absolute; left: -2%; bottom: -7px;
  width: 104%; height: 10px;
  overflow: visible; pointer-events: none;
}
.bb-u path { fill: none; stroke: var(--wcg-champagne, #C9A961); stroke-width: 3.2; stroke-linecap: round; }

/* ---------- 4. Formular ---------- */
.bb-form { width: 500px; max-width: 100%; margin: 0 auto; text-align: left; }
.bb-field { position: relative; margin-bottom: 14px; }
.bb-field input {
  display: block; width: 100%; height: 60px;
  padding: 0 18px 0 52px;
  border: 2px solid transparent; border-radius: 4px;
  background: #FFFFFF;
  color: var(--wcg-ink, #1A1D24);
  font-family: var(--wcg-font-sans);
  font-size: 17px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.bb-field input::placeholder { color: #7A7F8A; opacity: 1; }
.bb-field input:focus { border-color: var(--wcg-champagne, #C9A961); box-shadow: 0 0 0 3px rgba(201,169,97,.25); }
.bb-field input[aria-invalid="true"] { border-color: var(--wcg-negative, #B8593A); }
.bb-icon {
  position: absolute; left: 18px; top: 50%;
  width: 20px; height: 20px; transform: translateY(-50%);
  color: #8A8F99; pointer-events: none;
}
.bb-field--phone input { padding-left: 104px; }
.bb-prefix {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 8px;
  padding-right: 12px; border-right: 1px solid #DAD3C2;
  height: 28px;
  font-family: var(--wcg-font-sans); font-size: 16px; font-weight: 500;
  color: var(--wcg-ink, #1A1D24); pointer-events: none;
}
.bb-prefix svg { width: 24px; height: 16px; border-radius: 2px; display: block; }
.bb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bb-error {
  min-height: 0; margin: 2px 0 12px;
  font-size: 14px; color: #E59A7F;
}
.bb-error:empty { display: none; }

/* ---------- 5. CTA ---------- */
.bb-cta {
  display: block; width: 100%;
  margin-top: 8px; padding: 20px 16px;
  border: 0; border-radius: 4px; cursor: pointer;
  background: linear-gradient(180deg, #C9A961 0%, #9C7F3F 100%);
  color: var(--wcg-ink, #1A1D24);
  font-family: var(--wcg-font-sans);
  font-size: clamp(16px, 3.2vw, 19px); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: filter .15s ease, transform .15s ease;
}
.bb-cta:hover { filter: brightness(1.08); }
.bb-cta:active { transform: translateY(1px); }
.bb-cta:focus-visible { outline: 3px solid var(--wcg-bone, #F5F1EA); outline-offset: 3px; }
.bb-cta[disabled] { opacity: .7; cursor: progress; }

.bb-privacy {
  margin: 2px 0 18px; text-align: center;
  font-size: 13px; line-height: 1.5;
  color: rgba(245, 241, 234, 0.55);
}
.bb-privacy a { color: rgba(245, 241, 234, 0.75); }

/* Erfolgsmeldung */
.bb-success {
  width: 500px; max-width: 100%; margin: 0 auto;
  padding: 32px 24px;
  border: 1px solid rgba(201,169,97,.45); border-radius: 4px;
  background: rgba(201,169,97,.08);
  font-family: var(--wcg-font-sans);
  font-size: 20px; font-weight: 600; line-height: 1.45;
  color: var(--wcg-bone, #F5F1EA);
}
.bb-success:focus { outline: none; }

/* ---------- 6. Social Proof ---------- */
.bb-proof {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 16px 20px;
  margin: 36px auto 0;
}
.bb-faces { display: flex; padding-left: 14px; }
.bb-faces img {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; display: block;
  border: 2px solid var(--wcg-ink, #1A1D24);
  margin-left: -14px;
  background: var(--wcg-ink-soft, #2C2F37);
}
.bb-proof-text { text-align: left; }
.bb-stars { display: flex; gap: 3px; margin-bottom: 4px; }
.bb-stars svg { width: 18px; height: 18px; fill: var(--wcg-champagne, #C9A961); }
.bb-proof-text p {
  margin: 0; font-size: 15px; font-weight: 700; line-height: 1.4;
  color: var(--wcg-bone, #F5F1EA);
}
@media (max-width: 520px) {
  .bb-proof { flex-direction: column; }
  .bb-proof-text { text-align: center; }
  .bb-stars { justify-content: center; }
}

/* Logo-Laufband */
.bb-marquee {
  margin: 40px auto 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.bb-track {
  display: flex; width: max-content;
  animation: bb-scroll 45s linear infinite;
}
.bb-set { display: flex; align-items: center; gap: 48px; padding-right: 48px; flex-shrink: 0; }
.bb-set img {
  height: 32px; width: auto; max-width: 150px; object-fit: contain; display: block;
  filter: brightness(0) invert(1); opacity: .7;
}
@keyframes bb-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .bb-track { animation: none; }
}

/* ---------- Footer ---------- */
.bb-footer {
  max-width: 750px; margin: 28px auto 0;
  text-align: center;
  font-size: 13px; line-height: 1.7;
  color: rgba(245, 241, 234, 0.55);
}
.bb-footer p { margin: 0; }
.bb-footer a { color: rgba(245, 241, 234, 0.75); text-decoration: underline; margin: 0 8px; }
.bb-footer a:hover { color: var(--wcg-champagne, #C9A961); }
