/* findrestauranter.dk - "køkkenatlas": lyst kortpapir, dyb petroleum, safran og terrakotta */
@font-face { font-family: "Young Serif"; src: url("/assets/fonts/young-serif-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --papir: #f3f4ee; --papir-2: #e7eae0; --blaek: #12343b; --blaek-2: #4f6669; --streg: #cbd3cb;
  --safran: #e2a33a; --terra: #c4572e; --terra-moerk: #a3431f; --mynte: #8fb8a8;
  --serif: "Young Serif", Georgia, serif; --sans: "Figtree", system-ui, sans-serif;
  --maal: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papir); color: var(--blaek); font: 400 1.07rem/1.66 var(--sans); }
a { color: var(--terra-moerk); text-underline-offset: 0.2em; }
a:hover { color: var(--blaek); }
:focus-visible { outline: 3px solid var(--safran); outline-offset: 2px; }
.spring { position: absolute; left: -999px; top: 0; background: var(--blaek); color: var(--papir); padding: 0.6rem 1rem; z-index: 10; }
.spring:focus { left: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ramme { width: 100%; max-width: var(--maal); margin: 0 auto; padding: 0 1.25rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.13; margin: 0 0 0.55em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.75rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.45rem, 2.9vw, 1.95rem); margin-top: 2em; }
p { margin: 0 0 1em; }
.koord { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terra-moerk); margin: 0 0 0.75rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.koord::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; border: 2px solid currentColor; }

/* Top */
.top { border-bottom: 1px solid var(--streg); }
.top-ind { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; min-height: 4.4rem; flex-wrap: wrap; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--blaek); text-decoration: none; font-family: var(--serif); font-size: 1.4rem; }
.logo svg { width: 2rem; height: 2rem; color: var(--blaek); }
.menu { display: flex; flex-wrap: wrap; gap: 0.25rem 0.4rem; }
.menu a { color: var(--blaek); text-decoration: none; font-weight: 600; font-size: 0.97rem; padding: 0.4rem 0.8rem; border-radius: 999px; }
.menu a:hover { background: var(--papir-2); }
.menu a[aria-current="page"] { background: var(--blaek); color: var(--papir); }

/* Helt */
.helt { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.helt-ind { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.indledning { font-size: clamp(1.1rem, 1.8vw, 1.22rem); color: var(--blaek-2); max-width: 40rem; }
.knapper { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.knap { display: inline-block; background: var(--terra); color: #fff; text-decoration: none; font-weight: 700; padding: 0.8rem 1.35rem; border-radius: 10px; border: 2px solid var(--terra); }
.knap:hover { background: var(--terra-moerk); border-color: var(--terra-moerk); color: #fff; }
.knap-lys { background: transparent; color: var(--blaek); border-color: var(--blaek); }
.knap-lys:hover { background: var(--blaek); border-color: var(--blaek); }
.drejefad { width: 100%; max-width: 25rem; justify-self: center; }
.df-bord { fill: var(--blaek); }
.df-fad { fill: #1d4a52; stroke: var(--mynte); stroke-width: 1.5; stroke-dasharray: 3 7; }
.df-midt { fill: none; stroke: var(--mynte); stroke-width: 1; opacity: 0.6; }
.sk { stroke: var(--papir); stroke-width: 5; }
.sk-1 { fill: var(--safran); } .sk-2 { fill: var(--terra); } .sk-3 { fill: #6f9a5b; } .sk-4 { fill: #d9c49a; } .sk-5 { fill: #b3402a; } .sk-6 { fill: #e9d8a6; }
.sk-ris { fill: var(--papir); stroke: var(--papir-2); }
.df-rose { fill: var(--safran); }

/* Sektioner */
.sektion { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--streg); }
.sektion h2:first-child { margin-top: 0; }
.kort-liste { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 0.75rem; }
.kort-liste a { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.9rem 1rem; background: #fbfcf8; border: 1px solid var(--streg); border-radius: 12px; text-decoration: none; color: var(--blaek); height: 100%; }
.kort-liste a:hover { border-color: var(--blaek); background: #fff; }
.region { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blaek-2); }
.kn { font-family: var(--serif); font-size: 1.2rem; }
.sektion-moerk { background: var(--blaek); color: var(--papir); border-top: 0; }
.sektion-moerk a { color: var(--safran); }
.to-spalter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
.to-spalter h2 { margin-top: 0; }
.tal-liste { padding-left: 1.3rem; margin: 0 0 1.5rem; }
.tal-liste li { margin-bottom: 0.8rem; padding-left: 0.2rem; }
.tal-liste li::marker { color: var(--terra); font-weight: 800; }
.sektion-moerk .tal-liste li::marker { color: var(--safran); }
.pil { font-weight: 700; text-decoration: none; display: inline-block; margin-bottom: 0.35rem; }
.pil::after { content: " \2192"; }
.pil:hover { text-decoration: underline; }

/* Tekstsider */
.tekstside { padding: clamp(2.25rem, 5vw, 3.75rem) 0 4.5rem; }
.side-top { max-width: 46rem; margin-bottom: 1.5rem; }
.artikel { max-width: 45rem; }
.videre { margin-top: 2rem; }
.koekken-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.25rem; }
.koekken { background: #fbfcf8; border: 1px solid var(--streg); border-radius: 14px; padding: 1.4rem 1.4rem 1.1rem; display: flex; flex-direction: column; scroll-margin-top: 1rem; }
.koekken:target { border-color: var(--terra); box-shadow: 0 0 0 3px rgba(196, 87, 46, 0.25); }
.koekken h2 { margin-top: 0; font-size: 1.5rem; }
.koekken p { font-size: 0.99rem; }
.tip { background: var(--papir-2); border-radius: 8px; padding: 0.6rem 0.8rem; }
.prikker { display: flex; gap: 1.25rem; flex-wrap: wrap; margin: auto 0 0; padding-top: 0.6rem; border-top: 1px dashed var(--streg); }
.prikker div { display: flex; align-items: center; gap: 0.45rem; }
.prikker dt { font-size: 0.8rem; font-weight: 700; color: var(--blaek-2); }
.prikker dd { margin: 0; }
.p { display: inline-flex; gap: 3px; }
.p i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--streg); }
.p0 i:nth-child(-n+1), .p1 i:nth-child(-n+2), .p2 i { background: var(--terra); }

/* Vælger */
.vaelger { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-bottom: 2rem; }
.oensker { margin: 0; border: 0; padding: 1.25rem; background: var(--blaek); color: var(--papir); border-radius: 14px; }
.oensker legend { font-family: var(--serif); font-size: 1.35rem; padding: 0; margin-bottom: 0.6rem; float: left; width: 100%; }
.valg { display: flex; gap: 0.7rem; align-items: center; padding: 0.7rem 0.4rem; border-bottom: 1px solid rgba(243, 244, 238, 0.15); cursor: pointer; clear: both; }
.valg:last-child { border-bottom: 0; }
.valg input { width: 1.25rem; height: 1.25rem; accent-color: var(--safran); flex: none; }
.fs-titel { margin-top: 0; }
.fs-note { color: var(--blaek-2); min-height: 1.6em; }
.forslag { list-style: none; counter-reset: f; padding: 0; margin: 0; }
.forslag li { counter-increment: f; display: grid; grid-template-columns: 2rem minmax(0, 1fr) minmax(4rem, 8rem); gap: 0.75rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--streg); }
.forslag li::before { content: counter(f); font-family: var(--serif); color: var(--blaek-2); text-align: right; }
.forslag a { text-decoration: none; color: var(--blaek); display: flex; flex-wrap: wrap; gap: 0 0.6rem; align-items: baseline; }
.fs-navn { font-family: var(--serif); font-size: 1.12rem; }
.fs-region { font-size: 0.82rem; color: var(--blaek-2); }
.forslag li.top .fs-navn { color: var(--terra-moerk); }
.forslag li.top::before { color: var(--terra); }
.maaler { height: 0.5rem; background: var(--papir-2); border-radius: 999px; overflow: hidden; }
.maaler-fyld { display: block; height: 100%; width: 0; background: var(--safran); border-radius: 999px; transition: width 0.25s ease; }

.opslag-liste > div { padding: 0.9rem 0; border-bottom: 1px solid var(--streg); display: grid; grid-template-columns: 11rem 1fr; gap: 1.25rem; }
.opslag-liste dt { font-weight: 700; }
.opslag-liste dd { margin: 0; }

/* Bund */
.bund { background: var(--blaek); color: #c4d0cc; padding: 2.25rem 0 2.75rem; }
.sektion-moerk + .bund, main:has(.sektion-moerk:last-child) + .bund { border-top: 1px solid rgba(243, 244, 238, 0.15); }
.bund-ind { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.bund-navn { font-family: var(--serif); font-size: 1.3rem; color: var(--papir); max-width: 28rem; }
.bund-navn span { display: block; font-family: var(--sans); font-size: 0.92rem; color: #a9bab5; margin-top: 0.35rem; }
.bund nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.bund nav a { color: var(--papir); }

@media (max-width: 860px) {
  .helt-ind, .to-spalter, .vaelger { grid-template-columns: 1fr; }
  .drejefad { max-width: 18rem; }
}
@media (max-width: 520px) {
  .menu a { padding: 0.35rem 0.6rem; font-size: 0.92rem; }
  .opslag-liste > div { grid-template-columns: 1fr; gap: 0.25rem; }
  .forslag li { grid-template-columns: 1.5rem minmax(0, 1fr) 4rem; gap: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) { .maaler-fyld { transition: none; } }
