/* =========================================================
   BBT Universal Footer (shared across all pages)
   - Scoped to .bbt-footer to avoid collisions
   - Uses existing CSS variables when present, with fallbacks
   ========================================================= */

.bbt-footer {
  margin-top: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--border, rgba(148, 163, 184, 0.28));
  background: rgba(255, 255, 255, 0.55);
}

/* Login-Seite: Footer volle Breite, fixiert am unteren Rand */
body.login-mode #bbtFooterMount {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
}
body.login-mode .bbt-footer {
  margin-top: 0;
  max-width: none;
}
body.login-mode .bbt-footer__inner {
  max-width: none;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .bbt-footer {
    background: rgba(255, 255, 255, 0.35);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
  }
}

/* Dark variants (Dashboard + Bootstrap) */
body.dashboard-theme-dark .bbt-footer,
html[data-bs-theme="dark"] .bbt-footer {
  background: rgba(0, 0, 0, 0.25);
  border-top-color: rgba(255, 255, 255, 0.10);
}

.bbt-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 16px 28px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.bbt-footer__brand {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bbt-footer__brand-name {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-primary, #0f172a);
}

.bbt-footer__brand-sub {
  font-size: 12px;
  color: var(--text-tertiary, var(--text-muted, #64748b));
  line-height: 1.35;
}

.bbt-footer__nav {
  display: flex;
  gap: 10px 18px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.bbt-footer__link {
  font-size: 13px;
  color: var(--text-secondary, #475569);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.bbt-footer__link:hover {
  background: rgba(148, 163, 184, 0.14);
  color: var(--text-primary, #0f172a);
  transform: translateY(-1px);
}

body.dashboard-theme-dark .bbt-footer__link:hover,
html[data-bs-theme="dark"] .bbt-footer__link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.bbt-footer__bottom {
  width: 100%;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--border, rgba(148, 163, 184, 0.28));
  display: flex;
  gap: 10px 16px;
  justify-content: space-between;
  flex-wrap: wrap;
  color: var(--text-tertiary, var(--text-muted, #64748b));
  font-size: 12px;
}

body.dashboard-theme-dark .bbt-footer__bottom,
html[data-bs-theme="dark"] .bbt-footer__bottom {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.bbt-footer__muted {
  opacity: 0.9;
}
