/* ============================================================
   Floating BNI profile pill  (EWW-2)

   Single source of truth for all three pages. Linked from
   index.html, impressum.html and datenschutz.html, which are
   standalone documents with no shared base template — so this
   file exists specifically to avoid triplicating the CSS.

   Markup lives in core/templates/core/_bni_float.html
   ============================================================ */

.bni-float {
  position: fixed;
  /* above page content, below nav (999) and the #mobileNav overlay (1000)
     so an open mobile menu is never covered */
  z-index: 990;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.8rem 0.38rem 0.55rem;
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(13, 31, 78, 0.10);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.bni-float img {
  height: 16px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.bni-float-text {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--navy, #0d1f4e);
}

.bni-float-chev {
  color: var(--teal, #0f9d97);
  font-weight: 800;
}

/* ---- position: centre only ---------------------------------- */
.bni-float--center {
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
}

/* hover lift — must keep the centring translate */
.bni-float:hover {
  border-color: var(--teal, #0f9d97);
  box-shadow: 0 12px 28px rgba(13, 31, 78, 0.18);
}

.bni-float--center:hover { transform: translateX(-50%) translateY(-2px); }

@media (max-width: 760px) {
  .bni-float {
    gap: 0.38rem;
    padding: 0.32rem 0.66rem 0.32rem 0.46rem;
  }

  .bni-float img { height: 13px; }
  .bni-float-text { font-size: 0.7rem; }

  .bni-float--center { bottom: 1rem; }
}
