/* Cookietest (testsiden). Cabana-farver som i admin; systemskrift, ingen eksterne kald. */
:root {
  --green: #033e33;
  --green-deep: #022a22;
  --lime: #b7f97e;
  --bg: #f5f4f2;
  --surface: #ffffff;
  --ink: #16201d;
  --muted: #545c58;
  --border: #d9d6cf;
  --ok: #067647;
  --ok-bg: #ecfdf3;
  --bad: #b42318;
  --bad-bg: #fef3f2;
  --warn: #93370d;
  --warn-bg: #fffaeb;
  --neutral-bg: #f0eeea;
  --focus: #0b6e4f;
  --radius: 10px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --mono: Consolas, Menlo, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); }
a { color: var(--green); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
code, .mono { font-family: var(--mono); font-size: .9em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }

/* Topbjælke */
.lab-top { background: var(--green); color: #fff; }
.lab-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.brand span { color: var(--lime); font-weight: 600; }
.lab-top a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.lab-top .vendor { color: var(--lime); font-weight: 600; }
.top-links { display: flex; gap: 20px; }
.to-panel { display: none !important; }
@media (max-width: 1000px) { .to-panel { display: inline-flex !important; } }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* Knapper og felter */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 8px;
  border: 2px solid var(--green); background: var(--surface); color: var(--green); font: 600 1rem var(--font); cursor: pointer; text-decoration: none; }
.btn:hover { background: #e7efe9; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
label, legend { font-weight: 600; }
.field { margin: 0 0 16px; }
.field label { display: block; margin-bottom: 6px; }
.help { display: block; margin-top: 4px; font-size: .875rem; color: var(--muted); }
input[type="text"], select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid #8a8f8c;
  border-radius: 8px; padding: 10px 12px; min-height: 44px; }
textarea { font-family: var(--mono); font-size: .875rem; line-height: 1.5; resize: vertical; }
.error { color: var(--bad); font-weight: 600; margin: 8px 0 0; }

/* Opsætningssiden */
.setup main { padding: 32px 16px 64px; max-width: 860px; }
.setup h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 28px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 0 0 20px; }
.card h2 { font-size: 1.15rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; font-size: 1.15rem; }
.vendors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.vendor-opt { position: relative; }
.vendor-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.vendor-opt span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 56px; padding: 8px 12px;
  border: 2px solid var(--border); border-radius: 8px; background: var(--surface); font-weight: 600; }
.vendor-opt input:checked + span { border-color: var(--green); background: #e7efe9; box-shadow: inset 0 0 0 1px var(--green); }
.vendor-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.vendor-fields { margin-top: 20px; }
.notice { border: 1px solid #c3d8cb; background: #eef5f0; padding: 12px 16px; border-radius: 8px; margin: 0 0 20px; }
.notice.warn { border-color: #f3d39b; background: var(--warn-bg); }
.howto { padding-left: 1.2em; margin: 0; }
.howto li { margin-bottom: 6px; }

/* Testsiden: en boks pr. kategori + detaljepanel */
.test-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; align-items: start; min-height: calc(100vh - 56px); }
@media (max-width: 1000px) { .test-layout { grid-template-columns: minmax(0, 1fr); } }

.stage { padding: 28px 24px 48px; min-width: 0; }
.stage h1 { font-size: clamp(1.6rem, 3.5vw, 2rem); }
.stage-intro { color: var(--muted); max-width: 62ch; margin: 0 0 24px; }
.stage-links { margin: 24px 0 0; }
.stage-links a { display: inline-flex; align-items: center; min-height: 44px; }
#declaration h2 { margin-top: 32px; font-size: 1.25rem; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 960px; }
@media (max-width: 640px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile { background: var(--surface); border: 2px dashed var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  transition: border-color .2s, background-color .2s; }
.tile-wide { grid-column: 1 / -1; }
.tile header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tile h2 { font-size: 1.05rem; margin: 0; }
.tile[data-state="on"] { border: 2px solid var(--ok); background: #f6fdf8; }
.tile[data-state="bad"] { border: 2px solid var(--bad); background: var(--bad-bg); }
.tile[data-state="gone"], .tile[data-state="stuck"], .tile[data-state="missing"] { border: 2px solid #f3d39b; background: var(--warn-bg); }
.tile-body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.tile-note { margin: 0; font-size: .875rem; color: var(--muted); }
.tile-note .btn { margin-top: 8px; }

.locked { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 120px;
  color: var(--muted); background: var(--neutral-bg); border-radius: 8px; padding: 16px; }
.locked svg { width: 32px; height: 32px; }
.locked p { margin: 0; font-size: .925rem; }

.vis { display: flex; align-items: center; gap: 14px; min-height: 120px; border-radius: 8px; padding: 16px; }
.vis p { margin: 0; }
.vis svg { width: 44px; height: 44px; flex: none; }
.vis-necessary { background: #e7efe9; color: var(--green); }
.vis-functional { background: #e8f1fb; color: #1d4f7c; }
.vis-statistics { background: #f1ecfb; color: #4b2e83; }
.vis-marketing { background: #fff1e6; color: #8a3b12; flex-direction: column; align-items: flex-start; justify-content: center; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 52px; flex: none; }
.bars span { width: 9px; background: currentColor; border-radius: 2px 2px 0 0; opacity: .85; }
.ad-label { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 4px; padding: 1px 6px; }
.faded { opacity: .4; filter: grayscale(1); }
@media (prefers-reduced-motion: no-preference) {
  .vis { animation: lab-in .35s ease-out; }
  @keyframes lab-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

.tile-video { aspect-ratio: 16 / 9; max-width: 720px; width: 100%; background: var(--neutral-bg); border-radius: 8px; overflow: hidden; }
.tile-video iframe { display: block; width: 100%; height: 100%; border: 0; }

.panel { background: var(--surface); border-left: 1px solid var(--border); padding: 20px; position: sticky; top: 0; max-height: 100vh; overflow: auto; }
@media (max-width: 1000px) { .panel { position: static; max-height: none; border-left: 0; border-top: 4px solid var(--green); } }
.panel h2 { font-size: 1.2rem; }
.panel h3 { font-size: .95rem; margin: 22px 0 8px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.verdict { border-radius: 8px; padding: 12px 14px; font-weight: 600; margin-bottom: 12px; }
.verdict.ok { background: var(--ok-bg); color: var(--ok); }
.verdict.bad { background: var(--bad-bg); color: var(--bad); }
.verdict.wait { background: var(--warn-bg); color: var(--warn); }
.verdict p { margin: 4px 0 0; font-weight: 400; color: var(--ink); font-size: .9rem; }
.consent-line { margin: 0 0 12px; }
.rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 8px; }
.rows li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 12px; font-size: .925rem; }
.rows li + li { border-top: 1px solid var(--border); }
.rows .what { min-width: 0; overflow-wrap: anywhere; }
.rows .what small { display: block; color: var(--muted); font-size: .8rem; }
.pill { display: inline-block; white-space: nowrap; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 600; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.neutral { background: var(--neutral-bg); color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; font-size: .875rem; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--border); }
.timeline time { color: var(--muted); font-family: var(--mono); font-size: .8rem; }
.timeline .bad { color: var(--bad); font-weight: 600; }
.empty { color: var(--muted); font-size: .9rem; margin: 0; }
