/* Layout: delt topp (marineblå tekst | foto) → om dagen + sitater → program i kort → blå påmeldingsblokk → fot */
:root {
  --navy: #002554;
  --gold: #f1b434;
  --gold-hover: #f6c75d;
  --page: #eeeeee;
  --card: #ffffff;
  --ink: #1a1a1a;
  --muted: #5b6474;
  --line: #dde1e7;
  --on-navy: rgba(255,255,255,.78);
  --navy-line: rgba(255,255,255,.16);
  --err: #ffb4ab;
  --ok: #3fa56f;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
img { max-width: 100%; }
body { margin: 0; background: var(--card); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 6vw, 64px); }
h1, h2, h3 { text-wrap: balance; line-height: 1.12; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Topp ---------- */
.hero { position: relative; color: #fff; background: #1a1a1a url("img/topp.jpg") center 38% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,37,84,.85) 0%, rgba(0,37,84,.65) 45%, rgba(0,37,84,.35) 100%); }
.hero-text { position: relative; min-height: clamp(380px, 48vw, 540px); padding-block: 64px 56px; display: grid; gap: 18px; align-content: center; justify-items: start; text-align: left; }
.hero .label { color: var(--gold); text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 800; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero .sub { font-size: clamp(1.05rem, 2vw, 1.35rem); color: rgba(255,255,255,.92); max-width: 40ch; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.hero .btn-gold { margin-top: 10px; }

/* Infostripe */
.strip { background: var(--navy); color: #fff; }
.strip-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.strip-inner div { padding: 20px 24px; display: grid; gap: 3px; min-width: 0; }
.strip-inner div:first-child { padding-left: 0; }
.strip-inner div + div { border-left: 1px solid var(--navy-line); }
.strip .label { font-size: 11px; color: var(--gold); }
.strip b { font-size: 16.5px; font-weight: 700; }
.strip-link { font-size: 13.5px; color: rgba(255,255,255,.8); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.strip-link:hover { color: #fff; }

/* Sted */
.place { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: stretch; }
.place-text { display: grid; gap: 16px; align-content: start; }
.place .section-head { margin-bottom: 0; }
address { font-style: normal; font-size: 17px; line-height: 1.6; }
.place-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-map { display: inline-flex; align-items: center; background: var(--navy); color: #fff; font: 600 14.5px/1 var(--font); padding: 12px 18px; border-radius: 6px; text-decoration: none; border: 1.5px solid var(--navy); }
.btn-map:hover { background: #fff; color: var(--navy); }
.btn-map.ghost { background: transparent; color: var(--navy); }
.btn-map.ghost:hover { background: var(--navy); color: #fff; }
.place-note { font-size: 14px; color: var(--muted); }
.more { margin-top: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.more summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 20px 4px; font-weight: 600; color: var(--navy); }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.more[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.more summary:hover { color: var(--ink); }
.practical { margin: 0 0 16px; display: grid; gap: 10px; }
.practical div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
.practical dt { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.practical dd { margin: 0; }
.map { position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 260px; max-width: 100%; box-shadow: 0 10px 30px rgba(0,37,84,.10); }
.map svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.map-cta { position: absolute; right: 12px; bottom: 12px; background: #fff; color: var(--navy); font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.map:hover .map-cta { background: var(--gold); }
@media (max-width: 760px) { .place { grid-template-columns: minmax(0, 1fr); gap: 24px; } .map { min-height: 0; aspect-ratio: 400 / 260; } }
.seats-hero { font-size: 14.5px; color: rgba(255,255,255,.9); font-variant-numeric: tabular-nums; text-shadow: 0 1px 8px rgba(0,0,0,.4); }

.btn-gold { display: inline-flex; align-items: center; gap: 10px; background: var(--gold); color: var(--navy); font: 700 16px/1 var(--font); padding: 16px 28px; border: 0; border-radius: 6px; cursor: pointer; text-decoration: none; transition: background .15s, transform .15s; }
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-1px); }
.btn-gold svg { width: 16px; height: 16px; }

/* ---------- Innhold ---------- */
main { display: grid; gap: 72px; padding-block: 72px 88px; }
.section-head { display: grid; gap: 8px; margin-bottom: 26px; }
.section-head .label { color: var(--gold); }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.25rem); font-weight: 800; color: var(--navy); }

.about { display: grid; gap: 36px; }
.about .lead { font-size: 18px; line-height: 1.65; max-width: 62ch; }
.fit { display: grid; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 32px; }
.fit .label { color: var(--gold); }
.audience { display: grid; gap: 8px; }
.try-text { font-size: 17px; line-height: 1.55; color: var(--ink); }

/* Bildekarusell: sveip på mobil, piler og prikker på PC */
.carousel { position: relative; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: var(--radius); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 480px; object-fit: cover; object-position: center 40%; scroll-snap-align: start; display: block; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.18); display: grid; place-items: center; }
.car-btn:hover { background: var(--gold); }
.car-btn.prev { left: 14px; }
.car-btn.next { right: 14px; }
.car-btn:disabled { opacity: 0; pointer-events: none; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--navy); width: 22px; border-radius: 99px; }
@media (max-width: 640px) { .car-btn { display: none; } }

.quotes-wrap { display: grid; gap: 14px; }
.quotes-head { font-size: 14px; font-weight: 600; color: var(--muted); }
.quotes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.quotes li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 36px 30px 44px; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 640px) { .quotes li { padding: 24px 24px 24px 28px; } }
.quotes q { flex: 1; font-size: 17px; font-weight: 500; line-height: 1.5; quotes: none; color: var(--navy); }
.quotes cite { font-style: normal; font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.stars { display: block; color: var(--gold); font-size: 20px; letter-spacing: 3px; line-height: 1; margin-bottom: 4px; }
@media (max-width: 640px) { .quotes { grid-template-columns: minmax(0, 1fr); } }

.program-head { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.program { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.program li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; align-content: center; padding-block: 18px; border-bottom: 1px solid var(--line); }
.program li::before { content: ""; grid-row: 1 / span 2; align-self: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8.5' fill='none' stroke='%23002554' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.program li:last-child { border-bottom: 0; }
.program b { grid-column: 2; font-weight: 600; font-size: 16.5px; color: var(--ink); }
.program span { grid-column: 2; font-size: 14px; color: var(--muted); }
.prog-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- Påmelding (hvitt kort) ---------- */
.signup { scroll-margin-top: 16px; width: 100%; max-width: 720px; justify-self: center; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 36px 28px; display: grid; gap: 20px; box-shadow: 0 20px 48px rgba(0,37,84,.10); }
.signup-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.signup-head .label { color: var(--muted); }
.signup h2 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 800; color: var(--navy); }
.signup .hint { color: var(--muted); font-size: 14px; margin-top: -8px; }
.seats-bar { display: none; }
.seats-text { font-size: 14px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.seats-bar { height: 6px; background: var(--page); border-radius: 99px; overflow: hidden; }
.seats-bar span { display: block; height: 100%; background: var(--gold); border-radius: 99px; transition: width .4s; }

form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 480px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
#middag-felt.invalid .segmented { box-shadow: 0 0 0 1.5px #b3261e; }
.field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.full { grid-column: 1 / -1; }
.field > label, legend { font-weight: 500; font-size: 14px; color: var(--ink); }
.req { color: #b3261e; }
.optional { font-weight: 400; color: var(--muted); font-size: 13.5px; }
input[type=text], input[type=email], textarea { width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink); background: #f4f5f7; border: 1.5px solid transparent; border-radius: 10px; padding: 13px 16px; }
input::placeholder, textarea::placeholder { color: #8a92a0; }
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.field.invalid input { border-color: #b3261e; }
.err { color: #b3261e; font-size: 13.5px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #f4f5f7; border-radius: 8px; max-width: 360px; margin-top: 7px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { text-align: center; padding: 9px 12px; border-radius: 6px; cursor: pointer; font-weight: 500; color: var(--muted); transition: background .15s, color .15s; }
.segmented input:checked + label { background: var(--navy); color: #fff; font-weight: 700; }
.segmented input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.anon { background: #fff8e6; border: 1px solid #f6dc9c; border-radius: 10px; padding: 16px; }
.anon textarea { background: #fff; }
.anon-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--navy); padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: 2px; }
.colleagues { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 20px; }
.colleagues-head { display: grid; gap: 2px; }
.colleagues-head b { color: var(--navy); font-size: 15.5px; }
#kolleger { display: grid; gap: 14px; }
#kolleger:empty { display: none; }
.colleague { display: grid; gap: 14px; background: #f8f9fb; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.colleague input[type=text], .colleague input[type=email] { background: #fff; }
.colleague .segmented { background: #fff; border: 1px solid var(--line); }
.colleague-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.colleague-top b { color: var(--navy); font-size: 15px; }
.btn-remove { background: none; border: 0; color: var(--muted); font: 500 13.5px/1 var(--font); cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.btn-remove:hover { color: #b3261e; }
.btn-add { justify-self: start; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--navy); border: 1.5px dashed var(--navy); border-radius: 6px; font: 600 14.5px/1 var(--font); padding: 12px 18px; cursor: pointer; }
.btn-add span { font-size: 18px; line-height: 1; }
.btn-add:hover { background: var(--navy); color: #fff; border-style: solid; }
.form-foot { display: grid; gap: 16px; justify-items: start; }
.privacy { font-size: 12.5px; color: var(--muted); }
.signup .btn-gold { border-radius: 6px; padding: 15px 24px; }

.confirmed { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; align-items: start; background: #f4f5f7; border-radius: 12px; padding: 22px; }
.confirmed-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-size: 22px; font-weight: 800; }
.confirmed b { display: block; font-size: 18px; color: var(--navy); }
.confirmed p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.confirmed-actions { grid-column: 2; display: flex; gap: 10px; flex-wrap: wrap; }
.share { grid-column: 2; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.share b { font-size: 15px; }
.share p { margin: 0; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-share { background: var(--navy); color: #fff; border: 0; border-radius: 6px; font: 600 14px/1 var(--font); padding: 11px 18px; cursor: pointer; }
.btn-share:hover { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.share-status { font-size: 13.5px; color: var(--muted); }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); border-radius: 6px; font: 500 14px/1 var(--font); padding: 9px 16px; cursor: pointer; }
.btn-ghost:hover { border-color: var(--navy); }

.guests-btn { justify-self: stretch; text-align: left; font: 500 14px/1 var(--font); color: var(--navy); background: none; border: 0; border-top: 1px solid var(--line); padding: 20px 0 0; cursor: pointer; }
.guests-btn:hover { color: var(--gold-dark, #c98f12); }
.guests-btn span { display: inline-block; transition: transform .15s; }
.guests-btn:hover span { transform: translateX(3px); }

.dlg { width: min(520px, calc(100vw - 32px)); max-height: min(660px, calc(100vh - 48px)); border: 0; border-radius: 14px; padding: 0; background: var(--card); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.dlg::backdrop { background: rgba(0,37,84,.55); }
.dlg[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.dlg-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.dlg-head h2 { font-size: 1.35rem; color: var(--navy); }
.dlg-head p { font-size: 14px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.dlg-close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--page); font-size: 22px; line-height: 1; cursor: pointer; color: var(--navy); }
.guest-list { list-style: none; margin: 0; padding: 8px 24px 20px; overflow-y: auto; }
.guest-list li { display: grid; gap: 2px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.guest-list li:last-child { border-bottom: 0; }
.guest-list .n { font-weight: 600; overflow-wrap: anywhere; }
.guest-list .c { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.guest-list li.me .n::after { content: " (deg)"; color: var(--muted); font-weight: 500; }

footer { background: var(--navy); color: #fff; }
.foot { padding-block: 44px; display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-start; justify-content: space-between; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.foot-col { display: grid; gap: 3px; align-content: start; font-size: 14.5px; color: var(--on-navy); }
.foot-col .label { font-size: 11px; color: var(--gold); margin-bottom: 6px; }
.foot-col b { color: #fff; font-size: 15px; }
.foot-col a { color: #fff; text-decoration: none; width: fit-content; }
.foot-col a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.logo { width: 190px; max-width: 60%; height: auto; display: block; }
.deadline { color: var(--navy); }
@media (max-width: 600px) {
  main { gap: 48px; padding-block: 44px 56px; }
  .hero-text { padding-block: 48px 44px; }
  /* Infostripen: dato og tid side om side, sted under – alt venstrestilt */
  .strip-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-inner div { padding: 14px 16px; }
  .strip-inner div:nth-child(odd) { padding-left: 0; }
  .strip-inner div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--navy-line); }
  .strip .label { font-size: 10.5px; letter-spacing: .1em; }
  .strip b { font-size: 15px; line-height: 1.3; }
  form { grid-template-columns: minmax(0, 1fr); }
  .btn-gold { width: 100%; justify-content: center; }
  .confirmed { grid-template-columns: minmax(0, 1fr); }
  .confirmed-actions, .share { grid-column: 1; }
}
@media (max-width: 420px) { .signup { padding: 28px 20px; } }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--navy); color: #fff; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 20px rgba(0,37,84,.2); }
.sticky-cta .btn-gold { width: auto; padding: 12px 20px; border-radius: 6px; font-size: 15px; }
.sticky-text { font-size: 13.5px; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; }
@media (min-width: 761px) { .sticky-cta { display: none !important; } }
/* Om dagen og Program: under hverandre med luft på mobil, side om side på PC */
.intro { display: grid; gap: 48px; }
/* ---------- PC ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: var(--navy); color: #fff; box-shadow: 0 4px 18px rgba(0,37,84,.25); padding-top: env(safe-area-inset-top, 0px); }
.topbar-inner { display: flex; align-items: center; gap: 28px; padding-block: 18px; }
.topbar-logo { width: 150px; height: auto; }
.topbar-text { flex: 1; font-size: 15.5px; color: var(--on-navy); min-width: 0; }
.topbar-text b { color: #fff; }
.topbar .btn-gold { padding: 14px 24px; border-radius: 6px; font-size: 15.5px; }
@media (max-width: 760px) { .topbar { display: none !important; } }
@media (max-width: 1000px) { .topbar-text { display: none; } .topbar-inner { justify-content: space-between; } }

@media (min-width: 980px) {
  .hero-text { min-height: 500px; }
  .intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 112px; align-items: start; }
  .program-sec { padding-top: 4px; }
  .program { max-width: none; }
  .gallery-sec .quotes-wrap { gap: 18px; }
  .signup-grid { display: grid; }
  .signup-grid .signup { max-width: 860px; padding: 44px 48px; }
  .signup form .row2 { gap: 20px; }
}
@media (min-width: 980px) and (hover: hover) {
  .quotes li { transition: border-color .15s; }
  .quotes li:hover { border-color: #c9ced6; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }

/* Tilstander for ekte påmelding */
.form-status { font-size: 14px; color: #b3261e; }
.form-status:empty { display: none; }
.btn-gold:disabled { opacity: .6; cursor: progress; transform: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist { background: #fff3d1; color: var(--ink); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; }
.closed { background: #f4f5f7; border-radius: 12px; padding: 22px; color: var(--ink); }
.closed b { color: var(--navy); display: block; font-size: 17px; margin-bottom: 4px; }
