/* Ålesund Golf Simulator — «Lyst klubbhus», redaksjonell utgave.
   Varm linen-bakgrunn, furugrønn + messing som aksenter, Fraunces + Instrument Sans.
   Deles av alle kundesider; kiosken kjører mørkt via body.theme-dark. */

:root {
  --bg: #f7f3ea;
  --surface: #fffdf8;
  --surface-soft: #fbf7ed;
  --ink: #1d3024;
  --ink-soft: #56614f; /* WCAG AA mot lyse flater (kontrast ≥ 4.5:1) */
  --line: #e6dfcb;
  --line-soft: #efe9d8;

  --green: #14382a;
  --green-press: #0d2b1e;
  --brass: #a87f33;
  --brass-bright: #d8b46a;
  --brass-tint: #f4ead4;

  --vipps: #ff5b24;
  --vipps-press: #e64d1a;
  --ok: #2c7a4b;
  --ok-tint: #e6f1e9;
  --error: #b3432b;
  --error-tint: #f9e8e2;

  --radius: 16px;
  --shadow-soft: 0 1px 2px rgba(29, 48, 36, 0.05), 0 10px 28px -22px rgba(29, 48, 36, 0.3);
}

body.theme-dark {
  --bg: #0c241a;
  --surface: #113023;
  --surface-soft: #0e2a1f;
  --ink: #f3ecdd;
  --ink-soft: #c9c0ab;
  --line: #1f4534;
  --line-soft: #18402f;
  --green: #d8b46a;
  --green-press: #e3c27e;
  --brass: #d8b46a;
  --brass-bright: #d8b46a;
  --brass-tint: rgba(216, 180, 106, 0.12);
  --ok: #8fd6a8;
  --ok-tint: rgba(143, 214, 168, 0.12);
  --error: #ff8e7a;
  --error-tint: rgba(255, 142, 122, 0.12);
  --shadow-soft: 0 18px 40px -18px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

/* Synlig tastaturfokus på alle interaktive elementer (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.slot:focus-visible,
.day-chip:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Respekter brukerens preferanse om mindre bevegelse (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: 'Instrument Sans', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.4 0 0 0 0 0.3 0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- ramme ---------- */

.shell, main {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

main { padding-bottom: 90px; }

@media (min-width: 760px) {
  .shell, main { max-width: 820px; padding-left: 30px; padding-right: 30px; }
}

@media (min-width: 1140px) {
  .shell, main { max-width: 1140px; padding-left: 44px; padding-right: 44px; }
}

main.narrow { max-width: 600px; padding-bottom: 80px; }

/* Min side: dashbord-rutenett. Bookinger til venstre, klippekort/kjøp i en
   sidekolonne på brede skjermer — utnytter plassen i stedet for én smal
   kolonne. Stabler til én kolonne på pad/telefon. */
main.dash { padding-bottom: 80px; }
main.dash #content { display: grid; gap: 20px; align-items: start; }
main.dash #content > div { display: flex; flex-direction: column; gap: 18px; }
main.dash #content > div > .card { margin-top: 0; }
@media (min-width: 1140px) {
  main.dash #content { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); column-gap: 28px; }
  /* Sidekolonnen følger med ved scroll → bedre balanse, mindre dødt felt */
  main.dash #content > div:nth-child(2) { position: sticky; top: 88px; align-self: start; }
}

/* Min side — masthead med primær CTA øverst (kun dashbord) */
main.dash .masthead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; }
main.dash .masthead .masthead-text { min-width: 0; }
#masthead-cta .top-cta { width: auto; white-space: nowrap; }
@media (max-width: 600px) { #masthead-cta { width: 100%; } #masthead-cta .top-cta { width: 100%; } }

/* Min side — bookingrad: rolig hierarki, dørkode som chip, handlinger bak «Detaljer» */
.bk { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.bk:first-child { padding-top: 2px; }
.bk:last-child { border-bottom: 0; padding-bottom: 2px; }
.bk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bk-when { font-weight: 600; font-size: 15.5px; color: var(--ink); }
.bk-meta { margin-top: 3px; font-size: 13.5px; color: var(--ink-soft); }
.chip {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--brass);
  background: var(--brass-tint); border: 1px solid color-mix(in srgb, var(--brass) 30%, var(--line));
  border-radius: 99px; padding: 4px 11px; white-space: nowrap; flex: 0 0 auto;
}
.bk-more { margin-top: 7px; }
.bk-more > summary {
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--green);
  list-style: none; display: inline-flex; align-items: center; gap: 5px; user-select: none;
  padding: 6px 0; min-height: 24px;
}
.bk-more > summary::-webkit-details-marker { display: none; }
.bk-more > summary::after { content: '▾'; font-size: 10px; transition: transform 0.15s ease; }
.bk-more[open] > summary::after { transform: rotate(180deg); }
.bk-more > summary:hover { color: var(--green); }
.bk-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.btn.btn-sm { display: inline-block; width: auto; padding: 8px 14px; font-size: 14px; }

/* Tidligere — dempet og kompakt */
.bk-past { padding: 9px 0; }
.bk-past .bk-when { font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.bk-past .bk-status { font-size: 13px; color: var(--ink-soft); flex: 0 0 auto; }
.bk-receipt { display: inline-block; margin-top: 3px; font-size: 13px; color: var(--brass); background: none; border: 0; padding: 0; cursor: pointer; }
.bk-receipt:hover { text-decoration: underline; }

/* Sammenleggbart «Tidligere»-kort */
details.card-fold { padding-top: 0; padding-bottom: 0; }
details.card-fold > summary { list-style: none; cursor: pointer; padding: 18px 0; user-select: none; }
details.card-fold > summary::-webkit-details-marker { display: none; }
details.card-fold > summary h2 { margin: 0; }
details.card-fold > summary h2::after { content: '▾'; font-size: 12px; color: var(--ink-soft); margin-left: 4px; font-family: 'Instrument Sans', sans-serif; }
details.card-fold[open] > summary h2::after { content: '▴'; }
details.card-fold .fold-count { font-family: 'Instrument Sans', sans-serif; font-size: 13px; font-weight: 700; color: var(--ink-soft); background: var(--line-soft); border-radius: 99px; padding: 2px 9px; }
details.card-fold .fold-body { padding-bottom: 18px; }

.icon { width: 26px; height: 26px; stroke: var(--brass); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon-s { width: 17px; height: 17px; stroke: var(--brass); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  flex-wrap: wrap;
}

.brand {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}

.brand em { color: var(--brass); font-style: italic; }

.nav-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--green); }

.nav-links .nav-cta { color: #fff; background: var(--green); padding: 9px 18px; border-radius: 99px; }
.nav-links .nav-cta:hover { background: var(--green-press); color: #fff; }

@media (max-width: 600px) {
  .nav-links a:not(.nav-cta):not(:last-of-type) { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  margin-top: 18px;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  color: #f3ecdd;
  background:
    linear-gradient(100deg, rgba(8, 26, 19, 0.92) 0%, rgba(8, 26, 19, 0.72) 45%, rgba(8, 26, 19, 0.25) 100%),
    url('/img/golf-sunset.jpg') 70% 30% / cover no-repeat;
  animation: rise 0.7s ease both;
}

.hero-inner { padding: 64px 26px 30px; max-width: 560px; }

@media (min-width: 760px) { .hero-inner { padding: 92px 52px 40px; } }
@media (min-width: 1140px) { .hero-inner { padding: 130px 64px 48px; max-width: 640px; } }

.kicker {
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 10px;
  font-weight: 700;
}

.hero .kicker { color: var(--brass-bright); }

.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(44px, 8.5vw, 84px);
  line-height: 0.98;
  margin: 0;
  letter-spacing: -0.02em;
}

.hero h1 em { font-style: italic; color: var(--brass-bright); }

.hero .sub {
  margin: 18px 0 0;
  font-size: clamp(15.5px, 1.6vw, 17.5px);
  max-width: 46ch;
  color: #e6dfcd;
}

.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.hero-cta .btn { width: auto; display: inline-block; text-decoration: none; padding: 15px 28px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-top: 34px;
  padding: 18px 26px 22px;
  border-top: 1px solid rgba(243, 236, 221, 0.18);
  background: rgba(8, 26, 19, 0.35);
  backdrop-filter: blur(4px);
}

@media (min-width: 760px) { .hero-facts { padding: 20px 52px 24px; } }
@media (min-width: 1140px) { .hero-facts { padding: 22px 64px 26px; } }

.hero-facts div { flex: 1 1 33%; min-width: 150px; padding-right: 16px; }

.hero-facts b {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  color: var(--brass-bright);
}

.hero-facts span { font-size: 12.5px; color: #c9c0ab; letter-spacing: 0.04em; }

/* ---------- features ---------- */

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 22px;
  margin-top: 44px;
  padding: 0 4px;
}

@media (min-width: 900px) {
  .features { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .features .feature { padding: 4px 26px 4px 0; }
  .features .feature + .feature { border-left: 1px solid var(--line); padding-left: 26px; }
}

.feature b { display: block; margin-top: 10px; font-size: 15.5px; color: var(--ink); }
.feature p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- blokker ---------- */

.block { margin-top: 84px; }

@media (min-width: 1140px) { .block { margin-top: 110px; } }

.block-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--green);
  margin: 0 0 26px;
  max-width: 22ch;
}

.fineprint { font-size: 13px; color: var(--ink-soft); margin: 14px 2px 0; }

/* ---------- steg ---------- */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 22px;
}

@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 34px; } }

.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 16px; }

.steps li::before {
  content: '0' counter(step);
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: var(--brass);
  letter-spacing: 0.06em;
}

.steps b { display: block; font-size: 17px; color: var(--ink); margin-top: 6px; }
.steps p { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- priser ---------- */

.price-cards { display: grid; gap: 16px; }

@media (min-width: 680px) { .price-cards { grid-template-columns: 1fr 1fr; gap: 20px; } }

.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.price-card.highlight { border-color: color-mix(in srgb, var(--brass) 55%, var(--line)); background: linear-gradient(170deg, var(--brass-tint), var(--surface) 60%); }

.price-name { margin: 0; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }

.price-big {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(34px, 4.5vw, 44px);
  font-weight: 600;
  color: var(--green);
  margin: 10px 0 14px;
  letter-spacing: -0.01em;
}

.price-big small { font-size: 14px; color: var(--ink-soft); font-family: 'Instrument Sans', sans-serif; font-weight: 500; }

.price-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }

.price-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.price-list .icon-s { margin-top: 2px; }

.price-card .btn { margin-top: auto; text-decoration: none; }

.pill {
  display: inline-block;
  background: var(--brass);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 99px;
  padding: 2px 9px;
  margin-left: 7px;
  letter-spacing: 0.03em;
  vertical-align: 2px;
}

/* ---------- booking ---------- */

.booking-grid { display: grid; gap: 16px; }

@media (min-width: 1000px) {
  .booking-grid { grid-template-columns: 1.18fr 0.82fr; gap: 22px; align-items: start; }
  .booking-col-right { position: sticky; top: 84px; }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 760px) { .panel { padding: 26px; } }

.panel + .panel { margin-top: 16px; }

.panel-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.booking-hint { font-size: 13.5px; color: var(--ink-soft); margin: 14px 4px 0; }

/* dagstripe */

.day-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin-bottom: 12px; }

.day-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  color: var(--ink);
  padding: 9px 2px 8px;
  text-align: center;
  cursor: pointer;
  font: 600 13px/1.35 'Instrument Sans', sans-serif;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.day-chip small { display: block; font-weight: 600; color: var(--ink-soft); font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; }

.day-chip:hover { border-color: var(--brass); transform: translateY(-1px); }

.day-chip.selected { background: var(--green); border-color: var(--green); color: #fff; }
.day-chip.selected small { color: rgba(255, 255, 255, 0.75); }

.day-chip .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-top: 4px; background: var(--line); }
.day-chip .dot.free { background: var(--ok); }
.day-chip.selected .dot.free { background: var(--brass-bright); }

/* Kompakt datonavigasjon: pil ‹ — full dato — pil › (én tekstlig dato) */
.date-nav { display: flex; gap: 8px; align-items: center; margin-top: 12px; }

.date-nav button {
  flex: 0 0 40px;
  height: 40px;
  font-size: 19px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.date-nav button:hover { border-color: var(--brass); }

.date-label {
  flex: 1;
  text-align: center;
  color: var(--brass);
  font-size: 16px;
  font-style: italic;
  font-family: 'Fraunces', Georgia, serif;
}

.date-other { margin-top: 10px; text-align: center; }

.linkbtn {
  background: none;
  border: none;
  color: var(--ink-soft);
  font: 600 13.5px 'Instrument Sans', sans-serif;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}

.linkbtn:hover { color: var(--brass); }

.date-other input[type='date'] {
  display: block;
  margin: 10px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  padding: 9px 12px;
}

/* slots */

.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 4px; }

@media (min-width: 460px) { .slot-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 760px) { .slot-grid { grid-template-columns: repeat(6, 1fr); } }

.slot {
  position: relative;
  padding: 10px 0;
  font: 600 14px/1 'Instrument Sans', sans-serif;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.slot:hover:not(:disabled) { border-color: var(--brass); transform: translateY(-1px); }

.slot:disabled {
  color: #bcb5a2;
  background: transparent;
  border-color: var(--line-soft);
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.slot.selected { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }

.grid-note { margin: 12px 2px 0; font-size: 13.5px; color: var(--ink-soft); }

.grid-empty {
  padding: 26px 8px;
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  font-family: 'Fraunces', Georgia, serif;
}

/* varighet + pris */

.duration-row { display: flex; flex-wrap: wrap; gap: 8px; }

.duration-row .slot { flex: 1 0 116px; padding: 11px 6px; }

.price-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.price-line .label { color: var(--ink-soft); font-size: 14px; }

.price-line .amount {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 31px;
  font-weight: 600;
  color: var(--green);
}

/* skjema */

label.field {
  display: block;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

label.field input {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

label.field input:focus { border-color: var(--brass); box-shadow: 0 0 0 3px var(--brass-tint); }

.age-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.note-badge {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--brass);
  border: 1.5px solid var(--brass);
  border-radius: 6px;
  padding: 1px 5px;
  margin-top: 1px;
}

.note-icon { margin-top: 2px; }

label.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 14px; cursor: pointer; }
label.check input { margin-top: 3px; accent-color: var(--green); }

/* ---------- knapper ---------- */

.pay-buttons { margin-top: 18px; display: grid; gap: 10px; }

.btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font: 600 15.5px/1.2 'Instrument Sans', sans-serif;
  letter-spacing: 0.01em;
  text-align: center;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:active:not(:disabled) { transform: scale(0.985); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-vipps { background: var(--vipps); color: #fff; font-weight: 700; }
.btn-vipps:hover:not(:disabled) { background: var(--vipps-press); }

.btn-solid { background: var(--green); color: #fff; font-weight: 700; }
.btn-solid:hover:not(:disabled) { background: var(--green-press); color: #fff; }
body.theme-dark .btn-solid { color: #0c241a; }

.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover:not(:disabled) { border-color: var(--brass); color: var(--ink); }

.btn-ghost { background: rgba(8, 26, 19, 0.25); color: #f3ecdd; border-color: rgba(243, 236, 221, 0.4); backdrop-filter: blur(3px); }
.btn-ghost:hover:not(:disabled) { border-color: var(--brass-bright); color: #fff; }

/* eldre sider bruker disse navnene */
.btn-card { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-card:hover:not(:disabled) { border-color: var(--brass); }
.btn-brass { background: var(--green); color: #fff; font-weight: 700; }
.btn-brass:hover:not(:disabled) { background: var(--green-press); }
body.theme-dark .btn-brass { color: #0c241a; }

/* ---------- meldinger/status (undersider) ---------- */

.notice { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; }
.notice.error { background: var(--error-tint); border: 1px solid var(--error); color: var(--error); }
.notice.ok { background: var(--ok-tint); border: 1px solid var(--ok); color: var(--ok); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 18px;
  box-shadow: var(--shadow-soft);
  animation: rise 0.6s ease both;
}

.card h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--green);
}

.card h2 .step {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brass);
  background: var(--brass-tint);
  border-radius: 99px;
  padding: 3px 9px;
}

.masthead { padding: 26px 2px 18px; animation: rise 0.6s ease both; }

.masthead .kicker { margin: 0 0 6px; }

.masthead h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(34px, 9vw, 48px);
  line-height: 1.04;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--green);
}

.masthead h1 em { font-style: italic; color: var(--brass); }

.masthead .sub { margin: 10px 0 0; color: var(--ink-soft); font-size: 15px; max-width: 44ch; }

.status-hero { text-align: center; padding: 40px 16px 30px; }

.status-hero .big {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(30px, 8vw, 40px);
  font-weight: 600;
  margin: 14px 0 8px;
  color: var(--green);
}

.status-hero p { color: var(--ink-soft); margin: 0 auto; max-width: 42ch; }

.spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--brass);
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.checkmark {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  font-size: 30px;
  line-height: 56px;
  animation: pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}

@keyframes pop { from { transform: scale(0.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.detail-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.detail-table td { padding: 9px 4px; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.detail-table td:first-child { color: var(--ink-soft); width: 38%; }
.detail-table tr:last-child td { border-bottom: none; }

/* ---------- anlegget ---------- */

.facility { display: grid; gap: 20px; }

@media (min-width: 760px) { .facility { grid-template-columns: 300px 1fr; gap: 36px; align-items: center; } }
@media (min-width: 1140px) { .facility { grid-template-columns: 420px 1fr; gap: 56px; } }

.facility img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.facility .block-title { margin-bottom: 14px; }

.facility-text { color: var(--ink-soft); font-size: 15.5px; max-width: 52ch; margin: 0; }

.rules { margin: 18px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--ink-soft); display: grid; gap: 8px; }
.rules li { display: flex; gap: 9px; align-items: flex-start; }
.rules .icon-s { margin-top: 2px; }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; gap: 0 48px; }

@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1fr; } }

#faq details, .prose details { border-bottom: 1px solid var(--line); padding: 13px 2px; }

#faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
}

#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: '+'; color: var(--brass); font-size: 19px; font-weight: 400; }
#faq details[open] summary::after { content: '–'; }
#faq details p { color: var(--ink-soft); font-size: 14.5px; margin: 8px 0 2px; max-width: 60ch; }

/* ---------- footer ---------- */

.site-footer {
  margin-top: 100px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 40px 0 26px;
}

.footer-grid { display: grid; gap: 26px; }

@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 30px; } }

.footer-grid .brand { font-size: 21px; margin: 0; }

.footer-blurb { color: var(--ink-soft); font-size: 14px; max-width: 34ch; margin: 8px 0 0; }

.footer-head { font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 10px; }

.footer-grid a, .footer-muted {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14.5px;
  padding: 3px 0;
}

.footer-grid a:hover { color: var(--brass); }

.footer-muted { color: var(--ink-soft); }

.footer-meta {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--ink-soft);
}

/* eldre footer-element på undersider */
footer:not(.site-footer) { margin-top: 48px; text-align: center; font-size: 13px; color: var(--ink-soft); }
footer:not(.site-footer) a { color: var(--brass); text-decoration: none; font-weight: 600; }
footer:not(.site-footer) a:hover { text-decoration: underline; }

.prose { color: var(--ink-soft); font-size: 15px; }
.prose h2 { color: var(--green); }

/* ---------- kvittering (overlay + utskrift) ---------- */

.receipt-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  background: rgba(20, 30, 24, 0.5);
  backdrop-filter: blur(3px);
  animation: rise 0.25s ease both;
}

.receipt-sheet {
  background: #fffdf8;
  color: #1d3024;
  width: 100%;
  max-width: 460px;
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5);
}

.receipt-brand { font-family: 'Fraunces', Georgia, serif; font-size: 22px; font-weight: 600; color: #14382a; margin: 0; }
.receipt-foot-top { font-size: 12.5px; color: #65705f; margin: 2px 0 0; }
.receipt-h { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #a87f33; margin: 20px 0 10px; }

.receipt-table { width: 100%; border-collapse: collapse; }
.receipt-table td { padding: 7px 0; font-size: 14px; vertical-align: top; }
.receipt-table td:first-child { color: #65705f; width: 42%; }
.receipt-table td:last-child { text-align: right; font-weight: 500; }

.receipt-sums { margin-top: 8px; border-top: 1px solid #e6dfcb; padding-top: 4px; }
.receipt-sums .receipt-total td { font-family: 'Fraunces', Georgia, serif; font-size: 18px; font-weight: 600; color: #14382a; padding-top: 10px; border-top: 1px solid #e6dfcb; }

.receipt-note { margin: 14px 0 0; font-size: 12.5px; color: #65705f; font-style: italic; }

.receipt-actions { display: flex; gap: 10px; margin-top: 22px; }
.receipt-actions .btn { width: auto; flex: 1; }

@media print {
  body > *:not(.receipt-overlay) { display: none !important; }
  .receipt-overlay { position: static; padding: 0; background: none; backdrop-filter: none; display: block; }
  .receipt-sheet { box-shadow: none; max-width: none; padding: 0; }
  .receipt-actions { display: none !important; }
}

.hidden { display: none !important; }

/* Felles app-header for app-/sekundærsider (Min side, vilkår, status, …) —
   gir samme merkevare og navigasjon som forsiden. */
.app-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 243, 234, 0.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.app-header .shell {
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; gap: 12px;
}
.app-header .brand {
  font-family: 'Fraunces', Georgia, serif; font-size: 19px; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.app-header .brand em { font-style: normal; color: var(--brass); }
.app-header nav { display: flex; gap: 18px; align-items: center; }
.app-header nav a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 600; white-space: nowrap; transition: color 0.15s; }
.app-header nav a:hover { color: var(--brass); }
@media (max-width: 480px) {
  .app-header .shell { padding: 10px 14px; }
  .app-header .brand { font-size: 15.5px; white-space: nowrap; }
  .app-header nav { gap: 13px; }
  .app-header nav a { font-size: 13px; }
}

/* Booking-modal (Min side) */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(8, 26, 19, 0.55); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 14px; overflow-y: auto;
  animation: fade 0.18s ease both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: var(--paper, #fff); color: var(--ink);
  width: 100%; max-width: 440px; border-radius: 16px;
  padding: 20px 22px 24px; box-shadow: 0 24px 60px rgba(8, 26, 19, 0.32);
  animation: rise 0.25s ease both;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.modal-head h2 { margin: 0; font-size: 20px; }
.modal-x { background: none; border: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink-soft); padding: 4px 8px; }
.modal-x:hover { color: var(--ink); }
.modal-sub { margin: 16px 0 6px; font-weight: 600; font-size: 14px; color: var(--ink); }
.modal-price { margin: 10px 0 0; font-size: 18px; font-weight: 700; color: var(--brass); }
.modal-ident { margin: 14px 0 4px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.modal-ident summary { cursor: pointer; font-size: 14px; color: var(--ink-soft); }
.modal-ident .field { margin-top: 10px; }
