/* =========================================================
   My Content – style.css
   Mobile-first. Ingen frameworks.

   1. Tokens
   2. Reset & base
   3. Layout
   4. Typografi
   5. Komponenter (knapper, logo, medier, kort, lister)
   6. Header & navigation
   7. Sektioner (hero → footer)
   8. Hjælpeklasser
   ========================================================= */


/* ---------- 1. Tokens ---------- */

:root {
  /* Brandfarver */
  --orange: #FF5A1F;
  --black: #111111;
  --dark-gray: #2A2A2A;
  --light-gray: #F4F4F2;
  --off-white: #FAF9F6;
  --white: #FFFFFF;

  /* Afledte farver */
  --orange-hover: #F04A10;
  --orange-text: #C63F0E;   /* orange tekst på lys baggrund – opfylder AA-kontrast */
  --orange-tint: #FFF4EF;   /* baggrund på valgte elementer */
  --on-orange: var(--black);/* tekst på orange knapper (sort = 6:1 kontrast, hvid = 3,1:1) */
  --text: var(--black);
  --text-muted: #5A5A57;
  --border: #E6E5E1;
  --border-strong: #CFCDC7;
  --placeholder: #E9E8E4;
  --error: #B42318;         /* fejltekst – AA-kontrast på hvid */
  --error-bg: #FEF3F2;

  /* Typografi */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Form */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-btn: 10px;

  /* Layout */
  --container: 1248px;
  --gutter: 20px;
  --header-h: 64px;
  --section-y: 64px;

  /* Check-ikon (sort) til orange cirkler og valgte felter */
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3 5 8.6l4.5-5.1' fill='none' stroke='%23111111' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (min-width: 900px) {
  :root {
    --gutter: 32px;
    --header-h: 72px;
    --section-y: 104px;
  }
}


/* ---------- 2. Reset & base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 900px) {
  body { font-size: 1.0625rem; }
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

h1, h2, h3, p, ul, ol, figure, fieldset {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

/* Synlige fokusmarkeringer til tastaturbrugere */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* Sektioner der får fokus via script (efter scroll) skal ikke have ramme */
[tabindex="-1"]:focus {
  outline: none;
}


/* ---------- 3. Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(880px + 2 * var(--gutter));
}

.section {
  padding-block: var(--section-y);
}

.section--tint { background: var(--off-white); }
.section--gray { background: var(--light-gray); }

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-head p:not(.eyebrow) {
  margin-top: 14px;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.section-head .eyebrow + h2 {
  margin-top: 12px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

@media (min-width: 900px) {
  .section-head { margin-bottom: 56px; }
  .section-head p:not(.eyebrow) { font-size: 1.1875rem; }
}


/* ---------- 4. Typografi ---------- */

h1, h2, h3 {
  color: var(--black);
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-weight: 800;
  font-size: clamp(2.375rem, 1.4rem + 3.8vw, 4.25rem);
  letter-spacing: -0.035em;
  line-height: 1.03;
}

h2 {
  font-weight: 700;
  font-size: clamp(1.875rem, 1.3rem + 2.2vw, 3rem);
  letter-spacing: -0.03em;
}

h3 {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange-text);
}

/* Tekstlinks: understregning med orange accent */
p a,
.trust-contact a {
  font-weight: 600;
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

p a:hover {
  color: var(--orange-text);
}


/* ---------- 5. Komponenter ---------- */

/* Knapper */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--orange);
  color: var(--on-orange);
}

.btn--primary:hover {
  background: var(--orange-hover);
}

.btn--secondary {
  background: var(--white);
  color: var(--black);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  border-color: var(--black);
}

.btn--lg {
  min-height: 56px;
  padding: 16px 28px;
  font-size: 1.0625rem;
}

.btn--sm {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 0.9375rem;
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 480px) {
  .btn-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Logo (tekst-wordmark) */
.logo {
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
}

.logo-my {
  color: var(--orange);
}

/* Medier
   <img> og <video> fylder rammen helt (object-fit: cover) uden forvrængning. */
.media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--placeholder);
}

.media > img,
.media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Portrætter: beskær fra toppen, så ansigtet bliver i rammen */
.media > img.media-img--portrait {
  object-position: 50% 22%;
}

.media--4x5 { aspect-ratio: 4 / 5; }
.media--16x9 { aspect-ratio: 16 / 9; }

/* Videoafspiller: hele videoen vises (contain) – kvadratiske film får sorte kanter */
.media--player {
  background: var(--black);
}

.media--player > video {
  object-fit: contain;
  background: var(--black);
}

/* Kort */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* Check-lister */
.check-list li,
.check-grid li {
  position: relative;
  font-weight: 600;
}

.check-list li {
  padding-left: 30px;
}

.check-list li::before,
.check-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange) var(--icon-check) center / 12px no-repeat;
}


/* ---------- 6. Header & navigation ---------- */

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}

.header-inner > .logo {
  margin-right: auto;
}

/* Mobilmenu (dropdown under headeren) */
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 4px var(--gutter) 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 24px -12px rgba(17, 17, 17, 0.12);
}

.site-header.nav-open .site-nav {
  display: block;
}

.nav-list a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
}

.nav-cta {
  margin-top: 20px;
}

.header-cta {
  display: none;
}

@media (min-width: 420px) {
  .header-cta { display: inline-flex; }
}

/* Burger-knap */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--black);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after  { top: 7px; }

.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars::after  { transform: translateY(-7px) rotate(-45deg); }

/* Uden JavaScript: vis menuen direkte */
@media (max-width: 959px) {
  .no-js .nav-toggle { display: none; }
  .no-js .header-inner { flex-wrap: wrap; }
  .no-js .site-nav {
    display: block;
    position: static;
    width: 100%;
    padding: 0 0 16px;
    border: 0;
    box-shadow: none;
  }
}

/* Desktop-navigation */
@media (min-width: 960px) {
  .nav-toggle,
  .nav-cta {
    display: none;
  }

  .header-inner > .logo {
    margin-right: 0;
  }

  .site-nav {
    display: flex;
    position: static;
    margin-left: auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .nav-list {
    display: flex;
    gap: 32px;
  }

  .nav-list a {
    padding: 8px 0;
    border: 0;
    font-size: 0.9375rem;
    color: var(--dark-gray);
  }

  .nav-list a:hover {
    color: var(--black);
    text-decoration: underline;
    text-decoration-color: var(--orange);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }

  .header-cta {
    margin-left: 32px;
  }
}


/* ---------- 7. Sektioner ---------- */

/* Hero */
.hero {
  padding-block: 40px 64px;
}

.hero-grid {
  display: grid;
  gap: 28px;
}

.hero-head h1 {
  margin-top: 16px;
}

.hero-lead {
  margin-top: 20px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-gray);
}

.hero .btn-row {
  margin-top: 4px;
}

.check-list--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.media--hero {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
}

/* Tablet (én kolonne): bredere format, så videoen ikke bliver for høj */
@media (min-width: 560px) and (max-width: 899px) {
  .media--hero {
    aspect-ratio: 16 / 9;
  }
}

.hero-video {
  background: var(--placeholder);
}

/* Diskret pause/afspil-knap (automatisk bevægelse skal kunne stoppes) */
.hero-video-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.55);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.hero-video-toggle:hover {
  background: rgba(17, 17, 17, 0.8);
}

.hero-video-toggle[hidden] {
  display: none;
}

/* Pause-ikon (to streger) */
.hero-video-toggle::before,
.hero-video-toggle::after {
  content: "";
  position: absolute;
  top: 13px;
  width: 4px;
  height: 14px;
  border-radius: 1px;
  background: var(--white);
}

.hero-video-toggle::before { left: 14px; }
.hero-video-toggle::after  { left: 22px; }

/* Afspil-ikon (trekant) når videoen er sat på pause */
.hero-video-toggle.is-paused::before {
  left: 16px;
  width: 0;
  height: 0;
  border-radius: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--white);
  background: none;
}

.hero-video-toggle.is-paused::after {
  display: none;
}

@media (min-width: 900px) {
  .hero {
    padding-block: 72px 104px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    grid-template-areas:
      "head    media"
      "actions media";
    column-gap: 64px;
    row-gap: 0;
  }

  .hero-head {
    grid-area: head;
    align-self: end;
  }

  .hero-media {
    grid-area: media;
    align-self: center;
  }

  .hero-actions {
    grid-area: actions;
    align-self: start;
  }

  .hero .btn-row {
    margin-top: 32px;
  }

  .hero-lead {
    font-size: 1.375rem;
  }

  .media--hero {
    aspect-ratio: 5 / 4;
  }
}

/* Produkter */
.product-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}



.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.product-card:hover {
  border-color: var(--border-strong);
}

.product-card .media {
  border-radius: 0;
}

.product-card h3 {
  overflow-wrap: break-word;
  hyphens: auto;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.product-desc {
  margin-top: 8px;
  color: var(--text-muted);
}

.product-actions {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 24px;
}

.text-link {
  display: inline-block;
  padding: 8px 4px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--dark-gray);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--black);
  text-decoration-color: var(--orange);
}

/* Desktop: balanceret 2×2 med vandrette kort (billede til venstre) */
@media (min-width: 1240px) {
  .product-card {
    display: grid;
    grid-template-columns: 40% minmax(0, 1fr);
  }

  .product-card .media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 300px;
  }

  .product-body {
    padding: 24px;
  }
}

/* Eksempler: faner */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tab {
  min-height: 44px;
  padding: 10px 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  background: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.tab:hover {
  border-color: var(--black);
}

.tab[aria-selected="true"] {
  border-color: var(--orange);
  background: var(--orange-tint);
}

.tab-panel {
  border-radius: var(--radius);
}

.tab-panel[hidden] {
  display: none;
}

/* Uden JavaScript: skjul faner, vis alle kategorier med overskrift */
.no-js .tabs { display: none; }
.no-js .tab-panel + .tab-panel { margin-top: 40px; }
.no-js .panel-title { margin-bottom: 16px; }

/* Eksempler: galleri */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery > :first-child {
  grid-column: 1 / -1;
}

.gallery--video {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .gallery {
    gap: 20px;
  }

  .gallery--portraits {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery--portraits > :first-child {
    grid-column: auto;
  }

  .gallery--video {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 4 videoer i et roligt 2 × 2-gitter */
  .gallery--video > :first-child {
    grid-column: auto;
  }
}

/* Miljøbilleder: murstens-layout i billedernes egne proportioner */
.gallery-masonry {
  columns: 2;
  column-gap: 12px;
}

@media (min-width: 640px) {
  .gallery-masonry {
    column-gap: 20px;
  }
}

@media (min-width: 900px) {
  .gallery-masonry {
    columns: 3;
  }
}

.masonry-item {
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--placeholder);
  break-inside: avoid;
}

@media (min-width: 640px) {
  .masonry-item {
    margin-bottom: 20px;
  }
}

.masonry-item img {
  display: block;
  width: 100%;
  height: auto;
}

/* Video med titel */
.video-item {
  margin: 0;
}

.video-title {
  margin-top: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dark-gray);
}

/* Bag kameraet (BTS) */
.bts-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .bts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.media--bts {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
}

/* Sådan fungerer det */
.steps {
  display: grid;
  gap: 32px;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  padding-top: 20px;
  border-top: 1px solid var(--border-strong);
}

.step-num {
  display: block;
  margin-bottom: 20px;
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  color: var(--orange-text);
}

.step p {
  margin-top: 8px;
  color: var(--text-muted);
}

/* Inkluderet */
.included {
  display: grid;
  gap: 8px;
}

.check-grid {
  display: grid;
  gap: 12px;
}

.check-grid li {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 16px 20px 16px 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  line-height: 1.35;
}

.check-grid li::before {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

@media (min-width: 560px) {
  .check-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .included {
    grid-template-columns: 1fr 1.5fr;
    align-items: start;
    gap: 64px;
  }

  .included .section-head {
    margin-bottom: 0;
  }
}

/* Tryghed */
.trust-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

.trust-item {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.trust-item::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 20px;
  border-radius: 2px;
  background: var(--orange);
}

.trust-item p {
  margin-top: 8px;
  color: var(--text-muted);
}

.trust-contact {
  display: grid;
  gap: 2px;
  margin-top: 12px;
}

/* Store trykflader på mobil */
.trust-contact a {
  display: inline-block;
  padding-block: 6px;
}

/* ---------- Prisberegner / konfigurator ---------- */

.configurator {
  display: grid;
  gap: 20px;
}

@media (min-width: 960px) {
  .configurator {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
    align-items: start;
    gap: 28px;
  }
}

.config-list {
  display: grid;
  gap: 12px;
}

/* Produktkort i beregneren */
.config-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color 0.15s ease;
}

.config-item:hover {
  border-color: var(--border-strong);
}

.config-item.is-selected {
  border-color: var(--orange);
}

/* Hele kortets top er én knap (aria-pressed) */
.config-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 16px;
  width: 100%;
  padding: 20px;
  border: 0;
  border-radius: var(--radius-lg);
  background: none;
  text-align: left;
  cursor: pointer;
}

.config-check {
  grid-row: span 2;
  position: relative;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  background: var(--white);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.config-toggle[aria-pressed="true"] .config-check {
  border-color: var(--orange);
  background: var(--orange) var(--icon-check) center / 14px no-repeat;
}

.config-name {
  display: block;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.config-desc {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.config-hint {
  grid-column: 2;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dark-gray);
}

.config-hint s {
  margin-right: 6px;
  font-weight: 400;
  color: var(--text-muted);
}

@media (min-width: 560px) {
  .config-toggle {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .config-check {
    grid-row: auto;
  }

  .config-hint {
    grid-column: auto;
    text-align: right;
    white-space: nowrap;
  }
}

/* Tilvalg (droneoptagelser) */
.config-tag {
  display: block;
  margin-bottom: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-text);
}

.config-addon-notes {
  margin: -8px 20px 0 62px;
  padding-bottom: 18px;
}

.config-addon-notes .config-note {
  margin-top: 4px;
}

.config-note--unavailable[hidden] {
  display: none;
}

.config-note--unavailable {
  font-weight: 600;
  color: var(--dark-gray);
}

.config-toggle:disabled {
  cursor: not-allowed;
}

.config-item--addon.is-unavailable {
  background: var(--off-white);
}

.config-item--addon.is-unavailable:hover {
  border-color: var(--border);
}

.config-item--addon.is-unavailable .config-check,
.config-item--addon.is-unavailable .config-name,
.config-item--addon.is-unavailable .config-desc,
.config-item--addon.is-unavailable .config-hint {
  opacity: 0.55;
}

/* Udvidet indhold */
.config-body {
  display: grid;
  gap: 20px;
  margin-inline: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.config-body[hidden] {
  display: none;
}

@media (min-width: 560px) {
  .config-body {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

.config-control {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  font-weight: 600;
  font-size: 0.9375rem;
}

.config-note {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* +/- stepper */
.stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-btn);
  overflow: hidden;
}

.stepper:focus-within {
  border-color: var(--black);
}

.stepper-btn {
  width: 52px;
  min-height: 52px;
  border: 0;
  background: var(--light-gray);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.stepper-btn:hover {
  background: var(--border);
}

.stepper-btn[aria-disabled="true"] {
  color: #A5A39E;
  cursor: not-allowed;
}

.stepper-btn:focus-visible {
  outline-offset: -3px;
}

.stepper-input {
  width: 76px;
  border: 0;
  border-inline: 1.5px solid var(--border-strong);
  background: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.stepper-input:focus-visible {
  outline-offset: -3px;
}

/* Segmenterede valg (radioknapper) */
.segmented {
  display: grid;
  gap: 8px;
}

.segmented--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (min-width: 560px) {
  .segmented--3 {
    grid-template-columns: repeat(auto-fit, minmax(0, 96px));
  }
}

.segment {
  position: relative;
  cursor: pointer;
}

.segment input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.segment span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 8px 4px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-btn);
  background: var(--white);
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.segment strong {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
}

.segment small {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.segment:hover span {
  border-color: var(--black);
}

.segment input:checked + span {
  border-color: var(--orange);
  background: var(--orange-tint);
}

.segment input:focus-visible + span {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* Subtotal pr. produkt */
.config-subtotal {
  display: grid;
  justify-items: start;
}

@media (min-width: 560px) {
  .config-subtotal {
    justify-items: end;
    text-align: right;
  }
}

.config-subtotal-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.config-subtotal strong {
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.config-breakdown {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.config-control .combo-note {
  margin-top: 10px;
}

/* Rabattekst under subtotal – diskret, ingen badges */
.config-discount {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dark-gray);
}

.config-discount[hidden] {
  display: none;
}

.combo-note {
  align-self: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.combo-note::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--orange);
  vertical-align: 1px;
}

.config-body--simple .config-subtotal {
  grid-column: -2;
}

/* Ordreoversigt */
.summary {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--black);
  color: var(--white);
}

@media (min-width: 960px) {
  .summary {
    padding: 32px 28px;
  }

  .summary-col {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  /* Når kontaktformularen er åben, scroller kolonnen normalt */
  .configurator.is-form-open .summary-col {
    position: static;
  }
}

.summary-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B5B4AF;
}

.summary-empty {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: #D2D1CC;
}

.summary-lines {
  margin-top: 8px;
}

.summary-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  padding-block: 12px;
  border-bottom: 1px solid #2E2E2E;
}

.summary-line-name {
  font-weight: 600;
}

.summary-line-detail {
  grid-column: 1;
  font-size: 0.875rem;
  color: #B5B4AF;
}

.summary-line-amount {
  grid-row: 1;
  grid-column: 2;
  font-weight: 700;
  white-space: nowrap;
}

.summary-fee {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid #3A3A3A;
  font-weight: 600;
}

.summary-fee[hidden] {
  display: none;
}

/* Besparelse i ordreoversigten */
.summary-savings {
  display: grid;
  gap: 4px;
  padding-top: 14px;
}

.summary-savings[hidden] {
  display: none;
}

.summary-compare,
.summary-saving {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.summary-compare {
  font-size: 0.9375rem;
  color: #B5B4AF;
}

.summary-compare s {
  text-decoration-thickness: 1px;
}

.summary-saving {
  font-weight: 600;
}

.summary-saving strong {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--orange); /* 6:1 kontrast mod den sorte baggrund */
}

.summary-savings-note {
  margin-top: 4px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #B5B4AF;
}

.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.summary-total span {
  font-weight: 600;
}

.summary-total strong {
  font-weight: 700;
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.summary-vat {
  font-size: 0.875rem;
  color: #B5B4AF;
  text-align: right;
}

.summary .btn {
  margin-top: 24px;
}

.form-error:not(:empty) {
  margin-top: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #FF9E7A;
}

/* Kontaktformular */
.lead {
  margin-top: 16px;
  padding: 28px 24px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.lead[hidden],
.lead-success[hidden],
.lead-form[hidden] {
  display: none;
}

@media (min-width: 960px) {
  .lead {
    padding: 32px 28px;
  }
}

.lead-title {
  font-size: 1.375rem;
}

.lead-title:focus {
  outline: none;
}

.lead-intro,
.lead-success p {
  margin-top: 8px;
  color: var(--text-muted);
}

.lead-form .form-field:first-of-type {
  margin-top: 24px;
}

.form-field + .form-field {
  margin-top: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.field-optional {
  font-weight: 400;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-btn);
  background: var(--white);
  font-size: 1rem; /* min. 16px – undgår zoom på iPhone */
  line-height: 1.4;
  transition: border-color 0.15s ease;
}

.form-field textarea {
  min-height: 112px;
  resize: vertical;
}

.form-field input:hover,
.form-field textarea:hover {
  border-color: var(--dark-gray);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--black);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field-hint {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.field-error:not(:empty) {
  margin-top: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--error);
}

.form-privacy {
  margin-top: 24px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.form-privacy a {
  font-weight: 600;
}

.form-status:not(:empty) {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--error-bg);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--error);
}

.form-status a {
  color: inherit;
}

.lead-form .btn {
  margin-top: 24px;
}

.lead-form .btn[disabled] {
  cursor: progress;
  opacity: 0.7;
}

.lead-success .lead-title::before {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--orange) var(--icon-check) center / 20px no-repeat;
}

/* Honeypot: usynlig for mennesker og skærmlæsere */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* FAQ */
.accordion {
  border-top: 1px solid var(--border-strong);
}

.accordion-item {
  border-bottom: 1px solid var(--border-strong);
}

.accordion-heading {
  font-size: inherit;
  letter-spacing: normal;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 18px 0;
  border: 0;
  background: none;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.accordion-icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  border-radius: 1px;
  background: var(--black);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  border-color: var(--orange);
  background: var(--orange);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.accordion-panel {
  padding: 0 44px 22px 0;
  color: var(--text-muted);
}

.accordion-panel[hidden] {
  display: none;
}

/* Afsluttende CTA */
.cta-final {
  padding-block: calc(var(--section-y) + 16px);
  /* Baggrundsbillede med kraftigt mørkt overlay (78 %), så hvid tekst altid har høj kontrast.
     Skift billede: ret filnavnet i url(...) – æ/ø skrives som %C3%A6 / %C3%B8. */
  background-color: var(--black);
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.78), rgba(17, 17, 17, 0.78)),
    url("assets/images/ibsenbygdrone1_milij%C3%B8.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  text-align: center;
}

@media (min-width: 900px) {
  .cta-final {
    padding-block: calc(var(--section-y) + 32px);
  }
}

.cta-final-inner {
  max-width: calc(720px + 2 * var(--gutter));
}

.cta-final h2 {
  color: var(--white);
}

.cta-final-inner > p:not(.cta-contact) {
  margin-top: 16px;
  font-size: 1.125rem;
  color: #D2D1CC;
}

.cta-final .btn {
  width: 100%;
  margin-top: 32px;
}

.cta-contact {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: #D2D1CC; /* lysere end før – holder kontrasten oven på billedet */
}

.cta-final .cta-contact a {
  color: var(--white);
}

.cta-final .cta-contact a:hover {
  color: var(--orange);
}

.cta-contact a {
  display: inline-block;
  padding-block: 6px;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .cta-final .btn { width: auto; }
}

/* Footer */
.site-footer {
  padding-block: 56px 32px;
  border-top: 1px solid var(--border);
  background: var(--off-white);
}

.footer-grid {
  display: grid;
  gap: 36px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1.2fr 0.9fr;
    gap: 48px;
  }
}

.footer-brand p {
  max-width: 280px;
  margin-top: 14px;
  color: var(--text-muted);
}

.footer-heading {
  margin-bottom: 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-contact {
  display: grid;
  gap: 12px;
  margin: 0;
}

.footer-contact dt {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-contact dd {
  margin: 0;
}

.footer-col a {
  color: var(--black);
  text-decoration: none;
}

.footer-contact a,
.footer-links a {
  display: inline-block;
  padding-block: 4px;
  font-weight: 600;
}

.footer-contact a:hover,
.footer-links a:hover {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer-operator {
  margin-bottom: 10px;
  font-weight: 600;
}

.footer-address {
  font-style: normal;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer-links {
  display: grid;
  gap: 2px;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}


/* ---------- Juridiske sider (privatlivs- og cookiepolitik) ---------- */

.legal {
  padding-block: 48px 80px;
}

@media (min-width: 900px) {
  .legal {
    padding-block: 72px 104px;
  }
}

.legal-inner {
  max-width: calc(760px + 2 * var(--gutter));
}

.legal-updated {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.legal-intro {
  margin-top: 24px;
  font-size: 1.125rem;
  color: var(--dark-gray);
}

.legal h2 {
  margin-top: 48px;
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  letter-spacing: -0.02em;
}

.legal h2 + * {
  margin-top: 14px;
}

.legal p,
.legal ul,
.legal address {
  margin-top: 14px;
  color: var(--dark-gray);
}

.legal ul:not([role="list"]),
.legal ul.legal-list {
  padding-left: 1.25em;
  list-style: disc;
}

.legal li + li {
  margin-top: 4px;
}

.legal li::marker {
  color: var(--orange);
}

.legal address {
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--off-white);
  font-style: normal;
  line-height: 1.7;
}

.legal h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
}

.legal a:not(.btn) {
  font-weight: 600;
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.legal a:not(.btn):hover {
  color: var(--orange-text);
}

.legal-note {
  padding: 16px 20px;
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--orange-tint);
}

.legal-back {
  margin-top: 56px;
}


/* ---------- 8. Hjælpeklasser ---------- */

.visually-hidden,
.js .panel-title {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
