/* ── jegerprovetest.no — skogpalett fra Lovable-designet ─────────────── */
:root {
  --bg:            hsl(45 30% 97%);
  --fg:            hsl(150 30% 15%);
  --card:          hsl(45 25% 95%);
  --primary:       hsl(150 45% 23%);
  --primary-dark:  hsl(150 45% 18%);
  --primary-fg:    hsl(45 30% 97%);
  --secondary:     hsl(35 35% 88%);
  --muted:         hsl(45 20% 90%);
  --muted-fg:      hsl(150 15% 40%);
  --accent:        hsl(28 85% 55%);
  --accent-fg:     hsl(45 30% 97%);
  --border:        hsl(150 15% 85%);
  --correct:       hsl(142 70% 38%);
  --correct-soft:  hsl(142 60% 94%);
  --incorrect:     hsl(0 70% 48%);
  --incorrect-soft:hsl(0 70% 96%);
  --radius: 0.5rem;
  --hero-gradient: linear-gradient(135deg, hsl(150 45% 20%) 0%, hsl(150 40% 28%) 50%, hsl(140 35% 32%) 100%);
  --shadow-md: 0 4px 12px hsl(150 30% 15% / 0.08);
  --shadow-lg: 0 8px 24px hsl(150 30% 15% / 0.12);
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); }
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.25; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }
.text-center { text-align: center; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-sans); font-weight: 700; font-size: 1rem;
  padding: .7rem 1.4rem; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: var(--accent-fg); }
.btn-accent:hover { filter: brightness(.93); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--primary-fg); }
.btn-secondary { background: var(--secondary); color: var(--fg); }
.btn-secondary:hover { filter: brightness(.96); }
.btn-ghost { background: transparent; color: var(--muted-fg); }
.btn-ghost:hover { background: var(--muted); color: var(--fg); }
.btn-hero { background: var(--accent); color: var(--accent-fg); box-shadow: var(--shadow-md); }
.btn-hero:hover { filter: brightness(.93); }
.btn-hero-outline { background: transparent; color: var(--primary-fg); border-color: hsl(45 30% 97% / .55); }
.btn-hero-outline:hover { background: hsl(45 30% 97% / .12); }
.btn-sm { padding: .45rem .9rem; font-size: .88rem; }
.btn-lg { padding: .85rem 1.7rem; font-size: 1.05rem; }
.btn-xl { padding: 1rem 2rem; font-size: 1.1rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ── Navigation ──────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: hsl(45 30% 97% / .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: .6rem 1.25rem;
  display: flex; align-items: center; gap: 1.25rem;
}
.nav-logo {
  display: flex; align-items: center; gap: .45rem;
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700;
  color: var(--fg); text-decoration: none; white-space: nowrap;
}
.nav-logo strong { color: var(--primary); }
.nav-logo-mark { font-size: 1.35rem; }
.nav-links {
  display: flex; gap: .25rem; list-style: none; margin-left: auto;
}
.nav-links a {
  display: block; padding: .45rem .8rem; border-radius: var(--radius);
  color: var(--muted-fg); text-decoration: none; font-weight: 600; font-size: .92rem;
}
.nav-links a:hover { color: var(--fg); background: var(--muted); }
.nav-links a.active { color: var(--primary); background: var(--muted); }
.nav-cta { white-space: nowrap; }
.nav-toggle { display: none; background: none; border: none; color: var(--fg); cursor: pointer; padding: .4rem; }

@media (max-width: 900px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--bg);
    border-bottom: 1px solid var(--border); padding: .75rem 1.25rem; gap: .25rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links { margin-left: 0; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
}
@media (max-width: 480px) { .nav-cta { display: none; } }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  background: var(--hero-gradient); color: var(--primary-fg);
  padding: 3.5rem 0;
}
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); margin-bottom: 1rem; }
.hero p.lead { font-size: 1.15rem; opacity: .92; max-width: 44rem; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9rem; font-weight: 600; opacity: .85; margin-bottom: .75rem;
}
.hero-center { text-align: center; }
.hero-center p.lead { margin: 0 auto 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }
.hero-center .hero-actions { justify-content: center; }
.trust-points { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin: 1.5rem 0; }
.trust-point {
  display: inline-flex; align-items: center; gap: .45rem;
  background: hsl(45 30% 97% / .12); border-radius: 999px;
  padding: .4rem 1rem; font-size: .88rem;
}
.trust-point::before { content: '✓'; color: var(--accent); font-weight: 800; }

/* ── Sections & cards ───────────────────────────────────────────────── */
.section { padding: 3.5rem 0; }
.section-sm { padding: 2rem 0; }
.section-alt { background: var(--secondary); }
.section-muted { background: var(--muted); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1.25rem; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.card h3 { margin-bottom: .5rem; }
.card-hover { transition: border-color .15s, box-shadow .15s; text-decoration: none; color: inherit; display: block; }
.card-hover:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.card-grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.feature-icon {
  display: flex; align-items: center; justify-content: center;
  height: 3rem; width: 3rem; border-radius: var(--radius);
  background: hsl(150 45% 23% / .1); color: var(--primary);
  font-size: 1.4rem; margin-bottom: 1rem;
}

.prose p { margin-bottom: 1rem; color: var(--muted-fg); font-size: 1.05rem; }
.prose strong { color: var(--fg); }
.prose ul, .prose ol { margin: 0 0 1rem 1.4rem; color: var(--muted-fg); }
.prose li { margin-bottom: .5rem; }
.prose h2 { margin: 2rem 0 1rem; font-size: 1.5rem; }
.prose h3 { margin: 1.5rem 0 .75rem; font-size: 1.2rem; }
.prose a { color: var(--primary); }

.muted-fg { color: var(--muted-fg); }

/* ── Breadcrumbs ─────────────────────────────────────────────────────── */
.breadcrumbs { margin: 1.25rem 0; font-size: .88rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; }
.breadcrumbs li + li::before { content: '/'; margin-right: .35rem; color: var(--muted-fg); }
.breadcrumbs a { color: var(--muted-fg); text-decoration: none; }
.breadcrumbs a:hover { color: var(--fg); text-decoration: underline; }
.breadcrumbs span { color: var(--fg); }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-list { display: grid; gap: 1rem; }
.faq-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.faq-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.faq-card p { color: var(--muted-fg); }

/* ── Badges ──────────────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: .2rem .65rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700;
}
.badge-cat { background: var(--secondary); color: var(--fg); }
.badge-easy { background: var(--correct-soft); color: var(--correct); }
.badge-medium { background: hsl(28 85% 93%); color: hsl(28 85% 38%); }
.badge-hard { background: var(--incorrect-soft); color: var(--incorrect); }

/* ── Quiz engine ─────────────────────────────────────────────────────── */
.qp-header { margin-bottom: 1.25rem; }
.qp-meta { display: flex; justify-content: space-between; font-size: .88rem; color: var(--muted-fg); margin-bottom: .5rem; }
.qp-bar { height: .5rem; background: var(--muted); border-radius: 999px; overflow: hidden; }
.qp-fill { height: 100%; background: var(--primary); transition: width .3s; }
.qp-card { margin-bottom: 1.25rem; }
.qp-tags { display: flex; gap: .5rem; margin-bottom: .75rem; }
.qp-question { font-size: 1.3rem; margin: 0; }
.qp-opts { display: grid; gap: .75rem; margin-bottom: 1.25rem; }
.qp-opt {
  display: flex; align-items: center; gap: .9rem; width: 100%;
  background: var(--card); border: 2px solid var(--border); border-radius: var(--radius);
  padding: .9rem 1.1rem; text-align: left; cursor: pointer;
  font-family: var(--font-sans); font-size: 1rem; color: var(--fg);
  transition: border-color .15s, background .15s;
}
.qp-opt:hover:not([disabled]) { border-color: var(--primary); }
.qp-opt.selected { border-color: var(--primary); background: hsl(150 45% 23% / .06); }
.qp-opt.correct { border-color: var(--correct); background: var(--correct-soft); }
.qp-opt.incorrect { border-color: var(--incorrect); background: var(--incorrect-soft); }
.qp-opt[disabled] { cursor: default; }
.opt-ltr {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  height: 2rem; width: 2rem; border-radius: 999px;
  border: 2px solid currentColor; font-weight: 800; font-size: .9rem;
}
.opt-txt { flex: 1; }
.qp-expl {
  background: var(--secondary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.25rem;
}
.expl-inner { display: flex; gap: .75rem; align-items: flex-start; }
.expl-icon { font-size: 1.3rem; }
.qp-actions { display: flex; justify-content: flex-end; }

/* Resultat */
.qr-result { text-align: center; }
.qr-score {
  display: inline-block; padding: 2rem 3rem; border-radius: var(--radius);
  margin-bottom: 1.5rem; border: 2px solid var(--border); background: var(--card);
}
.qr-pass { border-color: var(--correct); background: var(--correct-soft); }
.qr-mid { border-color: var(--accent); background: hsl(28 85% 95%); }
.qr-fail { border-color: var(--incorrect); background: var(--incorrect-soft); }
.qr-score-num { font-family: var(--font-serif); font-size: 3rem; font-weight: 800; }
.qr-score-pct { font-size: 1.4rem; color: var(--muted-fg); }
.qr-verdict { font-size: 1.1rem; font-weight: 700; margin-top: .5rem; }
.qr-time { font-size: .9rem; color: var(--muted-fg); margin-top: .35rem; }
.qr-cats { max-width: 30rem; margin: 0 auto 1.5rem; text-align: left; }
.qr-cats h3 { margin-bottom: .75rem; text-align: center; }
.qr-cat {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .5rem .75rem; border-bottom: 1px solid var(--border); font-size: .92rem;
}
.qr-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.qp-prev-result {
  background: var(--secondary); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .75rem 1.1rem; font-size: .92rem; color: var(--muted-fg); margin-bottom: 1.5rem;
}

/* ── Teori ───────────────────────────────────────────────────────────── */
.chapter-list { display: grid; gap: 1rem; }
.chapter-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; text-decoration: none; color: inherit;
  transition: border-color .15s, background .15s;
}
.chapter-card:hover { border-color: var(--primary); background: hsl(35 35% 92%); }
.chapter-num {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  height: 2.5rem; width: 2.5rem; border-radius: var(--radius);
  background: hsl(150 45% 23% / .1); color: var(--primary); font-weight: 800;
}
.chapter-card h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.chapter-card p { font-size: .9rem; color: var(--muted-fg); }
.chapter-nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.chapter-nav a { flex: 1; min-width: 14rem; }
.chapter-toc { margin-top: 2rem; }
.chapter-toc ul { list-style: none; }
.chapter-toc li { margin-bottom: .45rem; }
.chapter-toc a { text-decoration: none; color: var(--muted-fg); font-size: .92rem; }
.chapter-toc a:hover { color: var(--fg); }
.chapter-toc a.current { color: var(--primary); font-weight: 700; }

/* ── Blogg ───────────────────────────────────────────────────────────── */
.blog-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: var(--card); border: 1px solid var(--border); border-radius: .75rem;
  overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
}
.blog-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.blog-card-head {
  height: 7rem; background: linear-gradient(135deg, hsl(150 45% 23% / .12), hsl(35 35% 88%), hsl(28 85% 55% / .12));
  display: flex; align-items: center; justify-content: center;
}
.blog-card-head .badge { background: hsl(150 45% 23% / .1); color: var(--primary); font-size: .8rem; }
.blog-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.blog-meta { display: flex; gap: 1rem; font-size: .82rem; color: var(--muted-fg); margin-bottom: .6rem; }
.blog-card h2, .blog-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.blog-card p { color: var(--muted-fg); font-size: .95rem; }

.tip-box {
  display: flex; gap: .75rem; align-items: flex-start;
  background: hsl(28 85% 55% / .1); border: 1px solid hsl(28 85% 55% / .25);
  border-radius: var(--radius); padding: .9rem 1.1rem; font-size: .95rem; margin-top: 1rem;
}
.tip-box::before { content: '💡'; }

.step-row { display: flex; gap: 1.5rem; margin-bottom: 2.5rem; }
.step-num {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  height: 3.5rem; width: 3.5rem; border-radius: 999px;
  background: var(--primary); color: var(--primary-fg);
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 800;
}
.step-row h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.step-row p { color: var(--muted-fg); }

.mistake-card { margin-bottom: 1.5rem; }
.mistake-tip { background: var(--secondary); border-radius: var(--radius); padding: .9rem 1.1rem; font-size: .92rem; margin-top: .9rem; }
.mistake-tip strong { color: var(--primary); }

/* ── CTA-panel ───────────────────────────────────────────────────────── */
.cta-panel {
  background: var(--primary); color: var(--primary-fg);
  border-radius: .75rem; padding: 2rem;
}
.cta-panel h2 { margin-bottom: .75rem; }
.cta-panel p { opacity: .9; margin-bottom: 1.25rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.link-list { list-style: none; }
.link-list li { margin-bottom: .5rem; }
.link-list a { display: inline-flex; align-items: center; gap: .5rem; color: var(--primary); font-weight: 600; text-decoration: none; }
.link-list a:hover { text-decoration: underline; }
.link-list a::before { content: '→'; }

.disclaimer-strip { background: var(--muted); padding: 1.25rem 0; }
.disclaimer-strip p { text-align: center; font-size: .88rem; color: var(--muted-fg); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  background: hsl(150 30% 12%); color: hsl(45 20% 85%);
  padding: 3rem 0 2rem; margin-top: 3rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; margin-bottom: .6rem; }
.footer-brand strong { color: hsl(28 85% 65%); }
.footer-tagline { font-size: .9rem; opacity: .75; max-width: 26rem; }
.site-footer h4 { font-size: .95rem; margin-bottom: .75rem; color: hsl(45 30% 95%); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: hsl(45 20% 78%); text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  border-top: 1px solid hsl(150 20% 22%); padding-top: 1.25rem; font-size: .85rem; opacity: .8;
}
.footer-disclaimer { margin-top: .9rem; font-size: .8rem; opacity: .6; }
.footer-disclaimer a { color: inherit; }

/* ── Cookie banner ───────────────────────────────────────────────────── */
#cookie-banner {
  position: fixed; left: 0; right: 0; bottom: -100%; z-index: 100;
  background: var(--card); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px hsl(150 30% 15% / .15);
  transition: bottom .4s ease;
}
#cookie-banner.show { bottom: 0; }
.cookie-inner {
  max-width: 1100px; margin: 0 auto; padding: 1rem 1.25rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
}
.cookie-text { flex: 1; min-width: 16rem; font-size: .9rem; color: var(--muted-fg); }
.cookie-text strong { display: block; color: var(--fg); margin-bottom: .2rem; }
.cookie-actions { display: flex; gap: .6rem; }

/* ── Ads ─────────────────────────────────────────────────────────────── */
.ad-unit { margin: 1.5rem 0; text-align: center; }

/* ── 404 ─────────────────────────────────────────────────────────────── */
.page-404 { text-align: center; padding: 5rem 0; }
.page-404 .big { font-family: var(--font-serif); font-size: 5rem; font-weight: 800; color: var(--primary); }
