:root {
  --bg: #f6f7f4; --surface: #fff; --text: #1d2a24; --muted: #5b6a62;
  --brand: #1f5c45; --brand-dark: #154433; --accent: #d9822b; --line: #dfe4de; --radius: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
section.wrap { padding-top: 40px; padding-bottom: 8px; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin: 0 0 12px; }
h2 { font-size: 1.5rem; margin: 32px 0 12px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.bar { display: flex; justify-content: space-between; align-items: center; min-height: 56px; gap: 16px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--brand); }
nav a { margin-left: 16px; text-decoration: none; color: var(--text); }
nav a:hover { color: var(--brand); }
.hero { background: var(--brand); color: #fff; padding: 56px 0; }
.hero .lead { max-width: 640px; opacity: .92; }
.btn { display: inline-block; margin-top: 12px; background: var(--accent); color: #fff; padding: 10px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 14px 16px 18px; }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.reg { font-weight: 500; color: var(--muted); font-size: .8em; }
.more { color: var(--brand); font-weight: 600; font-size: .95rem; }
.prices { width: 100%; max-width: 640px; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prices th, .prices td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prices td { text-align: right; white-space: nowrap; font-weight: 600; }
.prices small { color: var(--muted); font-weight: 400; }
.unit { padding-top: 24px; padding-bottom: 40px; }
.crumb { margin: 0 0 8px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.hero .lead { color: inherit; }
.gallery { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: 8px; }
.cols { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 860px) { .cols { grid-template-columns: 1fr 340px; } }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.booking { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px 20px; align-self: start; position: sticky; top: 72px; }
.site-footer { margin-top: 48px; padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.terms { max-width: 800px; padding-top: 24px; padding-bottom: 24px; }
.terms h2 { font-size: 1.15rem; margin: 20px 0 8px; }
.terms hr { border: none; border-top: 1px solid var(--line); margin: 20px 0 0; }
.terms ul { padding-left: 20px; }
mark.todo { background: #ffe58a; color: #3d2f00; padding: 0 4px; border-radius: 3px; }
.logo { height: 40px; width: auto; display: block; }
.from { color: var(--text); font-weight: 600; margin: 4px 0 8px; }
/* Booking */
.cal { margin-bottom: 12px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; text-transform: capitalize; }
.cal-nav { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 8px; width: 36px; height: 36px; font-size: 1.2rem; cursor: pointer; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { text-align: center; font-size: .75rem; color: var(--muted); padding: 2px 0; text-transform: uppercase; }
.cal-day { aspect-ratio: 1; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 6px; cursor: pointer; font: inherit; font-size: .9rem; padding: 0; }
.cal-day:hover:not(:disabled) { border-color: var(--brand); }
.cal-day:disabled { cursor: not-allowed; }
.cal-day.past { opacity: .35; }
.cal-day.booked { background: repeating-linear-gradient(45deg, #f1d4d4, #f1d4d4 4px, #f8e6e6 4px, #f8e6e6 8px); color: #8a3a3a; text-decoration: line-through; }
.cal-day.sel { background: var(--brand); color: #fff; border-color: var(--brand); }
.cal-day.start { box-shadow: 0 0 0 2px var(--accent); }
.cal-legend { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; border: 1px solid var(--line); }
.dot.busy { background: #f1d4d4; } .dot.pick { background: var(--brand); border-color: var(--brand); }
.hint { color: var(--muted); font-size: .95rem; }
.quote-period { font-weight: 600; margin: 8px 0; }
.quote-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-bottom: 12px; }
.quote-table td { padding: 4px 0; } .quote-table td:last-child { text-align: right; white-space: nowrap; }
.quote-table .sum td { border-top: 1px solid var(--line); font-weight: 600; }
.quote-table .total td { border-top: 2px solid var(--text); font-weight: 700; font-size: 1.05rem; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: .9rem; margin-bottom: 4px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--surface); color: var(--text); }
.field.check label { display: flex; gap: 8px; align-items: flex-start; }
.field.hp { position: absolute; left: -9999px; }
.err { color: #b3261e; font-size: .85rem; display: block; margin: 4px 0 0; }
.btn-primary { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 11px 22px; font: inherit; font-weight: 600; cursor: pointer; width: 100%; }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.success h3 { margin-top: 12px; }
.field label.radio { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 1rem; margin: 4px 0; }

/* ---- Design og mobil ---- */
.skip { position: absolute; left: -9999px; top: 0; background: var(--surface); color: var(--text); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn, .btn-primary { min-height: 44px; }
.btn { padding: 12px 22px; }
.hero { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); padding: 48px 0 56px; }
@media (min-width: 800px) { .hero { padding: 72px 0 80px; } }
nav { display: flex; gap: 4px 16px; flex-wrap: wrap; }
nav a { margin-left: 0; padding: 8px 0; }
.card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.12); transform: translateY(-2px); }
.card { transition: box-shadow .15s, transform .15s; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 14px; padding: 0; margin: 0 0 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 18px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 8px; }
.steps strong { display: block; font-size: 1.05rem; }
.steps span { color: var(--muted); font-size: .95rem; }
.from-top { margin: 4px 0 0; font-size: 1.05rem; }
.foot { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.mobile-cta { display: none; }
/* Galleri: sveipbart på mobil, stort førstebilde på større skjermer */
@media (max-width: 699px) {
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 16px -16px; padding: 0 16px 8px; -webkit-overflow-scrolling: touch; }
  .gallery li { flex: 0 0 85%; scroll-snap-align: center; }
}
@media (min-width: 700px) { .gallery li:first-child { grid-column: span 2; grid-row: span 2; } .gallery li:first-child img { height: 100%; aspect-ratio: auto; } }
/* Bookingpanelet følger med bare på bredt oppsett; på mobil sitter «Book»-knappen nederst */
.booking { position: static; scroll-margin-top: 72px; }
@media (min-width: 860px) { .booking { position: sticky; top: 72px; } }
@media (max-width: 859px) {
  body.has-cta { padding-bottom: 72px; }
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
  .mobile-cta .btn { margin: 0; }
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } .card:hover { transform: none; } }
@media (max-width: 520px) { nav a[href="/#slik-fungerer-det"] { display: none; } .bar { flex-wrap: nowrap; } nav { flex-wrap: nowrap; gap: 14px; } .brand { font-size: 1.1rem; } }
/* Hjelp */
.help details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 8px 0; }
.help summary { cursor: pointer; font-weight: 600; }
.help details p { margin: 8px 0 2px; color: var(--muted); }
.help .howto { padding-left: 20px; } .help .howto li { margin: 8px 0; }
