/* Sendungsportal – Blau-Weiß-Design. Systemschriften (keine externen Fonts, DSGVO-freundlich). */
:root {
  --navy: #011f49;
  --navy-2: #0b2f6b;
  --blue: #1f6fe0;
  --blue-d: #1a5bbd;
  --blue-l: #e7f2ff;
  --blue-ll: #f3f8ff;
  --sky: #449dff;
  --spot: #7cbaff;
  --spot-d: #2b7ff0;
  --text: #0b1830;
  --muted: #5a6a87;
  --line: #e2e8f3;
  --bg: #f6f8fc;
  --white: #ffffff;
  --ok: #0f8a5f;
  --ok-l: #e6f6ef;
  --warn: #a76100;
  --warn-l: #fff4e0;
  --bad: #c22a3a;
  --bad-l: #fdecee;
  --radius: 14px;
  --radius-s: 9px;
  --shadow: 0 1px 2px rgba(10, 27, 61, 0.05), 0 6px 24px rgba(10, 27, 61, 0.06);
  --shadow-l: 0 20px 60px rgba(10, 27, 61, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--text); background: var(--white); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 750; }
h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 720; }
h3 { font-size: 18px; font-weight: 680; }
h4 { font-size: 15px; font-weight: 650; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* ---------- Buttons & Formulare ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 18px; font: 600 14.5px var(--font); cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; text-decoration: none !important; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(29, 79, 216, .28); }
.btn-primary:hover { background: var(--blue-d); }
.btn-ghost { background: var(--white); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9d4e8; background: var(--blue-ll); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-white { background: #fff; color: var(--navy); }
.btn-danger { background: var(--white); color: var(--bad); border-color: #f1c4ca; }
.btn-danger:hover { background: var(--bad-l); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--blue); cursor: pointer; font: inherit; padding: 0; }

label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: #23314f; }
.field { margin-bottom: 16px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=tel], input[type=url], input[type=datetime-local], select, textarea {
  width: 100%; border: 1px solid #d5ddeb; border-radius: 10px; padding: 10px 12px; font: 15px var(--font); color: var(--text); background: #fff; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 79, 216, .14); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; margin-bottom: 10px; cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 550; cursor: pointer; background: #fff; user-select: none; }
.chip input { display: none; }
.chip:has(input:checked) { background: var(--blue-l); border-color: var(--blue); color: var(--blue-d); }
.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; }
@media (max-width: 820px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 16px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 650; background: var(--blue-l); color: var(--blue-d); white-space: nowrap; }
.badge.ok { background: var(--ok-l); color: var(--ok); }
.badge.warn { background: var(--warn-l); color: var(--warn); }
.badge.bad { background: var(--bad-l); color: var(--bad); }
.badge.grey { background: #eef1f6; color: #4c5a75; }
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Öffentliche Seiten ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 780; font-size: 19px; color: var(--navy); letter-spacing: -0.02em; text-decoration: none !important; }
.logo-img { height: 40px; width: auto; display: block; flex: none; }
.topbar .logo-img { height: 52px; }
.topbar .container { height: 76px; }
@media (max-width: 900px) { .nav { top: 76px; } }
@media (max-width: 560px) { .topbar .container { gap: 10px; } .topbar .logo-img { height: 40px; } .topbar .logo { font-size: 17px; gap: 8px; } .topbar .actions .btn { padding: 8px 12px; font-size: 13.5px; } }
.footer .logo-img { height: 48px; }
.auth-logo { display: block; height: 72px; width: auto; margin: 0 auto 18px; }
.wm { font-weight: 820; letter-spacing: -0.035em; color: var(--navy); }
.footer .wm { color: #fff; }
.nav { display: flex; gap: 22px; flex: 1; }
.nav a { color: #33415e; font-weight: 550; font-size: 14.5px; }
.nav a:hover { color: var(--blue); text-decoration: none; }
.topbar .actions { display: flex; gap: 10px; }
.iconbtn.burger { display: none; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 20px; border-bottom: 1px solid var(--line); gap: 14px; }
  .nav.open { display: flex; }
  .iconbtn.burger { display: grid; margin-left: auto; }
  .topbar .actions .btn-ghost { display: none; }
}

.hero { position: relative; overflow: hidden; background: radial-gradient(900px 480px at 88% -10%, rgba(68,157,255,.55) 0%, transparent 60%), linear-gradient(165deg, var(--navy) 0%, #03295f 60%, #0b3a85 100%); color: #fff; padding: 84px 0 110px; }
.hero .routes { position: absolute; inset: 0; opacity: .22; pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 18px; color: #c9d8ff; max-width: 540px; }
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 650; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #dce6ff; margin-bottom: 18px; }
.hero .cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero .trust { display: flex; gap: 22px; margin-top: 34px; color: #b8c9f5; font-size: 13.5px; flex-wrap: wrap; }
.hero .trust span { display: inline-flex; gap: 7px; align-items: center; }
.hero-card { background: #fff; color: var(--text); border-radius: 18px; box-shadow: var(--shadow-l); padding: 22px; transform: rotate(-1deg); }
.hero-card .mini { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 12px; }
@media (max-width: 900px) { .hero { padding: 56px 0 72px; } .hero .container { grid-template-columns: 1fr; } .hero-card { transform: none; } }

.section { padding: 84px 0; }
.section.alt { background: var(--bg); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .kicker { color: var(--blue); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-l); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); margin: 0; }
.steps { counter-reset: s; }
.step { position: relative; padding: 26px 26px 26px 78px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 24px; top: 24px; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; }
.step p { margin: 0; color: var(--muted); }
.cta-band { background: radial-gradient(420px 220px at 95% 10%, rgba(125,180,255,.35), transparent 70%), linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%); color: #fff; border-radius: 22px; padding: 46px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #d6e2ff; }

.footer { background: var(--navy); color: #a9b8d8; padding: 56px 0 28px; font-size: 14px; }
.footer a { color: #d7e1f7; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer .logo { color: #fff; }
@media (max-width: 820px) { .footer .cols { grid-template-columns: 1fr 1fr; } }

/* Auth & Formularseiten */
.auth { min-height: calc(100vh - 76px); background: linear-gradient(180deg, var(--blue-ll) 0%, #fff 70%); padding: 56px 0; }
.auth-card { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 34px; }
.auth-card.wide { max-width: 820px; }
.stepper { display: flex; gap: 8px; margin-bottom: 28px; }
.stepper div { flex: 1; height: 5px; border-radius: 5px; background: var(--line); }
.stepper div.on { background: var(--blue); }
.stepper-labels { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: -18px; margin-bottom: 24px; }
.legal { max-width: 860px; margin: 0 auto; padding: 56px 20px 80px; }
.legal h1 { font-size: 34px; }
.legal h2 { font-size: 21px; margin-top: 36px; }
.legal h3 { font-size: 16.5px; margin-top: 22px; }
.legal p, .legal li { color: #2a3856; }
.legal .note { background: var(--warn-l); border: 1px solid #f3d9a8; color: #6b4300; border-radius: 12px; padding: 14px 16px; font-size: 14px; margin-bottom: 28px; }
.legal .ph { background: #fff6cc; padding: 0 3px; border-radius: 3px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- App-Bereich ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; background: var(--bg); }
.side { background: #fff; border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.side .logo { padding: 4px 10px 18px; }
.side .group { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: #8a97b0; font-weight: 700; padding: 14px 12px 6px; }
.side a.nl { display: flex; gap: 11px; align-items: center; padding: 9px 12px; border-radius: 10px; color: #34425f; font-weight: 560; font-size: 14.5px; text-decoration: none; }
.side a.nl:hover { background: var(--blue-ll); color: var(--blue-d); }
.side a.nl.active { background: var(--blue-l); color: var(--blue-d); }
.side a.nl .count { margin-left: auto; background: var(--blue); color: #fff; font-size: 11.5px; border-radius: 999px; padding: 1px 7px; font-weight: 700; }
.side .me { margin-top: auto; border-top: 1px solid var(--line); padding: 14px 10px 0; font-size: 13px; }
.main { min-width: 0; }
.appbar { height: 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 28px; position: sticky; top: 0; z-index: 20; }
.appbar h1 { font-size: 18px; margin: 0; font-weight: 700; }
.appbar .spacer { flex: 1; }
.iconbtn { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: #34425f; }
.iconbtn:hover { background: var(--blue-ll); }
.iconbtn .dot { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.content { padding: 28px; max-width: 1240px; }
.iconbtn.menu-btn { display: none; }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 50; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-l); }
  .side.open { transform: none; }
  .iconbtn.menu-btn { display: grid; }
  .content { padding: 18px; }
  .appbar { padding: 0 16px; }
}

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(10,27,61,.03); }
.card-h { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-h h3 { margin: 0; font-size: 16px; }
.card-b { padding: 22px; }
.card-b.tight { padding: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.kpi .v { font-size: 28px; font-weight: 750; letter-spacing: -0.02em; color: var(--navy); }
.kpi .l { color: var(--muted); font-size: 13px; font-weight: 550; }
.kpi.accent { background: radial-gradient(160px 120px at 92% 0%, rgba(125,180,255,.4), transparent 70%), linear-gradient(140deg, var(--blue) 0%, var(--navy) 100%); border: 0; }
.kpi.accent .v, .kpi.accent .l { color: #fff; }
@media (max-width: 960px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #7a88a3; font-weight: 700; padding: 12px 16px; background: var(--blue-ll); border-bottom: 1px solid var(--line); }
table.t td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--blue-ll); }
.table-wrap { overflow-x: auto; }

/* Sendungskarten */
.ship { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.ship:hover { background: var(--blue-ll); }
.ship:last-child { border-bottom: 0; }
.route { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; gap: 10px; }
.route .city { font-weight: 700; font-size: 16px; }
.route .sub { color: var(--muted); font-size: 13px; }
.route .arrow { height: 2px; background: linear-gradient(90deg, var(--blue) 0%, var(--spot) 100%); position: relative; border-radius: 2px; }
.route .arrow::after { content: ""; position: absolute; right: -2px; top: -4px; border-left: 7px solid var(--spot); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.ship .meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; color: #4b5a78; font-size: 13px; }
.ship .meta span { display: inline-flex; gap: 6px; align-items: center; }
.price { text-align: right; }
.price .amt { font-size: 22px; font-weight: 760; color: var(--navy); letter-spacing: -0.02em; }
.price .lbl { font-size: 12px; color: var(--muted); }
@media (max-width: 700px) { .ship { grid-template-columns: 1fr; } .price { text-align: left; } }

.filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: #fbfcff; border-radius: var(--radius) var(--radius) 0 0; }
.filters .field { margin: 0; }
.filters label { font-size: 12px; color: var(--muted); }
@media (max-width: 1100px) { .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .filters { grid-template-columns: 1fr 1fr; } }

.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; }
@media (max-width: 1060px) { .detail-grid { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 560; }
.addr { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fbfcff; }
.addr .lab { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 26px; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-l); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.locked { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; background: var(--blue-ll); border: 1px dashed #c7d5f2; border-radius: 10px; padding: 10px 12px; margin-top: 8px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on { color: var(--blue-d); border-color: var(--blue); text-decoration: none; }

/* Nachrichten */
.chat { display: grid; grid-template-columns: 300px 1fr; min-height: 520px; }
.chat .list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat .conv { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none !important; }
.chat .conv:hover, .chat .conv.on { background: var(--blue-ll); }
.chat .conv .p { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat .pane { display: flex; flex-direction: column; }
.chat .msgs { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 520px; background: #fbfcff; }
.bubble { max-width: 72%; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.bubble.me { align-self: flex-end; background: var(--blue); color: #fff; border-color: var(--blue); }
.bubble .at { font-size: 11px; opacity: .7; margin-top: 4px; }
.chat form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.chat form textarea { min-height: 44px; height: 44px; }
@media (max-width: 760px) { .chat { grid-template-columns: 1fr; } .chat .list { max-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); } }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .ico { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 14px; background: var(--blue-l); color: var(--blue); display: grid; place-items: center; }
.empty .ico svg { width: 26px; height: 26px; }
.banner { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; border: 1px solid #c9d8fb; background: var(--blue-ll); margin-bottom: 20px; font-size: 14px; }
.banner.warn { background: var(--warn-l); border-color: #f3d9a8; color: #5d3c00; }
.banner.ok { background: var(--ok-l); border-color: #bfe6d4; color: #0b5a3f; }
.banner svg { margin-top: 1px; }

/* Overlays */
.modal-bg { position: fixed; inset: 0; background: rgba(10,27,61,.45); z-index: 80; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 520px; box-shadow: var(--shadow-l); max-height: 90vh; overflow-y: auto; }
.modal .card-b { padding: 26px; }
.drop { position: absolute; right: 0; top: 48px; width: 360px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-l); z-index: 40; overflow: hidden; }
.drop .n { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 13.5px; text-decoration: none !important; }
.drop .n.unread { background: var(--blue-ll); }
.drop .n small { display: block; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow-l); z-index: 100; font-weight: 550; font-size: 14px; animation: up .2s; max-width: calc(100vw - 32px); }
.toast.err { background: var(--bad); }
.cookie { position: fixed; left: 20px; right: 20px; bottom: 20px; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-l); padding: 20px; z-index: 90; font-size: 14px; }
.demo-bar { background: var(--navy); color: #cfe0ff; font-size: 13px; text-align: center; padding: 8px 12px; }
.demo-bar b { color: #fff; }
.demo-bar button { margin-left: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translate(-50%, 10px); } }
.loading { padding: 60px; text-align: center; color: var(--muted); }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

/* Vorschlagsliste für PLZ / Ort */
.ac-wrap { position: relative; }
.ac { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-l); z-index: 60; max-height: 280px; overflow-y: auto; min-width: 220px; }
.ac button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; font: 14px var(--font); color: var(--text); cursor: pointer; }
.ac button b { color: var(--blue-d); font-weight: 650; margin-right: 6px; font-variant-numeric: tabular-nums; }
.ac button:hover, .ac button.on { background: var(--blue-ll); }

/* Datum: Textfeld mit Kalender-Knopf */
.dt { position: relative; }
.dt input[data-date] { padding-right: 42px; }
.dt-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.dt-btn:hover { background: var(--blue-ll); color: var(--blue); }
.dt-native { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
input.invalid { border-color: var(--bad) !important; box-shadow: 0 0 0 4px rgba(194, 42, 58, .12) !important; }

/* WhatsApp */
.btn-wa { background: #fff; color: #128c4a; border-color: #bfe6cf; }
.btn-wa:hover { background: #effaf3; border-color: #8fd3ab; }
.km-hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }

.wm-pre { color: var(--blue); }
.footer .wm-pre { color: var(--spot); }

/* ---------- CNR_Fracht: Europa-Motiv und Spot-Akzente ---------- */
.hero { padding: 72px 0 96px; }
.hero-visual { position: relative; }
.eu-map { width: 100%; height: auto; display: block; }
.eu-map .dot { fill: #8fb3ff; fill-opacity: .22; }
.eu-map .arc { fill: none; stroke: var(--spot); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 3 6; opacity: .75; animation: dash 2.4s linear infinite; }
.eu-map .city { fill: var(--spot); }
.eu-map .ping { fill: none; stroke: var(--spot); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ping 2.6s ease-out infinite; }
.eu-map .lbl { fill: #cfe0ff; font: 600 11px var(--font); }
.hero-visual .hero-card { position: absolute; right: -12px; bottom: -64px; width: min(350px, 88%); transform: rotate(-1.2deg); }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes dash { to { stroke-dashoffset: -18; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(47,111,224,.5); } 50% { box-shadow: 0 0 0 5px rgba(47,111,224,0); } }
.badge.live { background: #e7efff; color: var(--blue-d); }
.badge.live::before { background: var(--spot-d); animation: pulse 2s infinite; }
.hero .eyebrow .spotdot { width: 8px; height: 8px; border-radius: 50%; background: var(--spot); animation: pulse 2s infinite; }
.hero h1 .hl { color: var(--spot); }
.section-head .kicker { color: var(--blue); }
.feature .ico { background: var(--blue-l); color: var(--navy); }
@media (max-width: 900px) { .hero-visual .hero-card { position: relative; right: auto; bottom: auto; margin-top: -40px; width: 100%; transform: none; } }
@media (prefers-reduced-motion: reduce) { .eu-map .arc, .eu-map .ping, .badge.live::before, .hero .eyebrow .spotdot { animation: none; } }

/* ---------- Bewertungen ---------- */
.score { display: inline-flex; align-items: baseline; gap: 4px; font-size: 13.5px; color: var(--text); white-space: nowrap; }
.score b { font-weight: 750; }
.score.good b { color: var(--ok); }
.score.mid b { color: var(--warn); }
.score.low b { color: var(--bad); }
.score.none { color: #6b7894; font-size: 13px; }
.score.sm { font-size: 12.5px; }
.score-big { font-size: 34px; font-weight: 750; color: var(--navy); line-height: 1.1; margin-bottom: 14px; }
.score-big small { font-size: 14px; font-weight: 550; color: #6b7894; margin-left: 6px; }
.score-bars { display: grid; gap: 8px; }
.score-bars .sb { display: grid; grid-template-columns: 64px 1fr 28px; align-items: center; gap: 10px; font-size: 13px; }
.score-bars .sb b { text-align: right; }
.score-bars .track { height: 8px; border-radius: 99px; background: #eef1f6; overflow: hidden; }
.score-bars .track i { display: block; height: 100%; border-radius: 99px; }
.score-bars .track i.ok { background: var(--ok); }
.score-bars .track i.grey { background: #9aa6bd; }
.score-bars .track i.bad { background: var(--bad); }
.rating-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.rating-item:first-child { padding-top: 0; }
.rating-item:last-child { border-bottom: 0; padding-bottom: 0; }
.rating-review { padding: 4px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.rating-review:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.rating-review .rating-item { border: 0; padding: 0; }
.rate-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rate-choice .rc { display: block; cursor: pointer; }
.rate-choice .rc input { position: absolute; opacity: 0; pointer-events: none; }
.rate-choice .rc span { display: block; text-align: center; padding: 10px 6px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 650; font-size: 13.5px; background: #fff; transition: border-color .15s, background .15s; }
.rate-choice .rc input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.rate-choice .rc.ok input:checked + span { border-color: var(--ok); background: var(--ok-l); color: var(--ok); }
.rate-choice .rc.grey input:checked + span { border-color: #6b7894; background: #eef1f6; color: #33415c; }
.rate-choice .rc.bad input:checked + span { border-color: var(--bad); background: var(--bad-l); color: var(--bad); }
.plain-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: #33415c; font-size: 13.5px; }

/* ---------- Schnellzugriff (Dashboard-Kacheln) ---------- */
.hub { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hub-tile { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--text); text-decoration: none !important; box-shadow: 0 1px 2px rgba(1,31,73,.04); transition: transform .15s, box-shadow .15s, border-color .15s; min-width: 0; }
.hub-tile:hover { transform: translateY(-2px); border-color: #c4d3f2; box-shadow: 0 10px 24px -12px rgba(1,31,73,.28); }
.hub-tile:focus-visible { outline: 3px solid var(--spot); outline-offset: 2px; }
.hub-ico { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: #e9f0ff; color: var(--blue-d); }
.hub-ico .i { width: 23px; height: 23px; }
.hub-tile.primary .hub-ico { background: var(--navy); color: #fff; }
.hub-txt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.hub-txt strong { font-size: 15.5px; line-height: 1.25; font-weight: 700; color: var(--navy); }
.hub-txt small { font-size: 12.5px; color: #5d6b86; line-height: 1.35; }
.hub-go { flex: none; color: #9aa9c6; transition: color .15s, transform .15s; }
.hub-tile:hover .hub-go { color: var(--blue); transform: translateX(2px); }
.hub-n { flex: none; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 99px; background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 700; display: grid; place-items: center; }
.hub.in-app { margin-bottom: 22px; }
.hero:has(+ .hub-band) { padding-bottom: 150px; }
.hub-band { position: relative; z-index: 2; margin-top: -48px; padding-bottom: 8px; }
.hub-band .container { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 48px -24px rgba(1,31,73,.35); padding: 22px 22px 22px; }
.hub-head { display: flex; align-items: baseline; gap: 14px; margin: 2px 4px 16px; }
.hub-head h2 { font-size: 20px; margin: 0; }
.hub-head .kicker { margin: 0; }
.hub-band .hub-tile { background: #f7f9fd; border-color: #e6ecf6; box-shadow: none; }
.hub-band .hub-tile:hover { background: #fff; }
.support-card .hub-ico { margin-bottom: 12px; }
.support-card h3 { margin: 0 0 4px; }
.support-card .btn { margin-top: 4px; }
@media (max-width: 1100px) { .hub { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .hub { gap: 10px; }
  .hub-tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .hub-txt small { display: none; }
  .hub-go { display: none; }
  .hub-n { position: absolute; top: 10px; right: 10px; }
  .hub-band { margin-top: -36px; }
  .hero:has(+ .hub-band) { padding-bottom: 80px; }
  .hub-txt strong { white-space: normal; }
  .hub-band .container { width: calc(100% - 32px); padding: 16px; border-radius: 18px; }
}

/* ---------- Benachrichtigungsgebiete ---------- */
.area-row { display: grid; grid-template-columns: 1.1fr 1fr 1.4fr 0.9fr auto; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fafbfe; }
.area-row .field { margin: 0; }
.area-row .iconbtn { margin-bottom: 2px; }
@media (max-width: 700px) { .area-row { grid-template-columns: 1fr 1fr; } .area-row .iconbtn { justify-self: end; grid-column: 2; } }
.req-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.req-list li { display: flex; gap: 8px; align-items: center; }

/* Schnellerfassung */
.qc { border: 1.5px solid var(--blue); }
.qc textarea { width: 100%; min-height: 130px; }
.qc-result { margin-top: 12px; display: grid; gap: 8px; }
.qc-ok, .qc-warn { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.qc-ok { background: #ecf3ff; color: #1e3a8a; }
.qc-warn { background: #fff7e6; color: #7a4b00; }
.qc-warn ul { margin: 4px 0 0; padding-left: 18px; }
.qc-ok svg, .qc-warn svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.field.autofilled input, .field.autofilled select, .field.autofilled textarea, input.autofilled { background: #eef4ff; border-color: #7aa2f7; }
.field.autofilled > label::after { content: " \2713"; color: var(--blue); font-weight: 700; }

/* Sprachauswahl */
.flag { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex: none; display: block; }
.langbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 22px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.langbar-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: #dce6ff; letter-spacing: .01em; }
.langbar-label .flag { display: none; }
.langbar-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 7px 5px; border-radius: 10px; border: 1.5px solid transparent; background: transparent; color: #c9d8ff; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .04em; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.lang-btn .flag { width: 32px; height: 21px; }
.lang-btn:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.lang-btn.on { background: #fff; color: var(--navy); border-color: #fff; }
.lang-btn:focus-visible, .langpick-btn:focus-visible { outline: 2px solid var(--spot); outline-offset: 2px; }
@media (max-width: 560px) { .langbar { padding: 8px; gap: 8px; } .langbar-flags { gap: 2px; } .lang-btn { padding: 5px 4px 4px; } .lang-btn .flag { width: 28px; height: 19px; } }

.langpick { position: relative; }
.langpick-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.langpick-btn .chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.langpick-btn:hover { border-color: #c7d3ea; }
.langpick-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-l, 0 12px 32px rgba(1,31,73,.16)); padding: 6px; min-width: 190px; display: grid; gap: 2px; }
.langpick-menu[hidden] { display: none; }
.langpick-menu button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: none; border-radius: 8px; font: inherit; font-size: 14px; color: var(--text); cursor: pointer; text-align: left; }
.langpick-menu button:hover { background: var(--blue-ll); }
.langpick-menu button.on { background: var(--blue-l); font-weight: 700; }
@media (max-width: 560px) { .langpick-btn span { display: none; } .langpick-btn { padding: 0 8px; gap: 5px; } }
.legal-lang .flag { margin-top: 2px; }
.nav .nav-mobile { display: none; }
@media (max-width: 900px) { .nav .nav-mobile { display: block; font-weight: 650; color: var(--blue); } }
@media (max-width: 460px) {
  .topbar .actions .btn { display: none; }
  .langbar-flags { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); width: 100%; gap: 2px; }
  .lang-btn { padding: 5px 0 4px; font-size: 10.5px; }
  .lang-btn .flag { width: 26px; height: 17px; }
}

/* CNR-Logo: Bildmarke „CNR“ + Schriftzug „_Fracht“ */
.logo:has(.wm-cnr) { gap: 3px; }
.wm-cnr { font-size: 1.15em; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); align-self: flex-end; line-height: 1; padding-bottom: 2px; }
.footer .wm-cnr { color: #fff; }
.auth-logo { height: 84px; }
.chip.disabled { opacity: .45; cursor: not-allowed; }
