/* Lumoral SoMe. Farver fra lumoral/docs/design-profil-grafik.md. Accent (#C521EB) kun til små ting. */
:root {
  --ink: #2E2A52; --ink-dyb: #1E1B38; --lilla: #4D3677; --lilla-700: #3E2B61; --accent: #C521EB; --lys-lilla: #EBC3F6;
  --flade: #F1EFF7; --tekst: #504C6E; --smaa: #787494; --linje: #E2DFEC; --linje-2: #CFCADF; --bg: #F7F6FB; --kort: #FFFFFF;
  --groen: #1F7A3A; --groen-bg: #E8F6EC; --gul: #8A5A00; --gul-bg: #FFF5D6; --roed: #B42318; --roed-bg: #FDECEA;
  --blaa: #1D5FA8; --blaa-bg: #E7F0FB; --fokus: #0B61CD;
  --r: 12px; --r-sm: 8px;
  --sh-1: 0 1px 2px rgba(46,42,82,.07); --sh-2: 0 6px 20px rgba(46,42,82,.09); --sh-3: 0 24px 60px rgba(30,27,56,.22);
  --font: "Avenir Next", Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--lilla); }
:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; border-radius: 6px; }
.skjult { display: none !important; }
.muted { color: var(--smaa); }
.lille { font-size: 13px; }
h1 { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h2 { font-size: 18px; margin: 0 0 10px; }
h3 { font-size: 15px; margin: 0 0 6px; }

/* knapper */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 10px;
  padding: 8px 14px; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none; background: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-lilla { background: var(--lilla); color: #fff; }
.btn-lilla:hover { background: var(--lilla-700); }
.btn-hvid { background: #fff; border-color: var(--linje-2); color: var(--ink); }
.btn-hvid:hover { background: var(--flade); }
.btn-ghost { color: var(--tekst); padding: 6px 10px; }
.btn-ghost:hover { background: var(--flade); color: var(--ink); }
.btn-groen { background: var(--groen); color: #fff; }
.btn-roed { color: var(--roed); border-color: #F3C3BE; background: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-lille { padding: 4px 9px; font-size: 13px; border-radius: 8px; }

/* topbar */
.top { position: sticky; top: 0; z-index: 30; background: linear-gradient(180deg, var(--ink), var(--ink-dyb)); color: #fff; }
.top-ind { max-width: 1480px; margin: 0 auto; padding: 0 20px; height: 58px; display: flex; align-items: center; gap: 22px; }
.logo { font-weight: 700; font-size: 19px; letter-spacing: .01em; text-decoration: none; color: #fff; display: flex; align-items: baseline; gap: 2px; }
.logo i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; margin-left: 1px; }
.logo small { font-weight: 500; font-size: 13px; color: var(--lys-lilla); margin-left: 8px; }
.nav { display: flex; gap: 4px; }
.nav a { color: #D9D5EA; text-decoration: none; padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.aktiv { background: rgba(255,255,255,.14); color: #fff; }
.top-hoejre { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: #D9D5EA; }
.top-hoejre .btn-ghost { color: #D9D5EA; }
.top-hoejre .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

.side { max-width: 1480px; margin: 0 auto; padding: 24px 20px 80px; }
.sidehoved { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sidehoved p { margin: 4px 0 0; color: var(--tekst); }
.sidehoved .handlinger { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* piller */
.pille { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--flade); color: var(--tekst); white-space: nowrap; }
.p-groen { background: var(--groen-bg); color: var(--groen); }
.p-gul { background: var(--gul-bg); color: var(--gul); }
.p-roed { background: var(--roed-bg); color: var(--roed); }
.p-blaa { background: var(--blaa-bg); color: var(--blaa); }
.p-lilla { background: #EFE6FA; color: var(--lilla); }
.prik { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.prik.Grøn { background: var(--groen); } .prik.Gul { background: #D49B00; } .prik.Rød { background: var(--roed); }

/* filtre */
.filtre { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filtre select, .felt input, .felt select, .felt textarea { border: 1px solid var(--linje-2); border-radius: 9px; padding: 7px 10px; background: #fff; }
.chip { border: 1px solid var(--linje-2); background: #fff; border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--tekst); }
.chip.aktiv { background: var(--ink); border-color: var(--ink); color: #fff; }

/* planlæg-siden */
.plan { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
.panel { background: var(--kort); border: 1px solid var(--linje); border-radius: var(--r); box-shadow: var(--sh-1); }
.panel-hoved { padding: 14px 16px 10px; border-bottom: 1px solid var(--linje); }
.bankliste { padding: 10px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 230px); overflow: auto; }
.plan .panel.bank { position: sticky; top: 76px; }
.ide { border: 1px solid var(--linje); border-radius: 10px; padding: 10px 12px; background: #fff; cursor: grab; position: relative; }
.ide:hover { border-color: var(--linje-2); box-shadow: var(--sh-2); }
.ide.traek { opacity: .4; }
.ide-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--smaa); }
.ide-titel { font-weight: 650; margin: 4px 0 2px; line-height: 1.3; }
.stjerne { color: #D49B00; }
.ide .aabn { position: absolute; right: 6px; top: 6px; }

.statlinje { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.stat { background: #fff; border: 1px solid var(--linje); border-radius: 10px; padding: 8px 12px; font-size: 13px; min-width: 170px; }
.stat b { display: block; font-size: 16px; }
.stat.advar { border-color: #EBCB7A; background: var(--gul-bg); }

.uge { background: #fff; border: 1px solid var(--linje); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; }
.uge-hoved { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 9px 14px; background: var(--flade); font-size: 13px; font-weight: 600; }
.maerkedag { background: #fff; border: 1px solid var(--lys-lilla); color: var(--lilla); border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 600; }
.pladser { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
.plads { border: 2px dashed var(--linje-2); border-radius: 10px; min-height: 96px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.plads.over { border-color: var(--accent); background: #FBF2FE; }
.plads-dag { font-size: 12px; font-weight: 700; color: var(--smaa); text-transform: uppercase; letter-spacing: .04em; }
.plads-tom { color: var(--smaa); font-size: 13px; margin: auto; text-align: center; }
.opslagkort { border: 1px solid var(--linje); border-left: 4px solid var(--lilla); border-radius: 9px; padding: 8px 10px; background: #fff; cursor: pointer; text-decoration: none; color: inherit; display: block; }
.opslagkort:hover { box-shadow: var(--sh-2); }
.opslagkort .t { font-weight: 650; line-height: 1.3; font-size: 14px; }
.opslagkort .m { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.opslagkort.st-Godkendt { border-left-color: var(--groen); }
.opslagkort.st-Planlagt { border-left-color: var(--blaa); }
.opslagkort.st-Udgivet { border-left-color: var(--smaa); opacity: .8; }
.opslagkort.st-Ret { border-left-color: var(--roed); }
.opslagkort .tre { color: var(--roed); font-size: 12px; font-weight: 600; }
.andre { padding: 0 12px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* banken */
.gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.bankkort { background: #fff; border: 1px solid var(--linje); border-radius: var(--r); padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.bankkort:hover { box-shadow: var(--sh-2); }
.bankkort .krog { color: var(--tekst); font-size: 14px; }
.bankkort.Brugt, .bankkort.Droppet { opacity: .6; }

/* skuffe og modal */
.slør { position: fixed; inset: 0; background: rgba(30,27,56,.45); z-index: 50; display: flex; justify-content: flex-end; }
.slør.midt { justify-content: center; align-items: center; padding: 16px; }
.skuffe { width: min(760px, 100%); height: 100%; background: #fff; overflow: auto; padding: 22px 24px 60px; box-shadow: var(--sh-3); }
.modal { width: min(520px, 100%); background: #fff; border-radius: 16px; padding: 22px; box-shadow: var(--sh-3); max-height: 90vh; overflow: auto; }
.knapper { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.blok { border-top: 1px solid var(--linje); padding-top: 12px; margin-top: 14px; }
.blok h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--smaa); }
.pre { white-space: pre-wrap; font-size: 14px; }
.hook { border: 1px solid var(--linje); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; font-size: 14px; }
.hook.valgt { border-color: var(--lilla); background: #F7F2FD; }
.hook label { display: flex; gap: 8px; cursor: pointer; }
.hook .meta { font-size: 12.5px; color: var(--smaa); margin-top: 3px; }

/* editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
.hoejrespalte { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 92px); overflow: auto; padding-bottom: 8px; }
.kort { background: #fff; border: 1px solid var(--linje); border-radius: var(--r); padding: 16px; }
.felt { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.felt > label { font-weight: 650; font-size: 13.5px; display: flex; gap: 8px; align-items: baseline; }
.felt input[type=file] { border: 0; padding: 0; }
.felt textarea { min-height: 90px; resize: vertical; line-height: 1.45; }
.felt textarea.hoej { min-height: 230px; }
.taeller { margin-left: auto; font-weight: 500; font-size: 12.5px; color: var(--smaa); }
.taeller.ude { color: var(--roed); font-weight: 650; }
.taeller.ok { color: var(--groen); }
.gemmer { font-size: 12.5px; color: var(--smaa); }

.faner { display: flex; gap: 4px; margin-bottom: 10px; }
.fane { border: 0; background: var(--flade); border-radius: 8px; padding: 5px 11px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--tekst); }
.fane.aktiv { background: var(--ink); color: #fff; }

/* forhåndsvisning */
.ig, .fb { max-width: 330px; margin: 0 auto; border: 1px solid #DBDBDB; border-radius: 10px; overflow: hidden; background: #fff; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 14px; color: #000; }
.ig-hoved, .fb-hoved { display: flex; align-items: center; gap: 9px; padding: 9px 11px; font-weight: 600; font-size: 13.5px; }
.ig-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(160deg, var(--ink), var(--lilla)); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.ig-billede { aspect-ratio: 4 / 5; background: linear-gradient(180deg, var(--ink), var(--ink-dyb)); color: #fff; display: flex; align-items: flex-end; padding: 26px 22px; position: relative; }
.ig-billede.reel { aspect-ratio: 9 / 16; max-height: 520px; margin: 0 auto; }
.ig-billede img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ig-billede .overlay { position: relative; font-size: 22px; font-weight: 700; line-height: 1.2; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.ig-billede .overlay i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; margin-left: 3px; }
.ig-billede .fmt { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 11.5px; border-radius: 6px; padding: 2px 7px; }
.ig-tekst { padding: 9px 12px 12px; white-space: pre-wrap; line-height: 1.4; }
.ig-tekst b { font-weight: 600; }
.ig-mere { color: #737373; cursor: pointer; }
.fb-tekst { padding: 0 12px 10px; white-space: pre-wrap; line-height: 1.35; }
.fb-tekst a { color: #0064D1; text-decoration: none; word-break: break-all; }
.fb-link { border-top: 1px solid #DDD; background: #F0F2F5; padding: 9px 12px; font-size: 12.5px; color: #65676B; }
.fb-link b { display: block; color: #050505; font-size: 14px; }

/* lovtjek */
.lovtjek-hoved { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.lampe { width: 14px; height: 14px; border-radius: 50%; }
.lampe.Grøn { background: var(--groen); box-shadow: 0 0 0 4px var(--groen-bg); }
.lampe.Gul { background: #D49B00; box-shadow: 0 0 0 4px var(--gul-bg); }
.lampe.Rød { background: var(--roed); box-shadow: 0 0 0 4px var(--roed-bg); }
.fund { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fund li { border-radius: 8px; padding: 7px 9px; font-size: 13px; }
.fund li.rød { background: var(--roed-bg); }
.fund li.gul { background: var(--gul-bg); }
.fund .u { color: var(--tekst); font-style: italic; display: block; margin-top: 2px; }

/* trin til Meta */
.trin { counter-reset: t; list-style: none; padding: 0; margin: 0; }
.trin > li { counter-increment: t; position: relative; padding: 0 0 14px 34px; }
.trin > li::before { content: counter(t); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--lilla); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.kopi { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; }
.kopi pre { flex: 1; margin: 0; background: var(--flade); border-radius: 8px; padding: 7px 9px; font-size: 12.5px; white-space: pre-wrap; max-height: 120px; overflow: auto; font-family: inherit; }

.to-spalter { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.billeder { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.billeder img { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; display: block; }
.besked { background: var(--flade); border: 1px solid var(--lys-lilla); border-radius: 10px; padding: 12px 14px; font-size: 16px; font-weight: 600; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.tabel { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabel th, .tabel td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--linje); vertical-align: top; }
.tabel th { font-size: 12px; color: var(--smaa); text-transform: uppercase; letter-spacing: .04em; }

.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--sh-3); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.toast.fejl { background: var(--roed); }
.toast button { color: #fff; border: 1px solid rgba(255,255,255,.4); background: none; border-radius: 7px; padding: 2px 8px; cursor: pointer; }

.login { max-width: 420px; margin: 12vh auto; text-align: center; background: #fff; padding: 34px 28px; border-radius: 18px; box-shadow: var(--sh-2); }
.tom { padding: 30px; text-align: center; color: var(--smaa); }
.indlaeser { padding: 60px; text-align: center; color: var(--smaa); }

@media (max-width: 1100px) {
  .plan, .editor, .to-spalter { grid-template-columns: 1fr; }
  .plan .panel.bank, .hoejrespalte { position: static; max-height: none; }
  .bankliste { max-height: 360px; }
}
@media (max-width: 640px) {
  .side { padding: 16px 16px 60px; }
  .top-ind { padding: 0 16px; gap: 12px; height: auto; min-height: 58px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .pladser, .andre { grid-template-columns: 1fr; }
  .logo small { display: none; }
}
