/* Veidle – Design nach Präsentation: Nachtblau, Cyan, Pillenformen, Arial / Arial Black */
:root {
  --navy: #090F29; --navy-2: #0B1A2E; --blue: #14314C; --slate: #26323F;
  --cyan: #6CFDFF; --cyan-strong: #09FCFF; --cyan-soft: rgba(108, 253, 255, .16);
  --mist: #DCE3EA; --tile: #F1F5F9; --line: #E2E8F0; --gray: #6B7785; --ink: #0C1830;
  --ok: #0E9F6E; --ok-soft: #E3F7EF; --warn: #C27803; --warn-soft: #FDF3DC; --bad: #C8323A; --bad-soft: #FCE8E9;
  --violet: #5B4FD8; --violet-soft: #ECEAFD;
  --r: 16px; --r-sm: 10px; --pill: 999px;
  --shadow: 0 1px 2px rgba(9, 15, 41, .06), 0 6px 24px rgba(9, 15, 41, .06);
  --head: "Arial Black", "Arial Bold", Arial, Helvetica, sans-serif;
  --body: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--body); color: var(--ink); background: var(--tile); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); color: var(--blue); margin: 0; letter-spacing: -.01em; }
h1 { font-size: 26px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
.muted { color: var(--gray); } .small { font-size: 12px; } .tiny { font-size: 11px; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; height: 100vh; }
.side { background: var(--navy); color: #fff; display: flex; flex-direction: column; min-height: 0; }
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 16px; }
.brand .lock { border-left: 2px solid rgba(255,255,255,.9); padding-left: 10px; }
.brand .word { font-family: var(--head); font-size: 22px; letter-spacing: .01em; line-height: 1.05; }
.brand .sub { font-size: 10.5px; color: rgba(255,255,255,.85); font-weight: bold; line-height: 1.25; margin-top: 3px; max-width: 150px; }
.v-mark { flex: none; display: block; }
.who { margin: 4px 14px 14px; padding: 12px; border-radius: var(--r-sm); background: var(--navy-2); border: 1px solid rgba(255,255,255,.06); }
.who .name { font-weight: bold; font-size: 13px; }
.who .role { display: inline-block; margin-top: 6px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--pill); background: var(--cyan); color: var(--navy); font-weight: bold; }
.who .org { font-size: 11px; color: #A9B6C6; margin-top: 4px; }
.nav { flex: 1; overflow-y: auto; padding: 0 10px; }
.nav button { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px 12px; margin: 2px 0; border: 0; background: none; color: #C9D3DE; border-radius: var(--pill); cursor: pointer; text-align: left; font-size: 13px; }
.nav button:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav button.active { background: var(--cyan); color: var(--navy); font-weight: bold; }
.nav button .badge-n { margin-left: auto; background: var(--bad); color: #fff; border-radius: var(--pill); font-size: 11px; padding: 1px 7px; font-weight: bold; }
.nav button.active .badge-n { background: var(--navy); }
.nav .sep { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: #6B7785; padding: 14px 12px 6px; }
.side-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; gap: 10px; }
.side-foot .made { font-size: 10px; color: #6B7785; line-height: 1.3; }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.top { height: 64px; flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--line); }
.top h1 { font-size: 20px; }
.top .title-line { width: 34px; height: 4px; background: var(--cyan); border-radius: 4px; }
.top .grow { flex: 1; }
.content { flex: 1; overflow-y: auto; padding: 24px 28px 40px; }
.content.flush { padding: 0; overflow: hidden; }

/* ---------- Bausteine ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; }
.card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; min-width: 0; }
.card > h2, .card > h3 { margin-bottom: 14px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; } .card-head .grow { flex: 1; }
.card.dark { background: var(--navy); color: #fff; } .card.dark h2, .card.dark h3 { color: #fff; }
.kpi { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; position: relative; overflow: hidden; }
.kpi .lbl { font-size: 12px; color: var(--gray); }
.kpi .val { font-family: var(--head); font-size: 24px; color: var(--blue); margin-top: 4px; white-space: nowrap; }
.kpi .sub { font-size: 12px; color: var(--gray); margin-top: 4px; }
.kpi.accent { background: var(--navy); } .kpi.accent .lbl, .kpi.accent .sub { color: #A9B6C6; } .kpi.accent .val { color: var(--cyan); }
.trend { font-weight: bold; } .trend.up { color: var(--ok); } .trend.down { color: var(--bad); } .trend.flat { color: var(--gray); }
.trend.inv.up { color: var(--bad); } .trend.inv.down { color: var(--ok); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: var(--pill); padding: 9px 18px; font-weight: bold; font-size: 13px; background: var(--navy); color: #fff; white-space: nowrap; }
.btn:hover { background: var(--blue); }
.btn.cyan { background: var(--cyan); color: var(--navy); } .btn.cyan:hover { background: var(--cyan-strong); }
.btn.ghost { background: transparent; color: var(--blue); border: 1px solid var(--mist); } .btn.ghost:hover { background: var(--tile); }
.btn.ok { background: var(--ok); } .btn.bad { background: var(--bad); }
.btn.sm { padding: 6px 12px; font-size: 12px; } .btn.lg { padding: 14px 24px; font-size: 15px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--pill); font-size: 11px; font-weight: bold; background: var(--tile); color: var(--blue); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.warn { background: var(--warn-soft); color: var(--warn); } .pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.cyan { background: var(--cyan-soft); color: var(--blue); } .pill.navy { background: var(--navy); color: var(--cyan); } .pill.violet { background: var(--violet-soft); color: var(--violet); }
.seg { display: inline-flex; background: var(--tile); border-radius: var(--pill); padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: var(--pill); cursor: pointer; font-weight: bold; font-size: 12px; color: var(--gray); display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: var(--navy); color: #fff; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 10px 14px; cursor: pointer; font-weight: bold; color: var(--gray); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--blue); border-bottom-color: var(--cyan); }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label, .lbl-s { font-size: 12px; color: var(--gray); font-weight: bold; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--mist); background: #fff; border-radius: var(--r-sm); padding: 9px 12px; outline: none; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--cyan-soft); }
.input.sm { padding: 6px 9px; font-size: 13px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .row.end { justify-content: flex-end; } .row.between { justify-content: space-between; } .row.top { align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--blue); }
.switch { position: relative; width: 38px; height: 22px; display: inline-block; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--mist); border-radius: var(--pill); transition: .15s; cursor: pointer; }
.switch span:before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--navy); }
.switch input:checked + span:before { transform: translateX(16px); background: var(--cyan); }
.switch input:disabled + span { opacity: .5; cursor: not-allowed; }

table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
.t th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); font-weight: bold; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tr.click { cursor: pointer; } .t tr.click:hover td { background: var(--tile); }
.t .r { text-align: right; }
.table-wrap { overflow-x: auto; }
.bar { height: 8px; background: var(--tile); border-radius: var(--pill); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--blue); border-radius: var(--pill); }
.bar.cyan > i { background: var(--cyan-strong); } .bar.ok > i { background: var(--ok); } .bar.warn > i { background: var(--warn); } .bar.bad > i { background: var(--bad); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--cyan); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-weight: bold; font-size: 12px; flex-shrink: 0; }
.avatar.navy { background: var(--navy); color: var(--cyan); }
.empty { text-align: center; color: var(--gray); padding: 30px 10px; }
.note { background: var(--tile); border-radius: var(--r-sm); padding: 10px 12px; font-size: 12px; color: var(--slate); }
.note.cyan { background: var(--cyan-soft); } .note.warn { background: var(--warn-soft); color: #7A4D02; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.icon { width: 18px; height: 18px; flex-shrink: 0; }
.mode-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--tile); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mode-ic .icon { width: 16px; height: 16px; }
.chain { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chain .seg-l { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: var(--pill); background: var(--tile); font-size: 12px; font-weight: bold; color: var(--blue); }
.chain .seg-l .mode-ic { width: 22px; height: 22px; background: #fff; } .chain .seg-l .mode-ic .icon { width: 13px; height: 13px; }
.chain .arrow { color: var(--mist); }

/* ---------- Login ---------- */
.login { display: grid; grid-template-columns: minmax(380px, 46%) 1fr; height: 100vh; background: var(--navy); }
.login-left { padding: 48px 56px; color: #fff; display: flex; flex-direction: column; overflow-y: auto; }
.login-left h1 { color: #fff; font-family: Arial, sans-serif; font-weight: bold; font-size: 52px; margin-top: 36px; }
.login-left .claim { color: var(--cyan); font-size: 24px; font-weight: bold; margin-top: 10px; line-height: 1.25; }
.login-left .lead { color: #DCE3EA; margin-top: 12px; font-size: 15px; }
.login-form { margin-top: 28px; display: grid; gap: 10px; max-width: 420px; }
.login-form .input { background: var(--navy-2); border-color: #26323F; color: #fff; }
.login-form .input::placeholder { color: #6B7785; }
.demo { margin-top: 26px; max-width: 520px; }
.demo .grp { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #6B7785; margin: 14px 0 6px; }
.demo button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--navy-2); border: 1px solid #1B2A40; color: #fff; padding: 9px 12px; border-radius: var(--r-sm); margin-bottom: 6px; cursor: pointer; }
.demo button:hover { border-color: var(--cyan); }
.demo button .e { color: #A9B6C6; font-size: 11px; }
.login-right { background: url('../assets/login-city.jpg') center / cover; position: relative; }
.login-right:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,15,41,.85), rgba(20,49,76,.35)); }
.login-right .badge-box { position: absolute; z-index: 1; left: 48px; bottom: 48px; background: #fff; padding: 16px 22px; border-radius: 6px; }
.login-right .badge-box img { height: 74px; display: block; }
.url-pill { display: inline-block; margin-top: 28px; background: var(--cyan); color: var(--navy); font-weight: bold; padding: 12px 64px 12px 160px; border-radius: 0 var(--pill) var(--pill) 0; margin-left: -56px; }

/* ---------- Planer ---------- */
.planner { display: grid; grid-template-columns: 440px 1fr; height: 100%; min-height: 0; }
.planner-panel { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; z-index: 1; box-shadow: 8px 0 24px rgba(9,15,41,.06); }
.planner-form { padding: 18px 20px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.od { position: relative; display: grid; gap: 8px; }
.od .input { padding-left: 34px; font-weight: bold; }
.od .dot { position: absolute; left: 13px; width: 10px; height: 10px; border-radius: 50%; }
.od .dot.a { top: 15px; background: var(--cyan-strong); box-shadow: 0 0 0 3px var(--cyan-soft); }
.od .dot.b { top: 59px; background: var(--navy); }
.od .swap { position: absolute; right: 8px; top: 30px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--mist); background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--mist); background: #fff; border-radius: var(--pill); padding: 5px 11px; font-size: 12px; font-weight: bold; color: var(--blue); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.chip:hover, .chip.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.keybtn { width: 100%; border: 0; cursor: pointer; border-radius: var(--pill); padding: 16px 18px; background: var(--navy); color: #fff; display: flex; align-items: center; gap: 14px; text-align: left; box-shadow: 0 0 0 0 rgba(108,253,255,.5); animation: keyglow 3.2s infinite; }
.keybtn .k { width: 40px; height: 40px; border-radius: 50%; background: var(--cyan); color: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.keybtn .t1 { font-family: var(--head); font-size: 15px; }
.keybtn .t2 { font-size: 12px; color: #A9B6C6; }
.keybtn .p { margin-left: auto; font-family: var(--head); font-size: 17px; color: var(--cyan); white-space: nowrap; }
.keybtn:disabled { animation: none; opacity: .5; cursor: not-allowed; }
@keyframes keyglow { 0%, 100% { box-shadow: 0 0 0 0 rgba(108,253,255,.0); } 50% { box-shadow: 0 0 0 6px rgba(108,253,255,.28); } }
.results { flex: 1; overflow-y: auto; padding: 14px 20px 24px; display: grid; gap: 10px; align-content: start; }
.opt { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; cursor: pointer; background: #fff; display: grid; gap: 8px; }
.opt:hover { border-color: var(--mist); box-shadow: var(--shadow); }
.opt.sel { border: 2px solid var(--navy); padding: 11px 13px; }
.opt .h { display: flex; align-items: baseline; gap: 10px; }
.opt .h .d { font-family: var(--head); font-size: 17px; color: var(--blue); }
.opt .h .price { margin-left: auto; font-family: var(--head); font-size: 17px; color: var(--blue); }
.opt .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--gray); }
.opt .viol { font-size: 12px; color: var(--warn); }
.map { position: relative; min-width: 0; overflow: hidden; background: #E9EEF3; }
.map img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map .hud { position: absolute; left: 20px; top: 20px; background: var(--navy); color: #fff; border-radius: var(--pill); padding: 8px 16px; font-size: 12px; display: flex; gap: 10px; align-items: center; }
.map .hud .live { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(108,253,255,.25); }
.map .placeholder-tag { position: absolute; right: 20px; top: 20px; background: rgba(255,255,255,.92); border: 1px dashed var(--gray); color: var(--slate); border-radius: var(--r-sm); padding: 8px 12px; font-size: 12px; max-width: 280px; }
.map .route-card { position: absolute; left: 20px; right: 20px; bottom: 20px; max-width: 760px; background: #fff; border-radius: var(--r); box-shadow: 0 12px 32px rgba(9,15,41,.18); padding: 16px 18px; display: grid; gap: 10px; }
.cmp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cmp div { background: var(--tile); border-radius: var(--r-sm); padding: 8px 10px; font-size: 12px; }
.cmp b { display: block; font-size: 14px; color: var(--blue); }

/* ---------- Modal und Toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(9,15,41,.55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal { background: #fff; border-radius: 20px; width: min(640px, 100%); max-height: 90vh; overflow-y: auto; padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.modal.wide { width: min(920px, 100%); }
.modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.modal-head h2 { flex: 1; }
.x { border: 0; background: var(--tile); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.toast-box { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 60; }
.toast { background: var(--navy); color: #fff; border-left: 4px solid var(--cyan); padding: 12px 16px; border-radius: var(--r-sm); box-shadow: var(--shadow); max-width: 380px; font-size: 13px; }
.toast.err { border-left-color: var(--bad); }
.success-key { width: 72px; height: 72px; margin: 4px auto 12px; border-radius: 50%; background: var(--cyan); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.success-key .icon { width: 34px; height: 34px; }
pre.json { background: var(--navy); color: #DCE3EA; border-radius: var(--r-sm); padding: 14px; font-size: 12px; overflow: auto; max-height: 60vh; margin: 0; }
pre.json .k { color: var(--cyan); } pre.json .s { color: #B8F5C8; } pre.json .n { color: #FFD28A; } pre.json .b { color: #FF9EC8; }

/* ---------- Diagramme ---------- */
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--body); font-size: 11px; fill: var(--gray); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--slate); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.hbars { display: grid; gap: 10px; }
.hbars .hb { display: grid; grid-template-columns: 150px 1fr 90px; gap: 10px; align-items: center; font-size: 12px; }
.hbars .hb .v { text-align: right; font-weight: bold; color: var(--blue); }

.policy-table td { vertical-align: top; }
.policy-table .attr { display: grid; gap: 6px; }
.policy-table .mode-cell { display: flex; gap: 10px; align-items: center; font-weight: bold; color: var(--blue); }
.decision { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.decision > div { background: var(--tile); border-radius: var(--r-sm); padding: 10px 12px; }
.decision b { display: block; font-family: var(--head); color: var(--blue); font-size: 16px; margin-top: 2px; }
.decision .bad b { color: var(--bad); }

@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planner { grid-template-columns: 380px 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { flex-direction: row; align-items: center; min-width: 0; }
  .who, .side-foot, .brand .sub, .brand .word { display: none; }
  .brand { padding: 10px 6px 10px 14px; }
  .nav { display: flex; overflow-x: auto; padding: 8px 8px 8px 0; gap: 4px; }
  .nav button { width: auto; white-space: nowrap; margin: 0; padding: 8px 12px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; } .span2, .span3 { grid-column: auto; }
  .planner { grid-template-columns: 1fr; grid-template-rows: 300px auto; }
  .planner .map { order: -1; }
  .content.flush { overflow-y: auto; }
  .login { grid-template-columns: 1fr; } .login-right { display: none; }
  .decision { grid-template-columns: repeat(2, 1fr); }
  .top { padding: 0 16px; } .content { padding: 16px; }
}

/* Reisekosten */
.tripbox { border: 1px dashed var(--mist); border-radius: var(--r-sm); padding: 10px 12px; background: var(--tile); }
details > summary { list-style: none; } details > summary::-webkit-details-marker { display: none; }
details > summary .icon { width: 14px; height: 14px; vertical-align: -2px; }

/* Planer: Zwischenziele und Fahrtverlauf */
.vias { display: flex; flex-direction: column; gap: 6px; }
.vias .via { display: grid; grid-template-columns: auto 1fr auto auto; gap: 6px; align-items: center; }
.vias .via .lbl-s { min-width: 28px; }
.vias .via input { min-width: 0; width: 100%; }
.vias .via select { width: auto; max-width: 190px; }
.vias #addvia { align-self: flex-start; }
.route-card { max-height: calc(100% - 32px); overflow-y: auto; }
.itin { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.itin-seg { display: flex; flex-direction: column; gap: 6px; border-left: 3px solid var(--cyan); padding-left: 10px; }
.itin-leg { display: flex; gap: 10px; align-items: flex-start; }
.itin-leg .t { font-weight: 700; font-size: 13px; min-width: 42px; line-height: 1.35; }
.itin-tr, .itin-stay { font-size: 12px; color: var(--gray); display: flex; gap: 6px; align-items: center; padding-left: 52px; }
.itin-stay { padding-left: 0; color: var(--blue); font-weight: 700; }
.itin-tr .icon, .itin-stay .icon { width: 14px; height: 14px; }
@media (max-width: 640px) { .vias .via { grid-template-columns: 1fr auto auto; } .vias .via .lbl-s { display: none; } .vias .via select { max-width: 130px; } }

/* Ticket-Wallet „Meine Reisen“ */
.wallet-h { margin: 22px 0 10px; font-family: var(--head); font-size: 16px; color: var(--navy); display: flex; gap: 8px; align-items: baseline; }
.wallet-empty { display: flex; gap: 16px; align-items: center; } .wallet-empty > .icon { width: 36px; height: 36px; color: var(--blue); } .wallet-empty h2 { margin: 0 0 4px; }
.hero-ticket { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 22px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #10365a 100%); color: #fff; border-radius: 22px; padding: 22px 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero-ticket::after { content: ""; position: absolute; right: 252px; top: 18px; bottom: 18px; border-left: 2px dashed rgba(255, 255, 255, .18); }
.hero-ticket.alert { box-shadow: 0 0 0 3px var(--bad), var(--shadow); }
.hero-ticket .pill.cyan { background: var(--cyan); color: var(--navy); }
.ht-route { font-family: var(--head); font-size: 24px; margin-top: 12px; line-height: 1.15; }
.ht-when { color: #A9B6C6; font-size: 13px; margin-top: 4px; }
.ht-leg { display: flex; gap: 18px; align-items: center; margin-top: 16px; }
.ht-time { font-family: var(--head); font-size: 40px; line-height: 1; color: var(--cyan); display: flex; flex-direction: column; }
.ht-time span { font-family: var(--body); font-size: 13px; color: #fff; font-weight: 700; margin-top: 6px; }
.ht-svc { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; } .ht-svc b { font-size: 18px; }
.ht-svc .mode-ic { background: rgba(108, 253, 255, .16); color: var(--cyan); }
.ht-sub { color: #A9B6C6; font-size: 12px; margin-top: 2px; }
.ht-alert { margin-top: 14px; background: rgba(200, 50, 58, .22); border: 1px solid rgba(255, 120, 120, .5); border-radius: 12px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.ht-alert .btn { margin-left: auto; }
.ht-ok { margin-top: 12px; color: #A9B6C6; font-size: 12px; }
.ht-qr { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.ht-qr .qr { background: #fff; border-radius: 14px; padding: 10px; width: 200px; height: 200px; }
.ht-qr-l { font-size: 11px; color: #A9B6C6; text-align: center; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr-wait, .qr-fallback { width: 200px; height: 200px; border-radius: 14px; border: 2px dashed rgba(255, 255, 255, .3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 12px; padding: 14px; color: #A9B6C6; }
.qr-wait .icon, .qr-fallback .icon { width: 28px; height: 28px; }
.qr-fallback { color: var(--gray); border-color: var(--line); width: 100%; height: 100%; }
.btn.ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.steps { display: flex; gap: 4px; margin-top: 16px; }
.steps .st { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; font-size: 10px; color: #A9B6C6; }
.steps .st i { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .2); }
.steps .st.done i { background: var(--cyan); opacity: .5; } .steps .st.cur i { background: var(--cyan); } .steps .st.cur span { color: #fff; font-weight: 700; }
.steps .st.late i { background: var(--warn); } .steps .st.bad i { background: var(--bad); }
.steps .st span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.journey .jdate { min-width: 64px; display: flex; flex-direction: column; background: var(--tile); border-radius: 12px; padding: 8px 10px; text-align: center; font-size: 12px; }
.journey .jdate b { font-size: 13px; } .journey .jdate span { font-family: var(--head); font-size: 16px; color: var(--navy); }
.seg-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; background: var(--tile); border-radius: 999px; padding: 2px 8px 2px 2px; }
.seg-chip .mode-ic { width: 22px; height: 22px; } .seg-chip .mode-ic .icon { width: 13px; height: 13px; }
.jplan { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; } .jplan > summary { cursor: pointer; }
.timeline { margin-top: 12px; display: flex; flex-direction: column; }
.tl-leg { display: grid; grid-template-columns: 62px 14px minmax(0, 1fr); gap: 10px; padding: 8px 0; }
.tl-leg.done { opacity: .55; } .tl-leg.cancelled .tl-body b { text-decoration: line-through; }
.tl-t { font-size: 13px; line-height: 1.5; }
.tl-dot { position: relative; } .tl-dot::before { content: ""; position: absolute; left: 5px; top: 4px; bottom: -14px; width: 3px; background: var(--mist); border-radius: 2px; }
.tl-dot::after { content: ""; position: absolute; left: 1px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.tl-leg.cur .tl-dot::after { background: var(--cyan); border-color: var(--navy); box-shadow: 0 0 0 4px var(--cyan-soft); }
.tl-leg.cur { background: linear-gradient(90deg, var(--cyan-soft), transparent 70%); border-radius: 12px; }
.tl-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tl-gap, .tl-stay, .tl-seg { font-size: 12px; color: var(--gray); padding: 2px 0 2px 86px; display: flex; gap: 6px; align-items: center; }
.tl-gap .icon, .tl-stay .icon { width: 13px; height: 13px; }
.tl-gap.bad { color: var(--bad); font-weight: 700; }
.tl-seg { padding-left: 0; margin-top: 8px; font-weight: 700; color: var(--blue); }
.tl-stay { color: var(--blue); font-weight: 700; }
.late { color: var(--warn); }
.access { display: flex; gap: 10px; flex-wrap: wrap; background: var(--cyan-soft); border-radius: 10px; padding: 6px 10px; font-size: 12px; margin-top: 4px; }
.access.big { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; padding: 10px 12px; margin-top: 12px; }
.access.big div { display: flex; flex-direction: column; } .access.big span { font-size: 11px; color: var(--gray); } .access.big b { font-family: var(--head); font-size: 18px; color: var(--navy); }
.note.bad { background: var(--bad-soft); border-color: rgba(200, 50, 58, .35); color: #7a1d22; }
.note .btn { margin-left: 8px; }
.demo-rt { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; } .demo-rt select { width: auto; }
.list-item.past { cursor: pointer; }
.ticket-full .tf-head { display: flex; gap: 12px; align-items: center; }
.ticket-full .tf-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 14px; }
.ticket-full .tf-qr .qr { width: min(300px, 78vw); height: min(300px, 78vw); background: #fff; padding: 10px; border: 1px solid var(--line); border-radius: 16px; }
@media (max-width: 760px) {
  .hero-ticket { grid-template-columns: 1fr; } .hero-ticket::after { display: none; }
  .ht-qr { order: -1; } .ht-qr .qr, .qr-wait { width: 180px; height: 180px; }
  .ht-time { font-size: 32px; } .ht-route { font-size: 20px; }
  .tl-leg { grid-template-columns: 52px 14px minmax(0, 1fr); } .tl-gap, .tl-stay { padding-left: 76px; }
}

/* Registrierung */
.reg { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: 100vh; background: var(--tile); }
.reg-side { background: linear-gradient(160deg, var(--navy), var(--navy-2) 70%, #10365a); color: #fff; padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; }
.reg-side h1 { font-family: var(--head); font-size: 26px; margin: 18px 0 0; line-height: 1.15; }
.reg-claim { color: #A9B6C6; font-size: 14px; }
.reg-steps { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 6px; }
.reg-steps li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #A9B6C6; padding: 6px 8px; border-radius: 10px; }
.reg-steps li span { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.reg-steps li span .icon { width: 14px; height: 14px; }
.reg-steps li.done { color: #fff; } .reg-steps li.done span { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.reg-steps li.cur { background: rgba(108, 253, 255, .12); color: #fff; font-weight: 700; } .reg-steps li.cur span { border-color: var(--cyan); color: var(--cyan); }
.reg-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.reg-perks { display: flex; flex-direction: column; gap: 6px; color: #DCE3EA; font-size: 13px; } .reg-perks .icon { width: 14px; height: 14px; color: var(--cyan); vertical-align: -2px; }
.link-light { color: var(--cyan); text-decoration: none; font-weight: 700; } .link-light:hover { text-decoration: underline; }
.reg-main { padding: 36px 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; justify-content: center; }
.reg-main > .reg-card { flex: 1 1 520px; max-width: 760px; } .reg-main > #mailbox { flex: 0 1 300px; min-width: 260px; } .reg-main > #mailbox:empty { display: none; }
.reg-side h1 { color: #fff; }
.reg-card { background: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.reg-card h2 { margin: 0; } .reg-card h3 { margin: 6px 0 0; font-size: 15px; } .reg-card p { margin: 0; }
.reg-nav { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.code-in, #cd { letter-spacing: .4em; font-size: 22px; font-weight: 700; text-align: center; max-width: 240px; }
.mailbox { background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; font-size: 13px; position: sticky; top: 20px; }
.mail { border-top: 1px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.mail-code { font-family: var(--head); font-size: 24px; letter-spacing: .3em; color: var(--navy); background: var(--cyan-soft); border-radius: 10px; padding: 4px 10px; align-self: flex-start; }
.plans .plan, .tpl-pick .plan { border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.plan input { display: none; } .plan.on { border-color: var(--navy); background: var(--cyan-soft); }
.cards-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.card-opt { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; gap: 8px; align-items: center; cursor: pointer; font-size: 13px; }
.card-opt.rec { border-color: var(--navy); }
.csv-box { border: 1.5px dashed var(--mist); border-radius: 12px; padding: 10px 12px; background: var(--tile); }
.csv-result { margin-top: 8px; font-size: 13px; }
.person { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.chip.sm { padding: 3px 9px; font-size: 11px; }
.t.edit td { padding: 4px 6px; } .t.edit .input { width: 100%; }
.add-row .field { margin: 0; }
.reg-cta { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.trial-bar { background: var(--warn-soft); color: #7A4D02; font-size: 13px; padding: 8px 20px; display: flex; gap: 8px; align-items: center; } .trial-bar .icon { width: 15px; height: 15px; } .trial-bar a { color: var(--blue); font-weight: 700; }
textarea.code { font-family: ui-monospace, Menlo, monospace; font-size: 11px; width: 100%; }
@media (max-width: 980px) { .reg { grid-template-columns: 1fr; } .reg-side { position: static; height: auto; } .reg-steps { flex-direction: row; flex-wrap: wrap; } .reg-steps li { font-size: 12px; } .reg-main { padding: 16px; } .reg-main > #mailbox { flex-basis: 100%; } .mailbox { position: static; } }
@media (max-width: 640px) { .cards-pick { grid-template-columns: 1fr; } .reg-card { padding: 18px; } }

a.btn { text-decoration: none; }

/* Präferenzen und Budget-Sharing */
.excl { font-size: 12px; color: var(--slate); background: var(--tile); border-radius: 10px; padding: 7px 10px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.excl .icon { width: 14px; height: 14px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 700; cursor: pointer; text-decoration: underline; font: inherit; }
.share-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.big-qr { width: min(260px, 70vw); height: min(260px, 70vw); background: #fff; padding: 10px; border: 1px solid var(--line); border-radius: 16px; }
.pair-code { font-family: var(--head); font-size: 26px; letter-spacing: .15em; color: var(--navy); }
.scan { position: relative; width: 100%; max-width: 360px; aspect-ratio: 4 / 3; background: var(--navy); border-radius: 14px; overflow: hidden; }
.scan video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; inset: 18%; border: 3px solid var(--cyan); border-radius: 14px; box-shadow: 0 0 0 999px rgba(9, 15, 41, .35); }
#prefs h3 { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 15px; }
#prefs h3 .icon { width: 16px; height: 16px; }

/* Meine Fahrzeuge und Fuhrpark */
.veh-card { padding: 0; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.veh-card .veh-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.veh-card h3 { margin: 6px 0 0; }
.veh-photo { width: 100%; aspect-ratio: 16 / 9; background: center / cover no-repeat var(--tile); }
.veh-photo.ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy), #14314C); color: var(--cyan); }
.veh-photo.ph .icon { width: 48px; height: 48px; }
.veh-photo.lg { width: 260px; flex: 0 0 260px; border-radius: 14px; }
.veh-photo.sm { width: 160px; border-radius: 12px; }
.veh-photo.xs { width: 64px; flex: 0 0 64px; border-radius: 8px; } .veh-photo.xs.ph .icon { width: 22px; height: 22px; }
.veh-head { display: flex; gap: 18px; align-items: flex-start; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px 16px; margin-top: 10px; font-size: 13px; }
.kv span { display: block; font-size: 11px; color: var(--gray); } .kv b { word-break: break-all; }
.dot-a { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.dot-a.red { background: var(--bad); } .dot-a.yellow { background: #F2B705; } .dot-a.blue { background: var(--violet); } .dot-a.green { background: var(--ok); }
.ampel-row { display: inline-flex; gap: 12px; font-size: 20px; }
.alert-row { display: flex; gap: 10px; align-items: flex-start; border-radius: 10px; padding: 8px 10px; font-size: 13px; background: var(--warn-soft); color: #7A4D02; }
.alert-row.sev3 { background: var(--bad-soft); color: #7a1d22; } .alert-row.sev1 { background: var(--tile); color: var(--slate); }
.alert-row .icon { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; }
.order-row { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-top: 8px; flex-wrap: wrap; }
.prov-row { display: grid; grid-template-columns: 130px 1fr 1fr 1fr 1fr 1fr auto; gap: 6px; }
@media (max-width: 760px) { .veh-head { flex-direction: column; } .veh-photo.lg { width: 100%; flex-basis: auto; } .prov-row { grid-template-columns: 1fr 1fr; } }

/* Planer: kompakte Eingabe, Schnellfilter, eigene Fahrzeuge */
.pf-sum { display: none; }
.planner-form.compact .pf-full { display: none; }
.planner-form.compact .pf-sum { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.planner-form.compact { gap: 10px; padding-bottom: 12px; }
.planner-form.compact .keybtn { padding: 8px 12px; } .planner-form.compact .keybtn .k { width: 36px; height: 36px; }
.pf-sum-main { min-width: 0; } .pf-sum-route { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.qfilter { display: flex; gap: 6px; flex-wrap: wrap; position: sticky; top: 0; background: #fff; padding: 4px 0 8px; z-index: 2; }
.qfilter .chip .icon { width: 13px; height: 13px; }
.opt .price small { display: block; font-size: 10px; font-weight: 400; color: var(--gray); text-align: right; }
.own-hint { display: flex; gap: 8px; align-items: center; font-size: 12px; background: var(--tile); border-radius: 10px; padding: 6px 10px; }
.own-cost { font-size: 12px; color: var(--slate); background: var(--tile); border-radius: 8px; padding: 6px 8px; margin-top: 6px; }
.own-cost .icon { width: 13px; height: 13px; vertical-align: -2px; }
.mode-ic.own { background: var(--bad-soft); color: var(--bad); }
.p100 { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.p100-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr auto auto; gap: 8px; align-items: center; font-size: 12px; }
.p100-row .bar { height: 8px; } .p100-row.sel .bar i { background: var(--cyan-strong); } .p100-row.car .bar i { background: var(--bad); } .p100-row.full .bar i { background: #F2A0A4; }

/* HR-Reporting */
.hr-t td { vertical-align: top; }
tr.hr-detail td { background: var(--tile); }
tr.warnrow td { background: var(--warn-soft); }
details.card > summary { cursor: pointer; }

/* ---------- Benachrichtigungen ---------- */
.icon.xs { width: 12px; height: 12px; vertical-align: -2px; }
.bell-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--blue); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bell-btn:hover { background: var(--tile); }
.bell-btn .icon { width: 19px; height: 19px; }
.bell-n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10px; font-weight: bold; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.bell-panel { position: fixed; z-index: 60; width: 380px; max-width: calc(100vw - 24px); background: #fff; border-radius: var(--r-md, 14px); box-shadow: 0 18px 50px rgba(9, 15, 41, .22); border: 1px solid var(--line); overflow: hidden; }
.bell-list { max-height: 420px; overflow: auto; }
.bell-item { display: flex; gap: 10px; width: 100%; text-align: left; border: 0; background: #fff; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; font: inherit; color: inherit; }
.bell-item:hover { background: var(--tile); }
.bell-item .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bell-item b { font-size: 13px; }
.bell-item.unread { background: var(--cyan-soft); }
.bell-foot { width: 100%; border: 0; background: var(--tile); padding: 11px; font-weight: bold; color: var(--blue); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.nf-ic { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--tile); color: var(--blue); }
.nf-ic .icon { width: 17px; height: 17px; }
.nf-ic.sm { width: 28px; height: 28px; border-radius: 8px; } .nf-ic.sm .icon { width: 14px; height: 14px; }
.nf-ic.cyan { background: var(--cyan-soft); } .nf-ic.violet { background: var(--violet-soft); color: var(--violet); } .nf-ic.warn { background: var(--warn-soft); color: var(--warn); } .nf-ic.bad { background: var(--bad-soft); color: var(--bad); }
.inbox-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.compose-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.tpl-edit { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .inbox-grid, .compose-grid, .tpl-edit { grid-template-columns: 1fr; } }
.nf-list { display: flex; flex-direction: column; gap: 8px; }
.nf-item { position: relative; display: flex; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.nf-item:hover { border-color: var(--mist); box-shadow: 0 4px 14px rgba(9, 15, 41, .06); }
.nf-item.unread { border-left: 4px solid var(--cyan-strong, #2bd9e0); }
.nf-item.unread .nf-title { color: var(--navy); }
.nf-title { font-size: 14px; }
.nf-snip { color: var(--slate); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-body { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.nf-dot { position: absolute; top: 16px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.nf-item.unread .row.between { padding-right: 14px; }
.up-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.up-row:last-child { border-bottom: 0; }
.ch-dots { display: inline-flex; gap: 4px; }
.ch-dots .ch { width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; background: var(--tile); color: var(--mist); }
.ch-dots .ch.on { background: var(--cyan-soft); color: var(--blue); }
.ch-dots .ch .icon { width: 13px; height: 13px; }
.chip-sel { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--pill); border: 1px solid var(--mist); background: #fff; font-size: 12px; cursor: pointer; user-select: none; }
.chip-sel input { width: 14px; height: 14px; accent-color: var(--blue); margin: 0; }
.chip-sel.on { background: var(--cyan-soft); border-color: var(--blue); font-weight: bold; }
.ph-chip { border: 1px dashed var(--mist); background: var(--tile); border-radius: 6px; padding: 3px 8px; font-family: ui-monospace, Menlo, monospace; font-size: 11px; cursor: pointer; color: var(--blue); }
.ph-chip:hover { border-color: var(--blue); }
.pick-list { max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm); margin-top: 6px; }
.pick-row { display: flex; width: 100%; padding: 7px 10px; border-bottom: 1px solid var(--line); gap: 10px; }
.pick-row:last-child { border-bottom: 0; }
.pick-row:hover { background: var(--tile); }
.mail-prev { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; background: #fff; font-size: 13px; line-height: 1.5; }
.push-prev { display: flex; flex-direction: column; gap: 2px; background: var(--navy); color: #fff; border-radius: 14px; padding: 10px 14px; font-size: 12px; max-width: 340px; }
.push-prev b { color: var(--cyan); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.mini-bar { height: 6px; border-radius: 3px; background: var(--tile); overflow: hidden; }
.mini-bar span { display: block; height: 100%; background: var(--ok); }
.tpl-card { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; min-height: 170px; }
.tpl-snip { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.t td.c, .t th.c { text-align: center; }
.linkbtn.small { font-size: 12px; }

/* ---------- Karte (OpenStreetMap) ---------- */
.map-canvas { position: absolute; inset: 0; z-index: 0; background: #E9EEF3 url(../assets/map-placeholder.svg) center / cover no-repeat; }
.map .hud, .map .route-card, .map .placeholder-tag { z-index: 500; }
.map .hud { pointer-events: none; }
.map .leaflet-container { font: inherit; }
.leaflet-control-attribution { font-size: 10px; }
.vm-pin { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-size: 12px; font-weight: bold; color: #fff; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(9, 15, 41, .35); }
.vm-pin.a { background: var(--navy); color: var(--cyan); }
.vm-pin.b { background: var(--bad); }
.vm-pin.v { background: var(--violet); width: 24px; height: 24px; font-size: 11px; }
.vm-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 450; background: rgba(255, 255, 255, .94); border: 1px dashed var(--gray); border-radius: var(--r-sm); padding: 10px 14px; font-size: 12px; color: var(--slate); max-width: 320px; text-align: center; }

/* Zahlungsmittel: Logos, Auswahl-Kacheln, Popup */
.pay-logos{display:inline-flex;gap:6px;flex-wrap:wrap;align-items:center}
.pay-logo{display:block;width:auto;border-radius:6px}
.pay-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.pay-tile{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:14px;border:1.5px solid var(--mist);border-radius:14px;background:#fff;cursor:pointer;font:700 14px var(--body);color:var(--navy);text-align:left;transition:border-color .15s,box-shadow .15s,transform .15s}
.pay-tile:hover:not(:disabled){border-color:var(--navy);box-shadow:var(--shadow);transform:translateY(-1px)}
.pay-tile:disabled{opacity:.5;cursor:not-allowed}
.pay-tile .pay-logos{flex-wrap:nowrap}
.pay-tile .pay-logo{height:26px!important}
.pay-item .pay-logo{flex:none}
.pay-pop-logos{padding-bottom:6px;border-bottom:1px solid var(--mist)}
.pay-el{min-height:120px}

/* ---------- Gestaltete Nachrichten (HTML, Bild, Verlinkungen) ---------- */
.rich { display: grid; gap: 10px; min-width: 0; }
.rich-text { white-space: normal; }
.rich-img { display: block; width: 100%; max-width: 640px; height: auto; border-radius: 12px; }
.rich-frame { display: block; width: 100%; max-width: 680px; min-height: 60px; border: 0; background: #fff; border-radius: 10px; }
.rich-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rich-link { display: inline-flex; flex-direction: column; gap: 4px; }
.rich-voucher { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1.5px dashed var(--violet); border-radius: 12px; background: #F4F2FF; flex: 1 1 100%; }
.rich-voucher .code { display: block; font-family: ui-monospace, Menlo, monospace; font-size: 16px; letter-spacing: .08em; color: var(--navy); }
.mail-view { display: grid; gap: 10px; }
.mail-meta { display: grid; gap: 2px; font-size: 13px; padding: 10px 12px; background: var(--tile); border-radius: 10px; }
.mail-canvas { background: #F3F5F9; border-radius: 14px; padding: 16px; }
.mail-canvas .mail-head { background: var(--navy); color: var(--cyan); font: 900 18px var(--head); padding: 12px 18px; border-radius: 12px 12px 0 0; }
.mail-canvas .mail-body { background: #fff; padding: 18px; border-radius: 0 0 12px 12px; }
.mail-canvas .mail-foot { font-size: 11px; color: var(--gray); text-align: center; margin-top: 10px; }
textarea.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 22px; border: 2px dashed var(--mist); border-radius: 14px; background: var(--tile); color: var(--blue); cursor: pointer; font: inherit; }
.drop:hover { border-color: var(--navy); }
.drop .icon { width: 26px; height: 26px; }
.img-pick { display: flex; gap: 12px; align-items: flex-start; }
.img-pick img { width: 220px; max-width: 60%; border-radius: 12px; border: 1px solid var(--line); }
.link-row { padding: 10px; border: 1px solid var(--line); border-radius: 12px; }

/* ---------- Kommunikationsfläche: Slideshow ---------- */
.promo { position: relative; border-radius: 16px; overflow: hidden; background: var(--navy); box-shadow: 0 12px 32px rgba(9,15,41,.22); color: #fff; }
.promo-track { position: relative; height: 100%; }
.promo-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
.promo-slide.on { position: relative; opacity: 1; visibility: visible; }
.promo-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.promo-slide.has-img .promo-body { background: linear-gradient(180deg, rgba(9,15,41,0) 0%, rgba(9,15,41,.55) 38%, rgba(9,15,41,.92) 100%); }
.promo-slide.no-img { background: radial-gradient(120% 140% at 100% 0%, rgba(108,253,255,.22), transparent 55%), var(--navy); }
.promo-body { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; height: 100%; padding: 14px 16px 16px; box-sizing: border-box; }
.promo-from { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); font-weight: bold; }
.promo-title { font: 900 16px/1.2 var(--head); }
.promo-text { font-size: 12.5px; line-height: 1.35; opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.promo-ev { font-size: 12px; color: var(--cyan); display: flex; gap: 6px; align-items: center; }
.promo-ev .icon { width: 14px; height: 14px; }
.promo-cta { margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.promo-cta .btn { text-decoration: none; }
.promo-code { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.promo-code > span { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border: 1.5px dashed var(--cyan); border-radius: 10px; font-family: ui-monospace, Menlo, monospace; letter-spacing: .06em; }
.promo-code .icon { width: 14px; height: 14px; }
.promo-nav { position: absolute; top: 12px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(4px); z-index: 2; }
.promo-nav:hover { background: rgba(255,255,255,.32); }
.promo-nav .icon { width: 16px; height: 16px; }
.promo-nav.prev { right: 76px; } .promo-nav.next { right: 44px; }
.promo-x { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(9,15,41,.45); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.promo-x .icon { width: 14px; height: 14px; }
.promo:not(:has(.promo-x)) .promo-nav.prev { right: 44px; }
.promo:not(:has(.promo-x)) .promo-nav.next { right: 12px; }
.promo-dots { position: absolute; left: 16px; top: 14px; display: flex; gap: 5px; z-index: 2; }
.promo-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }
.promo-dots button.on { background: var(--cyan); width: 18px; border-radius: 4px; }
.promo-dots + .promo-x, .promo-slide .promo-from { }
.promo-map .promo-slide, .promo-map { min-height: 184px; }
.promo-map .promo-slide.on { height: 184px; }
.promo-map .promo-body { padding: 44px 14px 14px; gap: 3px; }
.promo-map .promo-title { font-size: 15px; }
.promo-map .promo-text { font-size: 12px; -webkit-line-clamp: 2; }
.promo-map .promo-slide.has-img .promo-body { background: linear-gradient(180deg, rgba(9,15,41,0) 0%, rgba(9,15,41,.15) 20%, rgba(9,15,41,.88) 62%, rgba(9,15,41,.96) 100%); }
.promo-bookings .promo-slide.on { height: 190px; }
.promo-bookings .promo-title { font-size: 19px; }
.promo-bookings .promo-text { font-size: 13.5px; max-width: 640px; }
.promo-bookings .promo-slide.has-img .promo-body { background: linear-gradient(90deg, rgba(9,15,41,.94) 0%, rgba(9,15,41,.75) 45%, rgba(9,15,41,0) 85%); padding: 18px 22px; justify-content: center; max-width: 100%; }
.promo-map-slot { position: absolute; left: 20px; bottom: 20px; width: 450px; max-width: calc(100% - 40px); z-index: 500; transition: bottom .25s ease; }
.promo-bookings-slot { margin: 16px 0 6px; }
.promo-pill { display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border: 0; border-radius: var(--pill); background: var(--navy); color: #fff; box-shadow: 0 8px 24px rgba(9,15,41,.25); cursor: pointer; font: inherit; font-size: 13px; }
.promo-pill b { background: var(--cyan); color: var(--navy); border-radius: var(--pill); padding: 0 7px; font-size: 11px; }
.promo-pill .icon { width: 14px; height: 14px; color: var(--cyan); }
@media (max-width: 760px) { .promo-map-slot { left: 12px; right: 12px; width: auto; bottom: 12px; } .promo-map .promo-slide.on { height: 150px; } }

/* ---------- Benachrichtigungscenter: Inhalte verwalten ---------- */
.promo-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.promo-admin { display: grid; gap: 12px; }
.pa-thumb { height: 150px; border-radius: 12px; background-size: cover; background-position: center; background-color: var(--navy); }
.pa-thumb.empty { display: flex; align-items: flex-end; padding: 14px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(108,253,255,.22), transparent 55%), var(--navy); }
.promo-ed { grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.promo-ed .promo-map { width: 450px; max-width: 100%; }
@media (max-width: 900px) { .promo-ed { grid-template-columns: 1fr; } }

/* Microsoft-Anmeldung */
.sso-box { display: grid; gap: 10px; margin-top: 14px; max-width: 420px; }
.sso-or { display: flex; align-items: center; gap: 10px; font-size: 12px; opacity: .7; }
.sso-or::before, .sso-or::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35; }
.ms-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #5E5E5E; border: 1px solid #8C8C8C; font-weight: 600; }
.ms-btn:hover { background: #F3F3F3; }
.ms-btn.pulse { box-shadow: 0 0 0 3px rgba(0,255,255,.55); }
.ms-logo { width: 18px; height: 18px; flex: none; vertical-align: -3px; }

/* Outlook-Kalender */
.ol-logo { width: 22px; height: 22px; flex: none; }
.cal-list { display: grid; gap: 10px; }
.cal-ev { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.cal-ev > .grow { display: grid; gap: 3px; }
.cal-day { width: 46px; flex: none; text-align: center; border-radius: 10px; background: var(--navy, #0B1A2E); color: #fff; padding: 6px 0; line-height: 1.1; }
.cal-day b { display: block; font-size: 18px; }
.cal-day span { font-size: 11px; color: var(--cyan, #00FFFF); text-transform: uppercase; }
.cal-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .cal-ev { flex-wrap: wrap; } .cal-act { width: 100%; justify-content: flex-start; } }

/* Mobility Policy: Gruppen je Sparte */
.grp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.grp-card { display: grid; gap: 8px; transition: box-shadow .15s, outline-color .15s; outline: 2px solid transparent; }
.grp-card.editing { outline-color: var(--cyan); }
.grp-card.drop-on, .grp-none.drop-on { outline: 2px dashed var(--cyan-strong); background: var(--cyan-soft); }
.grp-modes { display: flex; gap: 4px; flex-wrap: wrap; }
.grp-modes .mode-ic { width: 26px; height: 26px; }
.grp-flags { display: grid; gap: 4px; padding: 8px 10px; border-radius: 10px; background: var(--tile); }
.grp-new { display: grid; place-items: center; gap: 6px; min-height: 160px; border: 2px dashed var(--mist); background: transparent; cursor: pointer; color: var(--blue); font: inherit; box-shadow: none; }
.grp-new:hover { border-color: var(--cyan-strong); background: var(--cyan-soft); }
.grp-people { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.grp-list { display: grid; gap: 4px; max-height: 340px; overflow-y: auto; }
.grp-person { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.grp-person[draggable="true"] { cursor: grab; }
.grp-person.dragging { opacity: .5; }
.grp-person .one-to { width: 150px; flex: none; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; flex: none; }
@media (max-width: 640px) { .grp-grid { grid-template-columns: 1fr; } .grp-person { flex-wrap: wrap; } .grp-person .one-to { width: 100%; } }
.grp-tools { display: flex; gap: 2px; flex: none; }
.icon-btn { width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--gray); }
.icon-btn:hover { background: var(--tile); color: var(--blue); }
.icon-btn .icon { width: 16px; height: 16px; }
.grp-card.open { grid-column: 1 / -1; }
.grp-card.open .grp-list { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.grp-person .grow { overflow: hidden; }
.grp-person .tiny { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Nachhaltigkeitscockpit */
.dash-tabs .beta-pill { font-size: 10px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }
.sx-head { margin-bottom: 10px; flex-wrap: wrap; gap: 10px; }
.sx-head select.sx-period { width: auto; min-width: 190px; }
.sx-segs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sx-pay { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.sx-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.sx-list li { display: flex; gap: 8px; align-items: flex-start; }
.sx-list .icon { color: var(--ok); flex: none; margin-top: 2px; }
.sx-price { margin: 0 0 14px; } .sx-price b { font-family: var(--head); font-size: 26px; color: var(--blue); }
.sx-pay-preview { position: relative; background: var(--tile); border-radius: var(--r-sm); padding: 20px; overflow: hidden; min-height: 220px; }
.sx-ghost { display: flex; align-items: flex-end; gap: 10px; height: 110px; filter: blur(3px); opacity: .5; }
.sx-ghost i { flex: 1; background: var(--blue); border-radius: 4px 4px 0 0; }
.sx-ghost-bars { display: grid; gap: 8px; margin-top: 18px; filter: blur(3px); opacity: .5; }
.sx-ghost-bars i { display: block; height: 10px; border-radius: 4px; background: var(--violet); }
.sx-lock { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; text-align: center; font-weight: bold; color: var(--blue); padding: 16px; }
.sx-lock .icon { width: 28px; height: 28px; }
.sx-stack { display: flex; gap: 2px; height: 22px; border-radius: 4px; overflow: hidden; margin: 6px 0 10px; }
.sx-stack i { display: block; min-width: 3px; }
.sx-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.sx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sx-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.sx-legend i.lg-own { background: var(--ink); border-radius: 50%; } .sx-legend i.lg-med { width: 2px; height: 14px; background: var(--blue); border-radius: 0; } .sx-legend i.lg-band { background: var(--cyan-soft); border: 1px solid #9BDDE0; width: 18px; }
.sx-scope { margin-top: 12px; } .sx-scope tr.sx-sum td { border-top: 2px solid var(--blue); }
.sx-bench { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 22px; }
.sx-bm { display: grid; gap: 6px; }
.sx-range { position: relative; height: 18px; background: var(--tile); border-radius: 4px; }
.sx-range .band { position: absolute; top: 3px; bottom: 3px; background: var(--cyan-soft); border: 1px solid #9BDDE0; border-radius: 3px; }
.sx-range .med { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--blue); }
.sx-range .own { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px #fff; }
.sx-dots { display: inline-flex; gap: 4px; white-space: nowrap; }
.t .sx-dot, .sx-dot { display: inline-block; flex: none; width: 10px !important; height: 10px !important; padding: 0 !important; border-radius: 50%; background: #B8C2CC; }
.sx-dot.top { background: var(--ok); } .sx-dot.low { background: var(--warn); }
.sx-dl { display: grid; gap: 4px; }
@media (max-width: 860px) { .sx-pay { grid-template-columns: 1fr; } .sx-pay-preview { min-height: 160px; } }

/* Firmen-Voucher (Mobility Policy → Voucher) */
.vp-card.editing { border-color: var(--cyan); }
.vp-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.vp-facts .pill { display: inline-flex; align-items: center; gap: 4px; }
.vp-stats { gap: 10px; } .vp-stats b { font-size: 16px; color: var(--blue); }
.vp-codes { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.vp-code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: var(--tile); padding: 2px 6px; border-radius: 6px; }
.vp-code-tools textarea.input { min-height: 34px; resize: vertical; }

/* Einklappbare Karten (z. B. Microsoft-Anmeldung, Outlook-Kalender unter User & Abteilungen) */
.card.collapsible > .card-head { cursor: pointer; user-select: none; }
.card.collapsible > .card-head::after { content: '▾'; margin-left: 10px; color: var(--gray); font-size: 14px; transition: transform .15s; }
.card.collapsible.min > .card-head::after { transform: rotate(-90deg); }
.card.collapsible.min > :not(.card-head) { display: none !important; }
.card.collapsible.min > .card-head { margin-bottom: 0; }
.int-group .card { margin-bottom: 10px !important; }
