/* ==========================================================
   Rjukan LAN – hovedstil
   ========================================================== */
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #05070a;
  --bg-2: #0a0f0c;
  --panel: #0b1410;
  --line: #133a20;
  --line-2: #1d5a31;
  --text: #e6f2ea;
  --muted: #8fa89a;
  --green: #00ff66;
  --green-2: #00cc52;
  --green-dim: #0a3d1d;
  --red: #ff4d5e;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --glow: 0 0 6px rgba(0,255,102,.55), 0 0 22px rgba(0,255,102,.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: #7dffb0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); color: var(--green); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--green); color: #000; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* ---------- Topp ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  padding-top: max(18px, env(safe-area-inset-top));
}
.page-sub .site-header {
  position: sticky; top: 0;
  background: rgba(5,7,10,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo { flex: none; display: block; transition: transform .2s ease, opacity .2s; }
.brand-logo:hover { transform: translateY(-1px); opacity: .9; }
.brand-logo img { height: 46px; width: auto; max-width: 160px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; color: var(--text); min-width: 0; }
.brand-presents { font-size: .78rem; color: var(--muted); letter-spacing: .06em; }
.brand-event { font-weight: 700; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text:hover .brand-event { color: var(--green); }

/* Nedtrekksmeny */
.menu { position: relative; flex: none; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .95rem var(--sans); color: var(--text);
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.18);
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .2s, background .2s;
}
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { border-color: var(--green); background: rgba(0,0,0,.7); }
.menu-icon { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.menu-icon i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 220px; margin: 0; padding: 8px; list-style: none;
  background: rgba(8,12,10,.97); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.menu.open .menu-list { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu-list a {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-weight: 500;
}
.menu-list a:hover, .menu-list a:focus-visible { background: var(--green-dim); color: var(--green); }
.menu-list a[aria-current="page"] { color: var(--green); }
.menu-list a[aria-current="page"]::before { content: "> "; font-family: var(--mono); }

/* ---------- Forside ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center; text-align: center;
  padding: 110px var(--gutter) 80px; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; background-color: #000; background-position: center; background-size: cover; background-repeat: no-repeat; transform: scale(1.04); animation: heroZoom 30s ease-in-out infinite alternate; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,calc(var(--overlay) * .55)) 0%, rgba(0,0,0,var(--overlay)) 70%),
    linear-gradient(to bottom, rgba(5,7,10,.55) 0%, transparent 25%, transparent 70%, rgba(5,7,10,.9) 100%);
}
@keyframes heroZoom { to { transform: scale(1.12); } }
.hero-inner { max-width: 960px; width: 100%; }

.countdown-label {
  margin: 0 0 14px; font-family: var(--mono); font-size: clamp(1rem, 2.4vw, 1.35rem);
  text-transform: uppercase; letter-spacing: .3em; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.countdown { display: flex; justify-content: center; align-items: flex-start; gap: clamp(6px, 2vw, 22px); }
.cd-unit { display: flex; flex-direction: column; align-items: center; min-width: clamp(62px, 15vw, 150px); }
.cd-num {
  font-family: var(--mono); font-weight: 700; line-height: 1;
  font-size: clamp(2.6rem, 11vw, 7.5rem); color: #fff; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 2px #fff, 0 0 18px rgba(0,255,102,.55), 0 4px 30px rgba(0,0,0,.6);
}
.cd-lbl { margin-top: 10px; font-size: clamp(.7rem, 1.6vw, .9rem); color: var(--green); text-transform: uppercase; letter-spacing: .25em; font-family: var(--mono); }
.cd-sep { font-family: var(--mono); font-size: clamp(2rem, 8vw, 5.5rem); line-height: 1.05; color: var(--green); opacity: .7; animation: blink 1s steps(2, start) infinite; }
.countdown.done .cd-unit, .countdown.done .cd-sep { display: none; }
.countdown-done-text { font-family: var(--mono); font-size: clamp(2rem, 7vw, 4.5rem); color: var(--green); text-shadow: var(--glow); }
.countdown-date { margin: 18px 0 0; color: rgba(255,255,255,.8); font-size: clamp(.9rem, 2vw, 1.05rem); text-shadow: 0 2px 10px rgba(0,0,0,.8); }
@keyframes blink { to { visibility: hidden; } }

.booking-cta { margin-top: clamp(30px, 6vh, 56px); }
.matrix-link {
  display: inline-flex; align-items: center; gap: .35em;
  font-family: var(--mono); font-weight: 700; font-size: clamp(1.5rem, 4.5vw, 2.4rem);
  color: var(--green); text-decoration: none; text-transform: uppercase; letter-spacing: .12em;
  padding: .45em 1.1em; border: 2px solid var(--green); border-radius: 6px;
  background: rgba(0,20,8,.55); text-shadow: var(--glow);
  box-shadow: inset 0 0 18px rgba(0,255,102,.12), 0 0 24px rgba(0,255,102,.2);
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}
a.matrix-link:hover, a.matrix-link:focus-visible {
  background: var(--green); color: #001a09; text-shadow: none; transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0,255,102,.55);
}
.ml-bracket { opacity: .75; }
.ml-cursor { animation: blink 1s steps(2, start) infinite; }
.matrix-link.is-soldout { color: var(--red); border-color: var(--red); text-shadow: 0 0 12px rgba(255,77,94,.6); box-shadow: 0 0 24px rgba(255,77,94,.2); cursor: default; }
.matrix-link.is-disabled { color: var(--muted); border-color: var(--muted); text-shadow: none; box-shadow: none; font-size: clamp(1rem, 3vw, 1.4rem); cursor: default; }
.tickets-left { margin: 14px 0 0; font-family: var(--mono); color: rgba(255,255,255,.85); font-size: .95rem; text-shadow: 0 2px 8px #000; }

.page-home:not(.has-news) .site-footer { position: absolute; bottom: 0; left: 0; right: 0; background: none; border: 0; }
.page-home main { position: relative; }

/* Nyheter på forsiden: nedtellingen blir liggende og forsvinner bak nyhetene */
.has-news .hero { position: sticky; top: 0; z-index: 0; --p: 0; }
.has-news .hero-inner {
  opacity: calc(1 - var(--p) * 1.4);
  transform: translateY(calc(var(--p) * -70px)) scale(calc(1 - var(--p) * .22));
  filter: blur(calc(var(--p) * 6px));
  will-change: transform, opacity;
}
.has-news .hero::after { opacity: calc(1 + var(--p)); }
.scroll-hint {
  position: absolute; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--green); text-decoration: none; font-family: var(--mono); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .25em; text-shadow: 0 2px 8px #000;
  opacity: calc(1 - var(--p) * 5); transition: color .2s;
}
.scroll-hint span { padding-left: .25em; }
.scroll-hint svg { animation: hintBounce 1.8s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(0,255,102,.6)); }
.scroll-hint:hover { color: #fff; }
@keyframes hintBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

.home-news {
  position: relative; z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -30px 60px rgba(0,0,0,.6), 0 -1px 0 rgba(0,255,102,.25);
  padding: clamp(48px, 8vw, 90px) var(--gutter) clamp(56px, 8vw, 96px);
  scroll-margin-top: 0;
}
.home-news::before {
  content: ""; position: absolute; left: 50%; top: -1px; width: min(420px, 60%); height: 2px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--green), transparent); box-shadow: 0 0 18px var(--green);
}
.home-news-inner { max-width: 1100px; margin: 0 auto; }
.home-news-title { margin: 0 0 clamp(22px, 4vw, 36px); font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.1; }
.home-news-title::before { content: "> "; color: var(--green); font-family: var(--mono); font-weight: 400; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.news-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.news-card.is-latest { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.news-card.is-latest:not(:has(.news-img)) { grid-template-columns: 1fr; }
.news-img { display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.news-card.is-latest .news-img { aspect-ratio: auto; min-height: 260px; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-img img { transform: scale(1.04); }
.news-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-card.is-latest .news-body { padding: clamp(20px, 3vw, 32px); justify-content: center; }
.news-date { font-family: var(--mono); font-size: .8rem; color: var(--green); text-transform: uppercase; letter-spacing: .1em; }
.news-body h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.news-card.is-latest h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.news-body h3 a { color: var(--text); text-decoration: none; }
.news-body h3 a:hover { color: var(--green); }
.news-body p { margin: 0; color: var(--muted); flex: 1; }
.news-more { margin-top: 6px; font-weight: 500; text-decoration: none; align-self: flex-start; }
.news-all { margin: 28px 0 0; text-align: center; }

/* Nyhetssiden */
.narrow-news { max-width: 800px; }
.news-list { display: flex; flex-direction: column; gap: 22px; }
.news-post { padding: clamp(20px, 4vw, 32px); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; scroll-margin-top: 100px; }
.news-post:target { border-color: var(--green); box-shadow: 0 0 0 1px rgba(0,255,102,.25), 0 0 30px rgba(0,255,102,.12); }
.news-post h2 { margin: 4px 0 14px; font-size: clamp(1.4rem, 3.5vw, 1.9rem); line-height: 1.2; }
.news-post-img { width: 100%; border-radius: 12px; margin: 0 0 16px; }
.news-text { color: #cfe2d6; }
.news-text p { margin: 0 0 .9em; }
.news-text p:last-child { margin-bottom: 0; }

/* ---------- Bestillingsskjema ---------- */
dialog.booking {
  width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 1px solid var(--line-2); border-radius: 16px;
  background: var(--panel); color: var(--text);
  box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(0,255,102,.08);
}
dialog.booking[open] { display: flex; animation: popIn .22s ease-out; }
dialog.booking::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.booking-form { display: flex; flex-direction: column; width: 100%; max-height: calc(100dvh - 24px); }
.booking-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.booking-head h2 { margin: 0; font-size: 1.3rem; }
.booking-head h2::before { content: "> "; color: var(--green); font-family: var(--mono); }
.booking-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.booking-close:hover { border-color: var(--green); color: var(--green); }
.booking-body { padding: 18px 22px; overflow-y: auto; overscroll-behavior: contain; }
.booking-intro { margin: 0 0 16px; color: var(--muted); }
.booking-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 22px; border-top: 1px solid var(--line); background: rgba(0,0,0,.25);
}
.total { font-size: 1rem; color: var(--muted); }
.total strong { color: #fff; font-size: 1.25rem; margin-left: 6px; }
.pay-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.qty-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.qty-row > label { font-weight: 500; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.qty input { width: 56px; text-align: center; border: 0; border-radius: 0; background: var(--bg); font-family: var(--mono); font-size: 1.1rem; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 42px; border: 0; background: var(--green-dim); color: var(--green); font-size: 1.3rem; cursor: pointer; }
.qty-btn:hover { background: var(--line-2); }
.qty-btn:disabled { opacity: .35; cursor: not-allowed; }
.qty-left { font-family: var(--mono); color: var(--green); font-size: .9rem; }

fieldset.ticket {
  margin: 0 0 14px; padding: 14px 16px 6px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(0,0,0,.22); animation: popIn .2s ease-out;
}
fieldset.ticket legend { padding: 0 8px; font-weight: 700; }
.t-num { font-family: var(--mono); color: var(--green); }
.t-note { color: var(--muted); font-weight: 400; font-size: .9rem; margin-left: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.span2 { grid-column: 1 / -1; }
.booking label, .form label { display: flex; flex-direction: column; gap: 5px; font-size: .9rem; color: #cfe2d6; margin-bottom: 8px; }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,255,102,.15); }
input.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,77,94,.15); }
.guardian { margin-top: 4px; padding: 12px 14px 4px; border-radius: 10px; background: rgba(0,255,102,.05); border: 1px dashed var(--line-2); }
.guardian-title { margin: 0 0 10px; font-weight: 500; color: var(--green); font-size: .92rem; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; padding: 0; }
.link-btn:hover { color: var(--green); }
label.check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; margin: 8px 0 4px; cursor: pointer; }
label.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--green); }
.form-errors { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: rgba(255,77,94,.1); border: 1px solid rgba(255,77,94,.4); color: #ffc2c8; font-size: .92rem; }
.form-errors ul { margin: 0; padding-left: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-pay {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 10px; border: 0; cursor: pointer;
  font: 700 1rem var(--sans); transition: transform .15s, filter .15s, opacity .15s;
}
.btn-pay:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-pay:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-vipps { background: #ff5b24; color: #fff; }
.btn-card { background: #fff; color: #111; }
.btn-confirm { background: var(--green); color: #001a09; }

/* ---------- Undersider ---------- */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: clamp(36px, 7vw, 80px) var(--gutter); }
.page-wrap.narrow { max-width: 640px; }
.page-head { margin-bottom: clamp(26px, 5vw, 48px); max-width: 760px; }
.page-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.page-title { margin: 0 0 10px; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; font-weight: 700; }
.page-title::before { content: "> "; color: var(--green); font-family: var(--mono); font-weight: 400; }
.page-intro { color: var(--muted); font-size: 1.05rem; }
.page-intro p { margin: 0 0 .6em; }
.page-intro.lead { font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: #d3e6da; }
.empty { padding: 30px; border: 1px dashed var(--line-2); border-radius: var(--radius); text-align: center; color: var(--muted); }

/* FAQ */
.page-faq { background: #000; }
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #000; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item:hover { border-color: var(--line-2); }
.faq-item.open { border-color: var(--green); box-shadow: 0 0 0 1px rgba(0,255,102,.2), 0 0 30px rgba(0,255,102,.12); }
.faq-q { margin: 0; font-size: 1rem; }
.faq-q button {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 18px 20px; background: none; border: 0; cursor: pointer;
  font: 500 clamp(1rem, 2.2vw, 1.12rem) var(--mono); color: var(--green);
}
.faq-prompt { opacity: .6; }
.faq-text { flex: 1; }
.faq-icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--green); transition: transform .25s; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item.open .faq-icon::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; padding: 0 20px 0 46px; font-family: var(--mono); color: #41ff8a; font-size: .97rem; line-height: 1.7; }
.faq-item.open .faq-a-inner { padding-bottom: 18px; }
.faq-a-inner p { margin: 0 0 .7em; }
.faq-a-inner a { color: #b4ffd0; }

/* Sponsorer */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.sponsor-card {
  display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.sponsor-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.sponsor-logo { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 24px; background: #fff; }
.sponsor-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.sponsor-initials { font: 700 2.4rem var(--mono); color: #0b1410; opacity: .4; }
.sponsor-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.sponsor-body h2 { margin: 0 0 6px; font-size: 1.2rem; }
.sponsor-desc { color: var(--muted); font-size: .95rem; flex: 1; }
.sponsor-desc p { margin: 0 0 .6em; }
.sponsor-link { margin-top: 8px; font-weight: 500; text-decoration: none; }

/* Kontakt / CREW */
.crew-title {
  margin: 0 0 12px; font-size: clamp(3.2rem, 13vw, 7rem); font-weight: 700; line-height: 1;
  letter-spacing: .08em; color: #fff; text-shadow: 0 0 30px rgba(0,255,102,.35);
}
.crew-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.crew-grid > .crew-card { flex: 0 1 190px; }
.page-contact .page-wrap { max-width: 1180px; }
.crew-card { text-align: center; padding: 22px 16px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); transition: transform .2s, border-color .2s; }
.crew-card:hover { transform: translateY(-3px); border-color: var(--green); }
.crew-photo { width: min(160px, 70%); aspect-ratio: 1; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; border: 3px solid var(--green); box-shadow: 0 0 24px rgba(0,255,102,.25); background: var(--bg); }
.crew-photo img { width: 100%; height: 100%; object-fit: cover; }
.crew-name { margin: 0; font-size: 1.15rem; }
.crew-role { margin: 2px 0 8px; font-family: var(--mono); color: var(--green); font-size: .88rem; text-transform: uppercase; letter-spacing: .08em; }
.crew-desc { color: var(--muted); font-size: .92rem; }
.crew-desc p { margin: 0 0 .5em; }
.contact-box { margin: clamp(40px, 7vw, 70px) auto 0; max-width: 680px; text-align: center; padding: 28px; border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(180deg, rgba(0,255,102,.06), transparent); }
.contact-box h2 { margin: 0 0 8px; }
.contact-box p { margin: 0 0 .6em; color: var(--muted); }
.contact-lines { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; font-size: 1.1rem; font-weight: 500; }

/* Resultat etter bestilling */
.result-card { text-align: center; padding: clamp(24px, 5vw, 44px); border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); }
.result-card .page-title::before { content: none; }
.result-icon { width: 66px; height: 66px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; }
.result-icon.ok { background: var(--green); color: #001a09; box-shadow: 0 0 40px rgba(0,255,102,.45); }
.result-icon.bad { background: var(--red); color: #fff; }
.result-icon.spin { border: 4px solid var(--line-2); border-top-color: var(--green); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ticket-list { list-style: none; padding: 0; margin: 20px 0; text-align: left; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ticket-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.25); }
.ticket-list li:last-child { border-bottom: 0; }
.ticket-list code { font-weight: 700; font-size: 1.05rem; }
.btn-outline { display: inline-block; margin-top: 8px; padding: 10px 20px; border: 1px solid var(--green); border-radius: 10px; text-decoration: none; font-weight: 500; }
.btn-outline:hover { background: var(--green); color: #001a09; }

/* ---------- Bunn ---------- */
.site-footer { padding: 22px var(--gutter); text-align: center; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
.site-footer p { margin: 0; }
.page-home .site-footer { color: rgba(255,255,255,.55); }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .news-card.is-latest { grid-template-columns: 1fr; }
  .news-card.is-latest .news-img { aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 640px) {
  .crew-grid > .crew-card { flex: 1 1 150px; max-width: 220px; }
  .brand-logo img { height: 36px; max-width: 110px; }
  .brand { gap: 10px; }
  .brand-event { font-size: .98rem; }
  .menu-label { display: none; }
  .menu-toggle { padding: 11px; }
  .cd-sep { display: none; }
  .countdown { gap: 4px; }
  .cd-unit { min-width: 0; flex: 1; }
  .grid2 { grid-template-columns: 1fr; gap: 0; }
  .booking-head, .booking-body, .booking-foot { padding-left: 16px; padding-right: 16px; }
  .pay-buttons, .btn-pay { width: 100%; }
  .booking-foot { flex-direction: column; align-items: stretch; }
  dialog.booking { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .booking-form { max-height: 100dvh; height: 100%; }
  .booking-body { flex: 1; }
}
@media (max-width: 380px) {
  .brand-presents { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .has-news .hero-inner { transform: none !important; filter: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Salgsvilkår og firmainfo ---------- */
.price-line { margin: 6px 0 0; font-family: var(--mono); color: var(--green); font-size: .95rem; text-shadow: 0 2px 8px #000; }
.booking-terms-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .82rem; line-height: 1.5; color: var(--muted); }
.booking-terms-note a, label.check a { white-space: nowrap; }
.terms { display: flex; flex-direction: column; gap: 4px; }
.terms-section { padding: 18px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.terms-section h2 { margin: 0 0 8px; font-size: 1.15rem; }
.terms-section p { margin: 0 0 .7em; color: #cfe2d6; }
.terms-section p:last-child { margin-bottom: 0; }
.terms-company { margin-top: 32px; padding: 22px 24px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); }
.terms-company h2 { margin: 0 0 10px; font-size: 1.1rem; }
.terms-company dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.terms-company dt { color: var(--muted); }
.terms-company dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.site-footer { display: flex; flex-direction: column; gap: 6px; }
.company-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.site-footer a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--green); }
