:root {
  --marine: #10263A; --stovet: #9DB6C6; --lys: #CFDDE5; --sand: #EADFCB; --tegl: #C4553B; --hvid: #FBF8F2;
  --daempet: #3D5265;
  --disp: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 400 1rem/1.45 var(--body); color: var(--marine); background: var(--hvid);
  min-height: 100vh; min-height: 100dvh; transition: background .2s;
}
body[data-bg="sand"] { background: var(--sand); }
body[data-bg="lys"] { background: var(--lys); }
body[data-bg="marine"] { background: var(--marine); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.skaerm {
  max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  padding: calc(22px + env(safe-area-inset-top)) 20px calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 16px;
}
.venter { margin: auto; color: var(--daempet); }

/* top */
.top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.logo { font: 500 1.375rem var(--disp); letter-spacing: -.03em; text-decoration: none; }
.logo b { color: var(--tegl); font-weight: 700; }
.pille {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid currentColor; background: transparent;
  display: inline-flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.pille .bars { width: 18px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }

/* typografi */
h1, h2, .tal { font-family: var(--disp); font-weight: 700; letter-spacing: -.045em; line-height: .96; }
h1 { font-size: clamp(2.4rem, 12.5vw, 3.25rem); margin-top: 6px; overflow-wrap: anywhere; }
h1.lang { font-size: clamp(2rem, 10vw, 2.5rem); }
h1 em { font-style: normal; color: var(--tegl); }
h2 { font-size: 1.5rem; letter-spacing: -.04em; line-height: 1; }
.lille { font-size: .875rem; }
.daempet { color: var(--daempet); }
.etiket { font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* knapper */
.knap {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px; background: var(--tegl); color: #fff; font-weight: 700; font-size: 1.1875rem;
  text-decoration: none; cursor: pointer; text-align: center;
}
.knap.moerk { background: var(--marine); color: var(--sand); font-weight: 600; font-size: 1rem; min-height: 48px; padding: 0 22px; }
.knap.kant { background: transparent; color: var(--marine); border: 2px solid var(--marine); font-weight: 600; font-size: 1rem; min-height: 48px; padding: 0 22px; }
.knap.bred { width: 100%; }
.knap[disabled] { opacity: .55; cursor: default; }
.tekstknap { background: none; border: 0; padding: 12px 0; min-height: 44px; font-weight: 600; font-size: .9375rem; text-decoration: underline; cursor: pointer; }
.raekkeknapper { display: flex; gap: 8px; flex-wrap: wrap; }
.bund { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.midt { text-align: center; }

/* kort */
.kort { border-radius: 24px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.kort.marine { background: var(--marine); color: var(--sand); }
.kort.marine .etiket { color: var(--stovet); }
.kort.sand { background: var(--sand); }
body[data-bg="sand"] .kort.sand { background: var(--hvid); }
.kort .stor { font-family: var(--disp); font-weight: 700; font-size: clamp(1.9rem, 9.5vw, 2.4rem); line-height: .96; letter-spacing: -.045em; overflow-wrap: anywhere; }
.kort .beloeb { font-family: var(--disp); font-weight: 700; font-size: clamp(2.4rem, 12vw, 3.1rem); line-height: 1; letter-spacing: -.045em; }
.maerker { display: flex; gap: 8px; flex-wrap: wrap; }
.maerke { border: 1.5px solid var(--stovet); color: var(--lys); border-radius: 999px; padding: 5px 12px; font-size: .875rem; font-weight: 600; }
.streger { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
.streger i { height: 10px; border-radius: 999px; background: var(--hvid); }
.streger i.paa { background: var(--marine); }
.hoved { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hoved a { font-size: .9375rem; font-weight: 600; padding: 12px 0; }
.note { background: var(--lys); border-radius: 14px; padding: 12px 14px; font-size: .875rem; }
body[data-bg="lys"] .note { background: var(--hvid); }

/* lister */
.liste { display: flex; flex-direction: column; border-bottom: 2px solid var(--marine); }
.liste:empty { display: none; }
.raekke {
  display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 2px solid var(--marine);
  text-decoration: none; min-height: 62px; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; width: 100%;
}
.raekke.stiplet { border-top-style: dashed; }
.raekke .tekst { flex: 1; min-width: 0; }
.raekke .tekst b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.raekke .tekst span { display: block; font-size: .875rem; color: var(--daempet); }
body[data-bg="lys"] .raekke .tekst span { color: var(--marine); }
.raekke .hoejre { font-size: .9375rem; font-weight: 600; white-space: nowrap; }
.raekke .hoejre.fed { font-size: 1rem; font-weight: 700; }
.raekke .aar { width: 64px; flex: none; font-family: var(--disp); font-weight: 700; font-size: 1.5rem; line-height: 1; letter-spacing: -.04em; align-self: flex-start; padding-top: 2px; }
.raekke .aar.tegl { color: var(--tegl); }
.prik { display: inline-block; width: 9px; height: 9px; border-radius: 999px; background: var(--tegl); margin-right: 7px; }
.flueben { width: 44px; height: 44px; flex: none; border: 0; background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.flueben i { width: 26px; height: 26px; border: 2px solid var(--marine); border-radius: 8px; display: block; }
.tom { padding: 6px 0 2px; color: var(--daempet); }

/* fliser */
.fliser { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.flise {
  background: var(--sand); border-radius: 18px; padding: 14px 16px; min-height: 96px; display: flex; flex-direction: column;
  justify-content: space-between; gap: 8px; text-decoration: none; font-weight: 600;
}
.flise.fyldt { background: var(--marine); color: var(--sand); }
.flise .antal { font-family: var(--disp); font-weight: 700; font-size: 1.875rem; line-height: 1; letter-spacing: -.04em; }
.flise .mangler { font-size: .875rem; display: flex; align-items: center; }

/* formularer */
form { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.felt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.felt label, .feltnavn { font-size: .875rem; font-weight: 600; }
.felt input, .felt select, .felt textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--marine); border-radius: 14px;
  background: var(--hvid); font-size: 1rem; font-weight: 500; appearance: none; -webkit-appearance: none;
}
.felt textarea { min-height: 96px; resize: vertical; }
.felt select { background-image: linear-gradient(45deg, transparent 50%, var(--marine) 50%), linear-gradient(135deg, var(--marine) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.to { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.valg { display: flex; flex-wrap: wrap; gap: 8px; }
.valg button {
  min-height: 44px; padding: 0 16px; border: 2px solid var(--marine); border-radius: 999px; background: transparent;
  font-size: .9375rem; font-weight: 600; cursor: pointer;
}
.valg button[aria-pressed="true"] { background: var(--marine); color: var(--sand); }
.kilder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kilde {
  min-height: 112px; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between;
  font-size: 1.0625rem; font-weight: 600; cursor: pointer; background: var(--marine); color: var(--sand); border: 2px solid var(--marine);
}
.kilde.lys { background: var(--hvid); color: var(--marine); }
.kilde:focus-within { outline: 3px solid var(--tegl); outline-offset: 3px; }
.skjult { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.valgtfil { display: flex; align-items: center; gap: 12px; background: var(--hvid); border-radius: 14px; padding: 10px 14px; font-weight: 600; font-size: .9375rem; overflow-wrap: anywhere; }
.tjek { display: flex; align-items: center; gap: 14px; min-height: 66px; border-top: 2px solid var(--marine); cursor: pointer; }
.tjek input { width: 24px; height: 24px; flex: none; accent-color: var(--marine); }
.tjek .tekst { flex: 1; }
.tjek .tekst b { display: block; font-weight: 600; }
.tjek .tekst span { display: block; font-size: .875rem; color: var(--daempet); }
.tjek .antal { font-weight: 700; font-size: .9375rem; }
.forhaandsvis { width: 100%; border-radius: 18px; border: 2px solid var(--marine); display: block; }

/* spørg */
.samtale { display: flex; flex-direction: column; gap: 12px; }
.boble { max-width: 86%; padding: 12px 16px; line-height: 1.4; }
.boble.mig { align-self: flex-end; background: var(--marine); color: var(--sand); border-radius: 20px 20px 4px 20px; }
.boble.svar { align-self: flex-start; background: var(--sand); border-radius: 20px 20px 20px 4px; display: flex; flex-direction: column; gap: 6px; }
.boble.svar a { font-size: .875rem; font-weight: 600; }
.spoergfelt { display: flex; gap: 8px; align-items: flex-end; flex: none; }
.spoergfelt .felt { flex: 1; }
.rund { width: 52px; height: 52px; flex: none; border: 0; border-radius: 999px; background: var(--tegl); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* menu */
.menu {
  position: fixed; inset: 0; z-index: 50; background: var(--marine); color: var(--sand); overflow-y: auto;
  display: flex; justify-content: center;
}
.menu .skaerm { width: 100%; }
.menu nav { margin: auto 0; display: flex; flex-direction: column; gap: 18px; padding: 24px 0; }
.menu nav a { font: 700 clamp(2.1rem, 11vw, 2.75rem)/1 var(--disp); letter-spacing: -.045em; text-decoration: none; }
.menu nav a.cta { color: var(--tegl); }
.menu .fod { display: flex; justify-content: space-between; font-weight: 600; }
.menu .fod a { padding: 12px 0; }

/* besked */
#besked {
  position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translate(-50%, -20px);
  background: var(--marine); color: var(--sand); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .9375rem;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100% - 40px); text-align: center;
}
#besked.vis { opacity: 1; transform: translate(-50%, 0); }
body[data-bg="marine"] #besked { background: var(--sand); color: var(--marine); }

/* udskrift (salgsmappe) */
#udskrift { display: none; }
@media print {
  body { background: #fff !important; }
  #app, #besked, .menu { display: none !important; }
  #udskrift { display: block; font: 400 11pt/1.45 var(--body); color: #000; padding: 0; }
  #udskrift h1 { font-size: 28pt; margin: 0 0 4pt; }
  #udskrift h2 { font-size: 15pt; margin: 20pt 0 6pt; border-bottom: 1.5pt solid #000; padding-bottom: 4pt; }
  #udskrift table { width: 100%; border-collapse: collapse; }
  #udskrift th, #udskrift td { text-align: left; vertical-align: top; padding: 5pt 8pt 5pt 0; border-bottom: .5pt solid #999; }
  #udskrift th { font-size: 9pt; text-transform: uppercase; letter-spacing: .04em; }
  #udskrift .fodnote { margin-top: 24pt; font-size: 9pt; color: #444; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* forslag til vedligeholdelse og henvisninger på forsiden */
.stak { display: flex; flex-direction: column; gap: 12px; }
.kort.forslag { gap: 8px; padding: 18px 20px; }
.kort.forslag b { font-size: 1.0625rem; }
.kort.forslag .raekkeknapper { align-items: center; gap: 18px; padding-top: 4px; }
.kort.forslag .knap.moerk { min-height: 44px; }
.henvis { display: block; padding: 12px 0 0; font-size: .9375rem; font-weight: 600; }
.raekke .tekst b .prik { margin-right: 8px; vertical-align: middle; }

/* abonnement, privatliv og vilkår */
.punkter { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 4px; font-size: .9375rem; }
.doc h2 { margin: 26px 0 8px; }
.doc p, .doc li { margin-bottom: 10px; }
.doc ul { padding-left: 1.2em; }
.ph { background: var(--sand); padding: 0 .3em; border-radius: 4px; font-weight: 600; }
