/* Fælles stil for projektsider – matcher forsiden (index.html) */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0b0b0d;
  --surface: #141418;
  --surface-2: #1c1c22;
  --line: #2a2a31;
  --text: #ececee;
  --muted: #9a9aa3;
  --accent: #e11d48;
  --accent-soft: #fda4af;
  --radius: 14px;
  --display: 'Bebas Neue', Impact, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 13, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font-family: var(--display); font-size: 1.9rem; letter-spacing: 2px; }
.logo span { color: var(--accent); }
.back { font-size: .92rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.back:hover { color: var(--text); }

/* Hero */
.page-hero { position: relative; padding: 90px 0 70px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(225, 29, 72, .22), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.page-hero .wrap { position: relative; }
.eyebrow { font-size: .82rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-soft); }
.page-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(3.4rem, 10vw, 7.5rem); line-height: .92; letter-spacing: 1.5px; margin: 16px 0 22px; }
.page-hero h1 .outline { color: transparent; -webkit-text-stroke: 2px var(--accent); }
.page-hero .lead { max-width: 640px; font-size: 1.12rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: .93rem; border: 1px solid var(--line); transition: transform .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #be123c; }

/* Rapport-layout med indholdsfortegnelse */
.report { display: grid; grid-template-columns: 220px 1fr; gap: 64px; padding: 70px 0 40px; }
.toc { position: sticky; top: 100px; align-self: start; }
.toc p { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc ol { list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: .9rem; color: var(--muted); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); border-left-color: var(--accent); }

.chapter { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.chapter:last-child { border-bottom: 0; margin-bottom: 0; }
.chapter .num { font-family: var(--display); font-size: 1.1rem; color: var(--accent); letter-spacing: 1px; }
.chapter h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1; letter-spacing: .5px; margin: 4px 0 18px; }
.chapter .summary { font-size: 1.12rem; color: var(--text); margin-bottom: 18px; max-width: 70ch; }
.chapter p { color: var(--muted); margin-bottom: 14px; max-width: 70ch; }
.chapter ul { list-style: none; display: grid; gap: 10px; margin: 6px 0 18px; max-width: 70ch; }
.chapter li { position: relative; padding-left: 22px; color: #c9c9cf; }
.chapter li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 22px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

.chapter h3 { font-size: 1.05rem; font-weight: 700; margin: 26px 0 8px; color: var(--text); }
.chapter blockquote { border-left: 3px solid var(--accent); background: var(--surface); padding: 18px 22px; border-radius: 0 10px 10px 0; font-size: 1.08rem; margin: 8px 0 20px; max-width: 70ch; }

/* Tal-bokse */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 18px 0 22px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.fact strong { display: block; font-family: var(--display); font-weight: 400; font-size: 2.4rem; line-height: 1; color: var(--accent-soft); }
.fact span { display: block; font-size: .84rem; color: var(--muted); margin-top: 6px; }
.fact em { display: block; font-style: normal; font-size: .74rem; color: #6d6d75; margin-top: 4px; }

/* Tabel */
.table-wrap { overflow-x: auto; margin: 10px 0 8px; max-width: 70ch; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
td { color: #c9c9cf; }
tr.total td { color: var(--text); font-weight: 700; }
tr.total td.best { color: var(--accent-soft); }
.caption { font-size: .82rem; color: #6d6d75; margin-top: 4px; }

/* Farvepalet */
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 14px 0 8px; max-width: 70ch; }
.swatch { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.swatch i { display: block; height: 64px; }
.swatch span { display: block; padding: 8px 12px; font-size: .82rem; }
.swatch code { display: block; padding: 0 12px 10px; font-size: .76rem; color: var(--muted); }

/* Figurer */
.figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.figures figure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.figures a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.figures img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.figures a:hover img { transform: scale(1.04); }
.figures figcaption { padding: 12px 16px 14px; font-size: .88rem; color: var(--muted); }
.figures figcaption b { display: block; color: var(--text); font-weight: 600; }

/* Produkt-split */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.product .frame img { max-height: none; }
.product ul { list-style: none; display: grid; gap: 12px; margin: 18px 0 24px; }
.product li { padding-left: 22px; position: relative; color: #c9c9cf; }
.product li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.note { font-size: .84rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }

/* Komponenter fra 2.G-rapporterne (GameTheory, GameWorlds) */
.legacy .content-section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.legacy .content-section:last-child { border-bottom: 0; margin-bottom: 0; }
.legacy h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.1rem, 5vw, 2.9rem); line-height: 1; letter-spacing: .5px; margin-bottom: 18px; }
.legacy h3 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 8px; color: var(--text); }
.legacy p { color: var(--muted); margin-bottom: 14px; max-width: 72ch; }
.legacy strong { color: var(--text); }
.legacy a { color: var(--accent-soft); }
.legacy ul, .legacy ol { margin: 6px 0 18px; max-width: 72ch; display: grid; gap: 10px; }
.legacy ul { list-style: none; }
.legacy ul li { position: relative; padding-left: 22px; color: #c9c9cf; }
.legacy ul li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.legacy ol { padding-left: 22px; color: #c9c9cf; }
.legacy ol li::marker { color: var(--accent); font-weight: 700; }
.legacy .highlight > p:first-of-type { color: var(--text); font-size: 1.08rem; }
.legacy .definitions { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 10px; }
.legacy .definitions > h2 { grid-column: 1 / -1; }
.legacy .definition-card, .legacy .feedback-card, .legacy .krav-box, .legacy .qa-block {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; transition: border-color .2s;
}
.legacy .definition-card:hover, .legacy .feedback-card:hover, .legacy .krav-box:hover { border-color: rgba(225, 29, 72, .5); }
.legacy .definition-card h3, .legacy .feedback-card h3, .legacy .krav-box h3 { margin-top: 0; color: var(--accent-soft); }
.legacy .definition-card p, .legacy .feedback-card p { margin-bottom: 0; font-size: .95rem; }
.legacy .feedback-card { margin-bottom: 14px; max-width: 72ch; }
.legacy .scenario-box { border-left: 3px solid var(--accent); background: var(--surface); padding: 18px 22px; border-radius: 0 10px 10px 0; max-width: 72ch; }
.legacy .scenario-box p { color: var(--text); margin: 0; }
.legacy .qa-block { margin-bottom: 12px; max-width: 72ch; }
.legacy .qa-block .question { color: var(--text); font-weight: 600; margin-bottom: 6px; }
.legacy .qa-block .answer { margin: 0; font-size: .95rem; }
.legacy .krav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.legacy .krav-box ul { margin-bottom: 0; }
.legacy .img-figure { margin: 18px 0; max-width: 760px; }
.legacy .img-figure img { width: auto; max-width: 100%; max-height: 620px; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.legacy .img-figure figcaption { font-size: .82rem; color: #6d6d75; margin-top: 8px; }
.legacy .img-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.legacy .img-grid-2 .img-figure { margin: 0; }
.legacy .img-grid-2 img { width: 100%; max-height: none; aspect-ratio: 4 / 3; object-fit: cover; }
.legacy .impl-row img { width: 100%; max-height: none; }
.legacy .impl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 16px; transition: border-color .25s; }
.legacy .impl-row:hover { border-color: rgba(225, 29, 72, .55); }
.legacy .impl-row h3 { grid-column: 1 / -1; margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.7rem; letter-spacing: .5px; color: var(--accent-soft); }
.legacy .impl-row .img-figure { margin: 0; }
.legacy .app-link-container { margin-top: 22px; }
.legacy .app-link-button { display: inline-flex; padding: 12px 24px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: .93rem; transition: background .2s, transform .2s; }
.legacy .app-link-button:hover { background: #be123c; transform: translateY(-2px); }
.legacy .source-list li { font-size: .93rem; }
@media (max-width: 700px) {
  .legacy .img-grid-2, .legacy .impl-row { grid-template-columns: 1fr; }
}

/* Medie / produkt */
.media { padding: 30px 0 90px; }
.media h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1; margin-bottom: 10px; }
.media h2 span { color: var(--accent); }
.media > .wrap > p { color: var(--muted); margin-bottom: 26px; }
.frame { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.frame img { width: 100%; max-height: 620px; object-fit: cover; transition: transform .5s; }
a.frame:hover img { transform: scale(1.02); }
a.frame .label { position: absolute; right: 18px; bottom: 18px; background: var(--accent); color: #fff; font-weight: 600; font-size: .92rem; padding: 10px 20px; border-radius: 999px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.video { aspect-ratio: 16 / 9; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Næste/forrige projekt */
.pager { border-top: 1px solid var(--line); padding: 40px 0; }
.pager .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { display: block; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s, transform .2s; }
.pager a:hover { border-color: rgba(225, 29, 72, .6); transform: translateY(-3px); }
.pager small { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.pager strong { font-family: var(--display); font-weight: 400; font-size: 1.7rem; letter-spacing: .5px; }
.pager .next { text-align: right; grid-column: 2; }

.site-footer { padding: 30px 0; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Spil-oversigt */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; padding: 60px 0 30px; }
.game { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
a.game:hover { transform: translateY(-6px); border-color: rgba(225, 29, 72, .6); box-shadow: 0 18px 40px -18px rgba(225, 29, 72, .45); }
.game .thumb { aspect-ratio: 3 / 4; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.game .thumb img { width: 100%; height: 100%; object-fit: cover; }
.game .thumb .q { font-family: var(--display); font-size: 5rem; color: var(--line); }
.game .info { padding: 16px 18px 18px; }
.game h3 { font-size: 1.05rem; }
.game p { font-size: .88rem; color: var(--muted); }
.game.soon { border-style: dashed; opacity: .55; }
.news { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 20px 0 90px; transition: border-color .25s; }
.news:hover { border-color: rgba(225, 29, 72, .6); }
.news img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.news .info { padding: 34px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.news .info h3 { font-family: var(--display); font-weight: 400; font-size: 2.4rem; line-height: 1; }
.news .info p { color: var(--muted); }
.section-title { font-family: var(--display); font-weight: 400; font-size: 2.4rem; margin-top: 20px; }
.section-title span { color: var(--muted); font-size: 1.4rem; margin-left: 8px; }

@media (max-width: 860px) {
  .report { grid-template-columns: 1fr; gap: 0; padding-top: 50px; }
  .toc { display: none; }
  .news { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .page-hero { padding: 60px 0 50px; }
  .pager .wrap { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
