/* Akut-henvendelse.dk · prototype
   Farver fra logo A4: petrol, terrakotta, salviegrøn – let justeret for kontrast. */

/* Skrifter self-hostes (GDPR – ingen Google Fonts-CDN). Variable woff2, latin + latin-ext. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700 800; font-display: swap;
  src: url("assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700 800; font-display: swap;
  src: url("assets/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("assets/fonts/nunito-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("assets/fonts/nunito-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  color-scheme: light;

  --petrol: #1f4e5a;
  --petrol-deep: #173c46;
  --terra: #c8794a;          /* logoets terrakotta – til grafik og flader */
  --terra-text: #a45a2e;     /* mørkere terrakotta – til tekst/links (AA på lys bund) */
  --sage: #7fa39a;
  --sage-soft: #e7efec;
  --sand: #faf7f2;           /* varm, rolig grundfarve */
  --sand-deep: #f3ede4;
  --ink: #23343a;            /* brødtekst: dæmpet petrol-sort */
  --muted: #55686e;
  --line: #e2dbd0;
  --white: #fff;

  --font-head: "Nunito", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 1rem;
  --wrap: 72rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --space-section: clamp(3.5rem, 2.5rem + 5vw, 7rem);

  accent-color: var(--petrol);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.65;
  overflow-wrap: break-word;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--petrol);
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); font-weight: 800; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.65rem, 1.3rem + 1.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4em; }

p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: 1.15em; color: var(--petrol-deep); }

a { color: var(--terra-text); text-underline-offset: 0.2em; }
a:hover { color: var(--petrol); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--petrol); color: var(--white);
  padding: 0.6rem 1rem; border-radius: 0.5rem; z-index: 100;
}
.skip:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--sand) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding-block: 0.65rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; margin-right: auto; min-width: 0;
}
.brand img { height: 3rem; width: auto; flex: none; }
.brand-text { display: grid; line-height: 1.1; }
.brand-name {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.2rem; color: var(--petrol); letter-spacing: -0.01em;
}
.brand-dk { color: var(--terra); }
.brand-tag {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #5f8279; font-weight: 600; margin-top: 0.2rem;
}
.header-nav { display: flex; gap: 1.5rem; }
.header-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.header-nav a:hover { color: var(--terra-text); }

@media (max-width: 60rem) { .header-nav { display: none; } }
@media (max-width: 30rem) {
  .brand-tag { display: none; }
  .brand-name { font-size: 1.05rem; }
  .brand img { height: 2.6rem; }
  .header-inner { gap: 0.75rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-block-size: 3rem;
  padding: 0.7rem 1.4rem;
  background: var(--petrol); color: var(--white);
  font-weight: 700; text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.2s;
}
.btn:hover { background: var(--petrol-deep); color: var(--white); }
.btn-small { min-block-size: 2.6rem; padding: 0.45rem 1.1rem; font-size: 0.95rem; white-space: nowrap; }
@media (max-width: 22rem) { .btn-small { padding-inline: 0.8rem; font-size: 0.85rem; } }

.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " ↓"; }
.link-arrow:hover { text-decoration: underline; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) var(--space-section); }
.hero-grid {
  display: grid; gap: 2.5rem; align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
.hero-text { max-width: 40rem; }
.eyebrow {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #5f8279; margin-bottom: 1rem;
}
.hero-art {
  justify-self: center;
  width: min(20rem, 70%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--white) 0 55%, var(--sage-soft) 56% 100%);
  display: grid; place-items: center;
}
.hero-art img { width: 70%; }
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .hero-art { width: min(24rem, 100%); }
}
@media (max-width: 55.99rem) { .hero-art { order: -1; width: 9rem; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-section); }
.tint { background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.prose { max-width: 40rem; }

.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 4rem; }
}

/* Callout */
.note {
  background: var(--sage-soft);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 5px solid var(--sage);
}
.note p:last-child { margin: 0; }
.note-figure {
  font-family: var(--font-head); font-weight: 800; color: var(--petrol);
  font-size: 2.6rem; line-height: 1; margin-bottom: 1rem;
  display: flex; align-items: baseline; gap: 0.35rem;
}
.note-figure small { font-size: 1.1rem; color: var(--muted); font-weight: 700; }

/* Cards */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}
.card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.2rem;
  position: relative;
}
.card::before {
  content: ""; display: block;
  width: 2.25rem; height: 4px; border-radius: 4px;
  background: var(--terra); margin-bottom: 1.1rem;
}
.card p { color: var(--ink); font-size: 0.98em; }

/* Lovgrundlag: i dag / fremover */
.law {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.law-col {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.law-col.is-now { border-top: 4px solid var(--terra); }
.law-col:not(.is-now) { background: var(--sage-soft); border-color: transparent; border-top: 4px solid var(--sage); }
.law-kicker {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.4rem;
}
.law-col h3 { font-size: 1.5rem; }
.law dl { margin: 1rem 0 0; display: grid; gap: 0; }
.law dl > div { padding-block: 0.8rem; border-top: 1px solid var(--line); }
.law-col:not(.is-now) dl > div { border-color: rgb(127 163 154 / 0.35); }
.law dt { font-weight: 700; color: var(--petrol); }
.law dd { margin: 0; }

/* Numbered list */
.numbered {
  list-style: none; margin: 0; padding: 0; counter-reset: n;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.numbered li {
  counter-increment: n;
  padding: 1.5rem 1.5rem 0.5rem;
  border-top: 3px solid var(--petrol);
  background: var(--sand);
  border-radius: 0 0 var(--radius) var(--radius);
}
.numbered li::before {
  content: counter(n);
  display: grid; place-items: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--petrol); color: var(--white);
  font-family: var(--font-head); font-weight: 800;
  margin-bottom: 0.9rem;
}
.closing {
  max-width: 46rem; margin-top: 2.5rem;
  font-size: 1.08em; color: var(--petrol-deep);
  padding-left: 1.25rem; border-left: 4px solid var(--terra);
}

/* Bridge */
.bridge {
  list-style: none; margin: 0 0 2.5rem; padding: 0;
  display: grid; gap: 1rem;
}
.bridge li {
  display: grid; gap: 0.25rem;
  background: var(--sage-soft);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  position: relative;
}
.bridge-step { font-family: var(--font-head); font-weight: 800; color: var(--petrol); font-size: 1.1rem; }
@media (min-width: 48rem) {
  .bridge { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .bridge li:not(:last-child)::after {
    content: "→"; position: absolute; right: -1.5rem; top: 50%;
    translate: 0 -50%; color: var(--terra); font-weight: 700; font-size: 1.3rem;
  }
}

/* Contact */
.contact { background: var(--sand-deep); border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.person {
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center;
  background: var(--white);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2rem;
  box-shadow: 0 1px 2px rgb(31 78 90 / 0.06), 0 12px 32px -12px rgb(31 78 90 / 0.18);
}
.portrait {
  width: 6.5rem; aspect-ratio: 1; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--sage-soft); color: var(--petrol);
  font-family: var(--font-head); font-weight: 800; font-size: 1.6rem;
  border: 3px solid var(--white); outline: 2px solid var(--sage);
}
.person-info { flex: 1 1 14rem; min-width: 0; }
.person-name { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--petrol); margin: 0; }
.person-role { color: var(--muted); margin: 0 0 1rem; }
.contact-list { margin: 0; display: grid; gap: 0.6rem; }
.contact-list div { display: grid; }
.contact-list dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 0; font-size: 1.1rem; font-weight: 700; }

/* Pladsholdere fra teksten, så de er lette at spotte i prototypen */
.todo { background: #fbe9dc; border-radius: 4px; padding-inline: 0.25em; }

/* Footer */
.site-footer { padding-block: 2rem; font-size: 0.9rem; color: var(--muted); }
.footer-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-inner p { margin: 0; }

@media (max-width: 30rem) { .hide-xs { display: none; } }

.note-title { font-family: var(--font-head); font-weight: 800; color: var(--petrol); font-size: 1.35rem; line-height: 1.25; margin-bottom: 0.6rem; }
