/* DrivePilot V4.1 – echte Mobile-Startseite */

.mobile-home{
  display:none;
}

.desktop-home{
  display:block;
}

@media(max-width:700px){
  .desktop-home{
    display:none !important;
  }

  .mobile-home{
    display:block !important;
    padding-bottom:94px;
  }

  .topbar{
    min-height:68px !important;
    padding:10px 14px !important;
  }

  .brand-logo-wrap{
    width:48px !important;
    height:40px !important;
  }

  .brand-company-logo{
    max-height:31px !important;
  }

  .brand-text strong{
    font-size:18px !important;
  }

  .brand-text small{
    font-size:10px !important;
  }

  .top-actions .user-pill{
    display:none !important;
  }

  .top-actions{
    width:auto !important;
    margin-left:auto !important;
  }

  .top-actions .link-btn{
    font-size:14px !important;
    padding:7px 0 !important;
  }

  .shell{
    padding:0 14px !important;
  }

  .mobile-greeting{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
    padding:22px 2px 14px;
  }

  .mobile-eyebrow{
    font-size:12px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#5f91b9;
    margin-bottom:5px;
  }

  .mobile-greeting h1{
    margin:0;
    font-size:27px;
    line-height:1.08;
    color:#15385e;
  }

  .mobile-greeting p{
    margin:7px 0 0;
    color:#758ba0;
    font-size:15px;
  }

  .mobile-settings-btn{
    width:42px;
    height:42px;
    flex:0 0 42px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    border:1px solid #d3e8f4;
    border-radius:14px;
    color:#258edf;
    box-shadow:0 8px 22px rgba(31,105,153,.06);
  }

  .mobile-settings-btn svg{
    width:22px;
    height:22px;
  }

  .mobile-primary-card{
    display:flex;
    align-items:center;
    gap:14px;
    min-height:84px;
    padding:16px;
    background:linear-gradient(135deg,#2395eb,#5bc1ef);
    border-radius:22px;
    color:#fff;
    box-shadow:0 14px 28px rgba(38,145,221,.20);
    text-decoration:none;
  }

  .mobile-primary-icon{
    width:50px;
    height:50px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.18);
    border-radius:16px;
    flex:0 0 50px;
  }

  .mobile-primary-icon svg{
    width:28px;
    height:28px;
  }

  .mobile-primary-card strong,
  .mobile-primary-card small{
    display:block;
  }

  .mobile-primary-card strong{
    font-size:20px;
    line-height:1.1;
  }

  .mobile-primary-card small{
    margin-top:5px;
    font-size:13px;
    opacity:.9;
  }

  .mobile-arrow{
    margin-left:auto;
    font-size:32px;
    font-weight:300;
    line-height:1;
  }

  .mobile-status-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-top:14px;
  }

  .mobile-status-card{
    min-height:94px;
    padding:16px;
    background:#fff;
    border:1px solid #d7eaf5;
    border-radius:19px;
    text-decoration:none;
    box-shadow:0 8px 24px rgba(40,97,136,.05);
  }

  .mobile-status-card strong{
    display:block;
    font-size:31px;
    color:#238fe3;
    line-height:1;
  }

  .mobile-status-card span{
    display:block;
    margin-top:8px;
    font-size:13px;
    color:#74899c;
  }

  .mobile-section-title{
    margin:24px 2px 12px;
    font-size:20px;
    color:#15385e;
  }

  .mobile-action-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
  }

  .mobile-action-card{
    min-height:145px;
    padding:16px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    background:#fff;
    border:1px solid #d7eaf5;
    border-radius:21px;
    text-decoration:none;
    color:#15385e;
    box-shadow:0 8px 24px rgba(40,97,136,.05);
  }

  .mobile-action-icon{
    width:48px;
    height:48px;
    margin-bottom:auto;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#edf8ff;
    color:#2794e5;
    border-radius:15px;
  }

  .mobile-action-icon svg{
    width:25px;
    height:25px;
  }

  .mobile-action-card strong{
    margin-top:16px;
    font-size:18px;
    line-height:1.1;
  }

  .mobile-action-card small{
    margin-top:5px;
    color:#7a8fa2;
    font-size:13px;
  }

  .mobile-section-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin:26px 2px 12px;
  }

  .mobile-section-head h2{
    margin:0;
    font-size:20px;
    color:#15385e;
  }

  .mobile-section-head a{
    color:#248ee0;
    font-weight:800;
    text-decoration:none;
    font-size:14px;
  }

  .mobile-recent-list{
    display:flex;
    flex-direction:column;
    gap:10px;
  }

  .mobile-recent-item,
  .mobile-empty{
    min-height:68px;
    padding:12px 14px;
    display:flex;
    align-items:center;
    gap:12px;
    background:#fff;
    border:1px solid #d7eaf5;
    border-radius:18px;
    text-decoration:none;
  }

  .mobile-empty{
    color:#7b8fa1;
  }

  .mobile-recent-icon{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#edf8ff;
    border-radius:13px;
    color:#2794e5;
    flex:0 0 42px;
  }

  .mobile-recent-icon svg{
    width:23px;
    height:23px;
  }

  .mobile-recent-copy{
    min-width:0;
  }

  .mobile-recent-copy strong,
  .mobile-recent-copy small{
    display:block;
  }

  .mobile-recent-copy strong{
    color:#15385e;
    font-size:15px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .mobile-recent-copy small{
    color:#7a8fa2;
    margin-top:3px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .mobile-bottom-nav{
    position:fixed;
    left:10px;
    right:10px;
    bottom:calc(10px + env(safe-area-inset-bottom));
    height:68px;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    align-items:center;
    background:rgba(255,255,255,.96);
    border:1px solid #d6e9f4;
    border-radius:22px;
    box-shadow:0 16px 38px rgba(21,72,108,.14);
    z-index:9997;
    backdrop-filter:blur(14px);
  }

  .mobile-bottom-nav a{
    min-width:0;
    height:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    color:#71879a;
    text-decoration:none;
    font-size:19px;
  }

  .mobile-bottom-nav a.active{
    color:#238fe3;
  }

  .mobile-bottom-nav svg{
    width:21px;
    height:21px;
  }

  .mobile-bottom-nav small{
    font-size:10px;
    font-weight:700;
  }

  .mobile-nav-main{
    position:relative;
  }

  .mobile-nav-plus{
    width:42px;
    height:42px;
    margin-top:-24px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    background:linear-gradient(135deg,#2395eb,#5bc1ef);
    border-radius:50%;
    font-size:28px;
    box-shadow:0 8px 20px rgba(36,145,220,.28);
  }

  .mobile-nav-main small{
    margin-top:0;
  }
}

@media(max-width:380px){
  .mobile-greeting h1{
    font-size:24px;
  }

  .mobile-action-card{
    min-height:132px;
    padding:14px;
  }

  .mobile-action-card strong{
    font-size:17px;
  }
}
