/* ==========================================================================
   [Studionavn] – fælles stylesheet
   Rolig, varm neutral palet. Mobil først, ingen vandret scroll.
   ========================================================================== */

:root {
  --bg: #F7F4EF;
  --bg-alt: #EFE9E1;
  --surface: #FFFFFF;
  --ink: #2B2724;
  --ink-2: #4A423B;
  --muted: #6B6158;
  --line: #E4DCD1;
  --line-2: #CFC5B8;
  --track-off: #D8CFC3;
  --knob-off: #8A7F74;
  --accent: #5E544B;
  --on-dark: #F7F4EF;
  --on-dark-2: #DDD4C8;
  --error-bg: #F3E6E1;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1200px;
  --gutter: 24px;
  --radius: 4px;
  --header-h: 76px;
}

/* ---------- Grundlag ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Ankerlinks må ikke gemme overskriften under den faste header */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Kun mens mobilmenuen er åben. Fjernes altid igen af main.js. */
html.is-locked,
html.is-locked body { overflow: hidden; }

img, svg { max-width: 100%; }
svg { flex-shrink: 0; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.1; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 500; }

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Overskriften får fokus fra "Til toppen" uden at få en ramme */
h1[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap--mid { max-width: 900px; }
.wrap--narrow { max-width: 820px; }
.wrap--form { max-width: 720px; }

.section { padding-top: 96px; padding-bottom: 96px; }
.section--tight { padding-top: 72px; padding-bottom: 72px; }
.section--alt { background: var(--bg-alt); }
.section--line { border-top: 1px solid var(--line); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark a { color: var(--on-dark); }
.section--center { text-align: center; }
.section--center .lead { margin-left: auto; margin-right: auto; }
.section--hero { padding-top: 104px; padding-bottom: 88px; }

/* To kolonner, der lægger sig under hinanden på små skærme */
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}
.split--top { align-items: flex-start; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split > .split__side { flex: 1 1 320px; }

/* Gitter uden vandret scroll: min() sikrer, at kolonnen aldrig er bredere end skærmen */
.grid {
  --min: 260px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min), 100%), 1fr));
}
.grid--fill { grid-template-columns: repeat(auto-fill, minmax(min(var(--min), 100%), 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 32px; }

/* ---------- Typografi ---------- */

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--dark .eyebrow { color: var(--on-dark-2); }

.display {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin-bottom: 24px;
  overflow-wrap: break-word;
}
.title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  overflow-wrap: break-word;
}
.title--sm { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.title--xl { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.card-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.small-title { font-size: 1.05rem; font-weight: 500; margin-bottom: 6px; line-height: 1.4; }

.lead { font-size: 1.15rem; max-width: 36rem; color: var(--ink-2); }
.section--dark .lead,
.section--dark p { color: var(--on-dark-2); }
.text { color: var(--ink-2); max-width: 38rem; }
.muted { color: var(--muted); }
.fine { font-size: 0.92rem; color: var(--muted); }
.serif-quote { font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; color: inherit; }
.section--dark .serif-quote { color: var(--on-dark); }

.list { margin: 0 0 16px; padding-left: 20px; color: var(--ink-2); }
.list li + li { margin-top: 4px; }

.lined { list-style: none; margin: 0 0 16px; padding: 0; color: var(--ink-2); }
.lined li { border-top: 1px solid var(--line); padding: 12px 0; }
.lined li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- Knapper ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark { border-color: var(--ink); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }
.btn--link {
  min-height: 44px;
  padding: 0 4px;
  border: none;
  text-decoration: underline;
  font-size: 0.95rem;
}
.btn--link:hover { color: var(--accent); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.section--center .btn-row { justify-content: center; }

/* ---------- Header og menu ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  min-height: var(--header-h);
}
.brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  line-height: 1.1;
}
.nav { display: flex; align-items: center; gap: 8px 26px; font-size: 0.95rem; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { padding: 0 20px; min-height: 44px; border-color: var(--ink); }
.nav .btn[aria-current="page"] { background: var(--ink); color: var(--on-dark); text-decoration: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}
.nav-toggle__icon { position: relative; width: 18px; height: 12px; }
.nav-toggle__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle__icon span:nth-child(1) { top: 0; }
.nav-toggle__icon span:nth-child(2) { top: 5.25px; }
.nav-toggle__icon span:nth-child(3) { top: 10.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) { top: 5.25px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) { top: 5.25px; transform: rotate(-45deg); }

/* Mobilmenu: under 1080px bliver menuen et panel under headeren */
@media (max-width: 1079px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .brand { font-size: 1.4rem; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 32px;
    background: var(--bg);
    font-size: 1.15rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
  }
  .nav a {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav .btn {
    margin-top: 24px;
    min-height: 52px;
    justify-content: center;
    border-bottom: 1px solid var(--accent);
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }
}

/* App-header (login, dashboards) */
.app-header .nav { font-size: 0.95rem; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
  padding-top: 56px;
  padding-bottom: 56px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.site-footer__brand { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; }
.site-footer__brand .brand { font-size: 1.4rem; color: var(--ink); }
.site-footer nav { flex: 1 1 320px; display: flex; flex-wrap: wrap; gap: 10px 28px; align-content: flex-start; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer--app .site-footer__inner { gap: 12px 40px; padding-top: 32px; padding-bottom: 32px; }

/* ---------- Billedpladsholdere ---------- */

.ph {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 4 / 5;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
  overflow: hidden;
}
.ph--43 { aspect-ratio: 4 / 3; }
.ph--32 { aspect-ratio: 3 / 2; }
.ph--11 { aspect-ratio: 1 / 1; }
.ph--alt { background: var(--bg-alt); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Komponenter ---------- */

.icon-card { display: flex; flex-direction: column; gap: 10px; }
.icon-card h2,
.icon-card h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.icon-card p { color: var(--ink-2); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.card--bg { background: var(--bg); }
.card--dashed { border-style: dashed; border-color: var(--line-2); }
.card--dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); padding: 48px 40px; }
.card--dark p { color: var(--on-dark-2); }
.card--flush { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--flush .ph { border: none; border-bottom: 1px solid var(--line); border-radius: 0; }
.card__body { padding: 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body p { color: var(--ink-2); margin: 0; }

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tile--open { background: transparent; border-style: dashed; border-color: var(--line-2); }
.tile__name { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; }
.tile__meta { font-size: 0.9rem; color: var(--muted); }

.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  --min: 190px;
}
.steps li { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line-2); padding-top: 20px; }
.steps__num { font-family: var(--serif); font-size: 2rem; color: var(--muted); line-height: 1; }
.steps h3,
.steps h4 { font-size: 1.05rem; font-weight: 500; line-height: 1.4; }
.steps p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }

.promises { list-style: none; margin: 0; padding: 0; --min: 320px; gap: 8px 48px; }
.promises li { display: flex; gap: 20px; border-top: 1px solid var(--line); padding: 28px 0; }
.promises__num { font-family: var(--serif); font-size: 1.8rem; color: var(--muted); line-height: 1; min-width: 1.4em; }
.promises h2 { font-size: 1.1rem; font-weight: 500; line-height: 1.4; margin-bottom: 6px; }
.promises p { color: var(--ink-2); margin: 0; }

.thoughts { display: flex; flex-direction: column; gap: 12px; margin: 0 0 32px; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.3; }
.thoughts p { margin: 0; }

.quote {
  margin: 0;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.quote p { margin: 0; font-family: var(--serif); font-size: 1.4rem; line-height: 1.35; }
.quote footer { font-size: 0.9rem; color: var(--muted); }

.pill-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li {
  padding: 8px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.98rem;
}

.price { display: flex; flex-direction: column; gap: 6px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.price--featured { background: var(--surface); border-color: var(--ink); }
.price__tag { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.price h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.price__amount { font-size: 1.3rem; font-weight: 400; margin: 0; }
.price p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }

.price-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 24px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.price-teaser p { margin: 0; font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; }

.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 4px 0 0; font-size: 0.95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink-2); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 14px 0;
  font-weight: 400;
  font-size: 1.1rem;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > p,
.faq details > div { margin: 0 0 20px; color: var(--ink-2); max-width: 40rem; }
.faq__group + .faq__group { margin-top: 56px; }
.faq__group h2 { font-family: var(--serif); font-size: 2.2rem; margin-bottom: 16px; }
.faq__more { margin: 24px 0; }

.topic-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.topic-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
}
.topic-nav a:hover { border-color: var(--ink); }

/* Indholdsport før sensuelle billeder */
.gate {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.gate .serif-quote { font-size: clamp(1.4rem, 3vw, 1.7rem); max-width: 30rem; margin: 0; }
.gate .btn-row { justify-content: center; margin-top: 12px; }
.gate--light { background: var(--surface); border: 1px solid var(--line); }

.gallery { --min: 260px; margin: 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery figcaption { font-size: 0.9rem; color: var(--ink-2); font-style: italic; display: flex; justify-content: space-between; gap: 12px; }
.gallery figcaption span + span { font-style: normal; color: var(--muted); white-space: nowrap; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }

/* Chips (vælg én) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }

/* ---------- Formularer ---------- */

.form { display: flex; flex-direction: column; gap: 20px; }
.form--card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 400; }
.field__label { font-weight: 400; }
.input,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 300;
  font-size: 1rem; /* 16px forhindrer zoom på iPhone */
}
.textarea { resize: vertical; min-height: 110px; }
.input:focus,
.textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.input--code { font-size: 1.6rem; letter-spacing: 0.4em; text-align: center; }

.pw-wrap { display: flex; gap: 8px; }
.pw-wrap .input { flex: 1; min-width: 0; }
.pw-toggle {
  flex: 0 0 auto;
  min-width: 64px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

fieldset { border: none; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 400; margin-bottom: 10px; padding: 0; }
.fieldset-stack { display: flex; flex-direction: column; gap: 10px; }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: 0.98rem; cursor: pointer; }
.check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); }
.check--inline { display: inline-flex; align-items: center; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.check--inline input { margin: 0; }

.notice { padding: 14px 16px; border-radius: var(--radius); background: var(--bg-alt); font-size: 0.95rem; margin: 0; }
.notice--error { background: var(--error-bg); }
.notice--light { background: var(--bg); }

.done {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.done .serif-quote { font-size: 1.8rem; }

.req-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.95rem; }
.req-list li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.req-list li.is-ok { color: var(--ink); }
.req-list svg { width: 16px; height: 16px; }

/* ---------- Kontaktformular-layout ---------- */

.contact-facts { list-style: none; margin: 32px 0; padding: 0; color: var(--ink-2); }
.contact-facts li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.contact-facts li::before { content: ''; flex: 0 0 auto; width: 6px; height: 6px; margin-top: 12px; border-radius: 50%; background: var(--accent); }
.contact-direct { display: flex; flex-direction: column; gap: 4px; font-size: 0.98rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 24px; }
.contact-direct strong { color: var(--ink); }

/* ---------- App-mockup på forsiden ---------- */

.phone {
  margin: 0 auto;
  width: 300px;
  max-width: 100%;
  background: var(--bg);
  color: var(--ink);
  border-radius: 36px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.phone__title { font-family: var(--serif); font-size: 1.5rem; margin: 0; color: var(--ink) !important; }
.phone .ph { aspect-ratio: 4 / 5; }
.phone__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: var(--ink);
}
.phone__rows { display: flex; flex-direction: column; font-size: 0.85rem; }
.phone__rows > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 10px 0; color: var(--ink-2); }
.phone__rows > div:first-child { font-weight: 400; color: var(--ink); }
.phone__rows > div:last-child { border-bottom: 1px solid var(--line); }
.phone__note { font-size: 0.75rem; color: var(--muted) !important; margin: 0; }
.mini-switch { width: 34px; height: 20px; border-radius: 999px; background: var(--track-off); display: inline-flex; padding: 2px; flex: 0 0 auto; }
.mini-switch::after { content: ''; width: 16px; height: 16px; border-radius: 50%; background: #fff; }

/* ---------- App / dashboards ---------- */

.app-main { flex: 1; }
.app-body { display: flex; flex-direction: column; min-height: 100vh; }

.auth { display: flex; justify-content: center; padding: 64px var(--gutter) 80px; }
.auth__inner { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 28px; }
.auth__inner--wide { max-width: 480px; }
.auth__head { display: flex; flex-direction: column; gap: 10px; }
.auth__head h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.2rem); }
.auth__head p { color: var(--ink-2); margin: 0; }
.auth__secure { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--muted); margin: 0; }
.auth__help { display: flex; flex-direction: column; gap: 10px; font-size: 0.95rem; color: var(--ink-2); }
.auth__help p { margin: 0; }

.switcher-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 24px; }
.switcher { display: inline-flex; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.switcher a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
}
.switcher a[aria-current="page"] { background: var(--ink); color: #fff; }

.dash-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 40px; }
.dash-hero h1 { font-family: var(--serif); font-size: clamp(2.6rem, 5.5vw, 4rem); margin-bottom: 12px; }
.dash-hero p { color: var(--ink-2); max-width: 34rem; font-size: 1.15rem; margin: 0; }
.dash-hero__role { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.06em; }

.stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.stats > div {
  min-width: 112px;
  flex: 1 1 112px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stats dt { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 0; font-family: var(--serif); font-size: 2.1rem; line-height: 1.1; }

.session-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding: 24px 28px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.session-bar__label { display: block; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.session-bar__value { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.progress { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.95rem; }
.progress li { display: flex; align-items: center; gap: 8px; }
.progress svg { width: 18px; height: 18px; }
.progress .is-next { color: var(--muted); }

.picker { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.picker__grid { flex: 1 1 420px; min-width: 0; }
.picker__panel {
  flex: 1 1 340px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 900px) {
  .picker__panel { position: sticky; top: calc(var(--header-h) + 16px); max-width: 400px; }
}

.thumbs { list-style: none; margin: 0; padding: 0; --min: 150px; gap: 16px; }
.thumb {
  width: 100%;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.thumb[aria-pressed="true"] { border-color: var(--ink); }
.thumb .ph { padding: 12px; font-size: 0.78rem; }
.thumb__meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 0 6px 6px; font-size: 0.85rem; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.badge--on { background: var(--ink); border-color: var(--ink); color: #fff; }
.badge svg { width: 12px; height: 12px; }

.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.panel__head h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.panel__status { font-size: 0.92rem; color: var(--ink-2); }
.panel__legend { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* Kontakt-knap (on/off) */
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 10px 0; }
.switch-row:last-child { border-bottom: 1px solid var(--line); }
.switch-row__text { display: flex; flex-direction: column; min-width: 0; }
.switch-row__label { font-weight: 400; font-size: 0.98rem; line-height: 1.4; }
.switch-row__desc { font-size: 0.85rem; line-height: 1.4; color: var(--muted); }
.switch {
  flex: 0 0 auto;
  width: 56px;
  min-height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.switch__track {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: 3px;
  transition: background-color .2s ease, border-color .2s ease;
}
.switch__knob { width: 20px; height: 20px; border-radius: 50%; background: var(--knob-off); transition: transform .2s ease, background-color .2s ease; }
.switch[aria-checked="true"] .switch__track { background: var(--accent); border-color: var(--accent); }
.switch[aria-checked="true"] .switch__knob { background: #fff; transform: translateX(20px); }

.empty { padding: 32px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); text-align: center; margin-bottom: 16px; }

/* ---------- Små skærme ---------- */

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section--tight { padding-top: 48px; padding-bottom: 48px; }
  .section--hero { padding-top: 48px; padding-bottom: 56px; }
  .split { gap: 36px; }
  .card, .form--card, .price, .quote { padding: 24px; }
  .card--dark { padding: 32px 24px; }
  .gate { padding: 36px 20px; }
  .price-teaser { padding: 24px; }
  .promises li { padding: 22px 0; gap: 14px; }
  .btn-row .btn { flex: 1 1 auto; }
  .auth { padding: 40px var(--gutter) 56px; }
  .dash-hero { padding-top: 32px; }
  .session-bar { padding: 20px; }
  .picker__panel { padding: 20px; }
  .thumbs { --min: 130px; gap: 12px; }
}

@media (max-width: 380px) {
  .grid--2 { grid-template-columns: 1fr; }
  .brand { font-size: 1.25rem; }
  .nav-toggle__text { display: none; }
}

/* ==========================================================================
   Beskeder (kunde, samarbejdspartner og admin)
   ========================================================================== */

.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.chat { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.chat__log {
  list-style: none;
  margin: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
  max-height: 440px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.chat__empty { margin: auto; color: var(--muted); text-align: center; font-size: 0.95rem; }
.msg { max-width: 85%; display: flex; flex-direction: column; gap: 4px; }
.msg__text {
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.msg__meta { font-size: 0.78rem; color: var(--muted); }
.msg--them { align-self: flex-start; }
.msg--them .msg__text { background: var(--bg-alt); border-bottom-left-radius: 4px; }
.msg--me { align-self: flex-end; align-items: flex-end; }
.msg--me .msg__text { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat__form { display: flex; gap: 10px; align-items: flex-end; }
.chat__input { min-height: 52px; flex: 1; min-width: 0; }
.chat__hint { margin: 0; }
@media (hover: none) { .chat__hint { display: none; } }

.req-mine { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.req-mine li { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding: 8px 0; color: var(--ink-2); }

/* ==========================================================================
   Admin
   ========================================================================== */

.admin-header .admin-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.admin-brand { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.admin-tag { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.admin-main {
  flex: 1;
  min-width: 0;
  padding: 40px max(var(--gutter), env(safe-area-inset-right, 0px)) 80px max(var(--gutter), env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1240px;
}
.admin-main:focus { outline: none; }

.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.admin-head > div { min-width: 0; flex: 1 1 320px; }
.admin-head .text { margin: 0; }
.admin-title { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 8px; text-wrap: balance; overflow-wrap: break-word; }
.admin-subtitle { font-family: var(--serif); font-size: 1.9rem; margin-top: 16px; }
.admin-back { align-self: flex-start; font-size: 0.95rem; text-decoration: none; color: var(--ink-2); display: inline-flex; min-height: 44px; align-items: center; }
.admin-back:hover { text-decoration: underline; }
.admin-flash { background: var(--surface); border: 1px solid var(--accent); }
.admin-flash:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.admin-stack { display: flex; flex-direction: column; gap: 16px; }
.admin-cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); align-items: start; }
.admin-tabs { margin-bottom: 4px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
}
.panel.form { gap: 16px; }
.panel__title { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; margin-bottom: 14px; }
.panel__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; }
.panel__row .panel__title { margin: 0; margin-right: auto; }
.panel__row .chips { margin-left: auto; }
.panel .text { max-width: 60ch; }
.panel .facts { margin-bottom: 14px; }

.admin-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.admin-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink-2);
}
.admin-stat:hover { border-color: var(--ink); color: var(--ink); }
.admin-stat__n { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.admin-stat.is-active { border-color: var(--accent); }
.admin-stat.is-active .admin-stat__n { color: var(--ink); }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 0.8rem;
  color: var(--ink-2);
  white-space: nowrap;
  line-height: 1.6;
}
.pill--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill--warn { background: var(--error-bg); border-color: #E3CFC6; color: var(--ink); }
.pill--done { background: var(--bg-alt); border-color: var(--bg-alt); color: var(--ink-2); }

.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}
.row:hover { border-color: var(--ink); color: var(--ink); }
.row__main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 240px; }
.row__main strong { font-weight: 400; font-size: 1.1rem; }
.row__side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rows--compact .row { padding: 12px 0; border: none; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.rows--compact .row:hover { border-color: var(--line); }
.rows--compact .row:hover strong { text-decoration: underline; }

.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.todo li:last-child { border-bottom: 1px solid var(--line); }
.todo li > span, .todo li > a { min-width: 0; flex: 1 1 260px; }
.todo a { text-decoration: none; }
.todo a:hover { text-decoration: underline; }
.todo strong { font-weight: 500; }
.todo .is-done > span { color: var(--muted); text-decoration: line-through; }

.stepper { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.stepper li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.95rem; }
.stepper li span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-2); font-size: 0.82rem;
}
.stepper .is-done { color: var(--ink); }
.stepper .is-done span { background: var(--ink); border-color: var(--ink); color: #fff; }
.stepper .is-now { color: var(--ink); font-weight: 400; }
.stepper .is-now span { border-color: var(--accent); border-width: 2px; }

.admin-thumbs { list-style: none; margin: 0; padding: 0; --min: 140px; gap: 14px; }
.admin-thumbs .ph { padding: 10px; font-size: 0.75rem; }
.admin-thumbs__meta { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; padding-top: 6px; font-size: 0.85rem; }
.admin-thumbs__meta strong { font-weight: 400; margin-right: auto; }

.quote--admin { padding: 20px; background: var(--bg); }
.quote--admin p { font-size: 1.25rem; }
.review-row { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

.project.is-closed { opacity: 0.75; }
.project__answers { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-bottom: 14px; }
.project__answers .btn--link { min-height: 32px; font-size: 1rem; }

.confirm { margin-top: 14px; padding: 16px; border: 1px solid #C9A99B; background: var(--error-bg); border-radius: var(--radius); }
.confirm p { margin: 0 0 12px; }
.btn--danger { background: #7A3B2E; border-color: #7A3B2E; color: #fff; }
.btn--danger:hover { background: #5C2A20; border-color: #5C2A20; color: #fff; }
.btn--danger-ghost { color: #7A3B2E; border-color: #D9B9AD; }
.btn--danger-ghost:hover { border-color: #7A3B2E; color: #7A3B2E; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.admin-details summary { cursor: pointer; margin-top: 16px; font-size: 0.95rem; color: var(--ink-2); min-height: 32px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 640px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 400; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
.table tr:last-child td { border-bottom: none; }
.table td .fine { display: block; }

.breakable { overflow-wrap: anywhere; }
.selectable { user-select: all; -webkit-user-select: all; }

/* Indbakke */
.inbox { display: grid; gap: 20px; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); align-items: start; }
.inbox__list { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.inbox__start { display: flex; gap: 8px; }
.inbox__start .input { min-width: 0; flex: 1; }
.threads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.thread {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
}
.thread:hover { border-color: var(--ink); color: var(--ink); }
.thread.is-current { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.thread__top { display: flex; align-items: center; gap: 8px; }
.thread__top strong { font-weight: 400; margin-right: auto; }
.thread.is-unread .thread__top strong { font-weight: 500; }
.thread__snippet { color: var(--ink-2); font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox__thread { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.inbox__thread--empty { min-height: 240px; align-items: center; justify-content: center; }
.inbox__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.inbox__head > div { flex: 1 1 200px; min-width: 0; }
.inbox__back { display: none; }
.inbox__thread .chat__log { background: var(--bg); max-height: 52vh; }

@media (max-width: 899px) {
  .inbox { grid-template-columns: 1fr; }
  .inbox.has-thread .inbox__list { display: none; }
  .inbox:not(.has-thread) .inbox__thread { display: none; }
  .inbox__back { display: inline-flex; flex-basis: 100%; }
  .inbox__thread { padding: 16px; }
}

@media (max-width: 720px) {
  .admin-main { padding-top: 24px; gap: 20px; }
  .panel { padding: 18px; }
  .row { padding: 14px 16px; }
  .chat__form { flex-direction: column; align-items: stretch; }
}

/* Overskrifter og beskeder, der får fokus fra JavaScript (fx ved skift af visning), skal ikke have ramme */
[tabindex="-1"]:focus { outline: none; }
@media (max-width: 480px) { .admin-tag { display: none; } }
.my-proposals .todo li > span:first-child { color: var(--ink-2); }

/* Mit arbejde (samarbejdspartnerens egne billeder) */
.work-grid { list-style: none; margin: 0; padding: 0; --min: 180px; gap: 18px; }
.work-grid li { display: flex; flex-direction: column; gap: 6px; }
.work-grid figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.work-grid img, .work-grid .ph {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.work-grid .ph { padding: 12px; font-size: 0.8rem; }
.work-grid figcaption { font-size: 0.9rem; color: var(--ink-2); overflow-wrap: anywhere; }
.work-grid .btn--link { align-self: flex-start; min-height: 36px; }
.work-form { margin-bottom: 24px; }
.work-preview img { max-width: 220px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
input[type="file"].input { padding: 10px; }

/* Træk-og-slip af billeder */
.dropzone, .work-form { transition: border-color .15s ease, background-color .15s ease; }
.is-dropping { border: 2px dashed var(--accent) !important; background: var(--bg-alt) !important; }
.admin-thumbs .ph img, .thumb .ph img, [data-sel-label] img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Filtre i admin */
.filters { display: flex; flex-direction: column; gap: 16px; padding: 18px 20px; }
.filters__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; }
.filters__field { flex: 0 1 240px; min-width: 0; font-size: 0.95rem; }
.filters__age legend { font-size: 0.95rem; margin-bottom: 6px; font-weight: 400; }
.filters__age-inputs { display: flex; align-items: center; gap: 8px; }
.filters__age label { width: 92px; }
.filters__age .input { min-height: 48px; }
.row__age { font-weight: 300; color: var(--muted); font-size: 0.95rem; margin-left: 6px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-bottom: 16px; }
.inline-form .field { flex: 1 1 200px; min-width: 0; }

/* Digital godkendelse af aftalen */
.agreement-status { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.agreement-status svg { width: 18px; height: 18px; flex: 0 0 auto; }
.agreement-status.is-ok { color: var(--ink); }
.agreement-status.is-waiting { color: var(--ink); font-weight: 400; }
.agreement-alert { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; background: var(--surface); border: 1px solid var(--accent); margin-bottom: 16px; }
.agreement-alert strong { font-weight: 500; }

/* Book en session */
.booking-form { gap: 22px; }
.booking-form__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.booking-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; gap: 6px; flex-basis: 100%; }
.booking-steps li { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.booking-steps li.is-done { background: var(--accent); }
.booking-step { display: flex; flex-direction: column; gap: 22px; }
.booking-step legend .fine { font-weight: 300; margin-left: 6px; }
.booking-form__nav { border-top: 1px solid var(--line); padding-top: 18px; }
.booking-when { display: flex; flex-direction: column; gap: 16px; padding-left: 32px; }
.slots { display: flex; flex-direction: column; gap: 8px; }
.slot { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.slot:has(input:checked) { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.booking-status .facts, .booking-panel .facts { margin-bottom: 16px; }
.facts--wide { grid-template-columns: minmax(120px, max-content) 1fr; }
.facts--wide dd { overflow-wrap: anywhere; }
.booking-start { text-align: left; align-items: flex-start; }
.booking-start .btn-row { justify-content: flex-start; }
.booking-accept { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
@media (max-width: 480px) {
  .booking-when { padding-left: 0; }
  .facts--wide { grid-template-columns: 1fr; gap: 2px; }
  .facts--wide dd { margin-bottom: 8px; }
}
.session-group { margin: 18px 0 10px; }
.photo-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.session-filter { min-width: 0; flex: 0 1 260px; font-size: 0.95rem; }

/* Til toppen */
.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  box-shadow: 0 6px 18px rgba(43, 39, 36, 0.12);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s, border-color .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease, visibility 0s, border-color .2s ease; }
.to-top:hover { border-color: var(--ink); }
@media (max-width: 480px) {
  .to-top { padding: 0; width: 48px; justify-content: center; }
  .to-top span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Velkomst efter login */
.welcome-list { margin: 0; padding-left: 20px; color: var(--ink); }
.welcome-list li + li { margin-top: 6px; }

/* Pakker i guiden, aftale, depositum og afbud */
.check.package { align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.check.package:has(input:checked) { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.check.package strong { font-weight: 500; }
.agreement { display: flex; flex-direction: column; gap: 14px; }
.agreement .facts { margin: 0; }
.agreement-approve { border-top: 1px solid var(--line); padding-top: 16px; }
.payment, .payment-admin { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.payment-admin { border-top: none; padding-top: 0; }
.agreement-actions { justify-content: space-between; }
.confirm--warn { border-color: #7A3B2E; }
.confirm--warn p { font-weight: 400; }

/* Projekter: tilføj fra netværket og aftaler med samarbejdspartnere */
.panel--inset { background: var(--bg-alt, transparent); border: 1px solid var(--line); margin-top: 16px; }
.project-person .booking-accept { margin-top: 8px; }
.project-agreement { margin-top: 16px; }
.project-agreement .facts { margin: 12px 0; }

/* Kunder: ubesvarede forespørgsler skiller sig ud */
.row--attention { border-left: 4px solid var(--accent, #8a6d4b); }

/* Faktura: skærm og print (gem som PDF) */
.invoice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 5vw, 48px); max-width: 820px; margin: 0 auto; }
.invoice__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.invoice__brand { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; margin: 0; }
.invoice__meta { margin: 0; display: grid; grid-template-columns: auto auto; gap: 4px 16px; font-size: 0.95rem; }
.invoice__meta dt { color: var(--muted); }
.invoice__meta dd { margin: 0; }
.invoice__to { margin: 0 0 28px; line-height: 1.6; }
.invoice table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 0.98rem; }
.invoice th, .invoice td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.invoice th:last-child, .invoice td:last-child { text-align: right; white-space: nowrap; padding-left: 16px; }
.invoice tfoot td { border-bottom: none; }
.invoice .invoice__total td { font-weight: 500; border-top: 2px solid var(--ink); }
.invoice__stamp { display: inline-block; padding: 4px 12px; border: 1px solid currentColor; border-radius: 999px; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.invoice__foot { margin-top: 28px; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.invoice-tools { max-width: 820px; margin: 0 auto 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
@media print {
  .site-header, .invoice-tools, .to-top, .site-footer { display: none !important; }
  body { background: #fff !important; }
  .app-main { padding: 0 !important; }
  .invoice { border: none; padding: 0; max-width: none; }
}
.invoice td[colspan] { white-space: normal; text-align: left; padding-left: 0; }

/* Fast "Ansøg"-knap på mobil */
.sticky-cta { position: fixed; left: 16px; right: 84px; bottom: 16px; z-index: 40; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.18);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease, visibility 0s .2s; }
.sticky-cta.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease, visibility 0s; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* Kampagnepris ved pakkerne (site.js) */
.price__was { color: var(--muted); font-size: 0.6em; margin-right: 6px; text-decoration-thickness: 1px; }
.price__offer { margin: -4px 0 12px; font-size: 0.92rem; color: var(--accent); font-weight: 400; }

/* Pop-up i bunden om en aktiv konkurrence (slås til i admin, kan lukkes) */
.contest-pop {
  position: fixed; left: 50%; bottom: 16px; z-index: 45; transform: translateX(-50%);
  width: min(640px, calc(100% - 32px));
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 28px rgba(0,0,0,.16);
}
.contest-pop__text { margin: 0; flex: 1; min-width: 0; font-size: 0.95rem; color: var(--ink); }
.contest-pop .btn { margin: 0; flex: none; }
@media (max-width: 560px) {
  .contest-pop { border-radius: 16px; flex-wrap: wrap; padding: 12px 12px 12px 16px; }
  .contest-pop__prize { display: block; }
}
/* Pop-uppen og "Ansøg"-knappen må ikke ligge oven i hinanden */
.has-contest-pop .apply-cta { display: none; }

/* Lille "Ansøg"-knap i venstre hjørne (samarbejde). Kan lukkes, og vises ikke for dem, der er logget ind. */
.apply-cta {
  position: fixed; left: 16px; bottom: 16px; z-index: 40;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 4px 4px 4px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0,0,0,.14);
  opacity: 0; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease;
}
.apply-cta.is-visible { opacity: 1; transform: none; }
.apply-cta[hidden] { display: none; }
.apply-cta .btn { margin: 0; }
.apply-cta__close {
  width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.apply-cta__close:hover, .apply-cta__close:focus-visible { color: var(--ink); background: var(--bg-alt); }
@media (prefers-reduced-motion: reduce) { .apply-cta { transition: none; } }

/* ---------- Beskyttelse af billeder på de offentlige sider (js/main.js) ---------- */
body[data-protect-images] img,
body[data-protect-images] picture,
body[data-protect-images] video,
body[data-protect-images] .ph {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none; /* iPhone: ingen "Gem billede" ved langt tryk */
}
.shield {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #8a8a8a;
  font-size: 1rem;
  text-align: center;
  padding: 16px;
}
html.is-shielded .shield { display: flex; }
@media print {
  body[data-protect-images] img,
  body[data-protect-images] picture,
  body[data-protect-images] video,
  body[data-protect-images] .ph { visibility: hidden !important; }
  .shield { display: none !important; }
}

/* Rigtige billeder i pladserne (sat ind af serveren eller js/site.js) */
.ph.has-img { padding: 0; overflow: hidden; }

/* ==========================================================================
   Dashboard-skal: fælles for admin, kunde og samarbejdspartner (js/dash.js)
   - Bred skærm: fast sidemenu i grupper med ikoner og tal.
   - Mobil: "Menu" i toppen åbner hele menuen, og en bundbjælke giver
     de vigtigste steder med én tommelfinger.
   ========================================================================== */

:root { --tabbar-h: 64px; --side-w: 264px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 20px; height: 20px; flex: 0 0 auto; }

.dash-header .dash-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.dash-brand { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.dash-tag { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (max-width: 480px) { .dash-tag { display: none; } }

.dash { display: flex; align-items: flex-start; flex: 1; }
.dash-content { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h)); }
.dash-content > main { flex: 1; }

/* Menuen (sidemenu på bred skærm, panel på mobil) */
.dash-nav__group {
  margin: 20px 0 6px;
  padding: 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.dash-nav__group:first-of-type { margin-top: 4px; }
.dash-nav a { gap: 12px; }
.dash-nav a .ico { color: var(--muted); }
.dash-nav a[aria-current="page"] .ico { color: inherit; }
.dash-nav__label { flex: 1; min-width: 0; }
.dash-nav .count { margin-left: 0; }
.dash-nav .is-gone { display: none !important; }
.dash-nav__switch { margin: 0 0 8px; }
.dash-nav__switch .switcher { display: flex; width: 100%; }
.dash-nav__switch .switcher a { flex: 1; justify-content: center; min-height: 36px; padding: 0 10px; font-size: 0.88rem; border: none; }
.dash-nav__switch .switcher a[aria-current="page"] { color: var(--on-dark); }
.dash-nav__switch .fine { display: block; padding: 6px 4px 0; font-size: 0.8rem; line-height: 1.4; }
.dash-nav__foot { display: flex; flex-direction: column; margin-top: 24px; }
.dash-nav__foot .btn--link { justify-content: flex-start; padding: 0; text-align: left; }

@media (min-width: 1080px) {
  .dash-nav {
    position: sticky;
    top: var(--header-h);
    flex: 0 0 var(--side-w);
    width: var(--side-w);
    height: calc(100vh - var(--header-h));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 24px 16px 24px 20px;
    border-right: 1px solid var(--line);
    background: var(--bg-alt);
    font-size: 0.96rem;
  }
  .dash-nav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 6px;
    color: var(--ink-2);
  }
  .dash-nav a:hover { background: rgba(43, 39, 36, 0.06); color: var(--ink); }
  .dash-nav a[aria-current="page"] { background: var(--ink); color: var(--on-dark); text-decoration: none; }
  .dash-nav a[aria-current="page"] .count { background: var(--on-dark); color: var(--ink); }
  .dash-nav__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 0.92rem; }
  .dash-nav__foot a, .dash-nav__foot .btn--link { min-height: 40px; padding: 0 12px; }
  .dash-tabbar { display: none !important; }
}

@media (max-width: 1079px) {
  .dash-nav a[aria-current="page"] { font-weight: 400; }
  .dash-nav a[aria-current="page"] .dash-nav__label { text-decoration: underline; text-underline-offset: 6px; }
  .dash-nav a { min-height: 52px; }
  .dash-nav__group { padding: 0; margin-top: 24px; }
  .dash-nav__switch { margin: 12px 0 0; }
  .dash-nav__foot a { font-size: 1rem; color: var(--ink-2); }
  .dash-nav__foot .btn--link { min-height: 52px; }

  /* Bundbjælken ligger over menupanelet, så "Mere" også kan lukke det igen */
  .dash-body .nav { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  .dash-body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
}

/* Bundbjælke (mobil) */
.dash-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 101;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding: 0 max(4px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(4px, env(safe-area-inset-left, 0px));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(43, 39, 36, 0.05);
}
.dash-tabbar a,
.dash-tabbar button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 6px 2px;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}
.dash-tabbar span:not(.count) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-tabbar .ico { width: 22px; height: 22px; }
.dash-tabbar a[aria-current="page"] { color: var(--ink); }
.dash-tabbar a[aria-current="page"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28%;
  right: 28%;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--ink);
}
.dash-tabbar button[aria-expanded="true"] { color: var(--ink); }
.dash-tabbar .count {
  position: absolute;
  top: 5px;
  left: calc(50% + 6px);
  min-width: 18px;
  height: 18px;
  margin: 0;
  padding: 0 5px;
  font-size: 0.7rem;
}

/* Visninger på kundens og partnerens side: én ad gangen */
.js [data-view]:not(.is-view) { display: none !important; }
.js [data-view-empty]:not(.is-empty-shown) { display: none !important; }
.dash-views .section { padding-top: 40px; padding-bottom: 56px; }
.dash-views .section--line { border-top: none; }
.dash-views .dash-hero { padding-top: 40px; padding-bottom: 28px; }
.dash-overview-block { padding-top: 32px; padding-bottom: 8px; }
@media (max-width: 720px) {
  .dash-views .section { padding-top: 28px; padding-bottom: 40px; }
  .dash-views .dash-hero { padding-top: 28px; padding-bottom: 20px; }
}
.dash-views .site-footer--app { margin-top: auto; }

/* Genveje på overblikket */
.dash-shortcuts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); margin: 0; padding: 0; list-style: none; }
.dash-shortcut {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 14px;
  height: 100%;
  padding: 18px 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}
.dash-shortcut:hover { border-color: var(--ink); }
.dash-shortcut:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dash-shortcut__icon {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--ink-2);
}
.dash-shortcut__title { font-weight: 400; font-size: 1.05rem; line-height: 1.3; display: flex; align-items: center; gap: 8px; }
.dash-shortcut__desc { grid-column: 2; font-size: 0.88rem; line-height: 1.45; color: var(--muted); }
.dash-shortcut > .ico:last-child { grid-row: 1 / span 2; grid-column: 3; color: var(--line-2); width: 18px; height: 18px; }
.dash-shortcut:hover > .ico:last-child { color: var(--ink); }
.dash-shortcut .count { margin-left: 0; }
.dash-shortcut.is-gone { display: none; }
.dash-block-title { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 400; }

/* Tom visning */
.dash-empty { padding-top: 40px; padding-bottom: 56px; }
.dash-empty .empty { text-align: left; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 28px; }
.dash-empty .empty h2 { font-family: var(--serif); font-size: 1.8rem; color: var(--ink); margin: 0; }
.dash-empty .empty p { margin: 0; }

/* Admin: tallene på overblikket med ikon */
.admin-stat { position: relative; }
.admin-stat .ico { position: absolute; top: 18px; right: 18px; color: var(--line-2); }
.admin-stat.is-active .ico { color: var(--accent); }

@media print {
  .dash-nav, .dash-tabbar { display: none !important; }
  .dash-body { padding-bottom: 0 !important; }
}
@media (max-width: 1079px) {
  .dash-body .to-top { bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom, 0px)); }
}
.dash-shortcuts li:has(> .is-gone, > [hidden]) { display: none; }
@media (max-width: 720px) {
  .admin-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .admin-stat { padding: 14px 16px; font-size: 0.92rem; line-height: 1.4; }
  .admin-stat__n { font-size: 2rem; }
  .admin-stat .ico { top: 14px; right: 14px; width: 18px; height: 18px; }
  .dash-shortcut { padding: 14px; gap: 2px 12px; }
  .dash-shortcut__icon { width: 40px; height: 40px; }
}
.dash-nav > .dash-nav__group:first-child,
.dash-nav__switch[hidden] + .dash-nav__group { margin-top: 4px; }
.dash-nav__switch + .dash-nav__group { margin-top: 20px; }
.dash-nav .switcher a { text-decoration: none; border-bottom: none; }

/* ---------- Statistik (admin) ---------- */
.admin-stat--static:hover { border-color: var(--line); color: var(--ink-2); }
.admin-stat--static.is-active:hover { border-color: var(--accent); }
.admin-stat .fine { font-size: 0.82rem; }

.stat-chart {
  display: flex;
  align-items: stretch;
  gap: 3px;
  height: 200px;
  padding-top: 8px;
}
.stat-chart__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.stat-chart__track { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.stat-chart__bar {
  display: block;
  height: var(--h, 0%);
  flex: 0 0 auto;
  min-height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  opacity: 0.85;
}
.stat-chart__col:hover .stat-chart__bar { opacity: 1; }
.stat-chart__x { font-size: 0.72rem; color: var(--muted); text-align: center; white-space: nowrap; overflow: visible; height: 1.2em; line-height: 1.2; display: flex; justify-content: center; }
.stat-chart__x.is-quiet { visibility: hidden; }

.stat-list, .stat-funnel { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.stat-list li, .stat-funnel li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: baseline;
}
.stat-list__label { color: var(--ink); min-width: 0; }
.stat-list__n { font-variant-numeric: tabular-nums; color: var(--ink-2); text-align: right; }
.stat-list__bar {
  grid-column: 1 / -1;
  display: block;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 0 / var(--w, 0%) 100%, var(--bg-alt);
}
@media (max-width: 640px) {
  .stat-chart { height: 160px; gap: 2px; }
}

/* ---------- Portfolio (admin) ---------- */
.pf-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.pf-card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.pf-card .ph { position: relative; aspect-ratio: 4 / 5; }
.pf-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.pf-card__no {
  position: absolute; top: 8px; left: 8px; min-width: 26px; height: 26px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 13px; background: var(--surface); color: var(--ink); font-size: 0.82rem; font-variant-numeric: tabular-nums;
}
.pf-card .btn-row { margin-top: auto; }
