/* ============================================================================
   NEXT TAXI INLINE CORP (NTIC) — Stylesheet
   Dunkles Luxus-Design: Tiefschwarz, Gold (#d4af37) & Soft-Cyan Akzente
   ============================================================================ */

:root {
  --bg: #05070d;
  --bg-2: #0a0e18;
  --panel: rgba(18, 23, 36, 0.72);
  --panel-brd: rgba(212, 175, 55, 0.18);
  --gold: #d4af37;
  --gold-soft: #f1d99a;
  --cyan: #7fe9ff;
  --cyan-soft: #9affd8;
  --text: #e9edf5;
  --muted: #9aa6bd;
  --danger: #ff8a8a;
  --ok: #7fffbf;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  background: radial-gradient(1200px 800px at 70% -10%, #121a30 0%, var(--bg) 55%) fixed;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  letter-spacing: 0.2px;
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

h1, h2, h3, .brand-text strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.5px;
}

a { color: inherit; text-decoration: none; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
code {
  background: rgba(255,255,255,0.07);
  padding: 1px 6px; border-radius: 5px; font-size: 0.85em;
  color: var(--cyan-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.8rem 1.6rem; border-radius: 999px;
  font-family: "Rajdhani", sans-serif; font-weight: 600; font-size: 0.95rem;
  letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: #1a1403; box-shadow: 0 8px 24px rgba(212,175,55,0.3);
}
.btn-gold:hover { box-shadow: 0 10px 32px rgba(212,175,55,0.5); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: rgba(255,255,255,0.22);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 2.2rem;
  background: rgba(5,7,13,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212,175,55,0.14);
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark { color: var(--gold); font-size: 1.3rem; }
.brand-text strong { font-size: 1.25rem; color: var(--text); letter-spacing: 3px; }
.brand-text em { font-style: normal; color: var(--gold); font-size: 0.78rem; letter-spacing: 4px; display: block; margin-top: -4px; }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a { color: var(--muted); font-weight: 500; letter-spacing: 1px; font-size: 0.9rem; transition: color .2s; }
.nav-links a:hover { color: var(--gold-soft); }
.nav-cta { padding: 0.55rem 1.2rem; font-size: 0.8rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 1;
  min-height: 92vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 4rem 1.5rem 2rem;
}
.hero-content { max-width: 880px; }
.hero h1 {
  font-size: clamp(3rem, 9vw, 7rem); line-height: 0.92; font-weight: 700;
  text-shadow: 0 0 60px rgba(212,175,55,0.25);
}
.hero h1 span {
  display: block; color: var(--gold);
  font-size: clamp(1.4rem, 3.4vw, 2.6rem); letter-spacing: 12px; margin-top: 0.5rem;
}
.hero-tagline { font-size: 1.25rem; color: var(--text); margin-top: 1.2rem; }
.hero-motto { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.4rem; color: var(--gold-soft); margin-top: 0.4rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2.5rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: "Cormorant Garamond", serif; font-size: 2rem; color: var(--gold); }
.hero-stats span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); }
.scroll-hint { position: absolute; bottom: 1.4rem; color: var(--muted); font-size: 0.8rem; letter-spacing: 2px; animation: bob 2s infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(6px);} }

/* ---------- Sections ---------- */
.section { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 5rem 1.5rem; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
.section-sub { color: var(--muted); max-width: 640px; margin: 0.6rem auto 0; }

/* ---------- System-Tabs ---------- */
.sys-tabs { display: flex; gap: 0.6rem; justify-content: center; margin-bottom: 1.4rem; flex-wrap: wrap; }
.sys-tab {
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.14); color: var(--muted);
  border-radius: 999px; padding: 0.5rem 1.4rem; cursor: pointer; letter-spacing: 1.5px;
  text-transform: uppercase; font-size: 0.82rem; font-weight: 600; font-family: "Rajdhani", sans-serif;
  transition: all .2s;
}
.sys-tab:hover { color: var(--gold-soft); border-color: var(--panel-brd); }
.sys-tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: #1a1403;
  border-color: transparent; box-shadow: 0 6px 18px rgba(212,175,55,0.3);
}

/* ---------- Verfügbarkeits-Badge ---------- */
.avail-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem;
  background: rgba(0,0,0,0.35); border: 1px solid var(--panel-brd); border-radius: 999px;
  padding: 0.45rem 1.1rem; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.5px; color: var(--text);
}
.avail-inline { color: var(--ok); font-size: 0.85rem; font-weight: 600; font-family: "Rajdhani", sans-serif; }

/* ---------- Panels ---------- */
.panel {
  background: var(--panel); border: 1px solid var(--panel-brd);
  border-radius: var(--radius); padding: 1.8rem; backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; margin-bottom: 1.1rem; flex: 1; }
.field label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 0.7rem 0.9rem; color: var(--text);
  font-family: "Rajdhani", sans-serif; font-size: 1rem; transition: border .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
.field select option { background: #0a0e18; }
.field-row { display: flex; gap: 1rem; align-items: flex-end; }
.hint { color: var(--muted); font-size: 0.75rem; margin-top: 0.3rem; }
.check { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); margin-bottom: 1.1rem; cursor: pointer; }
.check input { accent-color: var(--gold); width: 16px; height: 16px; }
.form-msg { margin-top: 0.8rem; font-size: 0.9rem; min-height: 1.2em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--danger); }
.swap {
  background: rgba(212,175,55,0.12); border: 1px solid var(--panel-brd); color: var(--gold);
  border-radius: 10px; width: 42px; height: 42px; cursor: pointer; font-size: 1.2rem;
  margin-bottom: 1.1rem; transition: background .2s;
}
.swap:hover { background: rgba(212,175,55,0.25); }

/* ---------- Buchungs-Grid & Angebot ---------- */
.book-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.6rem; }
.quote { display: flex; flex-direction: column; }
.quote h3 { color: var(--gold-soft); font-size: 1.4rem; margin-bottom: 0.6rem; }
.quote-route { color: var(--cyan-soft); font-weight: 600; letter-spacing: 0.5px; margin-bottom: 1.2rem; min-height: 1.4em; }
.quote-hero {
  text-align: center; padding: 1.4rem; border-radius: 12px; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, rgba(212,175,55,0.14), rgba(127,233,255,0.06));
  border: 1px solid var(--panel-brd);
}
.quote-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); }
.quote-price { display: block; font-family: "Cormorant Garamond", serif; font-size: 3rem; font-weight: 700; color: var(--gold); line-height: 1; margin: 0.3rem 0; }
.quote-unit { font-size: 0.8rem; color: var(--muted); }
.quote-meta { display: flex; gap: 1rem; margin-bottom: 1.2rem; }
.quote-meta div { flex: 1; text-align: center; background: rgba(0,0,0,0.3); border-radius: 10px; padding: 0.8rem; }
.quote-meta span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.quote-meta strong { font-size: 1.15rem; color: var(--cyan-soft); }
.quote-break summary { cursor: pointer; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.quote-break ul { list-style: none; margin-top: 0.8rem; }
.quote-break li { display: flex; justify-content: space-between; padding: 0.35rem 0; border-bottom: 1px dashed rgba(255,255,255,0.08); font-size: 0.92rem; }
.quote-break li span { color: var(--muted); }
.quote-break li.total { border-bottom: none; margin-top: 0.4rem; font-weight: 700; color: var(--gold); font-size: 1.05rem; }

/* ---------- Karte ---------- */
.map-wrap { position: relative; padding: 0; overflow: hidden; }
#systemMap { width: 100%; height: auto; display: block; background: radial-gradient(900px 600px at 50% 40%, #0b1428 0%, #05070d 80%); }
.map-node { cursor: pointer; transition: r .15s; }
.map-node:hover { filter: brightness(1.4); }
.map-label { fill: var(--muted); font-family: "Rajdhani", sans-serif; font-size: 13px; pointer-events: none; }
.orbit { fill: none; stroke: rgba(127,209,255,0.1); stroke-width: 1; }
.route-line { stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 8 6; filter: drop-shadow(0 0 6px rgba(212,175,55,0.6)); animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.driver-marker { filter: drop-shadow(0 0 6px rgba(127,255,191,0.8)); }
.map-legend {
  position: absolute; bottom: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  background: rgba(5,7,13,0.7); padding: 0.6rem 0.9rem; border-radius: 10px; backdrop-filter: blur(8px);
  font-size: 0.75rem; border: 1px solid var(--panel-brd);
}
.map-legend span { display: flex; align-items: center; gap: 0.35rem; color: var(--muted); }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.map-tooltip {
  position: absolute; pointer-events: none; background: rgba(5,7,13,0.95);
  border: 1px solid var(--gold); border-radius: 8px; padding: 0.5rem 0.8rem; font-size: 0.85rem;
  transform: translate(-50%, -130%); z-index: 5; white-space: nowrap; box-shadow: var(--shadow);
}
.map-tooltip strong { color: var(--gold-soft); }

/* ---------- Fahrer-Konsole ---------- */
.drive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.drive-col { display: flex; flex-direction: column; gap: 1.6rem; }

/* Login-Panel */
.login-card { text-align: center; }
.login-card .lock-icon { font-size: 2rem; margin-bottom: 0.4rem; }
.login-card h3 { color: var(--gold-soft); font-size: 1.5rem; margin-bottom: 0.4rem; }
.login-card .field { text-align: left; margin-top: 1rem; }
.login-card input { text-align: center; letter-spacing: 2px; }

/* Eingeloggt-Leiste */
.logged-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: rgba(127,255,191,0.07); border: 1px solid rgba(127,255,191,0.25);
  border-radius: 10px; padding: 0.7rem 1rem; margin-bottom: 1.2rem; font-size: 0.95rem;
}
.logged-bar strong { color: var(--ok); }
.btn-logout {
  background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--muted);
  border-radius: 8px; padding: 0.4rem 0.9rem; cursor: pointer; font-size: 0.8rem;
  font-family: "Rajdhani", sans-serif; font-weight: 600; letter-spacing: 0.5px; transition: all .2s;
}
.btn-logout:hover { color: var(--danger); border-color: var(--danger); }

.driver-list .d-sys { font-size: 0.7rem; color: var(--muted); border: 1px solid rgba(255,255,255,0.15); border-radius: 999px; padding: 0 7px; margin-left: 4px; text-transform: uppercase; letter-spacing: 1px; }
.driver-list, .board-list { list-style: none; }
.driver-list li {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot.available { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.dot.enroute { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dot.busy { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.dot.offline { background: #566; }
.driver-list .d-main { flex: 1; }
.driver-list .d-name { font-weight: 600; }
.driver-list .d-sub { font-size: 0.82rem; color: var(--muted); }
.driver-list .d-eta { color: var(--cyan-soft); font-weight: 600; font-size: 0.9rem; }
.empty { color: var(--muted); font-style: italic; padding: 1rem 0; }

/* ---------- Auftragsboard ---------- */
.board-panel { padding: 0.6rem 1.8rem; }
.board-list li {
  display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1rem; align-items: center;
  padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.board-list .b-route { font-weight: 600; font-size: 1.05rem; }
.board-list .b-sub { color: var(--muted); font-size: 0.85rem; grid-column: 1; }
.board-list .b-price { color: var(--gold); font-weight: 700; font-family: "Cormorant Garamond", serif; font-size: 1.4rem; text-align: right; }
.board-list .b-actions { display: flex; gap: 0.5rem; grid-column: 2; justify-self: end; }
.badge { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; padding: 2px 10px; border-radius: 999px; border: 1px solid; }
.badge.open { color: var(--cyan-soft); border-color: var(--cyan-soft); }
.badge.claimed { color: var(--gold); border-color: var(--gold); }
.badge.done { color: var(--muted); border-color: var(--muted); }
.badge.express { color: #ffb86b; border-color: #ffb86b; }
.badge.vip { color: #ff9ad1; border-color: #ff9ad1; }
.badge.jump { color: #ff7a4d; border-color: #ff7a4d; }
.route-jump { color: #ff7a4d; font-size: 0.85rem; font-weight: 600; }
.mini-btn {
  background: rgba(212,175,55,0.12); border: 1px solid var(--panel-brd); color: var(--gold-soft);
  border-radius: 8px; padding: 0.4rem 0.9rem; font-size: 0.8rem; cursor: pointer; letter-spacing: 0.5px;
  font-family: "Rajdhani", sans-serif; font-weight: 600; transition: background .2s;
}
.mini-btn:hover { background: rgba(212,175,55,0.25); }
.mini-btn.ghost { background: transparent; color: var(--muted); border-color: rgba(255,255,255,0.15); }
.mini-btn.ghost:hover { color: var(--danger); border-color: var(--danger); }

/* ---------- Flotte ---------- */
.fleet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.fleet-card h3 { color: var(--gold-soft); font-size: 1.5rem; margin-bottom: 0.8rem; }
.fleet-card p { color: var(--muted); margin-bottom: 1rem; }
.feature-list { list-style: none; }
.feature-list li { padding: 0.4rem 0; color: var(--text); }
.feature-list li::marker { content: none; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; text-align: center; padding: 3rem 1.5rem; border-top: 1px solid rgba(212,175,55,0.14); margin-top: 3rem; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: "Cormorant Garamond", serif; font-size: 1.3rem; letter-spacing: 3px; margin-bottom: 0.5rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: #1a1403;
  padding: 0.9rem 1.6rem; border-radius: 999px; font-weight: 600; z-index: 100;
  box-shadow: 0 12px 40px rgba(212,175,55,0.4); opacity: 0; transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast { pointer-events: none; }

/* ======================= SEITEN-LAYOUT (track/driver) ===================== */
.page { position: relative; z-index: 1; min-height: 70vh; padding-top: 1rem; }
.section.narrow { max-width: 720px; }
.track-head {
  position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 0.5rem;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.track-head h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
.dash-actions { display: flex; align-items: center; gap: 0.8rem; }
.btn-admin { padding: 0.5rem 1rem; font-size: 0.8rem; }

/* ---------- Banner ---------- */
.no-driver-banner {
  max-width: 1200px; margin: 1rem auto; padding: 1rem 1.3rem; border-radius: 12px;
  background: rgba(255,170,90,0.1); border: 1px solid rgba(255,170,90,0.4); color: #ffd9b0;
}
.arrival-banner {
  max-width: 1200px; margin: 1rem auto; padding: 1.1rem 1.4rem; border-radius: 14px;
  background: linear-gradient(135deg, rgba(127,255,191,0.18), rgba(212,175,55,0.14));
  border: 1px solid var(--ok); color: var(--text); font-size: 1.1rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.8rem; opacity: 0; transform: translateY(-8px);
  transition: opacity .4s, transform .4s;
}
.arrival-banner.show { opacity: 1; transform: translateY(0); }
.arrival-banner .bell { font-size: 1.6rem; animation: ring 0.6s ease-in-out infinite; display: inline-block; }
@keyframes ring { 0%,100%{ transform: rotate(0);} 25%{ transform: rotate(16deg);} 75%{ transform: rotate(-16deg);} }

/* ---------- Stepper ---------- */
.stepper { max-width: 1200px; margin: 1rem auto; display: flex; align-items: center; justify-content: space-between; gap: 0.3rem; padding: 1.4rem 1.6rem; }
.step { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; flex: 0 0 auto; width: 92px; }
.step-dot {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.18); color: var(--muted);
  font-weight: 700; transition: all .3s;
}
.step-label { font-size: 0.74rem; color: var(--muted); line-height: 1.2; }
.step.active .step-dot { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 5px rgba(212,175,55,0.15); animation: pulse 1.6s infinite; }
.step.active .step-label { color: var(--gold-soft); font-weight: 600; }
.step.done .step-dot { background: linear-gradient(135deg, var(--ok), var(--cyan-soft)); border-color: transparent; color: #04120b; }
.step.done .step-label { color: var(--cyan-soft); }
.step-line { flex: 1 1 auto; height: 2px; background: rgba(255,255,255,0.12); margin-top: -18px; min-width: 10px; }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 5px rgba(212,175,55,0.15);} 50%{ box-shadow: 0 0 0 9px rgba(212,175,55,0.05);} }

/* ---------- Tracking-Grid ---------- */
.track-grid { max-width: 1200px; margin: 1rem auto 0; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 1.6rem; padding: 0 1.5rem; }
.track-status { display: flex; flex-direction: column; }
.status-pill {
  display: inline-block; align-self: flex-start; padding: 0.4rem 1rem; border-radius: 999px;
  font-weight: 700; letter-spacing: 0.5px; font-size: 0.9rem; margin-bottom: 1rem;
  background: rgba(127,233,255,0.12); border: 1px solid var(--cyan); color: var(--cyan);
}
.status-pill.s-arrived_pickup, .status-pill.s-in_transit { background: rgba(212,175,55,0.14); border-color: var(--gold); color: var(--gold-soft); }
.status-pill.s-arrived_dest, .status-pill.s-completed { background: rgba(127,255,191,0.14); border-color: var(--ok); color: var(--ok); }
.status-msg { font-size: 1.15rem; color: var(--text); margin-bottom: 1.2rem; min-height: 2.6em; }
.track-meta { display: grid; gap: 0.8rem; margin-bottom: 1.2rem; }
.track-meta div { background: rgba(0,0,0,0.3); border-radius: 10px; padding: 0.8rem 1rem; display: flex; justify-content: space-between; align-items: center; }
.track-meta span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.track-meta strong { font-size: 1.15rem; color: var(--cyan-soft); }
.driver-info { display: flex; align-items: center; gap: 0.9rem; background: rgba(0,0,0,0.3); border-radius: 12px; padding: 0.9rem 1.1rem; margin-top: auto; }
.driver-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: #1a1403;
  font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.5px;
}
.driver-name { font-weight: 700; font-size: 1.05rem; }
.track-map svg { min-height: 420px; }

/* ---------- Ablauf (how) ---------- */
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.how-card { text-align: center; position: relative; }
.how-card h3 { color: var(--gold-soft); margin: 0.6rem 0 0.4rem; font-size: 1.3rem; }
.how-card p { color: var(--muted); font-size: 0.92rem; }
.how-num {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: #1a1403;
  font-family: "Cormorant Garamond", serif; font-size: 1.5rem; font-weight: 700;
}

/* ---------- Fahrer-Dashboard ---------- */
.active-trip .trip-steps { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.8rem; color: var(--muted); font-size: 0.9rem; }
.active-trip .trip-steps strong { color: var(--text); }
.footer-links { margin: 0.4rem 0; }
.footer-links a { color: var(--gold-soft); }
.footer-links a:hover { color: var(--gold); }

/* ---------- Verbindungs-/Offline-Banner ---------- */
.conn-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: linear-gradient(135deg, #5a2b12, #7a3a18); color: #ffe4c9;
  border-bottom: 1px solid rgba(255,170,90,0.5); text-align: center;
  padding: 0.6rem 1rem; font-size: 0.9rem;
}
.conn-bar code { background: rgba(0,0,0,0.3); color: #ffd9b0; }

/* ---------- Entschuldigung / Onboard / Redirect ---------- */
.apology-note {
  background: rgba(255,170,90,0.1); border: 1px solid rgba(255,170,90,0.4); color: #ffd9b0;
  border-radius: 10px; padding: 0.7rem 0.9rem; margin-bottom: 1rem; font-size: 0.92rem;
}
.onboard-confirm { color: var(--ok); font-weight: 600; margin-bottom: 1rem; }
.redirect-note { color: var(--cyan-soft); font-weight: 600; margin: 0.4rem 0 1rem; }
#onboardBtn { margin-bottom: 1rem; }
.onboard-notice {
  background: rgba(127,255,191,0.12); border: 1px solid var(--ok); color: var(--ok);
  border-radius: 10px; padding: 0.7rem 0.9rem; margin-bottom: 0.8rem; font-weight: 600;
}
.pulse { animation: btnpulse 1.3s infinite; }
@keyframes btnpulse { 0%,100%{ box-shadow: 0 8px 24px rgba(212,175,55,0.3);} 50%{ box-shadow: 0 8px 34px rgba(127,255,191,0.6);} }

/* ---------- Chat ---------- */
.chat-panel { display: flex; flex-direction: column; margin-top: 1.6rem; }
.chat-panel h3 { color: var(--gold-soft); margin-bottom: 0.8rem; }
.chat-messages {
  display: flex; flex-direction: column; gap: 0.5rem; min-height: 120px; max-height: 320px;
  overflow-y: auto; padding: 0.4rem; margin-bottom: 0.8rem;
}
.chat-msg { max-width: 78%; padding: 0.5rem 0.8rem; border-radius: 12px; display: flex; flex-direction: column; gap: 2px; }
.chat-msg .chat-from { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; }
.chat-msg .chat-text { word-break: break-word; }
.chat-msg.me { align-self: flex-end; background: linear-gradient(135deg, rgba(212,175,55,0.9), rgba(241,217,154,0.9)); color: #1a1403; border-bottom-right-radius: 3px; }
.chat-msg.them { align-self: flex-start; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-bottom-left-radius: 3px; }
.chat-input { display: flex; gap: 0.6rem; }
.chat-input input {
  flex: 1; background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 0.7rem 0.9rem; color: var(--text); font-family: "Rajdhani", sans-serif; font-size: 1rem;
}
.chat-input input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.15); }
.chat-input .btn { padding: 0.7rem 1.3rem; }

/* ---------- Log-System / Regelwerk ---------- */
.btn-danger { background: linear-gradient(135deg, #a6342b, #d35046); color: #fff; }
.btn-danger:hover { box-shadow: 0 10px 32px rgba(211,80,70,0.5); transform: translateY(-2px); }
.logbook-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.6rem; margin-top: 1.6rem; }
.consequence-note { color: var(--gold-soft); font-size: 0.85rem; margin: 0.2rem 0 1rem; min-height: 2.4em; }

.hours-panel { text-align: center; }
.hours-big { font-family: "Cormorant Garamond", serif; font-size: 2.6rem; font-weight: 700; color: var(--gold); margin: 0.6rem 0 0.2rem; }
.hours-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.8rem; }
.hours-sub .golden { color: var(--gold); font-weight: 700; }
.hours-stats { color: var(--cyan-soft); font-weight: 600; }

/* ---------- Kunden-Treuesystem ---------- */
.loyalty-card { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 0.9rem 1rem; margin-top: 0.8rem; text-align: left; }
.loyalty-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5rem; }
.loyalty-disc { color: var(--ok); font-family: "Cormorant Garamond", serif; font-size: 1.1rem; }
.loyalty-stats { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; color: var(--muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.loyalty-stats strong { color: var(--cyan-soft); }
.loyalty-milestones { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.5rem; }
.loyalty-milestones strong { color: var(--gold-soft); }
.loyalty-rewards { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.badge.reward { color: var(--ok); border-color: var(--ok); }
.badge.golden-badge { color: #1a1403; background: linear-gradient(135deg, var(--gold), var(--gold-soft)); border-color: transparent; font-weight: 700; }
.loyalty-panel { margin-top: 1.6rem; }
.loyalty-panel h3 { color: var(--gold-soft); margin-bottom: 0.4rem; }

/* ---------- Admin / Piloten ---------- */
.code-row { display: flex; gap: 0.5rem; }
.code-row input { flex: 1; }
.pilot-list { list-style: none; }
.pilot-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.pilot-name { font-weight: 700; }
.pilot-code { color: var(--muted); font-size: 0.85rem; }
.pilot-code code { color: var(--gold-soft); background: rgba(212,175,55,0.1); }

/* ---------- Schiffe / Flotte ---------- */
.quote-ship { color: var(--cyan-soft); font-weight: 600; margin-bottom: 1rem; font-size: 0.95rem; }
.quote-shiptag { color: var(--cyan-soft); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.ship-card { text-align: center; display: flex; flex-direction: column; }
.ship-card .ship-mono {
  width: 56px; height: 56px; margin: 0 auto 0.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212,175,55,0.12); border: 1px solid var(--panel-brd); color: var(--gold-soft);
  font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 1.1rem; letter-spacing: 1px;
}
.ship-card h3 { color: var(--gold-soft); font-size: 1.3rem; }
.ship-card .ship-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.ship-card .feature-list { text-align: left; flex: 1; }
.ship-card .ship-status { margin: 0.8rem 0; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
.ship-card.ship-available { border-color: rgba(127,255,191,0.4); box-shadow: 0 0 0 1px rgba(127,255,191,0.15), var(--shadow); }
.ship-card.ship-available h3 { color: var(--ok); }
.ship-card.ship-available .ship-mono { background: rgba(127,255,191,0.12); border-color: rgba(127,255,191,0.4); color: var(--ok); }

@media (max-width: 980px) { .fleet-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .fleet-grid { grid-template-columns: 1fr; } }

.register-list, .log-list { list-style: none; }
.register-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 0.6rem 1rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.reg-name { font-weight: 600; }
.reg-sub { color: var(--muted); font-size: 0.85rem; }
.reg-fine { color: var(--danger); font-weight: 700; font-family: "Cormorant Garamond", serif; font-size: 1.2rem; }
.badge.ban { color: #ff8a8a; border-color: #ff8a8a; }
.badge.warn { color: #ffb86b; border-color: #ffb86b; }
.ban-info { margin-top: 0.4rem; color: #ff8a8a; font-size: 0.82rem; background: rgba(255,80,70,0.08); border: 1px solid rgba(255,80,70,0.35); border-radius: 8px; padding: 0.4rem 0.6rem; }
.banned-order { background: rgba(255,80,70,0.05); border-radius: 10px; }
.mini-btn.pay { background: rgba(127,255,191,0.14); border-color: rgba(127,255,191,0.4); color: var(--ok); }
.mini-btn.pay:hover { background: rgba(127,255,191,0.26); }
.mini-btn.disabled { opacity: 0.5; cursor: not-allowed; color: #ff8a8a; border-color: rgba(255,80,70,0.4); }

.log-list li { display: flex; gap: 0.7rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.log-icon { flex-shrink: 0; font-size: 1.1rem; }
.log-body { flex: 1; font-size: 0.9rem; }
.log-time { color: var(--muted); font-size: 0.75rem; margin-top: 2px; }
.log-warn { color: #ffb86b; }
.log-ok { color: var(--ok); }

@media (max-width: 880px) {
  .logbook-grid { grid-template-columns: 1fr; }
  .register-list li { grid-template-columns: 1fr; }
}

/* ---------- Regelwerk-Seite ---------- */
.rules-page .rule-section { margin-bottom: 1.4rem; }
.rule-section h3 { color: var(--gold-soft); font-size: 1.5rem; margin-bottom: 0.8rem; }
.rule-section h4 { color: var(--cyan-soft); font-size: 1.05rem; margin: 1rem 0 0.4rem; letter-spacing: 0.5px; }
.rule-list { list-style: none; }
.rule-list li { position: relative; padding: 0.35rem 0 0.35rem 1.3rem; color: var(--text); border-bottom: 1px dashed rgba(255,255,255,0.06); }
.rule-list li::before { content: "◈"; position: absolute; left: 0; color: var(--gold); font-size: 0.7rem; top: 0.6rem; }
.rule-list strong { color: var(--gold-soft); }
.rule-table { width: 100%; border-collapse: collapse; margin: 0.6rem 0; }
.rule-table th, .rule-table td { text-align: left; padding: 0.6rem 0.9rem; border: 1px solid rgba(255,255,255,0.1); }
.rule-table th { background: rgba(212,175,55,0.12); color: var(--gold-soft); text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; }
.rule-table td { color: var(--text); }

/* ---------- Zustimmungs-Modal ---------- */
.rules-modal-overlay {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: rgba(3,5,10,0.82); backdrop-filter: blur(6px); padding: 1.2rem;
}
.rules-modal {
  background: var(--panel); border: 1px solid var(--panel-brd); border-radius: var(--radius);
  box-shadow: var(--shadow); max-width: 560px; width: 100%; padding: 1.8rem; max-height: 90vh; overflow-y: auto;
  animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.rules-modal-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.rules-modal-head .brand-mark { font-size: 1.8rem; color: var(--gold); }
.rules-modal-head h3 { font-size: 1.6rem; color: var(--text); }
.rules-modal-list { list-style: none; margin: 1rem 0; }
.rules-modal-list li { padding: 0.4rem 0 0.4rem 1.3rem; position: relative; border-bottom: 1px dashed rgba(255,255,255,0.07); }
.rules-modal-list li::before { content: "◈"; position: absolute; left: 0; color: var(--gold); font-size: 0.7rem; top: 0.65rem; }
.rules-modal-list strong { color: var(--gold-soft); }
.rules-modal a { color: var(--gold-soft); text-decoration: underline; }
.rules-check { margin: 1rem 0; }
.rules-modal-actions { display: flex; justify-content: flex-end; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .book-grid, .drive-grid, .fleet-grid, .track-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .field-row { flex-direction: column; align-items: stretch; }
  .swap { align-self: center; }
  .hero-stats { gap: 1.5rem; }
  .stepper { flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
  .step-line { display: none; }
  .step { width: 80px; }
}

/* ========================= Strafpunkte / Storno ========================= */
.btn-sm { padding: 0.3rem 0.8rem; font-size: 0.78rem; }
.btn-storno { color: var(--danger); border-color: rgba(255,120,110,0.4); }
.btn-storno:hover { border-color: var(--danger); color: #ffb3ad; }

/* Variabler Strafpunkt-Hinweis (Kunden- & Fahrerseite) */
.penalty-hint {
  border-radius: 12px; padding: 0.9rem 1.1rem; margin-bottom: 1.2rem;
  border: 1px solid var(--panel-brd); background: var(--panel);
}
.penalty-hint-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.3rem; }
.penalty-hint-head strong { font-size: 1.02rem; letter-spacing: 0.3px; }
.penalty-hint p { color: var(--muted); font-size: 0.88rem; margin: 0; }
.penalty-hint.lvl-low  { border-color: rgba(212,175,55,0.35); background: rgba(212,175,55,0.07); }
.penalty-hint.lvl-mid  { border-color: rgba(230,150,60,0.45); background: rgba(230,150,60,0.09); }
.penalty-hint.lvl-mid  strong { color: #f0b870; }
.penalty-hint.lvl-high { border-color: rgba(255,140,90,0.5); background: rgba(255,120,70,0.1); }
.penalty-hint.lvl-high strong { color: #ff9c6e; }
.penalty-hint.lvl-ban  { border-color: rgba(255,80,70,0.55); background: rgba(255,70,60,0.12); }
.penalty-hint.lvl-ban  strong { color: #ff8a8a; }

/* Strafseite */
.strafe-page .section-head { margin-bottom: 1.4rem; }
.penalty-status { margin-bottom: 1.4rem; }
.penalty-status h3 { color: var(--gold-soft); margin-bottom: 0.6rem; }
.penalty-status.lvl-ban { border-color: rgba(255,80,70,0.5); }
.penalty-status.lvl-ban h3 { color: #ff8a8a; }
.penalty-amounts { display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 0.6rem 0 0.4rem; }
.penalty-amounts > div { display: flex; flex-direction: column; }
.penalty-amounts span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); }
.penalty-amounts strong { font-family: "Cormorant Garamond", serif; font-size: 1.6rem; color: var(--gold); }
.penalty-status .ban-line { color: #ff8a8a; margin-top: 0.4rem; }

.fine-table { list-style: none; margin-top: 0.8rem; }
.fine-table li { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0.2rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.fine-table li span { color: var(--muted); }
.fine-table li strong { font-family: "Cormorant Garamond", serif; font-size: 1.1rem; color: var(--text); }
.fine-table li.active { background: rgba(212,175,55,0.1); border-radius: 8px; padding-left: 0.6rem; padding-right: 0.6rem; }
.fine-table li.active span, .fine-table li.active strong { color: var(--gold-soft); }

.pay-pending {
  margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: 10px;
  border: 1px solid rgba(154,255,216,0.3); background: rgba(154,255,216,0.08); color: #cfeede; font-size: 0.9rem;
}
.form-msg.ok { color: #9affd8; }