/* JORA Handel og Byg – "rolig og brugbar", farver fra logoet. Tokens og kontrasttal: DESIGNGUIDE.md */
:root {
  --bg: #FBF8F2;
  --soft: #F3EDE0;
  --ink: #2B2B2B;
  --ink2: #5C574E;
  --tint: #2B2B2B;
  --tint-d: #000;
  --deep: #2B2B2B;
  --sand: #E9DFC7;
  --accent: #8A3F1A;
  --accent-d: #6E3114;
  --edge: #8A8377;
  --line: rgba(43, 43, 43, .14);
  --err: #A13A2A;
  --r-lg: 20px; --r-md: 14px;
  --bar-h: 56px;
  --sec: clamp(4rem, 9vw, 8rem);
  --font: 'Lora', 'Times New Roman', Times, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); overflow-wrap: break-word; }
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tint); text-underline-offset: .18em; }
a:hover { color: var(--tint-d); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.01em; line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 7vw, 4rem); }
h2 { font-size: clamp(1.875rem, 4vw, 2.625rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.375rem); margin-bottom: .25em; }
p { margin: 0 0 1em; max-width: 68ch; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }
.lead { font-size: 1.125em; color: var(--ink2); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px; }
.skip:focus { top: 8px; color: #fff; }

/* Pladsholdere: skal ses, så ingen tror siden er færdig */
.mangler { background: #FFF1B8; color: #3D2F00; padding: 0 .25em; border-radius: 4px; font-size: .875rem; font-family: ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
.preview-note { max-width: none; margin: 0; padding: 6px 16px; background: #FFF1B8; color: #3D2F00; font-size: .875rem; text-align: center; }

/* Knapper */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 1.4em; border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background-color .12s, color .12s; text-align: center; }
.btn svg { flex: none; }
.btn-primary { background: var(--tint); color: #fff; }
.btn-primary:hover { background: var(--tint-d); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-d); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 1em; font-size: .9375rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Topbjælke */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: var(--bar-h); padding: 0 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; margin-right: auto; min-height: 44px; min-width: 44px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span { display: none; }
.nav { display: none; }
.lang { display: flex; gap: 2px; font-size: .9375rem; }
.lang a, .lang span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 8px; }
.lang span[aria-current] { font-weight: 700; text-decoration: underline; text-underline-offset: .3em; }
.bar-quote { display: none; }
.menu-btn { min-height: 44px; min-width: 44px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 999px; background: none; color: var(--ink); font: 600 .9375rem var(--font); cursor: pointer; }
.nav.open { display: flex; flex-direction: column; position: fixed; inset: var(--bar-h) 0 0 0; padding: 16px; background: var(--bg); z-index: 19; }
.nav.open a { padding: 14px 4px; font-size: 1.375rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
@media (min-width: 420px) { .brand span { display: inline; font-size: .9375rem; } }
@media (max-width: 419px) { .bar { gap: 6px; padding: 0 12px; } .bar-call span { display: none; } .bar-call { padding: 0 12px; } }
@media (min-width: 1000px) {
  .bar { padding: 0 max(16px, (100% - 1120px) / 2); gap: 20px; }
  .brand span { font-size: 1rem; }
  .nav, .nav.open { display: flex; position: static; flex-direction: row; gap: 4px; padding: 0; background: none; }
  .nav a, .nav.open a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 1rem; border: 0; color: var(--ink); text-decoration: none; }
  .nav a:hover { text-decoration: underline; }
  .bar-quote { display: inline-flex; }
  .menu-btn { display: none; }
  /* Orange én gang pr. skærm: topbjælkens knap skjules, mens hero-knappen ses */
  body.cta-visible .bar-quote { visibility: hidden; }
}

/* Hero og tillidslinje */
.hero { padding: 28px 0 0; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 1.25em; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
@media (min-width: 600px) { .hero-cta { flex-direction: row; flex-wrap: wrap; } }
@media (min-width: 900px) { .hero { padding: 96px 0 72px; } .hero-text { max-width: 620px; } }
.hero { border-bottom: 1px solid var(--line, rgba(43,43,43,.12)); padding-bottom: 32px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-grid:has(.photo-slot) { grid-template-columns: 1fr 1fr; gap: 56px; } }
.kicker { margin: 0 0 .9em; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.hero-contact { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0 0 20px; color: var(--ink2); }
.hero-contact a { color: var(--ink); font-weight: 600; }
.checks { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid rgba(43,43,43,.15); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .9375rem; }
.checks li::before { content: "✓"; margin-right: .5em; font-weight: 700; }
/* Tre kort: køb, salg, byg */
.cards { background: #fff; }
.cards-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.card h2 { font-size: 1.5rem; margin: 0 0 .4em; }
.card p { margin: 0 0 .8em; }
.more { font-weight: 700; color: var(--ink); }

/* Sektioner */
.sec { padding: var(--sec) 0; }
.sec.tight { padding-top: 0; }
.soft { background: var(--soft); }
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.row-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.note { font-size: .9375rem; }
.page-head { padding: 48px 0 32px; }
@media (min-width: 900px) { .page-head { padding: 96px 0 48px; } }

.photo-slot { aspect-ratio: 4 / 3; border: 2px dashed var(--edge); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center; color: var(--ink2); background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(43,43,43,.03) 12px 24px); }

.people { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.person { background: var(--soft); border-radius: var(--r-lg); padding: 20px; }
.person p { margin: 0; color: var(--ink2); }
.person a { display: inline-flex; align-items: center; min-height: 44px; }

.jan { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.soft .jan { background: var(--bg); }
.jan-name { font-size: 1.375rem; font-weight: 600; margin: 0; }
.jan-role { color: var(--ink2); }
.mail { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.facts { margin: 24px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }

/* Formularer */
.lead-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; }
.field legend { margin-bottom: 6px; padding: 0; }
input, textarea, select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--edge); border-radius: var(--r-md); background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--font); }
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.field[data-invalid] input, .field[data-invalid] textarea, [aria-invalid="true"] { border-color: var(--err); border-width: 2px; }
.field-error { color: var(--err); font-size: .9375rem; margin: 0; }
.field-error::before { content: "! "; font-weight: 700; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-hint { font-size: .875rem; color: var(--ink2); margin: -8px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--edge); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 400; }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; min-height: 44px; cursor: pointer; }
.check input { width: 24px; height: 24px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo-box { margin: 0; padding: 12px 16px; border-radius: var(--r-md); background: #FFF1B8; color: #3D2F00; font-size: .9375rem; }
.form-status { margin: 0; min-height: 1em; }
.form-status.err { color: var(--err); font-weight: 600; }
.form-status.ok { font-weight: 600; }
.lead-form .btn { justify-self: start; }

.prose p { max-width: 68ch; }

/* Footer og bundbjælke */
.foot { background: var(--deep); color: var(--sand); padding: 48px 0 calc(48px + 76px); }
@media (min-width: 1000px) { .foot { padding-bottom: 48px; } }
.foot a { color: var(--sand); display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; overflow-wrap: anywhere; }
.foot a:hover { color: #fff; }
.foot h2 { font-size: 1.125rem; margin-bottom: .5em; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot address { font-style: normal; margin-bottom: 1em; }
.foot-logo { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 16px; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.foot .lang { margin-top: 12px; }
.foot .lang span[aria-current] { color: #fff; }
.foot :focus-visible { outline-color: var(--sand); }

.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); transform: translateY(110%); visibility: hidden; transition: transform .2s, visibility .2s; }
.dock .btn { padding: 0 .8em; }
body.dock-on .dock { transform: none; visibility: visible; }
@media (min-width: 1000px) { .dock { display: none; } }
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }
.prose h2 { font-size: 1.375rem; margin: 1.5em 0 .4em; }

/* ---------- Før/efter ---------- */
.ba { margin: 0; }
.ba-frame { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r-lg); background: var(--sand); touch-action: pan-y; }
.ba-img, .ba-img img, .pair-img, .pair-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ba-img { position: absolute; inset: 0; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(43,43,43,.25); pointer-events: none; }
.ba-line::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font: 700 1rem/1 var(--font); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba-frame:has(.ba-range:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.ba-tag { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(43,43,43,.82); color: #fff; font-size: .875rem; pointer-events: none; }
.ba-tag-l { left: 12px; } .ba-tag-r { right: 12px; }
.ba figcaption, .pair figcaption { margin-top: 10px; color: var(--ink2); font-size: .9375rem; }
.pair { margin: 40px 0 0; max-width: 760px; }
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 900px) { .pair-grid { gap: 24px; } }
.pair-cell { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r-lg); background: var(--sand); }
@media (min-width: 900px) { .pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; } .pairs .pair { max-width: none; } }
/* Regel 5: Ring, hovedhandling og tillidslinje skal være på første skærm ved 360 × 640 */
@media (max-width: 599px) {
  .hero { padding-top: 18px; padding-bottom: 24px; }
  .hero h1 { font-size: 1.95rem; }
  .kicker { margin-bottom: .6em; }
  .hero .lead { margin-bottom: 1em; }
  .hero-cta { margin-bottom: 14px; }
  .hero-contact { margin-bottom: 10px; font-size: .9375rem; }
  .checks { padding-top: 10px; }
}
/* Maskinfoto fra Oskar 19.10.2026 til højre i toppen */
.hero-photo { margin: 0; }
.hero-photo img { display: block; width: 100%; height: auto; border-radius: 6px; }
.hero-photo figcaption { margin-top: 10px; font-size: .9375rem; color: var(--ink2); }
@media (min-width: 900px) {
  .hero-grid:has(.hero-photo) { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; }
  .hero-grid:has(.hero-photo) .hero-text { max-width: none; }
}
/* Billedskifter: billederne ligger oven på hinanden og toner over */
.slides { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: #e9dfc7; }
.slides .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slides .slide.is-on { opacity: 1; }
.slides .slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
@media (prefers-reduced-motion: reduce) { .slides .slide { transition: none; } }
