﻿:root {
  --ink: #17130d;
  --muted: #7f7565;
  --paper: #171512;
  --panel: #f4efe4;
  --line: #4b3f2d;
  --pine: #2e2416;
  --moss: #6f552d;
  --amber: #b88945;
  --steel: #8d8370;
  --shadow: 0 18px 50px rgba(14, 22, 18, .14);
  --font-nordheim: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-nordheim-ui: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --nordheim-copy: #f1e7d6;
  --nordheim-soft: #e4d8c4;
  --nordheim-accent: #c79a58;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-nordheim-ui); color: var(--ink); background: #171512; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.public-view { display: none; }
.public-view.active { display: block; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px clamp(18px, 4vw, 56px); color: #fff; transition: background .2s, box-shadow .2s; }
.site-header.scrolled { background: rgba(16, 13, 9, .96); box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.brand { display: flex; align-items: center; gap: 10px; min-width: max-content; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand small { color: rgba(255,255,255,.9); font-size: 12px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a, .nav-toggle { padding: 10px 12px; border-radius: 6px; color: rgba(255,255,255,.92); }
.main-nav a:hover, .nav-action { background: rgba(255,255,255,.12); color: #fff; }
.nav-toggle { display: none; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.hero.public-view.active { display: grid; }
.hero { position: relative; min-height: 100vh; display: grid; align-items: end; overflow: hidden; color: #fff; background: #080706; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,7,5,.12), rgba(8,7,5,.28) 50%, rgba(8,7,5,.68)); }
.home-page .hero {
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  align-items: stretch;
}
.home-page .hero-image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: cover;
  object-position: center center;
}
.hero-content { position: relative; width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 120px 0 56px; }
.hero-panel { width: min(820px, 100%); margin-left: auto; display: grid; gap: 24px; }
.eyebrow { margin: 0 0 10px; color: var(--amber); text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand strong { font-family: var(--font-nordheim); }
h1 { margin-bottom: 18px; font-size: clamp(46px, 7vw, 84px); line-height: .95; letter-spacing: 0; color: #18130d; }
h2 { margin-bottom: 16px; font-size: clamp(28px, 4vw, 48px); line-height: 1.05; letter-spacing: 0; color: #18130d; }
h3 { margin-bottom: 10px; font-size: 20px; color: #18130d; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.main-nav .active-link { background: rgba(255,255,255,.12); color: #fff; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: min(820px, 100%); }
.stat-card { padding: 24px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: rgba(8,7,5,.48); backdrop-filter: blur(10px); box-shadow: 0 14px 36px rgba(0,0,0,.24); }
.stat-card span { display: block; color: rgba(255,255,255,.82); font-size: 13px; text-transform: uppercase; }
.stat-card strong { display: block; margin-top: 10px; font-size: clamp(34px, 4vw, 54px); color: #fff; text-shadow: 0 0 24px rgba(184,137,69,.28); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 16px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; font-weight: 700; }
.button.primary { background: var(--amber); color: #17120a; }
.button.secondary { background: transparent; border-color: rgba(23,72,58,.45); color: var(--pine); }
.hero .button.secondary { border-color: rgba(255,255,255,.48); color: #fff; }
.section { padding: 82px clamp(18px, 4vw, 56px); }
.section-inner { width: min(1180px, 100%); margin: 0 auto; }
.two-column { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); }
.align-center { align-items: center; }
.copy { color: var(--muted); font-size: 17px; }
.intro-band, .contact-band { background: #211d17; }
.rule-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.info-card, .panel, .metric, .fleet-list div { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 26px rgba(14,22,18,.06); }
.info-card { padding: 22px; min-height: 190px; }
.info-card span { color: var(--amber); font-weight: 800; }
.info-card p, .muted { color: var(--muted); }
.fleet-band { background: #100e0b; }
.fleet-list { display: grid; gap: 12px; }
.fleet-list div { padding: 18px; display: flex; justify-content: space-between; gap: 16px; }
.fleet-list span { color: var(--muted); }
.form { display: grid; gap: 14px; }
.panel { padding: 22px; }
label { display: grid; gap: 6px; color: #324039; font-weight: 700; font-family: var(--font-nordheim-ui); }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px; background: #211d17; color: var(--ink); }
textarea { resize: vertical; }
.form-note { min-height: 22px; color: var(--moss); font-weight: 700; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.portal-shell { min-height: calc(100vh - 82px); padding: 82px clamp(18px, 4vw, 56px); background: #151a18; color: #fff; display: grid; align-items: center; }
.portal-header { width: min(1320px,100%); margin: 0 auto 24px; display: grid; grid-template-columns: minmax(360px, 1.15fr) minmax(280px, 340px) minmax(320px, 380px); gap: 20px; align-items: stretch; }
.auth-grid { display: contents; }
.auth-intro { align-self: center; max-width: 560px; padding-right: clamp(12px, 2vw, 28px); }
.auth-panel { align-content: start; min-height: 100%; padding: 28px 22px; box-shadow: 0 20px 44px rgba(0,0,0,.2); }
.login-panel { display: grid; grid-template-columns: 1fr; gap: 14px; border: 1px solid rgba(184,137,69,.3); border-radius: 8px; background: rgba(255,255,255,.06); }
.login-panel label { color: rgba(255,255,255,.9); font-size: 13px; }
.login-panel .button { width: fit-content; min-width: 112px; }
.portal-grid { width: min(1960px, calc(100vw - 24px)); margin: 0 auto; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.sidebar { background: #202823; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 16px; align-self: start; position: sticky; top: 96px; min-height: calc(100vh - 132px); }
.sidebar-title-frame { margin-bottom: 18px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; color: #f4efe4; font-size: 19px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.sidebar-brand { display: grid; grid-template-columns: 78px 1fr; gap: 14px; align-items: center; margin-bottom: 16px; padding: 16px 14px; }
.sidebar-brand-mark { width: 78px; height: 78px; object-fit: cover; border-radius: 50%; border: 1px solid rgba(199,154,88,.28); }
.sidebar-brand-kicker { display: block; margin-bottom: 6px; color: rgba(255,255,255,.65); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.sidebar-brand strong { display: block; font-size: 17px; line-height: 1.25; max-width: 150px; }
.driver-badge { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; padding: 0 2px 12px; margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
.driver-badge span { display: grid; place-items: center; width: 46px; height: 46px; background: var(--amber); color: #17120a; border-radius: 8px; font-weight: 800; }
.driver-badge strong { display: block; font-size: 14px; line-height: 1.2; }
.driver-badge small { display: block; margin-top: 4px; color: rgba(255,255,255,.88); font-size: 12px; line-height: 1.3; }
.sidebar-meta { margin-bottom: 18px; padding: 14px 16px; background: rgba(255,255,255,.05); color: #f4efe4; border-radius: 8px; }
.sidebar-meta strong,
.sidebar-meta small { display: block; }
.sidebar-meta strong { font-size: 15px; line-height: 1.25; }
.sidebar-meta small { margin-top: 6px; font-size: 12px; line-height: 1.35; color: rgba(228,216,196,.88); word-break: break-word; }
.meta-label { display: block; margin-bottom: 10px; color: rgba(255,255,255,.65); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.tab-button { width: 100%; padding: 12px; border: 0; border-radius: 6px; background: transparent; color: rgba(255,255,255,.88); text-align: left; cursor: pointer; }
.tab-button.active, .tab-button:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-stack { gap: 2px; }
.nav-stack .tab-button { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: center; min-height: 50px; padding: 10px 14px; font-size: 16px; border-radius: 0; }
.nav-stack .tab-button .nav-badge { justify-self: end; }
.nav-stack .tab-button.static { cursor: default; opacity: .78; }
.nav-stack .tab-button.active { border-right: 4px solid var(--amber); background: linear-gradient(90deg, rgba(199,154,88,.18), rgba(199,154,88,.04)); }
.nav-icon { display: inline-grid; width: 20px; height: 20px; border: 1px solid currentColor; border-radius: 5px; opacity: .9; }
.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(199,154,88,.16);
  border: 1px solid rgba(199,154,88,.35);
  color: #f4efe4;
  font-size: 11px;
  font-weight: 800;
}
.logout-button { color: #efc27c; margin-top: 10px; }
.workspace-main { display: grid; gap: 22px; min-width: 0; }
.workspace-head { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(520px, 760px); gap: 24px; align-items: stretch; }
.hub-hero { align-items: center; min-height: 118px; padding: 22px 24px; }
.hub-hero-title { margin-bottom: 10px; font-size: clamp(24px, 2.1vw, 36px); line-height: 1.08; color: #f4efe4; text-shadow: 0 0 12px rgba(255,255,255,.16), 0 0 22px rgba(184,137,69,.18); }
.workspace-kicker { margin: 0 0 8px; color: var(--amber); text-transform: uppercase; font-size: 12px; font-weight: 700; }
.workspace-copy { margin-bottom: 0; max-width: 62ch; font-size: 17px; }
.workspace-chip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-self: center; }
.workspace-chip { min-height: 0; height: 110px; padding: 14px 16px; border: 1px solid rgba(184,137,69,.24); border-radius: 8px; background: #1c1812; color: #f4efe4; display: grid; align-content: center; }
.workspace-chip span { display: block; color: rgba(255,255,255,.68); font-size: 12px; text-transform: uppercase; }
.workspace-chip strong { display: block; margin-top: 6px; font-size: 22px; color: #fff; }
.portal-view { display: none; }
.portal-view.active { display: grid; gap: 18px; }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.metric { padding: 18px; background: #211d17; color: var(--ink); }
.metric span { display: block; color: var(--muted); font-size: 13px; }
.metric strong { display: block; margin-top: 8px; font-size: 28px; }
.hub-stat-card { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; min-height: 112px; }
.hub-stat-card strong { font-size: 22px; line-height: 1.2; }
.stat-icon-frame { display: grid; place-items: center; width: 76px; height: 76px; border: 1px solid rgba(199,154,88,.24); border-radius: 10px; color: var(--amber); font-size: 16px; font-weight: 700; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)); }
.stat-copy { display: grid; gap: 4px; }
.portal-view .panel { color: var(--ink); }
.profile-layout,
.tour-layout,
.billing-layout { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(410px, .78fr); gap: 24px; align-items: start; }
.account-layout,
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(380px, .9fr); gap: 24px; align-items: start; }
.account-side-stack { display: grid; gap: 18px; align-content: start; }
.settings-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-profile-panel,
.settings-panel,
.telemetry-access-panel { display: grid; gap: 18px; align-content: start; }
.inline-field {
  display: grid;
  gap: 8px;
}
.inline-field span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.settings-toggle-grid {
  display: grid;
  gap: 14px;
}
.settings-toggle {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(184,137,69,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.02);
}
.settings-toggle input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.settings-toggle strong,
.settings-toggle small {
  display: block;
}
.settings-toggle small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}
.tour-entry-panel {
  display: grid;
  gap: 18px;
}
.tour-entry-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.tour-entry-actions .form-note {
  margin: 0;
}
.tour-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(380px, .9fr);
  gap: 24px;
  align-items: start;
}
.tour-list-panel {
  min-height: 100%;
}
.tour-side-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}
.dispatcher-layout { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.dashboard-side { grid-template-rows: auto auto auto 1fr; gap: 18px; }
.hub-table-panel { display: grid; gap: 20px; align-content: start; min-width: 0; min-height: 100%; padding: 24px 26px; }
.hub-panel-actions { display: flex; justify-content: flex-start; }
.compact-button { min-height: 34px; padding: 8px 12px; font-size: 13px; }
.collapsible-panel[open] { box-shadow: 0 14px 34px rgba(0,0,0,.14); }
.panel-summary {
  list-style: none;
  cursor: pointer;
}
.panel-summary::-webkit-details-marker { display: none; }
.panel-summary::after {
  content: "▾";
  float: right;
  color: var(--amber);
  font-size: 16px;
  transform: translateY(-28px);
}
.collapsible-panel:not([open]) .panel-summary::after { content: "▸"; }
.panel-body { display: grid; gap: 20px; }
.recent-tour-table { display: grid; gap: 0; }
.recent-tour-head,
.recent-tour-row { display: grid; grid-template-columns: 92px minmax(200px, 1.45fr) minmax(120px, .9fr) minmax(120px, .9fr) 110px 140px; gap: 18px; align-items: center; }
.recent-tour-head { padding: 0 0 16px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid rgba(184,137,69,.18); }
.recent-tour-row { padding: 18px 0; border-bottom: 1px solid rgba(184,137,69,.18); }
.recent-tour-row:last-child { border-bottom: 0; }
.summary-panel { display: grid; gap: 18px; padding: 24px 24px 22px; }
.summary-list { display: grid; }
.summary-panel .billing-total strong { font-size: 28px; }
.summary-panel .billing-total span { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(184,137,69,.18); }
.detail-row:last-child { padding-bottom: 0; border-bottom: 0; }
.tour-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dispatcher-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.summary-tile { min-height: 116px; padding: 20px; border: 1px solid rgba(184,137,69,.24); border-radius: 8px; background: #1c1812; color: #f4efe4; }
.summary-tile span { display: block; color: rgba(255,255,255,.68); font-size: 12px; text-transform: uppercase; }
.summary-tile strong { display: block; margin-top: 8px; font-size: 28px; color: #fff; }
.summary-tile small { display: block; margin-top: 10px; color: rgba(255,255,255,.62); line-height: 1.45; }
.freight-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.freight-summary-tile { position: relative; overflow: hidden; }
.freight-summary-tile::after {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199,154,88,.22), rgba(199,154,88,0));
  pointer-events: none;
}
.progress-line { height: 12px; border-radius: 999px; background: #e8ece8; overflow: hidden; }
.progress-line span { display: block; height: 100%; background: linear-gradient(90deg, var(--moss), var(--amber)); }
.compact .form-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.freight-layout { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
.freight-form { max-width: none; }
.freight-board-panel { min-height: 100%; }
.freight-board { display: grid; gap: 24px; align-items: start; }
.freight-status-section { display: grid; gap: 14px; }
.freight-status-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(184,137,69,.18);
}
.freight-status-head h4 {
  margin: 0;
  color: #f4efe4;
  font-size: 20px;
}
.freight-status-head span {
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(184,137,69,.24);
  color: var(--amber);
}
.freight-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}
.freight-job-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(184,137,69,.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  min-height: 100%;
  align-content: start;
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.freight-job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0,0,0,.2);
}
.freight-job-card.is-selected {
  border-color: rgba(199,154,88,.65);
  box-shadow: 0 0 0 1px rgba(199,154,88,.32), 0 18px 40px rgba(0,0,0,.24);
}
.freight-job-top {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
}
.freight-job-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(199,154,88,.28);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
}
.freight-symbol {
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-shadow: 0 0 14px rgba(199,154,88,.36);
}
.freight-job-copy strong { font-size: 24px; line-height: 1.15; }
.freight-job-copy p,
.freight-job-note { margin: 6px 0 0; }
.freight-job-copy small { display: block; margin-top: 6px; color: var(--muted); }
.freight-job-route { font-size: 18px; font-weight: 700; color: #fff; }
.freight-job-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.freight-job-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.freight-fact {
  display: grid;
  gap: 6px;
  min-height: 78px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(184,137,69,.14);
}
.freight-fact small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.freight-fact strong {
  display: block;
  font-size: 18px;
}
.freight-job-meta {
  display: grid;
  gap: 8px;
}
.freight-job-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(184,137,69,.12);
}
.freight-job-meta-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.freight-job-meta-row span {
  color: var(--muted);
}
.freight-job-meta-row strong {
  text-align: right;
}
.freight-job-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.freight-live-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.freight-live-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(184,137,69,.18);
  background: rgba(255,255,255,.03);
  color: #f4efe4;
  font-size: 13px;
}
.freight-live-strip.is-match .freight-live-pill {
  border-color: rgba(34,110,74,.32);
  background: rgba(34,110,74,.12);
}
.freight-job-card.is-selected .freight-job-mark {
  border-color: rgba(199,154,88,.62);
  background: linear-gradient(180deg, rgba(199,154,88,.12), rgba(255,255,255,0));
}
.freight-job-card.offen {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
}
.freight-job-card.reserviert {
  border-color: rgba(199,154,88,.38);
  background: linear-gradient(180deg, rgba(199,154,88,.08), rgba(255,255,255,.02));
}
.freight-job-card.unterwegs {
  border-color: rgba(79,136,194,.34);
  background: linear-gradient(180deg, rgba(64,112,165,.08), rgba(255,255,255,.02));
}
.freight-job-card.erledigt {
  border-color: rgba(34,110,74,.34);
  background: linear-gradient(180deg, rgba(34,110,74,.08), rgba(255,255,255,.02));
}
.status.reserviert { background: #ede4cf; color: #6d5015; }
.status.unterwegs { background: #d7e6f2; color: #254f70; }
.status.erledigt { background: #dff2e9; color: #12523d; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 13px; }
.status { display: inline-flex; min-width: 90px; justify-content: center; padding: 5px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.status.offen { background: #fff0d8; color: #84540b; }
.status.geprueft { background: #dff2e9; color: #12523d; }
.status.abgerechnet { background: #e1e6eb; color: #3f4d57; }
.status.abgelehnt { background: #3b1919; color: #ffb1b1; }
.billing-panel { max-width: none; }
.billing-row, .billing-total { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.billing-total { font-size: 24px; color: var(--pine); }
.billing-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.billing-tour-panel { display: grid; gap: 16px; }
.billing-tour-list { display: grid; gap: 12px; }
.billing-tour-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(110px, .7fr) minmax(110px, .7fr) minmax(120px, .8fr);
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(184,137,69,.18);
}
.billing-tour-row:last-child { padding-bottom: 0; border-bottom: 0; }
.billing-tour-copy { display: grid; gap: 4px; }
.billing-tour-copy small { color: var(--muted); }
.billing-tour-amount { text-align: right; }
.toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.segmented-control { display: flex; flex-wrap: wrap; gap: 10px; }
.segmented-control .button.is-active {
  background: rgba(184,137,69,.18);
  border-color: rgba(184,137,69,.46);
  color: #f4efe4;
}
.toolbar-search {
  display: grid;
  gap: 8px;
  min-width: min(260px, 100%);
}
.toolbar-search input { min-width: 220px; }
.stats-toolbar { padding-top: 4px; }
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
.admin-overview-panel,
.admin-news-form,
.admin-applications,
.admin-applications-hero { grid-column: 1 / -1; }
.admin-driver-panel,
.admin-telemetry-panel,
.admin-billing-panel,
.admin-driver-detail-panel { min-height: 100%; }
.admin-management-grid {
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(480px, 1.18fr);
  gap: 22px;
  align-items: start;
}
.admin-operations-grid {
  display: grid;
  grid-template-columns: minmax(320px, .68fr) minmax(420px, 1.32fr);
  gap: 22px;
  align-items: start;
}
.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.admin-overview-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 146px;
  padding: 18px;
  border: 1px solid rgba(184,137,69,.22);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}
.admin-overview-card small {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
}
.admin-overview-card strong {
  font-family: var(--font-nordheim);
  font-size: 30px;
  line-height: 1;
  color: #f4efe4;
}
.admin-overview-card span {
  color: var(--muted);
  line-height: 1.45;
}
.admin-overview-card .button {
  margin-top: auto;
}
.applications-grid {
  grid-template-columns: 1fr;
}
.applications-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.news-view-panel,
.news-board {
  display: grid;
  gap: 16px;
}
.news-item {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(184,137,69,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}
.news-item small {
  color: var(--muted);
}
.application-group {
  display: grid;
  gap: 14px;
  padding: 18px 0 4px;
  border-top: 1px solid rgba(184,137,69,.18);
}
.application-group:first-child {
  padding-top: 0;
  border-top: 0;
}
.application-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.application-group-head h4 {
  margin: 0;
  font-size: 18px;
  color: var(--pine);
}
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px clamp(18px, 4vw, 56px); background: #0d1110; color: rgba(255,255,255,.9); }
.page-shell { position: relative; min-height: 100vh; padding-top: 82px; background: #171512; overflow: hidden; isolation: isolate; }
.public-page .page-shell {
  background: #090806;
}

.hub-page .page-shell {
  background: #090806;
}

.public-page .page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(9, 8, 6, .42), rgba(9, 8, 6, .6) 38%, rgba(9, 8, 6, .76)),
    url("media/nordheim-public-bg.png") center center / cover no-repeat;
  opacity: .98;
  pointer-events: none;
}

.hub-page .page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(9, 8, 6, .5), rgba(9, 8, 6, .66) 40%, rgba(9, 8, 6, .78)),
    url("media/nordheim-public-bg.png") center center / cover no-repeat;
  opacity: .98;
  pointer-events: none;
}

.public-page .page-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(199,154,88,.14), transparent 28%),
    linear-gradient(180deg, rgba(5, 5, 5, 0), rgba(5, 5, 5, .24) 40%, rgba(5, 5, 5, .48));
  pointer-events: none;
}

.hub-page .page-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(199,154,88,.12), transparent 28%),
    linear-gradient(180deg, rgba(5, 5, 5, 0), rgba(5, 5, 5, .24) 42%, rgba(5, 5, 5, .42));
  pointer-events: none;
}

.public-page .page-section {
  position: relative;
}

.hub-page .page-section {
  position: relative;
}
.page-section { min-height: calc(100vh - 82px); display: grid; align-items: center; }
.section-heading { margin-bottom: 24px; }
.soft-white-shadow { text-shadow: 0 0 18px rgba(255,255,255,.18), 0 0 28px rgba(184,137,69,.22); }
.driver-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(184,137,69,.18); }
.driver-row small { display: block; color: var(--muted); }
.driver-list { display: grid; gap: 6px; }
.driver-admin-card {
  display: grid;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(184,137,69,.18);
}
.driver-admin-card:first-child {
  padding-top: 0;
}
.driver-admin-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.driver-admin-head {
  padding: 0;
}
.driver-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.driver-admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.driver-admin-grid label {
  min-width: 0;
}
.driver-admin-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}
.active-driver-button {
  background: rgba(184,137,69,.18);
  border-color: rgba(184,137,69,.46);
}
.driver-detail-card {
  display: grid;
  gap: 18px;
}
.driver-detail-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.driver-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.driver-detail-section {
  display: grid;
  gap: 12px;
}
.driver-detail-section h4 {
  margin: 0;
  font-family: var(--font-nordheim);
  font-size: 18px;
}
.driver-detail-live,
.driver-detail-tours,
.driver-detail-notes,
.driver-detail-history {
  display: grid;
  gap: 10px;
}
.driver-note-form {
  gap: 10px;
}
.driver-note-row,
.driver-history-row {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(184,137,69,.18);
}
.driver-note-row:first-child,
.driver-history-row:first-child {
  padding-top: 0;
}
.driver-note-row:last-child,
.driver-history-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.driver-note-row p,
.driver-history-row p {
  margin: 0;
}
.driver-note-row small,
.driver-history-row small {
  color: var(--muted);
}
.driver-history-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  flex-wrap: wrap;
}
.driver-detail-tour-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(184,137,69,.18);
}
.driver-detail-tour-row:first-child {
  padding-top: 0;
}
.driver-detail-tour-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.driver-detail-tour-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.driver-detail-tour-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.token-line {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: right;
}
.telemetry-setup-box {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(184,137,69,.22);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
}
.telemetry-setup-box strong {
  color: #f4efe4;
}
.setup-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.setup-list li + li {
  margin-top: 6px;
}
.dispatcher-list {
  display: grid;
  gap: 14px;
}
.dispatcher-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, .72fr);
  gap: 20px;
  align-items: stretch;
}
.dispatcher-map-board {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(184,137,69,.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 24%, rgba(199,154,88,.14), transparent 26%),
    radial-gradient(circle at 76% 30%, rgba(184,137,69,.08), transparent 22%),
    linear-gradient(rgba(12,10,8,.42), rgba(12,10,8,.42)),
    repeating-linear-gradient(0deg, rgba(199,154,88,.08) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(199,154,88,.08) 0 1px, transparent 1px 72px),
    linear-gradient(180deg, rgba(25,32,39,.96), rgba(17,23,28,.98));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 18px 36px rgba(0,0,0,.18);
}
.dispatcher-map-board::before,
.dispatcher-map-board::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.dispatcher-map-board::before {
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(209,170,97,.24) calc(50% - .5px), rgba(209,170,97,.24) calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(0deg, transparent calc(50% - .5px), rgba(209,170,97,.24) calc(50% - .5px), rgba(209,170,97,.24) calc(50% + .5px), transparent calc(50% + .5px));
}
.dispatcher-map-board::after {
  border-radius: 8px;
  box-shadow: inset 0 0 90px rgba(0,0,0,.35);
}
.dispatcher-map-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}
.dispatcher-map-bounds {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(184,137,69,.24);
  border-radius: 8px;
  background: rgba(24,20,16,.78);
  backdrop-filter: blur(6px);
}
.dispatcher-map-bounds strong {
  color: #f4efe4;
}
.dispatcher-map-bounds small,
.dispatcher-map-compass,
.dispatcher-map-scale,
.dispatcher-map-tag,
.dispatcher-map-route {
  color: rgba(255,255,255,.78);
}
.dispatcher-map-compass {
  position: absolute;
  z-index: 2;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}
.dispatcher-map-compass.north { top: 14px; right: 22px; }
.dispatcher-map-compass.east { right: 14px; top: 50%; transform: translateY(-50%); }
.dispatcher-map-compass.south { bottom: 14px; right: 22px; }
.dispatcher-map-compass.west { left: 14px; top: 50%; transform: translateY(-50%); }
.dispatcher-map-scale {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(184,137,69,.24);
  border-radius: 999px;
  background: rgba(24,20,16,.78);
}
.dispatcher-map-scale::before {
  content: "";
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, rgba(209,170,97,.1), rgba(209,170,97,.95));
}
.dispatcher-map-trails {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.dispatcher-trail {
  fill: none;
  stroke-width: .55;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .72;
}
.dispatcher-trail.dispatcher-tmp {
  stroke: rgba(229,182,89,.78);
}
.dispatcher-trail.dispatcher-sp {
  stroke: rgba(116,170,255,.82);
}
.dispatcher-trail.dispatcher-paused {
  stroke: rgba(160,150,140,.72);
}
.dispatcher-trail.is-selected {
  stroke-width: .8;
  opacity: .96;
  filter: drop-shadow(0 0 3px rgba(255,255,255,.15));
}
.dispatcher-map-marker {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 8px;
  transform: translate(-50%, -50%);
  min-width: 132px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
}
.dispatcher-map-marker:focus-visible {
  outline: 2px solid rgba(244, 220, 172, .95);
  outline-offset: 6px;
}
.dispatcher-map-dot {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(8,10,12,.92);
  border-radius: 999px;
  background: linear-gradient(180deg, #f6cf84, #c58b2d);
  box-shadow: 0 0 0 4px rgba(197,139,45,.16), 0 0 28px rgba(197,139,45,.24);
}
.dispatcher-map-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(197,139,45,.25);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}
.dispatcher-map-marker.is-moving .dispatcher-map-dot {
  box-shadow: 0 0 0 5px rgba(197,139,45,.22), 0 0 36px rgba(197,139,45,.42);
}
.dispatcher-map-marker.dispatcher-sp .dispatcher-map-dot {
  background: linear-gradient(180deg, #d7e6ff, #5e89d3);
  box-shadow: 0 0 0 4px rgba(94,137,211,.16), 0 0 28px rgba(94,137,211,.26);
}
.dispatcher-map-marker.dispatcher-sp .dispatcher-map-dot::after {
  border-color: rgba(94,137,211,.26);
}
.dispatcher-map-marker.dispatcher-tmp .dispatcher-map-dot {
  background: linear-gradient(180deg, #f6cf84, #c58b2d);
}
.dispatcher-map-marker.dispatcher-paused .dispatcher-map-dot {
  background: linear-gradient(180deg, #d6d2ca, #80786d);
  box-shadow: 0 0 0 4px rgba(128,120,109,.16), 0 0 22px rgba(128,120,109,.2);
}
.dispatcher-map-marker.dispatcher-paused .dispatcher-map-dot::after {
  border-color: rgba(128,120,109,.24);
}
.dispatcher-map-marker.is-selected .dispatcher-map-dot {
  transform: scale(1.08);
}
.dispatcher-map-marker.is-selected .dispatcher-map-label {
  border-color: rgba(244,220,172,.55);
  box-shadow: 0 0 0 1px rgba(244,220,172,.18), 0 14px 30px rgba(0,0,0,.24);
}
.dispatcher-map-heading {
  position: absolute;
  left: 9px;
  top: -18px;
  width: 2px;
  height: 22px;
  transform-origin: bottom center;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.95));
}
.dispatcher-map-heading::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(255,255,255,.95);
  border-right: 2px solid rgba(255,255,255,.95);
  transform: rotate(-45deg);
}
.dispatcher-map-label {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid rgba(184,137,69,.22);
  border-radius: 8px;
  background: rgba(24,20,16,.84);
  backdrop-filter: blur(6px);
}
.dispatcher-map-label strong {
  color: #f7f3ea;
  font-size: 13px;
}
.dispatcher-map-label small {
  color: rgba(255,255,255,.74);
  line-height: 1.35;
}
.dispatcher-map-focus {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(184,137,69,.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(25,32,39,.94), rgba(17,23,28,.94));
  box-shadow: 0 18px 36px rgba(0,0,0,.18);
}
.dispatcher-map-focus .detail-row {
  padding: 10px 0;
}
.dispatcher-map-focus .application-status {
  justify-self: start;
}
.dispatcher-map-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid rgba(184,137,69,.22);
  border-radius: 999px;
  background: rgba(184,137,69,.08);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dispatcher-map-route {
  margin: 0;
  font-size: 17px;
  color: #f6f0e4;
}
.dispatcher-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(340px, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(184,137,69,.18);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, padding-left .18s ease;
}
.dispatcher-row:first-child {
  padding-top: 0;
}
.dispatcher-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.dispatcher-row:hover {
  background: rgba(199,154,88,.05);
}
.dispatcher-row.is-selected {
  padding-left: 12px;
  border-left: 3px solid rgba(199,154,88,.72);
  background: rgba(199,154,88,.08);
}
.dispatcher-main {
  display: grid;
  gap: 6px;
}
.presence-list {
  display: grid;
  gap: 14px;
}
.presence-highlights {
  display: grid;
  gap: 18px;
}
.presence-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(360px, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(184,137,69,.18);
}
.presence-row:first-child {
  padding-top: 0;
}
.presence-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.presence-main {
  display: grid;
  gap: 6px;
  align-content: start;
}
.presence-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.dispatcher-main p,
.dispatcher-main small {
  margin: 0;
}
.dispatcher-main small {
  color: var(--muted);
}
.dispatcher-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.dispatcher-stats {
  display: grid;
  gap: 0;
}
.application-list {
  display: grid;
  gap: 14px;
}

.application-row {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(184,137,69,.18);
}

.application-row:first-child {
  padding-top: 0;
}

.application-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.application-row-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.application-row-header small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.application-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 5px 10px;
  border: 1px solid rgba(184,137,69,.32);
  border-radius: 999px;
  background: rgba(184,137,69,.1);
  color: #84540b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.application-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.application-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(184,137,69,.26);
  border-radius: 999px;
  background: rgba(184,137,69,.08);
  color: var(--pine);
  font-size: 12px;
  font-weight: 700;
}

.application-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}
.application-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-review-panel {
  display: grid;
  gap: 16px;
}
.admin-tour-review-list {
  display: grid;
  gap: 12px;
}
.admin-review-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(184,137,69,.18);
}
.admin-review-row:first-child {
  padding-top: 0;
}
.admin-review-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.admin-review-copy {
  display: grid;
  gap: 4px;
}
.admin-review-copy span,
.admin-review-copy small {
  color: var(--muted);
}
.admin-review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.admin-inline-button {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 13px;
}
.application-status.neu {
  background: rgba(184,137,69,.12);
  color: #9f6d1f;
}
.application-status.gesichtet {
  background: rgba(127,117,101,.18);
  color: #6f6557;
}
.application-status.angenommen {
  background: rgba(34,110,74,.12);
  color: #1d6a48;
}
.application-status.abgelehnt {
  background: rgba(125,39,39,.12);
  color: #8b3030;
}
.application-status.active {
  background: rgba(34,110,74,.12);
  color: #1d6a48;
}
.application-status.dispatcher-tmp {
  background: rgba(184,137,69,.14);
  color: #9f6d1f;
}
.application-status.dispatcher-sp {
  background: rgba(56,104,177,.13);
  color: #2d5d9b;
}
.application-status.dispatcher-paused {
  background: rgba(127,117,101,.18);
  color: #6f6557;
}
.application-status.paused {
  background: rgba(127,117,101,.18);
  color: #6f6557;
}
.application-status.blocked {
  background: rgba(125,39,39,.12);
  color: #8b3030;
}
.application-status.archived {
  background: rgba(92, 77, 58, 0.2);
  color: #a88b63;
}
.table-panel { overflow-x: auto; }
.wide-field { grid-column: 1 / -1; }
.portal-view .form-grid label,
.portal-view .panel label,
.auth-panel label { color: #ded4c4; }
.portal-view input,
.portal-view textarea,
.portal-view select,
.auth-panel input,
.auth-panel textarea,
.auth-panel select { color: #f4efe4; }

.page-shell .section-inner,
.portal-shell > * {
  position: relative;
  z-index: 1;
}
.application-page {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}
.application-intro {
  display: grid;
  gap: 18px;
}
.application-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.application-form label {
  color: #8f6328;
  font-family: var(--font-nordheim-ui);
}
.application-form input,
.application-form textarea,
.application-form select {
  color: var(--nordheim-copy);
  border-color: rgba(184,137,69,.38);
  font-family: var(--font-nordheim-ui);
}
.application-form input::placeholder,
.application-form textarea::placeholder {
  color: var(--nordheim-accent);
}
@media (max-width: 920px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .main-nav { position: absolute; top: 68px; left: 18px; right: 18px; display: none; flex-direction: column; align-items: stretch; padding: 12px; background: rgba(17,22,20,.98); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; }
  .main-nav.open { display: flex; }
  .two-column, .portal-header, .portal-grid, .profile-layout, .tour-layout, .billing-layout, .workspace-head, .application-page, .application-grid, .freight-layout, .tour-workspace-grid, .admin-management-grid, .admin-operations-grid, .account-layout, .settings-layout { grid-template-columns: 1fr; }
  .rule-grid, .metric-grid, .admin-grid, .workspace-chip-grid, .tour-summary-grid, .freight-summary-grid, .freight-job-facts, .admin-overview-grid, .applications-overview-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .freight-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact .form-grid, .login-panel { grid-template-columns: 1fr; }
  .auth-grid, .hero-stats { grid-template-columns: 1fr; }
  .hero-panel { margin-left: 0; }
  .sidebar { position: static; }
  .auth-grid { display: grid; gap: 18px; }
  .auth-intro { max-width: none; padding-right: 0; }
  .auth-panel { min-height: auto; padding: 22px; }
  .login-panel .button { width: 100%; }
}
@media (max-width: 620px) {
  .hero { min-height: 100vh; }
  .hero-image { object-position: center top; }
  .hero-overlay { background: linear-gradient(180deg, rgba(8,7,5,.24), rgba(8,7,5,.42) 48%, rgba(8,7,5,.82)); }
  .section, .portal-shell { padding-top: 58px; padding-bottom: 58px; }
  .rule-grid, .metric-grid, .admin-grid, .workspace-chip-grid, .tour-summary-grid, .freight-summary-grid, .freight-job-facts, .freight-status-grid, .admin-overview-grid, .applications-overview-grid { grid-template-columns: 1fr; }
  .fleet-list div, .contact-row, .site-footer { flex-direction: column; align-items: flex-start; }
  .page-shell { padding-top: 68px; }
  .page-section { min-height: auto; }
  table { font-size: 14px; }
  th, td { padding: 10px 6px; }
  .billing-tour-row { grid-template-columns: 1fr; }
  .driver-admin-grid { grid-template-columns: 1fr; }
  .driver-badges { justify-content: flex-start; }
  .tour-entry-actions { align-items: flex-start; }
  .toolbar-row { align-items: stretch; }
  .toolbar-search input { min-width: 0; width: 100%; }
  .driver-detail-top,
  .driver-detail-tour-row,
  .dispatcher-row { flex-direction: column; align-items: flex-start; }
  .driver-detail-grid { grid-template-columns: 1fr; }
  .driver-detail-tour-meta { justify-content: flex-start; }
  .dispatcher-map-shell { grid-template-columns: 1fr; }
  .dispatcher-map-board { min-height: 360px; }
  .dispatcher-row { grid-template-columns: 1fr; }
  .presence-row,
  .presence-stats { grid-template-columns: 1fr; }
  .admin-review-row,
  .admin-review-actions { align-items: flex-start; flex-direction: column; }
  .freight-job-headline,
  .freight-job-actions { align-items: flex-start; justify-content: flex-start; }
  .freight-job-meta-row { flex-direction: column; align-items: flex-start; }
  .freight-job-meta-row strong { text-align: left; }
}

/* Nordheim image-driven theme refinements */
.intro-band, .contact-band { color: #f5efe3; }
.intro-band .copy, .contact-band .copy { color: #ded4c4; }
.intro-band h2, .contact-band h2 { color: #f5efe3; }
.about-copy { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; }
.about-copy p { grid-column: 2; margin-bottom: 0; }
.emblem-card { grid-row: 1 / span 2; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid rgba(184,137,69,.55); box-shadow: 0 18px 45px rgba(0,0,0,.3); }
.about-page { display: grid; gap: 24px; }
.about-hero { display: grid; grid-template-columns: minmax(260px, 1fr) 220px minmax(320px, 1fr); gap: 28px; align-items: center; }
.about-hero-copy { max-width: 430px; }
.about-hero-text { max-width: 430px; }
.about-hero-text .copy { color: #f5efe3; font-size: 18px; line-height: 1.55; margin-bottom: 0; }
.about-emblem-card { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid rgba(184,137,69,.55); box-shadow: 0 18px 45px rgba(0,0,0,.22); }
.about-story { display: grid; gap: 18px; }
.about-panel {
  color: #f5efe3;
  background: rgba(20, 16, 12, .92);
  border-color: rgba(184,137,69,.32);
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.about-panel p {
  color: #e4d8c4;
}
.about-panel p:last-child { margin-bottom: 0; }
.about-quote { padding: 22px 24px; border-left: 3px solid rgba(184,137,69,.6); background: rgba(255,255,255,.04); color: #f5efe3; }
.about-quote p { margin-bottom: 12px; font-size: 22px; line-height: 1.35; }
.about-quote p:last-child { margin-bottom: 0; }
.about-values {
  color: #f5efe3;
  background: rgba(20, 16, 12, .92);
  border-color: rgba(184,137,69,.32);
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.about-values h3,
.about-values .eyebrow {
  color: #f5efe3;
}
.values-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(184,137,69,.24);
  border-radius: 8px;
  background: rgba(184,137,69,.08);
  color: #f5efe3;
}
.value-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; font-size: 18px; }
.about-signoff { display: grid; gap: 6px; justify-items: start; padding-top: 8px; color: #f5efe3; }
.about-signoff strong { font-size: 24px; }
.about-signoff span { color: rgba(245,239,227,.8); font-style: italic; }
.rule-grid .info-card, .fleet-list div, .panel, .metric { border-color: rgba(184,137,69,.28); }
.fleet-band { color: #f5efe3; }
.fleet-band .copy, .fleet-list span { color: #ded4c4; }
.portal-shell { background: #0f0d0a; }
.sidebar { background: #1a1712; border-color: rgba(184,137,69,.28); }
.site-footer { background: #080706; }

.public-page .intro-band,
.public-page .contact-band,
.public-page .fleet-band {
  background: transparent;
  backdrop-filter: none;
}

.public-page .about-panel,
.public-page .about-values,
.public-page .about-quote {
  background: rgba(16, 13, 10, .42);
}

.public-page .application-form.panel,
.public-page .info-card,
.public-page .fleet-list div {
  background: rgba(244, 239, 228, .9);
}
@media (max-width: 620px) {
  .about-copy { grid-template-columns: 1fr; }
  .about-copy p, .emblem-card { grid-column: auto; grid-row: auto; }
  .emblem-card { max-width: 260px; }
  .about-hero, .values-grid { grid-template-columns: 1fr; }
  .about-quote p { font-size: 18px; }
  .about-emblem-card { max-width: 260px; }
}

.portal-copy {
  margin: 8px 0 0;
  color: rgba(255,255,255,.84);
  max-width: 44ch;
  font-size: 20px;
  line-height: 1.65;
}

.hub-page .portal-shell {
  background: transparent;
}

.hub-page .auth-panel {
  background: rgba(19, 16, 12, .86);
  border-color: rgba(184,137,69,.34);
  backdrop-filter: blur(4px);
}

.hub-page.hub-live .page-shell {
  background:
    radial-gradient(circle at top right, rgba(199,154,88,.1), transparent 24%),
    linear-gradient(180deg, #10151a 0%, #0b1014 100%);
}

.hub-page.hub-live .page-shell::before,
.hub-page.hub-live .page-shell::after {
  display: none;
}

.hub-page.hub-live .portal-shell {
  background: transparent;
}

.hub-page.hub-live .sidebar {
  background: rgba(15, 20, 25, .94);
  border-color: rgba(199,154,88,.24);
  box-shadow: 0 18px 38px rgba(0,0,0,.24);
}

.hub-page.hub-live .sidebar-title-frame {
  background: rgba(255,255,255,.02);
  border-color: rgba(255,255,255,.14);
}

.hub-page.hub-live .sidebar-brand {
  background: linear-gradient(180deg, rgba(20,26,32,.94), rgba(13,18,22,.94));
  border-color: rgba(199,154,88,.16);
}

.hub-page.hub-live .sidebar-meta {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
}

.hub-page.hub-live .tab-button {
  color: rgba(228,216,196,.88);
}

.hub-page.hub-live .tab-button.active,
.hub-page.hub-live .tab-button:hover {
  background: linear-gradient(90deg, rgba(199,154,88,.18), rgba(199,154,88,.06));
  color: #fff;
}

.hub-page.hub-live .nav-icon {
  color: rgba(239,194,124,.92);
}

.hub-page.hub-live .workspace-head,
.hub-page.hub-live .portal-view .panel,
.hub-page.hub-live .metric,
.hub-page.hub-live .table-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)), rgba(18, 24, 30, .94);
  border: 1px solid rgba(199,154,88,.22);
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
  color: #f1e7d6;
}

.hub-page.hub-live .workspace-kicker,
.hub-page.hub-live .sidebar-brand-kicker,
  .hub-page.hub-live .workspace-chip span,
  .hub-page.hub-live .summary-tile span,
  .hub-page.hub-live .metric span,
.hub-page.hub-live th,
.hub-page.hub-live .muted,
.hub-page.hub-live .driver-row small,
.hub-page.hub-live .news-item p,
.hub-page.hub-live .news-item small,
.hub-page.hub-live .application-meta-line,
.hub-page.hub-live .application-row-header small {
  color: #9da8b5;
}

.hub-page.hub-live .workspace-head h3,
.hub-page.hub-live .hub-hero-title,
  .hub-page.hub-live .portal-view h3,
  .hub-page.hub-live .metric strong,
  .hub-page.hub-live .billing-total,
.hub-page.hub-live .application-tag,
.hub-page.hub-live .detail-row strong,
.hub-page.hub-live .driver-row strong {
  color: #f4efe4;
}

.hub-page.hub-live .workspace-chip,
.hub-page.hub-live .summary-tile {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)), linear-gradient(180deg, rgba(25,32,39,.94), rgba(17,23,28,.94));
  border-color: rgba(199,154,88,.22);
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
  color: #f4efe4;
}

.hub-page.hub-live .workspace-head::after,
.hub-page.hub-live .portal-view .panel::after,
.hub-page.hub-live .metric::after,
.hub-page.hub-live .workspace-chip::after,
.hub-page.hub-live .summary-tile::after {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199,154,88,.18), rgba(199,154,88,0));
  pointer-events: none;
}

.hub-page.hub-live .stat-icon-frame {
  color: #efc27c;
  border-color: rgba(199,154,88,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
}

.hub-page.hub-live .workspace-chip strong,
.hub-page.hub-live .summary-tile strong {
  color: #f9f5ee;
}

.hub-page.hub-live .progress-line {
  background: rgba(255,255,255,.08);
}

.hub-page.hub-live .progress-line span {
  background: linear-gradient(90deg, #8c6938, #c79a58);
}

.hub-page.hub-live .detail-row,
.hub-page.hub-live .driver-row,
.hub-page.hub-live .news-item,
.hub-page.hub-live th,
.hub-page.hub-live td,
.hub-page.hub-live .application-row,
.hub-page.hub-live .billing-row,
.hub-page.hub-live .billing-total {
  border-color: rgba(255,255,255,.08);
}

.hub-page.hub-live .dispatcher-map-board,
.hub-page.hub-live .dispatcher-map-focus,
.hub-page.hub-live .dispatcher-map-label,
.hub-page.hub-live .dispatcher-map-bounds,
.hub-page.hub-live .dispatcher-map-scale {
  border-color: rgba(199,154,88,.18);
}

.hub-page.hub-live .dispatcher-map-bounds,
.hub-page.hub-live .dispatcher-map-scale,
.hub-page.hub-live .dispatcher-map-label {
  color: #f1e7d6;
}

.hub-page.hub-live .dispatcher-map-bounds small,
.hub-page.hub-live .dispatcher-map-compass,
.hub-page.hub-live .dispatcher-map-scale,
.hub-page.hub-live .dispatcher-map-label small {
  color: #9da8b5;
}

.hub-page.hub-live .dispatcher-row,
.hub-page.hub-live .dispatcher-map-focus .detail-row {
  border-color: rgba(255,255,255,.08);
}

.hub-page.hub-live .status.offen {
  background: rgba(201,146,67,.16);
  color: #efc27c;
}

.hub-page.hub-live .status.geprueft {
  background: rgba(72,145,111,.18);
  color: #95d4b1;
}

.hub-page.hub-live .status.abgerechnet {
  background: rgba(116,135,158,.2);
  color: #c9d5e3;
}

.hub-page.hub-live .status.abgelehnt {
  background: rgba(160,40,40,.22);
  color: #ffb3b3;
}

.hub-page.hub-live .application-status {
  background: rgba(199,154,88,.12);
  color: #efc27c;
}

.hub-page.hub-live .application-tag {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}

.hub-page.hub-live .portal-view input,
.hub-page.hub-live .portal-view textarea,
.hub-page.hub-live .portal-view select {
  background: rgba(9, 13, 17, .92);
  border-color: rgba(199,154,88,.18);
  color: #f1e7d6;
}

.hub-page.hub-live .portal-view .panel label {
  color: #c8b79e;
}

.hub-page.hub-live table {
  color: #e9dfcf;
}

.hub-page.hub-live .button.secondary {
  border-color: rgba(199,154,88,.3);
  color: #f1e7d6;
}

.hub-page.hub-live .recent-tour-head,
.hub-page.hub-live .recent-tour-row,
.hub-page.hub-live .summary-list .billing-row,
.hub-page.hub-live .summary-list .billing-total {
  border-color: rgba(255,255,255,.08);
}

.hub-page.hub-live .recent-tour-head {
  color: #9da8b5;
}

.hub-page.hub-live .recent-tour-row {
  color: #e9dfcf;
}

.hub-page.hub-live .hub-hero {
  background: linear-gradient(180deg, rgba(19,25,31,.96), rgba(15,20,25,.94));
}

.hub-page.hub-live .hub-table-panel,
.hub-page.hub-live .summary-panel {
  background: linear-gradient(180deg, rgba(18,24,30,.96), rgba(14,19,24,.95));
}

.stack {
  display: grid;
  gap: 12px;
}

.compact-stack {
  gap: 8px;
}

.subtle {
  border: 1px solid rgba(184,137,69,.28);
}

.two-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.news-item {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(184,137,69,.18);
}

.news-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.news-item p,
.news-item small {
  color: var(--muted);
}

[data-live-session-card] .driver-row span {
  text-transform: none;
}

.wide-field {
  grid-column: 1 / -1;
}

.portal-note {
  grid-column: 1 / -1;
  min-height: 0;
}

@media (max-width: 920px) {
  .two-panel-grid {
    grid-template-columns: 1fr;
  }
}


.soft-white-shadow {
  text-shadow:
    0 0 18px rgba(255, 255, 255, .34),
    0 2px 12px rgba(255, 255, 255, .22),
    0 12px 32px rgba(184, 137, 69, .16);
}

.nordheim-heading {
  color: #18130d !important;
  text-shadow:
    0 0 3px rgba(255,255,255,.96),
    0 0 12px rgba(255,255,255,.8),
    0 0 24px rgba(199,154,88,.86),
    0 0 42px rgba(184,137,69,.72),
    0 0 58px rgba(184,137,69,.42),
    0 8px 22px rgba(184,137,69,.28);
}

.about-hero-copy h2,
.about-values h3,
.about-signoff strong {
  text-shadow:
    0 0 3px rgba(255,255,255,.95),
    0 0 12px rgba(255,255,255,.78),
    0 0 24px rgba(199,154,88,.84),
    0 0 42px rgba(184,137,69,.7),
    0 0 58px rgba(184,137,69,.42),
    0 8px 26px rgba(184,137,69,.26);
}

h1,
h2:not(.soft-white-shadow),
h3 {
  text-shadow:
    0 0 3px rgba(255,255,255,.94),
    0 0 12px rgba(255,255,255,.76),
    0 0 24px rgba(199,154,88,.84),
    0 0 40px rgba(184,137,69,.68),
    0 0 54px rgba(184,137,69,.38),
    0 8px 22px rgba(184,137,69,.28);
}

.panel h3,
.info-card h3,
.metric strong {
  text-shadow:
    0 0 2px rgba(255,255,255,.86),
    0 0 10px rgba(255,255,255,.62),
    0 0 20px rgba(199,154,88,.68),
    0 0 32px rgba(184,137,69,.34),
    0 3px 10px rgba(0,0,0,.2);
}

