/* newsletter_hinweis.css – Anmelde-Hinweis (Karte unten rechts, Einbettungen).
   Palette der Spot-Landingpage (Designerin C v2): Creme #F7F6EE, Gold #C6A95F,
   Waldgrün #0F2E1E. Eigene Datei statt neuer Tailwind-Utilities, damit kein
   Tailwind-Build nötig ist und die Karte auf jeder Seite gleich aussieht.
   Templates: templates/includes/newsletter_hinweis.html, _einbettung.html,
   _form.html. Verhalten: core/static/js/newsletter_hinweis.js */

.bc-nl-card,
.bc-nl-embed {
  --nl-cream: #F7F6EE;
  --nl-gold: #C6A95F;
  --nl-forest: #0F2E1E;
  --nl-ink: #1E2B23;
  --nl-muted: #55615A;
  --nl-eyebrow: #7A6428;
  position: relative;
  overflow: hidden;
  background: var(--nl-cream);
  color: var(--nl-ink);
  font-family: 'Roboto', sans-serif;
  box-sizing: border-box;
}

.bc-nl-goldline {
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--nl-gold);
}

.bc-nl-eyebrow {
  margin: 0 0 .35rem; font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--nl-eyebrow);
}
.bc-nl-title {
  margin: 0 0 .35rem; font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 1.125rem; line-height: 1.25; color: var(--nl-forest);
}
.bc-nl-text {
  margin: 0 0 .9rem; font-size: .9rem; line-height: 1.45; color: var(--nl-muted);
}

/* ── Karte unten rechts ───────────────────────────────────────────── */
.bc-nl-card {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  width: min(360px, calc(100vw - 40px));
  padding: 20px 22px 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 46, 30, 0.12);
  box-shadow: 0 18px 48px rgba(15, 46, 30, 0.22), 0 2px 8px rgba(0, 0, 0, 0.08);
  opacity: 0; transform: translateY(16px);
  transition: opacity .35s ease, transform .35s ease;
  outline: none;
}
.bc-nl-card[hidden] { display: none; }
/* Warenkorb: rechts liegt die Zusammenfassung mit Kasse-Knopf – Karte nach links */
.bc-nl-card--left { right: auto; left: 20px; }
.bc-nl-card.is-open { opacity: 1; transform: translateY(0); }
.bc-nl-card:focus-visible { box-shadow: 0 0 0 3px var(--nl-gold), 0 18px 48px rgba(15, 46, 30, 0.22); }

.bc-nl-close {
  position: absolute; top: 8px; right: 8px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; border: 0; color: var(--nl-muted); cursor: pointer;
}
.bc-nl-close:hover { background: rgba(15, 46, 30, 0.07); color: var(--nl-forest); }
.bc-nl-close:focus-visible { outline: 2px solid var(--nl-gold); outline-offset: 1px; }

/* ── Formular ─────────────────────────────────────────────────────── */
.bc-nl-form { margin: 0; }
.bc-nl-row { display: flex; gap: 8px; align-items: stretch; }
.bc-nl-input {
  flex: 1 1 auto; min-width: 0; min-height: 44px;
  padding: 0 12px; border-radius: 10px;
  border: 1px solid rgba(15, 46, 30, 0.22); background: #fff; color: var(--nl-ink);
  font: inherit; font-size: 1rem;   /* >= 16px: iOS zoomt sonst beim Antippen */
}
.bc-nl-input::placeholder { color: #8b958f; }
.bc-nl-input:focus { outline: none; border-color: var(--nl-forest); box-shadow: 0 0 0 3px rgba(198, 169, 95, 0.35); }
.bc-nl-btn {
  flex: 0 0 auto; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--nl-forest); color: #E3E4D1; font: inherit; font-weight: 700; font-size: .9rem;
  box-shadow: inset 0 0 0 2px var(--nl-gold); cursor: pointer; white-space: nowrap;
  transition: background .2s ease;
}
.bc-nl-btn:hover { background: #1A4530; }
.bc-nl-btn:focus-visible { outline: 2px solid var(--nl-gold); outline-offset: 2px; }
.bc-nl-btn[disabled] { opacity: .6; cursor: wait; }
.bc-nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bc-nl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bc-nl-status { margin: .5rem 0 0; font-size: .85rem; line-height: 1.4; min-height: 0; }
.bc-nl-status:empty { display: none; }
.bc-nl-status.is-ok { color: #1f5e34; font-weight: 600; }
.bc-nl-status.is-error { color: #a4322b; }
.bc-nl-legal { margin: .6rem 0 0; font-size: .74rem; line-height: 1.4; color: var(--nl-muted); }
.bc-nl-legal a { color: var(--nl-forest); text-decoration: underline; text-underline-offset: 2px; }

/* ── Mobil: schmaler Balken unten ─────────────────────────────────── */
@media (max-width: 767px) {
  .bc-nl-card {
    right: 0; left: 0; bottom: 0; width: 100%;
    padding: 14px 16px calc(12px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0; border-bottom: 0;
    transform: translateY(100%);
  }
  .bc-nl-card .bc-nl-eyebrow { display: none; }
  .bc-nl-card .bc-nl-title { font-size: 1rem; padding-right: 36px; }
  .bc-nl-card .bc-nl-text { font-size: .82rem; margin-bottom: .6rem; }
  .bc-nl-card .bc-nl-legal { font-size: .7rem; }
  .bc-nl-close { top: 6px; right: 6px; }
  /* Produktseite: über dem Sticky-Warenkorb-Balken bleiben, solange der sichtbar ist */
  body:has(#sticky-add-to-cart:not(.translate-y-full)) .bc-nl-card { bottom: 84px; border-radius: 16px; left: 12px; right: 12px; width: auto; }
}

/* ── Einbettung (Academy, Spot, Blog) ─────────────────────────────── */
.bc-nl-embed {
  margin: 2.5rem auto 0; padding: 22px 24px 18px;
  border-radius: 16px; border: 1px solid rgba(15, 46, 30, 0.12);
  max-width: 720px;
}
.bc-nl-embed .bc-nl-title { font-size: 1.25rem; }
.bc-nl-embed--spot { margin-top: 0; max-width: none; }
.bc-nl-embed--light {
  background: var(--nl-forest); color: #E3E4D1; border-color: transparent;
}
.bc-nl-embed--light .bc-nl-title { color: #fff; }
.bc-nl-embed--light .bc-nl-text { color: #D5D9C7; }
.bc-nl-embed--light .bc-nl-eyebrow { color: var(--nl-gold); }
.bc-nl-embed--light .bc-nl-legal { color: #B9C1B0; }
.bc-nl-embed--light .bc-nl-legal a { color: #fff; }
.bc-nl-embed--light .bc-nl-btn { background: var(--nl-cream); color: var(--nl-forest); }
.bc-nl-embed--light .bc-nl-btn:hover { background: #fff; }
.bc-nl-embed--light .bc-nl-status.is-ok { color: #cfe3b4; }
.bc-nl-embed--light .bc-nl-status.is-error { color: #f3b2ac; }
@media (max-width: 480px) {
  .bc-nl-embed .bc-nl-row { flex-direction: column; }
  .bc-nl-embed .bc-nl-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .bc-nl-card, .bc-nl-btn { transition: none; }
}
