/* ==========================================================================
   Bang Web – stylesheet
   Alle værdier følger Bang Web brandmanual v1.0
   ========================================================================== */

:root {
  /* Farver */
  --navy: #1F3A5F;
  --green: #2FA36B;
  --green-deep: #1E7A4E;
  --bg-light: #F5F7FA;
  --white: #FFFFFF;
  --text: #1B1F24;
  --text-muted: #55606B;
  --navy-muted: #A9B6C6;
  --line: #DDE3EA;

  /* Skrifter */
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  /* Luft */
  --gutter: 16px;
  --card-pad: 32px;
  --block: 48px;
  --section: 64px;

  /* Form */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 12px;

  --max: 1140px;
  --header-h: 72px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}
@media (min-width: 1080px) {
  :root { --section: 96px; }
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 28px;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--green-deep); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--green-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

/* Typografi -------------------------------------------------------------- */
h1, h2, h3, .display {
  font-family: var(--font-head);
  color: var(--navy);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.display {
  font-weight: 800;
  font-size: clamp(36px, 7vw, 56px);
  line-height: 1.1;
}
h1 {
  font-weight: 800;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.15;
}
h2 {
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 28px);
  line-height: 34px;
}
h3 {
  font-weight: 700;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.01em;
}
.lead {
  font-size: 21px;
  line-height: 30px;
  color: var(--text-muted);
}
.small { font-size: 15px; line-height: 22px; color: var(--text-muted); }
.eyebrow {
  display: block;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 8px;
}

/* Prikken: ⅓ af versalhøjden, som i ikonet */
.dot {
  display: inline-block;
  width: 0.24em;
  height: 0.24em;
  margin-left: 0.06em;
  border-radius: 50%;
  background: var(--green);
  vertical-align: baseline;
}

/* Layout ----------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section) 0; }
.section--light { background: var(--bg-light); }
.section__head { max-width: 640px; margin-bottom: var(--block); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: 24px; }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.split { display: grid; gap: var(--block); align-items: center; }
.split--top { align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .split--reverse { grid-template-columns: 0.9fr 1.1fr; }
  .split--reverse > :first-child { order: 2; }
}

/* Knapper ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-deep); color: var(--white); }
.btn--secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--secondary:hover { background: var(--navy); color: var(--white); }
/* Navy fyldt: bruges i headeren, så grøn kun peger på én ting pr. skærm */
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: #162B47; color: var(--white); }
.btn--on-dark { color: var(--white); border-color: var(--white); background: transparent; }
.btn--on-dark:hover { background: var(--white); color: var(--navy); }
.btn--small { min-height: 44px; padding: 8px 18px; font-size: 17px; }

.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

.link-arrow {
  font-weight: 600;
  text-decoration: none;
  color: var(--green-deep);
}
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { text-decoration: underline; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.site-header__logo img { width: 132px; height: auto; }
.site-header__logo { flex-shrink: 0; margin-left: -10px; }

.nav { display: none; }
.nav__list { display: flex; gap: 28px; list-style: none; }
.nav__link {
  position: relative;
  display: block;
  padding: 8px 0;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.nav__link:hover { color: var(--green-deep); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--green);
}

.site-header__cta { display: none; align-items: center; gap: 20px; }
.phone-link {
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.phone-link:hover { color: var(--green-deep); text-decoration: underline; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--navy);
  font: 600 17px var(--font-body);
  cursor: pointer;
}
.menu-toggle__bars { position: relative; width: 18px; height: 12px; }
.menu-toggle__bars::before,
.menu-toggle__bars::after,
.menu-toggle__bars span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars span { top: 5px; }
.menu-toggle__bars::after { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* Mobilmenu */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 8px 0 24px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu .nav__list { flex-direction: column; gap: 0; }
.mobile-menu .nav__link {
  padding: 14px 0;
  font-size: 20px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .nav__link[aria-current="page"]::after {
  left: auto;
  right: 4px;
  top: 50%;
  bottom: auto;
  margin: -3.5px 0 0;
}
.mobile-menu__actions { display: grid; gap: 12px; margin-top: 24px; }

@media (min-width: 1000px) {
  .nav { display: block; }
  .site-header__cta { display: flex; }
  .menu-toggle, .mobile-menu, .mobile-menu.is-open { display: none; }
}

/* Hero ------------------------------------------------------------------- */
.hero { padding: 48px 0 var(--section); }
@media (min-width: 900px) { .hero { padding-top: 80px; } }
.hero .lead { max-width: 520px; }
.hero__media img,
.media-frame img {
  width: 100%;
  border-radius: var(--r-lg);
  background: var(--bg-light);
}
.hero__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-muted);
}

/* Mobil: én let handling, kort tekst, roligt billede */
@media (max-width: 767px) {
  .hero { padding-top: 56px; }
  .hero .split { gap: 64px; }
  .hero .eyebrow { margin-bottom: 16px; }
  .hero .display { font-size: clamp(32px, 9vw, 40px); line-height: 1.15; margin-bottom: 24px; }
  .hero .lead { font-size: 19px; line-height: 28px; }
  .hero__lead-more { display: none; }
  .hero__actions { flex-direction: column; align-items: stretch; margin-top: 40px; }
  .hero__call-btn { display: none; }
  .hero__note { margin-top: 32px; }
  .hero__media img,
  .media-frame img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
}

.page-hero { padding: 56px 0 var(--block); }
@media (min-width: 900px) { .page-hero { padding-top: 88px; } }
.page-hero .lead { max-width: 640px; }

/* Kort ------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--card-pad);
}
.card--light { background: var(--bg-light); border-color: transparent; }
.section--light .card { border-color: transparent; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text); }
.card .link-arrow { display: inline-block; margin-top: 16px; }

/* Værdiprikker (1–4) */
.value-dots { display: flex; gap: 6px; margin-bottom: 24px; }
.value-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line);
}
.value-dots span.on { background: var(--green); }

/* Tjekliste */
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--navy);
}

/* Tidslinje -------------------------------------------------------------- */
.timeline {
  --step-dot: 28px;
  list-style: none;
  display: grid;
  gap: 32px;
  counter-reset: step;
}
.timeline__step {
  position: relative;
  padding-left: calc(var(--step-dot) + 20px);
}
/* forbindelseslinje (mobil: lodret) */
.timeline__step::before {
  content: "";
  position: absolute;
  left: calc(var(--step-dot) / 2 - 1px);
  top: var(--step-dot);
  bottom: -32px;
  width: 2px;
  background: var(--line);
}
.timeline__step::after {
  content: "";
  position: absolute;
  left: calc(var(--step-dot) / 2 - 1px);
  top: var(--step-dot);
  width: 2px;
  height: 0;
  background: var(--green);
  transition: height .5s ease;
}
.timeline__step:last-child::before,
.timeline__step:last-child::after { display: none; }

.timeline__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--step-dot);
  height: var(--step-dot);
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--white);
  transition: background-color .35s ease, border-color .35s ease;
}
.timeline__num {
  display: block;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.timeline__step h3 { margin-bottom: 6px; }

.timeline__step.is-filled .timeline__dot { background: var(--green); border-color: var(--green); }
.timeline__step.is-filled::after { height: calc(100% - var(--step-dot) + 32px); }

@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .timeline__step { padding-left: 0; padding-top: calc(var(--step-dot) + 24px); padding-right: 16px; }
  .timeline__step::before,
  .timeline__step::after {
    top: calc(var(--step-dot) / 2 - 1px);
    left: var(--step-dot);
    bottom: auto;
    right: auto;
    height: 2px;
  }
  .timeline__step::before { width: calc(100% - var(--step-dot) + 24px); }
  .timeline__step::after { width: 0; transition: width .5s ease; }
  .timeline__step.is-filled::after { height: 2px; width: calc(100% - var(--step-dot) + 24px); }
}

/* Uden JS eller med reduceret bevægelse: alt er udfyldt */
.no-js .timeline__step .timeline__dot { background: var(--green); border-color: var(--green); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* CTA-bånd --------------------------------------------------------------- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: 48px 24px;
  text-align: center;
}
@media (min-width: 768px) { .cta-band { padding: 72px 48px; } }
.cta-band h2 { color: var(--white); font-size: clamp(26px, 4vw, 36px); line-height: 1.2; font-weight: 800; }
.cta-band p { color: var(--navy-muted); max-width: 520px; margin: 0 auto; }
.cta-band__phone {
  display: inline-block;
  margin: 24px 0 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
}
.cta-band__phone:hover { color: var(--white); text-decoration: underline; text-decoration-thickness: 2px; }
.cta-band .actions { justify-content: center; }

/* Pladsholder-kort (Eksempler) ------------------------------------------- */
.example-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.example-card img { width: 100%; aspect-ratio: 800 / 520; object-fit: cover; }
.example-card__body { padding: var(--card-pad); }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-light);
  color: var(--text-muted);
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}
.tag::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--navy-muted);
}

/* FAQ -------------------------------------------------------------------- */
.faq { max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details > div { padding: 0 0 24px; max-width: 640px; }

/* Kontakt + formular ----------------------------------------------------- */
.contact-line { margin-bottom: 24px; }
.contact-line .small { display: block; margin-bottom: 2px; }
.contact-big {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
  word-break: break-word;
}
.contact-big:hover { color: var(--green-deep); text-decoration: underline; }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--navy); }
.field .req { color: var(--text-muted); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #B9C3CF;
  border-radius: var(--r-sm);
  background: var(--white);
  font: 18px/28px var(--font-body);
  color: var(--text);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: 3px solid var(--green-deep); outline-offset: 1px; border-color: var(--green-deep); }
.form__status { min-height: 28px; font-weight: 600; }
.form__status.is-success { color: var(--green-deep); }
.form__status.is-error { color: #B42318; }
.form .btn { justify-self: start; }

/* Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: var(--navy-muted);
  padding: 64px 0 40px;
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__logo img { width: 150px; margin-left: -12px; }
.site-footer__logo + p { margin-top: 16px; max-width: 300px; }
.site-footer h2 {
  font-size: 17px;
  line-height: 24px;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: 0;
}
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(169, 182, 198, .25);
  font-size: 15px;
  line-height: 22px;
}
.site-footer__icon {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  color: var(--white);
}
.site-footer__icon .dot { width: 0.3em; height: 0.3em; }

/* Hjælpere --------------------------------------------------------------- */
.mt-block { margin-top: var(--block); }
.center { text-align: center; }
.muted { color: var(--text-muted); }
