/* ==========================================================================
   Adlure Library — galleriet på library.adlure.dk

   Samme designsystem som adlure.dk: Assistant-skriften, den blå #0FA0E2,
   mørk hero med foto, hvide kort, runde knapper og den sorte footer.
   Demo-sitesne selv beholder deres eget design — det er kun rammen her.

   Sikkerhed: al styling ligger i denne fil. Der er ingen inline-styles i
   galleriets HTML, så Content-Security-Policy'en kan køre med
   style-src 'self'.
   ========================================================================== */

@font-face {
  font-family: Assistant;
  src: url("assets/fonts/assistant-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Assistant;
  src: url("assets/fonts/assistant-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0fa0e2;
  --blue-hover: #0b8fcb;
  --blue-dark: #0b7eaf;
  --blue-light: #2eb3ef;
  --blue-tint: #eaf6fd;

  --ink: #121212;
  --ink-soft: #2b3036;
  --muted: #5b6169;
  --faint: #8a9098;
  --line: #e5e8ec;
  --line-soft: #eff1f4;

  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --dark: #0d1319;
  --footer: #0f0f0f;

  --r: 14px;
  --r-lg: 20px;
  --r-xl: 26px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 28px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 2px 6px rgba(16, 24, 40, 0.04), 0 28px 64px rgba(16, 24, 40, 0.1);

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --hdr-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

html {
  /* Hvidt foroven og sort forneden, så "gummibåndet" på Mac viser footerens farve */
  background: linear-gradient(to bottom, var(--bg) 0 50%, var(--footer) 50% 100%);
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  font-family: Assistant, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html:has(dialog[open]) { overflow: hidden; }

main { flex: 1 0 auto; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
/* <em> farver en del af en overskrift — det er ikke betoning */
em { font-style: normal; color: var(--blue); }

.ico { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.skip:focus { top: 12px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease),
              box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn .ico { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--up:hover .ico { transform: translate(2px, -2px); }
.btn--ned:hover .ico { transform: translateY(3px); }

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 22px rgba(15, 160, 226, 0.3);
}

.btn--primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 30px rgba(15, 160, 226, 0.38);
}

.btn--glass {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn--glass:hover { border-color: rgba(255, 255, 255, 0.36); background: rgba(255, 255, 255, 0.15); }

.btn--ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn--ghost:hover { border-color: #cfd5db; background: var(--bg-soft); }

.btn--lg { height: 56px; padding: 0 26px; font-size: 16px; }
.btn--sm { height: 42px; padding: 0 17px; border-radius: 999px; font-size: 14.5px; }
.btn--sm .ico { width: 16px; height: 16px; }

/* ---------- Header ---------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}

.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--hdr-h); }
.hdr__logo { display: flex; align-items: center; gap: 12px; }
.hdr__logo img { width: auto; height: 52px; }

.hdr__navn {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--blue-tint);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue-dark);
}

.hdr__end { display: flex; align-items: center; gap: 12px; }

.lang {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang a { padding: 5px 10px; border-radius: 999px; color: var(--faint); transition: color 0.2s; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(56px, 7.5vw, 104px) clamp(56px, 7vw, 96px);
  background: var(--dark);
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: var(--dark) url("assets/img/hero-webdesign.jpg") center / cover no-repeat;
}

/* Tungest til venstre, hvor teksten står */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(100deg, rgba(9, 13, 18, 0.95) 0%, rgba(9, 13, 18, 0.86) 40%, rgba(9, 13, 18, 0.66) 75%, rgba(9, 13, 18, 0.6) 100%),
    linear-gradient(180deg, rgba(9, 13, 18, 0.5) 0%, rgba(9, 13, 18, 0) 30%, rgba(9, 13, 18, 0) 60%, rgba(9, 13, 18, 0.8) 100%);
}

/* Blødt blåt skær bag overskriften */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -35%;
  left: -10%;
  width: min(1000px, 120vw);
  aspect-ratio: 1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(15, 160, 226, 0.26) 0%, rgba(15, 160, 226, 0.08) 40%, rgba(15, 160, 226, 0) 66%);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 7px 15px 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
}

.pill__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-light); }

.pill__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--blue-light);
  animation: ping 2.2s var(--ease) infinite;
}

@keyframes ping { 70%, 100% { transform: scale(2.8); opacity: 0; } }

.hero h1 {
  max-width: 15em;
  margin-bottom: 20px;
  font-size: clamp(2.3rem, 4.8vw, 3.9rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero h1 em { display: block; color: var(--blue-light); }

.hero__lead {
  max-width: 36em;
  margin-bottom: 32px;
  font-size: clamp(1.03rem, 1.35vw, 1.17rem);
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.74);
}

.trin { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 900px; margin-top: 44px; }

.trin__punkt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.trin__nr {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue);
  font-size: 15px;
  font-weight: 700;
}

.trin__punkt strong { display: block; font-size: 15px; line-height: 1.3; }
.trin__punkt small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, 0.64); }

.hero__in > * { animation: heroInd 0.9s var(--ease) backwards; }
.hero__in > :nth-child(2) { animation-delay: 0.06s; }
.hero__in > :nth-child(3) { animation-delay: 0.12s; }
.hero__in > :nth-child(4) { animation-delay: 0.18s; }
.hero__in > :nth-child(5) { animation-delay: 0.24s; }
@keyframes heroInd { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Sektioner ---------- */

.sec { padding-block: clamp(64px, 8vw, 112px); }
.sec--soft { background: var(--bg-soft); }
.sec:focus { outline: none; }
.sec__head { margin-bottom: 26px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

.h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }

/* ---------- Branche-knapperne (som på adlure.dk/cases) ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 8px 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.chip:hover { border-color: #cfd5db; color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }

.chip__antal {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 99px;
  background: var(--bg-soft);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.chip[aria-pressed="true"] .chip__antal { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* ---------- Kortene ---------- */

.gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }

.kort {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  animation: kortInd 0.6s var(--ease) backwards;
}

.kort:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow-lg); }
@keyframes kortInd { from { opacity: 0; transform: translateY(14px); } }

/* Skærmbilledet er hele siden fra top til bund. I hvile ses toppen, og når
   man holder musen over, glider det roligt ned gennem siden. */
.kort__billede {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

.kort__billede img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transition: object-position 9s cubic-bezier(0.45, 0.05, 0.55, 0.95) 0.35s;
}

.kort:hover .kort__billede img { object-position: 50% 100%; }

.kort__demo {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(13, 19, 25, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.kort__krop { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 24px; }

.kort__branche {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.kort__titel { margin: 6px 0 8px; font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.015em; }
.kort__tekst { flex: 1; font-size: 15.5px; line-height: 1.6; color: var(--muted); }

.kort__maerker { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

.kort__maerker li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-tint);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue-dark);
}

.kort__knapper { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.tom {
  padding: 44px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--muted);
}

.note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  font-size: 14px;
  color: var(--faint);
  text-align: center;
}

.note .ico { width: 16px; height: 16px; }

/* ---------- Til sidst: næste skridt ---------- */

.sec--outro { padding-block: clamp(56px, 7vw, 96px); }

.outro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 12% 0%, rgba(15, 160, 226, 0.28), transparent 55%),
    var(--dark);
  color: #fff;
}

.outro__h { margin-bottom: 8px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; letter-spacing: -0.02em; }
.outro p { max-width: 36em; line-height: 1.6; color: rgba(255, 255, 255, 0.72); }
.outro__knapper { display: flex; flex: none; flex-wrap: wrap; gap: 10px; }

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

.ftr {
  padding-top: clamp(56px, 7vw, 80px);
  background: var(--footer);
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
}

.ftr__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; }
.ftr__logo { display: inline-block; margin: -14px 0 8px -18px; }
.ftr__logo img { width: auto; height: 96px; }
.ftr__tekst { max-width: 30em; margin-bottom: 18px; line-height: 1.6; }

.ftr__mail { display: flex; align-items: center; gap: 10px; width: max-content; font-size: 17px; font-weight: 700; color: #fff; }
.ftr__mail .ico { color: var(--blue-light); }

.ftr__h {
  margin: 0 0 18px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.ftr ul li + li { margin-top: 11px; }
.ftr a { transition: color 0.2s; }
.ftr a:hover { color: #fff; }

.ftr__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-block: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.42);
}

/* ---------- Forhåndsvisningen ---------- */

.viewer {
  width: min(1440px, calc(100vw - 32px));
  max-width: none;
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #e9edf1;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
}

.viewer[open] { display: flex; flex-direction: column; animation: viewerInd 0.35s var(--ease); }
.viewer::backdrop { background: rgba(9, 13, 18, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes viewerInd { from { opacity: 0; transform: translateY(14px) scale(0.985); } }

.viewer__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.viewer__info { flex: 1; min-width: 0; }
.viewer__titel { overflow: hidden; font-size: 16px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.viewer__meta { overflow: hidden; font-size: 13px; color: var(--faint); text-overflow: ellipsis; white-space: nowrap; }

.viewer__enheder { display: flex; flex: none; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }

.viewer__enheder button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  transition: background-color 0.2s, color 0.2s;
}

.viewer__enheder button:hover { color: var(--ink); }
.viewer__enheder button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.viewer__enheder .ico { width: 16px; height: 16px; }
.viewer__aabn { flex: none; }

.viewer__luk {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--muted);
  transition: background-color 0.2s, color 0.2s;
}

.viewer__luk:hover { background: var(--bg-soft); color: var(--ink); }

.viewer__scene { display: flex; flex: 1; justify-content: center; min-height: 0; padding: 18px; }

.viewer__ramme {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(16, 24, 40, 0.16);
  transition: width 0.45s var(--ease);
}

.viewer__ramme[data-enhed="tablet"] { width: min(820px, 100%); border-radius: 18px; }
.viewer__ramme[data-enhed="mobil"] { width: min(390px, 100%); border-radius: 28px; }
.viewer__ramme iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- Favoritter: hjertet ---------- */

.kort__top { position: relative; }

.kort__gem {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  box-shadow: 0 4px 14px rgba(13, 19, 25, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.2s var(--ease), color 0.2s, background-color 0.2s;
}

.kort__gem:hover { transform: scale(1.08); color: #dc3545; }
.kort__gem .ico, .viewer__gem .ico, .favbar__ikon .ico { width: 20px; height: 20px; stroke-width: 2; }
.kort__gem[aria-pressed="true"] { color: #dc3545; }
.kort__gem[aria-pressed="true"] .ico,
.viewer__gem[aria-pressed="true"] .ico { fill: currentColor; }
.kort__gem[aria-pressed="true"] { animation: hjerte 0.35s var(--ease); }
@keyframes hjerte { 50% { transform: scale(1.18); } }

.viewer__gem {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14.5px;
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s;
}

.viewer__gem:hover { border-color: #cfd5db; }
.viewer__gem[aria-pressed="true"] { border-color: rgba(220, 53, 69, 0.35); color: #c52b3b; }

/* ---------- Favoritbjælken ---------- */

.favbar {
  position: fixed;
  right: 0;
  bottom: 16px;
  left: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  pointer-events: none;
  animation: favbarInd 0.4s var(--ease);
}

@keyframes favbarInd { from { opacity: 0; transform: translateY(20px); } }

.favbar__in {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 760px;
  width: 100%;
  padding: 10px 10px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(13, 19, 25, 0.94);
  color: #fff;
  box-shadow: 0 24px 60px rgba(9, 13, 18, 0.35);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.favbar__ikon { display: grid; flex: none; place-items: center; color: #ff6b7a; }
.favbar__ikon .ico { fill: currentColor; }
.favbar__tekst { display: flex; flex: 1; align-items: baseline; gap: 10px; min-width: 0; font-size: 15px; }
.favbar__tekst strong { flex: none; }
.favbar__tekst span { overflow: hidden; color: rgba(255, 255, 255, 0.64); text-overflow: ellipsis; white-space: nowrap; }
.favbar__ryd { flex: none; padding: 8px 6px; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, 0.64); transition: color 0.2s; }
.favbar__ryd:hover { color: #fff; }
.favbar .btn { flex: none; }

/* Bjælken må ikke dække footerens nederste linje */
body.har-favoritter .ftr { padding-bottom: 84px; }

/* ---------- Send-dialogen (som adlure.dk's booking-dialog) ---------- */

.modal {
  width: min(640px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}

.modal::backdrop { background: rgba(9, 13, 18, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: viewerInd 0.35s var(--ease); }
.modal__box { position: relative; padding: clamp(24px, 4vw, 40px); }

.modal__luk {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-soft);
  transition: background-color 0.2s;
}

.modal__luk:hover { background: var(--line); }
.modal__titel { margin-bottom: 8px; padding-right: 44px; font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.15; letter-spacing: -0.02em; }
.modal__tekst { margin-bottom: 22px; color: var(--muted); }

.valgte { margin: 0 0 18px; padding: 0; border: 0; }
.valgte legend { margin-bottom: 8px; padding: 0; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.valgte__liste { display: flex; flex-wrap: wrap; gap: 8px; }

.valg {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.valg:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); color: var(--blue-dark); }
.valg input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }

.form__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.field { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.field__opt { font-weight: 400; color: var(--faint); }

.field input,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea { min-height: 96px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #cfd6dd; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(15, 160, 226, 0.15); }
.field.is-fejl input, .field.is-fejl textarea { border-color: #dc3545; box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1); }

.form__send { width: 100%; }
.form__send:disabled { opacity: 0.6; cursor: progress; transform: none; }

.form__fejl {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(220, 53, 69, 0.08);
  color: #a61e2d;
  font-size: 14.5px;
  font-weight: 700;
}

.form__note { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--faint); }
.form__note a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 2px; }

.form__tak { padding: 28px 8px 8px; text-align: center; }
.form__tak:focus { outline: none; }

.form__tak-ico {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
}

.form__tak-ico .ico { width: 26px; height: 26px; stroke-width: 2.4; }
.form__tak h2 { margin-bottom: 8px; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; }
.form__tak p { margin-bottom: 22px; color: var(--muted); }

/* ---------- Siden findes ikke (404) ---------- */

.ikkefundet { display: grid; flex: 1; place-items: center; padding: 60px var(--gutter); background: var(--bg-soft); }

.ikkefundet__kort {
  max-width: 520px;
  padding: clamp(32px, 5vw, 52px);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.ikkefundet__kort img { width: auto; height: 64px; margin: 0 auto 18px; }
.ikkefundet__kort h1 { margin-bottom: 12px; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.1; letter-spacing: -0.025em; }
.ikkefundet__kort p { margin-bottom: 26px; line-height: 1.65; color: var(--muted); }

/* ==========================================================================
   Responsivt
   ========================================================================== */

@media (max-width: 959px) {
  .trin { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .outro { flex-direction: column; align-items: flex-start; }
  .ftr__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .viewer__enheder span { display: none; }
  .viewer__enheder button { padding: 0 11px; }
}

@media (max-width: 767px) {
  .viewer { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
  .viewer__bar { flex-wrap: wrap; gap: 10px; padding: 10px 10px 10px 16px; }
  .viewer__info { flex: 1 1 calc(100% - 56px); order: 1; }
  .viewer__luk { order: 2; }
  .viewer__enheder { order: 3; }
  .viewer__aabn { order: 4; margin-left: auto; }
  .viewer__scene { padding: 10px; }
  .ftr__bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 599px) {
  :root { --hdr-h: 68px; }
  .hdr__logo img { height: 46px; }
  .hdr__cta { display: none; }
  .hero .btn--lg { width: 100%; }
  .kort__knapper .btn { flex: 1; }
  .outro__knapper { width: 100%; }
  .outro__knapper .btn { flex: 1; }
  /* På en lille skærm er der ikke plads til at vise en "computer" — så
     vælgeren skjules, og demoen fylder hele skærmen */
  .viewer__enheder { display: none; }
  .viewer__gem span { display: none; }
  .viewer__gem { padding: 0 11px; }
  .favbar { bottom: 10px; padding-inline: 10px; }
  .favbar__in { gap: 10px; padding-left: 14px; border-radius: 20px; }
  .favbar__tekst span { display: none; }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
}
