/* ============================================================
   ENGSØHUSENE — style.css
   Faxe Brand Guidelines 2026 + Kongebakkerne webskitser
   ============================================================ */

/* ── SELVHOSTEDE FONTE ──────────────────────────────────────────
   Hentet fra Google Fonts og lagt lokalt i assets/fonts/.
   Grunden: siden sender dermed ikke besøgendes IP-adresse til
   Google (GDPR), og vi sparer en tredjeparts-forbindelse.
   Kun de vægte der reelt bruges er med — 400/500 (Cinzel) og
   300/400/500 (Josefin Sans), i subsettene latin + latin-ext.
   font-display: swap = teksten vises straks i fallback-fonten. */

@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cinzel-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cinzel-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cinzel-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cinzel-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/josefin-sans-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/josefin-sans-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/josefin-sans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/josefin-sans-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/josefin-sans-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/josefin-sans-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── CUSTOM PROPERTIES ──────────────────────────────────────── */

:root {
  /* Brandfarver */
  --evergreen:        #21382D;
  --linen:            #FCFCEF;
  --paprika:          #D25B30;
  --charcoal:         #424741;

  /* Hover-tilstande */
  --evergreen-hover:  #19291F;
  --paprika-hover:    #B8481F;
  --linen-border:     rgba(33, 56, 45, 0.12);

  /* Sektionsbaggrundsfarver */
  --bg-linen:         #FCFCEF;
  --bg-muted:         #B5BAB0;
  --bg-evergreen:     #21382D;
  --bg-white:         #FFFFFF;

  /* Fonte — Engsøhusene brand (Color&Font.pdf) */
  --font-heading: 'Cinzel', 'Trajan Pro', Georgia, serif;   /* Trajan-lignende glyphic serif */
  --font-body:    'Josefin Sans', system-ui, sans-serif;    /* Brand-font */
}

/* ── BASE RESET ─────────────────────────────────────────────── */

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--charcoal);
  background-color: var(--bg-linen);
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ── TYPOGRAFI ──────────────────────────────────────────────── */

h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.01em;
  color: var(--evergreen);
  margin: 0 0 1rem;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.625rem, 3vw, 2.375rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--evergreen);
  margin: 0 0 1.25rem;
}

h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.28;
  color: var(--evergreen);
  margin: 0 0 1rem;
}

p {
  margin: 0 0 1rem;
}

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

.lead {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.78;
}

.text-on-dark {
  color: rgba(252, 252, 239, 0.80);
  font-size: 0.9375rem;
  line-height: 1.72;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--paprika);
  display: block;
  margin-bottom: 0.75rem;
}

label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--paprika);
  display: block;
  margin-bottom: 3px;
}

.caption {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--charcoal);
  opacity: 0.55;
}

/* ── TILGÆNGELIGHED: FOKUS-RING ─────────────────────────────── */

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

/* Skjult for øjet, men læses stadig af skærmlæsere.
   Bruges til feltlabels, hvor designet kun viser placeholders —
   en placeholder alene er ikke en label. */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Spring-til-indhold: skjult indtil den får tastaturfokus.
   Lader tastaturbrugere springe navigationen over. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--paprika);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 12px 20px;
  border-radius: 0 0 6px 0;
}

.skip-link:focus {
  left: 0;
}

/* ── LØBENDE TEKST (privatlivspolitik, 404) ─────────────────── */

.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  margin-top: 2.5rem;
}

.prose h2:first-of-type {
  margin-top: 1.5rem;
}

.prose p,
.prose li {
  font-size: 0.9375rem;
  line-height: 1.75;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.125rem;
}

.prose li {
  margin-bottom: 0.375rem;
}

.prose a {
  color: var(--evergreen);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── 404 ────────────────────────────────────────────────────── */

.notfound {
  text-align: center;
  padding: 6rem 0 5rem;
}

.notfound__code {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--evergreen);
  opacity: 0.22;
  margin: 0 0 0.75rem;
}

.notfound__actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── CONTAINER ──────────────────────────────────────────────── */

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── HJÆLPEKLASSER ──────────────────────────────────────────────
   Erstatter de tidligere inline style="..."-attributter. Det er
   ikke kun ryddeligere: en stram Content-Security-Policy (se
   .htaccess) tillader ikke inline styles, og siden ville ellers
   miste sit layout. */

.measure-center {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.type-grid {
  max-width: 760px;
  margin: 2.5rem auto 0;
  align-items: stretch;
}

.map-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* Honeypot-felt: usynligt for mennesker, udfyldes ofte af bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ── SEKTIONER ──────────────────────────────────────────────── */

.section       { padding: 5rem 0; }
.section--sm   { padding: 3.5rem 0; }
.section--lg   { padding: 7rem 0; }

.section--linen   { background-color: var(--bg-linen); }
.section--muted   { background-color: var(--bg-muted); }
.section--dark    { background-color: var(--bg-evergreen); }

/* ── GRIDS ──────────────────────────────────────────────────── */

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* ── KNAPPER ────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  border-radius: 6px;
  padding: 14px 30px;
  background-color: var(--paprika);
  color: #ffffff;
  transition: background-color 0.18s ease, transform 0.12s ease;
}

.btn:hover {
  background-color: var(--paprika-hover);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--sm {
  padding: 16px 24px;
  font-size: 0.8125rem;
}

.btn--outline {
  background-color: transparent;
  color: var(--evergreen);
  border: 1.5px solid var(--evergreen);
  padding: 12px 28px;
}

.btn--outline:hover {
  background-color: var(--evergreen);
  color: var(--linen);
}

.btn--outline-light {
  background-color: transparent;
  color: var(--linen);
  border: 1.5px solid rgba(252, 252, 239, 0.50);
}

.btn--outline-light:hover {
  background-color: rgba(252, 252, 239, 0.10);
}

/* ── NAVIGATION ─────────────────────────────────────────────── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--evergreen);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(1.5rem, calc((100vw - 1160px) / 2 + 1.5rem));
}

.navbar__logo {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--linen);
  letter-spacing: 0.04em;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.navbar__links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.navbar__links a:not(.btn) {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(252, 252, 239, 0.82);
  text-decoration: none;
  padding: 0 1.125rem;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.navbar__links a:not(.btn):hover,
.navbar__links a:not(.btn).active {
  color: var(--linen);
}

.navbar__cta {
  margin-left: 0.75rem;
}

.navbar__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--linen);
  transition: transform 0.2s;
}

/* ── HERO ───────────────────────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
  animation: hero-pan 18s ease-in-out infinite alternate;
}

@keyframes hero-pan {
  from { object-position: 35% center; }
  to   { object-position: 65% center; }
}

.hero__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(252, 252, 239, 0.80);
  padding: 2rem max(1.5rem, calc((100vw - 1160px) / 2 + 1.5rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 500;
  color: var(--evergreen);
  margin: 0;
  line-height: 1.12;
}

.hero__sub {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--charcoal);
  margin: 0.375rem 0 0;
}

/* ── BILLEDLOOP (USP-sektion) ───────────────────────────────── */

.image-loop {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
}

.image-loop__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.image-loop__img.is-active {
  opacity: 1;
}

/* ── USP-LISTE ──────────────────────────────────────────────── */

.usp-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.usp-list li {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.6;
  padding: 0.625rem 0 0.625rem 1.375rem;
  position: relative;
  border-bottom: 1px solid var(--linen-border);
}

.usp-list li:last-child {
  border-bottom: none;
}

.usp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1.5px solid var(--paprika);
  background: transparent;
}

/* ── BOLIGTYPE-KORT ─────────────────────────────────────────── */

.type-card {
  background-color: var(--bg-linen);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.type-card:hover {
  transform: translateY(-4px);
}

/* Kvadratisk boks, ikke 3:4. Plantegningerne er beskåret til deres faktiske
   indhold (floorplan-*-v2.png), og type A er næsten kvadratisk — i den gamle
   3:4-boks blev kassen høj mens tegningen stod lille med ~55 px død luft i
   top og bund. object-fit: contain centrerer stadig, så type B, der er et
   ægte højformat, får luft i siderne i stedet. */
.type-card__image {
  width: 100%;
  /* height: auto er ikke valgfri. width/height-attributterne på <img> sætter
     en præsentationshøjde, og når både bredde og højde er definerede,
     ignorerer browseren aspect-ratio helt — boksen beholdt billedets rå
     pixelhøjde (738 px) i stedet for at blive kvadratisk. */
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  background-color: #f2f1e6;
  padding: 1.25rem;
  box-sizing: border-box;
}

.type-card__body {
  padding: 1.125rem 1.25rem 1.5rem;
}

.type-card__label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paprika);
  margin-bottom: 0.375rem;
  display: block;
}

.type-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--evergreen);
  margin-bottom: 0.625rem;
}

.type-card__text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--charcoal);
}

/* ── SPLIT-LAYOUT ───────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
}

.split__img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  display: block;
}

.split__text {
  background-color: var(--evergreen);
  padding: 4.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split__text h2,
.split__text h3 {
  font-family: var(--font-heading);
  color: var(--linen);
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.split__text p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: rgba(252, 252, 239, 0.80);
  line-height: 1.72;
  margin-bottom: 1rem;
}

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

.split__text .sub {
  font-size: 0.875rem;
  color: rgba(252, 252, 239, 0.50);
  font-style: italic;
}

.split--reverse .split__text {
  order: -1;
}

/* ── BENTO-GRID (Fællesområderne) ───────────────────────────── */
/*
  12-kolonne grid, 3 rækker — alle samme højde.
  Tekstbokse stretcherer til fuld rækkehøjde (som billederne).

  Række 1: tekst kol 1–4  (smal, venstre)  | billede kol 5–13 (bred, højre)
  Række 2: billede kol 1–8 (bred, venstre) | tekst kol 8–13  (smal, højre)
  Række 3: tekst kol 1–4  (smal, venstre)  | billede kol 5–13 (bred, højre)
*/

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(3, 360px);
  gap: 1.125rem;
  margin-top: 2.5rem;
}

/* ── EKSPLICIT PLACERING — desktop ──────────────────────────── */

.bento__text--a {
  grid-column: 1 / 5;
  grid-row: 1;
}
.bento__img--a {
  grid-column: 5 / 13;
  grid-row: 1;
}

/* Række 2: billede venstre (bred), tekst højre (smal) */
.bento__img--b {
  grid-column: 1 / 8;
  grid-row: 2;
}
.bento__text--b {
  grid-column: 8 / 13;
  grid-row: 2;
}

.bento__text--c {
  grid-column: 1 / 5;
  grid-row: 3;
}
.bento__img--c {
  grid-column: 5 / 13;
  grid-row: 3;
}

/* ── FÆLLES STIL — tekstbokse ───────────────────────────────── */

.bento__text {
  background-color: rgba(181, 186, 176, 0.35);
  border-radius: 14px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;      /* tekst centreres lodret i den fulde højde */
  /* align-self: stretch er default — tekstboks fylder hele rækkehøjden */
}

.bento__text h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 500;
  line-height: 1.28;
  color: var(--evergreen);
  margin: 0 0 0.875rem;
}

.bento__text p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--charcoal);
  line-height: 1.72;
  margin: 0 0 0.625rem;
}

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

/* ── FÆLLES STIL — billeder ─────────────────────────────────── */

.bento__img {
  border-radius: 14px;
  overflow: hidden;
}

.bento__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Plantegninger — vis hele tegningen uden crop.
   Rækkerne er højere end i det almindelige bento-grid: tegningen
   skaleres efter højden, og ved 360px bliver rumteksterne ulæselige. */
.bento--plans {
  grid-template-rows: repeat(3, 460px);
}

.bento__img--floorplan {
  background-color: #f5f4ef;
  display: block;
}

.bento__img--floorplan img {
  object-fit: contain;
  padding: 0.75rem;
}

/* Plantegningen kan åbnes i fuld størrelse */
a.bento__img--floorplan {
  position: relative;
  transition: background-color 0.18s ease;
}

a.bento__img--floorplan:hover {
  background-color: #efeee6;
}

a.bento__img--floorplan::after {
  content: 'Se i fuld størrelse';
  position: absolute;
  right: 1rem;
  bottom: 0.875rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paprika);
  opacity: 0.75;
}

/* ── FORMULAR ───────────────────────────────────────────────── */

.form-card {
  background-color: var(--bg-white);
  border-radius: 14px;
  padding: 2rem 2rem 2.25rem;
}

.form-card__title {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--paprika);
  letter-spacing: 0.04em;
  margin: 0 0 1.25rem;
}

.form-input,
.form-textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--charcoal);
  background-color: var(--bg-white);
  border: 1px solid rgba(66, 71, 65, 0.45);
  border-radius: 8px;
  padding: 9px 11px;
  margin-bottom: 0.625rem;
  transition: border-color 0.15s ease;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(66, 71, 65, 0.60);
  font-weight: 300;
  font-size: 0.8125rem;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--evergreen);
}

.form-textarea {
  min-height: 88px;
  resize: vertical;
}

/* ── Fejlbeskeder på felter ─────────────────────────────────────
   Feltet får rød ramme + en synlig besked under sig, så brugeren
   kan se HVAD der er galt. Uden dette føles knappen bare død. */

.form-field {
  margin-bottom: 0.625rem;
}

.form-field .form-input,
.form-field .form-textarea {
  margin-bottom: 0;
}

.form-input.has-error,
.form-textarea.has-error {
  border-color: var(--paprika);
  background-color: rgba(210, 91, 48, 0.04);
}

.form-error {
  display: none;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--paprika);
  margin: 0.3125rem 0 0;
}

.form-error.is-visible {
  display: block;
}

/* Samlet status (fx hvis serveren svarer med fejl) */
.form-status {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--paprika);
  background-color: rgba(210, 91, 48, 0.08);
  border-radius: 8px;
  padding: 0.75rem 0.875rem;
  margin: 1rem 0 0;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-consent.has-error .form-consent__text {
  color: var(--paprika);
}

.form-submit {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.form-success {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--evergreen);
  line-height: 1.6;
  padding: 1rem 0;
}

/* Samtykke (GDPR) */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.5rem 0 0.25rem;
  cursor: pointer;
}

.form-consent__box {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--paprika);
  cursor: pointer;
}

.form-consent__text {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--charcoal);
}

.form-consent__text a {
  color: var(--evergreen);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── FOOTER ─────────────────────────────────────────────────── */

.footer {
  background-color: var(--evergreen);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem;
}

.footer__col-title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--linen);
  margin-bottom: 0.875rem;
  letter-spacing: 0.01em;
}

.footer__col-text {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(252, 252, 239, 0.68);
  line-height: 1.75;
}

.footer__contact {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: rgba(252, 252, 239, 0.68);
  line-height: 1.85;
  font-style: normal;
}

.footer__bottom {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(252, 252, 239, 0.12);
  text-align: center;
}

.footer__logo-img {
  height: 64px;
  width: auto;
  margin: 0 auto 1rem;
}

.footer__copyright {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(252, 252, 239, 0.32);
  margin: 0;
}

/* ── PAGE HERO (undersider) ─────────────────────────────────── */

.page-hero {
  position: relative;
  height: clamp(240px, 40vh, 360px);
  overflow: hidden;
}

.page-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(33, 56, 45, 0.54);
  display: flex;
  align-items: flex-end;
  padding: 2.5rem max(1.5rem, calc((100vw - 1160px) / 2 + 1.5rem));
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--linen);
  margin: 0;
}

/* ── AFSTANDSTABEL (Området) ────────────────────────────────── */

.distance-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.875rem;
  margin-top: 1.5rem;
}

.distance-table caption {
  text-align: left;
  margin-bottom: 0.375rem;
}

.distance-table td {
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--linen-border);
  color: var(--charcoal);
  line-height: 1.5;
}

.distance-table td:last-child {
  text-align: right;
  color: var(--evergreen);
  font-weight: 500;
}

.distance-table tr:last-child td {
  border-bottom: none;
}

/* ── KONTAKTKORT (Om os) ────────────────────────────────────── */

.contact-card {
  background-color: var(--bg-white);
  border-radius: 14px;
  padding: 2rem 2.25rem;
  display: inline-block;
}

.contact-card__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--evergreen);
  margin: 0 0 0.25rem;
}

.contact-card__title {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--paprika);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
}

.contact-card__info {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--charcoal);
  line-height: 1.85;
  font-style: normal;
}

.contact-card__info a {
  color: var(--evergreen);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── MOBILRESPONSIVITET ─────────────────────────────────────── */

@media (max-width: 768px) {
  .navbar__links {
    display: none;
  }

  .navbar__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--evergreen);
    padding: 1rem 0 1.5rem;
    border-top: 1px solid rgba(252, 252, 239, 0.10);
    align-items: flex-start;
  }

  .navbar__links.is-open a {
    padding: 0.75rem 1.5rem;
  }

  .navbar__links.is-open .navbar__cta {
    margin-left: 1.5rem;
    margin-top: 0.25rem;
  }

  .navbar__hamburger {
    display: flex;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 860px) {
  .grid-2col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split__img {
    min-height: 280px;
    height: 280px;
  }

  .split__text {
    padding: 2.5rem 1.5rem;
  }

  .split--reverse .split__text {
    order: 0;
  }

  /* Bento: tablet — behold 12-kol grid, kortere rækker */
  .bento {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(3, 300px);
    gap: 0.875rem;
  }

  .bento--plans {
    grid-template-rows: repeat(3, 380px);
  }
}

/* Bento: mobil — 1 kolonne, eksplicit placering nulstilles */
@media (max-width: 580px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 0.875rem;
  }

  /* Nulstil eksplicit placering — DOM-rækkefølge styrer */
  .bento__text--a,
  .bento__img--a,
  .bento__text--b,
  .bento__img--b,
  .bento__text--c,
  .bento__img--c {
    grid-column: auto;
    grid-row: auto;
  }

  /* Tekstbokse: naturlig højde på mobil */
  .bento__text {
    padding: 1.75rem 1.5rem;
  }

  /* Billeder: fast højde på mobil */
  .bento__img {
    height: 240px;
  }

  /* Plantegninger har brug for mere højde end fotos for at kunne læses */
  .bento__img--floorplan {
    height: 340px;
  }
}

@media (max-width: 700px) {
  .grid-3col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .hero {
    height: 75vh;
  }

  .hero__overlay {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── PREFERS-REDUCED-MOTION ─────────────────────────────────── */

/* ── FAKTA-BOKS (om-boligerne) ──────────────────────────────── */

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.fact-card {
  background-color: var(--bg-linen);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

/* SVG-ikoner frem for emoji: emoji renderes forskelligt på iOS,
   Android og Windows og bryder det rolige udtryk. */
.fact-card__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 0.1875rem;
  color: var(--paprika);
}

.fact-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.fact-card__text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  color: var(--evergreen);
  margin-bottom: 0.25rem;
}

.fact-card__text p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .facts-grid {
    grid-template-columns: 1fr;
  }
}

/* ── PREFERS-REDUCED-MOTION ─────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .hero__img {
    animation: none;
  }

  .image-loop__img {
    transition: none;
  }

  .btn,
  .type-card {
    transition: none;
  }
}
