/* JAVIS NEXUS V2 – mobile.css (nur < 768 px, geladen mit media="(max-width: 767.98px)")
   Erzeugt per tools/migrate-css.js aus frontend/css/legacy/*; ab jetzt direkt gepflegt. Tokens: tokens.css. */
/* ===== page-cockpit ===== */
@media (max-width: 767.98px) {
.page-cockpit .brand-name { display: none; }
.page-cockpit .svc-strip { gap: 6px; }
.page-cockpit .svc { padding: 3px 8px; }
.page-cockpit .svc-ms { display: none; }
.page-cockpit .map-wrap { height: 48vh; }
.page-cockpit .compass { width: 40px; height: 40px; left: 10px; top: 10px; }
.page-cockpit .compass svg { width: 30px; height: 30px; }
.page-cockpit .btn,
.page-cockpit .seg button,
.page-cockpit .fold > summary { min-height: 44px; }
.page-cockpit .speedo-read strong { font-size: 46px; }
}
@media (max-width: 767.98px) {
.page-cockpit .cockpit-tabs .soon { display: none; }
.page-cockpit .cockpit-tabs .nav-tab { font-size: 14px; }
.page-cockpit .sys-chip { display: none; }
}
@media (max-width: 767.98px) {
.page-cockpit .tr-list { max-height: 200px; }
}
@media (max-width: 767.98px) {
.page-cockpit .nav-pane#nav-pane-transit { overflow-y: visible; }
}
@media (max-width: 767.98px) {
.page-cockpit .tr-card-head { gap:6px; }
.page-cockpit .tr-card-head strong { font-size:18px; }
.page-cockpit .tr-dep { grid-template-columns:44px minmax(0,1fr) auto; }
.page-cockpit .tool,
.page-cockpit .btn,
.page-cockpit .icon-btn { min-height:44px; }
}
@media (max-width: 767.98px) {
.page-cockpit .wt-tip { left: 0; top: auto; bottom: 22px; transform: translateX(-50%); }
}
@media (max-width: 767.98px) {
.page-cockpit .net-view { padding: 12px 12px 20px; }
.page-cockpit .net-head h2 { font-size: 18px; letter-spacing: 1px; }
.page-cockpit .net-logo { width: 34px; height: 34px; }
.page-cockpit .net-stat { padding: 10px; gap: 10px; }
.page-cockpit .net-stat > svg { width: 36px; height: 36px; padding: 7px; }
.page-cockpit .net-stat strong { font-size: 28px; }
.page-cockpit .net-table-wrap { max-height: none; overflow: visible; border: none; }
.page-cockpit .net-table-wrap thead { display: none; }
.page-cockpit .net-table-wrap table,
.page-cockpit .net-table-wrap tbody,
.page-cockpit .net-table-wrap tr,
.page-cockpit .net-table-wrap td { display: block; width: 100%; }
.page-cockpit .net-table-wrap tbody tr { margin-bottom: 8px; padding: 6px 4px; border: 1px solid var(--nb-line); border-radius: 10px; min-height: 44px; }
.page-cockpit .net-table-wrap td { display: flex; justify-content: space-between; gap: 10px; border: 0; padding: 4px 10px; text-align: right; }
.page-cockpit .net-table-wrap td::before { content: attr(data-label); color: var(--nb-muted); text-align: left; flex: none; }
.page-cockpit .net-table-wrap td.n { font-weight: 600; }
.page-cockpit .net-rates strong { font-size: 18px; }
.page-cockpit .net-map-frame { height: 56vh; }
.page-cockpit .net-layers { padding: 6px 8px; }
.page-cockpit .net-layers label { min-height: 44px; }
.page-cockpit .net-legend-box { display: none; }
}
@media (max-width: 767.98px) {
.page-cockpit .net-collectors .svc { flex: 1 1 140px; }
.page-cockpit .net-modal { padding: 8px; }
.page-cockpit .net-flow-wrap { overflow: visible; border: none; }
.page-cockpit .net-flow-wrap thead { display: none; }
.page-cockpit .net-flow-wrap table,
.page-cockpit .net-flow-wrap tbody,
.page-cockpit .net-flow-wrap tr,
.page-cockpit .net-flow-wrap td { display: block; width: 100%; }
.page-cockpit .net-flow-wrap tbody tr { margin-bottom: 8px; padding: 6px 4px; border: 1px solid var(--nb-line); border-radius: 10px; min-height: 44px; }
.page-cockpit .net-flow-wrap td { display: flex; justify-content: space-between; gap: 10px; border: 0; padding: 4px 10px; text-align: right; }
.page-cockpit .net-flow-wrap td::before { content: attr(data-label); color: var(--nb-muted); text-align: left; flex: none; }
.page-cockpit .net-maptools .net-check { min-height: 44px; }
}
@media (max-width: 767.98px) {
.page-cockpit .net-view { padding:12px 12px 24px; }
.page-cockpit .net-view .net-head h2 { font-size:clamp(19px,5vw,24px); }
.page-cockpit .net-view .net-stat strong { font-size:clamp(23px,7vw,34px); }
.page-cockpit .net-view .net-iconbtn,
.page-cockpit .net-view .net-seg button,
.page-cockpit .net-view .net-tabs [role="tab"] { min-height:44px; }
}
/* ===== page-dashboard ===== */
@media (max-width: 767.98px) {
.page-dashboard .nx-kpis { gap: 8px; }
.page-dashboard .nx-kpi small { font-size: 11px; }
.page-dashboard .trip { grid-template-columns: 64px minmax(0, 1fr); }
.page-dashboard .trip .dist { grid-column: 2; text-align: left; }
.page-dashboard .trip svg.thumb { width: 64px; height: 50px; }
}
@media (max-width: 767.98px) {
.page-dashboard .nx-content { padding-left:12px; padding-right:12px; }
.page-dashboard .nx-head { padding-left:12px; padding-right:12px; }
.page-dashboard .nx-kpi { padding:11px; gap:8px; min-width:0; }
.page-dashboard .nx-kpi b { font-size:19px; }
.page-dashboard .nx-kpi small { font-size:11px; }
.page-dashboard .nx-card { padding:12px; }
.page-dashboard .nx-grid-top .map-card,
.page-dashboard .map-card { padding:0; }
.page-dashboard .tr-card { padding:11px; }
.page-dashboard .tr-card-head { gap:6px; }
.page-dashboard .tr-times { font-size:12px; }
.page-dashboard .tr-leg { grid-template-columns:44px minmax(0,1fr); gap:8px; }
.page-dashboard .map-status { left:10px; right:10px; bottom:10px; max-width:none; font-size:12px; }
.page-dashboard .map-tools { top:10px; right:10px; }
.page-dashboard .nx-nav a { flex-basis:65px; }
}
@media (max-width: 767.98px) {
.page-dashboard .wt-tip { left: 0; top: auto; bottom: 22px; transform: translateX(-50%); }
}

/* NEXUS V2 Mobile-Navigation (Dashboard): große Touch-Ziele, 3 Spalten im „Mehr“-Dialog */
@media (max-width: 767.98px) {
  .page-dashboard .nx-nav a, .page-dashboard .nx-more-btn { min-height:58px; font-size:11.5px; }
  .page-dashboard .nx-sheet-grid a { min-height:84px; }
}

/* NEXUS V2 Komponenten (mobil): Gerätekarten einspaltig, Pillen/Fakten kompakter, Modals als Vollbreite */
@media (max-width: 767.98px) {
  .page-dashboard .nx-list.devices { grid-template-columns:minmax(0,1fr); }
  .page-dashboard .nx-dev-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .page-dashboard .nx-login-box, .page-cockpit .login-box { padding:24px 20px 22px; }
  .page-dashboard #stat-kpis .nx-kpi { align-items:center; }
  .page-dashboard .tr-leg::before { left:58px; }
  .page-cockpit .modal { width:100vw; max-height:92dvh; border-radius:20px 20px 0 0; align-self:end; padding:16px; }
  .page-cockpit .modal-backdrop { place-items:end center; }
  .page-cockpit .hist-wrap { max-height:58dvh; }
  .page-cockpit .dev-item { flex-wrap:wrap; }
  .page-cockpit .dev-item .btn { min-height:44px; }
}

/* NEXUS V2: Info-Karten und Handy-Seite mobil */
@media (max-width: 767.98px) {
  .page-cockpit .card-grid { grid-template-columns:minmax(0,1fr); }
  .page-cockpit .phone-body { padding:12px; }
  .page-cockpit .phone { margin:2vh auto; padding:22px 18px; }
  .page-cockpit .phone .btn { min-height:56px; }
}

/* Tastatur geöffnet (sehr niedriger Viewport auf dem Handy): feste Navigationsleiste ausblenden, damit Eingaben Platz haben */
@media (max-width: 767.98px) and (max-height: 520px) {
  .page-dashboard .nx-side, .page-cockpit .sidebar { display:none; }
  .page-dashboard .nx-content { padding-bottom:16px; scroll-padding-bottom:16px; }
  body.page-cockpit { padding-bottom:12px; }
  .page-dashboard .nx-sheet, .page-cockpit .nx-sheet { bottom:0; }
}
