/* Crevia Agency — fælles design for de offentlige sider */
:root{
  --paper:   #f5f6f8;
  --surface: #ffffff;
  --ink:     #0e1b2c;
  --muted:   #4d5a6d;
  --faint:   #7a8697;
  --rule:    #d9dee5;
  --rule-strong: #b8c1cd;
  --red:     #c8102e;
  --red-dark:#a30d25;
  --navy:    #0e1b2c;
  --green:   #1b6e45;
  --error:   #b42318;

  --font-ui:   "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1120px;
}

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:var(--font-text); font-size:18px; line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; }
a{ color:inherit; }
:focus-visible{ outline:3px solid var(--red); outline-offset:3px; border-radius:2px; }

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

/* ---------- Navigation ---------- */
.site-header{ background:var(--surface); border-bottom:1px solid var(--rule); }
.site-header .wrap{ display:flex; align-items:center; justify-content:space-between; gap:24px; padding-top:18px; padding-bottom:18px; flex-wrap:wrap; }
.wordmark{ font-family:var(--font-ui); font-size:22px; font-weight:700; letter-spacing:-0.02em; text-decoration:none; color:var(--ink); }
.wordmark span{ font-weight:400; color:var(--muted); margin-left:6px; }
.site-nav{ display:flex; align-items:center; gap:28px; font-family:var(--font-ui); font-size:16px; font-weight:500; flex-wrap:wrap; }
.site-nav a{ text-decoration:none; color:var(--muted); padding:4px 0; border-bottom:2px solid transparent; }
.site-nav a:hover{ color:var(--ink); border-bottom-color:var(--ink); }
.site-nav a[aria-current="page"]{ color:var(--ink); border-bottom-color:var(--ink); }
.site-nav a.nav-button{ color:#fff; background:var(--red); padding:9px 18px; border-radius:4px; border:0; font-weight:600; }
.site-nav a.nav-button:hover{ background:var(--red-dark); color:#fff; }

/* ---------- Typografi ---------- */
h1,h2,h3{ font-family:var(--font-ui); color:var(--ink); margin:0; font-weight:600; letter-spacing:-0.02em; }
h1{ font-size:clamp(2.5rem, 5.4vw, 4.4rem); line-height:1.04; letter-spacing:-0.03em; }
h2{ font-size:clamp(1.75rem, 3.2vw, 2.6rem); line-height:1.12; }
h3{ font-size:1.3rem; line-height:1.25; }
p{ margin:0 0 1em; max-width:62ch; }
.lead{ font-size:1.25rem; color:var(--muted); max-width:52ch; }
.muted{ color:var(--muted); }
.small{ font-size:.9rem; }
.link{ font-family:var(--font-ui); font-weight:600; color:var(--ink); text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:2px; text-decoration-color:var(--red); }
.link:hover{ color:var(--red); }

/* ---------- Knapper ---------- */
.btn{
  display:inline-block; font-family:var(--font-ui); font-size:17px; font-weight:600; line-height:1;
  padding:15px 26px; border-radius:4px; border:2px solid transparent; cursor:pointer; text-decoration:none;
  transition:background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary{ background:var(--red); color:#fff; }
.btn-primary:hover{ background:var(--red-dark); }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--rule-strong); }
.btn-ghost:hover{ border-color:var(--ink); }
.btn-light{ background:#fff; color:var(--ink); }
.btn-light:hover{ background:#e9edf2; }
.btn:disabled{ opacity:.6; cursor:not-allowed; }

/* ---------- Sektioner ---------- */
.hero{ padding:72px 0 80px; }
.hero-grid{ display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:64px; align-items:start; }
.hero h1{ margin-bottom:28px; }
.hero .actions{ display:flex; flex-wrap:wrap; align-items:center; gap:14px 28px; margin-top:32px; }
.page-hero{ padding:72px 0 56px; }
.page-hero h1{ max-width:18ch; margin-bottom:24px; }

.section{ padding:72px 0; border-top:1px solid var(--rule); }
.section > .wrap > h2{ margin-bottom:40px; max-width:22ch; }

/* Rækker: titel til venstre, tekst til højre */
.rows{ margin:0; padding:0; list-style:none; }
.rows > li{ display:grid; grid-template-columns:minmax(0,4fr) minmax(0,8fr); gap:16px 48px; padding:28px 0; border-top:1px solid var(--rule); }
.rows > li:last-child{ border-bottom:1px solid var(--rule); }
.rows h3{ margin:0; }
.rows p{ margin:0; }

/* Nummereret forløb (kun hvor rækkefølgen betyder noget) */
ol.steps{ margin:0; padding:0; list-style:none; counter-reset:step; }
ol.steps > li{ counter-increment:step; display:grid; grid-template-columns:56px minmax(0,4fr) minmax(0,7fr); gap:16px 32px; padding:28px 0; border-top:1px solid var(--rule); }
ol.steps > li:last-child{ border-bottom:1px solid var(--rule); }
ol.steps > li::before{ content:counter(step); font-family:var(--font-ui); font-weight:700; font-size:1.6rem; color:var(--red); line-height:1.2; }
ol.steps h3{ margin:0; }
ol.steps p{ margin:0; }

/* Fakta */
.facts{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:0; margin:0; border-top:2px solid var(--ink); }
.facts > div{ padding:20px 24px 4px 0; }
.facts dt{ font-family:var(--font-ui); font-size:.95rem; color:var(--muted); margin-bottom:4px; }
.facts dd{ margin:0; font-family:var(--font-ui); font-size:1.5rem; font-weight:600; letter-spacing:-0.01em; line-height:1.25; }

/* To kolonner */
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:64px; }
.two-col h3{ margin-bottom:12px; font-size:1.6rem; }
.two-col ul{ margin:0 0 20px; padding-left:1.1em; }
.two-col li{ margin-bottom:.4em; }

/* Aftale-ark (hero) */
.sheet{ background:var(--surface); border:1px solid var(--rule-strong); border-radius:6px; box-shadow:0 1px 0 var(--rule-strong); }
.sheet-head{ display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:16px 22px; border-bottom:1px solid var(--rule-strong); font-family:var(--font-ui); }
.sheet-head b{ font-size:1.05rem; }
.sheet-head span{ font-size:.9rem; color:var(--faint); }
.sheet dl{ margin:0; padding:6px 22px; }
.sheet dl > div{ display:grid; grid-template-columns:120px 1fr; gap:16px; padding:13px 0; border-bottom:1px dashed var(--rule-strong); font-family:var(--font-ui); font-size:1rem; line-height:1.4; }
.sheet dl > div:last-child{ border-bottom:0; }
.sheet dt{ color:var(--muted); }
.sheet dd{ margin:0; font-weight:500; }
.sheet-foot{ display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 22px; border-top:1px solid var(--rule-strong); background:#f0f3f6; border-radius:0 0 6px 6px; font-family:var(--font-ui); }
.sheet-foot b{ font-size:1.7rem; letter-spacing:-0.02em; }
.sheet-foot span{ font-size:.95rem; font-weight:600; color:var(--green); }
.sheet-note{ font-family:var(--font-ui); font-size:.9rem; color:var(--faint); margin:12px 2px 0; }

/* FAQ */
.faq{ max-width:760px; }
.faq details{ border-top:1px solid var(--rule); }
.faq details:last-child{ border-bottom:1px solid var(--rule); }
.faq summary{ list-style:none; cursor:pointer; padding:20px 40px 20px 0; font-family:var(--font-ui); font-size:1.2rem; font-weight:600; position:relative; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; position:absolute; right:4px; top:16px; font-size:1.6rem; font-weight:400; color:var(--red); }
.faq details[open] summary::after{ content:"\2212"; }
.faq details p{ margin:0 0 22px; color:var(--muted); }

/* Afslutning */
.closing{ background:var(--navy); color:#fff; padding:72px 0; border-top:0; }
.closing h2{ color:#fff; max-width:20ch; margin-bottom:16px; }
.closing p{ color:#c3ccd8; margin-bottom:28px; }

/* Footer */
.site-footer{ background:var(--surface); border-top:1px solid var(--rule); padding:40px 0 48px; font-family:var(--font-ui); font-size:15px; color:var(--muted); }
.site-footer .wrap{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:20px 40px; }
.site-footer nav{ display:flex; flex-wrap:wrap; gap:8px 24px; }
.site-footer a{ text-decoration:none; }
.site-footer a:hover{ color:var(--ink); text-decoration:underline; }

/* Cookiebanner */
.cookie-banner{ position:fixed; left:16px; right:16px; bottom:16px; max-width:520px; background:var(--surface); border:1px solid var(--rule-strong); border-radius:6px; padding:18px 20px; box-shadow:0 10px 30px rgba(14,27,44,.18); z-index:60; display:none; font-family:var(--font-ui); }
.cookie-banner.show{ display:block; }
.cookie-banner p{ font-size:15px; margin:0 0 14px; color:var(--muted); line-height:1.5; }
.cookie-banner .btn{ padding:10px 16px; font-size:15px; }
.cookie-banner-actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* Formularer */
.panel{ background:var(--surface); border:1px solid var(--rule-strong); border-radius:6px; padding:32px; }
.field{ margin-bottom:20px; }
.field label{ display:block; font-family:var(--font-ui); font-size:1rem; font-weight:600; margin-bottom:6px; }
.field .opt{ font-weight:400; color:var(--faint); }
.req{ color:var(--red); margin-left:3px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=url], textarea, select{
  width:100%; font:inherit; font-family:var(--font-ui); font-size:1.05rem; color:var(--ink);
  background:#fff; border:1px solid var(--rule-strong); border-radius:4px; padding:12px 14px;
}
input::placeholder, textarea::placeholder{ color:var(--faint); }
textarea{ min-height:130px; resize:vertical; line-height:1.5; }
input:focus, textarea:focus, select:focus{ outline:3px solid rgba(200,16,46,.28); border-color:var(--red); }
.error-msg{ display:none; color:var(--error); font-family:var(--font-ui); font-size:.95rem; margin-top:6px; }
.field.invalid input, .field.invalid textarea{ border-color:var(--error); }
.field.invalid .error-msg{ display:block; }
.form-success, .form-error{ display:none; margin-top:18px; padding:14px 16px; border-radius:4px; font-family:var(--font-ui); }
.form-success.show, .form-error.show{ display:block; }
.form-success{ background:#e6f3ec; color:var(--green); border:1px solid #b9dcc9; }
.form-error{ background:#fbe9e7; color:var(--error); border:1px solid #f1c1bc; }

.contact-grid{ display:grid; grid-template-columns:minmax(0,5fr) minmax(0,6fr); gap:72px; padding:72px 0 88px; align-items:start; }
.contact-grid h1{ margin-bottom:24px; }
.info-list{ margin:32px 0 0; padding:0; }
.info-list div{ padding:16px 0; border-top:1px solid var(--rule); }
.info-list dt{ font-family:var(--font-ui); font-weight:600; }
.info-list dd{ margin:0; color:var(--muted); }

@media (max-width: 880px){
  body{ font-size:17px; }
  .hero{ padding:48px 0 56px; }
  .hero-grid, .two-col, .contact-grid{ grid-template-columns:1fr; gap:40px; }
  .rows > li{ grid-template-columns:1fr; gap:8px; padding:22px 0; }
  ol.steps > li{ grid-template-columns:40px 1fr; }
  ol.steps > li p{ grid-column:2; }
  .facts{ grid-template-columns:1fr 1fr; }
  .section, .closing{ padding:52px 0; }
  .page-hero{ padding:48px 0 40px; }
  .contact-grid{ padding:48px 0 64px; }
  .panel{ padding:22px; }
  .sheet dl > div{ grid-template-columns:100px 1fr; }
}
@media (prefers-reduced-motion: reduce){ *{ transition:none !important; } }

.skip-link{ position:absolute; left:-9999px; top:8px; background:var(--navy); color:#fff; padding:10px 14px; z-index:100; font-family:var(--font-ui); }
.skip-link:focus{ left:8px; }
.wordmark{ display:inline-flex; align-items:center; gap:10px; }
.wordmark img{ width:30px; height:30px; border-radius:7px; display:block; }
.wordmark span{ margin-left:0; }

/* Nyheder og nyhedsbrev */
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.news-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:24px; }
.news-card{ display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--rule-strong); border-radius:6px; overflow:hidden; text-decoration:none; color:inherit; transition:transform .15s, box-shadow .15s; }
.news-card:hover{ transform:translateY(-2px); box-shadow:0 8px 24px rgba(18,35,58,.08); }
.news-card img{ width:100%; aspect-ratio:16/9; object-fit:cover; display:block; }
.news-body{ padding:20px; } .news-body h2{ font-size:1.25rem; margin:4px 0 8px; } .news-body p{ margin:0 0 12px; color:var(--muted,#566275); }
.news-date{ font-size:.85rem; color:var(--faint,#6b778a); }
.nl-box{ max-width:640px; } .nl-box h2{ margin-top:0; }
.nl-row{ display:flex; gap:10px; flex-wrap:wrap; } .nl-row input{ flex:1; min-width:200px; }
.nl-note{ font-size:.85rem; color:var(--faint,#6b778a); margin:10px 0 0; } .nl-msg{ margin-top:10px; font-weight:600; } .nl-msg.err{ color:var(--error,#b42318); }
.news-grid[hidden], #news-article[hidden]{ display:none !important; }
