/* Phønix Audit – hjemmesidens stil (genereret fra designet i v1) */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/barlow-condensed-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-condensed-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); }

  /* Layout: et instrumentpanel – smal tekstspalte, data i mono, skriverstrimmel som signatur. */
  :root {
    --bg: #f3f4f5;  --panel: #ffffff;  --band: #e9ebed;
    --ink: #15181b; --ink-2: #3a4148;  --muted: #66707a;  --line: #d8dce0;
    --accent: #e31936; --accent-ink: #ffffff; --accent-wash: rgba(227, 25, 54, 0.07);
    --grid: #eceef0; --grid-strong: #dde1e4;
    --f-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
    --f-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
    --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --s-1: 0.875rem; --s0: 1rem; --s1: 1.25rem; --s2: 1.75rem; --s3: 2.5rem; --s4: clamp(2.6rem, 5.5vw, 4.25rem);
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #111315; --panel: #181b1e; --band: #1d2124;
      --ink: #eceef0; --ink-2: #c3c9cf; --muted: #929ba4; --line: #2b3035;
      --accent: #ff4a62; --accent-ink: #15181b; --accent-wash: rgba(255, 74, 98, 0.10);
      --grid: #1f2326; --grid-strong: #2a2f33; color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg: #111315; --panel: #181b1e; --band: #1d2124;
    --ink: #eceef0; --ink-2: #c3c9cf; --muted: #929ba4; --line: #2b3035;
    --accent: #ff4a62; --accent-ink: #15181b; --accent-wash: rgba(255, 74, 98, 0.10);
    --grid: #1f2326; --grid-strong: #2a2f33; color-scheme: dark;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--s0)/1.6 var(--f-body); }
  img { max-width: 100%; }
  a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
  a:focus-visible, button:focus-visible, label:focus-visible, input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
  h1, h2, .h1 { font-family: var(--f-display); font-weight: 600; line-height: 1.05; letter-spacing: 0.005em; text-wrap: balance; margin: 0; }
  h1, .h1 { font-size: var(--s4); }
  h2 { font-size: var(--s3); }
  h3 { font: 600 var(--s1)/1.3 var(--f-body); margin: 0; }
  p { margin: 0; }
  .mono { font-family: var(--f-mono); font-size: var(--s-1); }

  .wrap { width: 100%; max-width: 1120px; margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .skip { position: absolute; left: -9999px; }
  .skip:focus { left: 16px; top: 16px; background: var(--panel); padding: 8px 12px; z-index: 20; }

  /* header */
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--panel); }
  .site-h { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--panel); border-bottom: 1px solid var(--line); }
  .bar { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
  .brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
  .logo { display: inline-block; width: 112px; height: 18px; background: var(--accent);
    -webkit-mask: url(/assets/phoenix-logo.png) left center / contain no-repeat; mask: url(/assets/phoenix-logo.png) left center / contain no-repeat; }
  .brand-word { font: 600 1.35rem/1 var(--f-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
  .nav { display: flex; align-items: center; gap: 22px; margin-left: auto; flex-wrap: wrap; }
  .nav a { text-decoration: none; font-weight: 500; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
  .langs { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 3px; padding: 2px; }
  .langs a { font: 500 12px/1 var(--f-mono); padding: 5px 7px; border: 0; border-radius: 2px; letter-spacing: 0.04em; }
  .langs a[aria-current="true"] { background: var(--ink); color: var(--panel); }
  .navtoggle { position: absolute; opacity: 0; pointer-events: none; }
  .navbtn { display: none; margin-left: auto; font: 500 13px var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em;
    border: 1px solid var(--line); border-radius: 3px; padding: 7px 10px; cursor: pointer; }
  @media (max-width: 760px) {
    .navbtn { display: block; }
    .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding-bottom: 14px; margin-left: 0; }
    .navtoggle:checked ~ .nav { display: flex; }
  }

  /* bånd og blokke */
  .band { padding-block: clamp(48px, 7vw, 88px); }
  .band.alt { background: var(--band); }
  .band:not(.hero):not(.alt):not(.cta) + .band:not(.alt):not(.cta) { padding-top: 0; }
  .intro { color: var(--ink-2); max-width: 62ch; margin-top: 14px; font-size: var(--s1); line-height: 1.5; }

  .hero { padding-block: clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
  .hero-grid { display: grid; gap: 40px; align-items: center; }
  .with-curve .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  @media (max-width: 900px) { .with-curve .hero-grid { grid-template-columns: minmax(0, 1fr); } }
  .hero-copy { display: grid; gap: 20px; min-width: 0; }
  .eyebrow { font: 500 13px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
  .lede { font-size: var(--s1); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
  .actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
  .btn { display: inline-block; text-decoration: none; font-weight: 600; padding: 11px 18px; border-radius: 3px;
    border: 1px solid var(--ink); color: var(--ink); background: transparent; }
  .btn:hover { background: var(--ink); color: var(--panel); }
  .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
  .btn.primary:hover { filter: brightness(0.92); }
  .hero-fig { min-width: 0; }

  .features { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 1px; background: var(--line);
    border: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
  .features li { background: var(--panel); padding: 26px 24px 28px; display: grid; gap: 10px; align-content: start; }
  .features h3::before { content: ""; display: block; width: 18px; height: 2px; background: var(--accent); margin-bottom: 14px; }
  .features p { color: var(--ink-2); }

  .steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: s; }
  .steps li { display: grid; gap: 12px; align-content: start; border-top: 2px solid var(--ink); padding-top: 14px; }
  .step-n { font: 500 13px var(--f-mono); color: var(--accent); letter-spacing: 0.08em; }
  .steps p { color: var(--ink-2); margin-top: 6px; }

  .text-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }
  @media (max-width: 800px) { .text-grid { grid-template-columns: minmax(0, 1fr); } }
  .prose { max-width: 66ch; color: var(--ink-2); display: grid; gap: 14px; min-width: 0; }
  .prose :is(h3, h4) { color: var(--ink); margin-top: 8px; }
  .prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
  .prose li::marker { color: var(--accent); }
  .prose strong { color: var(--ink); font-weight: 600; }
  .prose code { font-family: var(--f-mono); font-size: 0.9em; background: var(--band); padding: 1px 5px; border-radius: 2px; }

  .facts { margin: 32px 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
  .facts div { background: var(--panel); padding: 22px 22px 24px; display: grid; gap: 6px; align-content: start; }
  .facts dt { font: 500 var(--s2)/1.1 var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
  .facts dd { margin: 0; color: var(--muted); font-size: var(--s-1); }

  .cta { background: var(--ink); color: var(--panel); }
  .cta h2 { color: var(--panel); }
  .cta p { color: var(--line); margin-top: 10px; max-width: 56ch; }
  .cta-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
  .cta-row > div { min-width: 0; }

  /* nyheder */
  .news-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
  .news-list li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
  @media (max-width: 600px) { .news-list li { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
  .news-list time, .article time { font: 400 var(--s-1) var(--f-mono); color: var(--muted); }
  .news-list a { text-decoration: none; }
  .news-list a:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); }
  .news-list p { color: var(--ink-2); margin-top: 6px; }
  .article { display: grid; gap: 18px; max-width: 70ch; }
  .empty { color: var(--muted); margin-top: 24px; }

  /* vedligehold */
  .notice { background: var(--accent); color: var(--accent-ink); font-weight: 500; font-size: var(--s-1); padding-block: 9px; }
  .nav-closed { margin-left: auto; }
  .maint { min-height: 50vh; display: grid; align-items: center; }
  .maint-box { display: grid; gap: 16px; max-width: 760px; }

  /* sidefod */
  .site-f { border-top: 1px solid var(--line); background: var(--panel); padding-block: 36px 44px; font-size: var(--s-1); color: var(--muted); }
  .foot { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
  .foot > div { display: grid; gap: 6px; align-content: start; min-width: 0; }
  .f-brand { display: flex; align-items: baseline; gap: 8px; }
  .f-label { font: 500 12px var(--f-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); }
  .f-langs { display: flex; gap: 14px; flex-wrap: wrap; }

  @media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

  /* kogekurve */
  .curve { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 14px 14px 10px; }
  .curve svg { display: block; width: 100%; height: auto; }
  .curve .paper { stroke: none; }
  .curve .g-minor { stroke: var(--grid); stroke-width: 0.6; }
  .curve .g-major { stroke: var(--grid-strong); stroke-width: 0.8; }
  .curve .hold { fill: var(--accent-wash); }
  .curve .ref { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 4 4; }
  .curve .ref-l { fill: var(--accent); font: 500 11px var(--f-mono); }
  .curve .tick { fill: var(--muted); font: 400 11px var(--f-mono); }
  .curve .phase { fill: var(--ink-2); font: 600 12px var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; }
  .curve .trace { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
  .curve figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 8px;
  font: 400 12px var(--f-mono); color: var(--muted); }
  .curve .readout { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

  /* billeder (v2.1) */
  .img { margin: 0; display: grid; gap: 10px; }
  .img img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
  .img-text { max-width: 66ch; }
  .img-wide { max-width: 100%; }
  .img figcaption { color: var(--muted); font-size: var(--s-1); }
