/* NaboDeal
   Layout: én smal spalte for formularer, bred til forside; vejen som gennemgående motiv. */

@font-face { font-family: "Familjen Grotesk"; src: url("fonts/familjen-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("fonts/familjen-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #F3F5F0;
  --surface: #FFFFFF;
  --soft: #E5ECE3;
  --ink: #15231B;
  --muted: #56645B;
  --line: #D3DBD1;
  --hedge: #1D5A3B;
  --hedge-hover: #164A30;
  --on-hedge: #FFFFFF;
  --sun: #F0B82D;
  --on-sun: #271E03;
  --ok: #1D7443;
  --ok-bg: #E1F1E6;
  --warn: #8A5A00;
  --warn-bg: #FBF0D6;
  --err: #B3261E;
  --err-bg: #FBE4E1;
  --info: #1F5A8A;
  --info-bg: #E2EDF7;
  --focus: #2A6FDB;

  --font-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 10px;
  --radius-sm: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1712;
    --surface: #16211A;
    --soft: #1B2A20;
    --ink: #E6EEE7;
    --muted: #9DAEA2;
    --line: #2B3A30;
    --hedge: #5DBB86;
    --hedge-hover: #78CC9C;
    --on-hedge: #0A140D;
    --sun: #F2C04A;
    --on-sun: #1F1802;
    --ok: #6FCB94;
    --ok-bg: #173323;
    --warn: #EDB54E;
    --warn-bg: #362A10;
    --err: #F08A80;
    --err-bg: #3A1B18;
    --info: #86BBE6;
    --info-bg: #15293A;
    --focus: #8AB4FF;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img, svg { max-width: 100%; }
a { color: var(--hedge); text-underline-offset: 3px; }
a:hover { color: var(--hedge-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-size: 0.92em; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
section.wrap { padding-block: 40px; }

/* Header og footer */
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; }
.logo:hover { color: var(--ink); }
.logo b { color: var(--hedge); font-weight: 700; }
.logo-mark { width: 58px; height: 23px; }
.logo-mark .lm-house { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.logo-mark .lm-hedge { fill: var(--hedge); }
.logo-mark .lm-ground { stroke: var(--sun); stroke-width: 2.8; stroke-linecap: round; }
.main-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px 12px; border-radius: var(--radius-sm); }
.main-nav a:hover { background: var(--soft); color: var(--ink); }
.main-nav a.is-active { background: var(--soft); }

.site-foot { border-top: 1px solid var(--line); margin-top: 48px; }
.foot-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 24px; color: var(--muted); font-size: 0.95rem; }

/* Knapper */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem/1 var(--font-body);
  padding: 14px 20px; border-radius: var(--radius-sm);
  border: 2px solid var(--hedge); background: var(--hedge); color: var(--on-hedge);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--hedge-hover); border-color: var(--hedge-hover); color: var(--on-hedge); }
.btn-ghost { background: transparent; color: var(--hedge); }
.btn-ghost:hover { background: var(--soft); color: var(--hedge); }
.btn-small { padding: 9px 14px; font-size: 0.95rem; }
.btn-danger { background: transparent; border-color: var(--err); color: var(--err); }
.btn-danger:hover { background: var(--err-bg); border-color: var(--err); color: var(--err); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Forside */
.hero { padding-block: 56px 32px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 .hl { color: var(--on-sun); background: var(--sun); padding: 0 0.12em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin-top: 18px; }
.hero .btn-row { margin-top: 28px; }
.eyebrow { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--hedge); }

.street { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px 16px; }
.street svg { display: block; width: 100%; height: auto; }
.street .house { fill: var(--soft); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.street .house.on { fill: var(--sun); }
.street .door { fill: var(--ink); }
.street .road { fill: var(--ink); }
.street .dash { stroke: var(--bg); stroke-width: 2; stroke-dasharray: 10 8; }
.street .bracket { fill: none; stroke: var(--hedge); stroke-width: 2.4; stroke-linecap: round; }
.street .tag { fill: var(--hedge); font: 700 14px var(--font-body); }
.street .nr.on { fill: var(--on-sun); }
.street .nr { fill: var(--ink); font: 600 11px var(--font-mono); }
.street-cap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); font-size: 0.95rem; }

.band { background: var(--surface); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--hedge); color: var(--on-hedge); margin-bottom: 6px; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.cat-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: 0.95rem; }

.promise { border-left: 4px solid var(--sun); padding: 4px 0 4px 16px; }

/* Formularer */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
legend { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin-bottom: 4px; padding: 0; }
.form-sections { display: flex; flex-direction: column; gap: 32px; }
.form-sections > fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 28px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-weight: 700; }
.hint { color: var(--muted); font-size: 0.95rem; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.row-3 { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--hedge); outline: 3px solid color-mix(in srgb, var(--hedge) 25%, transparent); outline-offset: 0; }
[aria-invalid=true] { border-color: var(--err) !important; }
.field-err { color: var(--err); font-weight: 600; font-size: 0.95rem; }

.choice-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--hedge); background: var(--soft); }
.choice input { margin-top: 4px; accent-color: var(--hedge); width: 18px; height: 18px; flex: none; }
.choice strong { display: block; }
.choice span { color: var(--muted); font-size: 0.95rem; }

.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { accent-color: var(--hedge); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.check-group { display: flex; flex-direction: column; gap: 8px; }
.check-group + .check-group { margin-top: 12px; }
.consent { padding: 16px; background: var(--soft); border-radius: var(--radius-sm); }

.addr-list { display: flex; flex-direction: column; gap: 8px; }
.addr-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.addr-row .n { font-family: var(--font-mono); color: var(--muted); text-align: right; }
.addr-row button { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 8px; }
.addr-row button:hover { color: var(--err); }
.addr-count { font-weight: 700; }
.addr-count.ok { color: var(--ok); }

/* Beskeder */
.alert { padding: 16px 18px; border-radius: var(--radius-sm); }
.alert ul { margin: 8px 0 0; padding-left: 20px; }
.alert-err { background: var(--err-bg); color: var(--ink); border-left: 4px solid var(--err); }
.alert-ok { background: var(--ok-bg); border-left: 4px solid var(--ok); }
.alert-info { background: var(--info-bg); border-left: 4px solid var(--info); }
.alert-warn { background: var(--warn-bg); border-left: 4px solid var(--warn); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill-open { background: var(--info-bg); color: var(--info); }
.pill-ready { background: var(--warn-bg); color: var(--warn); }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--err-bg); color: var(--err); }
.pill-muted { background: var(--soft); color: var(--muted); }

/* Opgave og tilbud */
.task-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.desc { white-space: pre-line; overflow-wrap: anywhere; }

.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.offer { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.offer.chosen { border-color: var(--hedge); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hedge) 20%, transparent); }
.offer .price { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.offer .price small { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.offer .facts { font-size: 0.97rem; }
.offer .btn { margin-top: auto; }
.flag { display: inline-block; font-size: 0.85rem; font-weight: 700; color: var(--warn); background: var(--warn-bg); padding: 3px 8px; border-radius: var(--radius-sm); }

/* Admin */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 14px; text-decoration: none; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.is-active { color: var(--ink); border-bottom-color: var(--hedge); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--soft); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.kpi b { display: block; font-family: var(--font-display); font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: 0.92rem; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form select { width: auto; max-width: 100%; }

@media (max-width: 860px) {
  .hero-grid, .two-col { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .wrap { padding-inline: 16px; }
  .hero { padding-block: 32px 16px; }
  .steps, .row, .checks, .choice-cards, .cat-groups { grid-template-columns: minmax(0, 1fr); }
  .row-3 { grid-template-columns: 100px minmax(0, 1fr); }
  .form-card, .panel { padding: 20px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.photos a { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); max-width: 100%; }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-fields { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--soft); border-radius: var(--radius-sm); }
input[type=file] { font: inherit; max-width: 100%; }
.fee-box { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding: 18px; background: var(--soft); border-radius: var(--radius-sm); }
.fee-amount { font-family: var(--font-display); font-weight: 700; font-size: 2rem; }
.strike { text-decoration: line-through; color: var(--muted); font-size: 1.1rem; font-weight: 600; margin-left: 8px; }
.why { display: flex; flex-direction: column; gap: 24px; padding-block: 24px 48px; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.why-grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.why-grid h3 { font-size: 1.15rem; }
.why-grid p { color: var(--muted); }
@media (max-width: 860px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: minmax(0, 1fr); } }
.terms h2 { font-size: 1.3rem; margin-top: 12px; }
.terms p { max-width: 65ch; }
