/*
 * Bordplaner.dk – de statiske sider (guides, privatliv, 404).
 * Samme udtryk som appen (src/web/styles/theme.css): lyst, varmt, bløde kanter og bløde bevægelser.
 */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/cormorant-garamond-latin-400-normal.woff2?v=ca2e049826") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-normal.woff2?v=ca2e049826") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/cormorant-garamond-latin-600-normal.woff2?v=ca2e049826") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2?v=ca2e049826") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2?v=ca2e049826") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2?v=ca2e049826") format("woff2"); }

:root {
  --cream: #fbf7f2;
  --paper: #fffdfa;
  --shell: #f5efe7;
  --ink: #2e2925;
  --ink-soft: #4a433d;
  --muted: #6f665f;
  --line: #ece4da;
  --line-strong: #ddd2c5;
  --sage: #6a967a;
  --sage-deep: #4a765a;
  --sage-soft: #edf4ee;
  --gold: #c6a660;
  --gold-strong: #a3843e;
  --gold-deep: #7a5f22;
  --gold-soft: #f8f1e0;
  --gold-line: #e2d0a6;
  --gold-glow: rgb(198 166 96 / 0.2);
  --blush: #e3a99c;
  --blush-soft: #f9ece8;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-soft: 0 1px 2px rgb(46 41 37 / 0.04), 0 6px 18px rgb(46 41 37 / 0.05);
  --shadow-lift: 0 2px 4px rgb(46 41 37 / 0.05), 0 14px 34px rgb(46 41 37 / 0.09);
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--gold-deep); text-decoration-color: var(--gold-line); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color 200ms var(--ease), text-decoration-color 200ms var(--ease); }
a:hover { color: var(--ink); text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold-strong); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: lining-nums; color: var(--ink); text-wrap: balance; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); box-shadow: var(--shadow-soft); transition: top 200ms var(--ease); }
.skip:focus { top: 12px; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgb(251 247 242 / 0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgb(236 228 218 / 0.8); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--ink); text-decoration: none; border-radius: 999px; padding-right: 4px; }
.wordmark span { font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1; letter-spacing: -0.01em; }
.wordmark .mark { flex: none; transition: transform 500ms var(--ease); }
.wordmark:hover .mark { transform: rotate(22.5deg); }
.topnav { display: flex; align-items: center; gap: 6px; }
.toplink { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--ink-soft); font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color 220ms var(--ease), color 220ms var(--ease); }
.toplink:hover { background: var(--shell); color: var(--ink); }

/* Knapper (som appens .btn) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 10px 20px; font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1.5; white-space: nowrap; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color 220ms var(--ease), color 220ms var(--ease), box-shadow 220ms var(--ease), transform 220ms var(--ease), border-color 220ms var(--ease); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-sm { padding: 7px 15px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-primary { background: linear-gradient(180deg, #e9d8ab, #d9c189); color: var(--ink); border-color: #cbb074; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), var(--shadow-soft); }
.btn-primary:hover { background: linear-gradient(180deg, #efe1ba, #e9d8ab); color: var(--ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.55), var(--shadow-lift); transform: translateY(-1px); }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: #fff; color: var(--ink); border-color: var(--gold-line); box-shadow: var(--shadow-soft); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--shell); color: var(--ink); }
.btn .arrow { transition: transform 260ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Brødkrumme */
.crumbs { margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.crumbs li + li::before { content: "›"; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; border-radius: 6px; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-soft); }

/* Artikel */
.article, .hub { max-width: 720px; margin: 0 auto; padding: 40px 0 8px; animation: rise 520ms var(--ease) both; }
.hub { max-width: none; }
.article-head h1 { margin: 0; font-size: clamp(36px, 6.4vw, 54px); line-height: 1.06; }
.updated { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.lead { margin: 18px 0 0; max-width: 620px; font-size: 19px; line-height: 1.6; color: var(--ink-soft); }

.prose { margin-top: 28px; overflow-wrap: break-word; }
.prose > p:first-child { font-size: 19.5px; line-height: 1.62; color: var(--ink-soft); }
.prose p { margin: 0 0 1.15em; }
.prose h2 { margin: 2em 0 0.55em; font-size: clamp(28px, 4.6vw, 35px); line-height: 1.14; }
.prose h3 { margin: 1.6em 0 0.45em; font-size: clamp(22px, 3.6vw, 26px); line-height: 1.2; }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.35em; }
.prose li { margin: 0.4em 0; padding-left: 0.2em; }
.prose ul li::marker { color: var(--gold); }
.prose ol li::marker { color: var(--gold-deep); font-weight: 600; font-variant-numeric: tabular-nums; }
.prose blockquote { margin: 1.6em 0; padding: 18px 24px; background: var(--gold-soft); border-radius: var(--radius); border: 1px solid var(--gold-line); font-family: var(--display); font-size: 23px; line-height: 1.4; color: var(--ink-soft); }
.prose blockquote p { margin: 0; }
.prose blockquote p + p { margin-top: 0.6em; }

.table-wrap { margin: 1.5em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-soft); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; font-variant-numeric: tabular-nums; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; }
th { background: var(--shell); font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
tbody tr + tr td { border-top: 1px solid var(--line); }

/* Indholdsfortegnelse */
.toc { margin: 1.8em 0; padding: 20px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.toc h2 { margin: 0 0 8px; font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.3em; font-size: 16px; }
.toc li { margin: 0.3em 0; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--gold-deep); text-decoration: underline; text-decoration-color: var(--gold-line); }

/* Download-knap og beregner */
.download { margin: 1.6em 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 20px 24px; background: var(--sage-soft); border: 1px solid #d8e6dc; border-radius: var(--radius); }
.download-text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.download-text strong { font-family: var(--display); font-size: 23px; font-weight: 600; line-height: 1.25; }
.download-text span { font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }

.calc { margin: 1.8em 0; padding: 24px; background: var(--paper); border: 1px solid var(--gold-line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.prose .calc-h, .calc-h { margin: 0 0 16px; font-size: 26px; line-height: 1.2; }
.calc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.field input, .field select { width: 100%; min-height: 46px; padding: 9px 14px; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 14px; transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold-strong); box-shadow: 0 0 0 4px var(--gold-glow); }
.calc-out { margin-top: 18px; padding: 16px 20px; background: var(--gold-soft); border-radius: 16px; min-height: 92px; }
.calc-out p { margin: 0; }
.calc-result { font-family: var(--display); font-size: 25px; line-height: 1.25; }
.calc-result strong { font-size: 40px; font-weight: 600; color: var(--gold-deep); margin-right: 2px; }
.calc-note, .calc-fallback, .calc-hint { font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }
.calc-note { margin-top: 4px !important; }

/* FAQ */
.faq { margin-top: 48px; }
.faq h2, .related h2 { margin: 0 0 16px; font-size: clamp(28px, 4.6vw, 35px); line-height: 1.14; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 10px; transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease); }
.faq details[open] { border-color: var(--gold-line); box-shadow: var(--shadow-soft); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; font-weight: 500; font-size: 16.5px; line-height: 1.45; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 1.8px solid var(--gold-strong); border-bottom: 1.8px solid var(--gold-strong); transform: translateY(-2px) rotate(45deg); transition: transform 260ms var(--ease); }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-a { padding: 0 20px 18px; color: var(--ink-soft); font-size: 16px; }
.faq-a p { margin: 0; }

/* Kort (relaterede guides og oversigten) */
.related { max-width: 720px; margin: 56px auto 0; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.hub .cards { margin-top: 36px; }
.card { height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-soft); transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--gold-line); color: var(--ink); }
.card h3 { margin: 0; font-size: 25px; line-height: 1.18; }
.card p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.card-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 500; color: var(--gold-deep); }
.card .arrow { transition: transform 260ms var(--ease); }
.card:hover .arrow { transform: translateX(3px); }
.empty { margin-top: 32px; color: var(--muted); }

/* Afsluttende, blød opfordring */
.cta { max-width: 720px; margin: 64px auto 72px; padding: 40px 28px 36px; text-align: center; background: linear-gradient(180deg, var(--paper), var(--gold-soft)); border: 1px solid var(--gold-line); border-radius: 30px; box-shadow: var(--shadow-soft); }
.cta-art .mark, .notfound-art .mark { animation: turn 60s linear infinite; }
.cta h2 { margin: 10px 0 0; font-size: clamp(30px, 5vw, 38px); line-height: 1.12; }
.cta p { margin: 12px auto 0; max-width: 480px; font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); }
.cta-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }

/* 404 */
.notfound { max-width: 560px; margin: 0 auto; padding: 88px 0 96px; text-align: center; animation: rise 520ms var(--ease) both; }
.notfound h1 { margin: 18px 0 0; font-size: clamp(38px, 7vw, 56px); line-height: 1.06; }
.notfound .lead { margin-left: auto; margin-right: auto; }

/* Sidefod */
.footer { margin-top: auto; border-top: 1px solid rgb(236 228 218 / 0.8); }
.footer-in { display: flex; flex-direction: column; gap: 18px; padding-top: 34px; padding-bottom: 34px; font-size: 14px; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand span { font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1; color: var(--ink-soft); }
.wordmark .dk, .footer-brand .dk { font-weight: 400; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
.footer p { margin: 0; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes turn { to { transform: rotate(360deg); } }

@media (min-width: 720px) {
  .wrap { padding: 0 28px; }
  .article, .hub { padding-top: 56px; }
  .footer-in { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .calc-fields { grid-template-columns: 1fr 1fr; }
  .calc-fields .field:first-child { grid-column: 1 / -1; }
  .calc { padding: 20px 18px; }
  .download .btn { width: 100%; }
  .cta { margin: 48px auto 56px; padding: 32px 20px 28px; border-radius: 26px; }
  .cta-actions .btn { width: 100%; }
  .prose blockquote { font-size: 21px; padding: 16px 20px; }
  th, td { padding: 10px 13px; }
}
@media (max-width: 400px) {
  .toplink { display: none; }
  .wordmark span { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .topbar, .cta, .footer, .skip, .related { display: none; }
  body { background: #fff; }
}
