/* Grange typeface. See /grange.css for the full explanation of why the
   font-weight descriptors here are +100 shifted (matching each file's
   internal usWeightClass). Keep this block in sync with grange.css. */
@font-face {
  font-family: "Grange";
  src: url("/fonts/grange-light.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Grange";
  src: url("/fonts/grange-medium.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Grange";
  src: url("/fonts/grange-demibold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Grange";
  src: url("/fonts/grange-bold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: block;
}

:root {
  --primary: rgb(47, 58, 77);
  --primary-hover: rgb(36, 46, 62);
  --bg: #ffffff;
  --border: #e3e6ec;
  --muted-bg: #f7f8fa;
  --muted-text: #6c7585;

  --ok-bg: #d1f4e0;
  --ok-fg: #146c43;
  --warn-bg: #fff4cc;
  --warn-fg: #8a5a00;
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; }
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: "Grange", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--primary);
  font-size: 16px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Two-column layout ---- */
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

/* ---- Filter sidebar ---- */
.filters {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(47, 58, 77, 0.06);
  position: sticky;
  top: 24px;
}
.filter-group { padding: 14px 0; border-top: 1px solid var(--border); }
.filter-group:first-child { padding-top: 0; border-top: 0; }
.filter-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
}
.filter-select {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--primary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 32px 8px 12px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%232F3A4D' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  transition: border-color 160ms ease;
}
.filter-select:hover, .filter-select:focus { border-color: var(--primary); outline: none; }
.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--primary);
  cursor: pointer;
  padding: 4px 0;
}
.filter-check--inline { margin-top: 8px; }
.filter-check input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 160ms ease;
}
.filter-check input[type="checkbox"]:hover { border-color: var(--primary); }
.filter-check input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.filter-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3 8l4 4 6-8'/></svg>");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.star-picker {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}
.star-btn {
  background: none;
  border: 0;
  padding: 0 2px;
  cursor: pointer;
  font-size: 22px;
  color: var(--border);
  transition: color 160ms ease;
}
.star-btn.active { color: var(--primary); }
/* Hover preview: dim all when hovering picker, then highlight hovered + earlier-shown stars */
.star-picker:hover .star-btn { color: var(--border); }
.star-picker .star-btn:hover,
.star-picker .star-btn:hover ~ .star-btn { color: var(--primary); }
.filter-footer {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted-text);
}

/* ---- Mobile filters toggle (hidden on desktop) ---- */
.filters-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: var(--bg);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms ease;
}
.filters-toggle:hover { border-color: var(--primary); }
.filters-toggle__icon { width: 18px; height: 18px; color: var(--muted-text); }

/* ---- Mobile breakpoint ---- */

/* ---- Modal ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  animation: overlay-in 200ms ease-out;
}
.modal__card {
  position: relative;
  background: var(--bg);
  border-radius: 14px;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  animation: card-in 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes card-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--muted-bg);
  border: 0;
  color: var(--primary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 160ms ease;
}
.modal__close:hover { background: #ebedf2; }
.modal__body {
  padding: 32px 22px 24px;
  overflow-y: auto;
}

.m-logo {
  display: block;
  margin: 8px auto 16px;
  max-height: 64px;
  max-width: 240px;
}
.m-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 4px;
}
.m-summary__stars { font-size: 16px; letter-spacing: 1px; color: var(--primary); }
.m-summary__sub { font-size: 13px; color: var(--muted-text); }
.m-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}
.m-row + .m-row { border-top: 1px solid var(--border); }
.m-row__value { display: flex; align-items: center; gap: 8px; }
.m-row__stars { font-size: 14px; letter-spacing: 1px; color: var(--primary); }
.m-row__sub { font-size: 13px; color: var(--muted-text); font-weight: 400; }
.m-section { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--border); }
.m-section h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}
.m-fee {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  font-size: 15px;
}
.m-fee + .m-fee { border-top: 1px solid var(--border); }
.m-fee__icon { width: 16px; height: 16px; color: var(--muted-text); margin-top: 2px; }
.m-fee__label { color: var(--primary); font-weight: 500; }
.m-fee__amount { text-align: right; }
.m-fee__amount strong { font-weight: 600; color: var(--primary); }
.m-fee__amount small { display: block; font-size: 12px; color: var(--muted-text); margin-top: 2px; }
.m-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  margin-top: 0;
  border-top: 1px solid var(--border);
  font-size: 19px;
  font-weight: 600;
  color: var(--primary);
}
.m-krav-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.5;
  color: var(--primary);
}
.m-krav-list li {
  position: relative;
  padding: 4px 0 4px 18px;
}
.m-krav-list li + li { border-top: 1px solid var(--border); }
.m-krav-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted-text);
}

.m-cta {
  display: block;
  margin-top: 22px;
  padding: 14px 18px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  transition: background 160ms ease;
}
.m-cta:hover { background: var(--primary-hover); }
.m-partner-note {
  margin: 14px 0 0;
  font-size: 13px;
  font-style: italic;
  line-height: 1.5;
  color: var(--muted-text);
}
.m-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted-text);
  line-height: 1.5;
}

/* ---- Page header ---- */
.list-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}
.list-title { display: flex; flex-direction: column; gap: 12px; }
.list-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
}
.search-input {
  font-family: inherit;
  font-size: 16px;
  color: var(--primary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 14px;
  width: 260px;
  max-width: 100%;
  outline: none;
  transition: border-color 160ms ease;
}
.search-input::placeholder { color: var(--muted-text); }
.search-input:focus { border-color: var(--primary); }
.list-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.count {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-text);
}
.sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.sort-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-text);
  font-size: 12px;
}
#sort-select {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 32px 8px 12px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%232F3A4D' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  transition: border-color 160ms ease;
}
#sort-select:hover, #sort-select:focus { border-color: var(--primary); outline: none; }

/* ---- Deals list ---- */
.deals {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---- Card ---- */
.card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px 18px 56px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(47, 58, 77, 0.06);
  list-style: none;
  transition: transform 120ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.10);
}

.card:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) inset; }

/* Stretched click target — covers the whole card, sits behind the content */
.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.card-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.card__body { position: relative; z-index: 2; pointer-events: none; }
.rank        { z-index: 2; pointer-events: none; }

.card__body {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr 1fr 1fr;
  align-items: center;
  gap: 24px;
}

/* ---- Rank ---- */
.rank {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--muted-bg);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* ---- Brand column ---- */
.card__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.logo {
  max-height: 40px;
  max-width: 150px;
  object-fit: contain;
}

.product {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  margin: -2px 0 2px;
}
.rating {
  font-size: 13px;
  color: var(--primary);
  letter-spacing: 1px;
}

.cert {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 12px;
  background: #146c43;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cert--warn { background: #b91c1c; }
.cert-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted-text);
}

/* ---- Stats column (Andel af krav · Gns. krav størrelse) ---- */
.card__stats { display: flex; flex-direction: column; }
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 14px;
}
.stat-row + .stat-row { border-top: 1px solid var(--border); }
.stat-label {
  color: var(--muted-text);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat-value {
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
}

/* ---- Price column ---- */
.card__price { display: flex; justify-content: center; }
.price-year { display: flex; align-items: baseline; gap: 6px; }
.price-amount {
  font-size: 26px;
  font-weight: 600;
  color: var(--primary);
}
.price-unit {
  font-size: 13px;
  color: var(--muted-text);
}

/* ---- Meta column ---- */
.card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.meta-row {
  display: grid;
  grid-template-columns: 12px 1fr;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
}
.meta-row + .meta-row { border-top: 1px solid var(--border); }
.meta-icon {
  width: 12px;
  height: 12px;
  color: var(--muted-text);
  flex-shrink: 0;
}
.meta-icon--bs {
  width: 16px;
  height: auto;
  margin-left: -2px;
}
.meta-fast-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-text);
}
.meta-value {
  font-weight: 600;
  color: var(--primary);
  text-align: right;
}

@media (max-width: 900px) {
  .container { max-width: 100%; }

  .filters-toggle { display: flex; }

  /* Layout: single column. minmax(0,1fr) lets the column shrink below content width. */
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  /* Filters: hidden by default on mobile, shown when toggled */
  .filters {
    display: none;
    position: static;
    padding: 18px 18px 12px;
  }
  .filters.is-open { display: block; }

  /* Header — stack title + controls */
  .list-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 16px;
  }
  .list-header h1 { font-size: 24px; }
  .list-controls {
    align-items: stretch;
    gap: 8px;
  }
  .search-input { width: 100%; }
  .sort-wrap { width: 100%; justify-content: space-between; }
  #sort-select { flex: 1; }

  /* Cards: 2-column layout — brand left, price/meta right.
     Rank floats top-left, overlapping the card corner. */
  .card {
    padding: 18px 16px;
    min-width: 0;
    overflow: visible;
  }
  .card__body {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas:
      "brand price"
      "brand meta"
      "stats stats";
    column-gap: 14px;
    row-gap: 8px;
    align-items: start;
    min-width: 0;
  }
  .card__brand { grid-area: brand; min-width: 0; }
  .card__price { grid-area: price; justify-content: flex-end; align-items: baseline; min-width: 0; }
  .card__meta  { grid-area: meta;  min-width: 0; }
  .card__stats {
    grid-area: stats;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    min-width: 0;
  }
  .card__stats .stat-row { padding: 5px 0; font-size: 12px; }
  .card__stats .stat-label { font-size: 10px; }
  .card__stats .stat-value { font-size: 13px; }

  /* Rank: top-left corner, overlapping card edge */
  .rank {
    top: -10px;
    left: -10px;
    transform: none;
    width: 26px;
    height: 26px;
    font-size: 12px;
    background: var(--bg);
    box-shadow: 0 1px 3px rgba(47, 58, 77, 0.12);
  }

  /* Brand column */
  .logo { max-height: 42px; max-width: 150px; }
  .cert { font-size: 10px; padding: 2px 8px; }
  .cert-note { font-size: 11px; }
  .product { font-size: 12px; }
  .rating { font-size: 12px; }

  /* Price compact */
  .price-amount { font-size: 22px; }
  .price-unit   { font-size: 11px; }

  /* Meta rows tighter */
  .meta-row {
    grid-template-columns: 12px minmax(0, 1fr);
    column-gap: 6px;
    padding: 3px 0;
    font-size: 12px;
    border-top: 0;
  }
  .meta-row + .meta-row { border-top: 0; }
  .meta-value { font-size: 12px; }
  .meta-icon  { width: 11px; height: 11px; }
  .meta-icon--bs { width: 14px; }

  /* Modal: full-screen on mobile */
  .modal { padding: 0; align-items: stretch; }
  .modal__card {
    border-radius: 0;
    max-width: 100%;
    max-height: 100vh;
  }
  .modal__body { padding: 24px 18px 28px; }
  .m-section h3 { font-size: 16px; }
  .m-fee { gap: 10px; font-size: 14px; }
}

/* ---- Site-wide form validation (fælles pattern til alle formularer) ----
   Bruges sammen med form-validation.js. Vises under et .field når det er
   tomt/malformed ved submit. */
.field__error {
  display: block;
  margin-top: 6px;
  padding: 0 4px;
  font-size: 13px;
  color: #dc2626;
  font-weight: 500;
  line-height: 1.4;
  animation: field-error-in 200ms ease;
}
@keyframes field-error-in {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: translateY(0); }
}
.field.has-error .field__control,
.field.has-error .ms-control {
  border-color: #dc2626 !important;
}

/* ---- Case confirmation (delt komponent på tværs af verticaler) ---- */
.case-confirm {
  text-align: center;
  padding: 24px 12px 8px;
  animation: case-confirm-in 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes case-confirm-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.case-confirm__icon {
  display: inline-flex;
  color: rgb(47, 58, 77);
  margin: 0 auto 11px;
  width: 79px;
  height: 79px;
}
.case-confirm__icon svg { width: 100%; height: 100%; display: block; }
.case-confirm__ring {
  stroke-dasharray: 214;
  stroke-dashoffset: 214;
  animation: case-ring 0.7s ease forwards;
}
@keyframes case-ring { to { stroke-dashoffset: 0; } }
.case-confirm__tick {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: case-tick 0.45s ease 0.55s forwards;
}
@keyframes case-tick { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .case-confirm { animation: none; }
  .case-confirm__ring, .case-confirm__tick {
    animation: none;
    stroke-dashoffset: 0;
  }
}
.case-confirm__title {
  margin: 0 0 13px;
  font-size: clamp(31px, 4.4vw, 37px);
  font-weight: 700;
  color: rgb(47, 58, 77);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.case-confirm__body {
  margin: 0 auto 26px;
  max-width: 506px;
  font-size: 17px;
  line-height: 1.6;
  color: #6c7585;
}
.case-confirm__body strong { color: rgb(47, 58, 77); font-weight: 600; }

/* Overskrift over detalje-listen når den bærer FLERE sager (parkering: én
   linje pr. (afgiftsudsteder, nummerplade)-par med hver sit sagsnummer) —
   uden den ville rækkerne stå uden at forklare hvad tallene til højre er. */
.case-confirm__details-caption {
  max-width: 462px;
  margin: 0 auto 2px;
  padding: 0 2px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #6c7585;
  letter-spacing: 0.01em;
}
.case-confirm__details {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 462px;
  margin: 0 auto 35px;
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
}
.case-confirm__detail {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 2px;
  border-bottom: 1px solid #e3e6ec;
  font-size: 15.5px;
}
.case-confirm__detail:last-child { border-bottom: 0; }
.case-confirm__detail dt {
  margin: 0;
  color: #6c7585;
  font-weight: 500;
  letter-spacing: 0.01em;
  flex: 0 0 auto;
}
.case-confirm__detail dd {
  margin: 0;
  color: rgb(47, 58, 77);
  font-weight: 700;
  text-align: right;
  word-break: break-word;
  flex: 1 1 auto;
}
.case-confirm__detail code {
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  color: rgb(47, 58, 77);
  padding: 0;
  background: none;
  border: 0;
  letter-spacing: -0.005em;
}
.case-confirm__detail code + code { margin-left: 6px; }

/* Timeline "hvad sker der nu" */
.case-confirm__timeline {
  margin: 0 auto 32px;
  max-width: 720px;
  padding: 24px 4px 8px;
  border-top: 1px solid #e3e6ec;
}
.case-confirm__timeline-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: rgb(47, 58, 77);
  letter-spacing: 0.01em;
  text-align: center;
}
.case-confirm__timeline-lead {
  margin: 0 auto 8px;
  max-width: 540px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #6c7585;
  text-align: center;
}
.case-confirm__wave { margin: 20px 0 4px; position: relative; }
.case-confirm__wave-svg { display: block; width: 100%; height: auto; overflow: visible; }
.case-confirm__wave-path {
  fill: none;
  stroke: rgb(47, 58, 77);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.3;
  stroke-dasharray: 6 6;
}
.case-confirm__wave-node circle {
  fill: rgb(47, 58, 77);
  stroke: #fff;
  stroke-width: 4;
}
.case-confirm__wave-node text {
  fill: #fff;
  font-weight: 700;
  font-size: 22px;
  text-anchor: middle;
  font-family: inherit;
}
.case-confirm__wave-labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 6px;
}
.case-confirm__wave-label { text-align: center; padding: 0 4px; }
.case-confirm__wave-day {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgb(47, 58, 77);
  margin-bottom: 4px;
}
.case-confirm__wave-desc {
  font-size: 12px;
  line-height: 1.35;
  color: #6c7585;
}
@media (max-width: 720px) {
  .case-confirm__wave { counter-reset: casestep; margin: 12px 0 4px; }
  .case-confirm__wave-svg { display: none; }
  .case-confirm__wave-labels { display: block; }
  .case-confirm__wave-label {
    counter-increment: casestep;
    position: relative;
    text-align: left;
    padding: 8px 0 14px 44px;
  }
  .case-confirm__wave-label::before {
    content: counter(casestep);
    position: absolute;
    left: 0;
    top: 4px;
    width: 32px;
    height: 32px;
    background: rgb(47, 58, 77);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Cross-sell */
.case-confirm__cross {
  margin: 0 auto;
  max-width: 560px;
  padding: 28px 20px 8px;
  border-top: 1px solid #e3e6ec;
}
.case-confirm__cross-lead {
  /* Matcher kort-rækkens bredde: 5 kort × 82px + 4 gaps × 8px = 442px.
     Centreret som blok → venstrekanten flugter med "Leje"-kortet, og
     lange rotator-tekster (fx "for din parkeringsafgift?") kan stadig
     stå på én linje. */
  max-width: 442px;
  margin: 0 auto 20px;
  font-size: 22.5px;
  font-weight: 600;
  color: rgb(47, 58, 77);
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-align: left;
}
.case-confirm__rotator {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  color: rgb(47, 58, 77);
}
.case-confirm__rotator.is-swapping {
  opacity: 0;
  transform: translateY(-8px);
}
@media (prefers-reduced-motion: reduce) {
  .case-confirm__rotator { transition: none; }
  .case-confirm__rotator.is-swapping { opacity: 1; transform: none; }
}

/* Mirror .v-card / .v-card--light from home.html — same square shape,
   same padding, same icon+label size. Kept as their own class to keep
   case-confirmation.js self-contained. */
.case-confirm__cross-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: center;
}
.case-confirm__cross-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 1 / 1;
  max-width: 82px;
  padding: 4px;
  background: #ffffff;
  border: 1.5px solid #e3e6ec;
  border-radius: 10px;
  color: rgb(47, 58, 77);
  text-decoration: none;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}
.case-confirm__cross-card:hover {
  border-color: rgb(47, 58, 77);
  background: #f7f8fa;
  transform: translateY(-2px);
}
.case-confirm__cross-icon {
  color: rgb(47, 58, 77);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.case-confirm__cross-icon svg { width: 24px; height: 24px; }
.case-confirm__cross-label {
  font-size: 12px;
  font-weight: 500;
  color: rgb(47, 58, 77);
  letter-spacing: 0.01em;
}

/* Cookiebot Privacy trigger */
#CookiebotWidget .CookiebotWidget-body .CookiebotWidget-main-logo {
  display: none !important;
}

#CookiebotWidget,
#CookiebotWidget * {
  font-family: "Grange", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
/* Widget dæmpes under scroll (html.fk-scrolling sættes af inline-lytteren i
   hver side) og er solid i ro. */
#CookiebotWidget {
  transition: opacity 260ms ease !important;
}
html.fk-scrolling #CookiebotWidget {
  opacity: 0.35 !important;
}
/* På meld-sag-siderne (html.fk-cb-dim) ligger widget'en oven på Trustpilot-
   boksen — dér er den dæmpet også i ro og bliver først solid ved hover
   eller når dialogen er åben. */
html.fk-cb-dim #CookiebotWidget {
  opacity: 0.35 !important;
}
html.fk-cb-dim #CookiebotWidget:hover,
html.fk-cb-dim #CookiebotWidget:focus-within,
html.fk-cb-dim #CookiebotWidget.CookiebotWidget-open {
  opacity: 1 !important;
}

