/* =========================================================
   Klikklar – stylesheet
   Farver og mål samlet i variabler, så de er nemme at ændre.
   ========================================================= */

:root {
  --color-primary: #2f5bea;
  --color-primary-dark: #1f44c4;
  --color-primary-soft: #eaf0ff;
  --color-text: #14182b;
  --color-muted: #5b6277;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8fc;
  --color-border: #e3e7f0;
  --color-error: #d23b3b;
  --color-success: #1f8a4c;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 24, 43, 0.08);
  --shadow-lg: 0 20px 50px rgba(47, 91, 234, 0.18);
  --max-width: 1120px;
  --header-height: 72px;
}

/* ---------- Grundlæggende ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.02em; text-wrap: balance; }
.accent { color: var(--color-primary); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: var(--color-primary); }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 800px; }

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 0.8em;
}

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 1.6em;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:focus-visible { outline: 3px solid var(--color-primary-soft); outline-offset: 2px; }

.btn--ghost { background: transparent; color: var(--color-primary); }
.btn--ghost:hover { background: var(--color-primary-soft); color: var(--color-primary-dark); border-color: var(--color-primary-dark); box-shadow: none; }

.btn--small { padding: 0.55em 1.2em; font-size: 0.95rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header.is-scrolled { border-color: var(--color-border); box-shadow: 0 4px 20px rgba(20, 24, 43, 0.05); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo { display: inline-flex; align-items: center; }
.logo img { height: 32px; width: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:not(.btn):hover { color: var(--color-primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(47, 91, 234, 0.12), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(47, 91, 234, 0.08), transparent 50%);
  text-align: center;
}
.hero__inner { max-width: 820px; }
.hero__lead { font-size: 1.15rem; color: var(--color-muted); max-width: 640px; margin: 0 auto 2rem; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.8rem;
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}
.hero__points li::before { content: "✓"; color: var(--color-primary); font-weight: 700; margin-right: 0.4em; }

/* Hero med foto som baggrund – mørk toning så den hvide tekst kan læses */
.hero--photo {
  display: flex;
  align-items: center;
  min-height: min(82vh, 760px);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(10, 14, 32, 0.78) 0%, rgba(10, 14, 32, 0.62) 50%, rgba(10, 14, 32, 0.82) 100%),
    url("../images/hero.jpg") 62% center / cover no-repeat,
    #1a1410;
}
.hero--photo .eyebrow { color: #a9bdff; }
.hero--photo .accent { color: #7f9dff; }
.hero--photo .hero__lead { color: rgba(255, 255, 255, 0.85); }
.hero--photo .hero__points { color: rgba(255, 255, 255, 0.85); }
.hero--photo .hero__points li::before { color: #7f9dff; }
.hero--photo .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.hero--photo .btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ---------- Sektioner ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section--alt { background: var(--color-bg-alt); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section__sub { color: var(--color-muted); }

/* ---------- Trin ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step {
  padding: 2rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step p { color: var(--color-muted); margin: 0; }
.step__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.2rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border-radius: 12px;
}

/* ---------- Priser ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.2rem 2rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.plan--featured { border: 2px solid var(--color-primary); box-shadow: var(--shadow-lg); }
.plan__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3em 1em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  border-radius: 999px;
  white-space: nowrap;
}
.plan__name { margin-bottom: 0.3em; }
.plan__desc { color: var(--color-muted); font-size: 0.95rem; }
.plan__price { font-size: 1rem; color: var(--color-muted); margin-bottom: 0; }
.plan__vat { font-size: 0.85rem; color: var(--color-muted); margin-bottom: 1.5rem; }
.plan__price span { font-size: 2.6rem; font-weight: 800; color: var(--color-text); letter-spacing: -0.03em; margin-right: 0.15em; }
.plan__features { list-style: none; padding: 0; margin: 0 0 2rem; flex-grow: 1; }
.plan__features li { padding: 0.5em 0; border-bottom: 1px solid var(--color-border); }
.plan__features li:last-child { border-bottom: 0; }
.plan__features li::before { content: "✓"; color: var(--color-primary); font-weight: 700; margin-right: 0.6em; }

/* Inkluderet i alle pakker */
.included {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 1.5rem 2rem;
  background: var(--color-primary-soft);
  border-radius: var(--radius);
  text-align: center;
}
.included__title { font-weight: 700; margin-bottom: 0.8rem; }
.included__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}
.included__list li::before { content: "✓"; color: var(--color-primary); font-weight: 700; margin-right: 0.4em; }

/* Forklaring under priserne */
.pricing-note {
  max-width: 760px;
  margin: 3rem auto 0;
  text-align: center;
  color: var(--color-muted);
}
.pricing-note strong { color: var(--color-text); }
.pricing-note__terms { font-size: 0.9rem; margin: 0; }

/* ---------- Om mig ---------- */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: center; }
.about__image {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border-radius: calc(var(--radius) * 1.5);
  background: linear-gradient(135deg, var(--color-primary-soft), #d6e0ff);
  color: var(--color-primary);
  font-weight: 600;
  overflow: hidden;
}
.about__image img { width: 100%; height: 100%; object-fit: cover; }
.about__scene { height: 90%; width: auto; max-width: 92%; }

.about__card { text-align: center; padding: 2rem; }
.about__card p { margin: 0; }
.about__image .about__mark {
  width: 128px;
  height: 128px;
  margin: 0 auto 1.5rem;
  border-radius: 35px;
  box-shadow: var(--shadow-lg);
}
.about__card-name { font-size: 1.6rem; font-weight: 800; color: var(--color-text); }
.about__card-role { color: var(--color-muted); }
.about__card-place { margin-top: 1rem !important; display: inline-block; padding: 0.3em 1em; background: #fff; border-radius: 999px; font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.8rem; }
.faq__item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s;
}
.faq__item[open] { box-shadow: var(--shadow); }
.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-primary);
  transition: transform 0.2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0; padding: 0 1.5rem 1.4rem; color: var(--color-muted); }
.about__text p { color: var(--color-muted); }
.about__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  list-style: none;
  padding: 1.5rem 0 0;
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.95rem;
}
.about__facts strong { display: block; font-size: 1.8rem; color: var(--color-text); line-height: 1.2; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact__intro p { color: var(--color-muted); }
.contact__info { margin: 1.5rem 0 0; }
.contact__info div { padding: 0.6em 0; border-bottom: 1px solid var(--color-border); }
.contact__info dt { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); }
.contact__info dd { margin: 0; font-weight: 500; }
.contact__info a { color: var(--color-text); text-decoration: none; font-weight: 500; }
.contact__info a:hover { color: var(--color-primary); }

.form {
  padding: 2.2rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form__field { margin-bottom: 1.2rem; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form label { display: block; font-weight: 600; margin-bottom: 0.4em; font-size: 0.95rem; }
.form input,
.form textarea {
  width: 100%;
  padding: 0.85em 1em;
  font: inherit;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus,
.form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-soft);
}
.form__field.has-error input,
.form__field.has-error textarea { border-color: var(--color-error); }
.form__error { min-height: 1.2em; margin: 0.3em 0 0; font-size: 0.85rem; color: var(--color-error); }
.form__note { margin: 1rem 0 0; font-size: 0.85rem; color: var(--color-muted); text-align: center; }
.form__success {
  margin: 1.2rem 0 0;
  padding: 0.9em 1em;
  color: var(--color-success);
  background: #e8f6ee;
  border-radius: 10px;
  font-weight: 500;
}

/* ---------- Footer ---------- */
.footer { padding: 3.5rem 0 1.5rem; background: var(--color-bg-alt); border-top: 1px solid var(--color-border); color: var(--color-muted); font-size: 0.95rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer__brand img { height: 30px; width: auto; margin-bottom: 1rem; }
.footer__brand p { max-width: 320px; }
.footer__heading { font-weight: 700; color: var(--color-text); margin-bottom: 0.6rem; }
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { padding: 0.25em 0; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
}
.footer p { margin: 0; }
.footer__brand p { margin: 0; }
.footer a { color: var(--color-muted); text-decoration: none; }
.footer a:hover { color: var(--color-primary); }

/* ---------- Juridiske sider (handelsbetingelser / privatliv) ---------- */
.draft-banner {
  padding: 0.8rem 20px;
  text-align: center;
  font-weight: 700;
  color: #7a4b00;
  background: #fff3d6;
  border-bottom: 1px solid #f1d58e;
}
.legal { padding: clamp(3rem, 7vw, 5rem) 0; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal p, .legal li { color: var(--color-muted); }
.legal .legal__updated { font-size: 0.9rem; }
.legal .back-link { display: inline-block; margin-bottom: 2rem; text-decoration: none; font-weight: 600; }

/* ---------- Animation ved scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Responsivt design
   ========================================================= */
@media (max-width: 960px) {
  .steps,
  .pricing { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .pricing { gap: 2rem; }
  .about,
  .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__image { max-width: 360px; width: 100%; margin: 0 auto; aspect-ratio: 1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 20px 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 24px rgba(20, 24, 43, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 0.9rem 0; border-bottom: 1px solid var(--color-border); }
  .nav .btn { margin-top: 1rem; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .form { padding: 1.5rem; }
  .included { padding: 1.5rem; }
  .included__list { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
