/* ==========================================================================
   Designindstillinger (design tokens)
   Alle farver, skrift, afstande og radier står her. Ret dem her – ikke i
   site.css – så ændringen slår igennem på alle sider. Byggescriptet sætter
   denne fil foran site.css i den færdige /assets/css/site.css.
   ========================================================================== */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-600-normal.woff2") format("woff2");
}

:root {
  /* Farver. Kontrast til tekst er tjekket mod hvid og --color-surface (min. 4.5:1). */
  --color-navy: #051225;          /* brandfarve: knapper, overskrifter, bånd */
  --color-navy-hover: #1d3a66;
  --color-ink: #1c2533;           /* brødtekst */
  --color-text-muted: #3d4757;    /* sekundær tekst */
  --color-text-subtle: #4a5568;   /* små hjælpetekster */
  --color-on-navy: #ffffff;
  --color-on-navy-muted: #d5dce7;
  --color-white: #ffffff;
  --color-surface: #f4f6f9;       /* lyse sektioner og footer */
  --color-border: #e3e7ee;
  --color-placeholder: #d9e0ea;   /* midlertidige billedpladser */
  --color-focus: #2f6fd6;         /* fokusring på lys baggrund */
  --color-focus-on-dark: #ffffff; /* fokusring på marineblå baggrund */

  /* Skrift */
  --font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-size-base: 1.0625rem;    /* 17px */
  --font-size-small: 0.9375rem;   /* 15px */
  --font-size-lead: 1.1875rem;    /* 19px */
  --font-size-h1: clamp(2.125rem, 1.2rem + 3.2vw, 3.125rem);   /* 34–50px */
  --font-size-h2: clamp(1.625rem, 1.2rem + 1.4vw, 2.125rem);   /* 26–34px */
  --font-size-h2-band: clamp(1.5625rem, 1.2rem + 1.1vw, 2rem); /* 25–32px */
  --font-size-h3: 1.25rem;
  --line-height-base: 1.65;
  --line-height-heading: 1.2;

  /* Afstande */
  --space-2xs: 0.375rem;
  --space-xs: 0.625rem;
  --space-sm: 0.875rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 3.5rem;
  --space-section: clamp(3rem, 2rem + 4vw, 5.5rem);
  --space-band: clamp(2.75rem, 2rem + 3vw, 4.5rem);

  /* Layout */
  --container-max: 75rem;         /* 1200px */
  --container-gutter: 1.5rem;     /* 24px på computer */
  --prose-max: 56rem;

  /* Former */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 16px;

  /* Bevægelse. Bruges kun, når brugeren ikke har bedt om reduceret bevægelse. */
  --motion-duration: 700ms;       /* fade ind ved scroll */
  --motion-distance: 18px;        /* hvor langt elementer glider op */
  --motion-stagger: 90ms;         /* forsinkelse mellem kort i samme række */
  --motion-ease: cubic-bezier(0.22, 0.61, 0.36, 1); /* blød opbremsning */
  --motion-hover: 200ms;

  /* Komponentmål */
  --header-logo-height: 40px;
  --header-logo-optical-offset: -4px; /* se kommentar i header.html */
  --mobile-bar-height: 4.25rem;
  /* Brudpunkt: 900px (CSS-variabler kan ikke bruges i @media, så tallet står i site.css) */
}

@media (max-width: 600px) {
  :root {
    --container-gutter: 1rem;     /* 16px på mobil */
    --header-logo-height: 32px;
    --header-logo-optical-offset: -3px;
  }
}

/* ==========================================================================
   Fælles styling for alle sider.
   Brug kun værdier fra tokens.css (var(--…)). Rækkefølge: grundlag, layout,
   komponenter, sektioner, header/footer, hjælpeklasser.
   Brudpunkt: 900px (mobil/tablet under, computer over).
   ========================================================================== */

/* ---------- Grundlag ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

h1, h2, h3 {
  margin: 0;
  color: var(--color-navy);
  font-weight: 600;
  line-height: var(--line-height-heading);
}
h1 { font-size: var(--font-size-h1); line-height: 1.15; }
h2 { font-size: var(--font-size-h2); line-height: 1.25; }
h3 { font-size: var(--font-size-h3); }

p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }

a { color: var(--color-navy); }
a:hover { color: var(--color-navy-hover); }

/* Synligt fokus for tastaturbrugere på alle interaktive elementer */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 2px;
}
.band :focus-visible { outline-color: var(--color-focus-on-dark); }

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -100px;
  z-index: 100;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-navy);
  color: var(--color-on-navy);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-sm); color: var(--color-on-navy); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container-max) + 2 * var(--container-gutter));
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

.stack-lg { display: flex; flex-direction: column; gap: var(--space-lg); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.section { padding-block: var(--space-section); }
.section--tight-top { padding-top: calc(var(--space-section) / 2); }
.section--muted { background: var(--color-surface); }
/* To hvide sektioner efter hinanden: undgå dobbelt afstand */
.section + .section--tight-top { padding-top: 0; }

.section__intro { max-width: 42.5rem; display: flex; flex-direction: column; gap: var(--space-sm); }
.section__intro p { color: var(--color-text-muted); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-sm);
}

.prose {
  max-width: var(--prose-max);
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}
.prose p { color: var(--color-text-muted); }

/* ---------- Knapper og links ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 48px;                 /* stor nok til at ramme med en finger */
  padding: 0.8125rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.button--small {
  min-height: 44px;
  padding: 0.625rem 1.125rem;
  font-size: var(--font-size-small);
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
}
.button--primary { background: var(--color-navy); color: var(--color-on-navy); }
.button--primary:hover { background: var(--color-navy-hover); color: var(--color-on-navy); }
.button--outline { border-color: var(--color-navy); color: var(--color-navy); background: var(--color-white); }
.button--outline:hover { background: var(--color-surface); }
.button--light { background: var(--color-white); color: var(--color-navy); }
.button--light:hover { background: var(--color-surface); color: var(--color-navy); }
.button--outline-light { border-color: var(--color-on-navy); color: var(--color-on-navy); }
.button--outline-light:hover { background: rgba(255, 255, 255, 0.1); color: var(--color-on-navy); }

.button-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

.text-link { font-weight: 500; }

/* ---------- Kort ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
}
.card p { color: var(--color-text-muted); }
.card--muted { background: var(--color-surface); border-color: transparent; }
.card--center { justify-content: center; }
.card--center .button { align-self: flex-start; }

/* Ydelseskort: hele kortet er ét link */
.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  color: inherit;
  text-decoration: none;
}
.service-card:hover { border-color: var(--color-navy); color: inherit; }
.service-card__body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem 1.625rem 1.75rem; }
.service-card__body p { color: var(--color-text-muted); font-size: 1rem; }
.service-card__more { margin-top: 0.375rem; color: var(--color-navy); font-weight: 500; font-size: 1rem; }

/* Midlertidige billedpladser (udskiftes med <img> når der er rigtige fotos) */
.image-placeholder {
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  background: var(--color-placeholder);
}
.image-placeholder span {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: var(--color-white);
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}
.image-placeholder--card { aspect-ratio: 16 / 10; }
.image-placeholder--hero { aspect-ratio: 5 / 4; border-radius: var(--radius-xl); padding: 1.25rem; }

/* ---------- Sektioner ---------- */
.hero { background: var(--color-surface); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}
.hero__text { display: flex; flex-direction: column; gap: var(--space-md); }
.lead { font-size: var(--font-size-lead); color: var(--color-text-muted); max-width: 34em; }

/* Marineblå bånd. Begge bånd på forsiden har samme højde (samme padding). */
.band { background: var(--color-navy); color: var(--color-on-navy); }
.band__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.75rem;
  padding-block: var(--space-band);
}
.band h2 { color: var(--color-on-navy); font-size: var(--font-size-h2-band); margin-bottom: var(--space-xs); }
.band__meta { display: flex; align-items: center; gap: var(--space-xs); color: var(--color-on-navy-muted); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--color-border); background: var(--color-white); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: 0.75rem;
}
.site-header__logo { display: block; line-height: 0; flex: none; }
.site-header__logo img {
  height: var(--header-logo-height);
  width: auto;
  transform: translateY(var(--header-logo-optical-offset));
}
.site-nav { display: flex; align-items: center; gap: 2.5rem; }
.site-nav__list { display: flex; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.site-nav__list a {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  color: var(--color-text-muted);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav__list a:hover { color: var(--color-navy); }
.site-nav__list a[aria-current="page"] { color: var(--color-navy); border-bottom-color: var(--color-navy); }

.site-header__menu-button {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-white);
  color: var(--color-navy);
  cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: var(--font-size-small); }
.site-footer__grid { display: flex; flex-wrap: wrap; gap: var(--space-lg) 4rem; padding-block: 3.5rem 2rem; }
.site-footer__brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: var(--space-sm); }
.site-footer__brand img { height: 30px; width: auto; align-self: flex-start; }
.site-footer__col { flex: 1 1 200px; }
.site-footer__col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer__heading { margin-bottom: 0.75rem; font-size: var(--font-size-small); }
.site-footer a { color: var(--color-text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--color-navy); text-decoration: underline; }
.site-footer address { line-height: 1.9; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.125rem 1.75rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
}

.mobile-contact-bar { display: none; }

/* ---------- Mobil og tablet (under 900px) ---------- */
@media (max-width: 900px) {
  .grid-3,
  .hero__grid { grid-template-columns: minmax(0, 1fr); }

  /* På mobil står fotoet over overskriften i introen */
  .hero__grid .image-placeholder--hero { order: -1; aspect-ratio: 4 / 3; }

  .site-header__menu-button { display: inline-flex; }

  /* Menuen er altid synlig uden JavaScript. Med JavaScript foldes den sammen bag menuknappen. */
  .site-header__inner { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: var(--space-sm); padding-bottom: var(--space-sm); }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--color-border); }
  .site-nav__list a[aria-current="page"] { border-bottom-color: var(--color-border); font-weight: 600; }
  .site-nav__cta { display: none; } /* "Få et tilbud" ligger i kontaktbjælken nederst */
  .js .site-nav:not(.is-open) { display: none; }

  .band__inner { flex-direction: column; align-items: stretch; }
  .band .button-row { flex-direction: column; }

  /* Fast kontaktbjælke nederst på skærmen */
  body { padding-bottom: var(--mobile-bar-height); }
  .mobile-contact-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 50;
    display: flex;
    gap: var(--space-xs);
    padding: 0.625rem var(--container-gutter);
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
  }
  .mobile-contact-bar .button { flex: 1; min-height: 46px; padding-block: 0.625rem; }
  .mobile-contact-bar .button--primary { flex: 2; }
}

@media (prefers-reduced-motion: no-preference) {
  .button, .site-nav__list a { transition: background-color 0.15s, border-color 0.15s, color 0.15s; }

  /* ---------- Animationer (se docs/udviklervejledning.md, "Animationer") ----------
     Uden JavaScript, eller med reduceret bevægelse, vises alt med det samme. */

  /* Forsidens hero og undersidernes intro toner frem, når siden åbnes */
  @keyframes fade-up {
    from { opacity: 0; transform: translateY(var(--motion-distance)); }
    to { opacity: 1; transform: none; }
  }
  .hero__text > *, .hero .image-placeholder--hero, .hero__image,
  .page-intro__text > *, .page-intro .image-placeholder--intro, .page-intro__image {
    animation: fade-up var(--motion-duration) var(--motion-ease) both;
  }
  .hero__text > :nth-child(2), .page-intro__text > :nth-child(2) { animation-delay: 120ms; }
  .page-intro__text > :nth-child(n+3) { animation-delay: 200ms; }
  .hero .image-placeholder--hero, .hero__image,
  .page-intro .image-placeholder--intro, .page-intro__image { animation-delay: 220ms; }

  /* Elementer med data-reveal (og børn af data-reveal-group) toner frem, når de rulles ind
     på skærmen. main.js sætter is-visible og --reveal-delay. */
  .js [data-reveal], .js [data-reveal-group] > * {
    opacity: 0;
    transform: translateY(var(--motion-distance));
    transition: opacity var(--motion-duration) var(--motion-ease), transform var(--motion-duration) var(--motion-ease);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .js [data-reveal].is-visible, .js [data-reveal-group] > .is-visible {
    opacity: 1;
    transform: none;
  }

  /* Ydelseskort løfter sig let ved hover, og pilen skubbes en anelse frem */
  .service-card {
    transition: border-color var(--motion-hover), box-shadow var(--motion-hover), transform var(--motion-hover) var(--motion-ease);
  }
  .service-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -14px rgba(5, 18, 37, 0.35); }
  .service-card__more { display: inline-block; transition: transform var(--motion-hover) var(--motion-ease); }
  .service-card:hover .service-card__more { transform: translateX(4px); }
}

/* ==========================================================================
   Undersider: ydelsessider, om os, kontakt, privatliv
   ========================================================================== */

/* ---------- Brødkrumme ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 0; padding: 0; list-style: none; font-size: 0.875rem; color: var(--color-text-subtle); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--color-text-subtle); }
.breadcrumb a { color: var(--color-text-subtle); }

/* ---------- Sideintro (lys baggrund, tekst + foto) ---------- */
.page-intro { background: var(--color-surface); }
.page-intro__inner { display: flex; flex-direction: column; gap: 2.25rem; padding-block: 1.75rem clamp(2.5rem, 2rem + 2vw, 4.5rem); }
.page-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
}
.page-intro__text { display: flex; flex-direction: column; gap: 1.375rem; }
.page-intro--text-only .page-intro__grid { grid-template-columns: minmax(0, 1fr); }
.page-intro--text-only .page-intro__text { max-width: 46rem; }
.image-placeholder--intro { aspect-ratio: 4 / 3; border-radius: var(--radius-xl); padding: 1.25rem; }

/* ---------- Indholdsgitter på ydelsessider ---------- */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22.5rem;
  gap: var(--space-xl);
  align-items: start;
  padding-block: var(--space-section);
}
.content-grid > .full-width { grid-column: 1 / -1; }

.box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.875rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.box h2 { font-size: 1.5rem; line-height: 1.3; }
.box--stretch { align-self: stretch; }
.box--muted { background: var(--color-surface); }

/* Faktaliste med ikoner ("Det får du hos os") */
.facts { display: flex; flex-direction: column; gap: 1rem; margin: 0; }
.facts dt { display: flex; align-items: flex-start; gap: 0.875rem; font-weight: 600; color: var(--color-navy); }
.facts svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--color-navy); }
.facts dd { margin: 0; padding-left: calc(22px + 0.875rem); color: var(--color-text-muted); }

/* Marineblå tilbudsboks ved siden af faktaboksen */
.cta-box {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.875rem;
  padding: 1.875rem;
  border-radius: var(--radius-xl);
  background: var(--color-navy);
  color: var(--color-on-navy);
  text-align: center;
}
.cta-box h2 { color: var(--color-on-navy); font-size: 1.375rem; line-height: 1.3; text-align: left; }
.cta-box p { color: var(--color-on-navy-muted); font-size: 1rem; text-align: left; }
.cta-box .button { width: 100%; }
.cta-box__phone { color: var(--color-on-navy); font-weight: 500; text-decoration: none; padding: 0.375rem; }
.cta-box__phone:hover { color: var(--color-on-navy); text-decoration: underline; }
.cta-box__hours { font-size: 0.875rem !important; text-align: center !important; }
.cta-box :focus-visible { outline-color: var(--color-focus-on-dark); }

/* Fortællende afsnit: tekst og foto side om side, skiftevis */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
}
.story--flip > :first-child { order: 2; }
.story__text { display: flex; flex-direction: column; gap: 1rem; }
.story__text p { color: var(--color-text-muted); }

/* To kasser side om side */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); align-items: stretch; }

.check-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.check-list li { display: flex; gap: 0.75rem; }
.check-list svg { flex: none; margin-top: 5px; color: var(--color-navy); }
.plain-list { margin: 0; padding-left: 1.375rem; color: var(--color-text-muted); display: flex; flex-direction: column; gap: 0.375rem; }
.box p { color: var(--color-text-muted); }

/* Tre trin som kasser */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; flex-direction: column; gap: 0.625rem; padding: 1.5rem; border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.steps h3 { font-size: 1.125rem; }
.steps p { color: var(--color-text-muted); font-size: 1rem; }
.step-number {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-on-navy);
  font-weight: 600;
}

/* Ofte stillede spørgsmål */
.faq { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(1.25rem, 1rem + 2vw, 2.75rem); }
.faq h2 { margin-bottom: 0.5rem; }
.faq__item { border-bottom: 1px solid #d5dde8; padding-block: 1.125rem; }
.faq__item summary { cursor: pointer; font-weight: 600; color: var(--color-navy); font-size: 1.125rem; }
.faq__item p { margin-top: 0.625rem; color: var(--color-text-muted); }

/* Brødtekst-sider (privatliv) */
.legal { max-width: 46rem; display: flex; flex-direction: column; gap: 1rem; padding-block: var(--space-section); }
.legal h2 { margin-top: 1.5rem; font-size: 1.5rem; }
.legal p, .legal li { color: var(--color-text-muted); }
.legal ul { margin: 0; padding-left: 1.375rem; display: flex; flex-direction: column; gap: 0.375rem; }
.to-confirm { background: #fff4d6; color: #5c4400; padding: 0 0.25rem; border-radius: 3px; }

/* ==========================================================================
   Formularer
   ========================================================================== */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) var(--space-section);
}
.form-layout--wide-form { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.form-guide { display: flex; flex-direction: column; gap: 1.75rem; }
.form-guide__intro { display: flex; flex-direction: column; gap: 0.875rem; }
.eyebrow { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }

.icon-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.375rem; }
.icon-steps li { display: flex; gap: 1rem; align-items: flex-start; }
.icon-steps__icon { flex: none; width: 44px; height: 44px; border-radius: 10px; background: #eef2f7; display: flex; align-items: center; justify-content: center; color: var(--color-navy); }
.icon-steps__text { padding-top: 0.5rem; font-weight: 500; color: var(--color-navy); }

.number-steps { list-style: none; margin: 0; padding: 0; }
.number-steps li { display: flex; gap: 1rem; align-items: center; padding-block: 1.375rem; border-top: 1px solid #cfd8e4; color: var(--color-navy); font-weight: 500; }
.number-steps li:last-child { border-bottom: 1px solid #cfd8e4; }
.number-steps span { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid #cfd8e4; background: var(--color-white); display: flex; align-items: center; justify-content: center; font-size: 0.8125rem; font-weight: 600; }

.form-card {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  padding: clamp(1.25rem, 1rem + 2vw, 2.25rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
}
.form-card--white { background: var(--color-white); border-color: #d5dde8; }
.section--blue-tint { background: #eef2f7; }

.form-hint { font-size: 0.875rem; color: var(--color-text-subtle); }
.form-step { display: flex; flex-direction: column; gap: 1.25rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.form-step > legend { padding: 0; margin-bottom: 0.25rem; font-weight: 600; font-size: 1.125rem; color: var(--color-navy); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }

.field { display: flex; flex-direction: column; gap: 0.375rem; font-size: 0.9375rem; }
.field > label, .field__label { font-weight: 500; color: var(--color-ink); }
.field__optional { font-weight: 400; color: var(--color-text-subtle); }
.field__help { font-size: 0.875rem; color: var(--color-text-subtle); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.8125rem 0.875rem;
  border: 1px solid #8a94a6;            /* mindst 3:1 kontrast til baggrunden */
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-ink);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--color-navy); }
.field [aria-invalid="true"] { border-color: #b42318; }
.field__error { color: #b42318; font-size: 0.875rem; font-weight: 500; }

/* Valgknapper som lige brede kasser (fx Privat / Virksomhed / Boligforening) */
.choice-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group > legend { padding: 0; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.9375rem; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.choice-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice {
  display: flex; align-items: center; gap: 0.625rem;
  min-width: 0;
  padding: 0.8125rem 0.875rem;
  border: 1px solid #8a94a6;
  border-radius: var(--radius-md);
  background: var(--color-white);
  font-size: 1rem;
  cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--color-navy); box-shadow: inset 0 0 0 1px var(--color-navy); }
.choice input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--color-navy); }

/* Fotoupload */
.file-drop { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1.375rem; border: 2px dashed #8a94a6; border-radius: 10px; background: var(--color-white); }
.file-drop input[type="file"] { font: inherit; font-size: 0.9375rem; max-width: 100%; }
.file-drop input[type="file"]::file-selector-button { font: inherit; font-weight: 500; color: var(--color-navy); background: var(--color-white); border: 1px solid var(--color-navy); border-radius: var(--radius-md); padding: 0.5rem 1rem; margin-right: 0.75rem; cursor: pointer; }

.consent { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.9375rem; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--color-navy); }

/* Skjult felt mod spam-robotter. Mennesker ser det ikke; robotter udfylder det ofte. */
.trap-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.875rem; }
.form-actions--end { justify-content: flex-end; }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* Trinindikator (to-trins formular) */
.stepper { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.75rem; font-size: 0.9375rem; font-weight: 500; }
.stepper li { display: flex; align-items: center; gap: 0.625rem; color: var(--color-navy); }
.stepper__line { flex: 1; height: 2px; background: var(--color-navy); }
.stepper__dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 600; background: var(--color-navy); color: var(--color-on-navy); }
.stepper li.is-upcoming { color: var(--color-text-subtle); }
.stepper li.is-upcoming .stepper__dot { background: var(--color-white); border: 2px solid #8a94a6; color: var(--color-text-subtle); }
/* Uden JavaScript vises begge trin på én gang, og trinindikatoren skjules */
.stepper { display: none; }
.js .stepper { display: flex; }
.js .form-step[hidden] { display: none; }

/* Statusbesked efter afsendelse */
.form-status { border-radius: var(--radius-md); padding: 1rem 1.125rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status--success { background: #e7f5ec; color: #14532d; border: 1px solid #9fd6b3; }
.form-status--error { background: #fdecea; color: #7a1a12; border: 1px solid #f3b4ac; }

/* ---------- Mobil og tablet ---------- */
@media (max-width: 900px) {
  .page-intro__grid,
  .content-grid,
  .story,
  .grid-2,
  .form-layout,
  .form-layout--wide-form { grid-template-columns: minmax(0, 1fr); }
  .page-intro__grid .image-placeholder { order: -1; }
  .story--flip > :first-child { order: 0; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .choice-grid, .choice-grid--2 { grid-template-columns: minmax(0, 1fr); gap: 0.625rem; }
}

.align-start { align-self: flex-start; }
.contact-big { font-size: 1.625rem; font-weight: 600; color: var(--color-navy); text-decoration: none; }
/* "Næste"/"Tilbage" giver kun mening med JavaScript; uden vises begge trin på én gang */
[data-next-step], [data-prev-step] { display: none; }
.js [data-next-step], .js [data-prev-step] { display: inline-flex; }
[hidden] { display: none !important; } /* hidden skal altid vinde over display i komponenterne */
/* På smalle skærme står trinnavnet under prikken, så indikatoren ikke bliver for bred */
@media (max-width: 600px) {
  .stepper { gap: 0.5rem; font-size: 0.8125rem; align-items: flex-start; }
  .stepper li:not(.stepper__line) { flex-direction: column; gap: 0.375rem; text-align: center; min-width: 0; }
  .stepper__line { margin-top: 15px; min-width: 1.5rem; }
}

/* Kontaktsiden: højre kolonne med tilbudsgenvej over den generelle formular */
.form-column { display: flex; flex-direction: column; gap: var(--space-md); min-width: 0; }
.quote-chooser {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border-radius: var(--radius-xl);
  background: var(--color-navy);
  color: var(--color-on-navy);
}
.quote-chooser h2 { color: var(--color-on-navy); font-size: 1.5rem; line-height: 1.3; }
.quote-chooser p { color: var(--color-on-navy-muted); }
.quote-chooser__buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.75rem; margin-top: 0.25rem; }
.quote-chooser :focus-visible { outline-color: var(--color-focus-on-dark); }
.form-card > p:not(.form-hint):not(.form-status) { color: var(--color-text-muted); }
