/* ==========================================================
   AppSysLab – rolig, varm og letlæselig
   ========================================================== */

:root {
  --bg: #FAF7F2;          /* varm off-white */
  --surface: #F2EDE4;     /* lidt mørkere flade */
  --card: #FFFFFF;
  --text: #1F2328;
  --muted: #5B6168;
  --line: #E4DDD1;
  --accent: #2F5D8A;      /* dæmpet blå */
  --accent-hover: #244A6F;
  --accent-soft: #E6EEF5;

  --radius: 12px;
  --max: 1120px;
  --gutter: 20px;

  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.1875rem;   /* 19px */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1em; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: .6em 1em; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--accent); color: #fff;
  font: inherit; font-weight: 600; font-size: 1.1rem;
  padding: .85em 1.4em;
  border: 0; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn-small { font-size: 1rem; padding: .55em 1em; }
.btn-full { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .7; cursor: wait; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.logo {
  font-weight: 700; font-size: 1.35rem; color: var(--text);
  text-decoration: none; letter-spacing: -0.01em;
}
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.nav a:not(.btn):hover { color: var(--accent); }

@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .logo { font-size: 1.2rem; }
}

/* ---------- Sektioner ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-intro { color: var(--muted); font-size: 1.25rem; margin-top: -.25em; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .08em;
  font-size: .9rem; font-weight: 700; color: var(--accent); margin-bottom: .6em;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 6rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.lead { font-size: clamp(1.25rem, 2.2vw, 1.45rem); color: var(--muted); max-width: 32ch; margin-bottom: 1.6em; }
.hero-image { margin: 0; }
.hero-image img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
  .hero-image img { aspect-ratio: 5 / 6; }
}

/* ---------- Problemer ---------- */
.problems { background: var(--surface); }
.quote-grid {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: grid; gap: 1rem;
}
@media (min-width: 700px) { .quote-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .quote-grid { grid-template-columns: repeat(3, 1fr); } }
.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  font-size: 1.25rem; line-height: 1.45;
}
.big-answer {
  margin: 3rem 0 0;
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  font-weight: 700; color: var(--accent); line-height: 1.15;
}

/* ---------- Samtale ---------- */
.conversation .talk { margin-bottom: clamp(3rem, 7vw, 5rem); }
.conversation .talk:last-child { margin-bottom: 0; }
.talk p { margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.25; font-weight: 700; }
.talk-you { color: var(--text); }
.talk-us  { color: var(--accent); margin-top: .35em !important; }
@media (min-width: 900px) {
  .talk:nth-child(even) { text-align: right; }
}

/* ---------- Rigtige mennesker ---------- */
.problems + .people { padding-top: clamp(4rem, 9vw, 7rem); }
.people h2 { max-width: 22ch; }
.people-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 640px) { .people-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .people-grid { grid-template-columns: repeat(4, 1fr); } }
.person { margin: 0; }
.person img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius);
}
.person figcaption { margin-top: .75rem; color: var(--muted); font-size: 1.05rem; line-height: 1.45; }

/* ---------- Proces ---------- */
.process { background: var(--surface); }
.steps {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: grid; gap: 2.25rem;
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
}
.step p { margin: 0; color: var(--muted); }
.step-num {
  display: inline-grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: 1.15rem; margin-bottom: 1rem;
}
/* Pile mellem trin: lodret på mobil, vandret på desktop */
.step:not(:last-child)::after {
  content: "↓";
  position: absolute; left: 50%; bottom: -2.05rem; transform: translateX(-50%);
  color: var(--accent); font-size: 1.4rem; font-weight: 700; line-height: 1;
}
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
  .step:not(:last-child)::after {
    content: "→";
    left: auto; right: -1.95rem; bottom: auto; top: 50%;
    transform: translateY(-50%);
  }
}

/* ---------- Eksempel ---------- */
.example-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .example-grid { grid-template-columns: 1fr 1.15fr; gap: 4rem; } }

.flow {
  list-style: none; padding: 0; margin: 1.25rem 0 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  counter-reset: none;
}
.flow li {
  background: var(--accent-soft); color: var(--accent);
  font-weight: 600; padding: .45em .9em; border-radius: var(--radius);
  font-size: 1.05rem;
}
.flow li:not(:last-child)::after { content: " →"; color: var(--muted); font-weight: 400; }

.mockup {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(31, 35, 40, .06);
  overflow: hidden;
  font-size: .95rem;
}
.mockup-bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .7rem 1rem; background: var(--surface); border-bottom: 1px solid var(--line);
}
.mockup-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #D8D0C3; }
.mockup-title { margin-left: .75rem; font-weight: 600; color: var(--muted); font-size: .9rem; }
.mockup-body { padding: 1.1rem 1.1rem 1.3rem; overflow-x: auto; }
.mockup-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.mockup-add { color: var(--accent); font-weight: 600; font-size: .9rem; }
.mockup table { width: 100%; border-collapse: collapse; min-width: 440px; }
.mockup th {
  text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .05em;
  padding: .4rem .5rem; border-bottom: 1px solid var(--line);
}
.mockup td { padding: .7rem .5rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mockup tr:last-child td { border-bottom: 0; }
.avatar {
  display: inline-grid; place-items: center;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-size: .7rem; font-weight: 700; margin-right: .3rem; vertical-align: middle;
}
.avatar.empty { background: var(--surface); color: var(--muted); }
.mockup em { color: var(--muted); }
.badge { display: inline-block; padding: .15em .65em; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.badge.done     { background: #E3F1E6; color: #2E6B3C; }
.badge.progress { background: #FBF0D9; color: #8A5A12; }
.badge.new      { background: var(--accent-soft); color: var(--accent); }
.invoice {
  display: inline-block; background: var(--accent); color: #fff;
  padding: .25em .7em; border-radius: 8px; font-size: .82rem; font-weight: 600;
}

/* ---------- Princip ---------- */
.principle { background: var(--accent); color: #fff; text-align: center; }
.principle p { margin: 0; line-height: 1.25; }
.principle-not {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  opacity: .8; margin-bottom: 1rem !important;
}
.principle-are { font-size: clamp(1.8rem, 4.2vw, 2.8rem); font-weight: 700; }
.principle em { font-style: normal; text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 3px; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.no-need { list-style: none; padding: 0; margin: 1.5rem 0; }
.no-need li {
  font-size: 1.3rem; padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}
.no-need li:last-child { border-bottom: 0; }
.contact-lead { font-size: 1.45rem; font-weight: 700; color: var(--accent); line-height: 1.3; }

.form-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--text);
  background: var(--bg);
  border: 1px solid #CFC6B8; border-radius: 10px;
  padding: .75em .9em;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { text-align: center; color: var(--muted); margin: 1rem 0 0; font-size: 1.05rem; }
.form-status { margin: 1rem 0 0; font-weight: 600; text-align: center; }
.form-status:empty { display: none; }
.form-status.ok  { color: #2E6B3C; }
.form-status.err { color: #A33A2B; }

.thanks { text-align: center; padding: 1rem 0; }
.thanks h3 { font-size: 1.6rem; color: var(--accent); }
.thanks p { color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--text); color: #E9E4DC; padding: 3.5rem 0 2.5rem; }
.footer-dna { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 700; line-height: 1.3; max-width: 30ch; margin-bottom: 2rem; color: #fff; }
.footer-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; align-items: center; font-size: 1rem; }
.footer-meta a { color: #E9E4DC; }
.footer-meta a:hover { color: #fff; }
.site-footer .logo { color: #fff; }
.site-footer .logo span { color: #9DBBDA; }

/* ---------- Rolig fade-in ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================
   Forside-valg, undersider og mellemstore-sektioner
   ========================================================== */

.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; max-width: 40ch; }

.nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }
@media (max-width: 960px) { .nav { gap: 1rem; } .nav a:not(.btn) { font-size: .98rem; } }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-hover); }

/* Valg på forsiden */
.choose { background: var(--surface); }
.choice-grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 860px) { .choice-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.choice {
  display: flex; flex-direction: column;
  background: var(--card); color: var(--text); text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.choice:hover { color: var(--text); border-color: var(--accent); box-shadow: 0 10px 30px rgba(31, 35, 40, .08); }
.choice img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.choice-body { padding: 1.75rem 1.75rem 2rem; display: flex; flex-direction: column; flex: 1; }
.choice-body h3 { font-size: 1.8rem; }
.choice-body > p:not(.eyebrow) { color: var(--muted); }
.choice-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.choice-list li { padding: .4rem 0 .4rem 1.6rem; position: relative; }
.choice-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.choice-cta { margin-top: auto; font-weight: 700; color: var(--accent); font-size: 1.15rem; }
.choice:hover .choice-cta { text-decoration: underline; text-underline-offset: .2em; }

.unsure { padding-bottom: clamp(4rem, 9vw, 7rem); }

.crosslink { padding-bottom: 3rem; color: var(--muted); font-size: 1.05rem; }
.crosslink a { font-weight: 600; }

/* Ydelser */
.service-grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 700px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
.service {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.4rem; border-top: 4px solid var(--accent);
}
.service p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* Resultatliste */
.result-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.result-list li { padding: .45rem 0 .45rem 1.8rem; position: relative; font-weight: 600; }
.result-list li::before { content: "✓"; position: absolute; left: 0; color: #2E6B3C; font-weight: 700; }

/* Integrationsdiagram */
.diagram {
  display: grid; grid-template-columns: 1fr 1.2rem 1fr 1.2rem 1fr; align-items: center; gap: .5rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.1rem; box-shadow: 0 10px 30px rgba(31, 35, 40, .06);
}
.dg-col { display: flex; flex-direction: column; gap: .6rem; }
.dg-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: center; margin-bottom: .2rem; }
.dg-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: .55rem .5rem; text-align: center; font-weight: 600; font-size: .95rem; line-height: 1.2;
}
.dg-box small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; margin-top: .15rem; }
.dg-out { background: var(--accent-soft); border-color: #C9D8E7; color: var(--accent); }
.dg-hub {
  background: var(--accent); color: #fff; border-radius: 12px;
  padding: 1.4rem .6rem; text-align: center; display: flex; flex-direction: column; gap: .5rem;
}
.dg-hub strong { font-size: 1.25rem; }
.dg-hub span { font-size: .85rem; background: rgba(255,255,255,.14); border-radius: 6px; padding: .3rem .2rem; }
.dg-arrow { height: 2px; background: var(--accent); position: relative; }
.dg-arrow::after {
  content: ""; position: absolute; right: -2px; top: -5px;
  border: 6px solid transparent; border-left: 8px solid var(--accent); border-right: 0;
}
@media (max-width: 560px) {
  .diagram { grid-template-columns: 1fr; }
  .dg-arrow { width: 2px; height: 1.6rem; margin: 0 auto; }
  .dg-arrow::after { right: -5px; top: auto; bottom: -4px; border: 6px solid transparent; border-top: 8px solid var(--accent); border-bottom: 0; }
  .dg-col:not(.dg-center) { display: grid; grid-template-columns: 1fr 1fr; }
  .dg-col .dg-label { grid-column: 1 / -1; }
}

/* Teknologi */
.tech { background: var(--surface); padding-top: clamp(4rem, 9vw, 7rem); }
.process + .tech { background: var(--bg); }
.tech-grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }
.tech-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.tech-group h3 { font-size: 1.1rem; margin-bottom: .8rem; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tags li { background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .95rem; padding: .25em .7em; border-radius: 8px; }

/* Sikkerhed */
.security { background: var(--text); color: #F2EDE4; }
.security h2 { color: #fff; }
.checklist { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .25rem 2rem; }
@media (min-width: 700px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { padding: .75rem 0 .75rem 2rem; position: relative; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 1.1rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: #9DBBDA; font-weight: 700; }

/* Formular-tilføjelser */
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field select {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--text);
  background: var(--bg); border: 1px solid #CFC6B8; border-radius: 10px; padding: .75em .9em;
}
.field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-text .section-intro { margin-top: 0; }

/* ==========================================================
   Mørk og struktureret stil (forside + fælles header)
   ========================================================== */
    :root { --navy: #1C344E; --navy-2: #24425F; }

    .site-header { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); }
    .site-header .logo, .site-header .nav a:not(.btn) { color: #fff; }
    .site-header .logo span { color: #9DBBDA; }
    .site-header .nav a:not(.btn):hover { color: #BFD3E8; }
    .site-header .btn { background: #fff; color: var(--navy); }
    .site-header .btn:hover { background: var(--accent-soft); color: var(--navy); }

    .d-hero { background: var(--navy); color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0 0; overflow: hidden; }
    .d-hero-grid { display: grid; gap: 2.5rem; align-items: end; }
    @media (min-width: 900px) { .d-hero-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
    .d-hero h1 { color: #fff; }
    .d-hero .lead { color: #C9D6E3; }
    .d-hero .btn { background: #fff; color: var(--navy); }
    .d-hero .btn:hover { background: var(--accent-soft); }
    .d-hero-text { padding-bottom: clamp(3rem, 7vw, 5rem); }
    .d-hero figure { margin: 0; }
    .d-hero figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
    @media (min-width: 900px) { .d-hero figure img { aspect-ratio: 4 / 5; } }

    .d-stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; }
    @media (min-width: 700px) { .d-stats { grid-template-columns: repeat(4, 1fr); } }
    .d-stat { padding: 1.25rem 1rem 1.25rem 0; }
    .d-stat strong { display: block; font-size: 1.15rem; color: #fff; }
    .d-stat span { color: #9FB3C8; font-size: .98rem; }

    /* Delt skærm: lys / mørk */
    .d-split { display: grid; }
    @media (min-width: 900px) { .d-split { grid-template-columns: 1fr 1fr; } }
    .d-side { padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4.5rem); display: flex; flex-direction: column; }
    .d-light { background: var(--bg); }
    .d-dark { background: var(--navy-2); color: #E9EEF3; }
    .d-dark h2, .d-dark h3 { color: #fff; }
    .d-dark .eyebrow { color: #9DBBDA; }
    .d-side h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
    .d-side > p { font-size: 1.2rem; }
    .d-light > p { color: var(--muted); }
    .d-dark > p { color: #C9D6E3; }
    .d-list { list-style: none; padding: 0; margin: 1rem 0 2rem; counter-reset: d; }
    .d-list li { counter-increment: d; padding: .9rem 0 .9rem 3rem; position: relative; border-top: 1px solid var(--line); }
    .d-dark .d-list li { border-top-color: rgba(255,255,255,.14); }
    .d-list li::before {
      content: counter(d, decimal-leading-zero); position: absolute; left: 0; top: .9rem;
      font-weight: 700; color: var(--accent); font-size: .95rem;
    }
    .d-dark .d-list li::before { color: #9DBBDA; }
    .d-side .btn { align-self: flex-start; margin-top: auto; }
    .d-dark .btn { background: #fff; color: var(--navy); }
    .d-dark .btn:hover { background: var(--accent-soft); }

    /* Samtale i tre kolonner */
    .d-talk-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
    @media (min-width: 860px) { .d-talk-grid { grid-template-columns: repeat(3, 1fr); } }
    .d-talk { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
    .d-talk p { margin: 0; font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
    .d-talk p + p { color: var(--accent); margin-top: .6rem; }

    .principle { background: var(--navy); }

/* Mørk hero på undersider */
.hero-dark { background: var(--navy); color: #fff; }
.hero-dark h1 { color: #fff; }
.hero-dark .lead { color: #C9D6E3; }
.hero-dark .eyebrow { color: #9DBBDA; }
.hero-dark .btn { background: #fff; color: var(--navy); }
.hero-dark .btn:hover { background: var(--accent-soft); color: var(--navy); }
.hero-dark .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.hero-dark .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.site-header .nav a[aria-current="page"] { color: #BFD3E8; }

/* ==========================================================
   Projekter
   ========================================================== */
.narrow-left { max-width: var(--max); }
.narrow-left > * { max-width: 760px; }
.proj-hero { padding-bottom: clamp(3.5rem, 8vw, 5.5rem); }

.proj-filter-wrap {
  position: sticky; top: 68px; z-index: 20;
  background: rgba(250, 247, 242, .96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.proj-filter { display: flex; gap: .5rem; overflow-x: auto; padding: .9rem 0; scrollbar-width: none; }
.proj-filter::-webkit-scrollbar { display: none; }
.chip {
  flex: none; font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
  background: var(--card); color: var(--text);
  border: 1px solid #CFC6B8; border-radius: 999px; padding: .4rem 1rem;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--navy, #1C344E); border-color: var(--navy, #1C344E); color: #fff; }
.chip-sep { flex: none; width: 1px; background: var(--line); margin: .2rem .25rem; }

.proj-group-alt { background: var(--surface); }
.proj-group-head { max-width: 760px; }
.proj-grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 760px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .proj-grid { grid-template-columns: repeat(3, 1fr); } }

.proj {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.5rem;
}
.proj[hidden] { display: none; }
.proj-top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.proj-type {
  font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent);
}
.proj-seg { font-size: .85rem; font-weight: 600; color: var(--muted); background: var(--surface); border-radius: 999px; padding: .15rem .7rem; }
.proj-group-alt .proj-seg { background: var(--bg); }
.proj h3 { font-size: 1.4rem; }
.proj-dl { margin: .25rem 0 1.25rem; }
.proj-dl dt { font-weight: 700; font-size: .95rem; margin-top: .75rem; }
.proj-dl dd { margin: .2rem 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.5; }
.proj .tags { margin-top: auto; }
.proj .tags li { font-size: .85rem; }

.proj-empty { padding: 4rem var(--gutter); text-align: center; color: var(--muted); }

.proj-note p { font-size: 1.2rem; }
.proj-cta { background: var(--navy, #1C344E); color: #fff; }
.proj-cta h2 { color: #fff; }
.proj-cta .section-intro { color: #C9D6E3; }
.proj-cta .btn { background: #fff; color: var(--navy, #1C344E); }
.proj-cta .btn:hover { background: var(--accent-soft); }
.proj-cta .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.proj-cta .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Projekter – rigtige cases */
.proj-group[hidden] { display: none; }
.proj-desc { color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
.proj-features { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.proj-features li { position: relative; padding: .3rem 0 .3rem 1.4rem; font-size: 1rem; }
.proj-features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.status { font-size: .8rem; font-weight: 700; border-radius: 999px; padding: .15rem .7rem; white-space: nowrap; }
.status.live  { background: #E3F1E6; color: #2E6B3C; }
.status.beta  { background: #FBF0D9; color: #8A5A12; }
.status.proto { background: var(--surface); color: var(--muted); }
.proj-group-alt .status.proto { background: var(--bg); }

.proj-feature { display: grid; gap: 2rem; margin-top: 2.5rem; padding: clamp(1.6rem, 4vw, 2.5rem); border-top: 4px solid var(--accent); }
@media (min-width: 980px) { .proj-feature { grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; } }
.proj-feature h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.proj-feature .result-list { margin-bottom: 1.5rem; }
.proj-feature .result-list li { font-weight: 600; }
.proj-modules { display: grid; gap: .9rem; }
@media (min-width: 560px) { .proj-modules { grid-template-columns: 1fr 1fr; } }
.module { background: var(--surface); border-radius: 10px; padding: 1.1rem 1.2rem; }
.module h4 { margin: 0 0 .35rem; font-size: 1.1rem; color: var(--accent); }
.module p { margin: 0; font-size: .98rem; color: var(--muted); line-height: 1.5; }

.proj-grid-2 { }
@media (min-width: 1080px) { .proj-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .proj-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .proj-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.proj-grid-4 .proj h3 { font-size: 1.3rem; }

.proj-types { background: var(--surface); }
.type-grid { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 700px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .type-grid { grid-template-columns: repeat(3, 1fr); } }
.type { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.type h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.type p { color: var(--muted); font-size: 1rem; margin: 0 0 .8rem; }
.type .tags li { font-size: .82rem; }
.proj-feature + .proj-feature { margin-top: 1.5rem; }
@media (min-width: 560px) and (max-width: 979px) { .proj-modules { grid-template-columns: 1fr 1fr; } }

/* ---------- Servicevirksomheder (landingsside) ---------- */
.service-modules .module h3 { margin: 0 0 .35rem; font-size: 1.15rem; color: var(--accent); }
.service-modules .module h3 small { font-weight: 400; font-size: .85rem; color: var(--muted); }
.service-modules .module { background: var(--surface); }
@media (min-width: 980px) { .service-modules { grid-template-columns: repeat(3, 1fr); } }

.faq { display: grid; gap: .75rem; margin-top: 1.5rem; }
.faq details { background: var(--surface); border-radius: 12px; padding: 1rem 1.25rem; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .6rem 0 0; color: var(--muted); }
.niche-link { padding-top: 2.5rem; padding-bottom: 0; font-size: 1.15rem; }

/* ---------- Om os ---------- */
.about-hero { text-align: left; }
.about-tagline { font-weight: 600; color: var(--accent); }
.team-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card { background: var(--bg); border-radius: 12px; padding: 1.5rem; }
.team-photo { width: 120px; height: 120px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 2rem; font-weight: 700; overflow: hidden; margin-bottom: 1rem; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin: 0; font-size: 1.3rem; }
.team-role { margin: .2rem 0 .75rem; color: var(--accent); font-weight: 600; }
.team-card p:last-child { margin: 0; color: var(--muted); }
.spec-tags { margin-top: 1.5rem; }
.spec-tags li { font-size: 1rem; }
.about-text p { font-size: 1.2rem; }
.about-cta { justify-content: center; margin-top: 2rem; }
.principle .about-cta .btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.principle .about-cta .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
