/* ============================================================
   Fuhrpark – Globale Styles
   Samsung One UI Look, Audi-Orange Akzent, mobile-first.
   ============================================================ */

:root {
  --bg-1: #07050a;
  --bg-2: #100a14;
  --card:  rgba(255,255,255,0.04);
  --card-2:rgba(255,255,255,0.06);
  --line:  rgba(255,255,255,0.08);

  --t1: #f4eeda;
  --t2: rgba(244,238,218,0.72);
  --t3: rgba(244,238,218,0.42);

  --orange-1: #ff8a00;
  --orange-2: #ffb347;
  --orange-3: #ffd599;

  --green: #4ade80;
  --red:   #ef4444;
  --blue:  #60a5fa;

  --safe: env(safe-area-inset-bottom, 0px);
  --max:  480px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background:
    radial-gradient(1100px 700px at 20% -10%, rgba(255,138,0,0.08), transparent 60%),
    radial-gradient(900px 700px at 110% 110%, rgba(96,165,250,0.05), transparent 60%),
    var(--bg-1);
  color: var(--t1);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

#app {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 16px calc(100px + var(--safe));
  min-height: 100vh;
}

/* ----- Topbar ----- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 18px;
}
.topbar h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.topbar .badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255,138,0,0.15);
  color: var(--orange-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ----- Cards ----- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
}
.card-grad {
  background:
    linear-gradient(135deg, rgba(255,138,0,0.10), rgba(255,138,0,0.02)),
    var(--card);
  border: 1px solid rgba(255,138,0,0.25);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}

.section-h {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--t3);
  margin: 18px 4px 8px;
}

/* ----- Forms ----- */
label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}
input, select, textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--t1);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 12px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(255,138,0,0.45);
}
.row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.row > * { flex: 1; }

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  text-align: center;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.08s, opacity 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--orange-1), var(--orange-2));
  color: #1a0d00;
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--t1);
  border: 1px solid var(--line);
}
.btn-danger {
  background: rgba(239,68,68,0.15);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.3);
}
.btn-sm { padding: 8px 12px; font-size: 12px; }

/* ----- Status Pills ----- */
.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pill-green { background: rgba(74,222,128,0.15); color: var(--green); }
.pill-red   { background: rgba(239,68,68,0.15);  color: var(--red); }
.pill-blue  { background: rgba(96,165,250,0.15); color: var(--blue); }
.pill-orange{ background: rgba(255,138,0,0.18);  color: var(--orange-2); }

/* ----- Bottom Nav (Samsung One UI) ----- */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(7,5,10,0.92);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  padding: 8px 0 calc(8px + var(--safe));
  display: flex;
  justify-content: space-around;
  z-index: 100;
}
.bottom-nav a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: var(--t3);
  font-size: 10px;
  font-weight: 700;
  padding: 4px;
}
.bottom-nav a.active { color: var(--orange-2); }
.bottom-nav a .ico { display: block; font-size: 20px; margin-bottom: 2px; }

/* ----- Toast ----- */
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(90px + var(--safe));
  transform: translateX(-50%);
  background: rgba(255,138,0,0.95);
  color: #1a0d00;
  font-weight: 800;
  padding: 11px 18px;
  border-radius: 14px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 200;
  max-width: 90%;
  text-align: center;
}
#toast.show { opacity: 1; }
#toast.err  { background: var(--red); color: #fff; }

/* ----- Loading ----- */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,138,0,0.2);
  border-top-color: var(--orange-2);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ----- Lists ----- */
.list-empty {
  text-align: center;
  color: var(--t3);
  font-size: 13px;
  padding: 36px 16px;
}

/* Buchung-Card */
.b-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.b-card .b-l {
  flex: 1;
  min-width: 0;
}
.b-card .kennz {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.b-card .who {
  font-size: 11px;
  color: var(--t3);
  margin-top: 2px;
}
.b-card .when {
  font-size: 13px;
  color: var(--orange-2);
  font-weight: 700;
}
