@font-face {
  font-family: "Archivo";
  src: url("/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #1c2b36;
  --muted: #56666f;
  --paper: #ffffff;
  --wash: #eef2f4;
  --line: #d6dde2;
  --tag: #ffd447;
  --yes: #1f6b4a;
  --no: #8a4b1e;
  --measure: 42rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--tag); padding: .5rem .75rem; z-index: 10; }

header.site, main, footer.site { max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem; }

header.site { padding-top: 1.25rem; padding-bottom: 1.25rem; }

.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 800; font-stretch: 112%; font-size: 1.25rem; letter-spacing: -.01em;
  text-decoration: none;
}

/* Prisskiltet: det ene gennemgående visuelle greb */
.brand-tag, .tag {
  --notch: .55em;
  background: var(--tag);
  clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, var(--notch) 100%, 0 50%);
  position: relative;
}
.brand-tag { width: 1.4rem; height: 1rem; display: inline-block; }
.brand-tag::after, .tag::after {
  content: ""; position: absolute; left: calc(var(--notch) * .75); top: 50%;
  width: .22em; height: .22em; margin-top: -.11em; border-radius: 50%; background: var(--paper);
}
.brand-tag::after { width: .22rem; height: .22rem; margin-top: -.11rem; left: .38rem; }

.tag {
  display: inline-block;
  padding: .12em .5em .12em calc(var(--notch) + .45em);
  font-weight: 750;
  white-space: nowrap;
}

.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

h1, h2, h3 { line-height: 1.15; margin: 0; }

h1 {
  font-size: clamp(2rem, 7vw, 3.1rem);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -.02em;
}

.intro { padding: .5rem 0 1.5rem; }
.intro .range { font-size: 1.2rem; margin: .9rem 0 .35rem; max-width: 34rem; }
.intro .range strong { font-weight: 750; }
.checked { color: var(--muted); font-size: .9rem; margin: 0; }

/* Forside */
.hero { padding: 2rem 0 2.5rem; }
.hero h1 { font-size: clamp(2.6rem, 11vw, 4.6rem); line-height: 1.02; max-width: 12ch; }
.hero > p { font-size: 1.2rem; max-width: 32rem; margin: 1.25rem 0 2rem; color: var(--muted); }

.example {
  display: grid; gap: .35rem;
  padding: 1.25rem 1.25rem 1.1rem;
  background: var(--wash);
  border-radius: 6px;
  text-decoration: none;
  max-width: 30rem;
}
.example-what { font-weight: 600; }
.example-price { font-size: 1.6rem; font-weight: 700; }
.example-more { text-decoration: underline; text-underline-offset: 3px; color: var(--muted); font-size: .95rem; }
.example:hover .example-more { color: var(--ink); }

.cats h2, .advice h2 { font-size: 1.35rem; font-weight: 750; font-stretch: 106%; margin-bottom: .9rem; }

/* Lister over behandlinger og byer */
.procs { list-style: none; padding: 0; margin: 0 0 2rem; border-top: 1px solid var(--line); }
.procs li { border-bottom: 1px solid var(--line); }
.proc {
  display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; row-gap: .15rem;
  padding: 1rem 0; text-decoration: none;
}
.proc-name { font-weight: 650; font-size: 1.1rem; }
.proc-range { font-weight: 650; text-align: right; }
.proc-low { grid-column: 1 / -1; color: var(--muted); font-size: .92rem; }
a.proc:hover .proc-name { text-decoration: underline; text-underline-offset: 3px; }
.proc.soon { color: var(--muted); }

/* Genveje mellem behandlinger */
.chips {
  display: flex; gap: .5rem; overflow-x: auto; padding: .25rem 1.25rem 1rem; margin: 0 -1.25rem;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; font-size: .92rem; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Tilbud */
.offers { list-style: none; padding: 0; margin: .5rem 0 1.5rem; }
.offer { padding: 1.35rem 0 1.25rem; border-top: 1px solid var(--line); }
.offer:last-child { border-bottom: 1px solid var(--line); }

.offer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.offer h2 { font-size: 1.15rem; font-weight: 700; }
.where { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }

.price { margin: 0; text-align: right; font-size: 1.3rem; display: grid; justify-items: end; gap: .3rem; }
.price .tag { background: none; clip-path: none; padding: 0; }
.price .tag::after { display: none; }
.cheapest .price .tag {
  background: var(--tag);
  clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, var(--notch) 100%, 0 50%);
  padding: .12em .5em .12em calc(var(--notch) + .45em);
}
.cheapest .price .tag::after { display: block; }
.flag { font-size: .8rem; font-weight: 600; color: var(--muted); }

.note { margin: .6rem 0 0; font-size: .92rem; color: var(--muted); }

.terms { display: grid; grid-template-columns: 1fr; gap: .75rem; margin-top: .85rem; }
@media (min-width: 36rem) { .terms { grid-template-columns: 1fr 1fr; } }
.terms h3 { font-size: .85rem; font-weight: 650; color: var(--muted); margin-bottom: .3rem; }
.terms ul { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.terms li { padding-left: 1.3rem; position: relative; margin: .15rem 0; }
.yes li::before { content: "✓"; position: absolute; left: 0; color: var(--yes); font-weight: 700; }
.no li::before { content: "+"; position: absolute; left: .1rem; color: var(--no); font-weight: 700; }

.actions { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 1rem 0 0; font-size: .92rem; }

.missing { color: var(--muted); font-size: .92rem; }

.advice { padding: 1.5rem 0 2rem; max-width: 36rem; }
.advice p { margin: 0 0 .9rem; }
.prose h2 { margin-top: 1.75rem; font-size: 1.2rem; }
.fix { color: var(--muted); font-size: .95rem; }
.clinics { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .75rem; font-size: .95rem; }

footer.site {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem; padding-bottom: 3rem; margin-top: 1rem;
  font-size: .9rem; color: var(--muted);
}
footer.site p { margin: 0 0 .75rem; max-width: 36rem; }
footer.site a { margin-right: 1rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.city { display: inline-block; font-size: .8rem; font-weight: 650; color: var(--muted); margin-bottom: .15rem; }
.list-title { font-size: 1.2rem; font-weight: 750; margin: 1.5rem 0 .6rem; }
.regions { padding-top: 0; }
.chip-soft { font-size: .85rem; padding: .35rem .7rem; }
.chip-soft[aria-current="page"] { background: var(--wash); color: var(--ink); border-color: var(--ink); }
.more { margin-top: .6rem; font-size: .9rem; color: var(--muted); }
.more summary { cursor: pointer; }
.more .note { margin-top: .35rem; }

/* Søgning */
.search { margin: 0 0 1.5rem; max-width: 34rem; }
.search label { display: block; font-weight: 650; margin-bottom: .4rem; }
.search input, .search select {
  width: 100%; font: inherit; font-size: 1.1rem; color: var(--ink);
  padding: .8rem .9rem; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper);
}
.search select { font-size: 1rem; padding: .85rem .7rem; }
.combo { position: relative; }
#sug {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5;
  list-style: none; margin: 0; padding: .3rem 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 8px 24px rgba(28, 43, 54, .12);
}
#sug li[role=option] { padding: .65rem .9rem; cursor: pointer; }
#sug li[aria-selected=true] { background: var(--wash); }
.sug-empty { padding: .65rem .9rem; color: var(--muted); font-size: .95rem; }
.hint { margin: .5rem 0 0; color: var(--muted); font-size: .92rem; min-height: 1.4em; }
.zip-step { margin-top: 1.1rem; }
.zip-row { display: grid; grid-template-columns: 8rem 1fr; gap: .75rem; align-items: start; }
.zip-name { margin: .5rem 0 0; font-weight: 600; min-height: 1.4em; }
.res-title { font-size: 1.35rem; font-weight: 750; margin: 1.5rem 0 .25rem; }
.res-name { font-size: 1.15rem; font-weight: 700; margin: 0; }
.terms h4 { font-size: .85rem; font-weight: 650; color: var(--muted); margin: 0 0 .3rem; }
.res-note { color: var(--muted); }
.res-more { margin: .5rem 0 2rem; }
.cats .example { margin-bottom: 2rem; }

/* Navigation */
header.site { display: flex; justify-content: space-between; align-items: center; }
.nav { font-size: .95rem; }

/* Forside kun med søgning */
.hero-search { min-height: 70vh; }

.sug-cat { float: right; font-size: .8rem; color: var(--muted); margin-left: .75rem; }

/* Samlet pris og nøgletal */
.price-label { font-size: .75rem; font-weight: 600; color: var(--muted); }
.total-note { font-size: .92rem; color: var(--muted); margin: .25rem 0 .5rem; max-width: 36rem; }
.facts { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.facts li { background: var(--wash); border-radius: 6px; padding: .4rem .65rem; display: grid; font-size: .82rem; }
.facts span { color: var(--muted); }
.facts strong { font-size: .98rem; }

/* Hvad får du for merprisen */
.value { margin: .75rem 0 0; padding: .6rem .75rem; border-left: 3px solid var(--tag); background: #fffbea; font-size: .93rem; }

/* Sammenligningstabel */
.matrix { margin: .5rem 0 1rem; }
.matrix h2 { font-size: 1.2rem; font-weight: 750; margin-bottom: .25rem; }
.matrix-sub { font-size: .88rem; color: var(--muted); margin: 0 0 .6rem; }
.matrix-scroll { overflow-x: auto; margin: 0 -1.25rem; padding: 0 1.25rem; }
.matrix table { border-collapse: collapse; font-size: .85rem; min-width: 100%; }
.matrix th, .matrix td { padding: .5rem .45rem; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.matrix thead th { font-weight: 650; color: var(--muted); font-size: .78rem; min-width: 5.5rem; }
.matrix tbody th { text-align: left; font-weight: 650; min-width: 9rem; }
.matrix tbody th span { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.matrix td span { display: inline-block; padding: .15rem .45rem; border-radius: 4px; font-size: .78rem; font-weight: 600; }
.m-yes span { background: #e3f1ea; color: var(--yes); }
.m-no span { background: #f6e8dd; color: var(--no); }
.m-unk span { background: var(--wash); color: var(--muted); }

/* Postnummerfilter på undersider */
.near { display: grid; grid-template-columns: 8rem 1fr; gap: .5rem .75rem; margin: 0 0 1rem; padding: 1rem; background: var(--wash); border-radius: 8px; }
.near label { display: block; font-weight: 650; font-size: .9rem; margin-bottom: .3rem; }
.near input, .near select { width: 100%; font: inherit; padding: .6rem .7rem; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); color: var(--ink); }
.near-status { grid-column: 1 / -1; margin: 0; font-size: .9rem; color: var(--muted); }
.offer[hidden], tr[hidden] { display: none; }

/* Logo: selve navnet er et prisskilt */
.brand {
  --notch: .7rem;
  display: inline-flex; align-items: center; gap: 0;
  background: var(--tag); color: var(--ink);
  padding: .32rem .75rem .32rem calc(var(--notch) + .7rem);
  clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, var(--notch) 100%, 0 50%);
  font-size: 1.15rem; font-weight: 500; font-stretch: 110%; letter-spacing: -.01em;
  position: relative; transform: rotate(-2deg); transform-origin: left center;
  transition: transform .2s ease;
}
.brand b { font-weight: 850; }
.brand:hover { transform: rotate(0deg); }
.brand-hole { position: absolute; left: .55rem; top: 50%; width: .42rem; height: .42rem; margin-top: -.21rem; border-radius: 50%; background: var(--paper); }
.brand-tag { display: none; }
@media (prefers-reduced-motion: reduce) { .brand { transition: none; } }

/* Komprimeret forside */
.hero-search { min-height: 0; padding: .5rem 0 1rem; }
.hero-search h1 { font-size: clamp(2rem, 8.5vw, 3.2rem); line-height: 1.05; max-width: none; }
.hero-search > p { font-size: 1.08rem; margin: 1rem 0 1.75rem; }
.hero-search .search { margin-bottom: .75rem; padding: 1.15rem; background: var(--wash); border-radius: 12px; }
.hero-search .search label { font-size: 1rem; margin-bottom: .4rem; }
.hero-search .search input, .hero-search .search select { box-sizing: border-box; height: 3.5rem; padding: 0 1rem; font-size: 1.15rem; border-radius: 8px; }
.hero-search .search select { padding: 0 .5rem; font-size: 1.02rem; }
.hero-search .zip-row { grid-template-columns: 7.5rem 1fr; }
.hero-search .hint { margin-top: .6rem; font-size: .85rem; min-height: 0; }
.hero-search .zip-step { margin-top: 1rem; }
.hero-search .zip-name { margin-top: .35rem; font-size: .9rem; min-height: 0; }
.hero-search .res-title { margin-top: .75rem; }
header.site { padding-top: 1rem; padding-bottom: .75rem; }
/* Hovedsøgefeltet skal være tydeligt */
.hero-search .search label[for="q"] { font-size: 1.15rem; margin-bottom: .5rem; }
.hero-search #q { height: 4.4rem; font-size: 1.3rem; border-width: 3px; border-radius: 12px; padding: 0 1rem 0 3.4rem;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' fill='none' stroke='%231c2a36' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 1rem center; }
.hero-search #q:focus { outline: 3px solid var(--accent, #ffd23f); outline-offset: 3px; }
