/* ------------------------------------------------------------------
   Naydbus – schlichte Grundgestaltung.
   Bewusst neutral gehalten: Farben, Abstände und Look passt du
   selbst an dein Design an. Alle Klassen beginnen mit nb- bzw.
   naydbus-, damit nichts mit deinem Theme kollidiert.
------------------------------------------------------------------- */

.naydbus { max-width: 960px; margin: 0 auto; }

.naydbus * { box-sizing: border-box; }

/* Suchmaske */
.naydbus-search {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  background: #fff;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.naydbus-search .nb-field { display: flex; flex-direction: column; flex: 1 1 160px; }
.naydbus-search .nb-field-submit { flex: 0 0 auto; }
.naydbus-search label { font-size: 13px; color: #555; margin-bottom: 4px; }
.naydbus-search input {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
}

/* Buttons */
.nb-btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  color: #111;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
}
.nb-btn-primary { background: #0f8a76; border-color: #0f8a76; color: #fff; }
.nb-btn-primary:hover { background: #0a6a5b; }
.nb-btn-block { width: 100%; margin-top: 14px; }

/* Ergebnisliste */
.naydbus-results { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.nb-offer {
  display: grid;
  grid-template-columns: 140px 1fr auto auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}
.nb-offer-time { font-weight: 600; }
.nb-arrow { margin: 0 6px; color: #999; }
.nb-offer-price { font-size: 20px; font-weight: 700; }
.nb-muted { color: #6b7280; font-size: 14px; }
.nb-error { color: #b91c1c; }

/* Checkout */
.naydbus-checkout {
  margin-top: 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}
.nb-summary { background: #f3f4f6; border-radius: 8px; padding: 12px; margin: 10px 0; }
.nb-pax-row, .nb-contact { display: flex; gap: 10px; margin-bottom: 8px; }
.nb-pax-row input, .nb-contact input {
  flex: 1; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px;
}
.nb-pay label { display: block; padding: 8px 0; }
.nb-pay-msg { min-height: 20px; margin: 8px 0; }

.nb-success { text-align: center; padding: 20px; }
.nb-success h3 { color: #0f8a76; }

/* Konto / Tickets */
.naydbus-account .nb-account-head {
  display: flex; justify-content: space-between; align-items: center;
}
.naydbus-my-bookings { display: flex; flex-direction: column; gap: 12px; }
.nb-ticket {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px;
}
.nb-ticket-head { display: flex; justify-content: space-between; }
.nb-ticket-code { color: #0f8a76; font-weight: 600; }

/* Hin-/Rückfahrt-Umschalter */
.nb-triptype { display: flex; gap: 20px; width: 100%; margin-bottom: 4px; }
.nb-triptype-opt { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 15px; }

/* Felder-Zeile */
.nb-fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; width: 100%; }
.nb-fields .nb-field { display: flex; flex-direction: column; flex: 1 1 150px; }
.nb-fields .nb-field-submit { flex: 0 0 auto; }
.nb-fields label { font-size: 13px; color: #555; margin-bottom: 4px; }
.nb-fields input {
  padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px;
}

/* Autocomplete */
.nb-autocomplete { position: relative; }
.nb-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  margin: 4px 0 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  max-height: 260px;
  overflow-y: auto;
}
.nb-suggest-item { padding: 9px 12px; cursor: pointer; font-size: 15px; }
.nb-suggest-item:hover,
.nb-suggest-item.is-active { background: #f0fdf9; color: #0a6a5b; }

/* Testmodus */
.nb-testbanner {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}
.nb-testnote {
  background: #fff7ed;
  color: #9a3412;
  border: 1px dashed #fdba74;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 8px 0;
  font-size: 14px;
}

/* Mobil */
@media (max-width: 640px) {
  .nb-offer { grid-template-columns: 1fr; text-align: left; }
  .nb-fields .nb-field { flex: 1 1 100%; }
}
