/* ============================================================
   FindBird Design für Demos (nach C:\FindBird\FindBird\branding\findbird.css)
   Petrol des Originals ersetzt durch die Kundenfarben (Platzhalter @@...@@, gefüllt von branding.py):
   ACCENT (Original #0E8C7E), ACCENT_DARK (#0B6F64), ACCENT_DEEP (#0A5E55), SOFT/SOFT2/SOFT3 (helle Flächen)
   Schnabel-Gelb #F5B335 für Suchbuttons bleibt; Schriften lokal statt von Google
   ============================================================ */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/findbird-static/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/findbird-static/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/findbird-static/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/findbird-static/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("/findbird-static/poppins-latin-700-normal.woff2") format("woff2"); }

:root,
[data-bs-theme] {
  --pngx-primary: 123, 46%;
  --pngx-primary-lightness: 34%;
  --fb-accent: #2E7D32;
  --fb-accent-dark: #2E7D32;
  --fb-navy: #1a2440;
}

[data-bs-theme="light"] body,
body:not([data-bs-theme]) {
  --bs-body-color: #1a2440;
}

/* ---------- DEMO-Band: Anmeldeseite oben, in der Oberfläche unten (die Kopfzeile ist fest oben) ---------- */
#fb-demo-band {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  padding: 6px 16px;
  background: #2E7D32;
  color: #fff;
  font: 600 14px/1.4 Inter, system-ui, sans-serif;
  letter-spacing: 0.02em;
  text-align: center;
}
body:has(pngx-root) {
  padding-bottom: 32px;
}
body:has(#fb-auth) #fb-demo-band {
  position: sticky;
  top: 0;
  bottom: auto;
  font-size: 15px;
  padding: 8px 16px;
}

/* ---------- Kopfzeile ---------- */
.navbar.bg-primary {
  min-height: 4.2rem;
}

/* Logo oben links in Originalfarben auf weißem Feld */
.navbar-brand > *:not(#fb-brand) {
  display: none !important;
}
#fb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: 14px;
  padding: 6px 12px;
  margin: 6px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
#fb-brand img {
  height: 38px;
  width: auto;
  max-width: 220px;
  flex-shrink: 0;
}

/* ---------- Kleine Suche oben: groß und weiß ---------- */
pngx-global-search {
  flex-grow: 1;
}
pngx-global-search form .form-control {
  min-height: 2.9rem !important;
  border-radius: 999px !important;
  background-color: #ffffff !important;
  border: 1px solid transparent !important;
  padding-left: 2.6rem !important;
  font-size: 1.05rem !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
pngx-global-search form .form-control:focus-within {
  border-color: transparent !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28) !important;
  padding-left: 1.1rem !important;
}
pngx-global-search form .form-control > input {
  color: #1a2440 !important;
}
pngx-global-search form .form-control > input::placeholder {
  color: #6b7385 !important;
}
pngx-global-search form > i-bs[name="search"] {
  color: #6b7385 !important;
  left: 1rem !important;
  top: 0.95rem !important;
  z-index: 5;
}
pngx-global-search .input-group .btn {
  border-radius: 999px !important;
  margin-left: 0.5rem !important;
  background-color: #f5b335 !important;
  border-color: #f5b335 !important;
  color: #1a2440 !important;
  font-weight: 600;
  padding-left: 1.2rem !important;
  padding-right: 1.2rem !important;
}
body.fb-dash pngx-global-search {
  visibility: hidden;
  pointer-events: none;
}

/* ---------- Große Suche auf der Startseite ---------- */
#fb-hero {
  margin: 0.5rem 0 2rem 0;
  padding: 2.2rem 2rem 1.8rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #276A2A 0%, #2E7D32 55%, #2E7D32 120%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.25);
}
#fb-hero h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 1.2rem 0;
  color: #fff;
}
#fb-hero form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
#fb-hero .fb-input {
  flex: 1 1 22rem;
  min-height: 3.6rem;
  font-size: 1.25rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  border: none;
  outline: none;
  color: #1a2440;
  background: #fff;
  transition: box-shadow 0.15s ease;
}
#fb-hero .fb-input:focus {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
#fb-hero .fb-cat {
  flex: 0 1 15rem;
  min-height: 3.6rem;
  font-size: 1rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: none;
  outline: none;
  color: #1a2440;
  background: #E6EFE6;
  cursor: pointer;
}
#fb-hero .fb-btn {
  flex: 0 0 auto;
  min-height: 3.6rem;
  padding: 0 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  color: #1a2440;
  background: #f5b335;
  cursor: pointer;
}
#fb-hero .fb-btn:hover {
  background: #e8a21f;
}
#fb-hero .fb-hint {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  opacity: 0.85;
}
@media (max-width: 576px) {
  #fb-hero { padding: 1.4rem 1rem; }
  #fb-hero .fb-cat, #fb-hero .fb-btn { flex: 1 1 100%; }
}

/* ---------- Aufgeräumtes Menü: Verwaltung nur über das Zahnrad ---------- */
#sidebarMenu .nav-group.fb-admin {
  display: none !important;
}
body.fb-admin-open #sidebarMenu .nav-group.fb-admin {
  display: block !important;
}
#fb-gear {
  color: var(--pngx-primary-text-contrast, #fff);
  opacity: 0.85;
  border-radius: 999px !important;
}
#fb-gear:hover,
#fb-gear.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}

/* ---------- Anmeldeseite ---------- */
body:not(:has(pngx-root)) img.logo {
  width: 110px !important;
  height: 110px !important;
  border-radius: 25px;
  margin-bottom: 1rem !important;
}
body:not(:has(pngx-root)) .btn-primary {
  background-color: #2E7D32 !important;
  border-color: #2E7D32 !important;
}
body:not(:has(pngx-root)) .btn-primary:hover {
  background-color: #2E7D32 !important;
  border-color: #2E7D32 !important;
}
body:not(:has(pngx-root)) a {
  color: #2E7D32;
}
body:not(:has(pngx-root)) .form-control:focus {
  border-color: #dde2ea;
  box-shadow: 0 4px 16px rgba(26, 36, 64, 0.12);
}

/* ============================================================
   Anmeldeseite im Bird-Stil (Aufbau wie MultiBird, Farben des Kunden)
   ============================================================ */
html:not(.fb-auth-ready) body.text-center > .position-absolute {
  opacity: 0;
  animation: fb-show 0s 1.5s forwards;
}
@keyframes fb-show { to { opacity: 1; } }

body:has(#fb-auth) {
  margin: 0;
  text-align: left;
  background: #f4f6f8;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #1a2440;
}
#fb-auth {
  text-align: left !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.fb-auth-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 40px 110px;
  background:
    radial-gradient(circle at 80% 22%, rgba(46, 125, 50, 0.22), transparent 42%),
    linear-gradient(160deg, #E6EFE6 0%, #F2F7F3 55%, #E9EFEC 100%);
}
.fb-auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.fb-auth-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.fb-product {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  background: #ffffff;
  color: #1a2440;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(26, 36, 64, 0.10);
}
.fb-product svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.fb-product b {
  font-family: Poppins, system-ui, sans-serif;
  font-weight: 700;
}
.fb-product .fb-find { color: #0e8c7e; }
.fb-product .fb-bird { color: #1a2440; }
.fb-auth-brand img {
  height: 64px;
  width: auto;
  max-width: 320px;
  flex-shrink: 0;
}
.fb-auth-pitch h2 {
  font-family: Poppins, system-ui, sans-serif;
  font-weight: 700;
  font-size: 2.75rem;
  letter-spacing: -1px;
  line-height: 1.1;
  color: #1a2440;
  margin: 0 0 18px;
}
.fb-auth-pitch p {
  font-size: 1.3rem;
  line-height: 1.5;
  color: #4b5670;
  max-width: 34rem;
  margin: 0 0 28px;
}
.fb-auth-pitch ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fb-auth-pitch li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.15rem;
  color: #1a2440;
  margin: 0 0 14px;
}
.fb-check {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #2E7D32;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26, 36, 64, 0.08);
}
.fb-auth-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.fb-auth-mobile { display: none; }
.fb-auth-card {
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  border-radius: 24px;
  padding: 44px;
  box-shadow: 0 10px 40px rgba(26, 36, 64, 0.08);
}
#fb-auth .form-accounts {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}
#fb-auth h1 {
  font-family: Poppins, system-ui, sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  color: #1a2440;
  margin: 0 0 26px;
}
#fb-auth .fb-auth-lead {
  font-size: 1.05rem;
  color: #4b5670;
  margin: 0 0 22px;
}
#fb-auth .fb-field {
  margin: 0 0 20px;
}
#fb-auth .fb-field label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: #1a2440;
  margin: 0 0 8px;
}
#fb-auth .form-control {
  height: 56px;
  border-radius: 12px !important;
  border: 1px solid #dde2ea;
  background: #f4f6fa;
  font-size: 1rem;
  padding: 0 16px;
  color: #1a2440;
  box-shadow: none;
}
#fb-auth .form-control:focus {
  background: #ffffff;
  border-color: #dde2ea;
  box-shadow: 0 4px 16px rgba(26, 36, 64, 0.12);
}
#fb-auth .fb-pw {
  position: relative;
  display: block;
}
#fb-auth .fb-pw .form-control {
  padding-right: 52px;
}
#fb-auth .fb-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7a8499;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#fb-auth .fb-eye:hover,
#fb-auth .fb-eye.on {
  color: #2E7D32;
}
#fb-auth .d-grid {
  margin-top: 28px !important;
}
#fb-auth .btn-primary {
  height: 56px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.15rem;
  background-color: #2E7D32 !important;
  border-color: #2E7D32 !important;
}
#fb-auth .btn-primary:hover {
  background-color: #2E7D32 !important;
  border-color: #2E7D32 !important;
}
#fb-auth .alert {
  border-radius: 12px;
  text-align: left;
}
#fb-auth a {
  color: #2E7D32;
  font-weight: 600;
  text-decoration: none;
}
@media (max-width: 900px) {
  #fb-auth { grid-template-columns: 1fr; }
  .fb-auth-side { display: none; }
  .fb-auth-main {
    justify-content: flex-start;
    padding: 40px 16px;
    background: linear-gradient(180deg, #E6EFE6 0%, #f4f6f8 45%);
  }
  .fb-auth-mobile { display: flex; margin: 0 0 28px; align-items: center; }
  .fb-auth-card { padding: 28px 22px; }
}
