/* Repair.dk - statisk CSS (erstatter Tailwind play-CDN) */
@font-face { font-family: "Manrope"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); }

:root {
  --ink: #12192b;
  --muted: #4a5470;
  --bg: #f6f7fb;
  --paper: #ffffff;
  --line: #dde2ee;
  --blue: #0a5bd8;
  --blue-deep: #083f96;
  --blue-soft: #e8f0fd;
  --orange: #c4560c;
  --orange-soft: #fff1e4;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font-family: "Manrope", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--bg); }
::selection { background: var(--blue); color: #fff; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2 { font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; margin: 0 0 1rem; }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
p { margin: 0 0 1rem; }

.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2rem); }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--paper); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; }

.top { position: sticky; top: 0; z-index: 5; background: rgba(246, 247, 251, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand svg { color: var(--blue); }
.nav { display: flex; gap: 1.5rem; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--blue); }

.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); background: linear-gradient(180deg, var(--blue-soft), var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 38rem; }
.notice { display: inline-block; margin-top: 0.5rem; padding: 0.6rem 0.9rem; border-radius: 10px; background: var(--orange-soft); color: #7a3606; font-weight: 600; font-size: 0.95rem; }
.quick { list-style: none; margin: 0; padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px -18px rgba(18, 25, 43, 0.35); }
.quick li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.quick li:first-child { padding-top: 0; }
.quick li:last-child { border-bottom: 0; padding-bottom: 0; }
.quick strong { color: var(--blue-deep); }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--paper); border-block: 1px solid var(--line); }
.intro { color: var(--muted); max-width: 40rem; }
.two { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.small { font-size: 0.875rem; color: var(--muted); }

/* Tabel: én linje pr. celle, sidelæns scroll i rammen, fast første kolonne (må ombryde, maks 45 %) */
.tabel-wrap { margin-top: 1.5rem; overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.98rem; }
th, td { padding: 0.9rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
th { background: var(--blue-deep); color: #fff; font-weight: 600; }
th:first-child, td:first-child { position: sticky; left: 0; z-index: 1; white-space: normal; width: 38vw; max-width: 38vw; background: var(--paper); box-shadow: 1px 0 0 var(--line); font-weight: 600; }
th:first-child { background: var(--blue-deep); }
.tabel-wrap + .small { margin-top: 0.6rem; }
@media (min-width: 900px) { .tabel-wrap + .small { display: none; } th:first-child, td:first-child { width: auto; max-width: 22rem; } }

.facts { margin: 0; display: grid; gap: 0; }
.facts div { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; padding-top: 0; }
.facts dt { font-weight: 800; margin-bottom: 0.25rem; }
.facts dd { margin: 0; color: var(--muted); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.25rem 3rem; color: var(--muted); }
.steps li strong { color: var(--ink); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 800; font-size: 0.9rem; }

.checks { margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding: 0.75rem 0 0.75rem 2rem; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: ""; position: absolute; left: 0.2rem; top: 1.05rem; width: 0.9rem; height: 0.5rem; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }

details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); margin-top: 1.5rem; }
summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 0.4rem; top: 1.45rem; width: 0.55rem; height: 0.55rem; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform 0.2s ease-out; }
details[open] summary::after { transform: rotate(-135deg); top: 1.7rem; }
details p { color: var(--muted); padding-bottom: 0.5rem; }

.foot { background: var(--ink); color: #c9d0e2; padding: 3rem 0; }
.foot a { color: #9cc0ff; }
.foot .small { color: #9aa3bd; }
.foot-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; }
.brand-foot { font-weight: 800; font-size: 1.2rem; color: #fff; }

@media (max-width: 860px) {
  html { scroll-padding-top: 8.5rem; }
  .top-bar { flex-wrap: wrap; row-gap: 0; min-height: 0; }
  .brand { min-height: 3.25rem; }
  .nav { flex-wrap: wrap; column-gap: 1.25rem; row-gap: 0; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9rem; white-space: nowrap; }
  .hero-grid, .two, .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .nav { column-gap: 0.85rem; }
  .nav a { font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } summary::after { transition: none; } }
