@font-face { font-family: "Inter"; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); font-weight: 500 600; font-display: swap; }

:root {
  --bg: #ffffff;
  --flade: #f4f3f1;
  --tekst: #222222;
  --dæmpet: #6b6b6b;
  --streg: #e4e2de;
  --rød: #8a1c17;
  --knap: #2f4a6d;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --bredde: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--tekst); font: 400 16px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; line-height: 1.25; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--knap); outline-offset: 3px; }

/* Top: én smal, fast bjælke. Navn til venstre, menu til højre */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--streg); }
.top-indre { max-width: var(--bredde); margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { text-decoration: none; color: var(--rød); font-size: 1.2rem; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.menu { display: flex; gap: 32px; }
.menu a { text-decoration: none; font-size: .95rem; color: var(--tekst); padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--rød); }
.menu a[aria-current] { border-bottom-color: var(--rød); }
.menu-knap { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--tekst); }
.menu-knap span { position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-knap span:nth-child(1) { top: 15px; }
.menu-knap span:nth-child(2) { top: 21px; }
.menu-knap span:nth-child(3) { top: 27px; }
.menu-knap[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-knap[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-knap[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-knap:hover { color: var(--rød); }
.menu-knap:focus-visible { outline: 2px solid var(--rød); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .menu-knap span { transition: none; } }
@media (max-width: 720px) {
  .top-indre { height: 60px; }
  .logo { font-size: 1.05rem; }
  .js .menu-knap { display: block; }
  .js .menu { display: none; position: absolute; left: 0; right: 0; top: 60px; background: #fff; flex-direction: column; gap: 0; padding: 8px 24px 16px; border-bottom: 1px solid var(--streg); box-shadow: 0 12px 24px rgba(0,0,0,.06); }
  .js .menu.aaben { display: flex; }
  .js .menu a { padding: 12px 0; border-bottom: 1px solid var(--streg); font-size: 1.05rem; }
  .js .menu a:last-child { border-bottom: 0; }
  .js .menu a[aria-current] { color: var(--rød); }
  .menu { gap: 16px; }
}
.sociale { display: none; }

/* Generelt */
.indhold { max-width: var(--bredde); margin: 0 auto; padding: 0 24px; }
.smal { max-width: 760px; }
.sektion { padding: 64px 0; border-top: 1px solid var(--streg); }
.sektion.tæt { border-top: 0; padding: 8px 0 48px; }
.sektion-titel { text-align: center; font-size: 1.7rem; margin: 0 0 36px; }
.sektion-titel.venstre { text-align: left; font-size: 1.3rem; margin-bottom: 20px; }
.side-titel { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 48px 0 12px; }
.side-intro { color: var(--dæmpet); margin: 0 0 28px; max-width: 60ch; }
.etiket { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dæmpet); margin: 0 0 6px; font-weight: 500; }
.midt { text-align: center; margin: 40px 0 0; }
.lille { font-size: .9rem; color: var(--dæmpet); }
.knap { display: inline-block; background: var(--tekst); color: #fff; text-decoration: none; padding: 11px 28px; border-radius: 999px; font-size: .95rem; transition: background .2s; }
.knap:hover { background: var(--rød); }

/* Forside: ét helt værk med museumsetiket */
.hero { background: var(--flade); }
.hero-gitter { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 48px; align-items: center; }
@media (min-width: 900px) { .hero-gitter { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 72px; padding-top: 64px; padding-bottom: 72px; } }
.hero-vaerk { margin: 0; justify-self: center; }
.hero-flade { display: block; }
.hero-flade img { max-height: min(68vh, 620px); width: auto; box-shadow: 0 16px 40px rgba(0,0,0,.22); }
.etiket-skilt { margin-top: 18px; font-size: .9rem; color: var(--dæmpet); line-height: 1.5; }
.etiket-skilt a { text-decoration: none; color: var(--tekst); }
.etiket-skilt em { font-style: italic; }
.hero-tekst h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.01em; }
.hero-intro { font-size: 1.12rem; color: #444; margin: 0 0 28px; max-width: 40ch; }
.knapper { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.knap.sekundaer { background: transparent; color: var(--tekst); box-shadow: inset 0 0 0 1px var(--tekst); }
.knap.sekundaer:hover { background: var(--tekst); color: #fff; }
.sektion-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.sektion-top h2 { font-size: 1.6rem; margin: 0; }
.sektion-top a { text-decoration: none; color: var(--dæmpet); white-space: nowrap; }
.sektion-top a:hover { color: var(--rød); }
.aktuelt { display: grid; gap: 24px; align-items: center; border: 1px solid var(--streg); }
@media (min-width: 800px) { .aktuelt { grid-template-columns: 320px 1fr; gap: 40px; } }
.aktuelt img, .aktuelt picture { width: 100%; height: 100%; max-height: 260px; object-fit: cover; }
.aktuelt > div { padding: 4px 24px 24px; }
@media (min-width: 800px) { .aktuelt > div { padding: 24px 32px 24px 0; } }
.aktuelt h3 { font-size: 1.3rem; margin: 0 0 8px; }
.aktuelt p { margin: 0 0 10px; color: #444; max-width: 56ch; }
.kontaktlinje a { color: var(--tekst); }

/* Forside (gammel) */
.banner { height: clamp(220px, 38vw, 460px); overflow: hidden; background: var(--flade); }
.banner img, .banner picture { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.velkommen { text-align: center; padding: 48px 0 56px; }
.velkommen h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 0 0 10px; }
.velkommen p { color: var(--dæmpet); margin: 0 auto; max-width: 52ch; font-size: 1.05rem; }

/* Udstillingskort */
.udst-gitter { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px; }
.udst-kort { border: 1px solid var(--streg); background: #fff; display: flex; flex-direction: column; }
.udst-billede { aspect-ratio: 4 / 3; overflow: hidden; background: var(--flade); }
.udst-billede img, .udst-billede picture { width: 100%; height: 100%; object-fit: cover; }
.udst-tekst { padding: 18px 20px 22px; text-align: center; }
.udst-dato { display: inline-block; font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--tekst); padding: 3px 12px; margin: 0 0 12px; }
.udst-kort h3 { font-size: 1.15rem; margin: 0; }
.udst-kort h3 a { text-decoration: none; }
.udst-kort h3 a:hover { color: var(--rød); }
.udst-arr { color: var(--dæmpet); font-size: .9rem; margin: 4px 0 0; }

/* Om-kort på forsiden */
.om-kort { display: grid; gap: 36px; align-items: center; }
.om-kort h2 { font-size: 1.5rem; margin: 0 0 12px; }
.om-kort h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.om-kort p { margin: 0 0 12px; max-width: 62ch; }
.om-kort .knap { margin-top: 12px; }
@media (min-width: 800px) { .om-kort { grid-template-columns: 360px 1fr; gap: 56px; } }

/* Værkkort */
.vaerk-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 40px 32px; }
.vaerk-kort { text-decoration: none; display: block; }
.vaerk-kort[hidden] { display: none; }
.vaerk-flade { aspect-ratio: 1; background: var(--flade); display: grid; place-items: center; padding: 10%; overflow: hidden; }
.vaerk-flade picture, .vaerk-flade img { max-height: 100%; width: auto; object-fit: contain; box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: transform .4s ease; }
.vaerk-flade picture img { max-height: 100%; }
.vaerk-kort:hover .vaerk-flade img { transform: scale(1.03); }
.vaerk-kort h3 { font-size: 1.1rem; margin: 16px 0 2px; }
.vaerk-kort:hover h3 { color: var(--rød); }
.vaerk-kort .fakta { color: var(--dæmpet); font-size: .92rem; margin: 0; }
.vaerk-kort .pris { font-size: .95rem; font-weight: 500; margin: 4px 0 0; }
.solgt { color: var(--rød); }
.solgt::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rød); margin-right: 6px; vertical-align: 1px; }

.faner { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.faner button { font: inherit; font-size: .9rem; cursor: pointer; padding: 7px 18px; border-radius: 999px; border: 1px solid var(--streg); background: #fff; color: var(--tekst); }
.faner button:hover { border-color: var(--tekst); }
.faner button[aria-pressed="true"] { background: var(--tekst); border-color: var(--tekst); color: #fff; }

/* Museumsvisning af ét værk */
.tilbage { margin: 28px 0 20px; font-size: .92rem; }
.tilbage a { text-decoration: none; color: var(--dæmpet); }
.tilbage a:hover { color: var(--tekst); }
.museum { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .museum { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 56px; } }
.museum-vaeg { background: var(--flade); display: grid; place-items: center; padding: clamp(24px, 6vw, 72px); min-height: 50vh; }
.museum-vaeg img { max-height: 72vh; width: auto; box-shadow: 0 14px 40px rgba(0,0,0,.22); }
.museum-skilt { padding-top: 8px; }
@media (min-width: 900px) { .museum-skilt { position: sticky; top: 24px; } }
.museum-skilt h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0; }
.undertitel { font-size: 1.1rem; font-style: italic; color: var(--dæmpet); margin: 4px 0 0; }
.fakta-liste { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 24px 0; padding: 18px 0; border-top: 1px solid var(--streg); border-bottom: 1px solid var(--streg); }
.fakta-liste dt { color: var(--dæmpet); font-size: .9rem; }
.fakta-liste dd { margin: 0; }
.beskrivelse { margin-bottom: 28px; }
.beskrivelse p { margin: 0 0 1em; }
.blad { display: flex; justify-content: space-between; gap: 16px; padding: 40px 0 0; margin-top: 48px; border-top: 1px solid var(--streg); }
.blad a { text-decoration: none; }
.blad a:hover { color: var(--rød); }

/* Om og kontakt */
.om-side { display: grid; gap: 40px; align-items: start; padding-bottom: 32px; }
@media (min-width: 900px) { .om-side { grid-template-columns: 420px 1fr; gap: 64px; padding-top: 48px; } .om-side .side-titel { margin-top: 0; } }
.om-side .tekst { max-width: 64ch; }
.om-side p { margin: 0 0 1.1em; }

/* Udstillinger og CV */
.tom { background: var(--flade); padding: 20px 24px; margin: 0; }
.to-spalter { display: grid; gap: 48px; padding: 48px 0 16px; border-top: 1px solid var(--streg); }
@media (min-width: 900px) { .to-spalter { grid-template-columns: 1.4fr 1fr; gap: 72px; } }
.aarliste { display: grid; grid-template-columns: 5rem 1fr; gap: 0; margin: 0; }
.aarliste dt { font-weight: 500; padding: 10px 0; border-top: 1px solid var(--streg); }
.aarliste dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--streg); }
.enkel-liste { list-style: none; padding: 0; margin: 0; }
.enkel-liste li { padding: 6px 0; border-top: 1px solid var(--streg); }
.cv-blok { margin: 0 0 40px; }
.cv-blok h2 { font-size: 1.2rem; margin: 0 0 10px; }

/* Bund */
.bund { margin-top: 96px; background: var(--flade); border-top: 1px solid var(--streg); }
.bund-indre { max-width: var(--bredde); margin: 0 auto; padding: 56px 24px 40px; display: grid; gap: 36px 24px; grid-template-columns: 1fr 1fr; }
.bund-intro, .bund-kol:nth-child(2) { grid-column: 1 / -1; }
@media (min-width: 640px) { .bund-indre { grid-template-columns: 1fr 1fr 1fr; } .bund-kol:nth-child(2) { grid-column: auto; } }
@media (min-width: 1000px) { .bund-indre { grid-template-columns: 1.6fr 1fr .8fr .8fr; gap: 48px; } .bund-intro { grid-column: auto; } }
.bund-navn { color: var(--rød); text-decoration: none; font-size: 1.25rem; font-weight: 500; }
.bund-intro p { color: #4a4a4a; max-width: 38ch; margin: 10px 0 20px; }
.bund h2 { font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--dæmpet); margin: 4px 0 14px; }
.bund-kol p { margin: 0 0 14px; }
.bund ul { list-style: none; padding: 0; margin: 0; }
.bund li { margin: 0 0 8px; }
.bund-kol a { text-decoration: none; }
.bund-kol a:hover { color: var(--rød); text-decoration: underline; }
.bund-linje { max-width: calc(var(--bredde) - 48px); margin: 0 24px; padding: 20px 0 28px; border-top: 1px solid var(--streg); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: .85rem; color: var(--dæmpet); }
.bund-linje img { width: 34px; }
.hero + .indhold > .sektion:first-child { border-top: 0; }

@media (min-width: 1228px) { .bund-linje { margin: 0 auto; } }

/* Kontakt og formular */
.kontakt-side { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .kontakt-side { grid-template-columns: 1fr 1.25fr; gap: 72px; } }
.kontakt-foto { margin-top: 8px; width: 100%; max-height: 320px; object-fit: cover; }
.kontakt-foto img { width: 100%; max-height: 320px; object-fit: cover; }
.formular { background: var(--flade); padding: clamp(24px, 4vw, 40px); margin-top: 48px; }
.formular h2 { font-size: 1.4rem; margin: 0 0 6px; }
.formular-intro { color: var(--dæmpet); margin: 0 0 24px; }
.felt { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; min-width: 0; }
.felt-raekke { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .felt-raekke { grid-template-columns: 1fr 1fr; } }
.felt label { font-size: .9rem; font-weight: 500; }
.felt label span { font-weight: 400; color: var(--dæmpet); }
.felt input, .felt textarea { font: inherit; padding: 11px 14px; border: 1px solid #cfccc6; border-radius: 6px; background: #fff; color: var(--tekst); width: 100%; }
.felt input:focus, .felt textarea:focus { outline: 2px solid var(--tekst); outline-offset: 0; border-color: var(--tekst); }
.felt textarea { resize: vertical; min-height: 140px; }
.formular button.knap { border: 0; cursor: pointer; font: inherit; }
.formular button.knap:disabled { opacity: .6; cursor: wait; }
.formular-status { min-height: 1.5em; margin: 14px 0 4px; font-weight: 500; }
.formular .lille { margin: 0; }
.skjult { position: absolute; left: -9999px; }

/* Udstillingskort: diskret animation ved hover */
.udst-kort { position: relative; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.udst-billede img { transition: transform .6s ease; }
.udst-kort h3, .udst-kort h3 a { transition: color .25s ease; }
.udst-kort h3 a::after { content: ""; position: absolute; inset: 0; }
.udst-kort:hover, .udst-kort:focus-within { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.08); border-color: #d6d3ce; }
.udst-kort:hover .udst-billede img { transform: scale(1.04); }
.udst-kort:hover h3, .udst-kort:hover h3 a { color: var(--rød); }
@media (prefers-reduced-motion: reduce) {
  .udst-kort, .udst-billede img, .vaerk-flade img { transition: none; }
  .udst-kort:hover, .udst-kort:focus-within { transform: none; }
  .udst-kort:hover .udst-billede img { transform: none; }
}

/* Tidligere værker og lysboks */
.vaerk-sektion .side-intro { margin-top: 0; }
.tidl-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(45%, 200px), 1fr)); gap: 20px; }
.forside-tidl { grid-template-columns: repeat(auto-fill, minmax(min(45%, 220px), 1fr)); }
.tidl-kort { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; width: 100%; }
a.tidl-kort { cursor: pointer; }
.tidl-kort[hidden] { display: none; }
.tidl-kort .vaerk-flade { display: grid; padding: 12%; }
.tidl-kort .vaerk-flade img, .tidl-kort .vaerk-flade picture { box-shadow: 0 4px 12px rgba(0,0,0,.16); transition: transform .4s ease; }
.tidl-kort:hover .vaerk-flade img, .tidl-kort:focus-visible .vaerk-flade img { transform: scale(1.04); }
.tidl-kort:focus-visible { outline: 2px solid var(--tekst); outline-offset: 4px; }
.lysboks { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(250,249,247,.97); }
.lysboks::backdrop { background: rgba(0,0,0,.35); }
.lysboks[open] { display: grid; place-items: center; }
.lysboks figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: calc(100vw - 120px); }
.lysboks img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.lysboks figcaption { color: var(--dæmpet); font-size: .9rem; }
.lysboks button { position: absolute; border: 0; background: none; cursor: pointer; color: var(--tekst); font-size: 2.6rem; line-height: 1; padding: 12px 16px; }
.lysboks button:hover { color: var(--rød); }
.lb-luk { top: 12px; right: 16px; }
.lb-forrige { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-naeste { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lysboks figure { max-width: calc(100vw - 24px); }
  .lb-forrige, .lb-naeste { top: auto; bottom: 12px; transform: none; }
}
.tidl-kort .vaerk-flade { position: relative; display: block; padding: 0; }
.tidl-kort .vaerk-flade picture { position: absolute; inset: 12%; display: flex; align-items: center; justify-content: center; box-shadow: none; }
.tidl-kort .vaerk-flade img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.vaerk-sektion:first-of-type { border-top: 0; padding-top: 8px; }
/* Fokustilstand: værket stort på skærmen med sløret side bagved */
.lysboks { background: transparent; }
.lysboks::backdrop { background: rgba(245,243,240,.55); -webkit-backdrop-filter: blur(14px) saturate(.9); backdrop-filter: blur(14px) saturate(.9); }
.lysboks[open] figure { animation: lb-ind .35s ease; }
.lysboks[open]::backdrop { animation: lb-fade .35s ease; }
.lysboks img { box-shadow: 0 20px 60px rgba(0,0,0,.28); }
.lysboks figcaption { color: var(--tekst); }
@keyframes lb-ind { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lysboks[open] figure, .lysboks[open]::backdrop { animation: none; } }
/* Høje værker skal også holde sig inden for fladen */
.vaerk-kort .vaerk-flade { position: relative; display: block; padding: 0; }
.vaerk-kort .vaerk-flade picture { position: absolute; inset: 10%; display: flex; align-items: center; justify-content: center; box-shadow: none; }
.vaerk-kort .vaerk-flade img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
