/* ==================================================================
 * Tømrermester Marco Vetling 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 {
  /* Brandets mørkeblå og varme træfarve, skubbet lidt mod det dybere og varmere */
  --ink: #18222b;
  --ink-2: #22303c;
  --navy: #2a3a48;
  --wood: #c38d67;
  --wood-light: #d9a887;
  --wood-deep: #9a6744;
  --paper: #f5f0e8;
  --paper-2: #ece4d7;
  --white: #fff;
  --muted: #59646e;
  --line: rgba(24, 34, 43, .12);
  --line-strong: rgba(24, 34, 43, .22);
  --on-dark: #ebe5dc;
  --on-dark-muted: rgba(235, 229, 220, .7);
  --sage: #5a7850;
  --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(--wood);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--wood-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;
}

.logo { fill: currentColor; height: 52px; width: auto; aspect-ratio: 760.97 / 340; }

/* ------------------------------------------------------------------
 * 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(--wood-deep);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--wood-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(--wood-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(--wood);
  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--wood { --btn-bg: var(--wood); --btn-fg: var(--ink); }
.btn--wood:hover { --btn-bg: var(--wood-light); box-shadow: 0 14px 30px -12px rgba(195, 141, 103, .75); }

.btn--ink:hover { --btn-bg: var(--navy); box-shadow: 0 14px 30px -14px rgba(24, 34, 43, .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(245, 240, 232, .86);
  color: var(--ink);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -20px rgba(24, 34, 43, .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: 54px; transition: height .35s var(--ease); }
.is-scrolled .brand .logo { height: 44px; }

.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(--wood);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { opacity: 1; }
.main-nav a:hover::after, .main-nav a.is-active::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(--wood-light); }
.is-scrolled .header-phone .icon { color: var(--wood-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: 44px; }
  .is-scrolled .brand .logo { height: 40px; }
}

/* 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: 44px; }

.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 { color: var(--wood-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: 57% 38%;
  animation: hero-zoom 2.6s var(--ease) both;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(24, 34, 43, .65) 0%, rgba(24, 34, 43, 0) 28%),
    linear-gradient(0deg, rgba(24, 34, 43, .92) 0%, rgba(24, 34, 43, .25) 55%, rgba(24, 34, 43, 0) 75%),
    linear-gradient(90deg, rgba(24, 34, 43, .75) 0%, rgba(24, 34, 43, .2) 60%, rgba(24, 34, 43, 0) 100%);
}

.hero-content { padding-block: calc(var(--header-h) + 64px) clamp(56px, 8vw, 96px); }

.hero-title {
  max-width: 13ch;
  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; }
.hero-line--accent { color: var(--wood-light); }

.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(--wood-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; }
}

/* ------------------------------------------------------------------
 * Målebåndet: løbende tekst på en tommestok med millimeterstreger
 * ---------------------------------------------------------------- */
.tape-band {
  position: relative;
  overflow: clip;
  padding: 26px 0 18px;
  background: var(--wood);
  color: var(--ink);
}
.tape-band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 16px;
  background:
    repeating-linear-gradient(90deg, rgba(24, 34, 43, .85) 0 2px, transparent 2px 100px) 0 0 / 100% 16px no-repeat,
    repeating-linear-gradient(90deg, rgba(24, 34, 43, .7) 0 1.5px, transparent 1.5px 50px) 0 0 / 100% 11px no-repeat,
    repeating-linear-gradient(90deg, rgba(24, 34, 43, .5) 0 1px, transparent 1px 10px) 0 0 / 100% 6px no-repeat;
}

.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; }
.marquee-group span::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-inline: 1.6rem;
  background: var(--ink);
  transform: rotate(45deg);
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------
 * Ydelser
 * ---------------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 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(24, 34, 43, .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(24, 34, 43, .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(--wood-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; }
}

@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* På mobilen bliver kortene til en vandret karrusel med scroll-snap. */
@media (max-width: 640px) {
  .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; }
.service-tags ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; flex: 1; }
.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(--wood);
  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(24, 34, 43, .6);
}
.about-badge strong { font-family: var(--font-display); font-size: 1.15rem; }
.about-badge span { color: var(--wood-light); font-size: .88rem; }

.about-text > p + p { margin-top: 1rem; }
.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(--wood);
  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 bundet sammen af en tommestok, der tegnes ind
 * ---------------------------------------------------------------- */
.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 {
  content: "";
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 14px;
  background:
    linear-gradient(var(--wood), var(--wood)) 0 50% / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, rgba(217, 168, 135, .55) 0 1px, transparent 1px 12px) 0 0 / 100% 100% no-repeat;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease) .2s;
}
.steps.is-visible::before { transform: scaleX(1); }

.step-no {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.6rem;
  border: 2px solid var(--wood);
  border-radius: 50%;
  background: var(--ink);
  color: var(--wood-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 { display: none; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; row-gap: 2.2rem; }
  .steps::before {
    display: block;
    top: 0;
    bottom: 0;
    left: 22px;
    right: auto;
    width: 14px;
    height: auto;
    background:
      linear-gradient(var(--wood), var(--wood)) 50% 0 / 2px 100% no-repeat,
      repeating-linear-gradient(0deg, rgba(217, 168, 135, .55) 0 1px, transparent 1px 12px) 0 0 / 100% 100% no-repeat;
    transform: scaleY(0);
    transform-origin: top;
  }
  .steps.is-visible::before { transform: scaleY(1); }
  .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(--wood-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(195, 141, 103, .2), transparent);
}
.contact .section-title { color: var(--white); }
.contact .eyebrow { color: var(--wood-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(195, 141, 103, .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(--wood);
  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 målebånd, der rulles ud trin for trin. */
.form-progress { margin-bottom: 30px; }
.tape {
  --progress: 33.333%;
  position: relative;
  height: 30px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tape-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress);
  background: linear-gradient(90deg, var(--wood) 0%, var(--wood-light) 100%);
  transition: width .7s var(--ease);
}
.tape::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(24, 34, 43, .75) 0 1.5px, transparent 1.5px 40px) 0 0 / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, rgba(24, 34, 43, .45) 0 1px, transparent 1px 8px) 0 0 / 100% 7px no-repeat;
}

.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(--wood-deep); }
.form-steps-nav .is-done span { background: var(--wood); border-color: var(--wood); 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(--wood-deep); stroke-width: 1.6; transition: color .25s; }
.tile:hover .tile-box { border-color: var(--wood); transform: translateY(-2px); box-shadow: 0 14px 24px -18px rgba(24, 34, 43, .5); }
.tile input:checked + .tile-box { border-color: var(--ink); background: var(--ink); color: var(--white); }
.tile input:checked + .tile-box > .icon { color: var(--wood-light); }
.tile input:focus-visible + .tile-box { outline: 3px solid var(--wood); 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(--wood);
  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(--wood); 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: #9aa2a9; }
.input:hover { border-color: rgba(24, 34, 43, .4); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(195, 141, 103, .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: #fbf3e9; }

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='%2318222b' 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; }
}

/* Kontakt-kontakt: en tænd/sluk-knap */
.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(24, 34, 43, .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(--wood); 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(24, 34, 43, .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(--wood); background: #fffaf3; }
.dropzone.is-dragover { transform: scale(1.01); }
.dropzone:focus-within { outline: 3px solid var(--wood); outline-offset: 2px; }
.dropzone > .icon { width: 36px; height: 36px; margin-bottom: .3rem; color: var(--wood-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(--wood-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(24, 34, 43, .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(24, 34, 43, .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: #11181f;
  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: 70px; 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(--wood-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. 6,1 × skriftstørrelsen bred; så fylder den containeren uden at flyde ud. */
  font-size: clamp(3.5rem, 15.2vw, 12.5rem);
  line-height: .8;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(195, 141, 103, .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; }
}

/* ------------------------------------------------------------------
 * 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(24, 34, 43, .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(17, 24, 31, .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: 180px; 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; }
  .services .service:nth-child(4) { transition-delay: .24s, .24s, 0s, 0s; }
  .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; }
}
