:root {
  --cream: #faf6f2;
  --cream-deep: #f3ece6;
  --plum: #422f3d;
  --plum-soft: #684458;
  --rose: #eedfe3;
  --sand: #e9d8c7;
  --white: #fffdfb;
  --ink: #34272f;
  --muted: #786a72;
  --line: rgba(66, 47, 61, 0.14);
  --shadow: 0 24px 70px rgba(66, 47, 61, 0.12);
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 36px;
  --container: 1180px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--plum); font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.7rem, 12vw, 5.7rem); }
h2 { margin-bottom: 1.15rem; font-size: clamp(2.15rem, 7vw, 4rem); }
h3 { margin-bottom: .6rem; font-size: 1.75rem; }

.container { width: min(calc(100% - 36px), var(--container)); margin-inline: auto; }
.section { padding: 84px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px; color: white; background: var(--plum); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.eyebrow { margin-bottom: 12px; color: var(--plum-soft); font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light { color: #f2dfe4; }
.lead { font-family: var(--font-display); font-size: clamp(1.3rem, 4vw, 1.65rem); line-height: 1.4; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--plum-soft);
  border-radius: 999px;
  color: white;
  background: var(--plum-soft);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.button:hover { background: var(--plum); box-shadow: 0 10px 24px rgba(66,47,61,.2); transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(104,68,88,.35); outline-offset: 3px; }
.button-small { min-height: 42px; padding-inline: 20px; }
.button-light { color: var(--plum); background: var(--white); border-color: var(--white); }
.button-light:hover { color: white; background: var(--plum-soft); border-color: var(--plum-soft); }
.button-ghost-light { color: white; background: transparent; border-color: rgba(255,255,255,.55); }
.button-ghost-light:hover { background: rgba(255,255,255,.12); }
.button-secondary { color: var(--plum); background: transparent; }
.button-wide { width: 100%; }

.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid transparent; background: rgba(250,246,242,.9); backdrop-filter: blur(14px); transition: box-shadow .25s ease, border-color .25s ease; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(66,47,61,.05); }
.nav-wrap { display: flex; min-height: 72px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--plum); font-family: var(--font-display); font-size: 1.42rem; font-weight: 600; letter-spacing: -.03em; }
.brand > span:last-child > span, .brand-footer > span { color: var(--plum-soft); }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; color: var(--plum-soft); background: var(--rose); border-radius: 50%; }
.brand-mark svg { width: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.menu-toggle { display: grid; width: 44px; height: 44px; padding: 11px; place-content: center; gap: 5px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; width: 22px; height: 1.5px; background: var(--plum); transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:nth-child(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] > span:nth-child(4) { transform: translateY(-6.5px) rotate(-45deg); }
.primary-nav { position: fixed; inset: 72px 0 auto; display: none; padding: 26px 18px 34px; flex-direction: column; gap: 20px; color: var(--plum); background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(66,47,61,.1); }
.primary-nav.is-open { display: flex; }
.primary-nav > a:not(.button) { font-size: 1.04rem; font-weight: 500; }

.hero { position: relative; min-height: 520px; overflow: hidden; color: white; background: var(--plum); }
.hero-image, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: 57% center; }
.hero-overlay { background: linear-gradient(90deg, rgba(35,24,31,.92) 0%, rgba(43,28,38,.72) 48%, rgba(43,28,38,.18) 100%); }
.hero-inner { position: relative; display: flex; min-height: 520px; align-items: center; padding-block: 54px 48px; }
.hero-copy { width: min(100%, 680px); }
.hero h1 { margin-bottom: 19px; color: white; font-size: clamp(3rem, 13vw, 6.6rem); }
.hero-lead { max-width: 600px; margin-bottom: 28px; color: rgba(255,255,255,.86); font-size: clamp(1rem, 3.8vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-caption { display: none; }

.section-heading { display: grid; gap: 16px; margin-bottom: 30px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 430px; margin: 0; color: var(--muted); }
.demo-notice, .integration-notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid rgba(104,68,88,.14); color: var(--plum); background: var(--rose); border-radius: var(--radius-sm); }
.demo-notice { margin-bottom: 20px; }
.demo-notice svg, .integration-notice svg { width: 21px; min-width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.7; }
.search-panel { margin-bottom: 32px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 40px rgba(66,47,61,.06); }
.search-panel > label { display: block; margin-bottom: 9px; color: var(--plum); font-weight: 600; }
.search-field { position: relative; }
.search-field > svg { position: absolute; top: 50%; left: 17px; width: 21px; fill: none; stroke: var(--plum-soft); stroke-linecap: round; stroke-width: 1.7; transform: translateY(-50%); pointer-events: none; }
.search-field input { width: 100%; height: 58px; padding: 0 72px 0 50px; border: 1px solid var(--line); color: var(--ink); background: var(--cream); border-radius: 15px; }
.search-field input::placeholder { color: #94868d; }
.search-clear { position: absolute; top: 50%; right: 14px; padding: 6px; border: 0; color: var(--plum-soft); background: transparent; font-size: .86rem; font-weight: 600; transform: translateY(-50%); cursor: pointer; }
.search-meta { margin: 10px 2px 0; color: var(--muted); font-size: .86rem; }
.provider-grid { display: grid; gap: 20px; }
.provider-card { display: flex; overflow: hidden; min-width: 0; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 15px 40px rgba(66,47,61,.06); transition: transform .3s ease, box-shadow .3s ease; }
.provider-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.provider-card[hidden] { display: none; }
.card-image-wrap { position: relative; display: grid; height: 228px; overflow: hidden; background: linear-gradient(135deg, var(--rose), var(--sand)); }
.card-image-wrap img, .card-initial { grid-area: 1 / 1; width: 100%; height: 100%; }
.card-image-wrap img { position: relative; z-index: 1; object-fit: cover; transition: transform .6s ease; }
.card-initial { display: grid; place-items: center; color: rgba(66,47,61,.65); font-family: var(--font-display); font-size: 5rem; }
.card-image-alt img { object-position: 65% center; }
.provider-card:hover img { transform: scale(1.035); }
.card-badge { display: inline-flex; padding: 7px 11px; color: var(--plum); background: rgba(250,246,242,.92); border-radius: 999px; font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.card-image-wrap .card-badge { position: absolute; z-index: 2; top: 14px; left: 14px; backdrop-filter: blur(8px); }
.card-content { display: flex; height: 100%; padding: 22px; flex-direction: column; }
.card-location { margin-bottom: 6px; color: var(--plum-soft); font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.card-location span { margin-right: 5px; color: #b78290; font-size: .6rem; }
.card-content p { margin-bottom: 19px; color: var(--muted); overflow-wrap: anywhere; }
.profile-links { display: flex; margin-top: auto; padding-top: 4px; flex-wrap: wrap; gap: 8px; }
.profile-link { padding: 7px 12px; border: 1px solid var(--sand); color: var(--plum); background: var(--cream); border-radius: 999px; font-size: .78rem; font-weight: 600; transition: color .2s, background .2s, border-color .2s; }
.profile-link:hover { color: white; background: var(--plum-soft); border-color: var(--plum-soft); }
.text-link { padding: 0 0 4px; border: 0; border-bottom: 1px solid var(--sand); color: var(--plum); background: transparent; font-weight: 600; cursor: pointer; }
.text-link span { display: inline-block; margin-left: 5px; transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }
.directory-state { display: flex; min-height: 190px; padding: 36px 24px; align-items: center; justify-content: center; gap: 18px; text-align: left; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); }
.directory-state h3, .directory-state p { margin-bottom: 0; }
.directory-state p { color: var(--muted); }
.loading-mark { width: 40px; height: 40px; min-width: 40px; border: 3px solid var(--rose); border-top-color: var(--plum-soft); border-radius: 50%; animation: loading-spin .8s linear infinite; }
.directory-error > span { display: grid; width: 52px; height: 52px; margin: 0 auto 12px; place-items: center; color: var(--plum); background: var(--rose); border-radius: 50%; font-family: var(--font-display); font-size: 1.8rem; }
.empty-state { padding: 48px 20px; text-align: center; border: 1px dashed rgba(104,68,88,.3); background: var(--white); border-radius: var(--radius); }
.empty-state > span { font-family: var(--font-display); font-size: 3rem; }
.empty-state p { color: var(--muted); }
@keyframes loading-spin { to { transform: rotate(360deg); } }

.about { background: var(--rose); }
.about-grid { display: grid; gap: 42px; }
.about-image { position: relative; }
.about-image img { width: 100%; min-height: 430px; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 120px var(--radius-lg); box-shadow: var(--shadow); }
.image-note { position: absolute; right: -5px; bottom: 24px; display: flex; width: min(270px, 83%); padding: 18px; align-items: center; gap: 13px; color: var(--plum); background: rgba(250,246,242,.94); border-radius: 18px 0 0 18px; font-weight: 600; backdrop-filter: blur(10px); }
.image-note span { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--sand); border-radius: 50%; font-family: var(--font-display); }
.about-copy > p:not(.eyebrow):not(.lead) { color: var(--muted); }
.benefit-list { display: grid; margin-top: 28px; gap: 10px; }
.benefit-list > div { display: grid; grid-template-columns: 34px 1fr; padding: 14px 0; border-top: 1px solid rgba(66,47,61,.12); }
.benefit-list > div > span { grid-row: 1 / 3; color: var(--plum-soft); }
.benefit-list strong { color: var(--plum); }
.benefit-list small { color: var(--muted); }

.provider-cta { padding-bottom: 30px; }
.cta-card { position: relative; display: grid; overflow: hidden; padding: 42px 28px; gap: 28px; color: white; background: var(--plum); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.cta-card h2 { color: white; }
.cta-card p:not(.eyebrow) { max-width: 630px; margin-bottom: 0; color: rgba(255,255,255,.76); font-size: 1.08rem; }
.cta-card .button { position: relative; width: fit-content; align-self: center; }
.cta-decoration { position: absolute; right: -90px; bottom: -180px; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.cta-decoration::after { position: absolute; inset: 40px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; content: ""; }

.site-footer { padding: 65px 0 24px; color: rgba(255,255,255,.7); background: #35252f; }
.footer-grid { display: grid; gap: 36px; }
.brand-footer { margin-bottom: 10px; color: white; }
.footer-grid h2 { margin-bottom: 12px; color: white; font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.footer-grid a, .footer-grid span { display: block; width: fit-content; margin: 8px 0; font-size: .9rem; }
.footer-grid a:hover { color: white; }
.footer-bottom { display: flex; margin-top: 44px; padding-top: 22px; justify-content: space-between; gap: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }
.footer-bottom p { margin: 0; }

.profile-dialog { width: min(calc(100% - 32px), 560px); padding: 36px 30px 30px; border: 0; color: var(--ink); background: var(--cream); border-radius: var(--radius); box-shadow: 0 30px 100px rgba(30,20,27,.35); }
.profile-dialog::backdrop { background: rgba(40,28,36,.65); backdrop-filter: blur(5px); }
.profile-dialog .card-badge { margin-bottom: 24px; background: var(--rose); }
.profile-dialog h2 { font-size: 2.6rem; }
.dialog-close { position: absolute; top: 13px; right: 14px; display: grid; width: 40px; height: 40px; padding: 0; place-items: center; border: 0; color: var(--plum); background: var(--rose); border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.dialog-note { margin-top: 24px; padding: 16px; color: var(--plum); background: var(--rose); border-radius: var(--radius-sm); font-size: .86rem; }

/* Opret profil */
.create-page { background: linear-gradient(180deg, var(--rose) 0, var(--cream) 520px); }
.create-hero { padding: 64px 0 18px; }
.create-intro { max-width: 900px; margin-inline: auto; text-align: center; }
.create-intro h1 { margin: 22px auto 18px; font-size: clamp(2.7rem, 9vw, 5.4rem); }
.create-intro > p:last-child { max-width: 700px; margin-inline: auto; color: var(--muted); font-size: 1.08rem; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--plum-soft); font-size: .9rem; font-weight: 600; }
.create-grid { display: grid; gap: 24px; }
.form-card, .approval-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 55px rgba(66,47,61,.08); }
.form-card { padding: 28px 22px; }
.form-card-heading { display: flex; margin-bottom: 26px; align-items: center; gap: 15px; }
.form-card-heading > span { display: grid; width: 48px; height: 48px; min-width: 48px; place-items: center; color: var(--plum); background: var(--rose); border-radius: 50%; font-family: var(--font-display); }
.form-card-heading p, .form-card-heading h2 { margin-bottom: 0; }
.form-card-heading h2 { font-size: 2.2rem; }
.integration-notice { margin-bottom: 28px; background: #f3ebe2; }
.integration-notice p { margin: 0; font-size: .88rem; }
.automatic-type { display: flex; margin: -12px 0 28px; padding: 13px 15px; align-items: center; gap: 10px; color: var(--plum); background: rgba(238,223,227,.55); border-radius: var(--radius-sm); }
.automatic-type > span { display: grid; width: 26px; height: 26px; min-width: 26px; place-items: center; color: white; background: var(--plum-soft); border-radius: 50%; font-size: .75rem; }
.automatic-type p { margin: 0; font-size: .84rem; }
.profile-form { display: grid; min-width: 0; gap: 25px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 8px; color: var(--plum); font-weight: 600; }
.label-row { display: flex; margin-bottom: 8px; align-items: baseline; justify-content: space-between; gap: 16px; }
.label-row label { margin-bottom: 0; }
.label-row > span { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.label-row .required-label { color: var(--plum-soft); font-weight: 600; }
.field-counter.is-near-limit { color: #873747; font-weight: 600; }
.field input, .field textarea { width: 100%; padding: 15px 16px; border: 1px solid var(--line); color: var(--ink); background: var(--cream); border-radius: 13px; transition: border-color .2s, box-shadow .2s; }
.field input { height: 54px; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #978a91; }
.field input:focus, .field textarea:focus { border-color: var(--plum-soft); box-shadow: 0 0 0 4px rgba(104,68,88,.08); outline: none; }
.field [aria-invalid="true"] { border-color: #9b4050; }
.field-help { margin: 7px 2px 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.field small { display: block; min-height: 18px; margin: 3px 2px 0; color: #873747; font-size: .78rem; }
.profile-form .button-wide { min-height: 56px; margin-top: 2px; }
.form-privacy { margin: -5px 0 0; color: var(--muted); font-size: .75rem; text-align: center; }
.submit-result { padding: 17px; color: var(--plum); background: var(--rose); border-radius: var(--radius-sm); font-size: .9rem; }
.approval-card img { width: 100%; height: 290px; object-fit: cover; }
.approval-content { padding: 28px 24px; }
.approval-content h2 { font-size: 2.3rem; }
.approval-content > p:not(.eyebrow) { color: var(--muted); }
.steps { display: grid; margin: 28px 0 0; padding: 0; gap: 18px; list-style: none; }
.steps li { display: flex; align-items: flex-start; gap: 13px; }
.steps li > span { display: grid; width: 34px; height: 34px; min-width: 34px; place-items: center; color: var(--plum); background: var(--rose); border-radius: 50%; font-family: var(--font-display); }
.steps strong, .steps small { display: block; }
.steps strong { color: var(--plum); }
.steps small { color: var(--muted); }
.form-card, .approval-card, .create-grid { min-width: 0; }
.approval-content, .steps div { min-width: 0; overflow-wrap: anywhere; }
.compact-footer { margin-top: 40px; padding-top: 5px; }
.compact-footer .footer-bottom { margin-top: 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 600px) {
  .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-card { padding: 38px; }
}

@media (min-width: 820px) {
  .section { padding: 112px 0; }
  .menu-toggle { display: none; }
  .primary-nav { position: static; display: flex; padding: 0; align-items: center; flex-direction: row; gap: 28px; background: none; border: 0; box-shadow: none; }
  .primary-nav > a:not(.button) { position: relative; font-size: .9rem; }
  .primary-nav > a:not(.button)::after { position: absolute; right: 0; bottom: -5px; left: 0; height: 1px; background: var(--plum-soft); content: ""; transform: scaleX(0); transform-origin: right; transition: transform .25s; }
  .primary-nav > a:not(.button):hover::after { transform: scaleX(1); transform-origin: left; }
  .nav-wrap { min-height: 82px; }
  .hero { min-height: 630px; }
  .hero-inner { min-height: 630px; padding-block: 72px; }
  .hero-copy { margin-left: 3%; }
  .hero-caption { position: absolute; right: 0; bottom: 32px; display: block; margin: 0; padding-left: 42px; color: rgba(255,255,255,.76); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
  .hero-caption::before { position: absolute; top: 50%; left: 0; width: 30px; height: 1px; background: rgba(255,255,255,.6); content: ""; }
  .section-heading { grid-template-columns: 1fr .65fr; align-items: end; }
  .search-panel { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 18px; }
  .search-panel > label { margin: 0; }
  .search-meta { grid-column: 2; margin-top: -10px; }
  .provider-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; gap: clamp(55px, 8vw, 110px); }
  .about-image img { min-height: 610px; }
  .cta-card { grid-template-columns: 1fr auto; padding: 64px 70px; align-items: center; }
  .cta-card > div:not(.cta-decoration) { position: relative; }
  .footer-grid { grid-template-columns: 1.3fr .7fr 1fr; }
  .create-hero { padding-top: 88px; }
  .create-section { padding-top: 55px; }
  .create-grid { grid-template-columns: minmax(0, 1.12fr) minmax(320px, .68fr); align-items: start; gap: 30px; }
  .approval-card { position: sticky; top: 108px; }
}

@media (min-width: 1100px) {
  .hero-copy { margin-left: 6%; }
  .card-image-wrap { height: 255px; }
}

@media (max-width: 430px) {
  .hero { min-height: 535px; }
  .hero-inner { min-height: 535px; align-items: flex-end; padding-bottom: 42px; }
  .hero h1 { font-size: 3.15rem; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-overlay { background: linear-gradient(0deg, rgba(35,24,31,.95) 0%, rgba(43,28,38,.65) 62%, rgba(43,28,38,.2) 100%); }
  .hero-image { object-position: 67% center; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
