/* =========================================================
   RydPartner Pro — stylesheet
   Palette: dyb skovgrøn + frisk grøn + varm orange CTA
   ========================================================= */

:root {
  /* Farver */
  --green-900: #0F3D2E;
  --green-800: #14532D;
  --green-700: #166534;
  --green-600: #047857;
  --green-500: #059669;
  --green-300: #6EE7B7;
  --green-100: #D1FAE5;
  --green-50:  #ECFDF5;

  --accent:      #C2410C; /* knapper: hvid tekst = 5.9:1 */
  --accent-dark: #9A3412;
  --accent-tint: #FFF7ED;

  --ink:        #0F172A;
  --ink-soft:   #334155;
  --muted:      #475569;
  --line:       #E2E8F0;
  --line-green: #A7F3D0;
  --card:       #FFFFFF;
  --bg:         #FFFFFF;

  /* Typografi */
  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Spacing (8px-rytme) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  --shadow-sm: 0 1px 2px rgba(15, 61, 46, .06), 0 2px 8px rgba(15, 61, 46, .05);
  --shadow-md: 0 4px 12px rgba(15, 61, 46, .08), 0 12px 32px rgba(15, 61, 46, .07);
  --shadow-lg: 0 12px 28px rgba(15, 61, 46, .12), 0 28px 60px rgba(15, 61, 46, .10);

  --container: 1140px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Headerhøjder — bruges både til fast header, body-padding og mobilmenu */
  --topbar-h: 40px;
  --header-h: 78px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  /* Gør plads til den faste header */
  padding-top: calc(var(--topbar-h) + var(--header-h));
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  overflow-wrap: anywhere;
}

/* Ingen sidelæns udløb — hele siden holder sig inden for skærmbredden */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
h1, h2, h3, .price, .brand-text, .step-num, .stat-list strong {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }
p  { margin: 0 0 var(--sp-3); }
a  { color: var(--green-600); }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
strong { color: var(--ink); font-weight: 600; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
.container.narrow { max-width: 760px; }

/* Fokus — synligt i hele sitet */
:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 200;
  background: var(--green-900); color: #fff; padding: var(--sp-3) var(--sp-4);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); text-decoration: none; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

.ico { width: 20px; height: 20px; flex: none; }

/* ---------- Knapper ---------- */
.btn {
  --btn-bg: var(--green-600);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: 12px 22px;
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  color: #fff; background: var(--btn-bg);
  border: 2px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover  { background: var(--green-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-accent { --btn-bg: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); }

.btn-outline {
  --btn-bg: transparent;
  color: var(--green-700); border-color: var(--line-green); box-shadow: none;
}
.btn-outline:hover { background: var(--green-50); border-color: var(--green-500); }

.btn-ghost {
  --btn-bg: rgba(255, 255, 255, .12);
  color: #fff; border-color: rgba(255, 255, 255, .45); box-shadow: none;
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .22); border-color: #fff; }

.btn-lg    { min-height: 56px; padding: 14px 30px; font-size: 1.05rem; }
.btn-sm    { min-height: 44px; padding: 9px 18px; font-size: .95rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ----------
   Fast i toppen. Slogan-båndet bliver altid liggende; den hvide
   række glider op og forsvinder, når man scroller nedad. */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  /* Selve rammen må ikke opfange klik — kun de to bjælker gør */
  pointer-events: none;
}
.topbar, .header-main { pointer-events: auto; }

/* ---------- Slogan-bånd med rullende tekst ---------- */
.topbar {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  height: var(--topbar-h);
  background: var(--green-900); color: rgba(255, 255, 255, .85);
  overflow: hidden;
}
.ticker { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ticker-track {
  display: flex; width: max-content;
  animation: ticker-glid 34s linear infinite;
}
.ticker-group { display: flex; align-items: center; gap: var(--sp-4); padding-right: var(--sp-4); }
.ticker-item {
  font-size: .88rem; font-weight: 500; letter-spacing: .02em;
  color: var(--green-300); white-space: nowrap;
}
.ticker-item.slogan {
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: #fff;
}
.ticker-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(167, 243, 208, .5); flex: none; }

@keyframes ticker-glid {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Pause ved museover, tastaturfokus eller på knappen */
.topbar:hover .ticker-track,
.topbar:focus-within .ticker-track,
.topbar.paused .ticker-track { animation-play-state: paused; }

.ticker-pause {
  position: relative;
  display: grid; place-items: center; width: 30px; height: 30px; flex: none;
  margin-right: var(--sp-3); padding: 0;
  color: var(--green-300); background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(167, 243, 208, .28); border-radius: 50%;
  cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease);
}
.ticker-pause:hover { background: rgba(255, 255, 255, .2); color: #fff; }
/* Trykfeltet er 44x44, selvom knappen ser mindre ud — bjælken er lav */
.ticker-pause::before { content: ''; position: absolute; inset: -7px -8px; }
.ticker-pause svg { width: 13px; height: 13px; }
.ticker-pause .ico-play { display: none; }
.ticker-pause[aria-pressed="true"] .ico-pause { display: none; }
.ticker-pause[aria-pressed="true"] .ico-play { display: block; }

/* ---------- Hvid headerrække ---------- */
.header-main {
  position: relative; z-index: 1;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: transform .32s var(--ease), opacity .28s var(--ease), box-shadow .2s var(--ease);
}
.site-header.scrolled .header-main { box-shadow: var(--shadow-sm); }
/* Glider op bag slogan-båndet */
.site-header.skjult .header-main {
  transform: translateY(calc(-100% - var(--topbar-h)));
  opacity: 0;
  pointer-events: none;
}

.header-inner { display: flex; align-items: center; gap: var(--sp-4); height: var(--header-h); }

.brand { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img {
  width: auto; height: 46px; display: block;
  transition: transform .2s var(--ease);
}
.brand:hover img { transform: scale(1.03); }

/* ---------- "Kontakt os" ----------
   Bruger .btn .btn-accent, så den er magen til "Send foto på SMS".
   Her justeres kun ikonet og linjeombrydningen. */
.call-btn-ico { display: flex; flex: none; opacity: .92; }
.call-btn-ico svg { width: 17px; height: 17px; }
.call-btn-text { white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: var(--sp-5); }
.site-nav ul { display: flex; align-items: center; gap: var(--sp-5); }
/* Kun menupunkterne — ikke "Kontakt os"-knappen ved siden af */
.site-nav ul a {
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .98rem;
  padding: 8px 0; border-bottom: 2px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.site-nav ul a:hover { color: var(--green-700); border-bottom-color: var(--green-500); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  background: var(--green-50); border: 1px solid var(--line-green);
  border-radius: 12px; cursor: pointer; color: var(--green-900);
}
.nav-toggle-bars { display: grid; gap: 5px; width: 20px; }
.nav-toggle-bars span {
  display: block; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(var(--sp-7), 7vw, var(--sp-9)) 0 clamp(var(--sp-8), 9vw, 120px);
  background:
    radial-gradient(1100px 460px at 88% -8%, rgba(110, 231, 183, .22), transparent 62%),
    linear-gradient(168deg, var(--green-900) 0%, var(--green-800) 55%, var(--green-700) 100%);
  color: rgba(255, 255, 255, .9);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 64px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .06));
  pointer-events: none;
}
.hero-grid { display: grid; gap: clamp(var(--sp-6), 5vw, var(--sp-8)); align-items: center; }
.hero h1 { color: #fff; margin-bottom: var(--sp-4); text-wrap: balance; }
.hero .lead { font-size: clamp(1.03rem, 1.6vw, 1.18rem); color: rgba(255, 255, 255, .88); max-width: 56ch; }
.hero .lead strong { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 7px 15px; margin-bottom: var(--sp-4);
  font-size: .85rem; font-weight: 600; letter-spacing: .02em;
  color: var(--green-100); background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(167, 243, 208, .35); border-radius: 999px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-5) 0 var(--sp-5); }

.hero-trust { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); font-size: .92rem; color: rgba(255, 255, 255, .78); }
.hero-trust li { display: flex; align-items: center; gap: var(--sp-2); }
.hero-trust li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-300); flex: none;
}

.hero-card {
  background: var(--card); border-radius: var(--radius-lg);
  padding: clamp(var(--sp-5), 3vw, var(--sp-6));
  box-shadow: var(--shadow-lg);
}
.hero-card > h2 {
  font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: var(--green-600); margin-bottom: var(--sp-5);
}
.incl-list { display: grid; gap: var(--sp-5); }
.incl-list li { display: flex; gap: var(--sp-4); align-items: flex-start; }
.incl-list h3 { margin-bottom: 2px; }
.incl-list p { margin: 0; font-size: .95rem; color: var(--muted); }
.incl-ico {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  color: var(--green-700); background: var(--green-50);
  border: 1px solid var(--line-green); border-radius: 14px;
}
.incl-ico svg { width: 23px; height: 23px; }

/* ---------- Sektioner ---------- */
.section { padding: clamp(var(--sp-8), 8vw, var(--sp-9)) 0; }
.section-tint { background: var(--green-50); border-block: 1px solid var(--green-100); }
.section-dark {
  background: linear-gradient(160deg, var(--green-900), var(--green-800));
  color: rgba(255, 255, 255, .86);
}
.section-dark h2 { color: #fff; }

.section-head { max-width: 62ch; margin-bottom: clamp(var(--sp-6), 5vw, var(--sp-7)); }
.section-head h2 { margin-bottom: var(--sp-3); text-wrap: balance; }
.section-sub { font-size: 1.05rem; color: var(--muted); margin: 0; }
.kicker {
  font-size: .8rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: var(--sp-2);
}
.kicker.light { color: var(--green-300); }
.lead.light { color: rgba(255, 255, 255, .92); font-size: 1.1rem; }
.light-muted { color: rgba(255, 255, 255, .74); }

/* ---------- Priskort ---------- */
.price-grid { display: grid; gap: var(--sp-5); }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--sp-6) var(--sp-5) var(--sp-5);
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-green); }
.price-card.featured { border: 2px solid var(--green-500); box-shadow: var(--shadow-md); }
.price-card h3 { font-size: 1.32rem; color: var(--green-800); }
.price-tag { font-size: .92rem; color: var(--muted); margin: var(--sp-1) 0 var(--sp-5); }

.badge {
  position: absolute; top: -14px; left: var(--sp-5);
  padding: 6px 15px; border-radius: 999px;
  font-family: var(--font-head); font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--accent); margin: 0;
}

.price {
  font-size: clamp(1.7rem, 3vw, 2.05rem); font-weight: 800;
  font-variant-numeric: tabular-nums; margin: 0;
}
.price span { font-size: .95rem; font-weight: 600; color: var(--muted); }
.price-ex { font-size: .9rem; color: var(--muted); margin: var(--sp-1) 0 var(--sp-5); font-variant-numeric: tabular-nums; }

.check-list { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-6); flex: 1; }
.check-list li { position: relative; padding-left: 30px; font-size: .97rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Ekstra tid */
.extra-time {
  display: grid; gap: var(--sp-4); align-items: center;
  margin-top: var(--sp-5); padding: var(--sp-5);
  background: var(--green-50); border: 1px solid var(--line-green); border-radius: var(--radius);
}
.extra-time h3 { color: var(--green-800); margin-bottom: var(--sp-2); }
.extra-time p { margin: 0; color: var(--muted); font-size: .97rem; }
.extra-time .price { color: var(--green-800); }
.extra-time .price small { font-size: .85rem; font-weight: 500; color: var(--muted); }

/* ---------- Vigtig besked (pakker = skabelon) ---------- */
.notice {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  max-width: 80ch; margin: 0 0 var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  background: var(--accent-tint); border: 1px solid #FED7AA;
  border-left: 5px solid var(--accent); border-radius: var(--radius-sm);
  font-size: .98rem; color: #7C2D12;
}
.notice strong { color: #7C2D12; }
.notice-ico { color: var(--accent); flex: none; margin-top: 2px; }
.notice-ico svg { width: 22px; height: 22px; }

/* ---------- Tillægskort ---------- */
.addon-grid { display: grid; gap: var(--sp-5); }
.addon-card {
  position: relative; overflow: hidden;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  background: #fff; border: 1px solid var(--line-green);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.addon-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--green-500), var(--green-300));
}
.addon-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.addon-card .addon-ico {
  display: grid; place-items: center; width: 48px; height: 48px;
  margin-bottom: var(--sp-4);
  color: var(--green-700); background: var(--green-50);
  border: 1px solid var(--line-green); border-radius: 14px;
}
.addon-card .addon-ico svg { width: 24px; height: 24px; }
.addon-price {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 800;
  color: var(--green-800); font-variant-numeric: tabular-nums; margin: 0 0 var(--sp-1);
}
.addon-price span { font-family: var(--font-body); font-size: .9rem; font-weight: 600; color: var(--muted); }
.addon-card h3 { margin-bottom: var(--sp-2); color: var(--ink); }
.addon-desc { margin: 0; font-size: .96rem; color: var(--muted); }

/* ---------- Dækningsområde / kort ---------- */
.map-grid { display: grid; gap: var(--sp-5); align-items: start; }

.map-frame {
  position: relative; overflow: hidden; margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-green);
  box-shadow: var(--shadow-md);
  background: var(--green-50);
}

/* ---------- Selve kortvisningen ---------- */
.kort {
  position: absolute; inset: 0; overflow: hidden;
  background: #E8E4DE;             /* samme tone som kortfelterne, mens de hentes */
  cursor: grab; touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.kort.traekker { cursor: grabbing; }
.kort[data-fri-zoom] { touch-action: none; }

.kort-felter { position: absolute; inset: 0; }
.kort-felter img {
  position: absolute; left: 0; top: 0; width: 256px; height: 256px;
  max-width: none;                 /* må ikke rammes af den globale img-regel */
  pointer-events: none; -webkit-user-drag: none;
}

/* Områdelinjen tegnes oven på kortfelterne */
.map-zone { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-zone .zone-flade { fill: rgba(220, 38, 38, .13); }
.map-zone .zone-skygge { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 9; stroke-linejoin: round; }
.map-zone .zone-linje {
  fill: none; stroke: #DC2626; stroke-width: 4;
  stroke-linejoin: round; stroke-linecap: round;
}
.map-zone .zone-naal-ring { fill: #fff; stroke: #0F3D2E; stroke-width: 3; }
.map-zone .zone-naal-prik { fill: #0F3D2E; }

/* Zoomknapper */
.kort-knapper {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  display: grid; gap: 6px;
}
.kort-knapper button {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  color: var(--green-900); background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line-green); border-radius: 12px;
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: background-color .15s var(--ease), transform .15s var(--ease);
}
.kort-knapper button:hover { background: #fff; transform: translateY(-1px); }
.kort-knapper button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.kort-knapper svg { width: 19px; height: 19px; }

.kort-hint, .kort-kredit {
  position: absolute; z-index: 3; margin: 0;
  padding: 4px 10px; border-radius: 999px;
  font-size: .72rem; color: var(--ink-soft);
  background: rgba(255, 255, 255, .88);
}
.kort-hint { left: 12px; top: 12px; opacity: 0; transition: opacity .25s var(--ease); }
.kort-hint.vis { opacity: 1; }
.kort-hint kbd {
  font-family: var(--font-body); font-size: .72rem; font-weight: 700;
  padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; background: #fff;
}
.kort-kredit { right: 12px; bottom: 12px; }
.kort-kredit a { color: var(--green-700); }
.kort-uden-js { position: absolute; inset: auto 16px 16px; margin: 0; font-size: .9rem; }

/* Forstør-knap */
.map-expand {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  font-family: var(--font-head); font-size: .92rem; font-weight: 700;
  color: var(--green-900); background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line-green); border-radius: 999px;
  box-shadow: var(--shadow-md); cursor: pointer;
  transition: background-color .16s var(--ease), transform .16s var(--ease);
}
.map-expand:hover { background: #fff; transform: translateY(-2px); }
.map-expand svg { width: 17px; height: 17px; }

.map-note { margin: var(--sp-3) 0 0; font-size: .89rem; color: var(--muted); }
.map-note a { color: var(--green-700); }

/* ---------- Kortet i stor visning ---------- */
.map-dialog {
  width: min(94vw, 1040px); height: min(92dvh, 860px);
  max-width: 94vw; max-height: 92dvh;
  padding: 0; overflow: hidden;
  background: #fff; border: 0; border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(15, 61, 46, .4);
}
/* En lukket <dialog> skal blive ved med at være skjult */
.map-dialog[open] { display: flex; flex-direction: column; }
.map-dialog::backdrop { background: rgba(15, 61, 46, .72); backdrop-filter: blur(3px); }
.map-dialog-top {
  display: flex; align-items: center; gap: var(--sp-4); flex: none;
  padding: var(--sp-4) var(--sp-5);
  background: var(--green-900); color: rgba(255, 255, 255, .88);
}
.map-dialog-top p { margin: 0; font-size: .95rem; }
.map-dialog-top strong { color: #fff; }
.map-dialog-luk {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  margin-left: auto; padding: 0; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(167, 243, 208, .3);
  border-radius: 50%; cursor: pointer;
  transition: background-color .16s var(--ease);
}
.map-dialog-luk:hover { background: rgba(255, 255, 255, .26); }
.map-dialog-luk svg { width: 19px; height: 19px; }
.map-dialog-kort { position: relative; flex: 1; min-height: 0; }

/* ---------- Adressetjek ---------- */
.zone-side { display: grid; gap: var(--sp-5); }

.adressetjek {
  padding: var(--sp-6) var(--sp-5);
  background: #fff; border: 2px solid var(--green-500);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.adressetjek h3 { margin-bottom: var(--sp-2); font-size: 1.2rem; color: var(--green-800); }
.adressetjek-intro { font-size: .96rem; color: var(--muted); margin-bottom: var(--sp-5); }
.adressetjek-felt { position: relative; }
.adressetjek-felt > label {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: .95rem; color: var(--ink); margin-bottom: var(--sp-2);
}
.adressetjek-input { position: relative; display: flex; align-items: center; }
.adressetjek-input .ico {
  position: absolute; left: 14px; width: 19px; height: 19px;
  color: var(--muted); pointer-events: none;
}
.adressetjek-input input {
  width: 100%; min-height: 52px; padding: 12px 14px 12px 44px;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.adressetjek-input input:hover { border-color: var(--green-300); }
.adressetjek-input input:focus {
  border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(5, 150, 105, .14); outline: none;
}

.adresse-forslag {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
  max-height: 260px; overflow-y: auto; margin-top: 6px;
  background: #fff; border: 1px solid var(--line-green);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
}
.adresse-forslag li {
  padding: 12px 16px; font-size: .95rem; cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.adresse-forslag li:last-child { border-bottom: 0; }
.adresse-forslag li:hover,
.adresse-forslag li[aria-selected="true"] { background: var(--green-50); color: var(--green-800); }

.adresse-svar { margin-top: var(--sp-4); }
.adresse-svar:empty { display: none; }
.svar-boks {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-4); border-radius: var(--radius-sm);
  font-size: .96rem;
}
.svar-boks svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.svar-boks strong { display: block; font-family: var(--font-head); font-size: 1.02rem; margin-bottom: 2px; }
.svar-boks.inde { color: #065F46; background: var(--green-50); border: 1px solid var(--line-green); }
.svar-boks.inde strong { color: #065F46; }
.svar-boks.ude { color: #7C2D12; background: var(--accent-tint); border: 1px solid #FED7AA; }
.svar-boks.ude strong { color: #7C2D12; }
.svar-boks.fejl { color: #991B1B; background: #FEF2F2; border: 1px solid #FECACA; }
.svar-boks.fejl strong { color: #991B1B; }

.zone-card {
  padding: var(--sp-6) var(--sp-5);
  background: #fff; border: 2px solid var(--accent);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.zone-ico {
  display: grid; place-items: center; width: 48px; height: 48px;
  margin-bottom: var(--sp-4);
  color: var(--accent); background: var(--accent-tint);
  border: 1px solid #FED7AA; border-radius: 14px;
}
.zone-ico svg { width: 25px; height: 25px; }
.zone-price {
  font-family: var(--font-head); font-size: 1.9rem; font-weight: 800;
  color: var(--accent-dark); font-variant-numeric: tabular-nums; margin: 0 0 var(--sp-1);
}
.zone-price span { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--muted); }
.zone-card h3 { margin-bottom: var(--sp-3); font-size: 1.2rem; }
.zone-desc { font-size: .97rem; color: var(--muted); }
.zone-list { display: grid; gap: var(--sp-2); margin: var(--sp-4) 0 var(--sp-5); }
.zone-list li { position: relative; padding-left: 28px; font-size: .95rem; }
.zone-list li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2410C' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------- Prisberegner ---------- */
.calc {
  background: #fff; border: 1px solid var(--line-green);
  border-radius: var(--radius-lg); padding: clamp(var(--sp-5), 4vw, var(--sp-6));
  box-shadow: var(--shadow-md);
}
.calc-row { display: grid; gap: var(--sp-4); }
.calc-field { margin-bottom: var(--sp-5); }
.calc-field > label, .field > label {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: .97rem; color: var(--ink); margin-bottom: var(--sp-2);
}
.calc select, .calc input[type="number"], .field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.calc select:hover, .calc input:hover, .field input:hover, .field textarea:hover { border-color: var(--green-300); }
.calc select:focus, .calc input:focus, .field input:focus, .field textarea:focus {
  border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(5, 150, 105, .14); outline: none;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.hint { font-size: .87rem; color: var(--muted); margin: var(--sp-2) 0 0; }

.calc-check label {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 500; color: var(--ink-soft);
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.calc-check label:hover { border-color: var(--green-300); background: var(--green-50); }
.calc-check input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--green-600); cursor: pointer; flex: none; }

.calc-result {
  margin: var(--sp-5) 0; padding: var(--sp-5);
  background: var(--green-50); border: 1px solid var(--line-green); border-radius: var(--radius);
}
.calc-total-label {
  font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: var(--sp-1);
}
.calc-total {
  font-family: var(--font-head); font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 800;
  color: var(--green-900); font-variant-numeric: tabular-nums; margin: 0;
}
.calc-total span { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--muted); }
.calc-ex { font-size: .92rem; color: var(--muted); font-variant-numeric: tabular-nums; margin: var(--sp-1) 0 0; }
.calc-lines { display: grid; gap: 6px; margin-top: var(--sp-4); font-size: .93rem; }
.calc-lines li { display: flex; justify-content: space-between; gap: var(--sp-4); color: var(--muted); }
.calc-lines li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-lines li:first-child { padding-top: var(--sp-3); border-top: 1px solid var(--line-green); }
.calc-note { font-size: .9rem; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: var(--sp-5); counter-reset: step; }
.step {
  position: relative; padding: var(--sp-6) var(--sp-5) var(--sp-5);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  position: absolute; top: -19px; left: var(--sp-5);
  display: grid; place-items: center; width: 44px; height: 44px;
  font-size: 1.18rem; font-weight: 800; color: #fff;
  background: var(--green-600); border: 4px solid #fff; border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.step h3 { margin-bottom: var(--sp-2); color: var(--green-800); }
.step p { margin: 0; font-size: .97rem; color: var(--muted); }

/* ---------- Om os ---------- */
.about-grid { display: grid; gap: clamp(var(--sp-6), 5vw, var(--sp-8)); align-items: center; }
.about-cta { margin-top: var(--sp-5); }
.stat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.stat-list li {
  padding: var(--sp-5) var(--sp-4);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(167, 243, 208, .28);
  border-radius: var(--radius);
}
.stat-list strong { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: var(--sp-1); }
.stat-list span { font-size: .9rem; color: rgba(255, 255, 255, .76); line-height: 1.45; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: var(--sp-5); align-items: start; }
.contact-direct { display: grid; gap: var(--sp-3); }
.contact-card {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5); min-height: 84px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink-soft); box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--green-500); box-shadow: var(--shadow-md); }
.contact-card strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); }
.contact-card span span { font-size: .95rem; color: var(--muted); }
.contact-ico {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none;
  color: #fff; background: var(--green-600); border-radius: 15px;
}
.contact-ico svg { width: 25px; height: 25px; }
.contact-note { font-size: .92rem; color: var(--muted); margin-top: var(--sp-2); }

.contact-form {
  background: #fff; border: 1px solid var(--line-green);
  border-radius: var(--radius-lg); padding: clamp(var(--sp-5), 4vw, var(--sp-6));
  box-shadow: var(--shadow-md);
}
.contact-form h3 { margin-bottom: var(--sp-5); font-size: 1.25rem; color: var(--green-800); }
.field { margin-bottom: var(--sp-4); }
.field > label span { color: var(--accent); }
.err { font-size: .88rem; color: #B91C1C; font-weight: 500; margin: var(--sp-2) 0 0; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B91C1C; }
.form-note { font-size: .87rem; color: var(--muted); text-align: center; margin: var(--sp-3) 0 0; }

/* Honeypot — skjult for mennesker, synlig for robotter */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Status efter afsendelse */
.form-status { margin: var(--sp-4) 0 0; padding: 0; font-size: .95rem; font-weight: 500; text-align: center; }
.form-status:empty { display: none; }
.form-status.ok {
  padding: var(--sp-3) var(--sp-4); color: #065F46;
  background: var(--green-50); border: 1px solid var(--line-green); border-radius: var(--radius-sm);
}
.form-status.fejl {
  padding: var(--sp-3) var(--sp-4); color: #991B1B;
  background: #FEF2F2; border: 1px solid #FECACA; border-radius: var(--radius-sm);
}
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255, 255, 255, .74); padding: var(--sp-8) 0 var(--sp-5); font-size: .95rem; }
.footer-inner { display: grid; gap: var(--sp-6); }
.footer-logo {
  width: auto; height: 52px; display: block; margin-bottom: var(--sp-3);
  /* Logoet er mørkegrønt — en lys plade holder det læsbart på mørk baggrund */
  padding: 8px 14px; background: #fff; border-radius: 12px;
}
.footer-slogan { font-family: var(--font-head); font-weight: 700; color: #fff; margin-bottom: var(--sp-2); }
.site-footer h2 { font-size: .82rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--green-300); margin-bottom: var(--sp-3); }
.site-footer ul { display: grid; gap: var(--sp-2); }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3);
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .87rem; color: rgba(255, 255, 255, .6);
}
.footer-bottom p { margin: 0; }

/* ---------- Scroll-reveal ----------
   Kun aktiv når JS kører — ellers er alt synligt fra start. */
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }

/* =========================================================
   Breakpoints
   ========================================================= */
@media (max-width: 900px) {
  :root { --topbar-h: 38px; --header-h: 66px; }
  .brand img { height: 36px; }
  .site-nav {
    position: fixed; inset: calc(var(--topbar-h) + var(--header-h)) 0 auto 0;
    max-height: calc(100dvh - var(--topbar-h) - var(--header-h)); overflow-y: auto;
    display: none; flex-direction: column; align-items: stretch; gap: var(--sp-4);
    padding: var(--sp-5); background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a:hover { border-bottom-color: var(--line); }
  .nav-toggle { display: inline-flex; }
  .call-btn { justify-content: center; }
}

@media (min-width: 620px) {
  /* align-items: end holder afkrydsningsfeltet på linje med nabofeltets input */
  .calc-row { grid-template-columns: 1fr 1fr; align-items: end; }
  .extra-time { grid-template-columns: 1fr auto; }
  .extra-time .price { text-align: right; }
  .addon-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6) var(--sp-5); }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .addon-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: 1.1fr .9fr; }
  .map-grid { grid-template-columns: 1.25fr .75fr; }
  .contact-grid { grid-template-columns: .85fr 1.15fr; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---------- Reduceret bevægelse ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .price-card:hover, .step:hover, .contact-card:hover { transform: none; }
  /* Teksten i toppen står stille */
  .ticker-track { animation: none; }
  .ticker { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .hero-actions, .nav-toggle, .calc, .contact-form, .site-footer { display: none; }
  .hero { background: none; color: #000; }
  .hero h1, .hero .lead { color: #000; }
  .js .reveal { opacity: 1; transform: none; }
  .price-card, .step { break-inside: avoid; box-shadow: none; }
}

/* ---------- Telefontider ---------- */
.tider {
  margin-top: var(--sp-4); padding: var(--sp-5);
  background: #fff; border: 1px solid var(--line-green);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.tider h3 {
  font-size: .82rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--green-700); margin-bottom: var(--sp-3);
}
.tid-status {
  display: flex; align-items: center; gap: var(--sp-2);
  margin: 0 0 var(--sp-4); font-size: .97rem; font-weight: 600;
}
.tid-status.aaben { color: #065F46; }
.tid-status.lukket { color: var(--muted); }
.tid-prik { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--muted); }
.tid-status.aaben .tid-prik {
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, .18);
}

.tid-liste { display: grid; gap: 2px; }
.tid-liste li {
  display: flex; justify-content: space-between; gap: var(--sp-4);
  padding: 8px 10px; border-radius: 8px;
  font-size: .95rem; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.tid-liste li.i-dag {
  background: var(--green-50); color: var(--green-800); font-weight: 600;
}
.tid-lukket { color: var(--muted); }
.tid-note { margin: var(--sp-4) 0 0; font-size: .87rem; color: var(--muted); }

/* ---------- Cookiebjælke ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  padding: var(--sp-4) var(--sp-5);
  background: #fff;
  border-top: 3px solid var(--green-600);
  box-shadow: 0 -8px 32px rgba(15, 61, 46, .16);
}
.cookie-banner[hidden] { display: none; }
.cookie-indhold {
  display: grid; gap: var(--sp-4); align-items: center;
  width: 100%; max-width: var(--container); margin-inline: auto;
}
.cookie-indhold h2 {
  font-size: 1.05rem; font-weight: 700; color: var(--green-800);
  margin-bottom: var(--sp-2);
}
.cookie-indhold p { margin: 0; font-size: .93rem; color: var(--muted); }
.cookie-knapper { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.cookie-knapper .btn { flex: 1 1 auto; min-height: 46px; white-space: nowrap; }

@media (min-width: 760px) {
  .cookie-indhold { grid-template-columns: 1fr auto; }
  .cookie-knapper .btn { flex: 0 0 auto; }
}

/* Knap der ligner et link — bruges i footeren */
.footer-link {
  padding: 0; margin-left: 4px;
  font: inherit; color: rgba(255, 255, 255, .82);
  background: none; border: 0; text-decoration: underline;
  cursor: pointer;
}
.footer-link:hover { color: #fff; }

/* ---------- Cookiesiden ---------- */
.tekstside { padding-top: var(--sp-8); padding-bottom: var(--sp-8); }
.tekstside h1 { margin-bottom: var(--sp-4); }
.tekstside h2 { font-size: 1.3rem; margin: var(--sp-7) 0 var(--sp-3); }
.tekstside p, .tekstside li { color: var(--ink-soft); }
.tekstside ul:not(.tabel) { display: grid; gap: var(--sp-2); margin: var(--sp-3) 0; }
.tekstside ul:not(.tabel) li { position: relative; padding-left: 20px; }
.tekstside ul:not(.tabel) li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--green-500);
}
.cookie-tabel { width: 100%; border-collapse: collapse; margin: var(--sp-4) 0; font-size: .95rem; }
.cookie-tabel th, .cookie-tabel td {
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cookie-tabel th { background: var(--green-50); color: var(--green-800); font-weight: 700; white-space: nowrap; }
.cookie-tabel td code {
  font-size: .88rem; padding: 2px 6px; border-radius: 5px;
  background: var(--green-50); color: var(--green-800);
}
.cookie-valg {
  margin: var(--sp-5) 0; padding: var(--sp-5);
  background: var(--green-50); border: 1px solid var(--line-green); border-radius: var(--radius);
}
.cookie-valg p { margin-bottom: var(--sp-4); }
.cookie-valg .knapper { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
