/* Hjulstua – dekkskift og dekkhotell (eksempel laget av Klartil) */
:root {
  --ink: #0f1720;
  --ink-2: #1d2833;
  --text: #22303c;
  --muted: #5a6876;
  --line: #d9e2ea;
  --ice: #edf3f8;
  --bg: #fbfdff;
  --blue: #2450e6;
  --blue-dark: #1a3cb3;
  --blue-soft: #e3eaff;
  --ok: #1d8a5a;
  --warn: #c77700;
  --bad: #c62f2f;
  --radius: 8px;
  --radius-lg: 14px;
  --head: "Archivo", system-ui, sans-serif;
  --body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }
.proto-badge { background: var(--blue); color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 8px 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: var(--radius); border: 2px solid transparent; font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.season { background: var(--ink); color: #c9d6e2; font-size: .92rem; }
.season__in { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 9px 0; }
.season strong { color: #fff; font-family: var(--head); }
.season__btn { margin-left: auto; background: transparent; border: 1.5px solid rgba(255,255,255,.4); color: #fff; border-radius: 6px; padding: 5px 12px; font: 600 .86rem var(--body); cursor: pointer; min-height: 36px; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 253, 255, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 22px; min-height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.35rem/1 var(--head); color: var(--ink); margin: 0; letter-spacing: -.02em; }
.logo__mark { width: 38px; height: 38px; border-radius: 9px; background: var(--blue); display: grid; place-items: center; }
.logo__mark svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.2; }
.logo--light { color: #fff; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 6px; color: var(--ink-2); white-space: nowrap; }
.nav a:hover { background: var(--ice); }
.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

.hero { padding: 56px 0 80px; background: linear-gradient(180deg, var(--ice), var(--bg)); }
.hero__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.kicker { font-weight: 700; color: var(--blue-dark); font-size: .95rem; display: inline-flex; gap: 8px; align-items: center; }
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.kicker.is-open { color: var(--ok); }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); margin: 16px 0 18px; }
.hero h1 span { color: var(--blue); }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 33em; }
.reg { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; margin: 26px 0 18px; max-width: 520px; }
.reg__plate { display: flex; align-items: flex-end; justify-content: center; width: 40px; border-radius: 6px 0 0 6px; background: #1f47c7; color: #fff; font-weight: 700; padding-bottom: 6px; margin-right: -10px; z-index: 1; }
.reg input { flex: 1 1 180px; min-height: 54px; font: 700 1.35rem var(--head); letter-spacing: .08em; text-transform: uppercase; border: 2px solid var(--ink); border-left: 0; border-radius: 0 6px 6px 0; padding: 0 14px; color: var(--ink); background: #fff; min-width: 0; }
.reg input:focus { outline: none; box-shadow: 0 0 0 3px rgba(36, 80, 230, .3); }
.reg .btn { min-height: 54px; }
.hero__points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .95rem; }
.hero__points li::before { content: "✓"; color: var(--blue); font-weight: 800; margin-right: 6px; }
.hero__media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: 0 24px 60px rgba(15, 23, 32, .18); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

.section { padding: 88px 0; }
.section--ice { background: var(--ice); }
.section--dark { background: var(--ink); color: #c9d6e2; }
.section--dark h2, .section--dark h3 { color: #fff; }
.head { max-width: 640px; margin-bottom: 36px; }
.head p:last-child { color: var(--muted); font-size: 1.05rem; }
.eyebrow { font: 800 .76rem/1.2 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.section--dark .eyebrow { color: #8fb0ff; }

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.price { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.price--pop { border-color: var(--blue); box-shadow: 0 10px 30px rgba(36, 80, 230, .12); }
.price__tag { align-self: start; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--blue); padding: 3px 9px; border-radius: 4px; }
.price h3 { margin: 0; }
.price p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.price__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); margin-top: 6px; }
.price__sum { font: 800 1.3rem var(--head); color: var(--ink); }
.price__sum small { display: block; font: 500 .8rem var(--body); color: var(--muted); }
.price .btn { min-height: 42px; padding: 8px 16px; font-size: .94rem; }

.hotel { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hotel__copy p { color: #b8c6d3; }
.hotel__media { border-radius: var(--radius-lg); overflow: hidden; }
.hotel__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: 5px; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ticks--light li { color: #e6edf4; }
.tread { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 32px; align-items: center; margin-top: 56px; padding-top: 48px; border-top: 1px solid rgba(255,255,255,.12); }
.tread__img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tread p { color: #b8c6d3; }
.tread__bar { display: grid; grid-template-columns: 3fr 1fr 4fr; border-radius: 6px; overflow: hidden; font-size: .8rem; font-weight: 700; color: #fff; }
.tread__bar span { padding: 10px 8px; text-align: center; }
.t-bad { background: var(--bad); } .t-warn { background: var(--warn); } .t-ok { background: var(--ok); }
.tread__labels { position: relative; height: 1.3em; font-size: .78rem; color: #9fb0bf; margin-top: 6px; }
.tread__labels span { position: absolute; top: 0; white-space: nowrap; }
.tread__labels span:nth-child(2) { left: 37.5%; transform: translateX(-50%); }
.tread__labels span:nth-child(3) { left: 50%; transform: translateX(-30%); }
.tread__labels span:nth-child(4) { right: 0; }
.tread__scale .small { color: #9fb0bf; margin-top: 6px; }

.mine { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.mine > div > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.mine__card { background: var(--ice); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 12px; }
.mine__car { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; }
.plate { font: 800 .95rem var(--head); letter-spacing: .08em; background: #fff; border: 2px solid var(--ink); border-left: 10px solid #1f47c7; border-radius: 4px; padding: 3px 9px; }
.mine__now { margin: 0; background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; padding: 8px 12px; border-radius: 6px; }
.set { background: #fff; border-radius: var(--radius); padding: 14px 16px; }
.set__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.set p { margin: 4px 0 8px; color: var(--muted); font-size: .92rem; }
.set__mm { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; border-top: 1px solid var(--line); padding-top: 8px; }
.set__mm span { color: var(--muted); }
.set__warn { margin: 8px 0 0 !important; color: var(--warn) !important; font-weight: 700; }
.pill { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 4px; background: var(--ink); color: #fff; }
.pill--store { background: var(--ok); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { background: #fff; border-radius: var(--radius-lg); padding: 22px; border: 1px solid var(--line); }
.steps b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--ink); color: #fff; font: 800 1.05rem var(--head); margin-bottom: 14px; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

.faq-wrap { max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.contact__list li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.contact__list span { color: var(--muted); font-size: .9rem; padding-top: 2px; }
.contact__list a { font-weight: 600; }
.hours { background: #fff; border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--line); }
.hours table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr.is-today td { color: var(--blue-dark); font-weight: 700; }

.footer { background: var(--ink); color: #b8c6d3; padding: 48px 0 32px; }
.footer__in { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__links a { color: #fff; text-decoration: none; font-weight: 600; }
.footer__links a:hover { text-decoration: underline; }
.footer__bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; }
.footer__bottom a { color: #fff; }
.credits summary { cursor: pointer; font-size: .88rem; }
.credits p { max-width: 520px; margin: 8px 0 0; }

/* Bestilling */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(15, 23, 32, .6); display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__box { background: var(--bg); border-radius: var(--radius-lg); width: min(620px, 100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.modal__head { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 22px 24px 10px; }
.modal__head h2 { font-size: 1.6rem; margin: 0; }
.modal__head .eyebrow { margin-bottom: 6px; }
.modal__x { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; flex: none; }
.modal__body { padding: 8px 24px 18px; overflow-y: auto; min-width: 0; }
.modal__foot { display: flex; align-items: center; gap: 12px; padding: 14px 24px 20px; border-top: 1px solid var(--line); }
.bk-sum { flex: 1; font-size: .9rem; color: var(--muted); min-width: 0; }
.bk-sum strong { color: var(--ink); display: block; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius); padding: 13px 15px; font: inherit; color: var(--text); cursor: pointer; min-height: 56px; }
.opt small { display: block; color: var(--muted); font-size: .86rem; }
.opt strong { color: var(--ink); }
.opt[aria-checked="true"] { border-color: var(--blue); background: var(--blue-soft); }
.opt__price { font-weight: 700; white-space: nowrap; }
label { display: block; font-weight: 600; font-size: .95rem; color: var(--ink); }
.fld { display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 1.5px solid #c3d0dc; border-radius: 8px; padding: 11px 13px; min-height: 48px; }
.fld:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(36, 80, 230, .25); }
.fld--reg { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grouplabel { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.yn { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.yn button { border: 1.5px solid var(--line); background: #fff; border-radius: 6px; padding: 8px 14px; font: 600 .95rem var(--body); cursor: pointer; min-height: 42px; color: var(--ink); }
.yn button[aria-checked="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; max-width: 100%; }
.chip { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 12px; font: 700 .95rem var(--body); color: var(--ink); cursor: pointer; min-width: 64px; min-height: 48px; text-align: center; }
.chip small { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); }
.chip[aria-checked="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.chip[aria-checked="true"] small { color: #dbe4ff; }
.chip--full small { color: var(--bad); font-weight: 600; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.wait { background: var(--ice); border-radius: var(--radius); padding: 14px 16px; }
.wait p { margin: 0 0 10px; }
.form-error { background: #fde8e8; color: var(--bad); font-weight: 600; padding: 10px 14px; border-radius: 8px; margin: 0; }
.done { text-align: center; padding: 6px 0; }
.done__icon { width: 64px; height: 64px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-dark); display: grid; place-items: center; margin: 0 auto 14px; font-size: 1.8rem; }
.done p { color: var(--muted); }

@media (max-width: 1060px) {
  .prices { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tread { grid-template-columns: 1fr 1fr; }
  .tread__img { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
}
@media (max-width: 920px) {
  .menu-btn { display: block; }
  .header__cta { margin-left: auto; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 10px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(0,0,0,.08); }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .hero__in, .hotel, .mine, .contact { grid-template-columns: 1fr; gap: 36px; }
  .hero__media { aspect-ratio: 16 / 11; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .header__in { gap: 10px; min-height: 62px; }
  .logo { font-size: 1.18rem; }
  .header__cta { padding: 9px 14px; min-height: 42px; font-size: .9rem; }
  .season__btn { display: none; }
  .hero { padding: 32px 0 56px; }
  .reg .btn { width: 100%; }
  .section { padding: 60px 0; }
  .prices, .steps, .tread, .grid-2 { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr; }
  .modal { padding: 0; place-items: end stretch; }
  .modal__box { border-radius: 16px 16px 0 0; max-height: 92dvh; width: 100%; }
  .modal__head, .modal__body, .modal__foot { padding-left: 18px; padding-right: 18px; }
  .modal__foot { flex-wrap: wrap; }
  .bk-sum { flex-basis: 100%; order: -1; }
  .modal__foot .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Norsk skilt: flagget over N (Truls 26.10.2026) */
.reg__plate { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 16'%3E%3Crect width='22' height='16' fill='%23ba0c2f'/%3E%3Cpath d='M6 0h4v16H6zM0 6h22v4H0z' fill='%23fff'/%3E%3Cpath d='M7 0h2v16H7zM0 7h22v2H0z' fill='%2300205b'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center 5px; background-size: 15px 11px; place-items: end center; align-content: end; padding-bottom: 5px; display: grid; }

/* Eksempelside: stripe øverst og merke ved logoen. Skjules når serverens gule stripe (data-klartil-example) finnes. */
.proto-badge { --ex-bg: #ffd43b; --ex-fg: var(--ink); display: block; position: static; background: var(--ex-bg); color: var(--ex-fg); border-bottom: 3px solid var(--blue); font-size: .875rem; font-weight: 400; line-height: 1.45; text-align: center; padding: .6rem 1rem; border-radius: 0; max-width: none; margin: 0; }
.proto-badge b { color: var(--ink); font-weight: 800; letter-spacing: .01em; }
.proto-badge a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; margin-left: .35em; }
.proto-badge[hidden], [data-klartil-example] ~ .proto-badge { display: none; }
.ex-tag { flex: none; align-self: center; display: inline-block; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: .6875rem; font-weight: 700; font-style: normal; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; padding: .2em .55em; border-radius: 999px; background: #ffd43b; color: var(--ink); white-space: nowrap; }
.bk-demo { margin: .3rem 0 0; font-size: .8125rem; font-weight: 600; line-height: 1.3; opacity: .8; }
@media (max-width: 400px) { .ex-tag { position: absolute; left: 0; top: 100%; margin-top: 2px; font-size: .5625rem; padding: .15em .45em; } .header .logo, .top .logo { position: relative; } }
