/* ==================================================================
 * Mønster EL ApS
 *
 * Fonts hostes selv (Archivo og Inter, SIL Open Font License), så
 * besøgendes IP-adresse ikke sendes til Google. Archivo er en variabel
 * font med både vægt og bredde: smal til overskrifter, bred til labels.
 * ================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Logoets sort og guld. Guldet er trukket ud af logoets gradient. */
  --ink: #131313;
  --ink-2: #1c1c1e;
  --ink-3: #2b2b2e;
  --gold: #d6a650;
  --gold-light: #f0c879;
  --gold-deep: #7f561a;
  --gold-gradient: linear-gradient(135deg, #f6d68e 0%, #d6a650 48%, #9c6626 100%);
  --paper: #f6f3ee;
  --paper-2: #ece6dc;
  --white: #fff;
  --muted: #5e5e63;
  --line: rgba(19, 19, 19, .12);
  --line-strong: rgba(19, 19, 19, .22);
  --on-dark: #ece8e1;
  --on-dark-muted: rgba(236, 232, 225, .7);
  --sage: #4f7a4a;
  --danger: #b0443a;

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 84px;
}

/* ------------------------------------------------------------------
 * Grundlag
 * ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--gold-light); color: var(--ink); }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }

.icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Emblemet arver fill (guldgradienten i ikon-spriten); ordmærket bruger currentColor. */
.logo { fill: url(#guld) var(--gold); height: 44px; width: auto; aspect-ratio: 448.72 / 100; }

/* ------------------------------------------------------------------
 * Typografi og fælles byggeklodser
 * ---------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.1rem;
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--gold-light); }

.section { padding-block: clamp(80px, 11vw, 150px); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }

.section-title {
  font-size: clamp(2.1rem, 1.35rem + 2.9vw, 3.6rem);
  font-stretch: 88%;
  font-weight: 780;
  letter-spacing: -.02em;
}

.section-lede {
  margin-top: 1.25rem;
  max-width: 58ch;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  color: var(--muted);
}

.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark .section-title { color: var(--white); }
.section--dark .eyebrow { color: var(--gold-light); }
.section--dark .section-lede { color: var(--on-dark-muted); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.text-link:hover .icon--arrow { transform: translateX(4px); }
.icon--arrow { transition: transform .25s var(--ease); }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------
 * Knapper
 * ---------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .75rem 1.4rem;
  border: 1.5px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, box-shadow .25s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--ink); }
.btn--gold:hover { --btn-bg: var(--gold-light); box-shadow: 0 14px 30px -12px rgba(214, 166, 80, .75); }

.btn--ink:hover { --btn-bg: var(--ink-3); box-shadow: 0 14px 30px -14px rgba(19, 19, 19, .6); }

.btn--ghost {
  --btn-bg: rgba(255, 255, 255, .08);
  --btn-fg: var(--white);
  --btn-border: rgba(255, 255, 255, .35);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .16); --btn-border: rgba(255, 255, 255, .6); }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--line-strong); }
.btn--outline:hover { --btn-border: var(--ink); }

.btn--lg { min-height: 56px; padding: 1rem 1.7rem; font-size: 1.04rem; }
.btn--sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .94rem; }

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  opacity: .85;
  transition: opacity .2s, transform .2s var(--ease);
}
.icon-button:hover { opacity: 1; transform: rotate(90deg); }

/* ------------------------------------------------------------------
 * Header: gennemsigtig over hero, lys og sløret når man har scrollet.
 * Gemmer sig, når man scroller ned, og kommer frem igen ved scroll op.
 * ---------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--white);
  transition: background-color .35s, color .35s, box-shadow .35s, transform .45s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(246, 243, 238, .88);
  color: var(--ink);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -20px rgba(19, 19, 19, .45);
}
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  transition: height .35s var(--ease);
}
.is-scrolled .header-inner { height: 70px; }

.brand { display: block; border-radius: 4px; }
.brand .logo { height: 48px; transition: height .35s var(--ease); }
.is-scrolled .brand .logo { height: 40px; }

.main-nav ul { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  position: relative;
  display: block;
  padding: .55rem .9rem;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  opacity: .88;
  transition: opacity .2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .3rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { opacity: 1; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .9rem; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone .icon { color: var(--gold-light); }
.is-scrolled .header-phone .icon { color: var(--gold-deep); }

.menu-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}
.menu-toggle-bars,
.menu-toggle-bars::before {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.menu-toggle-bars { position: relative; transform: translateY(-3px); }
.menu-toggle-bars::before { content: ""; position: absolute; top: 6px; width: 12px; }

@media (max-width: 1060px) {
  .main-nav { display: none; }
  .menu-toggle { display: grid; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .header-phone span { display: none; }
  .header-phone {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
  }
  .header-phone .icon { color: inherit; }
  .header-cta { display: none; }
  .brand .logo { height: 38px; }
  .is-scrolled .brand .logo { height: 34px; }
}

/* Mobilmenu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--ink);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.mobile-menu-head .logo { height: 38px; }

.mobile-menu-nav {
  display: grid;
  flex: 1;
  align-content: center;
  padding-block: 2rem;
}
.mobile-menu-nav a {
  padding: .9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-family: var(--font-display);
  font-stretch: 80%;
  font-weight: 800;
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px);
  transition: color .2s, opacity .5s var(--ease), transform .5s var(--ease);
}
.mobile-menu-nav a:hover, .mobile-menu-nav a[aria-current="page"] { color: var(--gold-light); }
.mobile-menu.is-open .mobile-menu-nav a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu-nav a:nth-child(2) { transition-delay: .05s; }
.mobile-menu.is-open .mobile-menu-nav a:nth-child(3) { transition-delay: .1s; }
.mobile-menu.is-open .mobile-menu-nav a:nth-child(4) { transition-delay: .15s; }
.mobile-menu.is-open .mobile-menu-nav a:nth-child(5) { transition-delay: .2s; }

.mobile-menu-foot {
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
}
.mobile-menu-mail { color: var(--on-dark-muted); }

/* ------------------------------------------------------------------
 * Hero
 * ---------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: max(640px, 100svh);
  overflow: clip;
  background: var(--ink);
  color: var(--white);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 32%;
  animation: hero-zoom 2.6s var(--ease) both;
}

/* Fotoene er lyse (hvide vægge), så teksten får en kraftigere skygge end på et mørkt billede. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(19, 19, 19, .7) 0%, rgba(19, 19, 19, 0) 30%),
    linear-gradient(0deg, rgba(19, 19, 19, .94) 0%, rgba(19, 19, 19, .35) 55%, rgba(19, 19, 19, 0) 78%),
    linear-gradient(90deg, rgba(19, 19, 19, .88) 0%, rgba(19, 19, 19, .55) 42%, rgba(19, 19, 19, 0) 75%);
}

.hero-content { padding-block: calc(var(--header-h) + 64px) clamp(56px, 8vw, 96px); }

/* Forsiden på brede skærme: fotoet står i højre side og toner ud i den mørke flade bag teksten,
   så elektrikeren og tavlen ikke ligger gemt under overskriften. Billedets bredde følger
   containeren, så tekstspalten er lige bred på 1280 og 1920 px. Tablets og telefoner på tværs får
   samme opstilling, ellers ligger ansigtet bag overskriften. */
@media (min-width: 1000px), (min-width: 760px) and (orientation: landscape) {
  .hero--split { align-items: center; }
  .hero--split .hero-image {
    left: auto;
    width: calc(50% + 120px);
    object-position: 50% 30%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  }
  .hero--split::before {
    background:
      radial-gradient(60% 70% at 0% 100%, rgba(214, 166, 80, .16), transparent 70%),
      linear-gradient(180deg, rgba(19, 19, 19, .6) 0%, rgba(19, 19, 19, 0) 22%),
      linear-gradient(0deg, rgba(19, 19, 19, .7) 0%, rgba(19, 19, 19, 0) 28%);
  }
  .hero--split .hero-title { font-size: clamp(3.2rem, 1rem + 3.9vw, 4.6rem); }
  .hero--split .hero-lede { max-width: 40ch; }
}

/* Smalle skærme på højkant: fotoet står øverst og toner ud nedad, så ansigtet ikke forsvinder bag overskriften. */
@media (max-width: 759px), (max-width: 999px) and (orientation: portrait) {
  .hero--split .hero-image {
    bottom: auto;
    height: min(125vw, 70%);
    object-position: 50% 22%;
    -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 98%);
    mask-image: linear-gradient(180deg, #000 50%, transparent 98%);
  }
  .hero--split::before {
    background:
      linear-gradient(180deg, rgba(19, 19, 19, .6) 0%, rgba(19, 19, 19, 0) 18%),
      linear-gradient(0deg, var(--ink) 0%, var(--ink) 35%, rgba(19, 19, 19, .55) 55%, rgba(19, 19, 19, 0) 72%);
  }
}
@media (max-width: 640px) {
  /* Teksten starter under ansigtet; heroen bliver hellere lidt højere end skærmen. */
  .hero--split .hero-content { padding-top: 68vw; }
}

.hero-title {
  max-width: 17ch;
  font-size: clamp(2.9rem, 1.1rem + 7.2vw, 7.4rem);
  font-stretch: 70%;
  font-weight: 850;
  line-height: .9;
  letter-spacing: -.005em;
  text-transform: uppercase;
}
.hero-line { display: block; }
/* Guldet fra logoet, lagt i selve bogstaverne. */
.hero-line--accent {
  width: fit-content;
  padding-right: .04em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  max-width: 52ch;
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, .98rem + .4vw, 1.25rem);
  color: rgba(255, 255, 255, .86);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .95rem;
  color: rgba(255, 255, 255, .82);
}
.hero-facts li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-facts .icon { color: var(--gold-light); stroke-width: 2.4; }

/* Indgangsanimation: linjerne glider op én efter én. */
.hero-eyebrow, .hero-line, .hero-lede, .hero-actions, .hero-facts {
  animation: rise 1s var(--ease) both;
}
.hero-eyebrow { animation-delay: .1s; }
.hero-line:first-child { animation-delay: .18s; }
.hero-line--accent { animation-delay: .3s; }
.hero-lede { animation-delay: .45s; }
.hero-actions { animation-delay: .58s; }
.hero-facts { animation-delay: .7s; }

@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes hero-zoom { from { transform: scale(1.08); } }

@media (max-width: 640px) {
  .hero { min-height: max(600px, 100svh); }
  .hero-actions .btn { width: 100%; }
  .hero-facts { gap: .5rem 1.2rem; font-size: .9rem; }
}

/* ------------------------------------------------------------------
 * Strømbåndet: løbende tekst under en vekselstrømskurve, der bølger
 * ---------------------------------------------------------------- */
.power-band {
  position: relative;
  overflow: clip;
  padding: 28px 0 20px;
  background: linear-gradient(90deg, #e3b863 0%, var(--gold) 50%, #c8953f 100%);
  color: var(--ink);
}
.power-band::before {
  content: "";
  position: absolute;
  inset: 6px 0 auto;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cpath d='M0 7Q15-3 30 7T60 7T90 7T120 7' fill='none' stroke='%23131313' stroke-width='1.6'/%3E%3C/svg%3E") 0 0 / 120px 14px repeat-x;
  opacity: .75;
  animation: current 2.4s linear infinite;
}

@keyframes current { to { background-position: 120px 0; } }

.marquee { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee-group {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-stretch: 78%;
  font-weight: 800;
  font-size: clamp(1.3rem, 1rem + 1.1vw, 1.9rem);
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-group span { display: inline-flex; align-items: center; }
/* Små lyn som skilletegn */
.marquee-group span::after {
  content: "";
  width: 12px;
  height: 20px;
  margin-inline: 1.6rem;
  background: var(--ink);
  clip-path: polygon(70% 0, 0 58%, 42% 58%, 30% 100%, 100% 38%, 58% 38%);
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------
 * Ydelser
 * ---------------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}

.service {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -45px rgba(19, 19, 19, .5);
  transition: box-shadow .4s var(--ease), translate .4s var(--ease);
}
.service:hover { translate: 0 -6px; box-shadow: 0 1px 0 var(--line), 0 40px 70px -40px rgba(19, 19, 19, .55); }

.service-media { aspect-ratio: 1 / 1.08; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.service:hover .service-media img { transform: scale(1.05); }

.service-body { display: grid; gap: .55rem; padding: 22px 22px 28px; }
.service-no {
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .16em;
  color: var(--gold-deep);
}
.service h3 { font-size: 1.32rem; font-stretch: 92%; }
.service p { color: var(--muted); font-size: .96rem; }

@media (min-width: 1101px) {
  .service:nth-child(even) { margin-top: 56px; }
}

/* På mobilen bliver kortene til en vandret karrusel med scroll-snap. */
@media (max-width: 760px) {
  .services {
    display: flex;
    gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .services::-webkit-scrollbar { display: none; }
  .service { flex: 0 0 84%; scroll-snap-align: start; }
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.service-tags-label { font-weight: 600; }
/* Grundbredden får listen til at gå på sin egen linje, når der ikke er plads ved siden af etiketten. */
.service-tags ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; flex: 1 1 340px; }
.service-tags li {
  padding: .4rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .9rem;
}

/* ------------------------------------------------------------------
 * Om os
 * ---------------------------------------------------------------- */
.about { background: var(--paper-2); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

.about-media { position: relative; isolation: isolate; margin-right: 24px; }
.about-media::before {
  content: "";
  position: absolute;
  inset: 28px -24px -24px 28px;
  z-index: -1;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
}
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 42% 50%;
  border-radius: var(--radius);
}

.about-badge {
  position: absolute;
  left: -16px;
  bottom: 36px;
  display: grid;
  padding: 16px 22px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 24px 40px -20px rgba(19, 19, 19, .6);
}
.about-badge strong { font-family: var(--font-display); font-size: 1.15rem; }
.about-badge span { color: var(--gold-light); font-size: .88rem; }

.about-text > p + p { margin-top: 1rem; }
.about-text > .text-link { margin-top: 2.2rem; }
.about-lede { margin-top: 1.5rem; font-size: clamp(1.08rem, 1rem + .35vw, 1.22rem); }
.about-text > p:not(.eyebrow) { color: var(--muted); }
.about-text > .about-lede { color: var(--ink); }

.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.75rem;
  margin: 2.5rem 0 0;
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.values li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.value-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
}
.value-mark .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.values strong { display: block; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.3; }
.values div > span { display: block; margin-top: .2rem; color: var(--muted); font-size: .94rem; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
}
@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
  .about-media img { aspect-ratio: 1 / 1; }
}

/* ------------------------------------------------------------------
 * Proces: fire trin på en ledning, der tegnes ind, og som en
 * strømimpuls løber hen ad bagefter
 * ---------------------------------------------------------------- */
.section-head--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem clamp(32px, 6vw, 96px);
  align-items: end;
  max-width: none;
}
.section-head--split .section-lede { margin-top: 0; }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 14px;
}
.steps::before {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 30%, var(--gold-light)) 0 50% / 100% 2px no-repeat;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease) .2s;
}
.steps.is-visible::before { transform: scaleX(1); }
.steps::after {
  background: radial-gradient(closest-side, rgba(255, 236, 190, .95), rgba(240, 200, 121, .35) 55%, transparent) -120px 50% / 120px 14px no-repeat;
}
.steps.is-visible::after { animation: impulse-x 3.6s cubic-bezier(.45, 0, .55, 1) 1.8s infinite; }

@keyframes impulse-x { to { background-position: calc(100% + 120px) 50%; } }
@keyframes impulse-y { to { background-position: 50% calc(100% + 120px); } }

.step-no {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.6rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-stretch: 90%;
  font-weight: 800;
  font-size: 1.05rem;
}
.step h3 { margin-bottom: .6rem; color: var(--white); font-size: 1.3rem; font-stretch: 92%; }
.step p { color: var(--on-dark-muted); font-size: .97rem; }

@media (max-width: 900px) {
  .section-head--split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .steps::before, .steps::after { display: none; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; row-gap: 2.2rem; }
  .steps::before, .steps::after {
    display: block;
    top: 0;
    bottom: 0;
    left: 22px;
    right: auto;
    width: 14px;
    height: auto;
  }
  .steps::before {
    background: linear-gradient(180deg, var(--gold-deep), var(--gold) 30%, var(--gold-light)) 50% 0 / 2px 100% no-repeat;
    transform: scaleY(0);
    transform-origin: top;
  }
  .steps.is-visible::before { transform: scaleY(1); }
  .steps::after {
    background: radial-gradient(closest-side, rgba(255, 236, 190, .95), rgba(240, 200, 121, .35) 55%, transparent) 50% -120px / 14px 120px no-repeat;
  }
  .steps.is-visible::after { animation-name: impulse-y; }
  .step { position: relative; padding-left: 80px; }
  .step-no { position: absolute; left: 0; top: -6px; margin: 0; }
}

/* ------------------------------------------------------------------
 * Spørgsmål
 * ---------------------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.faq-call {
  display: grid;
  justify-items: start;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--paper-2);
}

.faq-list details { border-top: 1px solid var(--line-strong); }
.faq-list details:last-child { border-bottom: 1px solid var(--line-strong); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem);
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--gold-deep); }

.faq-icon {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color .25s, border-color .25s, transform .35s var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: currentColor;
  transition: transform .35s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
details[open] .faq-icon { background: var(--ink); border-color: var(--ink); color: var(--white); transform: rotate(180deg); }
details[open] .faq-icon::after { transform: rotate(0); }

.faq-answer { padding: 0 3.5rem 1.6rem 0; color: var(--muted); }
details[open] .faq-answer { animation: fade-down .45s var(--ease); }

@keyframes fade-down { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-answer { padding-right: 0; }
}

/* ------------------------------------------------------------------
 * Kontakt
 * ---------------------------------------------------------------- */
.contact {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--ink);
  color: var(--on-dark);
}
.contact::before {
  content: "";
  position: absolute;
  top: -320px;
  right: -280px;
  z-index: -1;
  width: 900px;
  height: 900px;
  background: radial-gradient(closest-side, rgba(214, 166, 80, .2), transparent);
}
.contact .section-title { color: var(--white); }
.contact .eyebrow { color: var(--gold-light); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.3fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.contact-intro { position: sticky; top: 110px; }
.contact-intro > p:not(.eyebrow) { margin-top: 1.4rem; color: var(--on-dark-muted); }

.contact-list { display: grid; gap: .7rem; margin: 2.2rem 0 0; padding: 0; list-style: none; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
  text-decoration: none;
  transition: background-color .25s, border-color .25s, transform .25s var(--ease);
}
a.contact-item:hover { background: rgba(255, 255, 255, .07); border-color: rgba(214, 166, 80, .55); transform: translateX(4px); }
.contact-item small { display: block; color: var(--on-dark-muted); font-size: .8rem; }
.contact-item strong { display: block; color: var(--white); font-weight: 600; overflow-wrap: anywhere; }

.icon-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--gold);
  color: var(--ink);
}

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-intro { position: static; }
}

/* ------------------------------------------------------------------
 * Tilbudsformularen
 * ---------------------------------------------------------------- */
.form-card {
  scroll-margin-top: 96px;
  padding: clamp(22px, 4vw, 44px);
  border-radius: 26px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .7);
}

/* Fremskridt vist som et batteri, der lades op trin for trin. */
.form-progress { margin-bottom: 30px; }
.charge {
  --progress: 33.333%;
  position: relative;
  height: 32px;
  margin-right: 8px;
  padding: 3px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: var(--white);
}
/* Batteriets pol */
.charge::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  width: 5px;
  height: 12px;
  margin-top: -6px;
  border-radius: 0 3px 3px 0;
  background: var(--ink);
}
/* Skillestreger mellem de tre celler */
.charge::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(var(--white), var(--white)) calc(33.333% + 1px) 0 / 3px 100% no-repeat,
    linear-gradient(var(--white), var(--white)) calc(66.666% - 1px) 0 / 3px 100% no-repeat;
}
.charge-fill {
  position: relative;
  width: var(--progress);
  height: 100%;
  overflow: hidden;
  border-radius: 5px;
  background: var(--gold-gradient);
  transition: width .7s var(--ease);
}
.charge-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%) 0 0 / 250% 100%;
  animation: shimmer 2.4s linear infinite;
}

.form-steps-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: .8rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}
.form-steps-nav li { display: flex; align-items: center; gap: .45rem; transition: color .3s; }
.form-steps-nav li:nth-child(2) { justify-content: center; }
.form-steps-nav li:nth-child(3) { justify-content: flex-end; }
.form-steps-nav span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: .72rem;
  transition: background-color .3s, color .3s, border-color .3s;
}
.form-steps-nav .is-active { color: var(--ink); }
.form-steps-nav .is-active span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.form-steps-nav .is-done { color: var(--gold-deep); }
.form-steps-nav .is-done span { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* Med JavaScript vises ét trin ad gangen. Uden står alle trin under hinanden. */
@media (scripting: enabled) {
  .form-step:not(.is-active) { display: none; }
}
@media (scripting: none) {
  .form-progress, [data-next], [data-prev] { display: none; }
  .form-step + .form-step { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
}

.form-step.is-active { animation: step-in .5s var(--ease); }
.form-step.is-back { animation-name: step-in-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-24px); } }

.form-step-title {
  font-size: clamp(1.45rem, 1.15rem + 1vw, 1.95rem);
  font-stretch: 90%;
  outline: none;
}
.form-hint { margin-top: .35rem; margin-bottom: 1.4rem; color: var(--muted); font-size: .95rem; }

/* Opgavefliser */
.tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile { position: relative; display: block; }
.tile input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tile-box {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  min-height: 116px;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  font-weight: 600;
  font-size: .94rem;
  line-height: 1.25;
  transition: border-color .2s, background-color .25s, color .25s, transform .25s var(--ease), box-shadow .25s;
}
.tile-box > .icon { width: 30px; height: 30px; color: var(--gold-deep); stroke-width: 1.6; transition: color .25s; }
.tile:hover .tile-box { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 14px 24px -18px rgba(19, 19, 19, .5); }
.tile input:checked + .tile-box { border-color: var(--ink); background: var(--ink); color: var(--white); }
.tile input:checked + .tile-box > .icon { color: var(--gold-light); }
.tile input:focus-visible + .tile-box { outline: 3px solid var(--gold); outline-offset: 2px; }

.tile-check {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  transform: scale(0);
  transition: transform .3s var(--ease);
}
.tile-check .icon { width: 14px; height: 14px; stroke-width: 3; }
.tile input:checked + .tile-box .tile-check { transform: scale(1); }

.tile-grid[aria-invalid="true"] .tile-box { border-color: rgba(176, 68, 58, .55); }

@media (max-width: 720px) {
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-box { min-height: 100px; }
}

/* Valgknapper som piller */
.subgroup { margin: 1.8rem 0 0; padding: 0; border: 0; min-width: 0; }
.subgroup legend, .field > label:not(.dropzone), .field-label {
  display: block;
  padding: 0;
  margin-bottom: .6rem;
  font-size: .93rem;
  font-weight: 600;
}
.field > label:not(.dropzone), .field-label { margin-bottom: 0; }
.optional { margin-left: .35rem; color: var(--muted); font-size: .8rem; font-weight: 400; }

.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; display: block; }
.pill input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pill span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .5rem 1.05rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  font-size: .93rem;
  font-weight: 500;
  transition: background-color .2s, color .2s, border-color .2s;
}
.pill span .icon { width: 1.05em; height: 1.05em; }
.pill:hover span { border-color: var(--ink); }
.pill input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--white); }
.pill input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Tekstfelter */
.field { display: grid; align-content: start; gap: .45rem; margin-top: 1.4rem; }
.form-hint + .field { margin-top: 0; }

.input {
  width: 100%;
  min-height: 52px;
  padding: .8rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s, background-color .4s;
}
.input::placeholder { color: #9b9ba0; }
.input:hover { border-color: rgba(19, 19, 19, .4); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(214, 166, 80, .35); }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(176, 68, 58, .12); }
.input.is-autofilled { background-color: #fbf5e6; }

textarea.input { min-height: 9.5rem; max-height: 26rem; resize: vertical; line-height: 1.55; field-sizing: content; }

select.input {
  appearance: none;
  padding-right: 2.8rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23131313' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  cursor: pointer;
}

.field-meta { display: flex; justify-content: space-between; gap: 1rem; }
.char-count { margin-left: auto; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }

.field-error { color: var(--danger); font-size: .86rem; font-weight: 500; }
.field-error:empty { display: none; }
.tile-grid + .field-error { margin-top: .6rem; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.field-grid .field { margin-top: 1.1rem; }
.field-grid .field:first-child { margin-top: 0; }
.field--full { grid-column: 1 / -1; }

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 24px;
  align-items: end;
}
.field-row .field { margin-top: 1.4rem; }

@media (max-width: 560px) {
  .field-grid, .field-row { grid-template-columns: 1fr; }
  .field-grid .field:nth-child(2) { margin-top: 1.1rem; }
}

/* Afbryderen: en tænd/sluk-knap til ønsket om besøg */
.switch { position: relative; display: flex; align-items: center; gap: .85rem; min-height: 52px; cursor: pointer; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-track {
  position: relative;
  flex: none;
  width: 50px;
  height: 30px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-2);
  transition: background-color .25s, border-color .25s;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 5px rgba(19, 19, 19, .25);
  transition: transform .3s var(--ease);
}
.switch input:checked + .switch-track { border-color: var(--sage); background: var(--sage); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--gold); outline-offset: 2px; }
.switch-label { font-size: .93rem; font-weight: 500; line-height: 1.35; }

/* Upload af billeder og tegninger */
.dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: .35rem;
  padding: 28px 20px;
  border: 2px dashed rgba(19, 19, 19, .22);
  border-radius: 18px;
  background: var(--white);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--gold); background: #fffaf0; }
.dropzone.is-dragover { transform: scale(1.01); }
.dropzone:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.dropzone > .icon { width: 36px; height: 36px; margin-bottom: .3rem; color: var(--gold-deep); stroke-width: 1.5; }
.dropzone-title { font-size: .98rem; }
.dropzone-hint { color: var(--muted); font-size: .82rem; }
@media (scripting: enabled) {
  .dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
}
@media (hover: none) {
  .dropzone-drag { display: none; }
}

.file-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.file-list:not(:empty) { margin-top: 12px; }

.file-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  animation: pop-in .35s var(--ease);
}
.file-item img { width: 100%; height: 100%; object-fit: cover; }
.file-doc {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .3rem;
  height: 100%;
  padding: 10px;
  color: var(--gold-deep);
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.file-doc .icon { width: 30px; height: 30px; }
.file-meta {
  position: absolute;
  inset: auto 0 0;
  padding: 22px 8px 6px;
  overflow: hidden;
  background: linear-gradient(transparent, rgba(19, 19, 19, .85));
  color: var(--white);
  font-size: .7rem;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.file-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(19, 19, 19, .78);
  color: var(--white);
  transition: background-color .2s, transform .2s var(--ease);
}
.file-remove:hover { background: var(--danger); transform: scale(1.08); }
.file-remove .icon { width: 16px; height: 16px; stroke-width: 2.4; }

.file-item.is-processing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%) 0 0 / 250% 100%;
  animation: shimmer 1.1s linear infinite;
}

@keyframes pop-in { from { opacity: 0; transform: scale(.9); } }
@keyframes shimmer { to { background-position: -250% 0; } }

/* Honeypot: flyttet ud af syne, men ikke display:none, som nogle bots springer over. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-privacy { margin-top: 1.6rem; color: var(--muted); font-size: .84rem; }

.form-status {
  margin-top: 1.2rem;
  padding: 14px 16px;
  border: 1px solid rgba(176, 68, 58, .3);
  border-radius: var(--radius-sm);
  background: #fbecea;
  color: #7c2b23;
  font-size: .93rem;
}
.form-status a { font-weight: 700; }

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.form-nav .btn:only-child { margin-left: auto; }

.quote-form.is-busy .btn-submit .icon--arrow { animation: nudge 1s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }

@media (max-width: 480px) {
  .form-nav { flex-wrap: wrap-reverse; }
  .form-nav .btn { flex: 1 1 auto; }
  .btn-submit { width: 100%; }
}

/* Kvittering efter afsendelse */
.form-success {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: clamp(16px, 4vw, 40px) 8px;
  text-align: center;
  outline: none;
}
.form-success[hidden] { display: none; }
.form-success p { max-width: 44ch; color: var(--muted); }
.form-success-call a { font-weight: 700; color: var(--ink); }

.success-mark { width: 84px; height: 84px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.success-mark circle { stroke: var(--sage); stroke-width: 3; stroke-dasharray: 208; stroke-dashoffset: 208; animation: draw .8s var(--ease) forwards; }
.success-mark path { stroke: var(--sage); stroke-width: 4; stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw .5s var(--ease) .55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: clip;
  padding-top: clamp(64px, 8vw, 110px);
  background: #0b0b0c;
  color: var(--on-dark-muted);
  font-size: .95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}
.footer-brand .logo { height: 60px; color: var(--white); }
.footer-brand p { max-width: 32ch; margin-top: 1.4rem; }

.footer-title {
  margin-bottom: 1rem;
  font-stretch: 120%;
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.footer-list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.footer-list a, .footer-list button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
.footer-list a:hover, .footer-list button:hover { color: var(--white); }

/* Kæmpe udhulet navnetræk i bunden – ren dekoration. */
.footer-mark {
  margin: clamp(48px, 7vw, 88px) 0 -.12em;
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 900;
  /* Teksten er ca. 4,6 × skriftstørrelsen bred; så fylder den containeren uden at flyde ud. */
  font-size: clamp(3.5rem, 19.5vw, 16.5rem);
  line-height: .8;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(214, 166, 80, .28);
  user-select: none;
}

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding: 22px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .85rem;
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
 * Undersidernes hero: samme opbygning som forsiden, bare lavere
 * ---------------------------------------------------------------- */
.hero--page { min-height: clamp(520px, 74svh, 780px); }
.hero--page .hero-title { max-width: 15ch; font-size: clamp(2.7rem, 1.2rem + 5.6vw, 6.2rem); }
.hero-image--ydelser { object-position: 55% 12%; }
.hero-image--omos { object-position: 40% 30%; }
@media (max-aspect-ratio: 3/4) {
  .hero-image--ydelser { object-position: 50% 30%; }
  .hero-image--omos { object-position: 35% 22%; }
}

/* ------------------------------------------------------------------
 * Kundeudtalelser
 * ---------------------------------------------------------------- */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
}

.quote {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 2rem;
  margin: 0;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -45px rgba(19, 19, 19, .5);
}
.quote::before {
  content: "\201C";
  position: absolute;
  top: -.12em;
  right: .12em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 10rem;
  line-height: 1;
  color: var(--gold);
  opacity: .3;
}
.quote blockquote { position: relative; margin: 0; }
.quote blockquote p {
  font-family: var(--font-display);
  font-weight: 650;
  font-stretch: 92%;
  font-size: clamp(1.3rem, 1.05rem + .9vw, 1.75rem);
  line-height: 1.3;
  text-wrap: pretty;
}
.quote figcaption { display: flex; align-items: center; gap: .9rem; }
.quote-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .04em;
}
.quote figcaption strong { display: block; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.3; }
.quote figcaption div > span { display: block; color: var(--muted); font-size: .9rem; }

@media (max-width: 760px) {
  .quotes-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
 * Kontakt-båndet nederst på siderne: guld med et stort emblem bagved
 * ---------------------------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(72px, 10vw, 130px);
  background: linear-gradient(120deg, #f2d08a 0%, var(--gold) 55%, #c08a3a 100%);
  color: var(--ink);
}
.cta-mark {
  position: absolute;
  top: 50%;
  right: max(-120px, calc(50% - 760px));
  z-index: -1;
  width: clamp(360px, 46vw, 640px);
  height: auto;
  aspect-ratio: 1;
  fill: var(--ink);
  opacity: .07;
  translate: 0 -50%;
}
.cta-band .eyebrow { color: var(--ink); }

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 2.5rem clamp(32px, 6vw, 96px);
  align-items: end;
}
.cta-grid > div > p:not(.eyebrow) { max-width: 52ch; margin-top: 1.25rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: rgba(19, 19, 19, .8); }

.cta-actions { display: grid; gap: .75rem; justify-items: stretch; }
.cta-actions .tekniq { justify-self: start; margin-top: .75rem; }

.btn--line { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: rgba(19, 19, 19, .4); }
.btn--line:hover { --btn-bg: rgba(255, 255, 255, .22); --btn-border: var(--ink); }

@media (max-width: 860px) {
  .cta-grid { grid-template-columns: 1fr; }
  .cta-actions { justify-items: start; }
}
@media (max-width: 480px) {
  .cta-actions { justify-items: stretch; }
}

/* TEKNIQ-mærket: deres turkise logo på en hvid plade, så det står på alle baggrunde. */
.tekniq {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  padding: 10px 16px 10px 14px;
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 14px 30px -20px rgba(19, 19, 19, .6);
}
.tekniq img { width: 88px; height: auto; }
.tekniq span { padding-left: .85rem; border-left: 1px solid var(--line); }

/* ------------------------------------------------------------------
 * Ydelser: overblik over privat og erhverv
 * ---------------------------------------------------------------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
}
.offer {
  padding: clamp(26px, 4vw, 48px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -45px rgba(19, 19, 19, .5);
}
.offer--dark { background: var(--ink); color: var(--on-dark); box-shadow: 0 40px 70px -40px rgba(19, 19, 19, .7); }
.offer-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.offer h3 { font-size: clamp(1.5rem, 1.25rem + .8vw, 1.9rem); font-stretch: 88%; }
.offer--dark h3 { color: var(--white); }
.offer-head small { display: block; margin-top: .25rem; color: var(--muted); font-size: .88rem; }
.offer--dark .offer-head small { color: var(--on-dark-muted); }

.check-list { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: .75rem; }
.check-list .icon { margin-top: .2em; color: var(--gold-deep); stroke-width: 2.4; }
.offer--dark .check-list .icon { color: var(--gold-light); }

@media (max-width: 760px) {
  .offer-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
 * Ydelser: én række pr. ydelse, billedet skifter side
 * ---------------------------------------------------------------- */
.service-rows { display: grid; gap: clamp(80px, 11vw, 150px); }

.service-row {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.service-row:nth-child(even) .service-row-media { order: 2; margin: 0 0 24px 24px; }
.service-row:nth-child(even) .service-row-media::before { inset: 28px 28px -24px -24px; }

.service-row-media { position: relative; isolation: isolate; margin: 0 24px 24px 0; }
.service-row-media::before {
  content: "";
  position: absolute;
  inset: 28px -24px -24px 28px;
  z-index: -1;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
}
.service-row-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

.service-row-no {
  display: block;
  margin-bottom: .6rem;
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 900;
  font-size: clamp(4rem, 3rem + 4vw, 7rem);
  line-height: .85;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold-deep);
}
.service-row-body h2 {
  font-size: clamp(2rem, 1.35rem + 2.2vw, 3rem);
  font-stretch: 88%;
  font-weight: 780;
  letter-spacing: -.02em;
}
.service-row-body > p { margin-top: 1rem; color: var(--muted); }
.service-row-body > .service-row-lede { margin-top: 1.4rem; color: var(--ink); font-size: clamp(1.05rem, 1rem + .3vw, 1.18rem); }
.service-row .check-list { margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.service-row .text-link { margin-top: 2rem; }

@media (max-width: 900px) {
  .service-row { grid-template-columns: 1fr; }
  .service-row-media, .service-row:nth-child(even) .service-row-media { order: 0; max-width: 520px; margin: 0 24px 24px 0; }
  .service-row:nth-child(even) .service-row-media::before { inset: 28px -24px -24px 28px; }
}
@media (max-width: 560px) {
  .service-row-media img { aspect-ratio: 1 / 1; }
}

/* ------------------------------------------------------------------
 * Om os: målsætningen som et stort citat og fire fakta
 * ---------------------------------------------------------------- */
.mission-statement {
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 720;
  font-stretch: 85%;
  font-size: clamp(1.9rem, 1.1rem + 2.8vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--white);
  text-wrap: balance;
}
.mission-statement em { font-style: normal; color: var(--gold-light); }
.mission-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem clamp(32px, 6vw, 96px);
  margin-top: clamp(32px, 5vw, 56px);
  color: var(--on-dark-muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem clamp(20px, 3vw, 40px);
  margin: clamp(56px, 8vw, 96px) 0 0;
  padding: 2.4rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  list-style: none;
}
.facts li { display: grid; gap: .9rem; justify-items: start; }
.facts strong { display: block; color: var(--white); font-family: var(--font-display); font-size: 1.15rem; line-height: 1.25; }
.facts strong + span { display: block; margin-top: .3rem; color: var(--on-dark-muted); font-size: .94rem; }

@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mission-text { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
 * Kontaktsiden: kontaktsektionen er sidens top, så den skal under headeren
 * ---------------------------------------------------------------- */
.contact--page { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px)); }
.contact--page .section-title { font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.4rem); }
.contact-intro .tekniq { margin-top: 1.6rem; }

/* ------------------------------------------------------------------
 * Fast knaplinje på mobilen
 * ---------------------------------------------------------------- */
.mobile-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  display: none;
  grid-template-columns: auto 1fr;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(19, 19, 19, .9);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5);
  transform: translateY(160%);
  transition: transform .45s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { min-height: 46px; }
@media (max-width: 760px) {
  .mobile-cta { display: grid; }
}

/* ------------------------------------------------------------------
 * Dialoger (privatliv og cookies)
 * ---------------------------------------------------------------- */
.modal {
  width: min(680px, 100% - 32px);
  max-height: min(86vh, 900px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .55);
}
.modal[open] { animation: modal-in .4s var(--ease); }
.modal::backdrop { background: rgba(10, 10, 10, .6); backdrop-filter: blur(4px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.modal-inner { display: flex; flex-direction: column; max-height: inherit; }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 1.45rem; font-stretch: 90%; }
.modal-body { padding: 8px 24px 28px; overflow-y: auto; color: var(--muted); }
.modal-body h3 { margin: 1.4rem 0 .35rem; color: var(--ink); font-size: 1.05rem; }
.modal-body p { margin-top: .8rem; }
.modal-body strong { color: var(--ink); }

/* ------------------------------------------------------------------
 * Statussider (tak, fejl og 404)
 * ---------------------------------------------------------------- */
.status-page {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 32px var(--gutter);
  background: var(--ink);
  color: var(--on-dark);
}
.status-card {
  display: grid;
  justify-items: center;
  gap: 1.2rem;
  max-width: 560px;
  text-align: center;
}
.status-card .status-logo { width: 240px; height: auto; margin-bottom: 1.5rem; }
.status-card h1 { color: var(--white); font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); font-stretch: 75%; text-transform: uppercase; line-height: .95; }
.status-card p { color: var(--on-dark-muted); }
.status-card .btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: .8rem; }

/* ------------------------------------------------------------------
 * Scroll-animationer. Kun når JavaScript kører, og kun hvis brugeren
 * ikke har bedt om mindre bevægelse.
 * ---------------------------------------------------------------- */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
  }
  .reveal.is-visible { opacity: 1; transform: none; }
  /* Kortene har også hover-transitions, som ikke skal forsinkes. */
  .service.reveal {
    transition: opacity .8s var(--ease), transform .8s var(--ease), translate .4s var(--ease), box-shadow .4s var(--ease);
  }
  .services .service:nth-child(2) { transition-delay: .08s, .08s, 0s, 0s; }
  .services .service:nth-child(3) { transition-delay: .16s, .16s, 0s, 0s; }
  .quotes-grid .quote:nth-child(2), .offer-grid .offer:nth-child(2) { transition-delay: .1s; }
  .contact-grid .form-card { transition-delay: .12s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .marquee { animation: none; }
}
