/* Den Sorte Cottage — statisk side, ingen PHP, ingen database.
   Layout: et sortmalet "træhus"-bånd øverst (heltebånd), derefter rolige
   papirlyse sektioner med indrammede fotos, som et gæstehus' egen folder. */

@font-face { font-family: "Sorts Mill Goudy"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/sorts-mill-goudy-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Sorts Mill Goudy"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/sorts-mill-goudy-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }

:root {
  --paper: #f2f3ee;      /* lys, let grøngrå — som kalket mur i skygge */
  --surface: #fbfbf8;
  --ink: #23292c;
  --muted: #59625d;
  --tar: #1d2326;        /* den sortmalede træfacade */
  --tar-ink: #eceee7;
  --tar-muted: #b4bab3;
  --lavender: #6a5a8c;   /* havens lavendel — sidens ene accent */
  --lavender-soft: #e6e1ef;
  --rose: #b5606f;
  --line: #d5d9cf;
  --display: "Sorts Mill Goudy", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.375rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.6vw, 4.6rem);
  --radius: 2px;
  --wrap: 72rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151a1c; --surface: #1c2225; --ink: #e7e9e2; --muted: #a7aea8;
    --tar: #0d1112; --tar-ink: #eceee7; --tar-muted: #a9afa8;
    --lavender: #b9aadc; --lavender-soft: #2a2636; --rose: #e297a4; --line: #2d3437;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #151a1c; --surface: #1c2225; --ink: #e7e9e2; --muted: #a7aea8;
  --tar: #0d1112; --tar-ink: #eceee7; --tar-muted: #a9afa8;
  --lavender: #b9aadc; --lavender-soft: #2a2636; --rose: #e297a4; --line: #2d3437;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lavender); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0; }
p { margin: 0; }

/* Sprog: kun det valgte sprog vises */
html[lang="da"] [data-lang]:not([data-lang="da"]),
html[lang="de"] [data-lang]:not([data-lang="de"]),
html[lang="en"] [data-lang]:not([data-lang="en"]) { display: none !important; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 0.5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Topbar ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--tar); }
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--tar); color: var(--tar-ink);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.topbar .wrap { display: flex; align-items: center; gap: 1rem; min-height: 3.75rem; }
.brand { font-family: var(--display); font-size: 1.3rem; color: var(--tar-ink); text-decoration: none; white-space: nowrap; margin-right: auto; }
.brand em { font-style: italic; }
.nav { display: flex; gap: 1.25rem; }
.nav a { color: var(--tar-muted); text-decoration: none; font-size: 1rem; }
.nav a:hover { color: var(--tar-ink); }
.langs { display: flex; gap: 0.25rem; border-left: 1px solid rgb(255 255 255 / 0.15); padding-left: 0.75rem; }
.langs button {
  font: inherit; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: none; color: var(--tar-muted); border: 1px solid transparent; border-radius: var(--radius);
  padding: 0.2rem 0.45rem; cursor: pointer;
}
.langs button[aria-pressed="true"] { color: var(--tar-ink); border-color: rgb(255 255 255 / 0.35); }
.menu-btn { display: none; font: inherit; font-size: 1rem; background: none; color: var(--tar-ink); border: 1px solid rgb(255 255 255 / 0.3); border-radius: var(--radius); padding: 0.3rem 0.7rem; cursor: pointer; }

@media (max-width: 56rem) {
  .menu-btn { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--tar);
    padding: 0.5rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px));
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.65rem 0; font-size: 1.1rem; border-top: 1px solid rgb(255 255 255 / 0.07); }
  .topbar .wrap { position: relative; }
}
@media (max-width: 26rem) { .brand { font-size: 1.1rem; } }

/* ---------- Heltebånd ---------- */
.hero { background: var(--tar); color: var(--tar-ink); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem);
}
.eyebrow { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--tar-muted); }
.hero h1 { font-size: var(--step-4); margin-block: 0.6rem 1.1rem; }
.hero h1 em { font-style: italic; color: var(--lavender-on-tar, #c9bde6); }
.hero .lede { font-size: var(--step-1); line-height: 1.5; color: var(--tar-ink); max-width: 32ch; }
.season {
  display: inline-flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; margin-top: 1.5rem;
  font-size: 1rem; color: var(--tar-muted);
  border-top: 1px solid rgb(255 255 255 / 0.15); padding-top: 1rem;
}
.season strong { color: var(--tar-ink); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: inherit; font-weight: 600; font-size: 1.05rem; text-decoration: none;
  padding: 0.8rem 1.25rem; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
}
.btn-light { background: var(--tar-ink); color: #1d2326; }
.btn-light:hover { background: #ffffff; }
.btn-ghost { color: var(--tar-ink); border-color: rgb(255 255 255 / 0.35); }
.btn-ghost:hover { border-color: var(--tar-ink); }
.btn .num { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.hero-figure { margin: 0; position: relative; }
.hero-figure .main { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.hero-figure .inset {
  position: absolute; width: 38%; aspect-ratio: 4 / 3; object-fit: cover; right: 0; bottom: -1.75rem;
  border: 6px solid var(--tar); border-radius: var(--radius);
}
.hero-figure figcaption { margin-top: 0.75rem; font-size: var(--step--1); color: var(--tar-muted); max-width: 55%; }

@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-figure .inset { right: 0; }
}

/* ---------- Sektioner ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 0.6rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); max-width: 40rem; }
.kicker { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lavender); font-weight: 600; }
.section h2 { font-size: var(--step-3); }
.prose { display: grid; gap: 1rem; max-width: 62ch; }
.prose p { color: var(--ink); }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 52rem) { .split { grid-template-columns: minmax(0, 1fr); } }

.photo { margin: 0; }
.photo img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.photo figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 0.5rem; }

/* Fakta: afstande */
.facts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.facts .d { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }

.press {
  margin: 2rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line);
  font-family: var(--display); font-size: var(--step-1); line-height: 1.45; font-style: italic; max-width: 40rem;
}
.press footer { font-family: var(--body); font-style: normal; font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.75rem; }

/* Film */
.film {
  position: relative; display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9;
  border: 0; padding: 0; background: var(--tar); border-radius: var(--radius); overflow: hidden; cursor: pointer;
}
.film img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; transition: opacity 0.2s; }
.film:hover img { opacity: 0.9; }
.film .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgb(13 17 18 / 0.75); color: #eceee7; font: 600 1.05rem var(--body);
  padding: 0.8rem 1.2rem; border-radius: 999px;
}
.film .play svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-note { font-size: var(--step--1); color: var(--muted); margin-top: 0.6rem; }
.film-wrap { margin-top: clamp(2.5rem, 6vw, 4rem); }

/* Værelser */
.rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.25rem; }
.rooms img { aspect-ratio: 4 / 3; }
@media (max-width: 44rem) { .rooms { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .rooms .photo:first-child { grid-column: 1 / -1; } }

/* Haven: asymmetrisk mosaik */
.garden { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(8rem, 16vw, 12rem); gap: 0.75rem; margin-top: 2.25rem; }
.garden .photo, .garden .photo img { height: 100%; }
.garden .g1 { grid-column: span 4; grid-row: span 2; }
.garden .g2 { grid-column: span 2; }
.garden .g3 { grid-column: span 2; }
.garden .g4 { grid-column: span 3; }
.garden .g5 { grid-column: span 3; }
@media (max-width: 44rem) {
  .garden { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 9rem; }
  .garden .g1 { grid-column: span 2; grid-row: span 2; }
  .garden .g2, .garden .g3, .garden .g4, .garden .g5 { grid-column: span 1; }
}

/* Området */
.links { display: grid; gap: 0.5rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.links a { font-weight: 600; }

/* Gæstebog */
.guestbook { columns: 2 22rem; column-gap: clamp(1.5rem, 4vw, 3rem); }
.guestbook blockquote {
  break-inside: avoid; margin: 0 0 1.5rem; padding-left: 1.1rem; border-left: 2px solid var(--lavender);
  font-family: var(--display); font-size: 1.2rem; line-height: 1.5;
}
.guestbook-note { font-size: var(--step--1); color: var(--muted); margin-top: 0.5rem; }

/* Galleri */
/* Liggende billeder: 2 store kolonner i 3:2. Stående: 4 kolonner i 2:3.
   Begge rækker får næsten samme højde, så galleriet ser ensartet ud. */
#gallery { display: grid; gap: 0.75rem; }
.gallery { display: grid; gap: 0.75rem; }
.gallery-land { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-port { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery button { padding: 0; border: 0; background: var(--line); cursor: zoom-in; border-radius: var(--radius); overflow: hidden; display: block; width: 100%; max-width: 100%; }
.gallery-land button { aspect-ratio: 3 / 2; }
.gallery-port button { aspect-ratio: 2 / 3; }
@media (max-width: 40rem) {
  .gallery-land { grid-template-columns: minmax(0, 1fr); }
  .gallery-port { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery button:hover img { transform: scale(1.04); }

dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 60rem); max-height: 92vh; width: auto;
}
dialog.lightbox::backdrop { background: rgb(13 17 18 / 0.88); }
.lightbox img { max-height: 82vh; width: auto; margin-inline: auto; border-radius: var(--radius); }
.lb-bar { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.75rem; }
.lb-bar button {
  font: 600 1rem var(--body); color: #eceee7; background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.25); border-radius: var(--radius); padding: 0.5rem 1rem; cursor: pointer;
}

/* Kontakt & priser */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 60rem) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .contact .sign { grid-column: 1 / -1; max-width: 22rem; } }
@media (max-width: 40rem) { .contact { grid-template-columns: minmax(0, 1fr); } }
.prices { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.prices h3, .reach h3 { font-size: var(--step-2); margin-bottom: 1rem; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.price-row .amt { font-family: var(--display); font-size: var(--step-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-row small { display: block; color: var(--muted); font-size: 0.95rem; }
.price-note { font-size: 0.95rem; color: var(--muted); margin-top: 1rem; }
.reach address { font-style: normal; line-height: 1.7; }
.reach .big { font-family: var(--display); font-size: var(--step-2); text-decoration: none; display: inline-block; margin-block: 0.75rem 0.25rem; font-variant-numeric: tabular-nums; }
.reach dl { margin: 1rem 0 0; display: grid; gap: 0.4rem; }
.reach dt { font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.reach dd { margin: 0 0 0.6rem; }
.closed { display: inline-block; margin-top: 1rem; background: var(--lavender-soft); color: var(--ink); padding: 0.5rem 0.8rem; border-radius: var(--radius); font-size: 1rem; }

/* Fod */
.foot { background: var(--tar); color: var(--tar-muted); font-size: 0.95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 2rem; }
.foot a { color: var(--tar-ink); }
