/* Mobile-only landing page composition based on the approved reference.
   Scope: homepage (.home-premium-v96), German and English, viewport <= 640px only. */
@media (max-width:640px){
  .home-premium-v96{--home-shell:calc(100% - 32px);}

  /* Header */
  .home-premium-v96 .site-header{
    width:calc(100% - 32px);
    height:92px;
    padding:0;
    margin:0 auto;
    border-bottom:0;
    background:transparent;
  }
  .home-premium-v96 .site-header::after{display:none;}
  .home-premium-v96 .site-header .brand-lockup{gap:9px;}
  .home-premium-v96 .site-header .brand-mark{width:45px;height:45px;flex-basis:45px;}
  .home-premium-v96 .site-header .brand-wordmark b{font-size:16px;line-height:.98;}
  .home-premium-v96 .site-header .brand-wordmark>span{font-size:13px;line-height:1;}
  .home-premium-v96 .site-header .language-switch{
    width:42px;
    min-width:42px;
    height:42px;
    display:inline-flex;
    border-color:#d0dddf;
    background:rgba(255,255,255,.8);
    box-shadow:0 2px 8px rgba(13,58,62,.02);
    font-size:12px;
    letter-spacing:.06em;
  }
  .home-premium-v96 .site-header .header-actions{gap:8px;}
  .home-premium-v96 .site-header .menu-button{
    width:98px;
    min-width:98px;
    height:54px;
    padding:0 15px;
    grid-template-columns:24px auto;
    grid-template-rows:repeat(3,4px);
    column-gap:10px;
    border:1px solid #d0dddf;
    border-radius:9px;
    background:rgba(255,255,255,.8);
    box-shadow:0 2px 8px rgba(13,58,62,.02);
  }
  .home-premium-v96 .site-header .menu-button span{width:24px;height:2px;}
  .home-premium-v96 .site-header .menu-button b{display:block;font-size:14px;font-weight:750;}

  @media (max-width:350px){
    .home-premium-v96 .site-header{width:calc(100% - 20px);}
    .home-premium-v96 .site-header .brand-lockup{gap:6px;}
    .home-premium-v96 .site-header .brand-mark{width:39px;height:39px;flex-basis:39px;}
    .home-premium-v96 .site-header .brand-wordmark b{font-size:14px;}
    .home-premium-v96 .site-header .brand-wordmark>span{font-size:12px;}
    .home-premium-v96 .site-header .language-switch{width:36px;min-width:36px;height:40px;}
    .home-premium-v96 .site-header .header-actions{gap:6px;}
    .home-premium-v96 .site-header .menu-button{width:82px;min-width:82px;height:48px;padding:0 11px;grid-template-columns:22px auto;column-gap:7px;}
    .home-premium-v96 .site-header .menu-button span{width:22px;}
    .home-premium-v96 .site-header .menu-button b{font-size:12px;}
  }

  /* Hero */
  .home-premium-v96 .hero-home-v76{
    padding:72px 0 18px;
    overflow:visible;
    background:radial-gradient(circle at 50% 4%,rgba(255,255,255,.96) 0,rgba(255,255,255,.54) 38%,transparent 72%),linear-gradient(180deg,#fbfcfb 0%,#f8fbfb 76%,#f7fbfa 100%);
  }
  .home-premium-v96 .hero-home-v76 .hero-copy{
    width:calc(100% - 32px);
    max-width:430px;
    padding:0;
    margin:0 auto;
    text-align:center;
  }
  .home-premium-v96 .hero-home-v76 h1{
    width:100%;
    max-width:360px;
    margin:0 auto;
    padding:0;
    font-size:clamp(39px,11.4vw,47px);
    line-height:.99;
    letter-spacing:-.052em;
    text-wrap:balance;
  }
  .home-premium-v96 .hero-home-v76 .hero-title-soft{
    max-width:335px;
    margin:0 auto;
    color:rgba(8,101,106,.50);
  }
  .home-premium-v96 .hero-home-v76 .hero-title-strong{
    margin-top:5px;
    color:#07383d;
  }
  .home-premium-v96 .hero-home-v76 .hero-subline{
    max-width:345px;
    margin:26px auto 0;
    color:#526070;
    font-size:16px;
    line-height:1.55;
  }
  .home-premium-v96 .home-hero-actions-v76{
    width:min(100%,344px);
    margin:28px auto 0;
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }
  .home-premium-v96 .home-hero-actions-v76 a{
    width:100%;
    min-width:0;
    min-height:56px;
    margin:0;
    border-radius:9px;
    font-size:15px;
    box-shadow:none;
  }
  .home-premium-v96 .home-hero-actions-v76 .hero-plan-cta{
    color:#0b686c;
    background:rgba(255,255,255,.76);
    border:1px solid #cddcde;
  }
  .home-premium-v96 .home-hero-actions-v76 .hero-plan-cta:hover{background:#fff;}
  .home-premium-v96 .home-hero-actions-v76 .hero-compare-cta{
    color:#102127;
    background:#ffc20a;
    border:1px solid #ffc20a;
  }

  /* Mobile vehicle composition */
  .home-premium-v96 .hero-fleet{display:none;}
  .home-premium-v96 .hero-mobile-fleet{
    display:block;
    width:calc(100% - 28px);
    max-width:430px;
    margin:20px auto 0;
  }
  .home-premium-v96 .hero-mobile-proposal-heading{
    width:100%;
    display:grid;
    grid-template-columns:minmax(34px,1fr) auto minmax(34px,1fr);
    align-items:center;
    gap:16px;
    margin-bottom:17px;
    color:#0c686c;
  }
  .home-premium-v96 .hero-mobile-proposal-heading span{height:1px;background:#cfdddf;}
  .home-premium-v96 .hero-mobile-proposal-heading b{font-size:13px;font-weight:800;white-space:nowrap;}
  .home-premium-v96 .hero-mobile-fleet-card{
    position:relative;
    padding:0;
    overflow:visible;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  .home-premium-v96 .hero-mobile-fleet-stage{
    position:relative;
    height:118px;
    width:100%;
    overflow:visible;
  }
  .home-premium-v96 .hero-mobile-fleet-stage::before{
    content:"";
    position:absolute;
    left:1%;
    right:1%;
    bottom:13px;
    height:1px;
    background:linear-gradient(90deg,transparent,#d9e5e6 12%,#d9e5e6 88%,transparent);
  }
  .home-premium-v96 .hero-mobile-fleet-stage::after{
    content:"";
    position:absolute;
    left:7%;
    right:7%;
    bottom:7px;
    height:27px;
    border-radius:50%;
    background:radial-gradient(ellipse at center,rgba(8,101,106,.13) 0%,rgba(8,101,106,.055) 47%,rgba(8,101,106,0) 76%);
    filter:blur(9px);
  }
  .home-premium-v96 .hero-mobile-vehicle{
    position:absolute;
    display:block;
    height:auto;
    object-fit:contain;
    will-change:auto;
  }
  .home-premium-v96 .hero-mobile-vehicle-small{
    width:36%;
    max-width:138px;
    left:0;
    bottom:14px;
    z-index:2;
    animation:none;
  }
  .home-premium-v96 .hero-mobile-vehicle-medium{
    width:50%;
    max-width:192px;
    left:50%;
    bottom:10px;
    z-index:3;
    transform:translateX(-50%);
    animation:none;
  }
  .home-premium-v96 .hero-mobile-vehicle-long{
    width:44%;
    max-width:174px;
    right:0;
    bottom:14px;
    z-index:1;
    animation:none;
  }

  /* Arm the mobile fleet before first paint, then start only after the three images are decoded. */
  html.hero-mobile-animation-armed:not(.hero-mobile-animation-run) .home-premium-v96 .hero-mobile-vehicle-small{transform:translateX(-115vw);}
  html.hero-mobile-animation-armed:not(.hero-mobile-animation-run) .home-premium-v96 .hero-mobile-vehicle-long{transform:translateX(-135vw);}
  html.hero-mobile-animation-armed:not(.hero-mobile-animation-run) .home-premium-v96 .hero-mobile-vehicle-medium{transform:translateX(calc(-50% - 125vw));}
  html.hero-mobile-animation-run .home-premium-v96 .hero-mobile-vehicle-small{animation:hero-mobile-small-enter-v156 .72s cubic-bezier(.2,.75,.25,1) .08s both;}
  html.hero-mobile-animation-run .home-premium-v96 .hero-mobile-vehicle-long{animation:hero-mobile-long-enter-v156 .72s cubic-bezier(.2,.75,.25,1) .90s both;}
  html.hero-mobile-animation-run .home-premium-v96 .hero-mobile-vehicle-medium{animation:hero-mobile-medium-enter-v156 .72s cubic-bezier(.2,.75,.25,1) 1.72s both;}
  @keyframes hero-mobile-small-enter-v156{
    from{transform:translateX(-115vw);}
    to{transform:translateX(0);}
  }
  @keyframes hero-mobile-long-enter-v156{
    from{transform:translateX(-135vw);}
    to{transform:translateX(0);}
  }
  @keyframes hero-mobile-medium-enter-v156{
    from{transform:translateX(calc(-50% - 125vw));}
    to{transform:translateX(-50%);}
  }
  .home-premium-v96 .hero-mobile-fleet-labels{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    padding-top:6px;
    color:#0b666a;
    font-size:14px;
    font-weight:850;
    letter-spacing:.18em;
    line-height:1;
    text-transform:uppercase;
  }
  .home-premium-v96 .hero-mobile-fleet-labels span:not(:last-child)::after{
    content:"·";
    margin-left:12px;
    color:#53666c;
    font-weight:700;
    letter-spacing:0;
  }
  .home-premium-v96 .hero-illustration-note{
    width:calc(100% - 32px);
    max-width:400px;
    margin:22px auto 0;
    color:#53666c;
    font-size:12px;
    line-height:1.45;
    text-align:center;
  }

  /* Compact mobile entry cards shown in the reference */
  .home-premium-v96 .home-paths-v69{
    width:calc(100% - 28px);
    max-width:430px;
    margin:30px auto 20px;
    padding:0;
  }
  .home-premium-v96 .home-section-heading-v69{display:none;}
  .home-premium-v96 .home-path-grid-v69{display:grid;grid-template-columns:1fr;gap:12px;}
  .home-premium-v96 .home-path-card-v69.primary-path{display:none;}
  .home-premium-v96 .home-path-card-v69:not(.primary-path){
    min-height:0;
    height:auto;
    padding:21px 17px;
    display:grid;
    grid-template-columns:54px minmax(0,1fr) 30px;
    grid-template-rows:auto auto;
    column-gap:14px;
    row-gap:5px;
    align-items:start;
    border:1px solid #d9e5e6;
    border-radius:18px;
    background:rgba(255,255,255,.82);
    box-shadow:0 8px 22px rgba(13,68,71,.025);
    overflow:hidden;
  }
  .home-premium-v96 .home-path-card-v69:not(.primary-path) .home-path-icon-v69{
    grid-column:1;
    grid-row:1/3;
    width:50px;
    height:50px;
    margin:0;
    align-self:start;
    color:#0a6f73;
    background:#eaf6f5;
  }
  .home-premium-v96 .home-path-card-v69:not(.primary-path) h3{
    grid-column:2;
    grid-row:1;
    min-height:0;
    max-width:none;
    margin:1px 0 0;
    color:#111b2c;
    font-size:17px;
    line-height:1.2;
    letter-spacing:-.025em;
  }
  .home-premium-v96 .home-path-card-v69:not(.primary-path)>p{
    grid-column:2;
    grid-row:2;
    max-width:none;
    margin:0;
    color:#526070;
    font-size:12.5px;
    line-height:1.55;
  }
  .home-premium-v96 .home-path-card-v69:not(.primary-path) .home-path-actions-v69{
    grid-column:3;
    grid-row:1/3;
    width:30px !important;
    height:100%;
    margin:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    align-self:stretch;
    gap:0 !important;
  }
  .home-premium-v96 .home-path-card-v69:not(.primary-path) .secondary-button{
    width:30px !important;
    min-width:30px !important;
    max-width:30px !important;
    min-height:30px !important;
    height:30px !important;
    padding:0 !important;
    margin:0 !important;
    display:flex !important;
    color:#087176;
    background:transparent;
    border:0;
    border-radius:50%;
    box-shadow:none;
    font-size:0;
  }
  .home-premium-v96 .home-path-card-v69:not(.primary-path) .secondary-button svg{width:19px;height:19px;}
  .home-premium-v96 .home-path-card-v69:not(.primary-path) .text-link,
  .home-premium-v96 .home-path-card-v69:not(.primary-path) .home-path-extra-link{display:none !important;}

  /* Do not hide the approved layout behind entrance animations on mobile. */
  .home-premium-v96 .hero-home-v76 .hero-title-soft,
  .home-premium-v96 .hero-home-v76 .hero-title-strong,
  .home-premium-v96 .hero-home-v76 .hero-subline,
  .home-premium-v96 .home-hero-actions-v76,
  .home-premium-v96 .hero-mobile-fleet,
  .home-premium-v96 .hero-illustration-note{animation:none!important;opacity:1!important;filter:none!important;}
}

@media (max-width:640px){
  .home-premium-v96 .menu-scrim{top:92px;}
  .home-premium-v96 .site-menu{top:92px;height:calc(100dvh - 92px);}
  .home-premium-v96 .hero-illustration-note{
    position:static!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    transform:none!important;
  }
}

@media (max-width:640px) and (prefers-reduced-motion:reduce){
  .home-premium-v96 .hero-mobile-vehicle-small,
  .home-premium-v96 .hero-mobile-vehicle-long,
  .home-premium-v96 .hero-mobile-vehicle-medium{animation:none!important;}
}

/* v163 — restore a little breathing room between the primary mobile CTA and
   the animated vehicle group after the AI-caption scale reduction. */
@media(max-width:640px){
  .home-premium-v96 .hero-mobile-fleet{
    margin-top:34px;
  }
  .home-premium-v96 .hero-mobile-fleet-stage{
    height:136px;
  }
}

/* v164 — mobile hero final spacing + restore the recommended move-planning entry card. */
@media(max-width:640px){
  /* Give the animated fleet just a final small amount of breathing room below the CTA. */
  .home-premium-v96 .hero-mobile-fleet{
    margin-top:38px;
  }
  .home-premium-v96 .hero-mobile-fleet-stage{
    height:140px;
  }

  /* The recommended planning path is part of the mobile journey as well. */
  .home-premium-v96 .home-path-card-v69.primary-path{
    display:flex;
    min-height:0;
    padding:22px 20px 20px;
    border:1px solid #c9e0e1;
    border-radius:18px;
    background:linear-gradient(180deg,#075a5f 0%,#064f53 100%);
    box-shadow:0 10px 26px rgba(13,79,82,.08);
  }
  .home-premium-v96 .home-path-card-v69.primary-path::before{
    top:17px;
    right:17px;
    left:auto;
    padding:4px 7px;
    font-size:10px;
    line-height:1.1;
    letter-spacing:.07em;
  }
  html[lang="en"] .home-premium-v96 .home-path-card-v69.primary-path::before{
    content:"RECOMMENDED START";
  }
  .home-premium-v96 .home-path-card-v69.primary-path .home-path-icon-v69{
    width:46px;
    height:46px;
    margin:0 0 18px;
  }
  .home-premium-v96 .home-path-card-v69.primary-path h3{
    min-height:0;
    max-width:100%;
    margin:0 0 9px;
    font-size:21px;
    line-height:1.12;
  }
  .home-premium-v96 .home-path-card-v69.primary-path > p{
    max-width:none;
    margin:0;
    font-size:13px;
    line-height:1.5;
  }
  .home-premium-v96 .home-path-card-v69.primary-path .home-path-chip-row{
    width:100%;
    max-width:none;
    margin:13px 0 16px;
    gap:6px;
  }
  .home-premium-v96 .home-path-card-v69.primary-path .home-path-chip-row span{
    padding:5px 8px;
    font-size:10.5px;
    line-height:1.2;
    white-space:normal;
  }
  .home-premium-v96 .home-path-card-v69.primary-path > .primary-button{
    width:100%;
    min-width:0;
    min-height:48px;
    margin:0;
    padding-inline:16px;
    align-self:stretch;
    border-radius:10px;
    font-size:14px;
  }
}

/* v165 — restore the full desktop-style CTAs on the two secondary mobile entry cards.
   Keep the approved recommended planning card from v164 unchanged. */
@media(max-width:640px){
  .home-premium-v96 .home-path-card-v69:not(.primary-path){
    min-height:0;
    height:auto;
    padding:22px 20px 20px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    border:1px solid #d9e5e6;
    border-radius:18px;
    background:rgba(255,255,255,.88);
    box-shadow:0 8px 22px rgba(13,68,71,.025);
    overflow:hidden;
  }
  .home-premium-v96 .home-path-card-v69:not(.primary-path) .home-path-icon-v69{
    width:50px;
    height:50px;
    margin:0 0 18px;
    align-self:flex-start;
  }
  .home-premium-v96 .home-path-card-v69:not(.primary-path) h3{
    min-height:0;
    max-width:100%;
    margin:0 0 9px;
    font-size:21px;
    line-height:1.15;
    letter-spacing:-.025em;
  }
  .home-premium-v96 .home-path-card-v69:not(.primary-path)>p{
    max-width:none;
    margin:0;
    color:#526070;
    font-size:13px;
    line-height:1.55;
  }
  .home-premium-v96 .home-path-card-v69:not(.primary-path) .home-path-actions-v69{
    width:100% !important;
    height:auto;
    margin:18px 0 0 !important;
    display:flex !important;
    flex-direction:column;
    align-items:stretch !important;
    justify-content:flex-start !important;
    align-self:stretch;
    gap:9px !important;
  }
  .home-premium-v96 .home-path-card-v69:not(.primary-path) .secondary-button{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    min-height:48px !important;
    height:auto !important;
    padding:0 16px !important;
    margin:0 !important;
    display:inline-flex !important;
    align-items:center;
    justify-content:center !important;
    gap:9px;
    color:#fff;
    background:var(--petrol);
    border:0;
    border-radius:10px;
    box-shadow:none;
    font-size:14px !important;
    font-weight:750;
    text-align:center;
  }
  .home-premium-v96 .home-path-card-v69:not(.primary-path) .secondary-button svg{
    width:17px;
    height:17px;
    flex:0 0 auto;
  }
  .home-premium-v96 .home-path-card-v69:not(.primary-path) .text-link,
  .home-premium-v96 .home-path-card-v69:not(.primary-path) .home-path-extra-link{
    display:inline-flex !important;
    align-self:center;
    justify-content:center;
    padding:7px 4px;
    margin:0;
    white-space:normal;
    text-align:center;
    font-size:12px;
  }
}

/* v196 — keep the first hero line readable in the mobile layout */
@media (max-width:640px){
  .home-premium-v96 .hero-home-v76 .hero-title-soft{
    color:#386e70 !important;
  }
}
