/* ==========================================================================
   Julestuen — advertorial stylesheet
   Ingen eksterne kald (fonts, CDN, trackere). Alt kan ligge på cPanel.
   ========================================================================== */

:root {
  --green-900: #1b3a30;
  --green-800: #224a3c;
  --green-700: #2a5947;
  --cream: #f8f4ec;
  --cream-dark: #efe7d7;
  --paper: #ffffff;
  --gold: #a9612f;
  --gold-soft: #e9c8a6;
  --ink: #1b241f;
  --muted: #5c6a62;
  --line: #e2d8c6;
  --radius: 4px;
  --max: 1120px;
  --col: 720px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-700); text-decoration-color: var(--gold-soft); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Annoncebar ---------- */
.adbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(13, 42, 34, .04);
}
.adbar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 8px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.adbar__label {
  flex: none;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green-900);
  background: var(--gold-soft);
  border-radius: 2px;
  padding: 5px 9px;
}
.adbar__text {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.35;
  margin: 0;
}
.adbar__text strong { color: var(--ink); font-weight: 600; }
.adbar__cta { margin-left: auto; flex: none; }

/* ---------- Masthead ---------- */
.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.masthead__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  max-width: var(--max);
  margin: 0 auto;
}
.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-900);
  text-decoration: none;
  font-weight: 600;
}
.wordmark:hover { color: var(--green-900); }
.masthead__meta {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Artikel ---------- */
.article { padding: 40px 0 8px; }

.article__col {
  max-width: var(--col);
  margin: 0 auto;
}

.kicker {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 14px;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(31px, 4.6vw, 50px);
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--green-900);
  margin: 0 0 18px;
}

.standfirst {
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.6;
  color: #384540;
  margin: 0 0 26px;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 13.5px;
  color: var(--muted);
  padding: 14px 0 0;
  margin: 0 0 22px;
  border-top: 1px solid var(--line);
}
.byline span.dot { color: var(--gold-soft); }

.disclosure {
  margin: 26px 0 0;
  padding: 14px 18px;
  background: var(--cream-dark);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #4a564f;
}
.disclosure strong { color: var(--ink); }

/* Figurer */
figure { margin: 34px 0; }
figure img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--cream-dark);
}
figcaption {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

/* Bred figur */
.fig-wide { max-width: 980px; margin: 40px auto; padding: 0 24px; }
.fig-wide figcaption { max-width: var(--col); margin-left: auto; margin-right: auto; }

/* Brødtekst */
.article p { margin: 0 0 22px; }

.article h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.24;
  color: var(--green-900);
  margin: 46px 0 16px;
  letter-spacing: -.01em;
}
.article h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.3;
  color: var(--green-900);
  margin: 34px 0 10px;
}

.lead { }
@media (min-width: 641px) {
.lead::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 66px;
  line-height: .82;
  padding: 6px 10px 0 0;
  color: var(--gold);
  font-weight: 600;
}
}

.pullquote {
  margin: 38px 0;
  padding: 26px 0 26px 26px;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.42;
  color: var(--green-800);
}
.pullquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-style: normal;
  letter-spacing: .04em;
  color: var(--muted);
}

/* Numre / grunde */
.reasons {
  list-style: none;
  counter-reset: r;
  margin: 26px 0 10px;
  padding: 0;
  display: grid;
  gap: 18px;
}
.reasons li {
  counter-increment: r;
  position: relative;
  padding: 22px 24px 20px 66px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.reasons li::before {
  content: counter(r, decimal-leading-zero);
  position: absolute;
  left: 22px;
  top: 20px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  color: var(--gold);
}
.reasons strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--green-900);
  margin-bottom: 4px;
}
.reasons p { margin: 0; font-size: 16.5px; line-height: 1.65; color: #414e48; }

/* Produktkort */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 26px 0 10px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
}
.card__tag {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.card h3 { margin: 8px 0 4px; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.card .price { font-size: 15px; color: var(--muted); margin: 0 0 14px; }
.card ul { margin: 0; padding-left: 18px; font-size: 15.5px; line-height: 1.6; color: #414e48; }
.card ul li { margin-bottom: 6px; }

/* Tjekliste */
.checklist {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding-left: 34px;
  font-size: 16.5px;
  line-height: 1.6;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-800);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ---------- CTA ---------- */
.cta {
  margin: 48px 0;
  padding: 44px 32px 40px;
  background: var(--green-900);
  color: #f4efe4;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(233, 200, 166, .32);
  border-radius: 2px;
  pointer-events: none;
}
.cta__kicker {
  position: relative;
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 12px;
}
.cta h2 {
  position: relative;
  font-family: var(--serif);
  font-weight: 600;
  color: #fdfaf3;
  font-size: clamp(24px, 3.2vw, 33px);
  line-height: 1.22;
  margin: 0 0 14px;
}
.cta p {
  position: relative;
  color: #d9d3c4;
  font-size: 16.5px;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
  padding: 17px 28px;
  border-radius: 3px;
  text-decoration: none;
  background: var(--gold-soft);
  color: #2a1408;
  border: 1px solid var(--gold-soft);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover {
  background: #f3d6c0;
  color: #2a1408;
  transform: translateY(-1px);
}
.btn--sm { padding: 11px 18px; font-size: 13.5px; }
.btn--ghost {
  background: transparent;
  color: #f4efe4;
  border-color: rgba(233, 200, 166, .55);
}
.btn--ghost:hover { background: rgba(233, 200, 166, .12); color: #fff; }

.cta__note {
  position: relative;
  margin: 22px 0 0;
  font-size: 12px;
  color: #a8b6ab;
  letter-spacing: .02em;
}

/* ---------- FAQ ---------- */
.faq { margin: 24px 0 0; border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 34px 18px 0;
  position: relative;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--green-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 22px;
  color: var(--gold);
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 18px; font-size: 16.5px; color: #414e48; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 56px;
  background: var(--green-900);
  color: #c9c3b4;
  font-size: 14px;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.footer h4 {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 12px;
}
.footer p { margin: 0 0 12px; line-height: 1.65; }
.footer a { color: #e6e1d5; text-decoration: none; }
.footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer__bottom {
  border-top: 1px solid rgba(233, 200, 166, .2);
  padding: 18px 24px 26px;
  max-width: var(--max);
  margin: 0 auto;
  font-size: 12.5px;
  line-height: 1.7;
  color: #96a29c;
}

/* ---------- Mobil CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(13, 42, 34, .97);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(233, 200, 166, .3);
}
.mobile-cta .btn { width: 100%; }

/* ---------- Undersider ---------- */
.page { padding: 48px 0 20px; }
.page h1 { font-size: clamp(28px, 4vw, 42px); }
.page h2 { font-family: var(--serif); font-size: 24px; color: var(--green-900); margin: 36px 0 10px; }
.page p, .page li { font-size: 16.5px; line-height: 1.7; }
.page ul { padding-left: 20px; }
.back { display: inline-block; margin-bottom: 24px; font-size: 14px; }

/* ---------- Responsivt ---------- */
@media (max-width: 860px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .mobile-cta { display: block; }
  .footer__bottom { padding-bottom: 96px; }
  .adbar__cta { display: none; }
  .adbar__text { font-size: 12.5px; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 18px; }
  .masthead__inner { padding: 16px 18px 14px; }
  .wordmark { font-size: 17px; letter-spacing: .14em; }
  .masthead__meta { display: none; }
  .article { padding-top: 28px; }
  .duo { grid-template-columns: 1fr; }
  .reasons li { padding: 20px 18px 18px 58px; }
  .reasons li::before { left: 18px; }
  .cta { padding: 32px 20px 30px; margin: 38px 0; }
  .btn { font-size: 15.5px; padding: 16px 20px; }
  .cta::before { inset: 7px; }
  .fig-wide { padding: 0 18px; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; padding: 34px 18px 24px; }
  .pullquote { padding-left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Navigation ---------- */
.nav {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__inner::-webkit-scrollbar { display: none; }
.nav a {
  flex: none;
  padding: 13px 0 12px;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav a:hover { color: var(--green-900); }
.nav a[aria-current="page"] {
  color: var(--green-900);
  border-bottom-color: var(--gold);
  font-weight: 600;
}

/* ---------- Artikelkort / guides ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0 8px;
}
.acard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.acard:hover { border-color: var(--gold-soft); transform: translateY(-2px); color: inherit; }
.acard__kicker {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.acard h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--green-900);
}
.acard p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.section-head {
  max-width: var(--col);
  margin: 52px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.section-head h2 { margin-top: 0; }

/* Læs også-boks */
.readmore {
  margin: 34px 0 0;
  padding: 22px 24px;
  background: var(--cream-dark);
  border-radius: var(--radius);
  font-size: 15.5px;
  line-height: 1.65;
}
.readmore h3 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.readmore ul { margin: 0; padding-left: 18px; }
.readmore li { margin-bottom: 6px; }

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .nav__inner { gap: 16px; padding: 0 18px; }
  .nav a { font-size: 12px; }
  .section-head { margin-top: 40px; }
}

/* ---------- Tilbudstabel ---------- */
.table-wrap {
  margin: 26px 0 10px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
table.deal {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  min-width: 480px;
}
table.deal th,
table.deal td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.deal thead th {
  background: var(--cream-dark);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-900);
  font-weight: 700;
}
table.deal tbody th {
  font-weight: 600;
  color: var(--muted);
  font-size: 14px;
  width: 34%;
}
table.deal tbody td { color: var(--ink); overflow-wrap: break-word; }
table.deal tbody tr:last-child th,
table.deal tbody tr:last-child td { border-bottom: 0; }
table.deal td strong { color: var(--green-900); }
table.deal tr.is-highlight th,
table.deal tr.is-highlight td { background: #fdf6f0; }

.note {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 10px 0 0;
}

.badge {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  background: var(--gold);
  border-radius: 2px;
  padding: 4px 8px;
  margin-left: 8px;
  vertical-align: middle;
}

.deal-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0 8px;
}
@media (max-width: 640px) {
  .deal-cards { grid-template-columns: 1fr; }
}

/* ---------- Tabel på mobil: stak i stedet for vandret scroll ---------- */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; }
  table.deal { min-width: 0; font-size: 15px; display: block; }
  table.deal thead { display: none; }
  table.deal tbody, table.deal tr { display: block; }
  table.deal tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.deal tr:last-child { border-bottom: 0; }
  table.deal tbody th,
  table.deal tbody td {
    display: block;
    width: auto;
    border: 0;
    padding: 2px 0;
  }
  table.deal tbody th {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 6px;
  }
  table.deal td::before {
    content: attr(data-label);
    display: block;
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 1px;
  }
  table.deal td { margin-bottom: 6px; }
  table.deal td:last-child { margin-bottom: 0; }
}

/* firespaltede tilbudstabeller */
table.deal-4 { table-layout: fixed; }
table.deal-4 thead th:nth-child(1) { width: 25%; }
table.deal-4 thead th:nth-child(2) { width: 35%; }
table.deal-4 thead th:nth-child(3) { width: 22%; }
table.deal-4 thead th:nth-child(4) { width: 18%; }
table.deal-4 tbody th { width: 25%; }
@media (max-width: 640px) {
  table.deal-4 { table-layout: auto; }
}

@media (max-width: 640px) {
  table.deal tr.is-highlight { background: #fdf6f0; }
  table.deal tr.is-highlight th,
  table.deal tr.is-highlight td { background: transparent; }
}

/* ---------- Billeder i artikler ---------- */
.fig { margin: 28px 0 24px; }
.fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.fig figcaption {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 10px;
}

@media (max-width: 640px) {
  table.deal-4 { table-layout: auto; }
  table.deal-4 tbody th { width: auto; }
}
