/* Starter styles – change the tokens in :root and the components below to fit the project's design.
   Keep the technical rules: system fonts (or one self-hosted woff2), no @import, works without JavaScript,
   contrast ≥ 4.5:1, visible focus, underlined links in running text. Built to /assets/css/styles.<hash>.css. */
:root {
  --bg: #ffffff;
  --bg-alt: #f3f6f4;
  --card: #ffffff;
  --line: #dde2e8;
  --text: #1b2430;
  --strong: #0b1220;
  --muted: #5a6573;          /* 5.9:1 on white */
  --primary: #1f6b4f;        /* links and buttons, 6.6:1 with white */
  --primary-hover: #17543e;
  --on-primary: #ffffff;
  --radius: .75rem;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 4rem;
  color-scheme: light;
}
/* Dark mode – delete this block if the design is light only (and set color-scheme). */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1722; --bg-alt: #162130; --card: #172333; --line: #2a3a4f;
    --text: #e6ebf1; --strong: #ffffff; --muted: #a3afbf;
    --primary: #6cc59b; --primary-hover: #94d8b6; --on-primary: #0b1220;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { color: var(--strong); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3, .h3 { font-size: 1.125rem; }
p, ul, ol { margin: 0 0 1em; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
p a, li a { text-decoration: underline; text-underline-offset: 2px; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--muted); }
.center { text-align: center; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; background: var(--primary); color: var(--on-primary); border-radius: .5rem; font-weight: 600; }
.skip-link:focus { top: 1rem; color: var(--on-primary); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1rem; }
main.container { flex: 1; padding-block: 1.5rem 4rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px;
  padding: .55rem 1.1rem; border-radius: .6rem; border: 1px solid transparent; font-weight: 600; text-decoration: none;
}
.btn svg { width: 1.1rem; height: 1.1rem; }
.btn-lg { padding: .8rem 1.4rem; font-size: 1.05rem; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-ghost { border-color: var(--line); color: var(--strong); background: transparent; }
.btn-ghost:hover { background: var(--bg-alt); color: var(--strong); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.center .cta-row { justify-content: center; }

/* Header + full-screen mobile menu (<details>, works without JavaScript) */
/* No backdrop-filter/transform/filter on the header: they make it the containing block for the fixed menu panel,
   which then becomes only as tall as the header. */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-bar { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--strong); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.brand svg { height: 2rem; width: auto; }
.nav-main { display: none; gap: 1.5rem; margin-left: auto; }
.nav-main a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav-main a[aria-current="page"], .nav-main a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.header-actions > .btn { display: none; }
.mnav summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: .5rem; color: var(--strong); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary svg { width: 1.6rem; height: 1.6rem; }
.mnav .icon-close, .mnav[open] .icon-open { display: none; }
.mnav[open] .icon-close { display: block; }
.mnav-panel {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; display: flex; flex-direction: column; gap: .25rem;
  padding: 1.5rem 1rem; background: var(--bg); overflow-y: auto;
}
.mlink { padding: .9rem .5rem; font-size: 1.25rem; font-weight: 600; color: var(--strong); text-decoration: none; border-bottom: 1px solid var(--line); }
.mlink[aria-current="page"] { color: var(--primary); }
.mnav-cta { display: grid; gap: .75rem; margin-top: 1.5rem; }
/* Lock page scroll behind the open menu. Lock ONE element: body here (it passes overflow on to the viewport). Setting
   overflow on both html and body makes body its own scroll box, and the sticky header then jumps out of view when the
   menu is opened far down the page. */
body:has(.mnav[open]) { overflow: hidden; }
/* Collapsible group in the mobile menu (nav item with children) */
.mgroup > summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; }
.mgroup > summary::-webkit-details-marker { display: none; }
.mgroup > summary svg { width: 1.25rem; height: 1.25rem; transition: transform .2s ease; }
.mgroup[open] > summary svg { transform: rotate(180deg); }
.msub { display: flex; flex-direction: column; margin: 0 0 .5rem .75rem; padding-left: .75rem; border-left: 2px solid var(--line); }
.msub .mlink { font-size: 1.05rem; font-weight: 500; padding-block: .7rem; }
/* Language switch: EN | NO slider. The thumb marks the current language and slides to the other on hover/focus. */
.lang-toggle { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.nav-main .lang-toggle { margin-left: .25rem; }
.lt-track { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--line); border-radius: 9999px; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; line-height: 1; }
.lt-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 9999px; background: var(--primary); transition: transform .25s ease; }
.lt-opt { position: relative; z-index: 1; min-width: 2.25rem; padding: .35rem .55rem; text-align: center; color: var(--muted); transition: color .25s ease; }
.lt-opt.is-cur { color: var(--on-primary); }
.lang-toggle[data-pos="1"] .lt-thumb { transform: translateX(100%); }
.lang-toggle[data-pos="0"]:is(:hover, :focus-visible) .lt-thumb { transform: translateX(100%); }
.lang-toggle[data-pos="1"]:is(:hover, :focus-visible) .lt-thumb { transform: translateX(0); }
.lang-toggle:is(:hover, :focus-visible) .lt-opt { color: var(--on-primary); }
.lang-toggle:is(:hover, :focus-visible) .lt-opt.is-cur { color: var(--muted); }
.mnav-panel .lang-row { display: flex; justify-content: space-between; }
.lang-links { display: inline-flex; gap: .75rem; }
@media (prefers-reduced-motion: reduce) { .lt-thumb, .lt-opt, .mgroup > summary svg { transition: none; } }
@media (min-width: 900px) {
  .nav-main { display: flex; }
  .header-actions { margin-left: 1rem; }
  .header-actions > .btn { display: inline-flex; }
  .mnav { display: none; }
}

/* Breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }

/* Sections */
.hero { padding-block: 2.5rem 3rem; max-width: 46rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.section { padding-block: 2.5rem; }
.prose { max-width: 46rem; margin-inline: auto; }
.prose.center { padding-block: 4rem; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); padding: 0; list-style: none; }
.card, .features li { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.card:hover { border-color: var(--primary); }
.card img { border-radius: calc(var(--radius) - .25rem); margin-bottom: .5rem; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: .35rem; color: var(--primary); font-weight: 600; }
.card-link svg { width: 1rem; height: 1rem; }

/* FAQ (<details>) */
.faq { max-width: 46rem; margin: 3rem auto 0; }
.faq-intro { color: var(--muted); }
.faq-list { display: grid; gap: .75rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.05rem; }
.faq summary svg { flex: none; width: 1.25rem; height: 1.25rem; transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details > div { padding: 0 1.25rem 1rem; }

/* Form */
.form { display: grid; gap: 1rem; margin-block: 1.5rem 2.5rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; color: var(--strong); }
.field input, .field select, .field textarea { font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: .5rem; padding: .7rem .8rem; min-height: 44px; }
.field [aria-invalid="true"] { border-color: #d92d20; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .9rem; color: var(--muted); }
.form-actions .btn[disabled] { opacity: .6; cursor: wait; }
.form-status { padding: .85rem 1rem; border-radius: .5rem; font-weight: 500; }
.form-status.ok { background: color-mix(in srgb, #12b76a 15%, transparent); border: 1px solid #12b76a; }
.form-status.err { background: color-mix(in srgb, #d92d20 12%, transparent); border: 1px solid #d92d20; }

/* Footer + cookie banner */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding-block: 2rem; font-size: .925rem; color: var(--muted); }
.footer-inner { display: grid; gap: 1rem; }
.footer-info p { margin: 0 0 .25rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1fr auto; align-items: center; } }
/* Footer columns (footerColumns in pages.mjs) */
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.site-footer .footer-cols ul { display: block; }
.footer-cols li + li { margin-top: .45rem; }
.fhead { margin: 0 0 .6rem; font-size: .8125rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--strong); }
.fcol-long { grid-column: 1 / -1; }
.fcol-long ul { columns: 2; column-gap: 1.5rem; }
.fcol-long li { break-inside: avoid; }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); } .fcol-long { grid-column: auto; } }
@media (min-width: 768px) { .footer-inner:has(.footer-cols) { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); align-items: start; gap: 3rem; } }
.cookie { position: fixed; inset: auto 0 0 0; z-index: 60; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .08); }
.cookie-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.cookie p { margin: 0; }
.cookie-actions { display: flex; gap: .75rem; }

/* Zoomable product photo + zoom viewer (built by site.js for a[data-zoom]) */
.zoom { position: relative; display: block; cursor: zoom-in; border-radius: var(--radius); }
.zoom-hint { position: absolute; right: .6rem; bottom: .6rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--primary); color: var(--on-primary); }
.zoom-hint svg { width: 1.25rem; height: 1.25rem; }
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 12, 12, .96); color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lb-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: zoom-out; }
.lb-stage img { position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: 50% 50%; cursor: zoom-in; user-select: none; -webkit-user-drag: none; background: #f2f2f2; will-change: transform; }
.lb-stage img.lb-anim { transition: transform .22s ease-out; }
.lightbox.is-zoomed .lb-stage, .lightbox.is-zoomed .lb-stage img { cursor: grab; }
.lightbox.is-dragging.is-zoomed .lb-stage, .lightbox.is-dragging.is-zoomed .lb-stage img { cursor: grabbing; }
.lb-btn { position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--primary); color: var(--on-primary); font-size: 1.6rem; font-weight: 800; line-height: 1; cursor: pointer; }
.lb-btn:disabled { opacity: .45; cursor: default; }
.lb-tools { position: absolute; z-index: 2; top: .75rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: .45rem; padding: .3rem; border-radius: 999px; background: rgba(0, 0, 0, .7); }
.lb-tools .lb-btn { position: static; width: 42px; height: 42px; font-size: 1.4rem; }
.lb-level { min-width: 3.4rem; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.lb-count { position: absolute; z-index: 2; top: 1.4rem; left: 1rem; font-weight: 800; padding: .2rem .6rem; border-radius: 999px; background: rgba(0, 0, 0, .7); }
.lb-close { top: .75rem; right: .75rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: .75rem; }
.lb-next { right: .75rem; }
.lb-help { position: absolute; z-index: 2; left: 50%; bottom: .9rem; transform: translateX(-50%); margin: 0; padding: .35rem .9rem; border-radius: 999px; background: rgba(0, 0, 0, .7); font-size: .9rem; white-space: nowrap; pointer-events: none; }
@media (max-width: 560px) { .lb-tools { top: auto; bottom: 3.3rem; } .lb-count { top: 1.2rem; } }
body:has(.lightbox[open]) { overflow: hidden; }

/* ---------- Utleierpakken ---------- */
.small { font-size: .9rem; }
.eyebrow { font-weight: 600; color: var(--primary); margin-bottom: .5rem; }
.features li h3 { margin: 0; }
.features li p { margin: 0; }
.btn-block { width: 100%; }
.price-card { max-width: 30rem; margin-inline: auto; padding: 2rem; border: 2px solid var(--primary); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.price { font-size: 2.5rem; font-weight: 800; color: var(--strong); margin: .25rem 0 1rem; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; }
.checks li { padding-left: 1.6rem; position: relative; }
.checks li::before { content: "¹3"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.calc { margin: 2rem 0; padding: 1.5rem; border: 2px solid var(--primary); border-radius: var(--radius); background: var(--bg-alt); }
.calc h2 { margin-top: 0; font-size: 1.35rem; }
.calc-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.calc label { display: grid; gap: .35rem; font-weight: 600; color: var(--strong); }
.calc input { font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: .5rem; padding: .7rem .8rem; min-height: 44px; }
.calc-res { margin-top: 1.25rem; padding: 1rem 1.25rem; border-radius: .5rem; background: var(--card); border: 1px solid var(--line); }
.calc-res p:last-child { margin-bottom: 0; }
.calc-big { font-size: 2rem; font-weight: 800; color: var(--strong); margin-bottom: .5rem; }
.calc-big span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.calc-up { padding-top: .75rem; border-top: 1px solid var(--line); }
