:root {
  --color-bg: #f6f3ee;
  --color-surface: #ffffff;
  --color-ink: #1a2330;
  --color-muted: #5c6573;
  --color-accent: #0c5f6e;
  --color-accent-hover: #094a56;
  --color-line: rgba(26, 35, 48, 0.12);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(26, 35, 48, 0.08);
  --max: 1120px;
  --heading-font: var(--font-serif);
  --heading-color: var(--color-ink);
  --heading-weight: 600;
}

/* Fælles skrifttype og farve til sideoverskrifter */
.hero__title,
.section__title,
.listing-card__title,
.about__name,
.region-card__heading,
.case-detail__header .section__title,
.case-detail-gallery__title,
.kb-kartotek__title,
.sold-board__label,
.prose :where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--heading-font);
  color: var(--heading-color);
  font-weight: var(--heading-weight);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent-hover);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

@media (min-width: 980px) {
  .site-header__inner {
    padding: 0.55rem 1.25rem;
  }
}

.brand {
  display: flex;
  align-items: center;
}

.brand__logo {
  width: auto;
  height: 52px;
}

@media (min-width: 768px) {
  .brand__logo {
    height: 64px;
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: var(--color-surface);
  cursor: pointer;
  padding: 0 10px;
}

.nav-toggle__bar,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header[data-nav-open="true"] .nav-toggle__bar {
  opacity: 0;
}

.site-header[data-nav-open="true"] .nav-toggle::before {
  transform: translateY(8px) rotate(45deg);
}

.site-header[data-nav-open="true"] .nav-toggle::after {
  transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 980px) {
  .nav-toggle {
    display: none;
  }
}

.site-nav {
  width: 100%;
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
}

.site-nav[data-open="true"] {
  display: flex;
}

@media (min-width: 980px) {
  .site-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    flex: 1;
    min-width: 0;
    padding-top: 0;
    gap: 0.65rem;
  }
}

.site-nav__links {
  flex: 1;
  min-width: 0;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-nav__list a {
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav__list a:hover {
  color: var(--color-accent);
}

@media (min-width: 980px) {
  .site-nav__list {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.35rem 0.85rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .site-nav__list a {
    font-size: 0.82rem;
    white-space: nowrap;
  }
}

.site-nav__list a.is-active {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-nav__cta {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  flex-shrink: 0;
}

@media (min-width: 980px) {
  .site-nav__cta .btn {
    font-size: 0.78rem;
    padding: 0.45rem 0.75rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-line);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.hero {
  padding: 2.5rem 1.25rem 3rem;
}

.hero__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 320px);
    align-items: start;
    column-gap: 2.5rem;
  }
}

.hero .hero__aside.kb-kartotek__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: min(320px, 100%);
}

@media (max-width: 899px) {
  .hero .hero__aside.kb-kartotek__aside {
    max-width: 26rem;
    justify-self: center;
  }
}

@media (min-width: 900px) {
  .hero .hero__aside.kb-kartotek__aside {
    justify-self: end;
  }
}

.hero__copy {
  max-width: 38rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 0.75rem;
}

.hero__title {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.hero__lead {
  margin: 0 0 0.35rem;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.hero__about-intro {
  margin-bottom: 1.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero__panel {
  background: var(--color-surface);
  border-radius: 10px;
  padding: 0.38rem 0.55rem;
  box-shadow: 0 6px 22px rgba(26, 35, 48, 0.06);
  border: 1px solid var(--color-line);
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  border: none;
  width: max-content;
  max-width: 100%;
}

.hero__stat-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  line-height: 1.2;
}

.hero__stat-value {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
}

/* Sagside: luft under site-header; indhold centreret i kolonne */
.case-detail.section {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.case-detail.section > .case-detail__figure,
.case-detail.section > .case-detail__header,
.case-detail.section > .case-detail__body,
.case-detail.section > .case-detail-gallery-wrap,
.case-detail.section > p {
  width: 100%;
  max-width: min(46rem, 100%);
  box-sizing: border-box;
}

.case-detail.section > .case-detail__figure {
  max-width: min(36rem, 100%);
}

.case-detail.section > .case-detail__header {
  text-align: center;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.listings .section__head {
  margin-bottom: 0.4rem;
}

.listings__updated {
  margin: 0 0 1.25rem;
  padding: 0;
}

.section__title {
  font-size: 1.65rem;
  margin: 0;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.section__title--left {
  margin-bottom: 0.75rem;
}

.section__link {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.listing-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .listing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Forside: karrusel med nyeste sager */
.home-carousel {
  margin-top: 0.25rem;
}

.home-carousel__row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.home-carousel__nav {
  flex: 0 0 auto;
  align-self: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.home-carousel__nav:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.home-carousel__nav:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.home-carousel__viewport {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.25rem 0 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.home-carousel__viewport:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.home-carousel__slide {
  scroll-snap-align: start;
  flex: 0 0 min(100%, 22rem);
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 480px) {
  .home-carousel__slide {
    flex: 0 0 min(88%, 24rem);
  }
}

@media (min-width: 768px) {
  .home-carousel__slide {
    flex: 0 0 min(72%, 26rem);
  }
}

.home-carousel[data-carousel-count="1"] .home-carousel__slide {
  flex: 0 0 100%;
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
}

.home-carousel__slide .listing-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-carousel__slide .listing-card__more {
  margin-top: auto;
}

.home-carousel__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.home-carousel__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(26, 35, 48, 0.22);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.home-carousel__dot:hover {
  background: rgba(12, 95, 110, 0.45);
}

.home-carousel__dot.is-active {
  background: var(--color-accent);
  transform: scale(1.25);
}

.home-carousel__dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.home-carousel__empty {
  margin: 0.5rem 0 0;
  color: var(--color-muted);
  font-size: 0.98rem;
}

@media (prefers-reduced-motion: reduce) {
  .home-carousel__viewport {
    scroll-behavior: auto;
  }
}

.listing-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.listing-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.listing-card__body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.listing-card__title {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.listing-card__title a {
  color: inherit;
  text-decoration: none;
}

.listing-card__title a:hover {
  color: var(--color-accent);
}

.listing-card__excerpt {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--color-muted);
  flex: 1;
}

.listing-card__more {
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.about {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.72fr);
    align-items: start;
    column-gap: 2.25rem;
  }
}

.about__intro .section__title {
  margin-bottom: 0.55rem;
}

.about__intro p {
  margin: 0 0 0.55rem;
  color: var(--color-muted);
}

.about__intro p:last-child {
  margin-bottom: 0;
}

.about__intro.about__intro--stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  max-width: 100%;
}

.about__intro.about__intro--stack .section__title {
  margin-bottom: 0;
}

.about__intro.about__intro--stack p {
  margin: 0;
  color: var(--color-muted);
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.about__photo {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: block;
}

.about__bio {
  padding: 1.25rem 1.35rem 1.5rem;
}

.about__name {
  margin: 0;
  font-size: 1.35rem;
}

.about__role {
  margin: 0.15rem 0 0.75rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about__bio p:last-child {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
}

.support {
  text-align: center;
  padding-bottom: 4rem;
}

.support .section__title {
  margin-bottom: 1.25rem;
}

.support__logo img {
  margin: 0 auto;
  max-height: 100px;
  width: auto;
}

.site-footer {
  background: #121820;
  color: #c9d0da;
  padding: 2rem 1.25rem 2.5rem;
  font-size: 0.92rem;
}

.site-footer a {
  color: #e8eef5;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.site-footer__line {
  margin: 0 0 0.5rem;
}

.prose {
  max-width: 46rem;
}

.prose h1 {
  font-size: 1.85rem;
  margin: 0 0 1rem;
}

.prose p {
  margin: 0 0 0.85rem;
  color: var(--color-muted);
}

.prose a {
  font-weight: 600;
}

.page-intro {
  padding-top: 2rem;
}

.listings-hub-top .section__head {
  margin-bottom: 2.25rem;
}

.section--region.page-intro .section__head {
  margin-bottom: 2.25rem;
}

.page-lead {
  max-width: 40rem;
  color: var(--color-muted);
  margin: 0 0 1.5rem;
}

.kb-callout {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-top: 1rem;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
}

.region-grid a.region-card,
.region-grid a.region-card:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 1rem 1.1rem;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  color: #1a2330;
  -webkit-text-fill-color: #1a2330;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.region-card__heading {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: inherit;
  -webkit-text-fill-color: inherit;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.region-grid a.region-card:hover {
  border-color: var(--color-accent);
  color: #094a56;
  -webkit-text-fill-color: #094a56;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(26, 35, 48, 0.12);
}

.region-grid a.region-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.sold-page .kb-kartotek__main.sold-page__main {
  max-width: min(52rem, 100%);
}

.sold-page .kb-kartotek__inner .sold-page__intro {
  max-width: none;
  margin: 0 0 2rem;
  padding: 0;
}

.sold-page .kb-kartotek__inner .sold-board {
  max-width: none;
  margin: 0;
  padding: 0 0 2.5rem;
}

.sold-page.page-intro .sold-page__intro.prose > h1:first-of-type {
  margin-bottom: 1.35rem;
}

.sold-page__intro {
  max-width: var(--max);
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.sold-board {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}

.sold-board__year {
  display: grid;
  grid-template-columns: minmax(100px, 0.85fr) minmax(0, 2.15fr);
  gap: 1rem 2rem;
  align-items: start;
  padding: 2.25rem 0;
  border-top: 1px solid rgba(92, 101, 115, 0.22);
}

@media (max-width: 720px) {
  .sold-board__year {
    grid-template-columns: 1fr;
  }
}

.sold-board__metric {
  text-align: left;
}

.sold-board__count {
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 5.25rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: rgba(92, 101, 115, 0.42);
}

.sold-board__label {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
}

.sold-board__list {
  list-style: none;
  margin: 0;
  padding: 0.2rem 0 0;
  column-count: 3;
  column-gap: 2rem;
}

@media (max-width: 1024px) {
  .sold-board__list {
    column-count: 2;
  }
}

@media (max-width: 560px) {
  .sold-board__list {
    column-count: 1;
  }
}

.sold-board__item {
  break-inside: avoid;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.sold-board__item a {
  color: var(--color-ink);
  text-decoration: none;
}

.sold-board__item a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge--sold {
  background: #2d6a4f;
  color: #fff;
}

.case-detail__figure {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.case-detail__header {
  margin-bottom: 1.75rem;
}

.case-detail__body {
  margin-bottom: 2rem;
}

/* Sagside: karrusel med øvrige billeder + lightbox */
.case-detail-gallery-wrap {
  margin: 0 0 2rem;
}

.case-detail-gallery__title {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.case-detail-gallery {
  margin: 0;
}

.case-detail-gallery__row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.case-detail-gallery__nav {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.case-detail-gallery__nav:hover {
  background: rgba(12, 95, 110, 0.08);
  border-color: rgba(12, 95, 110, 0.25);
}

.case-detail-gallery__nav:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.case-detail-gallery__viewport {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  flex: 1;
  min-width: 0;
  padding: 0.15rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.case-detail-gallery__viewport:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.case-detail-gallery__slide {
  flex: 0 0 min(280px, 72vw);
  scroll-snap-align: start;
}

.case-detail-gallery__open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow);
  background: #e8e4de;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.case-detail-gallery__open:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(26, 35, 48, 0.12);
}

.case-detail-gallery__open:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.case-detail-gallery__open img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.case-detail-gallery__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.85rem;
}

.case-detail-gallery__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(26, 35, 48, 0.22);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.case-detail-gallery__dot:hover {
  background: rgba(26, 35, 48, 0.38);
}

.case-detail-gallery__dot.is-active {
  background: var(--color-accent);
  transform: scale(1.15);
}

.case-detail-gallery__dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.case-detail-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.case-detail-lightbox[hidden] {
  display: none;
}

.case-detail-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.82);
  cursor: pointer;
}

.case-detail-lightbox__panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  width: 100%;
}

.case-detail-lightbox__figure {
  margin: 0;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-detail-lightbox__img {
  max-width: 100%;
  max-height: min(85vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.case-detail-lightbox__close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.case-detail-lightbox__close:hover {
  background: #f0ebe4;
}

.case-detail-lightbox__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.case-detail-lightbox__nav {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.case-detail-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.case-detail-lightbox__nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .case-detail-lightbox__panel {
    flex-direction: column;
    max-height: none;
  }

  .case-detail-lightbox__nav--prev {
    order: 2;
  }

  .case-detail-lightbox__figure {
    order: 1;
  }

  .case-detail-lightbox__nav--next {
    order: 3;
  }

  .case-detail-lightbox__close {
    top: 0.5rem;
    right: 0.5rem;
  }

  .case-detail-lightbox__nav {
    width: 100%;
    max-width: 8rem;
  }
}

/* Køberkartotek — form + højresøjle (profil, støtte) */
.kb-kartotek__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem 3rem;
  display: grid;
  gap: 2.25rem 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .kb-kartotek__inner {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  }

  .kb-kartotek__aside {
    position: sticky;
    top: 5.25rem;
  }
}

.kb-kartotek__main {
  min-width: 0;
  max-width: 40rem;
}

.kb-kartotek__title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin: 0 0 1.35rem;
  letter-spacing: -0.02em;
}

.kb-kartotek__intro {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.kb-kartotek__intro p {
  margin: 0 0 0.75rem;
}

.kb-kartotek__intro p:last-child {
  margin-bottom: 0;
}

.kb-kartotek__aside {
  min-width: 0;
}

.kb-kartotek__profile {
  margin-top: 0;
  margin-bottom: 0;
}

.kb-kartotek__aside .about__photo {
  max-width: 100%;
}

.kb-kartotek__inner .kb-kartotek__support.support {
  margin-top: 2.35rem;
  padding-bottom: 0;
  text-align: left;
}

.kb-kartotek__aside .kb-kartotek__support .section__title {
  text-align: left;
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.kb-kartotek__aside .support__logo img {
  margin: 0;
  max-height: 88px;
  width: auto;
  max-width: 100%;
}

.kb-kartotek__success {
  padding: 0.85rem 1rem;
  margin: 0 0 1.75rem;
  background: rgba(12, 95, 110, 0.08);
  border-radius: var(--radius);
  color: var(--color-ink);
  font-size: 0.98rem;
}

.kb-kartotek__error {
  margin: 0 0 1.25rem;
  color: #8b2f2f;
  font-size: 0.98rem;
}

.kb-buyer-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.kb-buyer-form__row {
  display: grid;
  gap: 1.25rem 1.5rem;
}

.kb-buyer-form__row--2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 560px) {
  .kb-buyer-form__row--2 {
    grid-template-columns: 1fr;
  }
}

.kb-buyer-form__row--narrow {
  max-width: calc(50% - 0.75rem);
}

@media (max-width: 560px) {
  .kb-buyer-form__row--narrow {
    max-width: 100%;
  }
}

.kb-buyer-form__field {
  display: block;
}

.kb-buyer-form__field input,
.kb-buyer-form__field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(92, 101, 115, 0.38);
  background: transparent;
  padding: 0.65rem 0 0.85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--color-ink);
  border-radius: 0;
}

.kb-buyer-form__field textarea {
  min-height: 7rem;
  resize: vertical;
}

.kb-buyer-form__field input::placeholder,
.kb-buyer-form__field textarea::placeholder {
  color: rgba(92, 101, 115, 0.62);
}

.kb-buyer-form__field input:focus,
.kb-buyer-form__field textarea:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}

.kb-buyer-form__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.kb-buyer-form__submit {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 1.75rem;
  color: var(--color-muted);
  background: transparent;
  border: 1px solid rgba(92, 101, 115, 0.45);
  cursor: pointer;
  border-radius: 2px;
}

.kb-buyer-form__submit:hover {
  color: var(--color-ink);
  border-color: rgba(92, 101, 115, 0.65);
}
