/* Eigen mobiele laag (niet uit Claude Design). Desktop blijft ongewijzigd. */
@media (max-width:640px){
  section,footer{padding-left:16px!important;padding-right:16px!important}
  #home>div:last-child,#thuisbatterij>div:last-child,#victron>div:last-child,#dynamisch>div:last-child{padding-left:16px!important;padding-right:16px!important}
  #home>div:nth-child(3){top:16px!important;right:16px!important;font-size:13px!important;padding:8px 14px!important}
  #thuisbatterij>div:nth-child(3),#victron>div:nth-child(3),#dynamisch>div:nth-child(3){top:16px!important;right:16px!important;font-size:12px!important}
  #home>div:last-child>div:last-child>div:first-child{gap:12px!important}
  #batterijcheck>div>div:first-child{padding:40px 24px!important}
  #projecten>div>div:last-child{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:150px!important}
  #projecten>div>div:last-child>div{grid-column:auto!important;grid-row:auto!important}
  #projecten>div>div:last-child>div:first-child{grid-column:1 / -1!important;grid-row:span 2!important}
  #offerte>div>div:first-child{position:static!important}
  form{grid-template-columns:minmax(0,1fr)!important;padding:24px 18px!important}
  form>label{grid-column:1 / -1!important}
}

/* hamburgermenu (mobiel.js) */
@media (max-width:900px){
  header{padding:12px 72px 12px 16px!important;min-height:68px;flex-wrap:nowrap!important}
  header>nav,header>div a:not([href="#offerte"]){display:none!important}
  header>div a[href="#offerte"]{padding:10px 16px!important;font-size:14px!important}
  .m-menubtn{position:fixed;right:16px;z-index:61;width:44px;height:44px;margin-top:0;border:1px solid #e1ebe4;border-radius:12px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .m-menubtn i{display:block;width:20px;height:2px;background:#0f1a14;border-radius:2px;transition:transform .2s,opacity .2s;pointer-events:none}
  .m-menubtn.open{background:#f0fdf4;border-color:#bbf7d0}
  .m-menubtn.open i:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .m-menubtn.open i:nth-child(2){opacity:0}
  .m-menubtn.open i:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .m-menu{position:fixed;left:0;right:0;bottom:0;z-index:60;background:rgba(15,26,20,.45);display:none;font-family:'Manrope',Helvetica,Arial,sans-serif}
  .m-menu.open{display:block}
  .m-box{background:#fff;padding:8px 20px 24px;border-top:1px solid #e1ebe4;box-shadow:0 24px 40px rgba(15,26,20,.25);display:flex;flex-direction:column;gap:14px;max-height:100%;overflow-y:auto}
  .m-box nav{display:flex;flex-direction:column}
  .m-box nav a{display:flex;justify-content:space-between;align-items:center;color:#0f1a14;font-size:19px;font-weight:600;padding:16px 2px;border-bottom:1px solid #e9f0eb;text-decoration:none}
  .m-box nav a span{color:#16a34a}
  .m-cta{display:block;text-align:center;padding:16px;border-radius:999px;background:#16a34a;color:#fff!important;font-size:17px;font-weight:700;text-decoration:none}
  .m-tel{display:block;text-align:center;padding:14px;border-radius:999px;border:1.5px solid #0f1a14;color:#0f1a14;font-size:16px;font-weight:600;text-decoration:none}
  html.m-lock,html.m-lock body{overflow:hidden}
}
@media (max-width:420px){header>div a[href="#offerte"]{display:none!important}}
@media (min-width:901px){.m-menubtn,.m-menu{display:none!important}}
/* ankers niet achter de vaste kopbalk */
section[id],footer[id]{scroll-margin-top:72px}
@media (max-width:420px){
  header>a>span>span:last-child{font-size:8px!important;letter-spacing:.08em!important}
  header>a>span>span:first-child{font-size:19px!important}
  header>a{gap:10px!important}
  header>a>svg{width:34px;height:34px}
}
/* hele kleine schermen (iPhone SE e.d.): grids met minmax(300/320px) passen niet */
@media (max-width:420px){
  #batterijcheck>div,#offerte>div,#pakketten>div>div:last-child,#reviews>div>div:last-child,section:not([id])>div{grid-template-columns:minmax(0,1fr)!important}
  #home>div:last-child>div:last-child>a{font-size:13px!important;gap:8px!important;padding:10px 10px 10px 14px!important;max-width:100%}
  #batterijcheck a{white-space:normal!important}
  #offerte a[href^="mailto"]{word-break:break-all}
  footer a{white-space:normal!important}
  footer a>span>span:last-child{font-size:8px!important;letter-spacing:.08em!important}
}
