:root {
  --bg: #f3f3f1;
  --surface: #ffffff;
  --text: #121212;
  --muted: #4c4c4c;
  --line: #dad9d4;
  --brand: #4f6e14;
  --brand-soft: #e4edcc;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.58;
}

a {
  color: inherit;
}

.container {
  width: min(var(--max), 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.header-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
}

.brand {
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #1a1a1a;
  margin: 4px auto;
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 1.05rem;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  background: color-mix(in srgb, #f4f5ef 86%, transparent);
  border: 1px solid #d4d8c6;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.08);
}

.nav > a,
.nav-drop-btn {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: #1d1d1d;
}

.nav-dropdown {
  position: relative;
  padding-bottom: 0.4rem;
  margin-bottom: -0.4rem;
}

.nav-drop-btn {
  border: 0;
  background: transparent;
  padding: 0.2rem 0.3rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.nav-drop-btn:hover,
.nav-drop-btn:focus-visible {
  background: #eef2e2;
}

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 0.16rem);
  right: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 16px 30px rgba(15, 15, 15, 0.12);
  padding: 0.5rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 210ms ease, transform 210ms ease;
  z-index: 30;
}

.nav-drop-menu a {
  display: block;
  text-decoration: none;
  padding: 0.53rem 0.62rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.nav-drop-menu a:hover {
  background: #f3f5ed;
}

.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown:focus-within .nav-drop-menu,
.nav-dropdown.open .nav-drop-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn {
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  padding: 0.65rem 1.2rem;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  color: #f8faef;
}

.btn-soft {
  background: var(--brand-soft);
  color: #2b4410;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
}

h1 {
  font-size: clamp(2.4rem, 6.5vw, 5.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3.8vw, 3rem);
}

h3 {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
}

.eyebrow {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5b6b34;
  font-size: 0.75rem;
  font-weight: 700;
}

.lead {
  margin: 1rem 0 0;
  max-width: 72ch;
  color: #2e2e2e;
  font-size: clamp(1.05rem, 1.52vw, 1.33rem);
}

.hero {
  padding: 4rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2.5rem;
  align-items: start;
}

.hero-copy {
  padding-top: 0.5rem;
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.97rem;
  font-weight: 500;
  color: #2e2e2e;
}

.trust-list li::before {
  content: "✓";
  color: var(--brand);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.hero-form {
  padding: 1.6rem;
  position: sticky;
  top: 96px;
}

.form-intro {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-family: "DM Sans", sans-serif;
}

.form-sub {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-note {
  margin: 0.8rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.section {
  padding: 3.2rem 0;
}

.quick-links {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.quick-links a {
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.76rem 0.9rem;
  font-weight: 600;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.05rem;
}

.body-copy,
.card p,
.article p,
.list li {
  font-size: clamp(1rem, 1.16vw, 1.14rem);
}

.list {
  margin: 0.8rem 0 0;
  padding-left: 1.15rem;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 1.2rem;
  align-items: stretch;
}

.placeholder {
  border: 1px solid var(--line);
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.wide-image {
  width: 100%;
  aspect-ratio: 3.1 / 1.2;
}

.split-media {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.image-mountains {
  background-image: url("./fr.jpg");
}

.image-pedestal {
  background-image: url("./kirke.jpg");
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.num {
  display: block;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.05rem, 4.2vw, 3.8rem);
  color: #767676;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.faq-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: #5b6b34;
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0.65rem 0 0;
}

.cta-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}

.cta-form {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.cta-form input {
  min-height: 46px;
  border: 1px solid #cecec8;
  border-radius: 12px;
  padding: 0.68rem 0.85rem;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  background: #fbfbfa;
}

.cta-form input:focus {
  outline: 2px solid #a8c07f;
  outline-offset: 1px;
}

.cta-form .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.field--full {
  grid-column: 1 / -1;
}

.cvr-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 200;
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  max-height: 260px;
  overflow-y: auto;
}

.cvr-dropdown li {
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-size: 0.92rem;
}

.cvr-dropdown li:hover,
.cvr-dropdown li[aria-selected="true"] {
  background: var(--brand-soft);
}

.cvr-dropdown li .dd-name {
  font-weight: 600;
}

.cvr-dropdown li .dd-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.cta-form--hero {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0;
}

.btn-full {
  width: 100%;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.mt-1 {
  margin-top: 1rem;
}

.card-num {
  display: block;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: #c2cca8;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.kontakt-section {
  background: var(--brand);
  padding: 4rem 0;
}

.kontakt-section .cta-panel {
  background: #fff;
  border-color: transparent;
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 2.4rem;
}

.kontakt-section .form-note {
  color: var(--muted);
}

.page-head {
  padding: 2.5rem 0 1rem;
}

.page-body {
  padding: 1rem 0 3rem;
}

.content-wrap {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 1rem;
}

.article,
.side-nav {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem;
}

.side-nav {
  position: sticky;
  top: 96px;
  height: fit-content;
}

.side-nav h3 {
  margin: 0 0 0.5rem;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.side-nav a {
  display: block;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}

.local-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.local-list a {
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.62rem;
  text-align: center;
  font-weight: 600;
}

.site-footer {
  margin-top: 2.6rem;
  background: #e9e4d8;
  border-top: 1px solid #d4ccbb;
  padding: 5rem 0 1.8rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.5rem;
  color: #4f6e14;
  font-family: "DM Sans", sans-serif;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 780ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 780ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0.5rem;
    right: 0.5rem;
    border-radius: 12px;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(10, 10, 10, 0.11);
    flex-direction: column;
    align-items: flex-start;
    justify-self: auto;
  }

  .nav.is-open {
    display: flex;
  }

  .nav-dropdown {
    width: 100%;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .nav-drop-btn {
    width: 100%;
    text-align: left;
  }

  .nav-drop-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 0.35rem;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    display: none;
  }

  .nav-dropdown.open .nav-drop-menu {
    display: block;
  }

  .header-inner > .btn {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-form {
    position: static;
  }

  .quick-links,
  .grid-2,
  .grid-3,
  .split-grid,
  .process-grid,
  .content-wrap,
  .local-list,
  .cta-form {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
  }

  .cta-form .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    font-size: 1rem;
  }

  .site-footer {
    padding-top: 2.6rem;
  }
}

@media (min-width: 981px) {
  .nav-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0.8rem;
  }
}

/* ── Modal ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(480px, 100%);
  padding: 2rem 1.8rem 1.5rem;
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: 0.2rem 0.4rem;
}

.modal-close:hover {
  color: var(--text);
}

/* ── Phone prefix selector ──────────────────────────────── */
.phone-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid #cecec8;
  border-radius: 12px;
  background: #fbfbfa;
  overflow: hidden;
}

.phone-wrap:focus-within {
  outline: 2px solid #a8c07f;
  outline-offset: 1px;
}

.phone-prefix,
.phone-custom {
  flex: 0 0 auto;
  border: none;
  border-right: 1px solid #cecec8;
  border-radius: 0;
  background: transparent;
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  padding: 0 0.6rem 0 0.85rem;
  cursor: pointer;
  outline: none;
  color: var(--text);
}

.phone-prefix {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='5' viewBox='0 0 9 5'%3E%3Cpath d='M0 0l4.5 5L9 0z' fill='%234c4c4c'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 1.4rem;
}

.phone-custom {
  width: 4.5rem;
  cursor: text;
}

.phone-number {
  flex: 1;
  border: none;
  background: transparent;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  padding: 0.68rem 0.85rem;
  outline: none;
  min-width: 0;
}

/* ── Thank-you popup ────────────────────────────────────── */
.thanks-card {
  text-align: center;
  padding: 2.5rem 2rem 2rem;
}

.thanks-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
}

.thanks-body {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.6;
  margin: 0.4rem 0 0.8rem;
}
