/* Klogekøb.dk – forbrugersider. Systemfonte (ingen eksterne fonte: hurtigt og uden tredjepartskald). */
:root {
    --ink: #14211c;
    --muted: #586761;
    --line: #dbe3df;
    --paper: #f4f7f5;
    --card: #ffffff;
    --accent: #0f6b4f;
    --accent-dark: #0b4f3b;
    --accent-soft: #e3f1ea;
    --deep: #0a3b2d;
    --gold: #e3b04b;
    --gold-ink: #8a6417;
    --radius: 12px;
    --serif: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; background: #fff; object-fit: contain; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -0.02em; font-weight: 750; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0.4em 0 0.3em; }
h2 { font-size: 1.5rem; margin: 2em 0 0.6em; }
h3 { font-size: 1.15rem; margin: 0 0 0.3em; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.35rem; font-weight: 800;
    letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.logo b { color: var(--accent); font-weight: inherit; }
.logo img { width: 30px; height: 30px; border-radius: 8px; background: none; }
.header-nav { display: flex; gap: 24px; }
.header-nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.header-nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* Footer */
.site-footer { margin-top: 72px; padding: 40px 0 24px; background: var(--card); border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1.4fr; gap: 32px; align-items: start; }
.footer-brand p { margin: 12px 0 0; max-width: 40ch; }
.footer-brand strong { color: var(--ink); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.disclosure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.copyright { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.85rem; }

.notice { background: #f3f8f5; border: 1px solid #d3e4da; border-left: 4px solid var(--accent); border-radius: 8px;
    padding: 10px 14px; margin: 14px 0 18px; font-size: 0.92rem; color: var(--ink); max-width: 820px; }
.notice a { white-space: nowrap; }
.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin-top: 20px; }
.breadcrumbs a { color: var(--muted); }
.empty { color: var(--muted); }

/* Forside: top */
.home .site-header { border-bottom: 0; }
.hero-band { background: var(--deep); color: #fff; padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 18px; max-width: 14ch; }
.hero-lead { font-size: 1.15rem; color: #cfe3da; max-width: 50ch; margin: 0 0 28px; }
.finder { margin: 0 0 28px; max-width: 520px; }
.finder label { display: block; font-weight: 600; margin-bottom: 8px; }
.finder-row { display: flex; background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.finder input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); padding: 10px 12px; }
.finder input:focus { outline: none; }
.finder-row:focus-within { box-shadow: 0 0 0 3px var(--gold), 0 10px 30px rgba(0, 0, 0, .18); }
.finder button { border: 0; border-radius: 8px; background: var(--gold); color: var(--deep); font: inherit; font-weight: 700; padding: 0 22px; cursor: pointer; }
.finder button:hover { background: #ecc066; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.promises li { position: relative; padding-left: 30px; color: #e8f2ed; }
.promises li::before { content: ""; position: absolute; left: 2px; top: 0.3em; width: 14px; height: 8px;
    border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg); }

/* Forside: tavlen med de bedste lige nu */
.board { background: #fff; color: var(--ink); border-radius: 16px; padding: 22px 22px 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
.board h2 { font-size: 1.05rem; margin: 0 0 12px; letter-spacing: -0.01em; }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-list li + li { border-top: 1px solid var(--line); }
.board-list a { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 4px; color: inherit; text-decoration: none; }
.board-list a:hover .board-name { color: var(--accent); text-decoration: underline; }
.board-list img { width: 56px; height: 56px; border-radius: 10px; border: 1px solid var(--line); padding: 3px; }
.board-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.board-cat { font-size: 0.82rem; color: var(--muted); }
.board-name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-price { font-size: 0.85rem; color: var(--muted); }
.board-more { display: inline-block; margin-top: 10px; font-weight: 600; }
.board-empty p { color: var(--muted); }

/* Forside: sektioner */
.section { padding-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.section-head p { margin: 0; }
.cat-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.cat-card[hidden] { display: none; }
.cat-card a { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    overflow: hidden; color: var(--ink); text-decoration: none; }
.cat-card a:hover { border-color: var(--accent); }
.cat-card a:hover .cat-title { color: var(--accent); }
.cat-img { display: block; padding: 18px; background: #fff; border-bottom: 1px solid var(--line); }
.cat-img img { width: 100%; height: 180px; border-radius: 0; }
.cat-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.cat-title { font-family: var(--serif); font-weight: 750; font-size: 1.15rem; letter-spacing: -0.015em; line-height: 1.25; }
.cat-count { font-size: 0.9rem; }
.cat-winner { display: flex; gap: 12px; align-items: center; margin-top: auto; padding-top: 12px; font-size: 0.9rem; line-height: 1.35; }
.cat-winner > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.cat-winner-label { color: var(--muted); font-size: 0.82rem; }
.finder-empty { color: var(--muted); }

.method-band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 64px; padding-bottom: 48px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.steps h3 { font-size: 1.1rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }
.method-note { margin: 32px 0 0; padding: 14px 16px; border-left: 4px solid var(--gold); background: #fdf8ec; border-radius: 0 8px 8px 0; max-width: 820px; }
.money > * { max-width: 820px; }
.money h2 { margin: 0 0 10px; font-size: 1.4rem; }
.money p { margin: 0; color: var(--muted); }

/* Score */
.score-badge { display: inline-flex; align-items: baseline; gap: 2px; background: var(--accent); color: #fff; border-radius: 10px; padding: 6px 10px; font-weight: 700; }
.score-badge .score-num { font-size: 1.3rem; }
.score-badge .score-max { font-size: 0.8rem; opacity: .8; }
.score-badge.large { padding: 10px 16px; }
.score-badge.small { padding: 5px 9px; border-radius: 8px; }
.score-badge.small .score-num { font-size: 1.05rem; }
.score-badge.large .score-num { font-size: 2.2rem; }
.grade { font-weight: 600; margin: 6px 0 12px; }

/* Vinder */
.winner { background: var(--card); border: 2px solid var(--gold); border-radius: var(--radius); padding: 20px; margin: 28px 0; position: relative; }
.winner-label { position: absolute; top: -14px; left: 20px; background: var(--gold); color: var(--deep); font-weight: 700; font-size: 0.8rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 6px; }
.winner-grid { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.winner h2 { margin: 0 0 10px; }
.winner h2 a { color: var(--ink); text-decoration: none; }

/* Knap */
.buy { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 18px; border-radius: 10px; }
.buy:hover { background: #0b5740; }
.buy.small { padding: 7px 12px; font-size: 0.9rem; white-space: nowrap; }

/* Rangliste */
.ranking { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rank-row { display: grid; grid-template-columns: 36px 88px 1fr auto; grid-template-areas: "rank img main side" "rank img bars side"; gap: 8px 16px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.rank { grid-area: rank; }
.rank-img { grid-area: img; width: 88px; height: 88px; }
.rank-main { grid-area: main; min-width: 0; }
.rank-bars { grid-area: bars; }
.rank { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--muted); text-align: center; }
.rank-main h3 a { color: var(--ink); text-decoration: none; }
.rank-main p { margin: 0 0 8px; font-size: 0.93rem; }
.rank-side { grid-area: side; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

.crit-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 0.85rem; }
.crit-bars li { display: grid; grid-template-columns: minmax(110px, 180px) 1fr 34px; gap: 10px; align-items: center; }
.bar { display: block; height: 6px; background: #e4ebe7; border-radius: 3px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.crit-val { font-weight: 600; text-align: right; }

/* Kriterier */
.criteria-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px 16px; margin-top: 40px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* Produkt */
.product-top { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 32px; margin-top: 16px; }
.eyebrow { color: var(--gold-ink); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: .06em; margin: 0; }
.product h1 { margin-top: 0.2em; }
.verdict { font-size: 1.05rem; }
.offers { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.offer { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.offer-shop, .offer-price { display: flex; flex-direction: column; }
.offer-shop .muted, .offer-price .ship { font-size: 0.85rem; }
.offer-price { text-align: right; }
.offer-price strong { font-size: 1.15rem; }
.was { color: var(--muted); font-size: 0.85rem; text-decoration: line-through; }
.price-note { font-size: 0.8rem; color: var(--accent); }
.price-note.muted { color: var(--muted); }
.mobile-buy { display: none; }
.small-print { font-size: 0.85rem; }
.crit-detail { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.crit-detail li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.crit-head { display: flex; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.crit-head .crit-name { font-weight: 600; }
.crit-head .muted { font-size: 0.85rem; white-space: nowrap; }
.estimate { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #8a6d1e; background: #fbf3dc; border-radius: 4px; padding: 1px 6px; }
.crit-head .crit-val { margin-left: auto; font-size: 1.1rem; }
.crit-detail p { margin: 8px 0 0; font-size: 0.93rem; color: var(--muted); }

.prose { max-width: 720px; }
address.company { font-style: normal; display: flex; flex-direction: column; gap: 2px; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.footer-links a { color: var(--muted); }

/* Specifikationer: to kolonner på computer, én række pr. linje på mobil */
.specs { display: grid; grid-template-columns: minmax(140px, 32%) 1fr; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs dt, .specs dd { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; min-height: 44px; }
.specs dt { color: var(--muted); font-size: 0.93rem; }
.specs dd { font-weight: 500; }
.specs dt:last-of-type, .specs dd:last-of-type { border-bottom: 0; }

@media (max-width: 720px) {
    body { font-size: 16px; }
    h2 { margin-top: 1.6em; }
    .header-inner { min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
    .header-nav { gap: 18px; }
    .hero-band { padding: 32px 0 40px; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-copy h1 { max-width: none; }
    .board { padding: 16px 16px 14px; }
    .steps { grid-template-columns: 1fr; gap: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .section { padding-top: 40px; }
    .method-band { margin-top: 48px; padding-bottom: 36px; }
    .cat-grid { gap: 12px; }
    .cat-card a { flex-direction: row; }
    .cat-img { flex: 0 0 104px; width: 104px; min-width: 0; padding: 10px; border-bottom: 0; border-right: 1px solid var(--line); display: flex; align-items: center; }
    .cat-img img { width: 100%; min-width: 0; height: 84px; }
    .cat-body { padding: 12px 14px; }
    .cat-winner { padding-top: 8px; }
    .header-nav a { padding: 6px 0; }
    .winner { padding: 20px 16px 16px; }
    .winner-grid, .product-top { grid-template-columns: 1fr; gap: 16px; }
    .winner-grid img, .product-top img { width: 100%; max-height: 260px; }
    .winner .buy { display: block; text-align: center; }
    .rank-row { grid-template-columns: 24px 64px 1fr; grid-template-areas: "rank img main" "bars bars bars" "side side side"; padding: 14px; gap: 10px 12px; }
    .rank { font-size: 1.3rem; }
    .rank-img { width: 64px; height: 64px; }
    .rank-side { flex-direction: row; justify-content: space-between; align-items: center; }
    .crit-bars li { grid-template-columns: minmax(96px, 40%) 1fr 32px; }
    .criteria-box { padding: 4px 16px 12px; }
    .criteria-table thead { display: none; }
    .criteria-table tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .criteria-table td { border: 0; padding: 2px 0; }
    .criteria-table .cr-name { font-weight: 600; }
    .criteria-table .cr-weight { text-align: right; font-weight: 600; color: var(--accent); }
    .criteria-table .cr-desc { grid-column: 1 / -1; color: var(--muted); font-size: 0.92rem; }
    .offer { grid-template-columns: 1fr auto; gap: 10px 12px; }
    .offer .buy { grid-column: 1 / -1; text-align: center; }
    .crit-detail li { padding: 12px 14px; }
    .specs { grid-template-columns: 1fr; }
    .specs dt { padding: 8px 14px 0; border-bottom: 0; font-size: 0.82rem; min-height: 0; }
    .specs dd { padding: 0 14px 8px; min-height: 0; }
    .has-mobile-buy { padding-bottom: 76px; }
    .mobile-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; align-items: center; justify-content: space-between; gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
    .mobile-buy div { display: flex; flex-direction: column; line-height: 1.25; }
    .mobile-buy .muted { font-size: 0.82rem; }
    .mobile-buy .buy { padding: 11px 16px; }
}

/* Købsguide og spørgsmål/svar på kategorisiden */
.guide { max-width: 760px; margin-top: 48px; }
.guide h2 { margin-top: 0; }
.guide-section { padding: 4px 0 8px; }
.guide-section h3 { margin: 20px 0 6px; font-size: 1.15rem; }
.guide-section p { margin: 0 0 12px; }
.faq { max-width: 760px; margin-top: 48px; }
.faq h2 { margin: 0 0 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 44px 14px 16px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 16px 14px; color: var(--muted); }
.faq details p + p { padding-top: 0; }

/* Pladsholder, indtil produktbilledet er gemt på egen server */
.img-ph { display: block; border-radius: 8px; background: #eef3f0 url(/favicon.svg) center / 30% no-repeat; }
.board-ph { width: 56px; height: 56px; border-radius: 10px; background-size: 45%; }
.cat-ph { width: 100%; height: 180px; background-size: 64px; }
.winner-ph { width: 100%; aspect-ratio: 1; max-width: 280px; background-size: 72px; }
.img-ph.rank-img { width: 88px; height: 88px; background-size: 40%; }
.product-ph { width: 100%; aspect-ratio: 1; max-width: 420px; background-size: 96px; }
@media (max-width: 720px) {
    .cat-ph { height: 84px; background-size: 36px; }
    .img-ph.rank-img { width: 64px; height: 64px; }
}

/* Udsolgt */
.stock-badge { display: inline-block; margin: 0 0 6px; padding: 2px 8px; border-radius: 6px; background: #fbeee6; color: #9a3d12; font-size: 0.82rem; font-weight: 650; }
.rank-row.is-unavailable .rank-img, .rank-row.is-unavailable .crit-bars { opacity: .55; }
.buy.muted-buy { background: var(--card); color: var(--accent); border: 1px solid var(--line); }
.buy.muted-buy:hover { background: var(--paper); }
.sold-out { background: #fdf5f0; border: 1px solid #f1d6c6; border-left: 4px solid #c2581f; border-radius: var(--radius); padding: 4px 18px 16px; margin: 28px 0; }
.sold-out h2 { margin: 14px 0 6px; font-size: 1.25rem; }
.sold-out p { margin: 0 0 10px; }
.alternatives { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.alternatives a { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; background: var(--card);
    border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.alternatives a:hover strong { color: var(--accent); text-decoration: underline; }
.alternatives img { width: 56px; height: 56px; border-radius: 8px; }
.alt-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
