/* automatiskkattebakke.dk - designsystem
   Palette: varm creme-baggrund, moerk kaffe-tekst, terrakotta-accent. */

:root {
  --bg: #faf6f2;
  --bg-alt: #f2e9e1;
  --ink: #241c19;
  --ink-soft: #6b6058;
  --muted: #8a8078;
  --accent: #e8734a;
  --accent-dark: #c85a34;
  --accent-soft: #fbe4d8;
  --line: #e7ddd3;
  --white: #ffffff;
  --success: #3b7a75;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 2px 10px rgba(36,28,25,.06);
  --shadow-lg: 0 12px 32px rgba(36,28,25,.12);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.22; color: var(--ink); }
h1 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 14px; }
h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 40px 0 14px; }
h3 { font-size: 19px; margin: 0 0 6px; }
p { margin: 0 0 16px; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 620px; }
.lead-s { font-size: 16px; color: var(--ink-soft); }

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky; top: 0; z-index: 100;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); }
.logo-mark { flex-shrink: 0; }
.logo-text .accent { color: var(--accent); }
nav.primary { display: flex; gap: 26px; }
nav.primary a { color: var(--ink); font-weight: 600; font-size: 15px; }
nav.primary a:hover { color: var(--accent-dark); text-decoration: none; }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* Hero — ONE component, same box model whether flat-dark or photo-backed,
   so height/anchoring/wrap-width is identical on every page regardless of
   whether it carries a background photo. Photo pages add .photo and an
   inline background-image; the dark gradient underneath is the fallback. */
.hero {
  position: relative;
  min-height: 300px;
  padding: 64px 0 52px;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #241c19 0%, #3a2c26 100%);
  background-size: cover;
  background-position: center 62%;
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(180deg, rgba(36,28,25,.15) 0%, rgba(36,28,25,.6) 60%, rgba(36,28,25,.85) 100%);
}
.hero.photo::after { opacity: 1; }
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero h1 { color: #fff; }
.hero .lead { color: #e6dcd4; }
.hero .kicker { color: #f4a685; }

/* Bigger, richer variant used only on the forside */
.hero.home { min-height: 540px; padding: 96px 0 68px; }

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

.breadcrumbs { font-size: 13px; margin-bottom: 18px; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs.on-dark a { color: #cbb9ae; }
.breadcrumbs.on-dark span { color: #fff; }
.breadcrumbs span[aria-hidden] { margin: 0 6px; color: var(--muted); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.08); color: #fff; font-weight: 700; font-size: 14.5px;
  padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.4);
  transition: background .15s ease, border-color .15s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; text-decoration: none; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2); }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong { font-size: 24px; font-weight: 800; color: #fff; }
.hero-stat span { font-size: 13px; color: #cbb9ae; }

/* Sections */
.section { padding: 44px 0; }
.section.alt { background: var(--bg-alt); }
/* Whatever the last element in a section happens to be, its own bottom
   margin should never stack on top of the section's padding — keeps the
   gap before the footer (or next section) identical everywhere, site-wide,
   regardless of what kind of content ends the page. */
.wrap > *:last-child { margin-bottom: 0; }

/* Product grid + card */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 8px; }
.pgrid.guides { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.pcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: box-shadow .15s ease, transform .15s ease;
}
.pcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pcard-top { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 20px; }
.pcard-brand { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cat-badge {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .03em; margin-right: auto;
}
.cat-badge.cam { background: var(--accent-soft); color: var(--accent-dark); }
.pcard h3 { font-size: 17px; margin: 0; }
.pcard h3 a { color: var(--ink); }
.pcard h3 a:hover { color: var(--accent-dark); text-decoration: none; }
.pcard-price { display: flex; align-items: baseline; gap: 8px; }
.pcard-price .price { font-size: 22px; font-weight: 800; color: var(--ink); }
.pcard-price .oldprice { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.pcard-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.pcard-meta svg { flex-shrink: 0; color: var(--muted); }
.pcard-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pcard-points li { display: flex; align-items: flex-start; gap: 7px; font-size: 13.5px; color: var(--ink-soft); }
.pcard-points svg { color: var(--success); flex-shrink: 0; margin-top: 3px; }
.pcard-actions { display: flex; align-items: center; gap: 14px; margin-top: 4px; flex-wrap: wrap; }
.pcard-link { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.pcard-link:hover { color: var(--accent-dark); }

.btn-buy {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14.5px;
  padding: 10px 16px; border-radius: var(--radius-sm); border: none; cursor: pointer;
  transition: background .15s ease;
}
.btn-buy:hover { background: var(--accent-dark); text-decoration: none; }
.btn-buy svg { flex-shrink: 0; }

.pcard-detail {
  flex-direction: row; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin: 4px 0 28px; padding: 20px;
}
.pcard-detail .pcard-price { margin: 0; }
.pcard-detail.variants { flex-direction: column; align-items: flex-start; }
.buy-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Guide cards */
.gcard {
  display: block; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; color: var(--ink);
}
.gcard:hover { border-color: var(--accent); text-decoration: none; box-shadow: var(--shadow); }
.gcard h3 { color: var(--ink); margin-bottom: 6px; }
.gcard p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 18px 0; }
table.cmp-table, table.specs-table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.cmp-table th, .cmp-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.cmp-table thead th { background: var(--bg-alt); font-weight: 700; color: var(--ink); }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.specs-table th { width: 220px; padding: 11px 14px; background: var(--bg-alt); font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--line); text-align: left; }
.specs-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: none; }

/* Lists */
.check-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { padding-left: 26px; position: relative; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 800;
}
.check-list.minus li::before { content: "–"; color: var(--muted); }
.link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.link-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.link-list li:last-child { border-bottom: none; padding-bottom: 0; }
.link-list li a { font-weight: 700; font-size: 15.5px; }
.link-list li span { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.link-list.compact li a { font-weight: 600; font-size: 14.5px; }

/* Picker grid ("Sammenlign efter behov") */
.picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.picker-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; color: var(--ink);
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.picker-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--accent); text-decoration: none; }
.picker-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
}
.picker-body h3 { font-size: 16px; margin: 0 0 4px; color: var(--ink); }
.picker-body p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.picker-card .picker-arrow { margin-left: auto; align-self: center; color: var(--muted); flex-shrink: 0; }

@media (max-width: 900px) {
  .picker-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .picker-grid { grid-template-columns: 1fr; }
}

/* Sourcebox / FAQ */
.sourcebox {
  background: var(--accent-soft); border: 1px solid #f0c8b0; border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 14px; color: var(--ink-soft); margin: 20px 0;
}
.sourcebox.warn { background: #fff6e8; border-color: #f0dcb0; }
.sourcebox.warn ul { margin: 8px 0 0; padding-left: 18px; }
.sourcebox a { color: var(--accent-dark); }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.faq-item summary { font-weight: 700; cursor: pointer; }
.faq-item div { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }

/* Contact form */
#contact-form { display: flex; flex-direction: column; gap: 6px; max-width: 480px; }
#contact-form label { font-weight: 700; font-size: 14px; margin-top: 10px; }
#contact-form input[type=text], #contact-form input[type=email], #contact-form textarea {
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; background: var(--white);
}
#contact-form .btn-buy { margin-top: 14px; align-self: flex-start; }
#contact-status { font-size: 14px; color: var(--ink-soft); min-height: 20px; }
.hidden-field { display: none; }

/* Footer */
footer.site { background: #241c19; color: #d8cec6; padding: 48px 0 22px; margin-top: 40px; }
footer.site h4 { color: #fff; font-size: 14px; margin: 0 0 12px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
footer.site a { color: #d8cec6; font-size: 14px; }
footer.site a:hover { color: #fff; }
footer.site .bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid #3c322c; font-size: 13px; color: #9c9088; }

/* Photo components */
.split {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; align-items: stretch;
  border-radius: var(--radius); overflow: hidden; margin: 28px 0; box-shadow: var(--shadow);
}
.split img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 340px; }
.split .split-text { padding: 40px; display: flex; flex-direction: column; justify-content: center; background: var(--white); }
.split .split-text h2 { margin-top: 0; }
.split.reverse { grid-template-columns: 1fr 1.1fr; }
.split.reverse .split-text { order: -1; }

.photo-divider {
  position: relative; min-height: 300px; background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: var(--radius); overflow: hidden; margin: 8px 0 44px;
}
.photo-divider::after { content: ""; position: absolute; inset: 0; background: rgba(36,28,25,.58); }
.photo-divider .divider-inner { position: relative; z-index: 2; color: #fff; max-width: 640px; padding: 20px; }
.photo-divider h2 { color: #fff; margin-top: 0; }
.photo-divider p { color: #f0e6de; margin-bottom: 18px; }
.photo-divider .btn-buy { background: var(--accent); }

.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.photo-strip img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-sm); display: block; }

@media (max-width: 760px) {
  nav.primary { display: none; }
  .menu-toggle { display: block; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .pcard-detail { flex-direction: column; align-items: flex-start; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split img { min-height: 220px; }
  .split .split-text { order: 0; padding: 28px 24px; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
}
