/* Midtjysk IT – fælles stylesheet */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f5f2;
  --surface: #ffffff;
  --ink: #17262a;
  --muted: #4b5b5f;
  --pine: #1f4d45;
  --pine-deep: #143630;
  --mint: #9fd0c2;
  --heather: #b35f00;
  --accent: #f29100;
  --accent-hover: #ffad33;
  --line: #d6ddd6;
  --tint: #e3ece7;
  --band: #17262a;
  --on-dark: #f3f5f2;
  --on-dark-muted: #b9cbc5;
  --shadow: 0 1px 2px rgba(20, 54, 48, .06), 0 8px 24px rgba(20, 54, 48, .08);
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111a1b;
    --surface: #182325;
    --ink: #e5ebe8;
    --muted: #a6b5b1;
    --pine: #8cc9b8;
    --pine-deep: #0d2420;
    --heather: #ffad33;
    --line: #2a3a3c;
    --tint: #1d3330;
    --band: #0b1314;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111a1b; --surface: #182325; --ink: #e5ebe8; --muted: #a6b5b1; --pine: #8cc9b8;
  --pine-deep: #0d2420; --heather: #ffad33; --line: #2a3a3c; --tint: #1d3330; --band: #0b1314;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 5rem); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--pine); text-underline-offset: 0.18em; }
a:hover { color: var(--heather); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }
.icon { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Header – i samme farve som hero */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--pine-deep);
  color: var(--on-dark);
  border-bottom: 1px solid rgba(159, 208, 194, .18);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: #143630; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--on-dark); text-decoration: none; font-weight: 750; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--on-dark); }
.logo { display: block; height: 2.9rem; width: auto; }
.logo-sm { height: 2.4rem; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { color: var(--on-dark-muted); text-decoration: none; font-weight: 550; }
.nav a:hover { color: var(--on-dark); }
.nav .nav-phone {
  display: inline-flex; align-items: center; gap: .45rem;
  color: #17262a; background: var(--accent);
  padding: .5rem .95rem; border-radius: 999px; font-weight: 750; white-space: nowrap;
}
.nav .nav-phone:hover { background: var(--accent-hover); color: #17262a; }
.nav .nav-phone .icon { width: 1.05rem; height: 1.05rem; stroke-width: 2.2; }
.site-header :focus-visible { outline-color: var(--accent); }
@media (max-width: 54rem) { .nav .nav-link { display: none; } }

/* Hero */
.hero {
  position: relative;
  background: #143630 url("/topo.svg") center / cover no-repeat;
  color: var(--on-dark);
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (max-width: 54rem) { .hero .wrap { grid-template-columns: 1fr; } .card-person { max-width: 26rem; } }
.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.3rem, 5vw, 3.75rem);
  line-height: 1.05;
  font-weight: 780;
  letter-spacing: -0.03em;
  max-width: 15ch;
  text-wrap: balance;
}
.hero .lede { margin: 0 0 2rem; font-size: 1.2rem; color: var(--on-dark-muted); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.35rem; border-radius: 6px;
  font-weight: 700; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent;
}
.btn .icon { width: 1.15rem; height: 1.15rem; stroke-width: 2.1; }
.btn-light { background: var(--accent); color: #17262a; }
.btn-light:hover { background: var(--accent-hover); color: #17262a; }
.btn-ghost { border-color: rgba(243, 245, 242, .45); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); color: var(--on-dark); background: rgba(255,255,255,.06); }
.hero :focus-visible, .band :focus-visible { outline-color: var(--accent); }

/* Visitkort */
.card-person {
  background: #f3f5f2; color: #17262a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
  max-width: 30rem;
}
.card-photo { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 30% 25%; }
.card-body { padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem); }
.person { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid #d6ddd6; }
.monogram {
  width: 3.75rem; height: 3.75rem; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: #1f4d45; color: #f3f5f2; font-weight: 750; font-size: 1.25rem; letter-spacing: .02em;
  overflow: hidden;
}
.monogram img { width: 100%; height: 100%; object-fit: cover; }
.person p { margin: 0; line-height: 1.35; }
.person .name { font-weight: 750; font-size: 1.15rem; }
.person .role { color: #4b5b5f; }
.card-person .call-label { margin: 0; color: #4b5b5f; font-size: .98rem; }
.card-person .number {
  display: block; margin: .15rem 0 1rem;
  color: #1f4d45; text-decoration: none;
  font-weight: 800; font-size: clamp(2.3rem, 5.5vw, 3.2rem); line-height: 1.05;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.card-person .number:hover { color: #b35f00; }
.card-person ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.card-person li { display: flex; align-items: center; gap: .6rem; }
.card-person li .icon { width: 1.15rem; height: 1.15rem; color: #1f4d45; }
.card-person li a { color: #17262a; }
.card-person li a:hover { color: #b35f00; }
.card-person :focus-visible { outline-color: #b35f00; }

/* Fakta-bånd */
.facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0 auto; padding: 1.4rem 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 2rem; }
@media (max-width: 54rem) { .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .facts ul { grid-template-columns: 1fr; } }
.facts li { display: flex; align-items: center; gap: .65rem; font-weight: 600; line-height: 1.3; }
.facts .icon { color: var(--pine); width: 1.35rem; height: 1.35rem; stroke-width: 2; }

/* Sektioner */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.intro { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.intro p { margin: .75rem 0 0; color: var(--muted); font-size: 1.12rem; }
h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 760; text-wrap: balance; }
h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; font-weight: 720; }

/* Ydelser */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 46rem) { .services { grid-template-columns: 1fr; } }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: clamp(1.4rem, 3vw, 2rem);
}
.service-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.service-icon {
  width: 3rem; height: 3rem; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  background: var(--tint); color: var(--pine);
}
.service ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.service li { margin: 0 0 .35rem; }
.service li::marker { color: var(--accent); }

/* Om */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 54rem) { .about { grid-template-columns: 1fr; } }
.prose { max-width: 38rem; }
.prose p { margin: 0 0 1rem; }
.about .prose p:first-of-type { margin-top: 1.25rem; }
.why { background: var(--tint); border-radius: 10px; padding: clamp(1.4rem, 3vw, 2rem); }
.why h3 { margin-bottom: 1rem; }
.why ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.why li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .65rem; align-items: start; }
.why .icon { color: var(--pine); width: 1.35rem; height: 1.35rem; margin-top: .12rem; stroke-width: 2.1; }

/* Fjernsupport – mørkt bånd */
.band { background: var(--band); color: var(--on-dark); }
.band h2 { color: var(--on-dark); }
.band .intro p { color: var(--on-dark-muted); }
.steps { list-style: none; counter-reset: step; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 54rem) { .steps { grid-template-columns: 1fr; } }
.steps li {
  counter-increment: step;
  border-top: 2px solid rgba(159, 208, 194, .35);
  padding-top: 1.1rem;
}
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: .5rem;
  color: var(--accent); font-weight: 800; font-size: 2rem; line-height: 1;
}
.steps a { color: var(--mint); }
.steps a:hover { color: #ffffff; }
.band .small { margin: 1rem 0 0; color: var(--on-dark-muted); font-size: .95rem; display: flex; gap: .5rem; align-items: center; }
.band .small .icon { width: 1.1rem; height: 1.1rem; color: var(--mint); }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 54rem) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.contact-item address { font-style: normal; }
.contact-item p { margin: 0 0 .3rem; }
.label { color: var(--muted); font-size: .95rem; display: block; }
.contact-item .big { font-size: 1.25rem; font-weight: 750; }

/* Footer */
.site-footer { background: #143630; color: #b9cbc5; padding: 2.5rem 0 3rem; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.site-footer p { margin: 0; }
.site-footer a { color: #f3f5f2; }
.site-footer a:hover { color: #9fd0c2; }
.site-footer .brand { font-size: 1.05rem; }
.site-footer :focus-visible { outline-color: #9fd0c2; }

/* Undersider */
.page { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.page h1 { margin: 0 0 1.5rem; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; letter-spacing: -0.02em; }
.page .prose h2 { font-size: 1.35rem; margin: 2rem 0 .5rem; }
.notice { border-left: 4px solid var(--heather); background: var(--surface); padding: 1rem 1.25rem; margin: 0 0 2rem; max-width: 38rem; }

.site-footer .wrap > * { flex: none; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.prose li { margin: 0 0 .4rem; }
.prose li::marker { color: var(--accent); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
