/* Homepage layout tidy-up 2026-11-09 – index.html + index.en.html only. Layout/spacing only, no copy changes. */

/* Local-first (with HTML nesting fix + small script that opens "Hvorfor local-first" on desktop): two numbered cards + optional-services note sit in the right column as one balanced block */
.homepage-refresh #local-first .built-grid{align-items:center}
.homepage-refresh #local-first .stats{gap:16px;align-content:center}
.homepage-refresh #local-first .stat{display:flex;flex-direction:column;padding:24px}
.homepage-refresh #local-first .stat > b.num{font-size:26px;margin-bottom:12px}
.homepage-refresh #local-first .stat h3{font-size:18px;line-height:1.25}
.homepage-refresh #local-first .stat p{font-size:15.5px;line-height:1.55}
.homepage-refresh #local-first .stat.quote{padding:22px 24px}
.homepage-refresh #local-first .stat.quote p{font-size:16px;margin-bottom:12px}
.homepage-refresh #local-first .stat.quote .who{font-size:14px;padding-top:12px;border-top:1px solid rgba(255,107,26,.22)}
.homepage-refresh #local-first .checks{gap:12px}
@media (min-width:721px){
  .homepage-refresh #local-first details.local-more{margin:22px 0 0;border:0;background:transparent}
}
@media (max-width:1024px){
  .homepage-refresh #local-first .built-grid{gap:28px}
}
@media (max-width:720px){
  .homepage-refresh #local-first .stats{gap:12px}
  .homepage-refresh #local-first .stat{padding:20px}
  .homepage-refresh #local-first details.local-more > .checks{padding:14px}
}

/* Features: SumUp referral reads as its own small block inside the card instead of crowding the text */
.homepage-refresh #features .feat{display:flex;flex-direction:column}
.homepage-refresh #features .sumup-referral{margin-top:auto !important;padding-top:16px;border-top:1px solid var(--line)}
.homepage-refresh #features .feat ul + .sumup-referral{margin-top:20px !important}
.homepage-refresh #features .sumup-referral h4{font-size:15px;margin:0 0 10px}
.homepage-refresh #features .sumup-referral .hint{margin-top:10px;font-size:14px;line-height:1.5;color:var(--dim)}

/* Stock count: four step chips as an even 2 x 2 grid instead of 3 + 1 */
.homepage-refresh #varetelling .steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:420px}
.homepage-refresh #varetelling .steps li{justify-content:flex-start}

/* Read more: five guide cards – centre the short last row instead of leaving an empty slot */
.homepage-refresh #les-mer .learn-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:18px}
.homepage-refresh #les-mer .learn-card{flex:0 1 calc((100% - 36px) / 3)}
@media (max-width:1024px){ .homepage-refresh #les-mer .learn-card{flex-basis:calc((100% - 18px) / 2)} }
@media (max-width:720px){ .homepage-refresh #les-mer .learn-card{flex-basis:100%} }
