/* =====================================================================
   Hafjell 950 | nabo- og informasjonsside
   Farger og typografi styres av :root-variablene nedenfor.
   ===================================================================== */

:root {
  --bg:         #fbf9f6;   /* varm off-white */
  --surface:    #ffffff;
  --surface-2:  #f3efe8;   /* lys sand */
  --ink:        #1b201d;   /* nesten sort, grønnlig */
  --ink-soft:   #5c635d;   /* dempet tekst */
  --line:       #e5dfd5;   /* tynne linjer */
  --line-soft:  #efe9e0;
  --accent:     #b1521f;   /* fakkel / ember */
  --accent-dk:  #8c3f16;
  --accent-soft:#f7ece4;
  --forest:     #16302a;   /* mørk granskog */
  --forest-2:   #1f4038;
  --snow:       #e9eeec;
  --varsel:     #9a2f2f;   /* viktige meldinger */
  --ok:         #2f6b4f;
  --maxw:       1160px;
  --radius:     6px;
  --radius-lg:  10px;
  --shadow:     0 12px 34px rgba(27, 32, 29, .09);
  --shadow-sm:  0 2px 8px rgba(27, 32, 29, .06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.narrow { max-width: 780px; }

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600; line-height: 1.13; letter-spacing: .2px;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.32rem; }
h4 { font-size: 1.08rem; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: .7rem;
  font-weight: 600; color: var(--accent); margin-bottom: .85rem;
}
.eyebrow-light { color: #d9b79f; }

.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--surface-2); }
.section-dark { background: var(--forest); color: #e7ece9; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-lead { color: var(--ink-soft); max-width: 660px; margin-bottom: 2.4rem; font-size: 1.05rem; }
.section-dark .section-lead { color: #c3cfc9; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 2.2rem; }
.section-head > div { flex: 1 1 320px; }
.section-head h2 { margin-bottom: .5rem; }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; font-size: .8rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: .2s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-1px); }
.btn-dark { background: var(--forest); color: #fff; }
.btn-dark:hover { background: var(--forest-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: rgba(255,255,255,.94); color: var(--ink); }
.btn-light:hover { background: #fff; transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .72rem; letter-spacing: .08em; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Topplinje ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,249,246,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 22px; height: 74px; }
.brand { display: flex; align-items: baseline; gap: 11px; margin-right: auto; }
.brand-mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem; font-weight: 600; letter-spacing: .04em;
}
.brand-mark span { color: var(--accent); }
.brand-sub {
  font-size: .66rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--ink-soft); font-weight: 600;
}
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { font-size: .84rem; font-weight: 500; color: var(--ink-soft); transition: .18s; }
.nav a:hover, .nav a.aktiv { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; cursor: pointer; }

/* Diskret innlogging for byggherre og entreprenører – ikke en nabo-handling */
.nav a.nav-logginn {
  font-size: .78rem; font-weight: 500; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 14px; white-space: nowrap;
}
.nav a.nav-logginn:hover { border-color: var(--ink-soft); color: var(--ink); }

@media (max-width: 900px) {
  .nav {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 26px 18px; display: none; box-shadow: var(--shadow);
  }
  .nav.apen { display: flex; }
  .nav a { padding: 11px 0; width: 100%; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
  .nav .btn { margin-top: 12px; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: var(--forest) center/cover no-repeat; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,18,.42) 0%, rgba(10,22,18,.30) 40%, rgba(10,22,18,.86) 100%);
}
.hero-inner { position: relative; padding: 140px 0 62px; max-width: 760px; }
.hero h1 { margin-bottom: 1.1rem; text-wrap: balance; }
.hero-lead { font-size: 1.13rem; color: #e2e9e5; margin-bottom: 2rem; max-width: 620px; }
.hero-merke {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 1.3rem;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.28);
  padding: 6px 14px; border-radius: 100px;
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
}
.hero-foto-kreditt {
  position: absolute; right: 26px; bottom: 14px; font-size: .66rem;
  color: rgba(255,255,255,.55); letter-spacing: .04em;
}

/* ---------- Statuskort ---------- */
.status-rad { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.status-kort { background: var(--surface); padding: 26px 24px; }
.status-kort .merkelapp { font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-soft); font-weight: 600; margin-bottom: .55rem; }
.status-kort .verdi { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.55rem; line-height: 1.2; margin-bottom: .35rem; }
.status-kort .note { font-size: .87rem; color: var(--ink-soft); }
.status-prikk { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 7px; vertical-align: 1px; }
.status-prikk.gul { background: #c98a1e; }
.status-prikk.rod { background: var(--varsel); }
.status-prikk.gra { background: #9aa39d; }

/* ---------- Varselbanner ---------- */
.varselbanner {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fdf2f0; border: 1px solid #f0cfc9; border-left: 4px solid var(--varsel);
  border-radius: var(--radius); padding: 18px 22px; margin-bottom: 30px;
}
.varselbanner .ikon { color: var(--varsel); font-size: 1.15rem; line-height: 1.4; }
.varselbanner h4 { margin-bottom: .25rem; }
.varselbanner p { font-size: .93rem; color: var(--ink-soft); }
.varselbanner a { color: var(--varsel); font-weight: 600; text-decoration: underline; }

/* ---------- Oppdateringer / kort ---------- */
.kort-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 26px; }
.kort {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: .22s;
}
.kort:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.kort-foto { aspect-ratio: 16/10; background: var(--surface-2) center/cover no-repeat; position: relative; }
.kort-foto.tom { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 100%); }
.kort-foto.tom span { font-family: "Cormorant Garamond", Georgia, serif; color: rgba(255,255,255,.35); font-size: 2.2rem; letter-spacing: .1em; }
.kort-kropp { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.kort h3 { margin-bottom: .5rem; text-wrap: balance; }
.kort p { font-size: .93rem; color: var(--ink-soft); margin-bottom: 1rem; }
.kort-fot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: .78rem; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.kort-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: .8rem; font-size: .74rem; color: var(--ink-soft); }

.tagg {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: .68rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line);
}
.tagg-lunnstad { background: var(--accent-soft); color: var(--accent-dk); border-color: #ecd6c8; }
.tagg-hafjell { background: var(--snow); color: var(--forest); border-color: #d5dedb; }
.tagg-viktig { background: #fdeceb; color: var(--varsel); border-color: #f2cfcb; }
.tagg-utkast { background: #f4f0e2; color: #8a7420; border-color: #e6dcb8; }

/* ---------- Tidslinje / fremdrift ---------- */
.tidslinje { position: relative; margin-top: 1rem; }
.tidslinje::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: rgba(255,255,255,.18); }
.tl-post { position: relative; padding: 0 0 30px 40px; }
.tl-post:last-child { padding-bottom: 0; }
.tl-punkt { position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); background: var(--forest); }
.tl-post.ferdig .tl-punkt { background: var(--ok); border-color: var(--ok); }
.tl-post.pagar .tl-punkt { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(177,82,31,.22); }
.tl-dato { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: #d9b79f; font-weight: 600; margin-bottom: .3rem; }
.tl-post h4 { margin-bottom: .3rem; }
.tl-post p { font-size: .92rem; color: #b9c6c0; max-width: 620px; }
.tl-status { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-left: 10px; }
.tl-post.ferdig .tl-status { color: #7fc0a1; }
.tl-post.pagar .tl-status { color: #e8a877; }

/* ---------- To-kolonne innholdsblokk ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split.omvendt > :first-child { order: 2; }
.split.en-kolonne { grid-template-columns: 1fr; max-width: 760px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 34px; } .split.omvendt > :first-child { order: 0; } }
.split-foto { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.split-foto img { width: 100%; height: 100%; object-fit: cover; }
.rik-tekst p { margin-bottom: 1rem; color: var(--ink-soft); }
.rik-tekst p:last-child { margin-bottom: 0; }
.rik-tekst strong { color: var(--ink); }
.punktliste { list-style: none; margin: 1.2rem 0 0; }
.punktliste li { position: relative; padding-left: 26px; margin-bottom: .7rem; color: var(--ink-soft); font-size: .96rem; }
.punktliste li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

/* ---------- Fakta ---------- */
.fakta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px 26px; }
.fakta .tall { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.5rem; line-height: 1; color: var(--accent); margin-bottom: .35rem; }
.fakta .navn { font-size: .88rem; color: var(--ink-soft); }
.section-dark .fakta .tall { color: #e8a877; }
.section-dark .fakta .navn { color: #b9c6c0; }

.tilbud-liste { margin-top: 2.6rem; }
@media (min-width: 700px) { .tilbud-liste { columns: 2; column-gap: 44px; } }

/* ---------- Galleri ---------- */
.galleri { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.galleri figure { position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--surface-2); }
.galleri img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: .4s; }
.galleri figure:hover img { transform: scale(1.04); }
.galleri figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 16px 12px;
  background: linear-gradient(transparent, rgba(10,22,18,.82));
  color: #fff; font-size: .8rem;
}
.lysbord {
  position: fixed; inset: 0; z-index: 120; display: none;
  background: rgba(12,18,15,.93); align-items: center; justify-content: center; padding: 30px;
}
.lysbord.apen { display: flex; }
.lysbord img { max-width: 94vw; max-height: 84vh; object-fit: contain; border-radius: 4px; }
.lysbord-tekst { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #dfe6e2; font-size: .88rem; padding: 0 30px; }
.lysbord-lukk { position: absolute; top: 18px; right: 24px; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }

/* ---------- Spørsmål og svar ---------- */
.qa { border-top: 1px solid var(--line); }
.qa-post { border-bottom: 1px solid var(--line); }
.qa-sp {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 22px 44px 22px 0; position: relative;
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.24rem; font-weight: 600; line-height: 1.3;
}
.qa-sp::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: "Inter", sans-serif; font-size: 1.5rem; font-weight: 300; color: var(--accent); transition: .2s;
}
.qa-post.apen .qa-sp::after { content: "–"; }
.qa-svar { display: none; padding: 0 40px 24px 0; color: var(--ink-soft); }
.qa-post.apen .qa-svar { display: block; }

/* ---------- Skjema ---------- */
.skjema-kort {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm);
}
.felt { margin-bottom: 16px; }
.felt-rad { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .felt-rad { grid-template-columns: 1fr; } }
label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], select, textarea {
  width: 100%; padding: 12px 14px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); transition: .18s;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(177,82,31,.12); }
.avkryss { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.avkryss input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--accent); flex: 0 0 auto; }
.avkryss label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .9rem; color: var(--ink-soft); margin: 0; }
.hjelpetekst { font-size: .8rem; color: var(--ink-soft); margin-top: 6px; }
.merkevalg { display: flex; gap: 8px; flex-wrap: wrap; }
.merkevalg label {
  text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .85rem; margin: 0;
  border: 1px solid var(--line); border-radius: 100px; padding: 7px 15px; cursor: pointer;
  background: var(--bg); color: var(--ink-soft); transition: .16s;
}
.merkevalg input { display: none; }
.merkevalg input:checked + span { color: var(--accent-dk); }
.merkevalg label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dk); }

.melding { padding: 13px 16px; border-radius: var(--radius); font-size: .9rem; margin-bottom: 16px; display: none; }
.melding.vis { display: block; }
.melding.ok { background: #eaf4ee; border: 1px solid #c4e0d0; color: #1f5238; }
.melding.feil { background: #fdeceb; border: 1px solid #f2cfcb; color: #8a2222; }
.melding.info { background: #f1f4f7; border: 1px solid #dbe2e8; color: #3c4b58; }

/* ---------- Kontaktkort ---------- */
.kontakt-kort { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.kontakt-kort .rolle { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); font-weight: 600; margin-bottom: .5rem; }
.kontakt-kort .navn { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.45rem; margin-bottom: .2rem; }
.kontakt-kort .firma { font-size: .88rem; color: var(--ink-soft); margin-bottom: 1rem; }
.kontakt-linje { display: flex; gap: 10px; font-size: .92rem; margin-bottom: .4rem; color: var(--ink-soft); }
.kontakt-linje a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { background: var(--forest); color: #a9b8b2; padding: 60px 0 26px; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; }
.footer li { margin-bottom: .45rem; }
.footer-under { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: #8b9a94; }
.footer-logo { height: 30px; margin-bottom: 1rem; opacity: .9; }

/* ---------- Arkiv / filter ---------- */
.filterrad { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.filterknapp {
  background: var(--surface); border: 1px solid var(--line); border-radius: 100px;
  padding: 8px 17px; font-size: .82rem; cursor: pointer; color: var(--ink-soft); transition: .16s;
}
.filterknapp:hover { border-color: var(--ink-soft); }
.filterknapp.aktiv { background: var(--forest); border-color: var(--forest); color: #fff; }
.filterrad .sok { margin-left: auto; min-width: 240px; }
@media (max-width: 700px) { .filterrad .sok { margin-left: 0; width: 100%; } }

/* ---------- Enkeltoppdatering ---------- */
.innlegg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; margin-bottom: 26px; }
.innlegg h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .6rem; }
.innlegg .ingress { font-size: 1.05rem; color: var(--ink); margin-bottom: 1.2rem; }
.innlegg-tekst p { color: var(--ink-soft); margin-bottom: 1rem; }
.innlegg-bilder { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 22px; }
.innlegg-bilder figure { border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.innlegg-bilder img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.innlegg-bilder figcaption { font-size: .78rem; color: var(--ink-soft); padding: 7px 2px 0; }
.innlegg-fot { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: .82rem; color: var(--ink-soft); display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Admin ---------- */
.admin-topp { background: var(--forest); color: #fff; padding: 16px 0; }
.admin-topp .container { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.admin-topp .brand-mark { color: #fff; }
.admin-topp .hvem { margin-left: auto; font-size: .85rem; color: #b9c6c0; }
.faner { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 32px; flex-wrap: wrap; }
.fane {
  background: none; border: none; border-bottom: 2px solid transparent;
  padding: 13px 18px; cursor: pointer; font-size: .9rem; font-weight: 500; color: var(--ink-soft);
}
.fane:hover { color: var(--ink); }
.fane.aktiv { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.panel { display: none; }
.panel.aktiv { display: block; }
.tabell { width: 100%; border-collapse: collapse; font-size: .89rem; }
.tabell th {
  text-align: left; padding: 11px 12px; border-bottom: 2px solid var(--line);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft);
}
.tabell td { padding: 13px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tabell tr:hover td { background: var(--surface-2); }
.tabell-omslag { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 16px 16px; }
.handling { background: none; border: none; color: var(--accent); cursor: pointer; font-size: .84rem; padding: 2px 6px; }
.handling:hover { text-decoration: underline; }
.handling.slett { color: var(--varsel); }
.filliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.filkort { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.filkort img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.filkort input { border: none; border-top: 1px solid var(--line-soft); border-radius: 0; font-size: .8rem; padding: 8px 10px; background: var(--surface); }
.filkort .fjern { width: 100%; background: var(--surface-2); border: none; border-top: 1px solid var(--line-soft); padding: 6px; font-size: .74rem; color: var(--varsel); cursor: pointer; }
.nokkeltall { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 28px; }
.nokkeltall > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.nokkeltall .tall { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2rem; line-height: 1; }
.nokkeltall .navn { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin-top: 4px; }
.login-omslag { min-height: 74vh; display: flex; align-items: center; justify-content: center; padding: 40px 26px; }
.login-kort { width: 100%; max-width: 430px; }
.laster { padding: 40px; text-align: center; color: var(--ink-soft); font-size: .92rem; }
.tom-tilstand { padding: 46px 26px; text-align: center; color: var(--ink-soft); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.tom-tilstand h3 { color: var(--ink); margin-bottom: .4rem; }

.skjul { display: none !important; }
@media print { .topbar, .footer, .btn { display: none; } }
