/* ===========================================================
   LH-Solutions — design system
   Palette: skovgrøn #03331E · cognac #9B7250 · sand #E5CFB5
   Skrift: Geist · Knapper: højst 4px radius
   =========================================================== */

/* Geist hostes selv (SIL OFL 1.1). Google Fonts blokeres af sidens CSP og kræver
   samtykke efter GDPR, så skriften ligger på vores eget domæne. Filen er skåret ned
   til latinske tegn (dansk/engelsk) for at halvere størrelsen. */
@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist/Geist-Latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+2713, U+2715, U+FEFF, U+FFFD;
}

:root {
  --green: #03331E;
  --bronze: #9B7250;
  --sand: #E5CFB5;

  --paper: #FFFFFF;
  --surface: #F7F1EA;
  --ink: #03331E;
  --muted: #5A6A61;
  --line: #EAE1D5;
  --line-strong: #D8C8B4;
  --accent: #9B7250;
  --accent-soft: #F3EADF;
  --btn: #8E6848;
  --btn-hover: #775639;
  --danger: #A23B2A;
  --ok: #2F6B45;

  --font: 'Geist', system-ui, -apple-system, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 70rem;
  --radius: 4px;
}

/* Mørkegrønne flader: samme komponenter, andre farver */
.zone-green {
  --paper: #03331E;
  --surface: #0A3E27;
  --ink: #F5EDE2;
  --muted: #CBB9A1;
  --line: rgba(229, 207, 181, .16);
  --line-strong: rgba(229, 207, 181, .38);
  --accent: #E5CFB5;
  --accent-soft: rgba(229, 207, 181, .1);
  background: var(--paper); color: var(--ink);
}

html { background: #03331E; }
body.lh {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.lh *, .lh *::before, .lh *::after { box-sizing: border-box; }
:where(.lh) :where(h1, h2, h3) { font-weight: 600; color: var(--ink); margin: 0; }
:where(.lh) :where(p, ul, ol) { margin: 0; padding: 0; }
:where(.lh) a { color: inherit; }
.lh :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.lh-skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: .75rem 1rem; border-radius: var(--radius); }
.lh-skip:focus { top: 1rem; }

.lh-wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)); }

/* ---------- Knapper ----------
   Kompakte og kantede. Ved hover fyldes knappen fra venstre mod højre,
   som en fremdriftslinje, der løber op. */
.lh-btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.25rem; padding: .4rem .95rem;
  border-radius: var(--radius); border: 1px solid var(--btn);
  background: var(--btn); color: #fff;
  font: 500 .85rem/1 var(--font); letter-spacing: .005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: border-color .2s ease, color .2s ease;
  touch-action: manipulation;
}
.lh-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.lh-btn:hover::before, .lh-btn:focus-visible::before { transform: scaleX(1); }
.lh-btn:hover { border-color: var(--btn-hover); }
.lh-btn:active { transform: translateY(1px); }

.lh-btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.lh-btn-secondary::before { background: var(--accent-soft); }
.lh-btn-secondary:hover { border-color: var(--accent); }
.lh-btn[disabled] { opacity: .5; cursor: not-allowed; }
.lh-btn[disabled]::before { display: none; }
@media (prefers-reduced-motion: reduce) {
  .lh-btn::before { transition: none; }
}

/* ---------- Logo ---------- */
.lh-logo {
  display: inline-flex; align-items: baseline; gap: .24em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  font-size: 2.3rem; line-height: 1; letter-spacing: -0.055em; padding-right: .06em;
}
.lh-logo-lh {
  font-weight: 600;
  position: relative; display: inline-block;
}
/* Snittet: en skrå streg i baggrundsfarven lagt oven på "lh".
   Browseren tegner den som en almindelig vektorform, så kanten er skarp på alle
   skærme og i alle browsere (masker bliver rasteriseret og kan se grynede ud). */
.lh-logo-lh::after {
  /* Geometri målt fra det valgte logo (01 Snit): tynd streg (.05em), ca. 19,5° fra lodret,
     som går gennem h'ets venstre stamme: .24em fra venstre ved grundlinjen, .50em ved toppen. */
  content: ""; position: absolute; top: -.05em; bottom: -.05em;
  left: .346em; width: .05em;
  background: var(--lh-cut-bg, var(--paper));
  transform: skewX(-19.5deg);
  pointer-events: none;
}
.lh-logo-name { font-weight: 400; }

/* ---------- Header ---------- */
.lh-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); }
.lh-nav { display: flex; align-items: center; justify-content: space-between; height: 4.75rem; gap: 1.5rem; }
.lh-nav-links { display: flex; gap: 2rem; list-style: none; margin-left: auto; }
.lh-nav-links a { text-decoration: none; font-size: .9rem; color: var(--muted); padding-block: .5rem; transition: color .15s ease; }
.lh-nav-links a:hover { color: var(--ink); }
.lh-nav-actions { display: flex; gap: .6rem; }
.lh-menu-btn {
  display: none; width: 2.75rem; height: 2.75rem; margin-right: -.6rem;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
  place-items: center; border-radius: var(--radius);
}

/* ---------- Hero ---------- */
.lh-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 7vw, 5.5rem); }
.lh-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.lh-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.08; letter-spacing: -0.032em; text-wrap: balance; }
.lh-lede { margin-top: 1.1rem; max-width: 28rem; font-size: clamp(1rem, 1.3vw, 1.075rem); color: var(--muted); }
.lh-hero-cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }

/* Wireframe-illustration */
.lh-devices { position: relative; aspect-ratio: 1 / .8; }
.lh-browser { position: absolute; inset: 0 10% 12% 0; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.lh-browser-bar { display: flex; align-items: center; gap: .35rem; padding: .6rem .75rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.lh-browser-bar i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--line-strong); }
.lh-browser-url { margin-left: .5rem; flex: 1; max-width: 16rem; height: 1.3rem; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); font-size: .7rem; color: var(--muted); display: flex; align-items: center; padding-inline: .6rem; }
.lh-browser-body { flex: 1; padding: 1rem; display: grid; grid-template-rows: auto auto 1fr; gap: .75rem; }
.lh-mock-nav { display: flex; justify-content: space-between; align-items: center; }
.lh-mock-nav b { width: 3.5rem; height: .5rem; background: var(--ink); border-radius: 1px; }
.lh-mock-nav span { display: flex; gap: .5rem; }
.lh-mock-nav span i { width: 1.8rem; height: .35rem; background: var(--line-strong); border-radius: 1px; }
.lh-mock-hero { border-radius: 2px; min-height: 6.5rem; background: var(--accent-soft); padding: 1rem; display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem; }
.lh-mock-hero b { height: .6rem; width: 58%; border-radius: 1px; background: var(--ink); }
.lh-mock-hero b + b { width: 36%; height: .4rem; background: var(--line-strong); }
.lh-mock-hero em { margin-top: .35rem; width: 4rem; height: 1rem; background: var(--accent); border-radius: 2px; }
.lh-mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; align-content: start; }
.lh-mock-row span { height: 3rem; border: 1px solid var(--line); border-radius: 2px; }
.lh-phone { position: absolute; right: 0; bottom: 0; width: 30%; aspect-ratio: 9 / 18; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: .3rem; box-shadow: -12px 0 0 var(--paper); }
.lh-phone-screen { height: 100%; border: 1px solid var(--line); border-radius: 2px; display: flex; flex-direction: column; overflow: hidden; }
.lh-phone-top { height: 38%; background: var(--accent-soft); display: flex; flex-direction: column; justify-content: flex-end; padding: .6rem; gap: .3rem; }
.lh-phone-top b { height: .4rem; width: 70%; border-radius: 1px; background: var(--ink); }
.lh-phone-top b + b { width: 45%; background: var(--line-strong); }
.lh-phone-list { padding: .5rem; display: grid; gap: .4rem; }
.lh-phone-list span { height: 1.3rem; border: 1px solid var(--line); border-radius: 2px; }
.lh-phone-tabbar { margin-top: auto; display: flex; justify-content: space-around; padding: .45rem .3rem .55rem; border-top: 1px solid var(--line); }
.lh-phone-tabbar i { width: .6rem; height: .6rem; border-radius: 1px; background: var(--line-strong); }
.lh-phone-tabbar i:first-child { background: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .lh-hero-copy, .lh-devices { animation: lh-fade .6s ease-out both; }
  .lh-devices { animation-delay: .1s; }
}
@keyframes lh-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Sektioner ---------- */
.lh-section { padding-block: clamp(3.5rem, 6.5vw, 5.25rem); border-top: 1px solid var(--line); }
.lh-section-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 4vw, 4rem); align-items: end; margin-bottom: clamp(2rem, 4vw, 2.75rem); }
.lh-section h2 { font-size: clamp(1.55rem, 2.8vw, 2rem); line-height: 1.15; letter-spacing: -0.028em; text-wrap: balance; }
.lh-section-head p { color: var(--muted); font-size: 1rem; max-width: 28rem; }

.lh-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2.25rem, 4vw, 3rem) clamp(2rem, 6vw, 5rem); }
.lh-service { display: grid; grid-template-columns: auto 1fr; column-gap: 1.1rem; align-items: start; }
.lh-service > :not(.lh-service-icon) { grid-column: 2; }
.lh-service-icon {
  grid-row: span 3; width: 2.75rem; height: 2.75rem; border-radius: var(--radius);
  display: grid; place-items: center;
  background: var(--green); color: var(--sand);
}
.lh-service-icon svg { display: block; width: 1.5rem; height: 1.5rem; }
.lh-service h3 { font-size: 1.1rem; letter-spacing: -0.015em; line-height: 1.3; margin-top: .05rem; }
.lh-service p { margin-top: .45rem; color: var(--muted); max-width: 28rem; font-size: .95rem; }
.lh-service .lh-meta { margin-top: .8rem; font-size: .825rem; font-weight: 500; color: var(--accent); }

.lh-surface { background: var(--surface); }
.lh-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
.lh-steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.lh-steps li::before { content: "Trin " counter(step); display: block; margin-bottom: .6rem; font-size: .8rem; color: var(--muted); }
.lh-steps h3 { font-size: 1.025rem; letter-spacing: -0.01em; }
.lh-steps p { margin-top: .35rem; color: var(--muted); font-size: .925rem; }

.lh-why { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(1.5rem, 4vw, 4rem); }
.lh-why li { padding-block: 1.2rem; border-top: 1px solid var(--line); }
.lh-why strong { display: block; font-weight: 600; font-size: 1rem; }
.lh-why span { display: block; margin-top: .25rem; color: var(--muted); font-size: .925rem; }

/* ---------- Opgave-formular ---------- */
.lh-task { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(1.75rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); }
.lh-task-intro p { margin-top: .85rem; color: var(--muted); font-size: 1rem; max-width: 26rem; }
.lh-task-points { list-style: none; margin-top: 1.75rem !important; display: grid; gap: .8rem; }
.lh-task-points li { display: grid; grid-template-columns: 1.1rem 1fr; gap: .65rem; color: var(--ink); font-size: .925rem; }
.lh-task-points svg { color: var(--accent); margin-top: .25rem; }
.lh-task-direct { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line-strong); max-width: 26rem; }
.lh-task-direct span { display: block; font-size: .9rem; color: var(--muted); }
.lh-task-direct a { display: inline-block; margin-top: .2rem; font-size: 1rem; font-weight: 500; color: var(--accent); text-decoration: none; }
.lh-task-direct a:hover { text-decoration: underline; text-underline-offset: .25em; }

.lh-form { display: grid; gap: 1.1rem; }
.lh-field { display: grid; gap: .4rem; }
.lh-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lh-field label { font-weight: 500; font-size: .85rem; }
.lh-field input, .lh-field textarea, .lh-field select {
  width: 100%; min-height: 2.6rem; padding: .6rem .8rem;
  font: 400 1rem/1.4 var(--font); color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lh-field textarea { min-height: 8rem; resize: vertical; }
.lh-field input:focus, .lh-field textarea:focus, .lh-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lh-field-error { color: var(--danger); font-size: .875rem; }
.lh-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.lh-form-note { font-size: .875rem; color: var(--muted); }
.lh-alert { padding: .9rem 1rem; border-radius: var(--radius); border: 1px solid; font-size: .975rem; }
.lh-alert-ok { background: #EEF5EF; border-color: #C7DDCB; color: var(--ok); }
.lh-hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.lh-footer { border-top: 1px solid var(--line); padding-block: 2.25rem calc(2.25rem + env(safe-area-inset-bottom)); color: var(--muted); font-size: .875rem; }
.lh-footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 2.5rem; align-items: center; }
.lh-footer-brand { display: flex; align-items: center; gap: 1.25rem; }
.lh-footer-brand > span { font-size: .95rem; color: var(--ink); }
.lh-app-icon {
  width: 4.5rem; height: 4.5rem; border-radius: 22%; flex-shrink: 0;
  background: var(--sand); color: var(--green); text-decoration: none;
  display: grid; place-items: center;
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .55);
}
.lh-app-icon { --lh-cut-bg: var(--sand); }
.lh-app-icon .lh-logo-lh { font-size: 2.3rem; line-height: 1; letter-spacing: -0.06em; padding-right: .04em; }
.lh-footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-left: auto !important; }
.lh-footer-links a { text-decoration: none; color: var(--muted); }
.lh-footer-links a:hover { color: var(--ink); }

/* ---------- Responsivt ---------- */
@media (max-width: 1020px) {
  .lh-nav-links { display: none; }
}
@media (max-width: 900px) {
  .lh-hero-grid, .lh-task { grid-template-columns: 1fr; }
  .lh-section-head { grid-template-columns: 1fr; align-items: start; }
  .lh-devices { max-width: 32rem; }
  .lh-steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
}
@media (max-width: 720px) {
  .lh-nav-actions { display: none; }
  .lh-menu-btn { display: grid; margin-left: auto; }
  .lh-services, .lh-why { grid-template-columns: 1fr; }
  .lh-footer-links { margin-left: 0 !important; }
}
@media (max-width: 480px) {
  .lh-nav { height: 4.25rem; }
  .lh-logo { font-size: 2rem; }
  .lh-steps, .lh-field-row { grid-template-columns: 1fr; }
  .lh-hero-cta .lh-btn, .lh-form-foot .lh-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
}

/* ---------- Kundeportal ---------- */
.lh-portal-nav { display: flex; align-items: center; gap: 1.5rem; }
.lh-portal-nav a { text-decoration: none; font-size: .95rem; color: var(--muted); padding-block: .5rem; border-bottom: 1px solid transparent; }
.lh-portal-nav a:hover, .lh-portal-nav a.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.lh-portal-nav form { margin: 0; }
.lh-portal .portal { background: var(--paper); min-height: calc(100vh - 4.75rem); padding-bottom: 4rem; }
.lh-portal .btn { border-radius: var(--radius) !important; }
@media (max-width: 760px) {
  .lh-portal-nav { gap: .9rem; }
  .lh-portal-nav a { font-size: .85rem; }
  .lh-portal .lh-nav { height: auto; padding-block: 1rem; flex-wrap: wrap; }
}

/* ---------- Animeret fremvisning i hero ---------- */
.lh-anim-card.hero-anim {
  /* Direkte på den grønne flade: lyse streger og sandfarvede detaljer */
  --heading: #F5EDE2; --text: #F5EDE2; --muted: #CBB9A1; --accent: #E5CFB5;
  --surface: rgba(229, 207, 181, .06); --surface-2: rgba(229, 207, 181, .14); --border: rgba(229, 207, 181, .24); --bg: #03331E;
  background: transparent; border: 0; border-radius: 0;
  margin: 0; padding: clamp(2rem, 4vw, 3.25rem) clamp(1.25rem, 3vw, 2rem);
  min-height: 24rem;
}
.lh-anim-card .ha-stage { font-family: var(--font); }
.lh-anim-card .ha-word { font-weight: 600; }
.lh-anim-card .ha-copy h3 { font-weight: 600; }
.lh-anim-card .ha-stage { width: 100%; }
.lh-anim-card .ha-show { max-width: none; }
.lh-anim-card .ha-scene { padding: 0; }
.lh-anim-card .ha-art-web, .lh-anim-card .ha-art-shop { gap: 18px; }
.lh-anim-card .ha-art-app { gap: 8px 18px; }
.lh-anim-card .ha-browser { width: 170px; flex: none; }
.lh-anim-card .ha-shopwrap { width: 120px; flex: none; }
.lh-anim-card .ha-copy { max-width: 190px; }
.lh-anim-card .ha-letters { max-width: 23rem; }
.lh-anim-card .ha-bbar i:first-child, .lh-anim-card .ha-bbar i:nth-child(2), .lh-anim-card .ha-bbar i:nth-child(3) { background: var(--border); }
.lh-anim-card .ha-browser { box-shadow: none; }
.lh-anim-card .ha-screen span:nth-child(3n+2) { background: #9B7250; }
.lh-anim-card .ha-brace, .lh-anim-card .ha-cursor { color: #C9A27E; }
.lh-anim-card .ha-cursor { background: #C9A27E; }
@media (max-width: 480px) {
  .lh-anim-card.hero-anim { min-height: 0; }
  .lh-anim-card .ha-art-app { gap: 8px 14px; }
  .lh-anim-card .ha-art-web, .lh-anim-card .ha-art-shop { gap: 12px; }
  .lh-anim-card .ha-browser { width: 132px; }
  .lh-anim-card .ha-shopwrap { width: 96px; }
  .lh-anim-card .ha-copy { max-width: 150px; }
}
.lh-anim-card .ha-letters { font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.lh-anim-card .ha-copy h3 { font-size: clamp(1rem, 1.4vw, 1.15rem); }
.lh-anim-card .ha-copy p { font-size: .825rem; }
.lh-anim-card.hero-anim { min-height: 20rem; }
.lh-task { padding: clamp(1.5rem, 4vw, 2.75rem); }
/* På touch-skærme skal knapperne stadig være nemme at ramme (min. 44px) */
@media (pointer: coarse) { .lh-btn { min-height: 2.75rem; } }

/* ---------- Log ind ---------- */
.lh-auth { background: var(--paper); }
.lh-auth-grid { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.lh-auth-side {
  display: flex; flex-direction: column; justify-content: space-between; gap: 3rem;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 5vw, 4rem);
}
.lh-auth-intro { max-width: 26rem; }
.lh-auth-intro h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.08; letter-spacing: -0.032em; }
.lh-auth-intro p { margin-top: .9rem; color: var(--muted); }
.lh-auth-points { list-style: none; margin-top: 2rem !important; border-top: 1px solid var(--line); }
.lh-auth-points li { padding-block: .8rem; border-bottom: 1px solid var(--line); font-size: .925rem; color: var(--muted); }
.lh-auth-points li span { color: var(--ink); font-weight: 500; }
.lh-auth-foot { font-size: .875rem; color: var(--muted); }
.lh-auth-foot a { color: var(--ink); text-underline-offset: .25em; }

.lh-auth-main { position: relative; display: grid; place-items: center; padding: clamp(4.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem); }
.lh-auth-back { position: absolute; top: clamp(1.5rem, 3vw, 2.25rem); right: clamp(1.25rem, 4vw, 3rem); font-size: .85rem; color: var(--muted); text-decoration: none; }
.lh-auth-back:hover { color: var(--ink); }
.lh-auth-card { width: 100%; max-width: 24rem; }
.lh-auth-card h2 { margin-top: 0; font-size: 1.6rem; letter-spacing: -0.028em; line-height: 1.15; }
.lh-auth-lead { margin-top: .6rem; margin-bottom: 1.75rem; color: var(--muted); font-size: .95rem; }
.lh-auth-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .25rem; }
.lh-auth-actions .lh-btn:first-child { flex: 1 1 auto; }
.lh-code-input { font-variant-numeric: tabular-nums; letter-spacing: .45em; font-size: 1.25rem !important; font-weight: 500 !important; }
.lh-auth-have-code { margin-top: .5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.lh-auth-have-code summary { cursor: pointer; font-size: .875rem; color: var(--muted); list-style: none; }
.lh-auth-have-code summary::-webkit-details-marker { display: none; }
.lh-auth-have-code summary::before { content: "+ "; color: var(--accent); }
.lh-auth-have-code[open] summary::before { content: "− "; }
.lh-auth-have-code[open] summary { margin-bottom: 1rem; }
.lh-auth-have-code .lh-field { margin-bottom: 1rem; }

@media (max-width: 860px) {
  .lh-auth-grid { grid-template-columns: 1fr; }
  .lh-auth-side { gap: 1.75rem; }
  .lh-auth-points, .lh-auth-foot { display: none; }
  .lh-auth-main { place-items: start center; padding-top: 2.5rem; }
  .lh-auth-back { top: auto; bottom: 1.5rem; right: 50%; transform: translateX(50%); }
}

/* Telefon under e-mail i opgavefeltet */
.lh-phone-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .9rem; margin-top: .9rem; }
.lh-phone-row a { font-size: 1rem; font-weight: 500; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.lh-phone-row a:hover { text-decoration: underline; text-underline-offset: .25em; }
.lh-phone-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); }
.lh-phone-status::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: #B9A58C; }
.lh-phone-status.is-open { color: var(--ok); }
.lh-phone-status.is-open::before { background: #2F8A5B; }
.lh-task-intro .lh-phone-hours { margin-top: .35rem; font-size: .825rem; color: var(--muted); max-width: 22rem; }

/* Handelsbetingelser: bevar linjeskift og afsnit fra teksten */
.lh-portal .terms-text { white-space: pre-line; }
.lh-portal .terms-text { white-space: normal; }
.lh-portal .terms-text p { margin: 0 0 .9rem; }
.lh-portal .terms-text p:last-child { margin-bottom: 0; }
.lh-portal .terms-text strong { font-weight: 600; color: var(--ink); }

/* ---------- Samtale: to tydeligt forskellige afsendere ----------
   LH-Solutions = mørkegrøn boble til venstre. Kunden ("Dig") = hvid boble med bronzekant til højre. */
.lh-portal .thread-body .msg-card {
  width: min(88%, 34rem);
  align-self: flex-end;
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  border-right: 3px solid var(--bronze);
  box-shadow: none;
}
.lh-portal .thread-body .msg-card.admin {
  align-self: flex-start;
  background: var(--green);
  border: 1px solid var(--green);
  border-left: 3px solid var(--sand);
}
.lh-portal .msg-card.admin .msg-name { color: #F5EDE2; }
.lh-portal .msg-card.admin .msg-bolt { color: var(--sand); }
.lh-portal .msg-card.admin .msg-role,
.lh-portal .msg-card.admin .msg-time { color: #CBB9A1; }
.lh-portal .msg-card.admin .msg-body { color: #F5EDE2; }
.lh-portal .msg-card.admin .msg-attach span { color: var(--sand); }
.lh-portal .msg-card.admin .msg-attach img { border-color: rgba(229, 207, 181, .3); }
.lh-portal .thread-body .msg-card:not(.admin) .msg-name { color: var(--bronze); }
.lh-portal .thread-body .msg-card:not(.admin) .msg-user { color: var(--bronze); }
@media (max-width: 560px) {
  .lh-portal .thread-body .msg-card { width: 94%; }
}

/* Valgt tilbud: mærket står over titlen i stedet for oven i den */
.lh-portal .offer-card.chosen .offer-badge { position: static; display: inline-flex; align-self: flex-start; margin-bottom: .6rem; }

/* ---------- Footer med links til undersider (vigtigt for Google) ---------- */
.lh-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem clamp(1.5rem, 4vw, 3rem); align-items: start; }
.lh-footer-col h2 { font-size: .8rem; font-weight: 500; color: var(--ink); margin-bottom: .8rem; }
.lh-footer-col ul { list-style: none; display: grid; gap: .5rem; }
.lh-footer-col a { color: var(--muted); text-decoration: none; font-size: .875rem; }
.lh-footer-col a:hover { color: var(--ink); }
.lh-footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat; font-size: .8rem; color: var(--muted); }
@media (max-width: 860px) { .lh-footer-grid { grid-template-columns: 1fr 1fr; } .lh-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .lh-footer-grid { grid-template-columns: 1fr; } }

/* ---------- Undersider (ydelser, SEO-landingssider, kontakt) ---------- */
.lh-page-hero { padding-block: clamp(3rem, 7vw, 5rem); }
.lh-page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.08; letter-spacing: -0.032em; max-width: 40rem; text-wrap: balance; }
.lh-page-hero .lh-lede { max-width: 36rem; }
.lh-crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 1.5rem; }
.lh-crumbs a { color: var(--muted); text-decoration: none; }
.lh-crumbs a:hover { color: var(--ink); }
.lh-crumbs span { margin-inline: .35rem; opacity: .6; }

.lh-prose { max-width: 42rem; }
.lh-prose h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin: 2.25rem 0 .75rem; }
.lh-prose h2:first-child { margin-top: 0; }
.lh-prose p { color: var(--muted); margin: 0 0 1rem; }
.lh-prose ul { list-style: none; border-top: 1px solid var(--line); margin: .5rem 0 0; }
.lh-prose li { padding: .8rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .95rem; }
.lh-prose a { color: var(--accent); }
.lh-prose strong { font-weight: 600; }

.lh-faq { max-width: 42rem; }
.lh-faq h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 1rem; }
.lh-faq details { border-top: 1px solid var(--line-strong); }
.lh-faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.lh-faq summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; font-weight: 500; position: relative; }
.lh-faq summary::-webkit-details-marker { display: none; }
.lh-faq summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; color: var(--accent); font-size: 1.1rem; }
.lh-faq details[open] summary::after { content: "−"; }
.lh-faq details p { color: var(--muted); padding: 0 2rem 1.1rem 0; font-size: .95rem; }

.lh-page-cta { display: grid; justify-items: start; gap: .75rem; }
.lh-page-cta h2 { font-size: clamp(1.55rem, 2.8vw, 2rem); letter-spacing: -0.028em; }
.lh-page-cta p { color: var(--muted); }
.lh-page-cta .lh-btn { margin-top: .5rem; }

/* ---------- Kontaktside ---------- */
.lh-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.lh-contact-item { padding: 1.75rem clamp(1rem, 3vw, 2rem) 1.75rem 0; display: grid; align-content: start; justify-items: start; gap: .5rem; }
.lh-contact-item + .lh-contact-item { padding-left: clamp(1rem, 3vw, 2rem); border-left: 1px solid var(--line); }
.lh-contact-item .lh-service-icon { grid-row: auto; margin-bottom: .6rem; }
.lh-contact-item h2 { font-size: .8rem; font-weight: 500; color: var(--muted); }
.lh-contact-value { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
a.lh-contact-value:hover { color: var(--accent); }
.lh-contact-item p { font-size: .9rem; color: var(--muted); max-width: 22rem; margin-top: .25rem; }
@media (max-width: 860px) {
  .lh-contact-grid { grid-template-columns: 1fr; }
  .lh-contact-item, .lh-contact-item + .lh-contact-item { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Egne løsninger ---------- */
.lh-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: clamp(1.5rem, 3vw, 2.25rem); }
.lh-product { display: flex; flex-direction: column; border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.lh-product-media { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--surface); margin-bottom: 1.25rem; }
.lh-product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lh-product h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
.lh-product-tagline { color: var(--accent) !important; font-weight: 500; font-size: .9rem !important; margin-top: .3rem !important; }
.lh-product-body p { color: var(--muted); font-size: .95rem; margin-top: .6rem; }
.lh-product-body .lh-btn { margin-top: 1.25rem; }

/* ---------- Brugerikon og rund sprogknap i toppen ---------- */
.lh-nav-actions { align-items: center; }
.lh-nav-actions .lh-btn svg { flex: none; margin-left: -.1rem; }
.lh-lang {
  display: grid; place-items: center; flex: none;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 1px solid var(--line-strong); padding: 5px;
  transition: border-color .2s ease, transform .15s ease;
}
.lh-lang svg { width: 100%; height: 100%; display: block; border-radius: 50%; }
.lh-lang:hover { border-color: var(--accent); }
.lh-lang:active { transform: scale(.95); }
.lh-lang--mobile { display: none; }
@media (max-width: 720px) {
  .lh-lang--mobile { display: grid; margin-left: auto; }
  .lh-lang--mobile + .lh-menu-btn { margin-left: .25rem; }
}
@media (pointer: coarse) { .lh-lang { width: 2.75rem; height: 2.75rem; } }


/* ---------- Animationen i toppen (flyttet fra site.css, så forsiden kun henter lh.css) ---------- */
.lh-anim-card { --ease: cubic-bezier(.22,.61,.36,1); --font-display: var(--font); }
/* Brandet intro-animation over hero-teksten — ren CSS, transparent, tema-bevidst.
   Kun den tynde border (som kasserne). Designet i remotion/. */
.hero-anim {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  margin-bottom: 22px;
  padding: 52px 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.ha-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  font-family: var(--font-display);
  text-align: center;
}
.ha-word {
  display: flex;
  justify-content: center;
  font-weight: 700;
  color: var(--heading);
  opacity: 0;
  animation: haFadeUp .5s var(--ease) forwards .1s;
}
/* Klammerne sidder inline i teksten (hugger fra "{" ved Software til "}" ved idé),
   i brand-blå så de står anderledes end den mørke tekst men passer til designet. */
.ha-brace { color: var(--accent); font-weight: 700; font-size: 1.12em; margin: 0 .06em; }
.ha-letters {
  position: relative;
  display: block;
  max-width: 420px;
  text-align: left;
  font-size: clamp(18px, 2.3vw, 25px);
  letter-spacing: -.3px;
  line-height: 1.3;
}
.ha-ghost { visibility: hidden; }
.ha-typewrap { position: absolute; inset: 0; }
.ha-cursor {
  display: inline-block;
  width: .09em;
  height: .92em;
  margin-left: .03em;
  vertical-align: -.12em;
  background: var(--accent);
  animation: haBlink 1.05s steps(1) infinite;
}
.ha-tagline {
  font-size: clamp(13px, 1.7vw, 18px);
  font-weight: 500;
  color: var(--heading);
  letter-spacing: -.3px;
  opacity: 0;
  animation: haFadeUp .5s var(--ease) forwards 1.45s;
}
@keyframes haBraceL { from { opacity: 0; transform: translateX(-30px); } 70% { transform: translateX(4px); } to { opacity: 1; transform: translateX(0); } }
@keyframes haBraceR { from { opacity: 0; transform: translateX(30px); } 70% { transform: translateX(-4px); } to { opacity: 1; transform: translateX(0); } }
@keyframes haChar { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes haFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes haBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ===== Roterende mini-reklame (loop) ===== */
.ha-show {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 156px;
  margin-top: 4px;
  overflow: hidden;
  opacity: 0;
  animation: haFadeUp .6s var(--ease) forwards 2s;
}
.ha-track {
  display: flex;
  width: 400%;
  height: 100%;
  animation: haRotate 15s cubic-bezier(.7,0,.2,1) infinite;
  animation-delay: 2.1s;
}
.ha-scene {
  flex: 0 0 25%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}
.ha-copy { text-align: left; max-width: 240px; }
.ha-copy h3 { font-size: clamp(17px, 2vw, 22px); font-weight: 700; color: var(--heading); letter-spacing: -.4px; line-height: 1.15; margin: 0 0 5px; }
.ha-copy p { font-size: clamp(12.5px, 1.5vw, 14.5px); color: var(--muted); line-height: 1.35; margin: 0; }

/* --- Scene 1: Mobilapps --- */
.ha-art-app {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "phone copy" "phone badges";
  align-items: center;
  gap: 8px 26px;
}
.ha-phone { grid-area: phone; width: 80px; height: 144px; border-radius: 4px; border: 2px solid var(--heading); padding: 9px 8px; background: var(--surface); position: relative; }
.ha-phone::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 26px; height: 4px; border-radius: 3px; background: var(--border); }
.ha-screen { margin-top: 10px; height: calc(100% - 14px); display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 6px; }
.ha-screen span { border-radius: 4px; background: var(--accent); opacity: 0; transform: scale(.3); animation: haTile 3.4s var(--ease) infinite; animation-delay: calc(var(--a) * .13s); }
.ha-screen span:nth-child(3n+2) { background: var(--heading); }
.ha-screen span:nth-child(3n) { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.ha-badges { grid-area: badges; display: flex; gap: 8px; }
.ha-badge {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 4px;
  background: var(--heading); color: var(--bg);
  animation: haFloat 3s ease-in-out infinite;
}
.ha-badge:last-child { animation-delay: .4s; }
.ha-bic { width: 19px; height: 19px; flex: none; }
.ha-btx { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.ha-btx small { font-size: 7px; opacity: .8; letter-spacing: .2px; }
.ha-btx b { font-size: 12px; font-weight: 700; margin-top: 2px; }
.ha-shine { position: absolute; top: 0; left: 0; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: translateX(-200%) skewX(-18deg); animation: haShine 3.2s ease-in-out infinite; }
.ha-badge:last-child .ha-shine { animation-delay: .5s; }

/* --- Scene 2: Hjemmesider --- */
.ha-art-web { display: flex; align-items: center; gap: 26px; }
.ha-browser { width: 210px; height: 134px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; position: relative; box-shadow: 0 8px 22px rgba(33,48,59,.08); }
.ha-bbar { height: 26px; display: flex; align-items: center; gap: 5px; padding: 0 10px; border-bottom: 1px solid var(--border); }
.ha-bbar i { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.ha-bbar i:first-child { background: #FF5F57; } .ha-bbar i:nth-child(2) { background: #FEBC2E; } .ha-bbar i:nth-child(3) { background: #28C840; }
.ha-url { position: relative; overflow: hidden; flex: 1; height: 12px; margin-left: 6px; border-radius: 4px; background: var(--surface-2); }
.ha-url::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, var(--accent) 45%, transparent); animation: haUrl 3.6s var(--ease) infinite; }
.ha-bbody { padding: 12px; position: relative; }
.ha-bhero { height: 34px; border-radius: 4px; background: linear-gradient(100deg, var(--surface-2), color-mix(in srgb, var(--accent) 30%, var(--surface-2)), var(--surface-2)); background-size: 220% 100%; animation: haSheen 2.4s linear infinite; }
.ha-bline { height: 7px; border-radius: 4px; background: var(--surface-2); margin-top: 8px; transform: scaleX(0); transform-origin: left; animation: haLine 3.6s var(--ease) infinite; animation-delay: calc(.5s + var(--l) * .22s); }
.ha-bline:nth-child(3) { width: 88%; } .ha-bline:nth-child(4) { width: 64%; }
.ha-bcta { width: 58px; height: 18px; border-radius: 4px; background: var(--accent); margin-top: 11px; transform: scale(0); transform-origin: left; animation: haCtaIn 3.6s var(--ease) infinite; }
.ha-cursor2 { position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent); animation: haCur 3.6s var(--ease) infinite; }

/* --- Scene 3: Webshop & systemer --- */
.ha-art-shop { display: flex; align-items: center; gap: 26px; }
.ha-shopwrap { position: relative; width: 150px; height: 126px; display: flex; align-items: center; justify-content: center; }
.ha-cart { width: 76px; height: 76px; color: var(--heading); animation: haBob 2.6s ease-in-out infinite; }
.ha-prod { position: absolute; width: 34px; height: 34px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); }
.ha-prod[style*="--p:0"] { top: 6px; left: 8px; background: color-mix(in srgb, var(--accent) 30%, var(--surface)); animation: haDrop 2.6s var(--ease) infinite; }
.ha-prod[style*="--p:1"] { top: 14px; right: 6px; background: color-mix(in srgb, var(--heading) 18%, var(--surface)); animation: haDrop 2.6s var(--ease) infinite .5s; }
.ha-plus { position: absolute; top: 18px; right: 30px; font-size: 13px; font-weight: 800; color: var(--accent); opacity: 0; animation: haPlus 2.6s var(--ease) infinite; }
.ha-paid { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%) scale(.6); display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 4px; background: var(--heading); color: var(--bg); font-size: 11px; font-weight: 700; white-space: nowrap; opacity: 0; animation: haPaid 2.6s var(--ease) infinite; }
.ha-paid svg { width: 12px; height: 12px; }

/* --- Dots --- */
.ha-dots { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; }
.ha-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border); animation-duration: 15s; animation-timing-function: linear; animation-iteration-count: infinite; animation-delay: 2.1s; }
.ha-dots i:nth-child(1) { animation-name: haDot0; }
.ha-dots i:nth-child(2) { animation-name: haDot1; }
.ha-dots i:nth-child(3) { animation-name: haDot2; }

/* ===== Showcase keyframes ===== */
@keyframes haRotate {
  0%, 20% { transform: translateX(0); }
  25%, 45% { transform: translateX(-25%); }
  50%, 70% { transform: translateX(-50%); }
  75%, 95% { transform: translateX(-75%); }
  100% { transform: translateX(-75%); }
}
@keyframes haTile { 0% { opacity: 0; transform: scale(.3); } 14% { opacity: 1; transform: scale(1); } 82% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.3); } }
@keyframes haFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes haShine { 0%, 18% { transform: translateX(-200%) skewX(-18deg); } 45%, 100% { transform: translateX(320%) skewX(-18deg); } }
@keyframes haUrl { 0% { width: 0; } 22% { width: 86%; } 82% { width: 86%; } 100% { width: 0; } }
@keyframes haSheen { to { background-position: -220% 0; } }
@keyframes haLine { 0% { transform: scaleX(0); } 22% { transform: scaleX(1); } 88% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes haCtaIn { 0%, 30% { transform: scale(0); } 42% { transform: scale(1.08); } 50%, 88% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes haCur { 0% { transform: translate(28px, 26px); opacity: 0; } 12% { opacity: 1; } 40% { transform: translate(28px, 26px); } 60% { transform: translate(36px, 104px); } 66% { transform: translate(36px, 104px) scale(.7); } 72% { transform: translate(36px, 104px) scale(1); } 90% { opacity: 1; } 100% { transform: translate(28px, 26px); opacity: 0; } }
@keyframes haBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-3deg); } }
@keyframes haDrop { 0% { opacity: 0; transform: translateY(-12px); } 18% { opacity: 1; transform: translateY(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-12px); } }
@keyframes haPlus { 0%, 30% { opacity: 0; transform: translateY(6px); } 42% { opacity: 1; transform: translateY(-6px); } 60% { opacity: 0; transform: translateY(-14px); } 100% { opacity: 0; } }
@keyframes haPaid { 0%, 55% { opacity: 0; transform: translateX(-50%) scale(.6); } 66% { opacity: 1; transform: translateX(-50%) scale(1.06); } 74%, 92% { opacity: 1; transform: translateX(-50%) scale(1); } 100% { opacity: 0; transform: translateX(-50%) scale(.6); } }
@keyframes haDot0 { 0%, 22% { background: var(--accent); transform: scale(1.3); } 23%, 74% { background: var(--border); transform: scale(1); } 75%, 100% { background: var(--accent); transform: scale(1.3); } }
@keyframes haDot1 { 0%, 24% { background: var(--border); transform: scale(1); } 25%, 47% { background: var(--accent); transform: scale(1.3); } 48%, 100% { background: var(--border); transform: scale(1); } }
@keyframes haDot2 { 0%, 49% { background: var(--border); transform: scale(1); } 50%, 72% { background: var(--accent); transform: scale(1.3); } 73%, 100% { background: var(--border); transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .ha-brace-l, .ha-brace-r, .ha-letters span, .ha-tagline, .ha-show { animation: none; opacity: 1; transform: none; }
  .ha-cursor, .ha-track, .ha-screen span, .ha-badge, .ha-shine, .ha-bline, .ha-bcta, .ha-bhero, .ha-url::after, .ha-cursor2, .ha-cart, .ha-prod, .ha-plus, .ha-paid, .ha-dots i { animation: none; }
  .ha-screen span, .ha-bline, .ha-bcta, .ha-prod { opacity: 1; transform: none; }
}



/* ===========================================================
   Mobil app-shell: siden skal føles som en app på telefonen.
   App-bjælke i bunden, menu som bottom sheet, tryk-feedback,
   safe-area og bløde sideskift. Desktop er urørt.
   =========================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.lh a, .lh button, .lh summary { -webkit-tap-highlight-color: transparent; }
.lh-btn:active { transform: scale(.97); }

/* Bløde overgange mellem sider, som skærmskift i en app (Chrome/Safari) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Header får skygge ved scroll */
.lh-header { transition: box-shadow .2s ease; }
.lh-header.is-solid { box-shadow: 0 6px 20px -12px rgba(0, 0, 0, .6); }

/* Som installeret app: plads til statuslinjen øverst */
html.is-app .lh-header { padding-top: env(safe-area-inset-top); }
@media (display-mode: standalone) { .lh-header { padding-top: env(safe-area-inset-top); } }

/* --- App-bjælken i bunden --- */
.app-bar { display: none; }
@media (max-width: 720px) {
  .app-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 0 calc(.6rem + env(safe-area-inset-right)) calc(.6rem + env(safe-area-inset-bottom)) calc(.6rem + env(safe-area-inset-left));
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .35s ease;
    user-select: none; -webkit-user-select: none;
  }
  .app-bar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
  html.sheet-open .app-bar { transform: translateY(140%); opacity: 0; }

  /* Footeren får plads under sig, så bjælken ikke dækker den */
  .lh-footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
}
.app-bar-inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .25rem;
  padding: .35rem; border-radius: var(--radius);
  background: color-mix(in srgb, #03331E 90%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(229, 207, 181, .14);
}
.app-bar-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  min-height: 3.35rem; padding: .45rem .2rem; border-radius: 3px;
  color: rgba(245, 237, 226, .72); text-decoration: none;
  font: 500 .68rem/1 var(--font); letter-spacing: .01em; text-align: center;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.app-bar-item svg { width: 1.3rem; height: 1.3rem; }
.app-bar-item:active { transform: scale(.93); }
.app-bar-item.is-active { color: var(--sand); }
.app-bar-item.is-primary { background: var(--btn); color: #fff; }

/* --- Menuen som bottom sheet --- */
.sheet { position: fixed; inset: 0; z-index: 70; }
.sheet[hidden] { display: none; }
.sheet-backdrop {
  position: absolute; inset: 0; background: rgba(1, 20, 12, .55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .35s ease;
}
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; max-height: 90dvh;
  padding: 0 env(safe-area-inset-right) calc(1.25rem + env(safe-area-inset-bottom)) env(safe-area-inset-left);
  border-radius: var(--radius) var(--radius) 0 0;
  background: #0A3E27; color: #F5EDE2;
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(229, 207, 181, .12);
  transform: translateY(100%); transition: transform .42s cubic-bezier(.22, 1, .36, 1);
  --paper: #0A3E27; --ink: #F5EDE2; --muted: #CBB9A1; --line: rgba(229, 207, 181, .16); --line-strong: rgba(229, 207, 181, .38); --accent: #E5CFB5; --accent-soft: rgba(229, 207, 181, .1);
}
.sheet.is-open .sheet-backdrop { opacity: 1; }
.sheet.is-open .sheet-panel { transform: translateY(0); }
html.sheet-open, html.sheet-open body { overflow: hidden; }
.sheet-handle {
  align-self: center; width: 4rem; height: 2rem; background: none; border: 0; cursor: grab; position: relative; flex: none;
}
.sheet-handle::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 2.5rem; height: 4px; border-radius: 9999px;
  background: rgba(229, 207, 181, .35); transform: translate(-50%, -50%);
}
.sheet-top { display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem .5rem; }
.sheet-logo { font-size: 1.6rem; --lh-cut-bg: #0A3E27; }
.sheet-nav { display: flex; flex-direction: column; overflow-y: auto; padding: .5rem 1.5rem 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 0; border-bottom: 1px solid var(--line);
  color: #F5EDE2; text-decoration: none; font-size: 1.45rem; font-weight: 500; letter-spacing: -0.025em;
  opacity: 0; transform: translateY(14px);
}
.sheet-link svg { width: .8rem; height: .8rem; opacity: .45; }
.sheet-link:active { color: var(--sand); }
.sheet.is-open .sheet-link { animation: sheet-in .5s cubic-bezier(.22, 1, .36, 1) forwards; animation-delay: calc(110ms + var(--i) * 50ms); }
@keyframes sheet-in { to { opacity: 1; transform: none; } }
.sheet-actions { display: grid; gap: .6rem; margin-top: 1.5rem; }
.sheet-actions .lh-btn { min-height: 3rem; font-size: .95rem; }
.sheet-install {
  display: grid; gap: .25rem; padding: .85rem 1rem; text-align: center; cursor: pointer;
  border: 1px dashed rgba(229, 207, 181, .45); border-radius: var(--radius); background: rgba(229, 207, 181, .06);
  color: #F5EDE2; font: inherit;
}
.sheet-install[hidden], .sheet-install-tip[hidden] { display: none; }
.sheet-install strong { font-size: .9rem; font-weight: 600; color: var(--sand); }
.sheet-install span { font-size: .78rem; color: #CBB9A1; }
.sheet-install-tip { font-size: .8rem; color: #CBB9A1; text-align: center; line-height: 1.6; }
.sheet-install-tip svg { display: inline; width: .9rem; height: .9rem; vertical-align: -2px; }
.sheet-install-tip strong { color: #F5EDE2; }
.sheet-contact { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .85rem; }
.sheet-contact a { color: #CBB9A1; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .sheet-panel, .sheet-backdrop, .app-bar { transition: none; }
  .sheet.is-open .sheet-link { animation: none; opacity: 1; transform: none; }
}

/* Min side på mobil: navigationen ligger i app-bjælken, kun "Log ud" bliver i toppen */
@media (max-width: 720px) {
  .lh-portal .lh-portal-nav a { display: none; }
  .lh-portal .lh-nav { height: 4.25rem; flex-wrap: nowrap; padding-block: 0; }
  .lh-portal .lh-logo { font-size: 1.75rem; }
  .lh-portal .portal { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
}

/* Papirfly-ikon på "Send opgave"-knapper */
.lh-icon-send { width: 1rem; height: 1rem; flex: none; }
.lh-btn .lh-icon-send { margin-left: -.1rem; transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
.lh-btn:hover .lh-icon-send { transform: translate(2px, -2px); }
.app-bar-item .lh-icon-send { width: 1.3rem; height: 1.3rem; }
@media (prefers-reduced-motion: reduce) { .lh-btn:hover .lh-icon-send { transform: none; } }

/* ===========================================================
   Min side: Mine opgaver, Mine oplysninger og Sikkerhed
   =========================================================== */
.lh-p { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 6vw, 4.5rem); max-width: 56rem; }
.lh-p-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.lh-p-head h1 { font-size: clamp(1.75rem, 3.4vw, 2.3rem); letter-spacing: -0.03em; line-height: 1.1; }
.lh-p-head p { margin-top: .5rem; color: var(--muted); max-width: 34rem; font-size: .975rem; }
.lh-p-flash { margin-bottom: 1.5rem; padding: .8rem 1rem; border-left: 3px solid var(--ok); background: #EEF5EF; color: var(--ok); font-size: .925rem; border-radius: 0 var(--radius) var(--radius) 0; }

/* Nøgletal */
.lh-p-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0 0 2rem; }
.lh-p-stats div { border-top: 2px solid var(--ink); padding-top: .75rem; }
.lh-p-stats dt { font-size: .8rem; color: var(--muted); }
.lh-p-stats dd { margin: .2rem 0 0; font-size: 1.9rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.lh-p-stats .has-news { border-top-color: var(--accent); }
.lh-p-stats .has-news dd { color: var(--accent); }

/* Handelsbetingelser */
.lh-p-terms { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 2rem; }
.lh-p-terms.is-pending { border-left: 3px solid var(--accent); padding: 1.25rem 1.25rem 1.25rem 1.1rem; background: var(--surface); }
.lh-p-terms-head h2 { font-size: 1.1rem; letter-spacing: -0.015em; }
.lh-p-terms-head p { margin-top: .3rem; color: var(--muted); font-size: .925rem; }
.lh-p-terms-read { cursor: pointer; margin-top: .9rem; font-size: .875rem; color: var(--accent); font-weight: 500; list-style: none; }
.lh-p-terms-read::-webkit-details-marker { display: none; }
.lh-p-terms-text { margin-top: .9rem; max-height: 18rem; overflow-y: auto; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: .875rem; color: var(--muted); }
.lh-p-terms-text p { margin: 0 0 .8rem !important; }
.lh-p-terms-text strong { color: var(--ink); font-weight: 600; }
.lh-p-terms-form { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.5rem; margin-top: 1.1rem; }
.lh-p-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; cursor: pointer; flex: 1 1 18rem; }
.lh-p-check input { width: 1.05rem; height: 1.05rem; margin-top: .15rem; accent-color: var(--btn); flex: none; }
.lh-p-terms.is-done summary { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; cursor: pointer; list-style: none; }
.lh-p-terms.is-done summary::-webkit-details-marker { display: none; }
.lh-p-terms-title { font-weight: 500; font-size: .95rem; }
.lh-p-ok { font-size: .8rem; color: var(--ok); display: inline-flex; align-items: center; gap: .35rem; }
.lh-p-ok::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: #2F8A5B; }
.lh-p-terms-toggle { margin-left: auto; font-size: .8rem; color: var(--accent); }
.lh-p-terms.is-done[open] .lh-p-terms-toggle { visibility: hidden; }
.lh-p-terms.is-done .lh-p-terms-text { margin: 0 1rem; }
.lh-p-terms-note { font-size: .8rem; color: var(--muted); padding: .75rem 1rem 1rem; }

/* Opgaveliste */
.lh-p-h2 { font-size: .8rem; font-weight: 500; color: var(--muted); margin-bottom: .6rem; }
.lh-p-list { list-style: none; border-top: 1px solid var(--line); }
.lh-p-list li { border-bottom: 1px solid var(--line); }
.lh-p-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem .5rem 1.05rem 0; text-decoration: none; color: var(--ink); transition: background-color .15s ease, padding .2s ease; }
.lh-p-row:hover { background: var(--surface); padding-left: .75rem; }
.lh-p-row:active { background: var(--accent-soft); }
.lh-p-row-main { display: grid; gap: .25rem; min-width: 0; }
.lh-p-row-title { font-weight: 500; line-height: 1.4; }
.lh-p-row-meta { font-size: .8rem; color: var(--muted); }
.lh-p-row-side { display: flex; align-items: center; gap: .6rem; flex: none; }
.lh-p-chev { width: 1rem; height: 1rem; color: var(--muted); transition: transform .2s ease; }
.lh-p-row:hover .lh-p-chev { transform: translateX(2px); color: var(--ink); }
.lh-p-unread { font-size: .75rem; font-weight: 600; color: #fff; background: var(--btn); padding: .25rem .5rem; border-radius: 3px; white-space: nowrap; }
.lh-p-empty { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; display: grid; justify-items: center; gap: .5rem; }
.lh-p-empty p { color: var(--muted); }
.lh-p-empty strong { color: var(--ink); }
.lh-p-empty .lh-btn { margin-top: .75rem; }

/* Statusmærker */
.lh-status { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 500; padding: .25rem .55rem; border-radius: 3px; border: 1px solid; white-space: nowrap; }
.lh-status::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.lh-status-ny { color: #775639; background: #F3EADF; border-color: #E2D2BE; }
.lh-status-i_gang { color: #03331E; background: #E6EFEA; border-color: #C8DACF; }
.lh-status-afventer { color: #9A5B12; background: #FBF1E2; border-color: #EFD8B5; }
.lh-status-faerdig { color: #2F6B45; background: #EEF5EF; border-color: #C7DDCB; }
.lh-status-off { color: var(--muted); background: #fff; border-color: var(--line-strong); }

/* Formular på Mine oplysninger */
.lh-p-form { display: grid; gap: 1.75rem; max-width: 40rem; }
.lh-p-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.lh-p-group legend { font-size: .8rem; font-weight: 500; color: var(--muted); padding: 0; margin-bottom: .75rem; width: 100%; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.lh-p-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lh-p-fields[hidden] { display: none; }
.lh-seg + .lh-p-fields { margin-top: 1rem; }
.lh-span-2 { grid-column: 1 / -1; }
.lh-p-hint { font-size: .78rem; color: var(--muted); }
.lh-field input:disabled { background: var(--surface); color: var(--muted); cursor: not-allowed; }
.lh-p-actions { display: flex; flex-wrap: wrap; gap: .6rem; padding-top: .5rem; }

/* Segmenteret vælger (Privat / Virksomhed) */
.lh-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: .2rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.lh-seg label { position: relative; cursor: pointer; }
.lh-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lh-seg span { display: block; padding: .5rem 1.25rem; border-radius: 3px; font-size: .9rem; font-weight: 500; text-align: center; color: var(--muted); transition: background-color .2s ease, color .2s ease; }
.lh-seg input:checked + span { background: var(--green); color: #F5EDE2; }
.lh-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Sikkerhed */
.lh-p-card { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 1.75rem); display: grid; gap: 1.5rem; max-width: 40rem; }
.lh-p-card-head { display: flex; gap: 1rem; align-items: flex-start; }
.lh-p-card-head .lh-service-icon { width: 2.75rem; height: 2.75rem; flex: none; }
.lh-p-card-head h2 { font-size: 1.15rem; letter-spacing: -0.015em; }
.lh-p-card-head p { margin-top: .4rem; color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.lh-btn-danger { color: #A23B2A; border-color: #E5B9B0; }
.lh-btn-danger::before { background: #FBEDEA; }
.lh-btn-danger:hover { border-color: #A23B2A; }
.lh-p-steps { list-style: none; counter-reset: s; display: grid; gap: 1.5rem; }
.lh-p-steps li { counter-increment: s; border-top: 1px solid var(--line); padding-top: 1.1rem; display: grid; gap: .5rem; justify-items: start; }
.lh-p-steps h3 { font-size: 1rem; }
.lh-p-steps h3::before { content: counter(s) ". "; color: var(--accent); }
.lh-p-steps p { color: var(--muted); font-size: .9rem; }
.lh-p-qr { border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; background: #fff; }
.lh-p-code { user-select: all; font-size: .9rem; letter-spacing: .06em; padding: .4rem .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); word-break: break-all; }
.lh-p-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 12rem)); gap: .35rem 1rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.lh-p-codes span { user-select: all; font-size: .9rem; }
.lh-p-inline-form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .75rem; }
.lh-p-inline-form .lh-field { width: 12rem; }
.lh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 600px) {
  .lh-p-stats dd { font-size: 1.5rem; }
  .lh-p-fields { grid-template-columns: 1fr; }
  .lh-p-row { flex-wrap: wrap; }
  .lh-p-row-side { width: 100%; justify-content: flex-start; }
  .lh-p-chev { margin-left: auto; }
  .lh-p-head .lh-btn { width: 100%; }
}
/* Min side: finjustering oven på det gamle portal-stylesheet */
.lh-portal .portal { padding-top: 0; }
.lh .lh-field input, .lh .lh-field textarea, .lh .lh-field select { padding: .6rem .8rem; min-height: 2.6rem; font: 400 1rem/1.4 var(--font); border-radius: var(--radius); box-shadow: none; }
.lh .lh-field input.lh-code-input { font-size: 1.25rem; font-weight: 500; letter-spacing: .45em; }
.lh-p-terms.is-done summary { flex-wrap: wrap; row-gap: .3rem; }
@media (max-width: 600px) {
  .lh-p-terms.is-done summary { display: grid; grid-template-columns: 1fr auto; }
  .lh-p-terms.is-done .lh-p-ok { grid-column: 1; grid-row: 2; }
  .lh-p-terms-toggle { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
.lh-p-fields { align-items: start; }

/* ===========================================================
   Min side: opgavesiden (tidslinje, tilbud, chat, sidekolonne)
   =========================================================== */
.lh-task-page { max-width: var(--max); }
.lh-p-crumbs { margin-bottom: 1rem; }
.lh-p-crumbs a { color: var(--muted); }
.lh-task-title { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; }
.lh-task-head { margin-bottom: 1.5rem; }

/* Tidslinje */
.lh-track { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 2.25rem; counter-reset: none; }
.lh-track li { position: relative; display: grid; justify-items: start; gap: .5rem; }
.lh-track li::after { content: ""; position: absolute; top: .8rem; left: 1.9rem; right: .4rem; height: 2px; background: var(--line); }
.lh-track li:last-child::after { display: none; }
.lh-track li.is-done::after { background: var(--green); }
.lh-track-dot { position: relative; z-index: 1; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 600; background: #fff; border: 2px solid var(--line-strong); color: var(--muted); }
.lh-track-dot svg { width: .85rem; height: .85rem; }
.lh-track li.is-done .lh-track-dot { background: var(--green); border-color: var(--green); color: var(--sand); }
.lh-track li.is-current .lh-track-dot { box-shadow: 0 0 0 4px var(--accent-soft); }
.lh-track-label { font-size: .8rem; color: var(--muted); }
.lh-track li.is-done .lh-track-label { color: var(--ink); font-weight: 500; }

/* Layout */
.lh-task-grid { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.lh-task-main { display: grid; gap: 2rem; min-width: 0; }
.lh-task-side { display: grid; gap: 1rem; position: sticky; top: 6rem; }

/* Tilbud */
.lh-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.lh-offer { border: 1px solid var(--line); border-top: 2px solid var(--ink); border-radius: var(--radius); padding: 1.1rem 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .4rem; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.lh-offer:hover { border-color: var(--line-strong); box-shadow: 0 10px 24px -18px rgba(3, 51, 30, .45); }
.lh-offer .lh-status { align-self: flex-start; margin-bottom: .3rem; }
.lh-offer h3 { font-size: 1.05rem; letter-spacing: -0.015em; }
.lh-offer-price { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.lh-offer-desc { font-size: .9rem; color: var(--muted); flex: 1; }
.lh-offer form { margin-top: .75rem; }
.lh-offer form .lh-btn { width: 100%; }
.lh-offer.is-chosen { border-top-color: var(--ok); border-color: #C7DDCB; box-shadow: inset 0 0 0 1px #C7DDCB; }
.lh-offer.is-dimmed { opacity: .55; }

/* Chat */
.lh-chat { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.lh-chat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.lh-chat-head h2 { font-size: 1rem; letter-spacing: -0.01em; }
.lh-chat-count { font-size: .8rem; color: var(--muted); }
.lh-portal .lh-chat-body.thread-body { display: flex; flex-direction: column; gap: .75rem; padding: 1.1rem; max-height: min(34rem, 62vh); overflow-y: auto; background: var(--surface); border: 0; overscroll-behavior: contain; }
.lh-portal .thread-body .msg-card { padding: .8rem .95rem; }
.lh-portal .thread-body .msg-card.is-origin { width: 100%; align-self: stretch; background: #fff; border: 1px dashed var(--line-strong); border-right: 1px dashed var(--line-strong); }
.lh-portal .thread-body .msg-card.is-origin .msg-name { color: var(--muted); font-weight: 500; font-size: .8rem; }
.lh-portal .msg-head { margin-bottom: .4rem; }
.lh-portal .msg-name { font-size: .85rem; }
.lh-portal .msg-time { font-style: normal; font-size: .75rem; }
.lh-portal .msg-body { font-size: .95rem; line-height: 1.55; }
.lh-origin-meta { margin-top: .6rem !important; font-size: .8rem; color: var(--muted); }
.lh-chat-empty { text-align: center; font-size: .875rem; color: var(--muted); padding: 1rem 0 .25rem; }
.lh-chat-form { display: flex; gap: .6rem; align-items: flex-end; padding: .8rem; border-top: 1px solid var(--line); background: #fff; }
.lh-chat-form textarea { flex: 1; min-height: 2.75rem; max-height: 10rem; resize: vertical; padding: .65rem .8rem; font: 400 1rem/1.4 var(--font); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.lh-chat-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lh-chat-form .lh-btn { min-height: 2.75rem; }

/* Sidekolonne */
.lh-side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: grid; gap: .7rem; background: #fff; }
.lh-side-card h2 { font-size: .8rem; font-weight: 500; color: var(--muted); }
.lh-side-card p { font-size: .9rem; color: var(--muted); }
.lh-side-card strong { color: var(--ink); }
.lh-side-card .lh-btn { justify-self: start; }
.lh-side-wait { display: flex; align-items: center; gap: .55rem; color: #9A5B12 !important; font-weight: 500; }
.lh-pulse { width: .5rem; height: .5rem; border-radius: 50%; background: #E0A93A; flex: none; }
@media (prefers-reduced-motion: no-preference) { .lh-pulse { animation: lh-pulse 1.8s ease-in-out infinite; } }
@keyframes lh-pulse { 50% { box-shadow: 0 0 0 5px rgba(224, 169, 58, .18); } }
.lh-side-dl { display: grid; gap: .5rem; margin: 0; }
.lh-side-dl div { display: flex; justify-content: space-between; gap: 1rem; font-size: .875rem; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.lh-side-dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.lh-side-dl dt { color: var(--muted); }
.lh-side-dl dd { margin: 0; font-weight: 500; text-align: right; }
.lh-upload { display: grid; gap: .6rem; }
.lh-upload input[type=file] { font: inherit; font-size: .85rem; color: var(--muted); }

@media (max-width: 900px) {
  .lh-task-grid { grid-template-columns: 1fr; }
  .lh-task-side { position: static; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
}
@media (max-width: 560px) {
  .lh-track-label { font-size: .72rem; }
  .lh-task-side { grid-template-columns: 1fr; }
  .lh-chat-form { position: sticky; bottom: 0; }
}

.lh-portal .lh-chat-count .thread-count { all: unset; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
/* Opgavesiden: fem trin i tidslinjen, note ved tilbud og godkendelse af udkast */
.lh-track { grid-template-columns: repeat(5, 1fr); }
.lh-offer-note { font-size: .875rem; color: var(--muted); margin-bottom: 1rem !important; max-width: 38rem; }
.lh-side-card form .lh-btn { width: 100%; }
.lh-side-card .lh-btn + form { margin-top: .1rem; }
.lh-side-alert { padding: .7rem .8rem; border-left: 3px solid #E0A93A; background: #FBF1E2; color: #7A4A0E !important; font-size: .85rem; border-radius: 0 var(--radius) var(--radius) 0; }
.lh-side-alert a { color: inherit; font-weight: 600; }
@media (max-width: 560px) { .lh-track-label { font-size: .66rem; } .lh-track li::after { left: 1.75rem; } }
