/* SpedHub – Oberfläche
   Farben: Papier #F4F6F8, Nachtblau #071B38, Signalblau #0069D9, Himmelblau #00A8F5 (nur für Live/Telemetrie) */
:root {
  --paper: #F4F6F8; --night: #071B38; --signal: #0069D9; --sky: #00A8F5;
  --bg: var(--paper); --surface: #FFFFFF; --surface-2: #F8FAFC; --raised: #FFFFFF;
  --ink: #0B1F3A; --ink-2: #44546E; --ink-3: #6B7A90; --line: #DDE3EC; --line-2: #EBEFF5;
  --hover: #EEF3FA; --select: #E3EEFC; --focus: #0069D9;
  --good: #11804A; --good-bg: #E2F4EA; --warn: #9A5B00; --warn-bg: #FFF1DA; --bad: #C2312F; --bad-bg: #FCE6E5; --info: #0057B8; --info-bg: #E3EEFC;
  --chart-1: #0069D9; --chart-2: #B87F12; --grid: #E6EBF2;
  --side: #071B38; --side-ink: #B9C6DA; --side-hover: rgba(255,255,255,.06); --side-active: #0F2B52;
  --r-s: 8px; --r-m: 14px; --shadow: 0 12px 36px rgba(7,27,56,.18); --shadow-sm: 0 1px 2px rgba(7,27,56,.05), 0 6px 20px rgba(7,27,56,.05);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="hell"]) { --dark: 1; } }
:root[data-theme="dunkel"], :root.dark {
  --bg: #08162C; --surface: #0E2240; --surface-2: #0B1C36; --raised: #132A4C;
  --ink: #E6ECF5; --ink-2: #AFBCD0; --ink-3: #8394AD; --line: #22385C; --line-2: #1A2F50;
  --hover: #15305A; --select: #183766; --focus: #4C9BFF;
  --good: #4CC38A; --good-bg: #0F3324; --warn: #F0B24A; --warn-bg: #3A2A0E; --bad: #FF7B76; --bad-bg: #3E1717; --info: #7FB6FF; --info-bg: #15305A;
  --chart-1: #2F86F0; --chart-2: #B87F12; --grid: #1D3456;
  --side: #050F20; --side-active: #11294C; --shadow: 0 10px 32px rgba(0,0,0,.45); --shadow-sm: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: var(--signal); text-decoration: none; } a:hover { text-decoration: underline; }
:root.dark a, [data-theme="dunkel"] a { color: #7FB6FF; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 24px; line-height: 1.25; } h2 { font-size: 18px; } h3 { font-size: 15px; } h4 { font-size: 14px; }
p { margin: 0 0 .6em; max-width: 72ch; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.muted { color: var(--ink-3); } .small { font-size: 12.5px; } .nowrap { white-space: nowrap; } .right { text-align: right; }
.mono { font-family: Consolas, "Cascadia Mono", monospace; font-size: 12.5px; }

/* ---------- Grundgerüst ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: hidden; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; }
.side-brand img { width: 30px; height: 30px; border-radius: 8px; }
.side-brand b { font: 600 17px var(--font-display); letter-spacing: -.01em; }
.side-company { margin: 0 12px 10px; padding: 9px 10px; border-radius: var(--r-s); background: rgba(255,255,255,.05); display: flex; align-items: center; gap: 9px; cursor: pointer; border: 0; color: #fff; text-align: left; width: calc(100% - 24px); }
.side-company:hover { background: rgba(255,255,255,.09); }
.side-company .logo { width: 26px; height: 26px; border-radius: 6px; background: var(--signal); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; overflow: hidden; }
.side-company .logo img { width: 100%; height: 100%; object-fit: cover; }
.side-company span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.side-company small { display: block; color: var(--side-ink); font-size: 11.5px; }
.nav { overflow-y: auto; padding: 4px 10px 20px; flex: 1; scrollbar-width: thin; scrollbar-color: #1B3358 transparent; }
.nav-group { margin-top: 14px; }
.nav-group > div { padding: 0 10px 4px; font-size: 12px; color: #7F92B0; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 7px 10px; border-radius: var(--r-s); color: var(--side-ink); font-size: 13.5px; text-decoration: none; }
svg[aria-hidden="true"]:not(.route) { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.nav a svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.nav a:hover { background: var(--side-hover); color: #fff; }
.nav a.on { background: var(--side-active); color: #fff; box-shadow: inset 3px 0 0 var(--signal); }
.nav a .count { margin-left: auto; background: var(--signal); color: #fff; border-radius: 10px; font-size: 11px; padding: 0 7px; line-height: 18px; }
.side-foot { padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.07); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.side-foot .dot { width: 8px; height: 8px; border-radius: 50%; background: #50607A; }
.side-foot .dot.on { background: var(--sky); box-shadow: 0 0 0 3px rgba(0,168,245,.2); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 12px 28px; min-height: 64px; }
.top h1 { font-size: 20px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .crumb { color: var(--ink-3); font-weight: 400; }
.top-btn { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.top-btn:hover { background: var(--hover); }
.top-btn svg { width: 18px; height: 18px; }
.top-btn .badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--select); color: var(--signal); display: inline-grid; place-items: center; font-weight: 600; font-size: 13px; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.user-btn { display: flex; align-items: center; gap: 9px; border: 0; background: none; cursor: pointer; padding: 3px 6px 3px 3px; border-radius: 20px; }
.user-btn:hover { background: var(--hover); }
.menu-toggle { display: none; }
.content { padding: 24px 28px 48px; max-width: 1600px; width: 100%; }
.banner { padding: 10px 28px; background: var(--warn-bg); color: var(--warn); font-size: 13px; border-bottom: 1px solid var(--line); }

/* ---------- Bausteine ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 500; font-size: 13.5px; white-space: nowrap; text-decoration: none !important; }
.btn:hover { background: var(--hover); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn.primary:hover { background: #005BBD; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-bg); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: default; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.panel-h h3 { flex: 1; }
.panel-b { padding: 16px 18px; }
.panel + .panel, .panel + .grid, .grid + .panel, .grid + .grid, .kpis + .grid, .kpis + .panel, .alerts + .kpis, .notice + * { margin-top: 18px; }
.grid > .panel { margin-top: 0; }
.hint { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); padding: 5px 12px 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.hint i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.hint.ok i { background: var(--good); }
.hint.live i { background: var(--sky, #00A8F5); box-shadow: 0 0 0 4px color-mix(in srgb, #00A8F5 22%, transparent); }
.hint a { font-weight: 600; }
.hint + * { margin-top: 14px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g-wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

/* Kennzahlenleiste: ein Band mit Trennlinien statt Einzelkarten */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.kpi { padding: 16px 18px; border-right: 1px solid var(--line-2); min-width: 0; }
.kpi:last-child { border-right: 0; }
.kpi .v { font: 600 24px/1.2 var(--font-display); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .l { color: var(--ink-3); font-size: 12.5px; margin-top: 3px; }
.kpi .d { font-size: 12px; margin-top: 4px; }
.up { color: var(--good); } .down { color: var(--bad); }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-m); background: var(--info-bg); color: var(--ink); font-size: 13.5px; border: 1px solid color-mix(in srgb, var(--info) 25%, transparent); }
.notice svg { width: 18px; height: 18px; color: var(--info); flex: none; margin-top: 2px; }
.notice.warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 25%, transparent); } .notice.warn svg { color: var(--warn); }
.notice.bad { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 25%, transparent); } .notice.bad svg { color: var(--bad); }
.notice.good { background: var(--good-bg); border-color: color-mix(in srgb, var(--good) 25%, transparent); } .notice.good svg { color: var(--good); }

.alerts { display: flex; flex-wrap: wrap; gap: 8px; }
.alert { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 13px; text-decoration: none !important; }
.alert:hover { background: var(--hover); }
.alert b { font-weight: 600; }
.alert i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.alert.bad i { background: var(--bad); } .alert.info i { background: var(--signal); }

.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 500; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.tag.good { background: var(--good-bg); color: var(--good); } .tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.bad { background: var(--bad-bg); color: var(--bad); } .tag.info { background: var(--info-bg); color: var(--info); }
.tag.live { background: rgba(0,168,245,.14); color: #0083C0; } :root.dark .tag.live, [data-theme="dunkel"] .tag.live { color: #5CCBFF; }
.tag.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); animation: pulse 2s infinite; }
.src { font-size: 11px; padding: 0 6px; height: 18px; border-radius: 4px; border: 1px solid var(--line); color: var(--ink-3); display: inline-flex; align-items: center; }
.src.spiel { border-color: rgba(0,168,245,.5); color: #0083C0; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Tabellen ---------- */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.search { position: relative; flex: 1 1 220px; max-width: 340px; }
.search input[type] { width: 100%; padding-left: 34px; }
.search svg { position: absolute; left: 10px; top: 9px; width: 17px; height: 17px; color: var(--ink-3); }
.tablewrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12.5px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); position: sticky; top: 0; }
.t th.sortable { cursor: pointer; } .t th.sortable:hover { color: var(--ink); }
.t td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr.click { cursor: pointer; } .t tbody tr.click:hover td { background: var(--hover); }
.t td.num, .t th.num { text-align: right; }
.t .strong { font-weight: 600; }
.empty { padding: 40px 20px; text-align: center; color: var(--ink-3); }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; font-weight: 600; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; color: var(--ink-3); font-size: 13px; border-top: 1px solid var(--line-2); }

/* ---------- Formulare ---------- */
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=datetime-local], input[type=search], input:not([type]), select, textarea {
  height: 36px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); padding: 0 10px; width: 100%; color: var(--ink);
}
textarea { height: auto; min-height: 84px; padding: 8px 10px; resize: vertical; line-height: 1.45; }
select { padding-right: 28px; }
.toolbar > select, .toolbar > input { width: auto; min-width: 150px; }
.btns > textarea, .btns > input { flex: 1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 18%, transparent); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form .full { grid-column: 1 / -1; }
.form h4 { grid-column: 1 / -1; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.field label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 5px; }
.field label .req { color: var(--bad); }
.field .help { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.check { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13.5px; min-height: 36px; }
.check input { width: 17px; height: 17px; accent-color: var(--signal); }
.err { color: var(--bad); font-size: 13px; }
.perms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 14px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; max-height: 300px; overflow: auto; }
.perms .check { min-height: 28px; font-size: 13px; }

/* ---------- Dialoge & Schublade ---------- */
.overlay { position: fixed; inset: 0; background: rgba(7,27,56,.42); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .12s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--raised); border-radius: 14px; box-shadow: var(--shadow); width: min(680px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.modal.sm { width: min(440px, 100%); }
.modal-h { padding: 18px 22px 10px; display: flex; align-items: center; gap: 12px; }
.modal-h h2 { flex: 1; }
.modal-b { padding: 8px 22px 18px; overflow-y: auto; }
.modal-f { padding: 14px 22px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 8px; }
.drawer-wrap { position: fixed; inset: 0; z-index: 90; background: rgba(7,27,56,.28); animation: fade .12s; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(760px, 100%); background: var(--raised); box-shadow: var(--shadow); display: flex; flex-direction: column; animation: slide .16s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: .6; } }
.drawer-h { padding: 18px 22px; border-bottom: 1px solid var(--line-2); display: flex; gap: 12px; align-items: flex-start; }
.drawer-h .t1 { flex: 1; min-width: 0; }
.drawer-h h2 { font-size: 19px; }
.drawer-b { overflow-y: auto; padding: 18px 22px 40px; flex: 1; }
.drawer-b section + section { margin-top: 22px; }
.drawer-b section > h3 { margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.kv > div { min-width: 0; }
.kv dt { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.kv dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.x { width: 34px; height: 34px; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--ink-3); display: grid; place-items: center; }
.x:hover { background: var(--hover); color: var(--ink); }
.x svg { width: 18px; height: 18px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 12px 20px; font-size: 13px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.timeline li::after { content: ""; position: absolute; left: 7.5px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }

/* ---------- Status-Strecke (Auftragsverlauf als Route) ---------- */
.rail { display: flex; align-items: flex-start; margin: 6px 0 4px; overflow-x: auto; padding-bottom: 4px; }
.rail .st { flex: 1 0 64px; position: relative; text-align: center; font-size: 11.5px; color: var(--ink-3); padding-top: 18px; }
.rail .st::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 3px; background: var(--line); }
.rail .st:first-child::before { left: 50%; } .rail .st:last-child::before { right: 50%; }
.rail .st i { position: absolute; top: 1px; left: 50%; transform: translateX(-50%); width: 13px; height: 13px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); z-index: 1; }
.rail .st.done::before { background: var(--signal); } .rail .st.done i { border-color: var(--signal); background: var(--signal); }
.rail .st.cur { color: var(--ink); font-weight: 600; } .rail .st.cur i { border-color: var(--signal); width: 17px; height: 17px; top: -1px; }
.rail .st.cur.live i { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(0,168,245,.25); animation: pulse 2s infinite; }
.rail .st.cur.done::before { background: linear-gradient(90deg, var(--signal) 50%, var(--line) 50%); }
.rail.cancel .st.cur i { border-color: var(--bad); }
.minirail { display: inline-flex; gap: 3px; vertical-align: middle; }
.minirail b { width: 10px; height: 4px; border-radius: 2px; background: var(--line); } .minirail b.on { background: var(--signal); } .minirail b.live { background: var(--sky); }

/* ---------- Disposition (Board) ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.lane { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-m); padding: 10px; min-height: 140px; }
.lane > h4 { display: flex; justify-content: space-between; padding: 2px 4px 10px; font-size: 13px; }
.lane > h4 span { color: var(--ink-3); font-weight: 400; }
.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 11px; cursor: pointer; font-size: 13px; }
.ticket + .ticket { margin-top: 8px; }
.ticket:hover { border-color: var(--signal); }
.ticket .r { font-weight: 600; margin: 3px 0; }
.ticket .m { color: var(--ink-3); font-size: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.ticket.late { box-shadow: inset 3px 0 0 var(--bad); }
.drivers .drv { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.drivers .drv:last-child { border-bottom: 0; }

/* ---------- Karte ---------- */
.map { position: relative; background: #0A1A33; border-radius: var(--r-m); overflow: hidden; height: calc(100vh - 230px); min-height: 420px; border: 1px solid var(--line); }
.map canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.map canvas.drag { cursor: grabbing; }
.map-tools { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.map-tools .btn { background: rgba(14,34,64,.88); color: #E6ECF5; border-color: #22385C; }
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; }
.map-side { background: var(--side); color: #E6ECF5; border-radius: var(--r-m); padding: 14px; overflow-y: auto; font-size: 13px; height: calc(100vh - 230px); min-height: 420px; }
.map-side .drv { padding: 9px 8px; border-radius: 8px; cursor: pointer; }
.map-side .drv:hover, .map-side .drv.on { background: #183766; }
.map-side .drv b { display: block; }
.map-side .muted { color: #8EA2C2; }
.map-legend { position: absolute; left: 12px; bottom: 12px; background: rgba(14,34,64,.88); color: #AFBCD0; font-size: 12px; border-radius: 8px; padding: 6px 10px; max-width: calc(100% - 24px); }

/* ---------- Diagramme ---------- */
.chart-box { width: 100%; position: relative; }
.chart { display: block; overflow: visible; }
.chart .grid line.zero { stroke: var(--ink-3); stroke-opacity: .5; }
.chart text { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.chart .grid line { stroke: var(--grid); }
.chart .tip-hit { fill: transparent; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.tooltip { position: fixed; z-index: 200; background: var(--night); color: #fff; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; pointer-events: none; box-shadow: var(--shadow); white-space: nowrap; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bars .row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.bars .bar { height: 10px; border-radius: 0 4px 4px 0; background: var(--chart-1); min-width: 2px; }
.score { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; font-size: 13px; }
.meter { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; grid-column: 1 / -1; }
.meter b { display: block; height: 100%; background: var(--signal); border-radius: 3px; }

/* ---------- Chat ---------- */
.chat { display: grid; grid-template-columns: 280px 1fr; height: calc(100vh - 160px); min-height: 420px; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-list button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 11px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.chat-list button:hover, .chat-list button.on { background: var(--hover); }
.chat-list b { display: flex; justify-content: space-between; font-weight: 600; font-size: 13.5px; }
.chat-list small { display: block; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.msgs { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { display: grid; grid-template-columns: 32px 1fr; gap: 10px; max-width: 760px; }
.msg .who { font-size: 12.5px; color: var(--ink-3); } .msg .who b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.msg .txt { white-space: pre-wrap; overflow-wrap: anywhere; }
.compose { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }

/* ---------- Anmeldung ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art { background: var(--night); color: #C9D4E6; padding: 48px 56px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-art .brand { display: flex; align-items: center; gap: 12px; color: #fff; font: 600 20px var(--font-display); }
.auth-art .brand img { width: 40px; height: 40px; border-radius: 10px; }
.auth-art h1 { color: #fff; font-size: 38px; line-height: 1.12; margin-top: auto; max-width: 15ch; letter-spacing: -.025em; }
.auth-art p { margin-top: 16px; font-size: 15.5px; max-width: 46ch; }
.auth-art svg.route { position: absolute; right: -40px; top: 40px; width: 70%; opacity: .9; }
.auth-art .facts { display: flex; gap: 28px; margin-top: 32px; font-size: 13px; }
.auth-art .facts b { display: block; color: #fff; font-size: 15px; }
.auth-form { display: grid; place-items: center; padding: 32px; }
.auth-form form { width: min(380px, 100%); display: grid; gap: 14px; }
.auth-form h2 { font-size: 24px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button, .tabs a { border: 0; background: none; padding: 9px 12px; cursor: pointer; color: var(--ink-3); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none !important; }
.tabs .on { color: var(--ink); border-bottom-color: var(--signal); }

/* ---------- Kleinteile ---------- */
.toast-box { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--night); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); max-width: 380px; font-size: 13.5px; animation: slide .2s; }
.toast b { display: block; } .toast.bad { background: #8F1E1C; }
.popover { position: fixed; z-index: 150; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); width: 360px; max-height: 70vh; overflow-y: auto; }
.popover .item { display: block; padding: 11px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none !important; }
.popover .item:hover { background: var(--hover); }
.popover .item.unread { box-shadow: inset 3px 0 0 var(--signal); }
.popover .menu a, .popover .menu button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 10px 14px; border: 0; background: none; color: var(--ink); cursor: pointer; text-align: left; text-decoration: none !important; }
.popover .menu a:hover, .popover .menu button:hover { background: var(--hover); }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.list-plain li:last-child { border-bottom: 0; }
.statusbar { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: var(--surface); }
.cal > div { min-height: 92px; padding: 6px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); font-size: 12px; }
.cal > div:nth-child(7n) { border-right: 0; }
.cal .dow { min-height: auto; background: var(--surface-2); color: var(--ink-3); font-weight: 500; }
.cal .d { color: var(--ink-3); } .cal .today .d { color: var(--signal); font-weight: 700; }
.cal .out { background: var(--surface-2); }
.cal .ev { display: block; margin-top: 3px; padding: 1px 5px; border-radius: 4px; background: var(--select); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .ev.abs { background: var(--warn-bg); } .cal .ev.sick { background: var(--bad-bg); }
.idcard { width: 340px; aspect-ratio: 1.58; border-radius: 14px; background: var(--night); color: #fff; padding: 18px 20px; position: relative; overflow: hidden; }
.idcard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--signal); }
.idcard .n { font: 600 21px var(--font-display); margin-top: 16px; }
.idcard .s { color: #AFC0DA; font-size: 12.5px; }
.loading { padding: 40px; text-align: center; color: var(--ink-3); }
.skeleton { height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--line-2), var(--hover), var(--line-2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Mobil ---------- */
@media (max-width: 1100px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-wide { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .kpi .v { font-size: 20px; }
  .side { position: fixed; z-index: 120; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-100%); transition: transform .18s; }
  .shell.nav-open .side { transform: none; box-shadow: var(--shadow); }
  .menu-toggle { display: grid; }
  .top { padding: 10px 16px; } .content { padding: 16px 16px 40px; }
  .g2, .g3, .form, .kv { grid-template-columns: 1fr; }
  .kpi { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .auth { grid-template-columns: 1fr; } .auth-art { padding: 28px 22px; } .auth-art h1 { font-size: 28px; margin-top: 40px; } .auth-art svg.route { display: none; }
  .chat { grid-template-columns: 1fr; } .chat-list { max-height: 180px; border-right: 0; border-bottom: 1px solid var(--line); }
  .map-wrap { grid-template-columns: 1fr; } .map-side { height: auto; max-height: 320px; } .map-legend { max-width: calc(100% - 24px); }
  .user-btn span { display: none; }
  .popover { width: calc(100vw - 24px); right: 12px !important; left: 12px !important; }
}

/* Ergänzungen: Regel-Formulare, Chat */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 18px; align-items: end; }
.form-grid .field label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 4px; }
.form-grid h4 { margin: 6px 0 8px; font-size: 13.5px; }
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: baseline; }
.chat-main .msgs { flex: 1; overflow-y: auto; padding: 16px; }
.chat-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-input textarea { min-height: 40px; height: 40px; flex: 1; }
.chat-list button.ch { display: flex; gap: 10px; align-items: center; }
.chat-list button.ch > span { flex: 1; min-width: 0; }
.chat-list .count { background: var(--signal); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }


/* =====================================================================
   Modernisiertes Erscheinungsbild (überschreibt die Grundregeln oben)
   ===================================================================== */
.shell { grid-template-columns: 264px 1fr; }
.side { background: linear-gradient(180deg, #071B38 0%, #0A2347 60%, #0B2A55 100%); }
:root.dark .side, [data-theme="dunkel"] .side { background: linear-gradient(180deg, #040C18 0%, #071630 100%); }
.side-brand { padding: 20px 20px 14px; }
.side-company { border-radius: 12px; padding: 10px 12px; background: rgba(255,255,255,.06); }
.side-company .logo { border-radius: 8px; background: linear-gradient(135deg, var(--signal), var(--sky)); }
.nav-search { position: relative; margin: 2px 12px 6px; }
.nav-search svg { position: absolute; left: 10px; top: 9px; width: 15px !important; height: 15px !important; color: #7F92B0; }
.nav-search input[type=search] { height: 34px; padding-left: 32px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #E6ECF5; border-radius: 10px; font-size: 13px; }
.nav-search input::placeholder { color: #7F92B0; }
.nav-search input:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(0,168,245,.18); }
.nav { padding: 2px 10px 12px; }
.nav-group { margin-top: 2px; }
.nav-group.nav-top { margin: 4px 0 8px; padding: 0 0 8px; border-bottom: 1px solid rgba(255,255,255,.07); }
.nav-head { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; background: none; color: #C9D6EA; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 13.5px; font-weight: 600; text-align: left; }
.nav-head:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-head > svg { width: 17px !important; height: 17px !important; opacity: .8; }
.nav-head span:first-of-type { flex: 1; }
.nav-head .badge-n { flex: none !important; font-size: 11px; font-weight: 500; color: #7F92B0; }
.nav-head .chev { width: 14px !important; height: 14px !important; transition: transform .15s; opacity: .7; }
.nav-group.open > .nav-head .chev { transform: rotate(90deg); }
.nav-head.has-active { color: #fff; }
.nav-group > .nav-items { font-size: inherit; color: inherit; padding: 2px 0 6px 8px; margin-left: 8px; border-left: 1px solid rgba(255,255,255,.08); }
.nav a { border-radius: 9px; padding: 7px 10px; font-size: 13.5px; }
.nav a span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a.on { background: rgba(0,168,245,.16); box-shadow: inset 3px 0 0 var(--sky); }
.nav-none { padding: 14px 12px; color: #7F92B0; font-size: 13px; }
.side-help { display: flex; align-items: center; gap: 10px; margin: 6px 12px; padding: 9px 12px; border-radius: 10px; background: rgba(0,168,245,.12); color: #E6ECF5 !important; font-size: 13px; font-weight: 600; text-decoration: none !important; }
.side-help:hover { background: rgba(0,168,245,.2); }
.side-help svg { width: 17px !important; height: 17px !important; color: var(--sky); }
.top { background: color-mix(in srgb, var(--bg) 86%, transparent); border-bottom-color: transparent; box-shadow: 0 1px 0 var(--line-2); padding: 12px 32px; }
.top h1 { font-size: 21px; letter-spacing: -.02em; }
.content { padding: 26px 32px 56px; }
.btn { border-radius: 10px; font-weight: 600; height: 38px; padding: 0 16px; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn.sm { border-radius: 8px; height: 32px; }
.btn.primary { box-shadow: 0 1px 2px rgba(0,105,217,.25), 0 4px 12px rgba(0,105,217,.18); }
.btn.lg { height: 44px; padding: 0 20px; font-size: 14.5px; }
.panel, .tablewrap, .kpi, .chat { box-shadow: var(--shadow-sm); }
.panel { border-color: var(--line-2); }
.panel-h { border-bottom: 0; padding: 16px 20px 6px; }
.panel-h h3 { font-size: 15.5px; }
.panel-b { padding: 14px 20px 20px; }
.kpis { background: none; border: 0; gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-m); padding: 16px 18px; border-right: 1px solid var(--line-2); }
.kpi .v { font-size: 26px; }
.tablewrap { border-color: var(--line-2); }
.t th { background: var(--surface); font-weight: 600; font-size: 12px; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.t td { padding: 11px 12px; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=datetime-local], input[type=search], input:not([type]), select, textarea { border-radius: 10px; height: 38px; }
textarea { height: auto; }
.tag { border-radius: 999px; font-weight: 600; }
.modal { border-radius: 18px; } .drawer { border-radius: 18px 0 0 18px; }
.notice { border-radius: 12px; }
.lead { font-size: 15px; color: var(--ink-2); max-width: 78ch; margin: 0 0 18px; }
.good-txt { color: var(--good); display: flex; gap: 6px; align-items: center; }

/* Auswahlfeld mit Suche */
.combo { position: relative; }
.combo input { padding-right: 30px; }
.combo-chev { position: absolute; right: 10px; top: 11px; color: var(--ink-3); pointer-events: none; }
.combo-chev svg { width: 15px; height: 15px; transform: rotate(90deg); }
.combo.disabled input { background: var(--surface-2); }
.combo-list { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px); max-height: 300px; overflow-y: auto; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 4px; }
.combo-opt { display: flex; align-items: baseline; gap: 8px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.combo-opt span { flex: 1; } .combo-opt small { color: var(--ink-3); font-size: 12px; }
.combo-opt em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--good); background: var(--good-bg); padding: 1px 7px; border-radius: 999px; }
.combo-opt.act, .combo-opt:hover { background: var(--hover); } .combo-opt.sel { font-weight: 600; } .combo-opt.dim span { color: var(--ink-3); }
.combo-none { padding: 12px; color: var(--ink-3); font-size: 13px; }

/* Auftrag disponieren */
.planner { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.plan-main { display: grid; gap: 14px; }
.plan-main .panel + .panel { margin-top: 0; }
.step-h { display: flex; align-items: center; gap: 12px; padding: 16px 20px 0; }
.step-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--signal), var(--sky)); flex: none; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(7,27,56,.12); }
.world-status { margin-top: 12px; }
.targets { margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--signal); background: var(--hover); } .chip small { color: var(--ink-3); }
.plan-side .sticky { position: sticky; top: 84px; }
.plan-sum h3 { margin-bottom: 12px; }
.plan-sum .btn { width: 100%; margin-top: 14px; }
.sumlist { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 14px 0 6px; font-size: 13.5px; }
.sumlist dt { color: var(--ink-3); } .sumlist dd { margin: 0; font-weight: 600; } .sumlist dd small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.route-line { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.route-line span { display: flex; flex-direction: column; min-width: 0; } .route-line small { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.route-line i { flex: 0 0 44px; height: 2px; background: linear-gradient(90deg, var(--signal), var(--sky)); position: relative; border-radius: 1px; }
.route-line i::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--sky); }
.route-line.big { font-size: 16.5px; margin: 8px 0 4px; }

/* Frachtmarkt */
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.offer { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-m); padding: 16px 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px; transition: border-color .15s; }
.offer:hover { border-color: color-mix(in srgb, var(--signal) 40%, var(--line)); }
.offer .price { font: 600 18px var(--font-display); }

/* Versicherungen */
.ins-cat { margin-top: 28px; }
.ins-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.ins-h p { margin: 4px 0 0; }
.ins-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ins { position: relative; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 18px 18px 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.ins.active { border-color: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 18%, transparent), var(--shadow-sm); }
.ins-rec { position: absolute; top: -10px; right: 14px; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--signal), var(--sky)); padding: 2px 10px; border-radius: 999px; }
.ins-price b { font: 600 28px var(--font-display); letter-spacing: -.02em; } .ins-price span { color: var(--ink-3); margin-left: 6px; font-size: 13px; }
.ins ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.ins li { display: flex; gap: 8px; align-items: flex-start; } .ins li svg { color: var(--good); margin-top: 2px; }
.ins details summary { cursor: pointer; font-size: 12.5px; color: var(--signal); }
.ins .btn { margin-top: auto; align-self: flex-start; }

/* Anleitung */
.guide-search { position: relative; max-width: 620px; margin-bottom: 20px; }
.guide-search svg { position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; color: var(--ink-3); }
.guide-search input[type=search] { height: 44px; padding-left: 42px; border-radius: 12px; font-size: 15px; box-shadow: var(--shadow-sm); }
.guide-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.guide-toc { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 110px); overflow-y: auto; }
.guide-toc a { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 9px; color: var(--ink-2); font-size: 13.5px; text-decoration: none !important; }
.guide-toc a:hover { background: var(--hover); color: var(--ink); } .guide-toc a.on { background: var(--select); color: var(--ink); font-weight: 600; } .guide-toc a.dim { opacity: .4; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.guide-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); color: var(--ink) !important; text-decoration: none !important; }
.guide-card:hover { border-color: var(--signal); }
.guide-card svg { width: 22px !important; height: 22px !important; color: var(--signal); }
.guide-card span { color: var(--ink-3); font-size: 13px; }
.guide-topic { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 24px 28px; box-shadow: var(--shadow-sm); }
.guide-topic + .guide-topic { margin-top: 18px; }
.guide-topic h2 { display: flex; gap: 10px; align-items: center; font-size: 22px; margin-bottom: 8px; }
.guide-topic h2 svg { width: 22px !important; height: 22px !important; color: var(--signal); }
.guide-topic section { margin-top: 20px; } .guide-topic h3 { font-size: 15.5px; margin-bottom: 8px; }
.guide-topic p { line-height: 1.6; }
.g-steps, .g-list { margin: 6px 0 10px; padding-left: 22px; line-height: 1.6; max-width: 80ch; } .g-steps li, .g-list li { margin: 4px 0; }
.g-steps li::marker { color: var(--signal); font-weight: 700; }
.g-table td { white-space: normal; max-width: none; }
.guide-topic .notice { margin: 10px 0; } .guide-topic .tablewrap { margin: 8px 0 10px; box-shadow: none; }
.guide-topic > .btn { margin-top: 18px; }

@media (max-width: 1100px) { .planner { grid-template-columns: 1fr; } .plan-side .sticky { position: static; } .guide-wrap { grid-template-columns: 1fr; } .guide-toc { position: static; flex-direction: row; flex-wrap: wrap; max-height: none; } }
@media (max-width: 860px) { .top { padding: 10px 16px; } .content { padding: 16px 16px 40px; } .kpi { border-right: 1px solid var(--line-2); } .guide-topic { padding: 18px; } }

/* Übersicht: Kopfbereich */
.dash-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 24px 28px; border-radius: 20px; margin-bottom: 18px; color: #DCE7F7;
  background: radial-gradient(110% 150% at 100% 0%, rgba(0,168,245,.32) 0%, rgba(0,168,245,0) 55%), linear-gradient(135deg, #071B38 0%, #0B2A55 100%); }
.dash-hero h2 { color: #fff; font-size: 26px; letter-spacing: -.02em; }
.dash-hero p { color: #A9BCD8; margin: 6px 0 12px; }
.dash-hero .hint { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: #DCE7F7; }
.dash-hero .hint a { color: #7FD3FF; }
.dash-actions { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 10px; }
.qa { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #fff !important; text-decoration: none !important; transition: background .15s; }
.qa:hover { background: rgba(255,255,255,.13); }
.qa svg { grid-row: span 2; width: 22px !important; height: 22px !important; color: var(--sky); }
.qa b { font-size: 14px; } .qa span { font-size: 12px; color: #A9BCD8; }
@media (max-width: 1100px) { .dash-hero { grid-template-columns: 1fr; } }

/* Server-Dashboard */
.mon-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 26px; border-radius: 20px; margin-bottom: 16px; color: #DCE7F7;
  background: radial-gradient(110% 150% at 100% 0%, rgba(0,168,245,.3) 0%, rgba(0,168,245,0) 55%), linear-gradient(135deg, #071B38 0%, #0B2A55 100%); }
.mon-hero h2 { color: #fff; font-size: 24px; margin: 6px 0 2px; } .mon-hero p { color: #A9BCD8; margin: 2px 0; }
.mon-state { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #7FE0B0; }
.mon-state i { width: 9px; height: 9px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 0 4px rgba(61,214,140,.22); animation: pulse 2s infinite; }
.mon-hero-k { display: grid; grid-template-columns: repeat(4, minmax(90px, 1fr)); gap: 10px; }
.mon-hero-k div { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.mon-hero-k b { display: block; font: 600 24px var(--font-display); color: #fff; } .mon-hero-k span { font-size: 12px; color: #A9BCD8; }
.mon-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.mon-tile { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-m); padding: 14px 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mon-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12.5px; }
.mon-tile > b { font: 600 26px var(--font-display); letter-spacing: -.02em; }
.mon-tile small { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-bar { height: 5px; border-radius: 3px; background: var(--line-2); overflow: hidden; } .mon-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--signal), var(--sky)); }
.mon-tile.warn .mon-bar i { background: var(--warn); } .mon-tile.bad .mon-bar i { background: var(--bad); } .mon-tile.warn > b { color: var(--warn); } .mon-tile.bad > b { color: var(--bad); }
.spark { width: 96px; height: 28px; flex: none; }
.alert.info i { background: var(--signal); }
@media (max-width: 1100px) { .mon-hero { grid-template-columns: 1fr; } .mon-hero-k { grid-template-columns: repeat(2, 1fr); } }
.map-tools .btn.on { background: var(--signal); border-color: var(--signal); color: #fff; }
.map-variants { display: contents; }
.map { background: #0B1D36; }

/* ===================== Wirtschaft, Großaufträge, Lieferketten, Smart Dispatch, Dienst, Entwicklung ===================== */
.tag.sim { background: transparent; border: 1px dashed color-mix(in srgb, var(--ink-3) 70%, transparent); color: var(--ink-2); font-weight: 500; }
.stockbar { height: 6px; flex: 1 1 60px; min-width: 50px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.stockbar b { display: block; height: 100%; background: var(--signal); border-radius: 3px; }
.stockbar b.low { background: var(--bad); } .stockbar b.high { background: var(--good); }
.fillcell { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--hover); }
.eco-offer.locked { opacity: .78; } .eco-offer details summary { cursor: pointer; color: var(--ink-3); }
.notice.small { padding: 8px 12px; font-size: 12.5px; }
select.sm { height: 32px; padding: 0 8px; font-size: 12.5px; max-width: 220px; }
.eco-list li { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-2); } .eco-list li .tag { margin-left: auto; }
.ev-list { display: grid; gap: 10px; } .ev-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.ev { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); display: grid; gap: 6px; border-left: 3px solid var(--line); }
.ev.ev-p3 { border-left-color: var(--warn); } .ev.ev-p2 { border-left-color: var(--signal); }
.bo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.bo { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--surface); color: var(--ink); }
.bo:hover { text-decoration: none; border-color: color-mix(in srgb, var(--signal) 40%, var(--line)); }
.bo .meter { height: 8px; }
.bo-hero { grid-template-columns: minmax(0, 1fr) auto; }
.bo-progress { display: grid; justify-items: end; } .bo-progress b { font: 700 44px/1 var(--font-display); color: #fff; letter-spacing: -.03em; } .bo-progress span { color: #A9BCD8; }
.site-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px; align-items: center; margin-bottom: 18px; }
.site-head h2 { margin: 0 0 6px; }
.chain { display: grid; grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1fr); gap: 16px; align-items: start; }
.chain-col { display: grid; gap: 10px; } .chain-col h4 { margin: 0; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.chain-node { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); }
.chain-node:hover { text-decoration: none; border-color: var(--signal); }
.chain-node ul { margin: 4px 0 0; } .chain-node li { margin: 2px 0; }
.chain-mid { position: sticky; top: 90px; display: grid; place-items: center; min-height: 120px; }
.chain-mid::before, .chain-mid::after { content: ""; position: absolute; top: 50%; width: 16px; height: 2px; background: linear-gradient(90deg, var(--signal), var(--sky)); }
.chain-mid::before { left: -16px; } .chain-mid::after { right: -16px; }
.chain-self { text-align: center; padding: 16px; border-radius: 16px; background: var(--night); color: #DCE7F7; width: 100%; } .chain-self b { color: #fff; font-size: 15px; }
.nj-list { display: grid; gap: 14px; }
.nj { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; padding: 18px 20px; border-radius: var(--r-m); border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-sm); }
.nj.saved { border-color: color-mix(in srgb, var(--good) 45%, var(--line)); }
.nj-main { display: grid; gap: 8px; min-width: 0; }
.nj-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px 16px; margin: 0; }
.nj-facts dt { font-size: 12px; color: var(--ink-3); } .nj-facts dd { margin: 0; font-weight: 600; }
.nj details summary { cursor: pointer; color: var(--signal); font-size: 13px; }
.reasons { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.reasons li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; }
.reasons li svg { width: 15px; height: 15px; color: var(--ink-3); } .reasons li.ok svg { color: var(--good); } .reasons li.no svg { color: var(--warn); }
.reasons li b { font-weight: 600; color: var(--ink-2); font-size: 12px; }
.fit { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-content: center; grid-auto-flow: column; align-items: baseline; gap: 1px;
  background: radial-gradient(closest-side, var(--surface) 76%, transparent 78%), conic-gradient(var(--signal) calc(var(--p) * 1%), var(--line-2) 0); flex: none; }
.fit b { font: 700 19px var(--font-display); } .fit small { font-size: 11px; color: var(--ink-3); }
.assist { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.assist .panel { margin: 0; }
.assist-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.assist-row .fit { width: 48px; height: 48px; } .assist-row .fit b { font-size: 15px; }
.checklist { display: grid; gap: 6px; margin-top: 10px; }
.chk { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); }
.chk svg { width: 16px; height: 16px; color: var(--ink-3); } .chk.ok svg { color: var(--good); } .chk.no svg { color: var(--warn); }
.chk small { color: var(--ink-3); } .chk .btn.on { background: var(--bad-bg); color: var(--bad); }
.duty-hero h2 { margin: 4px 0; }
.evo-hero { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; }
.evo-rep { padding: 22px; border-radius: 20px; background: linear-gradient(160deg, var(--night), #0F2E5A); color: #DCE7F7; display: grid; gap: 8px; align-content: start; justify-items: start; }
.evo-score { font: 700 56px/1 var(--font-display); color: #fff; letter-spacing: -.03em; }
.evo-parts { display: grid; gap: 12px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-m); align-content: start; }
.tag.lvl-platin { background: #E7ECF3; color: #31435E; } .tag.lvl-gold { background: #FFF1D0; color: #8A5A00; } .tag.lvl-silber { background: #EEF1F5; color: #4A5A70; }
.tag.lvl-bronze { background: #F7E6DA; color: #8A4B1F; } .tag.lvl-neu { background: rgba(255,255,255,.14); color: #DCE7F7; }
.evo-slots { display: flex; gap: 8px; align-items: baseline; margin-bottom: 8px; } .evo-slots b { font: 700 28px var(--font-display); }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.spec { display: grid; gap: 8px; align-content: start; padding: 14px 16px; border-radius: var(--r-m); border: 1px solid var(--line-2); background: var(--surface); }
.spec.active { border-color: color-mix(in srgb, var(--good) 50%, var(--line)); } .spec.locked { background: var(--surface-2); }
.spec .btn { justify-self: start; } .spec svg { width: 14px; height: 14px; vertical-align: -2px; }
.chronicle li { padding-bottom: 14px; }
@media (max-width: 1100px) { .chain { grid-template-columns: 1fr; } .chain-mid { position: static; min-height: 0; } .chain-mid::before, .chain-mid::after { display: none; } .site-head, .evo-hero { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .nj { grid-template-columns: 1fr; } .assist { grid-template-columns: 1fr; } .bo-hero { grid-template-columns: 1fr; } .bo-progress { justify-items: start; } }
select.sm.full { max-width: none; width: 100%; }

/* ===================== Unternehmenszentrale, internationale Ketten, Hosting ===================== */
.bad-txt { color: var(--bad); }
.alerts-list { display: grid; gap: 12px; }
.alert-card { display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line-2); border-left: 4px solid var(--line); }
.alert-card h3 { margin: 2px 0; font-size: 15.5px; } .alert-card p { margin: 0; }
.alert-card.p-kritisch { border-left-color: var(--bad); } .alert-card.p-wichtig { border-left-color: var(--warn); } .alert-card.p-empfehlung { border-left-color: var(--signal); }
.alert-card .rec { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--info-bg); font-size: 13.5px; }
.alert-card .rec svg { width: 16px; height: 16px; color: var(--info); flex: none; margin-top: 2px; }
.alerts-mini li { display: flex; gap: 8px; align-items: center; padding: 5px 0; }
.fc-big { font: 700 32px/1.2 var(--font-display); letter-spacing: -.02em; margin-bottom: 8px; } .fc-big small { font: 400 13px var(--font); color: var(--ink-3); }
.report-head { margin-bottom: 16px; } .report-head h2 { margin: 4px 0; }
@media print { .side, .top, .no-print, .nav { display: none !important; } .main, .content { margin: 0 !important; padding: 0 !important; } .panel, .kpi { break-inside: avoid; box-shadow: none; } body { background: #fff; } }
.chain-list { display: grid; gap: 12px; }
.chain-card { display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); }
.chain-card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--signal) 40%, var(--line)); }
.cl { display: grid; grid-template-columns: auto 1fr auto 1.4fr auto 1fr auto; align-items: center; gap: 8px; }
.cl-stop { display: grid; justify-items: center; text-align: center; gap: 2px; min-width: 84px; } .cl-stop i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); }
.cl-stop.done i { background: var(--signal); border-color: var(--signal); } .cl-stop b { font-size: 13px; } .cl-stop small { font-size: 11.5px; color: var(--ink-3); }
.cl-seg { height: 3px; border-radius: 2px; background: var(--line); position: relative; } .cl-seg.erledigt { background: var(--signal); } .cl-seg.läuft, .cl-seg.offen { background: linear-gradient(90deg, var(--signal), var(--line)); }
.cl-seg.sea { height: 0; border-top: 3px dashed var(--sky); background: none; } .cl-seg.sea.offen, .cl-seg.sea.wartet { border-top-color: var(--line); }
.cl-seg span { position: absolute; left: 50%; top: -20px; transform: translateX(-50%); font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 4px; }
.srv { display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); }
.srv:hover { text-decoration: none; border-color: var(--signal); }
.srv-log { max-height: 360px; overflow: auto; margin: 0 0 10px; padding: 12px 14px; border-radius: 10px; background: #071B38; color: #CFE0F7; font: 12px/1.45 Consolas, "Cascadia Mono", monospace; white-space: pre-wrap; }
@media (max-width: 860px) { .cl { grid-template-columns: 1fr; } .cl-seg { height: 16px; width: 3px; justify-self: center; } .cl-seg.sea { width: 0; height: 24px; border-top: 0; border-left: 3px dashed var(--sky); } .cl-seg span { left: 12px; top: 2px; transform: none; } }

/* ===================== 1.5: Live-Zentrale, Ranglisten, Divisionen, Profile ===================== */
.panel.mt { margin-top: 18px; } .panel.mb { margin-bottom: 18px; } .grow { flex: 1; min-width: 0; }
.warn-txt { color: var(--warn); } .field.wide, .check.wide, .form-grid .wide { grid-column: 1 / -1; }
.avatar.sm { width: 24px; height: 24px; font-size: 10.5px; } .avatar.xl { width: 88px; height: 88px; font-size: 28px; }
.chip.on { border-color: var(--signal); background: var(--select); }
.chip b { margin-left: 6px; font-weight: 700; color: var(--signal); }
.progress { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; flex: 1; min-width: 80px; }
.progress b { display: block; height: 100%; background: linear-gradient(90deg, var(--signal), var(--sky)); border-radius: 4px; transition: width .4s; }
.progress.good b { background: var(--good); }
table.t tr.me td { background: color-mix(in srgb, var(--signal) 8%, transparent); }
table.t tr.sel td { background: var(--select); }
.rank { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; font-weight: 700; font-size: 12.5px; background: var(--line-2); color: var(--ink-2); }
.rank.gold { background: linear-gradient(135deg, #F7D774, #C9971C); color: #3A2600; }
.rank.silber { background: linear-gradient(135deg, #EEF1F5, #A9B3C1); color: #1F2A3A; }
.rank.bronze { background: linear-gradient(135deg, #F0BE91, #A8622C); color: #2E1505; }
.badge-mini { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; margin-right: 4px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.badge-mini.gold { background: #F7D774; color: #3A2600; } .badge-mini.silber { background: #D5DBE4; color: #1F2A3A; } .badge-mini.bronze { background: #E7A877; color: #2E1505; }
.rules { margin-top: 14px; color: var(--ink-2); } .rules summary { cursor: pointer; font-weight: 600; }
/* Podest */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: 6px 0 18px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 170px; color: var(--ink); text-decoration: none !important; position: relative; }
.pod b { font-size: 14px; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .pod-v { font-size: 12.5px; color: var(--ink-2); }
.pod .pod-rank { position: absolute; top: -6px; left: calc(50% + 18px); z-index: 1; }
.pod .pod-step { display: block; width: 100%; border-radius: 10px 10px 0 0; background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--line-2); border-bottom: 0; }
.pod.gold .pod-step { height: 74px; border-top: 4px solid #D9A92A; } .pod.silber .pod-step { height: 52px; border-top: 4px solid #A9B3C1; } .pod.bronze .pod-step { height: 38px; border-top: 4px solid #B87038; }
.pod .pod-rank { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-weight: 700; font-size: 12px; }
.pod.gold .pod-rank { background: #F7D774; color: #3A2600; } .pod.silber .pod-rank { background: #D5DBE4; } .pod.bronze .pod-rank { background: #E7A877; }
/* Auszeichnungen */
.award-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.award-grid.sm { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-bottom: 12px; }
.award { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); text-decoration: none !important; }
.award .award-medal { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--select); color: var(--signal); margin-bottom: 4px; }
.award.gold .award-medal { background: #F7D774; color: #6B4A00; } .award.silber .award-medal { background: #DCE1E9; color: #3B4657; } .award.bronze .award-medal { background: #EDB88C; color: #5A2D0C; }
.award b { font-size: 13px; letter-spacing: .02em; } .award small { color: var(--ink-3); }
.season-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.winners li { display: flex; align-items: center; gap: 6px; }
/* Divisionen */
.div-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.div-card { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 16px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow-sm); }
a.div-card:hover { border-color: var(--signal); }
.div-card.add { justify-content: center; color: var(--signal); border-style: dashed; min-height: 120px; }
.div-card.pausiert { opacity: .7; }
.div-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--night), #0F3A73); color: var(--sky); flex: none; }
.div-ic svg { width: 20px; height: 20px; } .div-ic.lg { width: 64px; height: 64px; border-radius: 18px; } .div-ic.lg svg { width: 30px; height: 30px; }
.div-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink-2); width: 100%; }
.div-lvl { display: flex; align-items: center; gap: 8px; width: 100%; }
.div-hero { display: flex; align-items: center; gap: 18px; padding: 22px; margin-bottom: 16px; border-radius: var(--r-m); background: linear-gradient(120deg, var(--night), #0E2E5C 60%, #0B4A93); color: #fff; }
.div-hero h2 { color: #fff; } .div-hero p { color: #B9C6DA; margin: 2px 0 6px; } .div-hero .small { color: #DCE6F5; }
.challenges { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.challenge { padding: 16px; border-radius: var(--r-m); border: 1px solid var(--line-2); background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.challenge.abgeschlossen { border-color: color-mix(in srgb, var(--good) 40%, transparent); background: var(--good-bg); }
.challenge.verfehlt { opacity: .75; }
.ch-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; padding: 10px 12px; border-radius: var(--r-s, 8px); background: var(--surface); border: 1px solid var(--line-2); }
.ch-fact { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ch-fact.wide { grid-column: 1 / -1; }
.ch-fact > span { font-size: 12px; color: var(--ink-3, #6b7a90); }
.ch-fact > b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.ch-fact > b .muted { font-weight: 500; font-style: italic; }
.challenge h4 { font-size: 15px; } .challenge p { margin: 0; }
.ch-prog { display: flex; align-items: center; gap: 10px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cat { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.cat.on { border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.cat-h { display: flex; gap: 12px; align-items: center; } .cat p { margin: 0; }
.cat-f { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line-2); }
.cat .price { font-size: 16px; }
.live-t td { white-space: nowrap; } .live-map .map { height: 460px; border-radius: var(--r-m); overflow: hidden; }
/* Übersicht: Deine Woche */
.myweek .lead { font-size: 15px; font-weight: 600; } .kpis.compact .kpi { padding: 10px 14px; } .kpis.compact .kpi .v { font-size: 18px; }
.mini-ch { display: grid; gap: 10px; margin: 12px 0; }
/* Öffentliches Profil */
.pp-hero { position: relative; border-radius: var(--r-m); overflow: hidden; background: var(--night); color: #fff; }
.pp-cover { height: 200px; background: linear-gradient(120deg, var(--night), var(--brand, #0069D9) 70%, var(--brand-2, #00A8F5)); }
.pp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-hero.mini .pp-cover { height: 110px; }
.pp-id { display: flex; gap: 18px; align-items: flex-end; padding: 0 22px 20px; margin-top: -44px; position: relative; }
.pp-hero.mini .pp-id { margin-top: -30px; padding: 0 14px 14px; gap: 12px; }
.pp-logo { width: 104px; height: 104px; border-radius: 22px; border: 4px solid var(--night); background: var(--brand, #0069D9); display: grid; place-items: center; overflow: hidden; flex: none; font: 700 26px var(--font-display); color: #fff; }
.pp-hero.mini .pp-logo { width: 64px; height: 64px; border-radius: 16px; font-size: 18px; }
.pp-logo img { width: 100%; height: 100%; object-fit: cover; } .pp-logo.sm { width: 44px; height: 44px; border-radius: 12px; border-width: 2px; font-size: 13px; }
.pp-title h2 { color: #fff; font-size: 26px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .pp-hero.mini .pp-title h2 { font-size: 18px; }
.pp-tag { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.14); letter-spacing: .06em; }
.pp-motto { color: #DCE6F5; margin: 4px 0 6px; font-size: 15px; }
.pp-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; color: #B9C6DA; }
.pp-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0; }
.pp-kpis { margin-bottom: 18px; }
.pp-body { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); gap: 18px; }
.pp-sideinfo .facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; } .facts dt { color: var(--ink-3); } .facts dd { margin: 0; font-weight: 500; }
.pp-page { background-image: var(--pp-bg, none); background-size: cover; background-attachment: fixed; }
.lead { font-size: 15px; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.staff { display: flex; gap: 10px; align-items: center; }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.pp-side { position: sticky; top: 84px; } .pp-side h3 { margin-bottom: 10px; } .pp-prev-body { padding: 12px 4px; }
.img-prev { width: 100%; aspect-ratio: 4 / 1; border-radius: var(--r-s); border: 1px dashed var(--line); display: grid; place-items: center; overflow: hidden; background: var(--surface-2); margin-bottom: 6px; }
.img-prev.logo { width: 110px; aspect-ratio: 1; } .img-prev.background { aspect-ratio: 16 / 9; max-width: 260px; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.link-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px; margin-bottom: 8px; }
.color-in input[type=color] { width: 44px; height: 36px; padding: 2px; border-radius: 8px; } .color-in input:not([type]) { width: 110px; }
.crop { display: flex; flex-direction: column; gap: 10px; align-items: center; } .crop-cv { max-width: 100%; border-radius: 8px; cursor: grab; touch-action: none; background: #0b1c36; }
/* Verzeichnis */
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.dir-card { display: flex; flex-direction: column; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line-2); overflow: hidden; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow-sm); transition: border-color .15s; }
.dir-card:hover { border-color: var(--brand, var(--signal)); }
.dir-cover { height: 84px; background: linear-gradient(120deg, var(--night), var(--brand, #0069D9)); } .dir-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dir-body { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dir-head { display: flex; align-items: flex-end; gap: 10px; margin-top: -22px; } .dir-head > div { flex: 1; min-width: 0; padding-top: 26px; }
.dir-body p { margin: 0; color: var(--ink-2); }
.dir-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: auto; color: var(--ink-2); }
/* Öffentliche Seiten ohne Anmeldung */
.public-shell { min-height: 100vh; background: var(--bg); }
.public-top { display: flex; align-items: center; gap: 18px; padding: 10px 24px; background: var(--side); }
.public-top .side-brand { padding: 0; } .public-nav { display: flex; gap: 16px; } .public-nav a { color: var(--side-ink); }
.public-main { max-width: 1280px; margin: 0 auto; padding: 22px 24px 60px; } .public-main > h1 { margin-bottom: 16px; }
@media (max-width: 900px) {
  .pp-body, .pp-grid { grid-template-columns: 1fr; } .pp-side { position: static; }
  .podium { gap: 6px; } .pod { width: 31%; }
  .link-row { grid-template-columns: 1fr; }
  .pp-id { flex-direction: column; align-items: flex-start; }
}
.filter-more { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -4px 0 14px; padding: 12px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line-2); }
.filter-more select, .filter-more input { width: auto; }
.dist-sel { font-weight: 600; }
.changelog .cl-logo { width: 84px; height: 84px; float: right; margin: 0 0 8px 12px; }
.changelog section { margin-bottom: 16px; } .changelog h3 { margin-bottom: 2px; } .changelog ul { margin: 8px 0 0; padding-left: 20px; } .changelog li { margin-bottom: 4px; }
.field .color-in input[type=color] { width: 52px !important; flex: none; } .field .color-in input:not([type]) { width: 120px !important; flex: none; }
table.t td .btns { flex-wrap: nowrap; }
#content:focus, #content:focus-visible { outline: none; }
.offers > .empty, .offers > .empty-state { grid-column: 1 / -1; }
.banner.info { background: rgba(0,168,245,.14); color: var(--ink, #071B38); } .side-brand .tag.beta { margin-left: 6px; font-size: 10.5px; padding: 1px 7px; background: #00A8F5; color: #fff; border-radius: 999px; }

/* ================================================================ Version 1.5 – neues Grundgerüst
   Weniger Menüpunkte, Unterseiten als Tabs, Schnellsuche, ruhige Karten. Farben bleiben (Papier, Nachtblau, Signalblau). */
.side { padding-bottom: 10px; }
.side-brand { padding: 20px 20px 16px; }
.side-company { margin-bottom: 14px; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 0 14px 16px; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.06); }
.mode-switch button { border: 0; background: none; color: #9DB1CE; font-weight: 600; font-size: 13px; padding: 7px 0; border-radius: 8px; cursor: pointer; }
.mode-switch button.on { background: #fff; color: var(--night); }
.mode-switch button:not(.on):hover { color: #fff; }
.nav { padding: 0 12px 16px; }
.nav a { gap: 12px; padding: 10px 12px; font-size: 14.5px; font-weight: 500; margin-bottom: 2px; border-radius: 10px; }
.nav a svg { width: 18px; height: 18px; }
.nav a.on { background: var(--signal); color: #fff; box-shadow: none; }
.nav a .count { background: #FF8A3D; font-weight: 700; }
.nav a.on .count { background: #fff; color: var(--signal); }
.side-user { margin: auto 12px 0; display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border: 0; border-top: 1px solid rgba(255,255,255,.08); background: none; color: #fff; cursor: pointer; text-align: left; }
.side-user:hover b { text-decoration: underline; }
.side-user span { min-width: 0; } .side-user b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user small { display: block; font-size: 12px; color: var(--side-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .avatar { background: var(--sky); color: #fff; }

.top { gap: 12px; padding: 12px 32px; background: var(--surface); backdrop-filter: none; }
.top .spacer { flex: 1; }
.top-search { flex: 0 1 520px; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink-3); cursor: pointer; text-align: left; min-width: 0; }
.top-search span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-search svg { width: 18px; height: 18px; flex: none; }
.top-search:hover { border-color: color-mix(in srgb, var(--signal) 40%, var(--line)); }
kbd { font: 600 11.5px var(--font); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; background: var(--surface); color: var(--ink-2); white-space: nowrap; }
.top-status { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 20px; background: var(--line-2); color: var(--ink-2); font-weight: 600; font-size: 13px; text-decoration: none !important; white-space: nowrap; }
.top-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #8A97AA; }
.top-status .dot.mid { background: var(--warn); }
.top-status:has(.dot.on) { background: var(--good-bg); color: var(--good); }
.top-status .dot.on { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 22%, transparent); }
.top-btn { border-radius: 10px; border-color: transparent; background: transparent; }
.top-btn:hover { background: var(--hover); }

.page { flex: 1; }
.page-head { padding: 26px 32px 0; max-width: 1600px; }
.page-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -.015em; }
.page-head.with-tabs h1 { margin-bottom: 14px; }
.page-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.page-tabs a { padding: 10px 14px; color: var(--ink-2); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; text-decoration: none !important; display: flex; align-items: center; gap: 6px; }
.page-tabs a:hover { color: var(--ink); }
.page-tabs a.on { color: var(--signal); border-bottom-color: var(--signal); font-weight: 600; }
.page-tabs .count { background: #FF8A3D; color: #fff; border-radius: 10px; font-size: 11px; padding: 0 7px; line-height: 18px; font-weight: 700; }
.content { padding: 22px 32px 48px; }

/* Karten, Zeilen, Fortschritt */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; min-width: 0; }
.card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.card-h h3 { font-size: 15px; font-weight: 650; }
.card-h .more, .card .more { margin-left: auto; font-size: 13px; font-weight: 600; }
.card-h .tag { margin-left: 4px; }
.card-empty { color: var(--ink-3); padding: 6px 0; } .card-empty p { margin-bottom: 10px; }
.lead { color: var(--ink-2); margin: 0 0 18px; font-size: 15px; }
.start-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.start-grid .col { display: grid; gap: 18px; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.card-h + .row, .row:first-child { border-top: 0; padding-top: 0; }
.row .t { flex: 1; min-width: 0; } .row .t b { display: block; font-weight: 600; }
.row .t span { display: block; font-size: 12.5px; color: var(--ink-3); }
.row .t .quote { font-style: italic; color: var(--ink-2); margin-top: 2px; }
.row .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--info-bg); color: var(--signal); }
.row .ic svg { width: 18px; height: 18px; }
.row .ic.warn { background: var(--warn-bg); color: var(--warn); } .row .ic.bad { background: var(--bad-bg); color: var(--bad); } .row .ic.info { background: var(--info-bg); color: var(--info); }
.row .btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.bar { height: 6px; border-radius: 6px; background: var(--line-2); overflow: hidden; } .bar i { display: block; height: 100%; border-radius: 6px; background: var(--signal); }
.task { padding: 12px 0; border-top: 1px solid var(--line-2); display: grid; gap: 6px; }
.card-h + .task { border-top: 0; padding-top: 0; }
.task-h { display: flex; align-items: center; gap: 10px; } .task-h b { flex: 1; font-weight: 600; }
.tag-btn { border: 0; height: 24px; padding: 0 10px; border-radius: 12px; background: var(--info-bg); color: var(--signal); font-weight: 600; font-size: 12px; cursor: pointer; }
.tag-btn:hover { background: var(--signal); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.kpi3 { text-decoration: none !important; color: var(--ink); } .kpi3:hover { border-color: color-mix(in srgb, var(--signal) 40%, var(--line)); }
.kpi3 b, .kpi2 b { display: block; font: 700 26px/1.2 var(--font-display); letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi3 span, .kpi2 span { color: var(--ink-3); font-size: 13px; }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg); color: var(--ink); font-weight: 600; text-decoration: none !important; }
.quick a:hover { background: var(--hover); } .quick svg { width: 18px; height: 18px; color: var(--signal); }
.plogo { width: 38px; height: 38px; border-radius: 10px; background: var(--night); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; overflow: hidden; }
.plogo img { width: 100%; height: 100%; object-fit: cover; }

/* Aktuelle Fahrt als Strecke */
.trip { background: var(--night); border: 0; color: #fff; padding: 22px 28px 24px; }
.trip .lbl { font-size: 13px; color: #8FB4E3; font-weight: 600; }
.trip .cargo { font: 700 22px/1.3 var(--font-display); margin: 4px 0 2px; }
.trip.idle .cargo { font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.trip .route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin: 24px 0 18px; }
.trip .city b { display: block; font: 700 19px var(--font-display); } .trip .city span { font-size: 12.5px; color: #8FB4E3; } .trip .city.r { text-align: right; }
.trip .line { height: 6px; border-radius: 6px; background: #173A6B; position: relative; }
.trip .line i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, var(--signal), var(--sky)); }
.trip .line em { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--night); display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(0,168,245,.25); }
.trip .line em svg { width: 17px; height: 17px; }
.trip .facts { display: flex; flex-wrap: wrap; gap: 14px 36px; }
.trip .facts b { display: block; font-size: 19px; } .trip .facts span { font-size: 12.5px; color: #8FB4E3; }
.trip .btn.ghost-dark { background: rgba(255,255,255,.08); border-color: transparent; color: #fff; }
.trip .btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Kollegen unterwegs */
table.crew { width: 100%; border-collapse: collapse; }
table.crew th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 0 10px 10px; }
table.crew td { padding: 10px; border-top: 1px solid var(--line-2); vertical-align: middle; }
table.crew td small { display: block; color: var(--ink-3); font-size: 12px; }
table.crew .nr { width: 32px; font-weight: 700; color: var(--ink-3); }
table.crew .who { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); text-decoration: none !important; }
table.crew .who small { display: inline; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
table.crew .rt { font-weight: 600; }
table.crew .mini { width: 120px; } table.crew .mini .bar { height: 5px; margin-bottom: 3px; }
table.crew .num { text-align: right; white-space: nowrap; }
table.crew tr.me td { background: color-mix(in srgb, var(--signal) 9%, transparent); }
table.crew tr.me td:first-child { border-radius: 10px 0 0 10px; } table.crew tr.me td:last-child { border-radius: 0 10px 10px 0; }

/* Schnellsuche */
.palette-veil { position: fixed; inset: 0; z-index: 300; background: rgba(7,27,56,.35); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 0; }
.palette { width: min(640px, 100%); background: var(--raised); border-radius: 16px; box-shadow: 0 30px 80px rgba(7,27,56,.35); overflow: hidden; border: 1px solid var(--line); }
.palette-q { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.palette-q svg { width: 20px; height: 20px; color: var(--ink-3); }
.palette-q input { flex: 1; border: 0; outline: 0; background: none; font-size: 17px; }
.palette-list { max-height: 56vh; overflow-y: auto; padding-bottom: 8px; }
.palette-grp { padding: 10px 18px 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.palette-it { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 18px; border: 0; background: none; color: var(--ink); cursor: pointer; text-align: left; }
.palette-it svg { width: 17px; height: 17px; color: var(--ink-3); flex: none; }
.palette-it span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-it small { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.palette-it.sel { background: var(--select); } .palette-it.sel svg { color: var(--signal); }
.palette-none { padding: 18px; color: var(--ink-3); }

/* Partner-Dialoge */
.form-stack { display: grid; gap: 10px; } .form-stack input, .form-stack select, .form-stack textarea { width: 100%; }
.pick-list { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.pick { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; text-align: left; color: var(--ink); }
.pick.on { border-color: var(--signal); box-shadow: 0 0 0 2px var(--select); } .pick[disabled] { opacity: .5; cursor: default; }
.pick small { display: block; color: var(--ink-3); font-size: 12px; }
.pchat { height: 340px; overflow-y: auto; display: grid; gap: 8px; align-content: start; margin-bottom: 10px; }
.pmsg { padding: 8px 12px; border-radius: 10px; background: var(--bg); max-width: 85%; } .pmsg.own { justify-self: end; background: var(--select); }

@media (max-width: 1100px) { .start-grid { grid-template-columns: 1fr; } .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .top { padding: 10px 16px; } .top-search span, .top-search kbd, .top-status span { display: none; } .top-search { flex: none; width: 40px; justify-content: center; padding: 0; }
  .page-head { padding: 18px 16px 0; } .content { padding: 16px 16px 40px; }
  .trip { padding: 18px 18px 20px; } .trip .route { gap: 10px; } .trip .city b { font-size: 16px; }
  table.crew .mini, table.crew th:nth-child(5) { display: none; }
  .quick { grid-template-columns: 1fr; }
}

.btn.soft { background: var(--info-bg); border-color: transparent; color: var(--signal); font-weight: 600; } .btn.soft:hover { background: var(--select); }
.card .tablewrap { border: 0; border-radius: 0; margin: 0 -10px; overflow-x: auto; }
table.crew .rt { min-width: 150px; }
.card-h > .btn { margin-left: auto; }
@media (max-width: 860px) { .shell { grid-template-columns: 1fr; } .start-grid .col { gap: 14px; } .trip .facts { gap: 10px 24px; } .trip .facts > div { min-width: 40%; } }
.palette-q input, .palette-q input:focus { border: 0 !important; box-shadow: none !important; height: auto; padding: 0; background: none; }

/* Divisionen wie im Launcher: Wochenstand als Kacheln, Aufgaben untereinander */
.chal-list { display: flex; flex-direction: column; gap: 10px; }
.row-chal { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.row-chal.abgeschlossen, .row-chal.erfuellt { border-color: color-mix(in srgb, #1E8E5A 55%, var(--line)); }
.cfacts5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px 14px; padding: 8px 10px; border-radius: var(--r-s, 8px); background: var(--surface-2); border: 1px solid var(--line-2, var(--line)); }
.cfact { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cfact > span { font-size: 12px; color: var(--ink-3, #6b7a90); }
.cfact > b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.cfact > b .muted { font-weight: 500; font-style: italic; }
.week-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.week-sum > div { border: 1px solid var(--line); border-radius: var(--r-s, 8px); padding: 8px 10px; display: flex; flex-direction: column; min-width: 0; background: var(--surface); }
.week-sum span { font-size: 12px; color: var(--ink-3, #6b7a90); } .week-sum b { font-size: 14px; overflow-wrap: anywhere; }
.week-sum.voll > div { border-color: color-mix(in srgb, #1E8E5A 60%, var(--line)); }
.week-sum.strafe > div:nth-child(2) b { color: #C2410C; }
@media (max-width: 1100px) { .cfacts5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .week-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cfacts5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Fuhrpark: Lkw-Auswahl mit Suche */
.truck-pick { position: relative; display: flex; flex-direction: column; gap: 8px; }
.truck-list { position: absolute; top: 40px; left: 0; right: 0; z-index: 30; max-height: 320px; overflow-y: auto; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-s, 8px); box-shadow: 0 8px 24px rgba(10, 30, 60, .18); }
.truck-opt { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; }
.truck-opt:hover { background: var(--surface-2); }
.truck-opt b { font-weight: 600; } .truck-opt small { margin-left: auto; color: var(--ink-3, #6b7a90); } .truck-opt em { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.truck-opt.mod { border-top: 1px solid var(--line); color: var(--ink-2); }
.truck-none { padding: 8px 12px; }
.truck-mod .btns { flex-wrap: wrap; } .truck-mod input { flex: 1 1 140px; min-width: 0; } .truck-mod select { flex: 0 0 90px; }
/* Werkstatt */
.ws-list { display: flex; flex-direction: column; gap: 8px; }
.ws-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1.2fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.ws-row.due { border-color: color-mix(in srgb, #C2410C 50%, var(--line)); }
.ws-row .small { color: var(--ink-3, #6b7a90); }
@media (max-width: 760px) { .ws-row { grid-template-columns: 1fr; } }
.task-people > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); padding: 2px 0; }
.task-people ul { margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.task-people li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.task-people li.tp-live { font-weight: 500; }
.truck-pick .truck-game { align-self: flex-start; }
.truck-search { position: relative; }
.truck-search .truck-list { top: 42px; }
.truck-price { color: var(--ink-2); font-weight: 600; }

/* Live-Karte */
.lm-page { display: flex; flex-direction: column; gap: 10px; height: calc(100vh - 190px); min-height: 460px; }
.lm-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lm-legend { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.lm-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); margin-left: 8px; }
.lm-legend i.me { background: #E8873A; } .lm-legend i.own { background: #0069D9; } .lm-legend i.other { background: #2E9E6A; }
.lm-wrap { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 10px; min-height: 0; }
.lm-map { border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); min-height: 360px; background: var(--surface-2); }
.lm-list { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.lm-item { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: var(--r-s, 8px); border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); }
.lm-item.me { border-color: #E8873A; } .lm-item.own { border-left: 3px solid #0069D9; }
.lm-card { font-size: 13px; color: #16263D; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 900px) { .lm-wrap { grid-template-columns: 1fr; } .lm-list { max-height: 200px; } }
/* Division Aufgaben: vier Karten nebeneinander (2 Spalten), Rahmen zeigt den Stand */
.task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.task-card { --tc: var(--bad); display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--tc) 70%, transparent); box-shadow: inset 4px 0 0 var(--tc); }
.task-card.ok { --tc: var(--good); }
.task-card.near { --tc: #E8873A; }
.task-card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.task-card > header b { font-size: 15px; letter-spacing: .01em; }
.tc-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); }
.tc-badge svg { width: 13px; height: 13px; }
.tc-facts { display: flex; flex-direction: column; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.tc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 12px; }
.tc-row + .tc-row { border-top: 1px solid var(--line); }
.tc-row > span { font-size: 12.5px; color: var(--ink-3, #6b7a90); }
.tc-row > b { font-size: 14px; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.tc-row > b .muted { font-weight: 500; font-style: italic; }
.tc-bar { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--tc) 15%, var(--line)); overflow: hidden; }
.tc-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--tc); }
.task-card .task-people { margin: 0; }
.start-box { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.switch-row { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--ink-3, #6b7a90); }
.switch-row input { width: 34px; height: 18px; appearance: none; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch-row input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch-row input:checked { background: var(--good); }
.switch-row input:checked::after { transform: translateX(16px); }
.switch-row input:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; }
.switch-row.on { color: var(--good); }
@media (max-width: 900px) { .task-grid { grid-template-columns: 1fr; } }
/* Lkw-Kauf: Marke → Modell → Variante, Preis groß */
.truck-steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 10px; }
.truck-step { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; text-align: left; }
.truck-step > span { align-self: flex-start; font-size: 12.5px; color: var(--ink-3, #6b7a90); }
.truck-step select { width: 100%; min-width: 0; }
.truck-pricebox { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 12px; padding: 12px 14px; border-radius: 10px; background: var(--info-bg); border: 1px solid color-mix(in srgb, var(--info) 30%, transparent); }
.truck-pricebox > span { font-size: 13px; color: var(--ink-2); }
.truck-pricebox > b { font-size: 22px; font-weight: 700; color: var(--ink); text-align: right; }
.truck-pricebox > small { grid-column: 1 / -1; color: var(--ink-3, #6b7a90); }
@media (max-width: 640px) { .truck-steps { grid-template-columns: 1fr; } }
/* Firmenprofil: Kündigen und Links */
.btn.danger-ghost { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.danger-ghost:hover { background: var(--bad-bg); }
.pp-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pp-links a { display: grid; grid-template-columns: 20px 1fr; align-items: center; column-gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.pp-links a:hover { background: var(--surface-2); }
.pp-links a svg { width: 18px; height: 18px; color: var(--info); grid-row: span 2; }
.pp-links a span { font-weight: 600; }
.pp-links a small { color: var(--ink-3, #6b7a90); grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================================================================ Soziales: Nutzer oben rechts, Profil, Pinnwand, Nachrichten */
.top-user { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 4px; border-radius: 19px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; font-weight: 600; font-size: 13.5px; max-width: 240px; }
.top-user > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-user em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--info); background: var(--info-bg); padding: 1px 5px; border-radius: 4px; margin-right: 5px; }
.top-user > svg { width: 14px; height: 14px; color: var(--ink-3, #6b7a90); flex: none; }
.top-user .avatar.sm { width: 30px; height: 30px; }
.menu-me { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line-2, var(--line)); }
@media (max-width: 760px) { .top-user > span, .top-user > svg { display: none; } .top-user { padding: 0 4px; } }
.avatar.xxl { width: 112px; height: 112px; font-size: 36px; }
.u-link { color: inherit; text-decoration: none; display: inline-flex; align-items: baseline; gap: 6px; }
.u-link:hover b { text-decoration: underline; }
.u-tag { font-size: 11px; font-weight: 700; color: var(--info); background: var(--info-bg); padding: 1px 6px; border-radius: 5px; letter-spacing: .02em; }
.u-tag.lg { font-size: 14px; padding: 2px 8px; margin-right: 10px; vertical-align: 4px; }
.rich { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.rich a { color: var(--info); }
.icon-btn { border: 0; background: none; color: var(--ink-3, #6b7a90); cursor: pointer; padding: 6px; border-radius: 8px; display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); color: var(--bad); }
.icon-btn svg { width: 16px; height: 16px; }
.link-btn { border: 0; background: none; color: var(--info); cursor: pointer; padding: 0; font: inherit; }

/* Profil */
.uprof-hero { position: relative; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); margin-bottom: 18px; }
.uprof-cover { height: 180px; background: var(--cover, linear-gradient(120deg, #0B2A55 0%, #0069D9 55%, #2FA4FF 100%)) center / cover no-repeat; }
.uprof-id { display: flex; align-items: flex-end; gap: 20px; padding: 0 24px; margin-top: -48px; flex-wrap: wrap; }
.uprof-id .avatar.xxl { border: 4px solid var(--surface); box-shadow: 0 6px 18px rgba(10, 30, 60, .18); background: var(--sky, #2FA4FF); color: #fff; }
.uprof-id h2 { margin: 52px 0 4px; font-size: 26px; }
.uprof-sub { display: flex; flex-wrap: wrap; gap: 14px; color: var(--ink-3, #6b7a90); font-size: 13.5px; }
.uprof-sub span { display: inline-flex; align-items: center; gap: 5px; } .uprof-sub svg { width: 14px; height: 14px; }
.uprof-co { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 600; color: var(--ink); text-decoration: none; }
.uprof-co svg { width: 16px; height: 16px; color: var(--info); } .uprof-co:hover span { text-decoration: underline; }
.uprof-counts { display: flex; gap: 6px; padding-bottom: 4px; }
.uprof-counts button { border: 0; background: var(--surface-2); border-radius: 12px; padding: 8px 16px; cursor: pointer; display: flex; flex-direction: column; align-items: center; font: inherit; color: var(--ink); min-width: 84px; }
.uprof-counts b { font-size: 18px; } .uprof-counts span { font-size: 12px; color: var(--ink-3, #6b7a90); }
.uprof-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 24px 20px; }
.uprof-body { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 340px); gap: 18px; align-items: start; }
.uprof-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.uprof-col > .card, .feed > .card, .posts > .card { padding: 16px 18px; }
.uprof-col h3, .col-h { margin: 0 0 10px; font-size: 15px; }
.col-h { margin: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-h h3 { margin: 0; }
.seg.sm button { padding: 4px 10px; font-size: 12.5px; }
.ust { display: grid; grid-template-columns: 52px 1fr 1fr; align-items: center; gap: 10px; padding: 10px 0; }
.ust + .ust { border-top: 1px solid var(--line); }
.ust-g { font-size: 12px; font-weight: 700; color: var(--info); background: var(--info-bg); border-radius: 6px; text-align: center; padding: 3px 0; }
.ust b { display: block; font-size: 17px; } .ust small { color: var(--ink-3, #6b7a90); font-size: 12px; }
.u-awards { display: grid; gap: 8px; }
.u-award { display: flex; gap: 10px; align-items: center; } .u-award svg { width: 20px; height: 20px; color: #C8901E; flex: none; }
.u-award b { display: block; font-size: 13.5px; } .u-award small { color: var(--ink-3, #6b7a90); }
.u-tl { list-style: none; margin: 0; padding: 0; position: relative; }
.u-tl::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.u-tl li { position: relative; display: flex; gap: 12px; padding: 6px 0 10px; }
.u-tl li > i { width: 16px; height: 16px; border-radius: 50%; background: var(--info); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); flex: none; margin-top: 2px; z-index: 1; }
.u-tl li.konto > i { background: var(--good); } .u-tl li.austritt > i { background: var(--bad); }
.u-tl b { display: block; font-size: 13.5px; } .u-tl small { color: var(--ink-3, #6b7a90); }
.u-list li a { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--ink); text-decoration: none; }
.pp-link-text { display: grid; grid-template-columns: 20px 1fr; column-gap: 10px; padding: 8px 10px; }
.pp-link-text svg { width: 18px; height: 18px; color: var(--info); grid-row: span 2; } .pp-link-text span { font-weight: 600; } .pp-link-text small { grid-column: 2; color: var(--ink-3, #6b7a90); }
@media (max-width: 1280px) { .uprof-body { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); } .uprof-body > .uprof-col:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
@media (max-width: 900px) { .uprof-body { grid-template-columns: 1fr; } .uprof-id { padding: 0 16px; } .uprof-actions { padding: 14px 16px 18px; } }

/* Beiträge */
.feed { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.feed-bar { display: flex; align-items: center; gap: 10px; }
.posts { display: flex; flex-direction: column; gap: 14px; }
.composer { display: flex; flex-direction: column; gap: 10px; }
.cmp-row { display: flex; gap: 12px; align-items: flex-start; }
.cmp-row textarea { flex: 1; min-height: 64px; resize: vertical; }
.cmp-bar { display: flex; align-items: center; gap: 6px; }
.cmp-img { position: relative; display: inline-block; } .cmp-img img { max-height: 180px; border-radius: 10px; display: block; }
.cmp-x { position: absolute; top: 6px; right: 6px; border: 0; border-radius: 50%; width: 28px; height: 28px; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; display: grid; place-items: center; }
.cmp-x svg { width: 14px; height: 14px; }
.post { display: flex; flex-direction: column; gap: 10px; }
.post > header { display: flex; align-items: center; gap: 10px; }
.post-img img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 12px; }
.post-link { display: grid; grid-template-columns: 20px 1fr; column-gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; background: var(--surface-2); }
.post-link svg { width: 18px; height: 18px; color: var(--info); grid-row: span 2; } .post-link span { font-weight: 600; } .post-link small { color: var(--ink-3, #6b7a90); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-acts { display: flex; align-items: center; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.act { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 10px; border-radius: 8px; cursor: pointer; color: var(--ink-2); font: inherit; font-size: 13.5px; }
.act:hover { background: var(--surface-2); } .act svg { width: 17px; height: 17px; }
.act.on { color: #D6336C; } .act.on svg { fill: currentColor; }
.act-n { color: var(--ink-3, #6b7a90); font-size: 13px; margin-right: 8px; }
.cms { display: flex; flex-direction: column; gap: 8px; }
.cm { display: flex; gap: 8px; align-items: flex-start; }
.cm-b { flex: 1; background: var(--surface-2); border-radius: 12px; padding: 8px 12px; font-size: 13.5px; min-width: 0; }
.cm-b small { color: var(--ink-3, #6b7a90); }
.cm-in { display: flex; gap: 8px; align-items: center; } .cm-in input { flex: 1; border-radius: 18px; }
.drv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.drv { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.drv:hover { border-color: var(--info); }

/* Einstellungen */
.settings { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.set-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.set-head .lead { margin: 0; }
.set-sec { padding: 0; overflow: hidden; }
.set-sec > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; }
.set-sec > summary::-webkit-details-marker { display: none; }
.set-sec > summary b { display: block; } .set-sec > summary small { color: var(--ink-3, #6b7a90); }
.set-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--info-bg); color: var(--info); display: grid; place-items: center; flex: none; }
.set-ic svg { width: 19px; height: 19px; }
.set-caret { width: 18px; height: 18px; color: var(--ink-3, #6b7a90); transition: transform .15s; }
.set-sec[open] .set-caret { transform: rotate(180deg); }
.set-b { padding: 4px 18px 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.set-b .btns.end { grid-column: 1 / -1; justify-content: flex-end; }
.set-pics { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.set-pic { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.set-cover { width: 100%; height: 120px; border-radius: 12px; background: linear-gradient(120deg, #0B2A55 0%, #0069D9 55%, #2FA4FF 100%) center / cover no-repeat; }
.set-pic.wide { width: 100%; }
@media (max-width: 640px) { .set-pics { grid-template-columns: 1fr; } }

/* Nachrichten */
.dm { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 16px; height: calc(100vh - 230px); min-height: 460px; }
.dm-side { display: flex; flex-direction: column; padding: 14px 0 0; overflow: hidden; }
.dm-side .card-h { padding: 0 14px; }
.dm-list { overflow-y: auto; flex: 1; }
.dm-th { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--ink); text-decoration: none; border-left: 3px solid transparent; }
.dm-th:hover { background: var(--surface-2); } .dm-th.on { background: var(--info-bg); border-left-color: var(--info); }
.dm-th .grow { min-width: 0; } .dm-th .small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-th-h { display: flex; justify-content: space-between; gap: 8px; } .dm-th-h small { color: var(--ink-3, #6b7a90); flex: none; }
.dm-th .count { background: var(--bad); color: #fff; border-radius: 9px; min-width: 18px; height: 18px; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.dm-pane { min-width: 0; display: flex; }
.dm-pane > * { flex: 1; }
.dm-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.dm-empty svg { width: 36px; height: 36px; color: var(--ink-3, #6b7a90); }
.dm-conv { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.dm-conv > header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dm-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); }
.dm-msg { max-width: 72%; align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; }
.dm-msg.mine { align-self: flex-end; background: var(--info); color: #fff; border-color: transparent; border-radius: 14px 14px 4px 14px; }
.dm-msg.mine .rich a { color: #fff; text-decoration: underline; }
.dm-msg small { display: block; font-size: 11px; opacity: .7; margin-top: 3px; text-align: right; }
.dm-in { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: flex-end; }
.dm-in textarea { flex: 1; resize: none; }
@media (max-width: 860px) { .dm { grid-template-columns: 1fr; height: auto; } .dm-msgs { max-height: 60vh; } }
.uprof .facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; }
.uprof .facts dt { color: var(--ink-3, #6b7a90); } .uprof .facts dd { margin: 0; font-weight: 600; text-align: right; }
.u-tl a.small { display: block; }
:root.dark a.u-link, :root.dark .pp-links a, :root.dark a.uprof-co, :root.dark a.dm-th, :root.dark a.drv, :root.dark a.post-link, [data-theme="dunkel"] a.u-link, [data-theme="dunkel"] .pp-links a, [data-theme="dunkel"] a.uprof-co, [data-theme="dunkel"] a.dm-th, [data-theme="dunkel"] a.drv, [data-theme="dunkel"] a.post-link { color: var(--ink); }

/* ================================================================ Handy-Ansicht (App)
   Ab 860 px: Menü als Schublade mit abgedunkeltem Hintergrund, Leiste unten mit den wichtigsten Bereichen,
   Tabellen als Karten, Filter hinter einem Knopf, Dialoge als Blatt von unten. */
.top-brand, .tabbar, .nav-veil, .filter-toggle, .side-status, .dm-back { display: none; }
.filters { display: contents; }
.board-split { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
@media (max-width: 1100px) { .board-split { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  html { -webkit-tap-highlight-color: transparent; }
  body { overscroll-behavior-y: none; }
  /* Kopfleiste: Menü, Logo, Suche, Nachrichten, Glocke, Profilbild */
  .top { gap: 4px; padding: 8px 10px 8px 6px; padding-top: max(8px, env(safe-area-inset-top)); min-height: 56px; }
  .top .menu-toggle { display: none; }
  .top-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none !important; font-family: var(--font-display); font-size: 17px; margin-left: 6px; }
  .top-brand img { width: 28px; height: 28px; }
  .top-status, .top > a[href="#/anleitung"] { display: none !important; }
  .top-btn { width: 40px; height: 40px; }
  .top-user { padding: 0; border: 0; background: none; height: 40px; width: 40px; justify-content: center; }
  .top-user > span:not(.avatar), .top-user > svg { display: none; } .top-user > .avatar { display: inline-grid !important; }
  .top > .spacer { order: 1; } .top > :not(.top-brand):not(.spacer) { order: 2; }
  .top-search { width: 40px; height: 40px; border: 0; background: none; }
  .top-user .avatar { width: 32px; height: 32px; }
  /* Schublade */
  .side { width: min(300px, 86vw); height: 100%; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom); }
  .side .nav { overflow: visible; }
  .side .nav a { padding: 11px 12px; font-size: 15px; }
  .nav-veil { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(4, 14, 30, .5); opacity: 0; pointer-events: none; transition: opacity .18s; }
  .shell.nav-open .nav-veil { opacity: 1; pointer-events: auto; }
  .side-status { display: flex; align-items: center; gap: 8px; margin: 6px 12px 10px; padding: 9px 12px; border-radius: 10px; background: var(--side-hover); color: var(--side-ink); font-size: 13px; text-decoration: none !important; }
  .side-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #8A97AA; flex: none; } .side-status .dot.on { background: var(--good); } .side-status .dot.mid { background: var(--warn); }
  /* Leiste unten */
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(7, 27, 56, .06); }
  .tabbar > a, .tabbar > button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; padding: 6px 2px 5px; border: 0; background: none; font: inherit; color: var(--ink-3); text-decoration: none !important; cursor: pointer; min-width: 0; }
  .tabbar .tb-i { position: relative; display: grid; place-items: center; width: 52px; height: 28px; border-radius: 14px; transition: background .15s; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar .tb-l { font-size: 11px; font-weight: 600; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar .on { color: var(--signal); } .tabbar .on .tb-i { background: var(--select); }
  .tabbar .count { position: absolute; top: -4px; right: 6px; background: #FF8A3D; color: #fff; border-radius: 9px; font-size: 10px; font-weight: 700; line-height: 16px; min-width: 16px; padding: 0 4px; text-align: center; }
  .content { padding: 14px 14px calc(84px + env(safe-area-inset-bottom)); }
  .page-head { padding: 14px 14px 0; } .page-head h1 { font-size: 24px; }
  .page-tabs { margin: 0 -14px; padding: 0 8px; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .page-tabs a { padding: 12px 12px; scroll-snap-align: start; }
  .toast-box { bottom: calc(76px + env(safe-area-inset-bottom)) !important; left: 12px !important; right: 12px !important; }
  /* Größere Tippflächen, keine Zoom-Sprünge in Eingabefeldern */
  input, select, textarea { font-size: 16px !important; max-width: 100%; }
  .g2, .g3, .g-wide, .form, .kv, .grid.g2, .grid.g3 { grid-template-columns: minmax(0, 1fr) !important; }
  .grid > *, .panel, .card { min-width: 0; }
  .btn { min-height: 40px; }
  .btn.sm { min-height: 34px; }
  /* Filter hinter einem Knopf */
  .filter-toggle { display: inline-flex; }
  .filter-toggle .count { background: var(--signal); color: #fff; border-radius: 9px; font-size: 11px; line-height: 18px; min-width: 18px; padding: 0 5px; text-align: center; }
  .filters { display: none; }
  .filters.show { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; order: 10; }
  .filters.show select { width: 100% !important; min-width: 0 !important; }
  .toolbar { gap: 8px; }
  .toolbar > .search { flex: 1 1 100%; } .toolbar > .search input { width: 100%; }
  .toolbar > .spacer { display: none; }
  .toolbar > .lead, .toolbar > div:has(> .lead) { flex: 1 1 100% !important; }
  /* Dialoge: Blatt von unten, Detailansicht über die ganze Breite */
  .overlay { align-items: flex-end; padding: 0; }
  .modal { width: 100%; max-height: calc(100% - 24px); border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: sheet .2s ease-out; }
  .modal-f { position: sticky; bottom: 0; background: var(--raised); flex-wrap: wrap; }
  .modal-f .btn { flex: 1 1 auto; }
  .drawer { width: 100%; }
  .drawer-h { padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top)); } .drawer-b { padding: 16px 16px calc(40px + env(safe-area-inset-bottom)); }
  .drawer-h .btns { flex-wrap: wrap; }
  /* Board: Spalten zum Wischen */
  .board { grid-auto-columns: 84%; scroll-snap-type: x mandatory; margin: 0 -14px; padding: 0 14px 8px; scroll-padding: 0 14px; }
  .board > .lane { scroll-snap-align: start; }
  /* Nachrichten: Liste oder Unterhaltung */
  .dm { height: calc(100dvh - 210px - env(safe-area-inset-bottom)); min-height: 380px; grid-template-columns: 1fr; }
  .dm .dm-pane { display: none; } .dm.has-conv .dm-side { display: none; } .dm.has-conv .dm-pane { display: flex; }
  .dm-msgs { max-height: none; }
  .dm-back { display: grid; place-items: center; width: 36px; height: 36px; margin-left: -6px; color: var(--ink); }
  .dm-msg { max-width: 85%; }
  .dm-in textarea { min-height: 44px; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) {
  /* Tabellen ab 4 Spalten als Karten */
  .tablewrap:has(> table.m-cards), .card .tablewrap:has(> table.m-cards) { background: none; border: 0; overflow: visible; margin: 0; }
  table.m-cards, table.m-cards tbody { display: block; }
  table.m-cards thead { display: none; }
  table.m-cards tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 14px; padding: 12px 14px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
  .card table.m-cards tr { border-color: var(--line-2); margin-bottom: 8px; }
  table.m-cards td { display: block; padding: 0 !important; border: 0 !important; background: none !important; white-space: normal !important; text-align: left !important; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
  table.m-cards td::before { content: attr(data-label); display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 500; margin-bottom: 1px; }
  table.m-cards td:first-child { grid-column: 1 / -1; font-size: 15px; font-weight: 600; }
  table.m-cards td:first-child::before { display: none; }
  table.m-cards td.m-empty { display: none; }
  table.m-cards td:not([data-label])::before, table.m-cards td[data-label=""]::before { display: none; }
  table.m-cards td:last-child:has(.btns, button) { grid-column: 1 / -1; }
  table.m-cards td .btns { flex-wrap: wrap; }
  table.m-cards tr.click:active { background: var(--hover); }
  .pager { flex-wrap: wrap; gap: 8px; padding: 6px 2px; }
  .page-head h1 { font-size: 22px; }
  .kpi-row { gap: 10px; }
}
@media (display-mode: standalone) and (max-width: 860px) { .top { padding-top: max(8px, env(safe-area-inset-top)); } }
@media (max-width: 640px) {
  /* Fahrerprofil am Handy: Titelbild, Profilbild mittig, Name darunter, Zahlen als Leiste */
  .uprof-cover { height: 130px; }
  .uprof-id { flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-top: -54px; }
  .uprof-id .avatar.xxl { width: 104px; height: 104px; font-size: 38px; }
  .uprof-id h2 { margin: 0 0 4px; font-size: 22px; }
  .uprof-id > * { min-width: 0; max-width: 100%; }
  .uprof-sub { justify-content: center; gap: 6px 12px; }
  .uprof-counts { width: 100%; justify-content: center; }
  .uprof-counts button { flex: 1; min-width: 0; padding: 8px 6px; }
  .uprof-actions { justify-content: center; }
  .uprof-actions .btn { flex: 1 1 auto; justify-content: center; }
  .toolbar > select { flex: 1 1 calc(50% - 4px); min-width: 0 !important; width: auto !important; }
  .dm:not(.has-conv) { height: auto; min-height: 0; }
}
@media (max-width: 860px) {
  /* Team-Chat: Kanäle als wischbare Leiste oben, darunter die Unterhaltung */
  .chat { height: calc(100dvh - 230px - env(safe-area-inset-bottom)); min-height: 380px; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .chat-list { display: flex; align-items: center; overflow-x: auto; overflow-y: hidden; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; padding: 0 6px; }
  .chat-list > .btns { padding: 6px 2px !important; flex: none; }
  .chat-list button.ch { display: inline-flex; align-items: center; gap: 6px; width: auto; flex: none; margin: 8px 3px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 18px; white-space: nowrap; }
  .chat-list button.ch.on { background: var(--select); border-color: transparent; color: var(--signal); }
  .chat-list button.ch .small { display: none; } .chat-list button.ch svg { width: 16px; height: 16px; }
  .chat-input textarea { min-height: 44px; }
}

/* Handy-App: Seite, Push-Schalter, Hinweis zum Einschalten */
.app-hero { display: flex; gap: 22px; align-items: center; padding: 26px; border-radius: 18px; background: linear-gradient(135deg, #071B38 0%, #0B3A78 60%, #0069D9 100%); color: #E8EEF7; }
.app-hero h2 { color: #fff; font-size: 24px; margin: 0 0 6px; } .app-hero p { margin: 0 0 16px; color: #C9D6EA; max-width: 60ch; }
.app-hero .app-icon { width: 96px; height: 96px; border-radius: 24px; flex: none; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.app-hero .notice { color: var(--ink); }
.btn.lg { min-height: 48px; padding: 0 22px; font-size: 16px; }
.app-steps { margin: 0; padding-left: 20px; display: grid; gap: 12px; } .app-steps li b { display: block; } .app-steps li span { color: var(--ink-2); font-size: 14px; }
.push-sw { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.push-sw .grow { flex: 1; min-width: 180px; } .push-sw b { display: block; } .push-sw .btns { flex-wrap: wrap; }
.push-ask { position: fixed; left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 70; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px; border-radius: 16px; background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow); animation: sheet .25s ease-out; }
.push-ask .pa-i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--select); color: var(--signal); flex: none; }
.push-ask .grow { flex: 1; min-width: 200px; } .push-ask b { display: block; } .push-ask span { font-size: 13.5px; color: var(--ink-2); }
.push-ask .btns { margin-left: auto; }
@media (min-width: 861px) { .push-ask { left: auto; right: 24px; bottom: 24px; width: 420px; } }
@media (max-width: 640px) { .app-hero { flex-direction: column; text-align: center; padding: 22px 18px; } .app-hero .btn.lg { width: 100%; justify-content: center; } }
/* In der installierten App: keine Hinweise auf den Browser */
.is-app .top-search kbd { display: none; }

/* Bus-Touren und Buslinien */
.bus-lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.bus-lines > .empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.bus-line { text-align: left; font: inherit; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); }
.bus-line:hover { border-color: var(--signal); }
.bl-h { display: flex; gap: 10px; align-items: center; } .bl-i { width: 36px; height: 36px; border-radius: 10px; background: var(--select); color: var(--signal); display: grid; place-items: center; flex: none; }
.bl-stops { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 13px; color: var(--ink-2); } .bl-stops i { font-style: normal; color: var(--ink-3); }
.bus-stops { margin: 0; padding: 0; list-style: none; counter-reset: bs; display: grid; gap: 0; }
.bus-stops li { counter-increment: bs; position: relative; padding: 6px 0 12px 34px; display: flex; flex-direction: column; }
.bus-stops li::before { content: counter(bs); position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--signal); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.bus-stops li:not(:last-child)::after { content: ''; position: absolute; left: 10px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
@media (max-width: 640px) { .bus-lines { grid-template-columns: 1fr; } }

/* Verkehrsfunk: Melden-Dialog und Weltauswahl auf der Live-Karte */
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.report-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; min-height: 92px; }
.report-btn span { font-size: 28px; line-height: 1; }
.report-btn:active { transform: scale(.98); }
.report-btn.k-unfall, .report-btn.k-gefahr { border-color: color-mix(in srgb, #E5484D 45%, var(--line)); }
.report-btn.k-stau, .report-btn.k-baustelle, .report-btn.k-blitzer { border-color: color-mix(in srgb, #F5A524 45%, var(--line)); }
.lm-world { width: auto; min-width: 0; max-width: 220px; }
@media (max-width: 640px) { .lm-bar { flex-wrap: wrap; } .lm-world { flex: 1 1 auto; max-width: none; } }
/* Ko-fi: dezent auf der Anmeldeseite */
.auth-donate { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; color: inherit; opacity: .75; font-size: 13px; text-decoration: none !important; }
.auth-donate:hover { opacity: 1; } .auth-donate svg { width: 15px; height: 15px; color: #FF7A7F; }
.donate p { margin: 0 0 10px; }

/* Spenden: dezent unter dem Benutzernamen unten links */
.side-donate { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px 12px 12px; padding: 8px 12px; border: 1px solid rgba(255,122,127,.38); background: rgba(255,122,127,.12); font: inherit; font-size: 13px; font-weight: 600; color: #FFD9DA; cursor: pointer; border-radius: 10px; transition: background .15s, border-color .15s; }
.side-donate:hover, .side-donate:focus-visible { background: rgba(255,122,127,.22); border-color: rgba(255,122,127,.6); color: #fff; }
.side-donate svg { width: 15px; height: 15px; color: #FF7A7F; fill: currentColor; }
.side-donate:hover svg { animation: donate-beat .9s ease-in-out 1; }
@keyframes donate-beat { 0%,100% { transform: scale(1); } 30% { transform: scale(1.22); } 60% { transform: scale(.95); } }
@media (prefers-reduced-motion: reduce) { .side-donate:hover svg { animation: none; } }
.donate-once { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px !important; font-size: 13px; }

/* ===================== FrachtKontor ===================== */
.fk-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 18px; align-items: start; margin-bottom: 14px; }
.fk-top .lead { margin: 4px 0 0; }
.fk-loc { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-m); padding: 14px 16px; margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; box-shadow: var(--shadow-sm); }
.fk-where { display: flex; gap: 10px; align-items: center; min-width: 220px; flex: 1 1 240px; }
.fk-where svg { width: 22px; height: 22px; color: var(--signal); flex: none; }
.fk-where b { display: block; font-size: 16px; } .fk-where small { color: var(--ink-3); font-size: 12.5px; }
.fk-filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; flex: 3 1 520px; }
.fk-filters label, .fk-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-3); font-weight: 600; min-width: 0; }
.fk-filters select { min-width: 130px; }
.fk-plan { background: var(--surface); border: 1px solid var(--signal); border-radius: var(--r-m); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm); }
.fk-plan-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fk-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-weight: 600; }
.fk-chain i { width: 18px; height: 2px; background: var(--sky); position: relative; border-radius: 1px; }
.fk-chain i::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 6px solid var(--sky); }
.fk-summary { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 16px; }
.fk-summary .fk-chain { font-size: 17px; }
.fk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 14px; }
.fk-static { padding: 8px 0; color: var(--ink); font-weight: 500; font-size: 14px; }
.fk-assign .panel-f { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.fk-people { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 16px; align-items: center; }
.fk-people > span { display: inline-flex; gap: 6px; align-items: center; }
.fk-people svg { width: 16px; height: 16px; color: var(--ink-3); }
ul.plain { margin: 0; padding-left: 18px; }
.fk-legs { list-style: none; margin: 0; padding: 6px 16px 10px; counter-reset: leg; }
.fk-leg { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); align-items: start; }
.fk-leg:last-child { border-bottom: 0; }
.fk-leg-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line-2); }
.fk-leg-ic svg { width: 17px; height: 17px; }
.fk-leg.aktiv .fk-leg-ic { background: var(--signal); color: #fff; border-color: var(--signal); }
.fk-leg.erledigt .fk-leg-ic { background: var(--good-bg, rgba(30,142,90,.14)); color: var(--good, #1E8E5A); }
.fk-leg.erledigt .fk-leg-t b { color: var(--ink-3); }
.fk-leg-t { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.fk-leg-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fk-leg-price { font-weight: 700; white-space: nowrap; padding-top: 6px; }
.fk-howto { margin-top: 4px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.fk-loads li { gap: 10px; }
.fk-trailers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.fk-trailer { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-m); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-sm); }
.fk-trailer > .btns svg { width: 18px; height: 18px; color: var(--ink-3); }
.fk-trailer-kind { font-weight: 600; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fk-trailer-loc { display: flex; gap: 6px; align-items: center; font-size: 15px; }
.fk-trailer-loc svg { width: 16px; height: 16px; color: var(--signal); }
.fk-trailer > button { align-self: flex-start; margin-top: 4px; }
.fk-cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.fk-cat-item { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); }
.fk-cat-item.on { border-color: var(--signal); box-shadow: 0 0 0 2px color-mix(in srgb, var(--signal) 30%, transparent); }
.fk-cat-item .price { font-weight: 700; margin-top: 4px; }
.linklike { background: none; border: 0; padding: 0; color: var(--signal); font: inherit; cursor: pointer; text-decoration: underline; }
tr.click { cursor: pointer; }
@media (max-width: 860px) {
  .fk-top { grid-template-columns: minmax(0, 1fr); }
  .fk-top .lead { display: none; }
  .fk-loc { padding: 12px; gap: 12px; }
  .fk-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); flex-basis: 100%; }
  .fk-filters > .seg { grid-column: 1 / -1; }
  .fk-filters select { min-width: 0; width: 100%; }
  .fk-leg { grid-template-columns: 30px minmax(0, 1fr); }
  .fk-leg-ic { width: 30px; height: 30px; }
  .fk-leg-price { grid-column: 2; padding-top: 0; }
  .fk-summary .fk-chain { font-size: 15px; }
}
.fk-loads { padding: 4px 16px 8px; }
.fk-offer .price { font-size: 17px; }
.fk-filter-btn { display: none; margin-left: auto; }
@media (max-width: 860px) {
  .fk-filter-btn { display: inline-flex; }
  .fk-loc:not(.open) .fk-filters { display: none; }
  .fk-summary .kpi .v { font-size: 21px; }
}

/* ---------------------------------------------------------------- Öffentliche Startseite */
.lp { --lp-night: #071B38; --lp-deep: #04122A; --lp-line: #1A3560; --lp-ink: #C9D4E6; --lp-dim: #8EA3C2; background: var(--bg); color: var(--ink); min-height: 100vh; }
.lp .spacer { flex: 1; }
.lp-wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.lp-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px; padding: 14px max(16px, calc((100% - 1160px) / 2)); background: rgba(7,27,56,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--lp-line); }
.lp-brand { display: flex; align-items: center; gap: 10px; color: #fff !important; font: 600 18px var(--font-display); text-decoration: none !important; }
.lp-brand img { width: 34px; height: 34px; border-radius: 9px; }
.lp-nav { display: flex; gap: 20px; margin-left: 18px; }
.lp-nav a { color: var(--lp-ink) !important; font-size: 14px; }
.lp-nav a:hover { color: #fff !important; text-decoration: none; }
.lp-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 9px; font-weight: 600; font-size: 14px; text-decoration: none !important; border: 1px solid transparent; white-space: nowrap; }
.lp-btn svg[aria-hidden] { width: 17px; height: 17px; }
.lp-btn.big { height: 46px; padding: 0 22px; font-size: 15px; }
.lp-btn.primary { background: var(--signal); color: #fff !important; }
.lp-btn.primary:hover { background: #0B78F0; }
.lp-btn.ghost { color: #fff !important; border-color: #2A4A78; }
.lp-btn.ghost:hover { background: rgba(255,255,255,.06); border-color: #3D669E; }

.lp-hero { background: radial-gradient(1200px 520px at 78% 30%, #0C2B57 0%, transparent 70%), var(--lp-night); color: var(--lp-ink); padding: 72px 0 80px; }
.lp-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.lp-hero h1 { color: #fff; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -.03em; max-width: 13ch; }
.lp-hero-text > p { font-size: 17px; line-height: 1.6; margin-top: 20px; max-width: 44ch; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lp-note { margin-top: 16px; font-size: 13px; color: var(--lp-dim); }

.lp-panel { position: relative; background: #061630; border: 1px solid var(--lp-line); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.lp-panel-bar { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-bottom: 1px solid var(--lp-line); font-size: 13px; color: #fff; font-weight: 600; }
.lp-live { width: 8px; height: 8px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 0 rgba(61,220,151,.6); animation: lp-pulse 2.4s infinite; }
@keyframes lp-pulse { 70% { box-shadow: 0 0 0 8px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }
.lp-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.lp-chip svg { width: 14px; height: 14px; }
.lp-chip.warn { background: #3A2A0E; color: #F5C46A; }
.lp-map svg.lp-map-svg[aria-hidden] { display: block; width: 100%; height: auto; }
.lp-order { position: absolute; right: 16px; bottom: 16px; width: min(270px, 60%); display: grid; gap: 4px; padding: 13px 14px; border-radius: 12px; background: rgba(9,30,62,.94); border: 1px solid #23467A; color: var(--lp-ink); font-size: 13px; }
.lp-order b { color: #fff; font: 600 16px var(--font-display); }
.lp-order-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--lp-dim); }
.lp-tag { color: #7FD0FF; font-weight: 600; }
.lp-order-sub { font-size: 12.5px; color: var(--lp-dim); }
.lp-bar { height: 5px; border-radius: 3px; background: #1A3560; margin: 6px 0 2px; overflow: hidden; }
.lp-bar i { display: block; height: 100%; background: var(--sky); border-radius: 3px; }

.lp-stats { display: flex; flex-wrap: wrap; gap: 14px 56px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--lp-line); }
.lp-stats b { display: block; color: #fff; font: 600 28px/1.1 var(--font-display); letter-spacing: -.02em; }
.lp-stats span { font-size: 13px; color: var(--lp-dim); }

.lp-sec { padding: 96px 0; }
.lp-sec.alt { background: var(--surface-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.lp-h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.025em; line-height: 1.15; max-width: 22ch; }
.lp-lead { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); margin-top: 14px; max-width: 62ch; }
.lp-spot { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; margin: 56px 0 64px; padding: 36px 40px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.lp-spot h3 { font-size: 22px; letter-spacing: -.015em; }
.lp-spot p { color: var(--ink-2); font-size: 15px; line-height: 1.65; margin-top: 10px; }
.lp-ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 14px; }
.lp-ticks li { display: flex; gap: 9px; align-items: center; }
.lp-ticks svg[aria-hidden] { width: 17px; height: 17px; color: var(--good); flex: none; }
.lp-stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.lp-stops li { position: relative; display: flex; gap: 14px; padding: 0 0 22px 0; }
.lp-stops li:last-child { padding-bottom: 0; }
.lp-stops li::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: -2px; width: 2px; background: var(--line); }
.lp-stops li:last-child::before { display: none; }
.lp-stops li.done::before { background: var(--signal); }
.lp-dot { position: relative; z-index: 1; flex: none; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.lp-stops li.done .lp-dot { background: var(--signal); border-color: var(--signal); }
.lp-stops li.now .lp-dot { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(0,168,245,.18); }
.lp-stops b { display: block; font-size: 15px; }
.lp-stops span { font-size: 13px; color: var(--ink-3); }
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 48px; }
.lp-feat h3 { font-size: 16.5px; margin-top: 14px; }
.lp-feat p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; margin-top: 6px; }
.lp-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--info-bg); color: var(--signal); }
:root.dark .lp-ic, [data-theme="dunkel"] .lp-ic { color: #7FB6FF; }
.lp-ic svg[aria-hidden] { width: 21px; height: 21px; }

.lp-steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.lp-steps::before { content: ""; position: absolute; top: 19px; left: 20px; right: calc((100% - 80px) / 3 - 20px); border-top: 2px dashed var(--line); }
.lp-steps li { position: relative; }
.lp-n { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--signal); color: #fff; font: 600 16px var(--font-display); box-shadow: 0 0 0 6px var(--surface-2); }
.lp-steps h3 { font-size: 17px; margin-top: 18px; }
.lp-steps p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; margin-top: 6px; max-width: 34ch; }
.lp-steps-more { margin-top: 40px; font-size: 14.5px; }

.lp-end { background: var(--lp-deep); color: var(--lp-ink); padding: 80px 0 0; }
.lp-end-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 72px; }
.lp-end h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.025em; }
.lp-end p { margin-top: 8px; color: var(--lp-dim); font-size: 15.5px; }
.lp-end .lp-cta { margin-top: 0; }
.lp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 22px 0 28px; border-top: 1px solid var(--lp-line); font-size: 13px; color: var(--lp-dim); }
.lp-link { display: inline-flex; align-items: center; gap: 6px; color: var(--lp-ink) !important; }
.lp-link svg { width: 15px; height: 15px; }
.lp-foot .lp-link svg { color: #FF7A7F; }
.lp-foot .muted { color: #5F7597; }

@media (max-width: 1000px) {
  .lp-nav { display: none; }
  .lp-hero { padding-top: 44px; }
  .lp-hero-grid, .lp-spot { grid-template-columns: 1fr; gap: 36px; }
  .lp-spot { padding: 26px 22px; }
  .lp-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .lp-steps { grid-template-columns: 1fr; gap: 28px; }
  .lp-steps::before { top: 20px; bottom: 30px; left: 19px; right: auto; border-top: 0; border-left: 2px dashed var(--line); }
  .lp-steps li { padding-left: 62px; min-height: 40px; }
  .lp-n { position: absolute; left: 0; top: 0; }
  .lp-steps h3 { margin-top: 8px; }
  .lp-sec { padding: 64px 0; }
}
@media (max-width: 600px) {
  .lp-top { gap: 10px; padding: 10px 16px; }
  .lp-hide-s { display: none; }
  .lp-grid { grid-template-columns: 1fr; }
  .lp-btn.big { width: 100%; justify-content: center; }
  .lp-order { position: static; width: auto; margin: 0 12px 12px; }
  .lp-stats { gap: 18px 32px; margin-top: 40px; }
  .lp-stats b { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { .lp-live { animation: none; } }

/* Anmeldung: Routenlinie nicht durch den Text laufen lassen */
.auth-art svg.route { width: min(56%, 440px); right: 0; top: 70px; }
.auth-home { color: var(--lp-dim, #8EA3C2) !important; font-size: 13px; margin-top: 18px; }
/* Sprachwahl */
.lp-lang select { height: 38px; border-radius: 9px; border: 1px solid #2A4A78; background: transparent; color: #fff; padding: 0 10px; font: inherit; font-size: 14px; }
.lp-lang select option { color: #0B1F3A; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.menu-lang { display: flex; align-items: center; gap: 10px; padding: 8px 12px; } .menu-lang select { flex: 1; height: 32px; }
@media (max-width: 600px) { .lp-lang select { width: 92px; } }
