/* ============================================================
   FindBird für Schwaben Contrans
   Design übernommen von schwaben-contrans.de
   Asphalt  #15181A  (Kopfzeile, Flächen)
   Grün     #5DB433  (Akzente, Buttons)
   Grün dunkel #3F8A1C (Links, Auswahl auf hellem Grund)
   Stein    #7A7876 / #B9BCB7
   Kalk     #F2F3EF  (Hintergrund)
   Schriften lokal (Saira, Barlow), kein Google-Server
   ============================================================ */

@font-face { font-family: "Saira"; src: url("/findbird-static/sc/fonts/saira-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Saira"; src: url("/findbird-static/sc/fonts/saira-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Saira"; src: url("/findbird-static/sc/fonts/saira-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/findbird-static/sc/fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/findbird-static/sc/fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/findbird-static/sc/fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root,
[data-bs-theme] {
  /* Paperless Hauptfarbe: Grün dunkel #3F8A1C */
  --pngx-primary: 101, 66%;
  --pngx-primary-lightness: 33%;
  --sc-asphalt: #15181a;
  --sc-graphit: #23272a;
  --sc-gruen: #5db433;
  --sc-gruen-hell: #7fd653;
  --sc-gruen-dunkel: #3f8a1c;
  --sc-stein: #7a7876;
  --sc-stein-hell: #b9bcb7;
  --sc-kalk: #f2f3ef;
  --sc-text: #1b1f1c;
  --sc-text-2: #4d524e;
  --sc-linie: #d9dbd4;
  --sc-display: "Saira", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sc-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-family: var(--sc-body);
  --bs-border-radius: 6px;
}

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

body {
  font-family: var(--sc-body);
}

/* Seitentitel in Saira */
pngx-page-header h3,
pngx-page-header .h3 {
  font-family: var(--sc-display);
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ---------- Kopfzeile: Asphalt mit grüner Linie ---------- */
.navbar.bg-primary {
  min-height: 4.4rem;
  background-color: #15181a !important;
  border-bottom: 3px solid #5db433;
}

/* Logo oben links: Schwaben Contrans plus Produktname */
.navbar-brand > *:not(#fb-brand) {
  display: none !important;
}
#fb-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0;
}
#fb-brand img {
  height: 40px;
  width: auto;
  display: block;
}
#fb-brand .fb-prod {
  font-family: var(--sc-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b9bcb7;
  padding-left: 14px;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  line-height: 1.2;
}
#fb-brand .fb-prod b {
  display: block;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
}
@media (max-width: 768px) {
  #fb-brand img { height: 30px; }
  #fb-brand .fb-prod { display: none; }
}

/* ---------- Kleine Suche oben ---------- */
pngx-global-search {
  flex-grow: 1;
}
pngx-global-search form .form-control {
  min-height: 2.8rem !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  border: 1px solid transparent !important;
  padding-left: 2.6rem !important;
  font-size: 1.05rem !important;
  box-shadow: none;
}
pngx-global-search form .form-control:focus-within {
  border-color: #5db433 !important;
  box-shadow: 0 0 0 3px rgba(93, 180, 51, 0.3) !important;
  padding-left: 1.1rem !important;
}
pngx-global-search form .form-control > input {
  color: #1b1f1c !important;
}
pngx-global-search form .form-control > input::placeholder {
  color: #7a7876 !important;
}
pngx-global-search form > i-bs[name="search"] {
  color: #7a7876 !important;
  left: 1rem !important;
  top: 0.9rem !important;
  z-index: 5;
}
pngx-global-search .input-group .btn {
  border-radius: 6px !important;
  margin-left: 0.5rem !important;
  background-color: #5db433 !important;
  border-color: #5db433 !important;
  color: #0f1a09 !important;
  font-family: var(--sc-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-left: 1.2rem !important;
  padding-right: 1.2rem !important;
}
body.fb-dash pngx-global-search {
  visibility: hidden;
  pointer-events: none;
}

/* ---------- Buttons in der App ---------- */
.btn-primary {
  --bs-btn-color: #0f1a09;
  --bs-btn-bg: #5db433;
  --bs-btn-border-color: #5db433;
  --bs-btn-hover-color: #0f1a09;
  --bs-btn-hover-bg: #7fd653;
  --bs-btn-hover-border-color: #7fd653;
  --bs-btn-active-color: #0f1a09;
  --bs-btn-active-bg: #4fa028;
  --bs-btn-active-border-color: #4fa028;
}

/* ---------- Große Suche auf der Startseite ---------- */
#fb-hero {
  position: relative;
  overflow: hidden;
  margin: 0.5rem 0 2rem 0;
  padding: 2.2rem 2rem 3.6rem;
  border-radius: 6px;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(93, 180, 51, 0.18), transparent 60%),
    #15181a;
  color: #fff;
}
/* Fahrbahn mit Mittellinie (Motiv aus dem Logo) */
#fb-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22px;
  background: linear-gradient(180deg, #1d2123, #111315);
  border-top: 3px solid #5db433;
}
#fb-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  height: 3px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0 46px, transparent 46px 92px);
}
#fb-hero .fb-eyebrow {
  font-family: var(--sc-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7fd653;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.6rem;
}
#fb-hero .fb-eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: #5db433;
  flex: none;
}
#fb-hero h2 {
  font-family: var(--sc-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 1.4rem 0;
  color: #fff;
}
#fb-hero h2 span {
  color: #5db433;
}
#fb-hero form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
#fb-hero .fb-input {
  flex: 1 1 22rem;
  min-height: 3.5rem;
  font-family: var(--sc-body);
  font-size: 1.2rem;
  padding: 0 1.2rem;
  border-radius: 6px;
  border: 2px solid transparent;
  outline: none;
  color: #1b1f1c;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#fb-hero .fb-input:focus {
  border-color: #5db433;
  box-shadow: 0 0 0 3px rgba(93, 180, 51, 0.3);
}
#fb-hero .fb-cat {
  flex: 0 1 15rem;
  min-height: 3.5rem;
  font-family: var(--sc-body);
  font-size: 1rem;
  padding: 0 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  outline: none;
  color: #e7e9e5;
  background: #23272a;
  cursor: pointer;
}
#fb-hero .fb-cat:focus {
  border-color: #5db433;
}
#fb-hero .fb-btn {
  flex: 0 0 auto;
  min-height: 3.5rem;
  padding: 0 2rem;
  font-family: var(--sc-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  border: none;
  color: #0f1a09;
  background: #5db433;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
#fb-hero .fb-btn:hover {
  background: #7fd653;
  transform: translateY(-1px);
}
#fb-hero .fb-hint {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: #c8cbc6;
}
@media (max-width: 576px) {
  #fb-hero { padding: 1.4rem 1rem 3.2rem; }
  #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: #ffffff;
  opacity: 0.8;
  border-radius: 6px !important;
}
#fb-gear:hover,
#fb-gear.active {
  opacity: 1;
  background: rgba(93, 180, 51, 0.25);
}

/* ---------- Anmeldeseite, Grundwerte vor dem Umbau ---------- */
body:not(:has(pngx-root)) img.logo {
  width: 110px !important;
  height: 110px !important;
  margin-bottom: 1rem !important;
}
body:not(:has(pngx-root)) .btn-primary {
  background-color: #5db433 !important;
  border-color: #5db433 !important;
  color: #0f1a09 !important;
}
body:not(:has(pngx-root)) .btn-primary:hover {
  background-color: #7fd653 !important;
  border-color: #7fd653 !important;
}
body:not(:has(pngx-root)) a {
  color: #3f8a1c;
}

/* ============================================================
   Anmeldeseite im Stil von schwaben-contrans.de
   ============================================================ */
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: #f2f3ef;
  font-family: var(--sc-body);
  color: #1b1f1c;
}
#fb-auth {
  text-align: left !important;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 100vh;
}
.fb-auth-side {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 48px 48px 110px;
  color: #fff;
  background:
    linear-gradient(200deg, rgba(21, 24, 26, 0.55) 0%, rgba(21, 24, 26, 0.82) 55%, rgba(21, 24, 26, 0.96) 100%),
    url("/findbird-static/sc/sattelzug.jpg") center 60% / cover no-repeat,
    #15181a;
}
/* Fahrbahn unten */
.fb-auth-side::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46px;
  background: linear-gradient(180deg, #1d2123, #111315);
  border-top: 3px solid #5db433;
}
.fb-auth-side::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 4px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.75) 0 46px, transparent 46px 92px);
}
.fb-auth-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}
.fb-auth-brand img {
  height: 56px;
  width: auto;
  display: block;
}
.fb-auth-brand .fb-prod {
  font-family: var(--sc-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b9bcb7;
  padding-left: 16px;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  line-height: 1.25;
}
.fb-auth-brand .fb-prod b {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}
.fb-auth-pitch {
  position: relative;
  max-width: 34rem;
}
.fb-auth-pitch .fb-eyebrow {
  font-family: var(--sc-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7fd653;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.fb-auth-pitch .fb-eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: #5db433;
  flex: none;
}
.fb-auth-pitch h2 {
  font-family: var(--sc-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  color: #fff;
  margin: 0 0 1.2rem;
}
.fb-auth-pitch h2 span {
  display: block;
  color: #5db433;
}
.fb-auth-pitch p {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #c8cbc6;
  margin: 0 0 1.6rem;
}
.fb-auth-pitch ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.fb-auth-pitch li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--sc-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e7e9e5;
}
.fb-auth-pitch li::before {
  content: "";
  width: 9px;
  height: 9px;
  background: #5db433;
  transform: rotate(45deg);
  flex: none;
}
.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: 480px;
  background: #ffffff;
  border: 1px solid #d9dbd4;
  border-top: 4px solid #5db433;
  border-radius: 6px;
  padding: 40px;
  box-shadow: 0 18px 40px rgba(21, 24, 26, 0.08);
}
#fb-auth .form-accounts {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}
#fb-auth h1 {
  font-family: var(--sc-display);
  font-weight: 800;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #15181a;
  margin: 0 0 26px;
}
#fb-auth .fb-auth-lead {
  font-size: 1.05rem;
  color: #4d524e;
  margin: 0 0 22px;
}
#fb-auth .fb-field {
  margin: 0 0 18px;
}
#fb-auth .fb-field label {
  display: block;
  font-family: var(--sc-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4d524e;
  margin: 0 0 6px;
}
#fb-auth .form-control {
  height: 54px;
  border-radius: 6px !important;
  border: 1px solid #d9dbd4;
  background: #f2f3ef;
  font-family: var(--sc-body);
  font-size: 1.05rem;
  padding: 0 14px;
  color: #1b1f1c;
  box-shadow: none;
}
#fb-auth .form-control:focus {
  background: #ffffff;
  border-color: #5db433;
  box-shadow: 0 0 0 3px rgba(93, 180, 51, 0.2);
}
#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: 6px;
  background: transparent;
  color: #7a7876;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#fb-auth .fb-eye:hover,
#fb-auth .fb-eye.on {
  color: #3f8a1c;
}
#fb-auth .d-grid {
  margin-top: 26px !important;
}
#fb-auth .btn-primary {
  height: 54px;
  border-radius: 6px;
  font-family: var(--sc-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f1a09 !important;
  background-color: #5db433 !important;
  border-color: #5db433 !important;
}
#fb-auth .btn-primary:hover {
  background-color: #7fd653 !important;
  border-color: #7fd653 !important;
}
#fb-auth .alert {
  border-radius: 6px;
  text-align: left;
}
#fb-auth a {
  color: #3f8a1c;
  font-weight: 600;
  text-decoration: none;
}
#fb-auth a:hover {
  color: #5db433;
}
@media (max-width: 900px) {
  #fb-auth { grid-template-columns: 1fr; }
  .fb-auth-side { display: none; }
  .fb-auth-main {
    justify-content: flex-start;
    padding: 0 16px 40px;
  }
  .fb-auth-mobile {
    display: flex;
    align-self: stretch;
    margin: 0 -16px 28px;
    padding: 18px 16px;
    background: #15181a;
    border-bottom: 3px solid #5db433;
  }
  .fb-auth-mobile img { height: 40px; }
  .fb-auth-card { padding: 28px 22px; }
}
