@font-face { font-family: "Baloo Paaji 2"; font-weight: 700; font-display: swap; src: url(../fonts/baloo-700.ttf) format("truetype"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url(../fonts/opensans-400.ttf) format("truetype"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url(../fonts/opensans-600.ttf) format("truetype"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url(../fonts/opensans-700.ttf) format("truetype"); }
/* Kaffen & Krummen — udkast. Farver fra kundens egen side (#fffef2) og kaffecyklens brune kasse. */
:root {
  --bg: #fffef2;
  --surface: #ffffff;
  --sand: #f5efdf;
  --ink: #2b1d16;
  --muted: #65574c;
  --accent: #6e3b2c;
  --accent-ink: #ffffff;
  --line: #e6dcc6;
  --ok: #2f6b3a;
  --busy: #9b2c2c;
  --radius: 16px;
  --shadow: 0 10px 30px -18px rgb(43 29 22 / .45);
  --head: "Baloo Paaji 2", "Baloo 2", system-ui, sans-serif;
  --body: "Open Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 16px; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }
p { margin: 0 0 16px; max-width: 65ch; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.udkast { background: var(--ink); color: #f5efdf; font-size: 14px; text-align: center; padding: 8px 16px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgb(255 254 242 / .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 1.25rem; }
.brand img { width: 44px; height: 48px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 0; }
.nav a:not(.btn):hover { color: var(--accent); }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

/* Knapper */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: 700 16px/1.2 var(--body); text-decoration: none; cursor: pointer; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent); color: #fff; }
.btn.small { min-height: 44px; padding: 8px 18px; font-size: 15px; }

/* Hero */
.hero { padding: 48px 0 64px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } .hero { padding: 72px 0 96px; } }
.kicker { font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
@media (min-width: 900px) { .hero-photo img { aspect-ratio: 1 / 1.05; } }
.hero-tag { position: absolute; left: 16px; bottom: 16px; right: 16px; background: rgb(255 254 242 / .95); border-radius: 14px; padding: 12px 16px; font-size: 15px; display: flex; gap: 12px; align-items: center; }
.hero-tag strong { font-family: var(--head); font-size: 1.1rem; }
.menu-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.menu-chips li { background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 600; }

/* Sektioner */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.head { margin-bottom: 40px; max-width: 720px; }
.alt { background: var(--sand); }
.dark { background: var(--ink); color: #f5efdf; }
.dark .kicker { color: #e2b98f; }
.dark p { color: #e9e0cf; }

.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.four { grid-template-columns: repeat(4, 1fr); } .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card img.ikon { width: 48px; height: 48px; margin-bottom: 16px; }
.card p { margin: 0; color: var(--muted); }
.photo-card { padding: 0; overflow: hidden; }
.photo-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.photo-card div { padding: 20px 24px 24px; }
.photo-card .label { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--accent); margin-bottom: 4px; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split img { border-radius: 20px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Beregner */
.calc { display: grid; gap: 24px; }
@media (min-width: 1000px) { .calc { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .panel { padding: 32px; } }
.field { margin-bottom: 24px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend, .flabel { display: block; font-weight: 700; margin-bottom: 8px; padding: 0; }
.hint { font-size: 14px; color: var(--muted); margin-top: 4px; }
select, input[type=text], input[type=email], input[type=tel], input[type=number], textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #cfc3a8; border-radius: 12px; background: #fff; font: 400 16px/1.4 var(--body); color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.row2 { display: grid; gap: 16px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.range-row { display: flex; align-items: center; gap: 16px; }
.range-row input[type=range] { flex: 1; accent-color: var(--accent); min-height: 44px; }
.range-row output { font-family: var(--head); font-size: 1.5rem; min-width: 4ch; text-align: right; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid #cfc3a8; border-radius: 999px; overflow: hidden; background: #fff; }
.stepper button { width: 48px; height: 48px; border: 0; background: transparent; font-size: 22px; cursor: pointer; color: var(--accent); }
.stepper button:hover { background: var(--sand); }
.stepper button:disabled { color: #bbb; cursor: not-allowed; }
.stepper output { min-width: 96px; text-align: center; font-weight: 700; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; cursor: pointer; min-height: 44px; padding-top: 4px; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); margin-top: 2px; flex: none; }

/* Kalender */
.cal { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fffdf6; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head strong { font-family: var(--head); font-size: 1.15rem; text-transform: capitalize; }
.cal-nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; color: var(--accent); }
.cal-nav:disabled { opacity: .35; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .dow { font-size: 13px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.day { aspect-ratio: 1; min-height: 40px; border-radius: 10px; border: 1px solid transparent; background: #fff; font: 600 15px var(--body); color: var(--ink); cursor: pointer; position: relative; }
.day:hover:not(:disabled) { border-color: var(--accent); }
.day:disabled { color: #b9ae9c; background: transparent; cursor: not-allowed; }
.day.busy { background: #f6e3df; color: var(--busy); text-decoration: line-through; }
.day.free::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--ok); }
.day.sel { background: var(--accent); color: #fff; border-color: var(--accent); text-decoration: none; }
.day.sel::after { background: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.legend .l-free::before { background: var(--ok); }
.legend .l-busy::before { background: var(--busy); }
.datestatus { margin-top: 12px; font-weight: 600; min-height: 1.6em; }
.datestatus.ok { color: var(--ok); }
.datestatus.no { color: var(--busy); }

/* Resultat */
.result { position: relative; }
@media (min-width: 1000px) { .result { position: sticky; top: 92px; } }
.result .panel { background: var(--ink); color: #f5efdf; border-color: var(--ink); }
.result h3 { color: #fff; }
.eks { display: inline-block; background: #e2b98f; color: var(--ink); font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; }
.span-big { font-family: var(--head); font-size: clamp(2.1rem, 5vw, 2.9rem); line-height: 1.05; color: #fff; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.result .sub { color: #d9cdb8; font-size: 15px; }
.summary { list-style: none; padding: 0; margin: 20px 0; border-top: 1px solid rgb(255 255 255 / .15); }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgb(255 255 255 / .15); font-size: 15px; }
.summary li span:first-child { color: #cbbfa9; }
.summary li span:last-child { text-align: right; font-weight: 600; }
.result .btn { width: 100%; background: #e2b98f; border-color: #e2b98f; color: var(--ink); }
.result .btn:hover { background: #fff; border-color: #fff; }
.dialog-note { margin: 16px 0 0; font-size: 15px; color: #e9e0cf; }

.satser { margin-top: 16px; background: var(--surface); border: 1px dashed #c9b48f; border-radius: 16px; padding: 20px 24px; }
.satser h3 { font-size: 1.05rem; margin-bottom: 4px; }
.satser .hint { margin: 0 0 12px; }
.satser dl { margin: 0; }
.satser dl div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.satser dl div:last-child { border-bottom: 0; }
.satser dt { color: var(--muted); }
.satser dd { margin: 0; font-weight: 700; white-space: nowrap; }

/* Trin 2 */
.step2 { margin-top: 24px; }
.step2[hidden], .done[hidden] { display: none; }
.done { text-align: left; }
.ticket { background: #fffdf6; border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 16px 0; font-size: 15px; }
.ticket dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.ticket dt { color: var(--muted); }
.ticket dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.err { color: var(--busy); font-size: 14px; margin-top: 4px; }

/* Trin */
.steps { counter-reset: s; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps .card { position: relative; padding-top: 64px; }
.steps .num { position: absolute; top: 20px; left: 24px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* By-liste */
.towns { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0; }
.towns li { border: 1.5px solid rgb(255 255 255 / .3); border-radius: 999px; padding: 6px 16px; font-weight: 600; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-weight: 700; font-size: 1.05rem; list-style: none; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 16px; font-size: 1.5rem; color: var(--accent); transition: transform 200ms ease-out; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* CTA-bånd */
.band { text-align: center; }
.band p { margin-inline: auto; }

/* Footer */
footer { background: var(--ink); color: #d9cdb8; padding: 48px 0 32px; font-size: 15px; }
footer .wrap { display: grid; gap: 24px; }
@media (min-width: 800px) { footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
footer a { color: #f5efdf; }
footer h3 { color: #fff; font-size: 1.05rem; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; }
footer li a { display: inline-block; padding: 4px 0; }
.copy { border-top: 1px solid rgb(255 255 255 / .15); padding-top: 16px; grid-column: 1 / -1; font-size: 14px; }

/* Felter kunden selv udfylder: skjult offentligt, synlige i /rediger */
.udfyld { display: none; }
html.ce-edit .udfyld { display: block; outline: 2px dashed #c9b48f; outline-offset: 4px; }

/* Bevægelse (DESIGN-HACKS §1) */
:root { --ease-out: cubic-bezier(.2, .7, .2, 1); --t-fast: 180ms; --t-med: 260ms; }
.card { transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out); }
@media (hover: hover) { .card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -12px rgb(0 0 0 / .25); } }
.btn { transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast), color var(--t-fast); }
.btn:active { transform: scale(.97); }
.reveal { opacity: 0; transform: translateY(12px); }
.reveal.in { animation: rise 300ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; animation: ring var(--t-fast) var(--ease-out); }
@keyframes ring { from { outline-offset: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .reveal { opacity: 1; transform: none; }
}
/* Grid-børn må krympe under deres indholdsbredde (mobil 390 px) */
.calc { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .calc { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.calc > *, .row2 > *, .field { min-width: 0; }
.day { min-height: 0; }
.satser dl div { flex-wrap: wrap; }
/* Rækkefølge: formular → resultat → satser (mobil); på desktop står resultatet til højre */
@media (min-width: 1000px) {
  .calc > form { grid-column: 1; grid-row: 1; }
  .calc > .result { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .calc > .satser { grid-column: 1; grid-row: 2; margin-top: 0; }
}
.satser { margin-top: 0; }
.day { aspect-ratio: auto; height: 44px; }
.day.free::after { bottom: 3px; width: 4px; height: 4px; margin-left: -2px; }
.cal { max-width: 520px; }
@media (max-width: 480px) { .brand { font-size: 1.05rem; gap: 8px; } .brand img { width: 36px; height: 40px; } .top .btn.small { padding: 8px 14px; font-size: 14px; } }
/* Mobil: prisen følger med, mens man vælger */
.mini { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; background: var(--ink); color: #fff; border-radius: 999px; padding: 12px 20px; font-weight: 700; text-decoration: none; text-align: center; box-shadow: var(--shadow); min-height: 48px; }
.mini[hidden] { display: none; }
@media (min-width: 1000px) { .mini { display: none !important; } }
