/* lydoptager.dk - strimmelskriverens papir: mintgrøn grund, dyb grøn skal, blæk-blå tekst, pen-rød kun til optagelse */
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin.woff2") format("woff2"); font-weight: 400 800; font-stretch: 62% 125%; font-display: swap; }

:root {
  --grund: #e8f0e3;
  --papir: #f4f8f0;
  --flade: #dbe7d4;
  --flade-2: #cfe0c7;
  --skal: #173f30;
  --skal-2: #1f5240;
  --skal-tekst: #eaf3e4;
  --blaek: #16233a;
  --blaek-2: #3b4a5e;
  --pen: #c8283c;
  --pen-moerk: #a51d2f;
  --blaa: #1f4fa0;
  --groen: #1e6b3f;
  --gul: #8a5a00;
  --mellem: clamp(16px, 4vw, 40px);
  --bredde: 1240px;
  --tekst: 1.0625rem;
  --lille: 0.9375rem;
  --h1: clamp(1.9rem, 1rem + 4.6vw, 4.4rem);
  --h2: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem);
  --timer: clamp(3.6rem, 2rem + 7vw, 7.5rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--grund); color: var(--blaek); font: 400 var(--tekst)/1.55 Archivo, system-ui, -apple-system, "Segoe UI", sans-serif; font-stretch: 100%; overflow-x: hidden; }
::selection { background: var(--pen); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blaa); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--pen-moerk); }
:focus-visible { outline: 3px solid var(--blaa); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.02em; font-weight: 750; text-wrap: balance; margin: 0; }
h1 { hyphens: auto; -webkit-hyphens: auto; font-size: var(--h1); font-stretch: 112%; letter-spacing: -0.035em; }
h2 { font-size: var(--h2); font-stretch: 108%; }
h3 { font-size: 1.2rem; font-stretch: 100%; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--bredde); margin: 0 auto; padding: 0 var(--mellem); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--blaek); color: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- Topbjælke ---------- */
.top { background: var(--skal); color: var(--skal-tekst); }
.top-inner { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--skal-tekst); text-decoration: none; font-weight: 750; font-stretch: 112%; font-size: 1.15rem; letter-spacing: -0.02em; margin-right: auto; }
.brand img { background: var(--grund); border-radius: 50%; }
.brand:hover { color: #fff; }
.menu { display: flex; gap: 4px; }
.menu a { color: var(--skal-tekst); text-decoration: none; padding: 8px 12px; font-size: var(--lille); font-weight: 550; border-radius: 999px; }
.menu a:hover { background: var(--skal-2); color: #fff; }
.menu a[aria-current="page"] { background: var(--grund); color: var(--skal); }
.menu-mobil { display: none; position: relative; }
.menu-mobil summary { list-style: none; cursor: pointer; padding: 10px 16px; border-radius: 999px; background: var(--skal-2); font-weight: 600; }
.menu-mobil summary::-webkit-details-marker { display: none; }
.menu-mobil nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--papir); padding: 8px; display: grid; min-width: 230px; z-index: 20; box-shadow: 0 12px 32px rgba(22, 35, 58, .22); border-radius: 12px; } /* taste-skill-ignore: menu er et overlay */
.menu-mobil nav a { color: var(--blaek); text-decoration: none; padding: 11px 12px; border-radius: 8px; }
.menu-mobil nav a:hover, .menu-mobil nav a[aria-current="page"] { background: var(--flade); }
@media (max-width: 900px) { .menu { display: none; } .menu-mobil { display: block; } }

/* ---------- Sidehoved ---------- */
.hoved { padding: clamp(28px, 5vw, 64px) 0 clamp(20px, 3vw, 32px); display: grid; gap: 14px; }
.hoved p { font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); max-width: 46ch; color: var(--blaek); }
.hoved .loefte { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--groen); font-size: var(--lille); }
.hoved .loefte svg { flex: none; }
.hoved-billede { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.hoved-billede figure { margin: 0; }
.hoved-billede img { border-radius: 4px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
@media (max-width: 760px) { .hoved-billede { grid-template-columns: 1fr; } }

/* ---------- Værktøjsfladen ---------- */
.vaerk { background: var(--flade); border-radius: 6px; padding: clamp(14px, 2.4vw, 28px); display: grid; gap: 18px; }
.strimmel-ramme { position: relative; }
.strimmel { display: block; width: 100%; height: clamp(150px, 22vw, 230px); border-radius: 3px; background: var(--papir); touch-action: pan-y; }
.styr { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; }
.timer { font-size: var(--timer); font-weight: 720; font-stretch: 72%; letter-spacing: -0.02em; line-height: .9; font-variant-numeric: tabular-nums; color: var(--blaek); white-space: nowrap; }
[data-tilstand="optager"] .timer { color: var(--pen-moerk); }
.knapper { display: flex; align-items: center; gap: 14px; }
.optag-knap { width: 88px; height: 88px; border-radius: 50%; border: 0; background: var(--pen); color: #fff; cursor: pointer; display: grid; place-items: center; align-content: center; gap: 2px; font: 700 .8rem Archivo, sans-serif; font-stretch: 90%; letter-spacing: .01em; transition: transform .16s var(--ease), background-color .2s; -webkit-tap-highlight-color: transparent; }
.optag-knap i { width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: border-radius .25s var(--ease), transform .25s var(--ease); }
.optag-knap:hover { background: var(--pen-moerk); }
.optag-knap:active { transform: scale(.96); }
.optag-knap:disabled { background: var(--blaek-2); cursor: progress; }
[data-tilstand="optager"] .optag-knap i, [data-tilstand="pause"] .optag-knap i { border-radius: 4px; transform: scale(.85); }
[data-tilstand="optager"] .optag-knap { animation: puls 1.6s var(--ease) infinite; }
@keyframes puls { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 40, 60, .38); } 60% { box-shadow: 0 0 0 14px rgba(200, 40, 60, 0); } } /* taste-skill-ignore: optage-puls er tilstand, ikke hvile */
.status { font-size: var(--lille); color: var(--blaek-2); justify-self: end; text-align: right; max-width: 32ch; min-height: 1.5em; }
@media (max-width: 640px) {
  .styr { grid-template-columns: 1fr auto; grid-template-areas: "timer knapper" "status status"; }
  .timer { grid-area: timer; } .knapper { grid-area: knapper; } .status { grid-area: status; justify-self: start; text-align: left; max-width: none; }
  .optag-knap { width: 76px; height: 76px; }
  .knapper { flex-direction: column; gap: 8px; }
  .knapper .knap { min-height: 40px; padding: 0 14px; }
}
.knap { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--papir); color: var(--blaek); font: 600 var(--lille) Archivo, sans-serif; cursor: pointer; text-decoration: none; transition: background-color .15s, transform .12s var(--ease); -webkit-tap-highlight-color: transparent; }
.knap:hover { background: #fff; }
.knap:active { transform: scale(.97); }
.knap:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.knap.primaer { background: var(--skal); color: var(--skal-tekst); }
.knap.primaer:hover { background: var(--skal-2); }
.knap.fare { color: var(--pen-moerk); }
.knap.lille { min-height: 40px; padding: 0 14px; font-size: .875rem; }
.knap svg { flex: none; }
.knap[aria-pressed="true"] { background: var(--blaek); color: #fff; }
.advarsel { display: flex; align-items: center; gap: 10px; color: var(--pen-moerk); font-weight: 650; padding: 2px 0; }
.advarsel::before { content: ""; flex: none; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 10px solid var(--pen); }
.fejl { background: #fbe9eb; color: var(--blaek); padding: 14px 16px; border-radius: 4px; display: grid; gap: 4px; }
.fejl strong { color: var(--pen-moerk); font-size: 1.05rem; }

/* Indstillinger */
.indst { background: var(--flade-2); border-radius: 4px; }
.indst summary { cursor: pointer; padding: 12px 16px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.indst summary::-webkit-details-marker { display: none; }
.indst summary::after { content: ""; width: 18px; height: 18px; flex: none; align-self: center; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 7l5 5 5-5' fill='none' stroke='%2316233a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .2s var(--ease); }
.indst[open] summary::after { transform: rotate(180deg); }
.indst-indhold { padding: 0 16px 16px; display: grid; gap: 14px; }
.felt { display: grid; gap: 6px; font-size: var(--lille); font-weight: 600; }
select, input[type="text"], input[type="number"] { font: 500 1rem Archivo, sans-serif; color: var(--blaek); background: var(--papir); border: 2px solid transparent; border-radius: 6px; padding: 10px 12px; min-height: 46px; max-width: 100%; }
select:focus, input[type="text"]:focus, input[type="number"]:focus { border-color: var(--blaa); outline: none; }
.valg { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.valg label { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; min-height: 32px; }
.valg label input { flex: none; }
.tom-tal { color: var(--blaek-2); font-weight: 400; }
.valg label.ikke-muligt { opacity: .5; cursor: not-allowed; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--skal); }
.lille-tekst { font-size: var(--lille); color: var(--blaek-2); }

/* Efter optagelse: klip og gem */
.efter { display: grid; gap: 14px; }
.efter h2 { font-size: 1.5rem; }
.efter h2:focus { outline: none; }
.efter-top { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 20px; }
.efter-top .felt { flex: 1 1 260px; }
.klip { position: relative; height: 34px; margin-top: -8px; }
.klip input[type="range"] { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; height: 34px; }
.klip input[type="range"]::-webkit-slider-runnable-track { background: none; height: 34px; }
.klip input[type="range"]::-moz-range-track { background: none; height: 34px; }
.klip input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 26px; height: 34px; border-radius: 0 0 6px 6px; background: var(--blaek); cursor: ew-resize; border: 0; }
.klip input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 26px; height: 34px; border-radius: 0 0 6px 6px; background: var(--blaek); cursor: ew-resize; border: 0; }
.klip input[type="range"]:focus-visible { outline: none; }
.klip input[type="range"]:focus-visible::-webkit-slider-thumb { background: var(--blaa); box-shadow: 0 0 0 3px var(--papir), 0 0 0 6px var(--blaa); } /* taste-skill-ignore: fokusring */
.klip input[type="range"]:focus-visible::-moz-range-thumb { background: var(--blaa); }
.klip-tal { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: var(--lille); font-variant-numeric: tabular-nums; }
.klip-tal b { font-weight: 700; }
.handlinger { display: flex; flex-wrap: wrap; gap: 10px; }

/* Liste over optagelser */
.liste-ramme { display: grid; gap: 12px; padding-top: 6px; }
.liste-ramme h2 { font-size: 1.5rem; }
.liste-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.opt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; background: var(--papir); padding: 10px 12px 10px 16px; border-radius: 4px; }
.opt.aktiv { background: #fff; }
.opt.aktiv strong::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--pen); margin-right: 8px; vertical-align: 1px; }
.opt-tekst { display: grid; gap: 2px; min-width: 0; }
.opt-tekst strong { font-weight: 650; overflow-wrap: anywhere; }
.opt-tekst span { font-size: .875rem; color: var(--blaek-2); font-variant-numeric: tabular-nums; }
.opt-knapper { display: flex; gap: 6px; flex-wrap: wrap; }
.tom { color: var(--blaek-2); }

/* Måler */
.maal-tal { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 28px; }
.stort-tal { font-size: clamp(4rem, 2rem + 9vw, 9rem); font-weight: 720; font-stretch: 72%; line-height: .85; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.stort-tal small { font-size: .32em; font-stretch: 100%; letter-spacing: 0; margin-left: .15em; }
.maal-noegle { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 24px; font-variant-numeric: tabular-nums; }
.maal-noegle dt { font-size: .8125rem; color: var(--blaek-2); }
.maal-noegle dd { margin: 0; font-weight: 700; font-size: 1.25rem; grid-row: 2; }
.niveau-tekst { font-weight: 600; font-size: 1.1rem; }
.bar { height: 22px; background: var(--papir); border-radius: 3px; overflow: hidden; position: relative; }
.bar i { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); background: linear-gradient(90deg, var(--groen) 0 70%, #c99a1c 70% 88%, var(--pen) 88% 100%); } /* taste-skill-ignore: niveaumålerens faste zoner (data-ui) */
.dom { font-weight: 600; padding: 10px 14px; border-radius: 4px; background: var(--papir); }
.dom.groen { background: #d3ead8; color: #134a2b; }
.dom.gul { background: #f6e7c4; color: #5c3d00; }
.dom.rod { background: #fbe0e3; color: var(--pen-moerk); }
.detaljer { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: var(--lille); }
.detaljer dt { color: var(--blaek-2); }
.detaljer dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.kal { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.kal input { width: 9ch; }
video { width: 100%; max-height: 70vh; background: var(--blaek); border-radius: 4px; }
audio { width: 100%; }

/* ---------- Indhold (Read) ---------- */
.indhold { padding: clamp(56px, 8vw, 120px) 0 0; display: grid; gap: clamp(56px, 8vw, 112px); }
.afsnit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(18px, 4vw, 64px); align-items: start; }
.afsnit > h2 { position: sticky; top: 16px; }
.afsnit-venstre { display: grid; gap: 24px; align-content: start; }
.afsnit-venstre figure { margin: 0; }
.afsnit-venstre img { border-radius: 4px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.afsnit .tekst { display: grid; gap: 16px; max-width: 68ch; }
.afsnit .tekst h3 { margin-top: 10px; }
.afsnit ol, .afsnit ul { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.afsnit li::marker { color: var(--pen); font-weight: 700; }
@media (max-width: 860px) { .afsnit { grid-template-columns: 1fr; } .afsnit > h2 { position: static; } }
.felt-groen { background: var(--skal); color: var(--skal-tekst); border-radius: 6px; padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 4vw, 56px); }
.felt-groen h2 { color: #fff; }
.felt-groen p { color: var(--skal-tekst); }
.felt-groen ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.felt-groen li::marker { color: #ff8a99; }
@media (max-width: 760px) { .felt-groen { grid-template-columns: 1fr; } }
.faq { display: grid; gap: 22px; }
.faq h3 { font-size: 1.15rem; }
.faq div { display: grid; gap: 6px; }
.tabel-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--papir); border-radius: 4px; }
table { border-collapse: collapse; width: 100%; font-size: var(--lille); font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 14px; white-space: nowrap; }
thead th { background: var(--flade-2); font-weight: 700; }
tbody tr:nth-child(even) td, tbody tr:nth-child(even) th { background: #eaf1e6; }
tbody th { font-weight: 600; background: var(--papir); }
@media (max-width: 640px) { th:first-child, td:first-child { position: sticky; left: 0; z-index: 1; background: var(--papir); white-space: normal; max-width: 45vw; min-width: 9rem; } }
.kort-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.kort-nav a { background: var(--papir); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--blaek); }
.kort-nav a:hover { background: #fff; color: var(--pen-moerk); }
kbd { font: 600 .9em Archivo, sans-serif; background: var(--papir); padding: 1px 7px; border-radius: 4px; }

/* ---------- Bund ---------- */
.bund { margin-top: clamp(80px, 10vw, 160px); background: var(--skal); color: var(--skal-tekst); padding: clamp(40px, 6vw, 72px) 0 28px; }
.bund-navn { font-size: clamp(2rem, 0.4rem + 9vw, 9.5rem); font-weight: 780; font-stretch: 112%; letter-spacing: -0.045em; line-height: .9; color: #fff; margin-bottom: clamp(28px, 4vw, 48px); white-space: nowrap; }
.bund-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); }
.bund-loefte { font-size: 1.15rem; max-width: 34ch; }
.bund-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bund h2 { font-size: 1rem; color: #fff; margin-bottom: 10px; letter-spacing: 0; }
.bund ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bund a { color: var(--skal-tekst); text-decoration: none; }
.bund a:hover { color: #fff; text-decoration: underline; }
.bund-sidst { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 18px; font-size: var(--lille); color: #b9d0bf; }
@media (max-width: 760px) { .bund-grid { grid-template-columns: 1fr; } .bund-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .bund-links { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.valg-gruppe { border: 0; padding: 0; margin: 0; }
.valg-gruppe legend { padding: 0; margin-bottom: 6px; width: 100%; }
.tal-midt { align-self: center; font-variant-numeric: tabular-nums; }
.knap.stor { min-height: 56px; padding: 0 26px; font-size: 1rem; }
.hoved-tekst { display: grid; gap: 14px; align-content: start; }
.felt-groen .tekst { display: grid; gap: 14px; }
.indhold-vejl { padding-top: clamp(32px, 5vw, 64px); }
@media (max-height: 500px) and (orientation: landscape) {
  .hoved { padding: 20px 0 16px; gap: 8px; }
  h1 { font-size: 2.1rem; }
  .hoved p { font-size: 1rem; }
  .strimmel { height: 140px; }
  .timer { font-size: 3.4rem; }
}
.skip:hover, .skip:focus { color: #fff; }
a.knap:hover { color: var(--blaek); }
a.knap.primaer, a.knap.primaer:hover { color: var(--skal-tekst); }
.bekraeft { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.bekraeft span { font-weight: 600; font-size: var(--lille); color: var(--pen-moerk); }
.knap.fare-fyldt { background: var(--blaek); color: #fff; }
.knap.fare-fyldt:hover { background: #24344f; }
@media (max-width: 640px) { .valg label { min-height: 44px; } input[type="checkbox"] { width: 24px; height: 24px; } }
