/* Manrope ligger på vores egen server (ingen opslag hos Google, før den besøgende har givet samtykke).
   Variabel skrift: én fil dækker vægt 400–600. Latin + latin-ext dækker dansk, engelsk og polsk.
   Manrope © The Manrope Project Authors, SIL Open Font License 1.1. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/manrope-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/manrope-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;
}

/* Inwema – farver hentet fra footeren.
   Mørk tilstand er standard. Lys tilstand (html[data-theme="light"], slås til med knappen i headeren)
   giver de samme variabler nye værdier: baggrunden bliver lys og teksten navy, og de isblå flader
   (menu, knapper) bliver navy. Tekst på fotos (artikelkort, landesidernes hero) forbliver mørk tilstand. */
:root,
:root[data-theme="light"] :is(.insC-card.has-img:hover, .land-hero) {
  color-scheme: dark;
  --bg: #0e1a2b;
  --bg-rgb: 14, 26, 43;  /* samme farve som --bg, til gennemsigtige udgaver */
  --bg-raised: #15243a;
  --line: #263a55;
  --ice: #cfe6f2;
  --ice-bright: #e8f3f9;
  --muted: #8fa6bd;
  --muted-2: #8296ae;
  --dim: #33496a;
  --text: #e2edf4;       /* brødtekst */
  --soft: #9db3c8;       /* links i indholdsfortegnelse og kilder */
  --faint: #5f7896;      /* dæmpet, men stadig læsbar (min. 3:1 for stor tekst) */
  --tag: #1c2e47;
  --error: var(--error);
  --shadow: rgba(5, 12, 22, .45);
  --white: #ffffff;
}
:root[data-theme="light"] {
  color-scheme: light;
  /* varm, lys papirtone og næsten sort blæk med et strejf af Inwemas navy */
  --bg: #f0eeeb;
  --bg-rgb: 240, 238, 235;
  --bg-raised: #e7e4e0;
  --line: #d4d0ca;
  --ice: #18202a;
  --ice-bright: #0b1017;
  --muted: #5b6168;
  --muted-2: #656a70;
  --dim: #c8c4be;
  --text: #2a3038;
  --soft: #545a62;
  --faint: #7f848a;
  --tag: #e3e0db;
  --error: #a8322b;
  --shadow: rgba(24, 32, 42, .12);
}
:root {

  --gutter: clamp(16px, 3.4vw, 48px);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ice);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ---------- Header ---------- */
.site-header {
  --hdr-pad: clamp(20px, 2.6vw, 36px);
  position: absolute; /* ruller væk med siden, som hos Leome */
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--hdr-pad) var(--gutter);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.brand { display: block; color: var(--ice); line-height: 0; }
.brand .logo { height: clamp(24px, 2.3vw, 32px); width: auto; display: block; overflow: visible; }

.header-right { position: relative; z-index: 2; display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }

/* sprogskifter: det aktive sprog står lyst, det andet dæmpet */
.lang { font-size: 13px; letter-spacing: .02em; color: var(--muted-2); }
.lang a, .lang-sep { color: var(--muted-2); transition: color .3s; }
.lang a[aria-current], .lang a:hover { color: var(--ice); }
/* når menuen er udvidet, står sproget mørkt til venstre for "Luk" */
.menu-wide .lang a, .menu-wide .lang-sep { color: rgba(var(--bg-rgb), .55); transition: color .35s .2s; }
.menu-wide .lang a[aria-current], .menu-wide .lang a:hover { color: var(--bg); }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 112px; /* fast bredde, så menuen kan starte præcis fra knappen */
  height: 40px;
  padding: 0 14px 0 18px;
  border: 0;
  background: var(--ice);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.burger { position: relative; display: grid; gap: 4px; width: 22px; }
.burger i { display: block; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out), opacity .3s; }
.menu-btn:hover .burger i:nth-child(2) { transform: translateX(4px); }
/* de tre streger bliver til et kryds */
.menu-btn[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; transform: none; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Menu: vokser fra knappen mod venstre og nedad på samme tid ---------- */
.menu {
  --pad: 14px;                 /* luft rundt om knappen i menuens øverste række */
  --bw: 112px;                 /* knappens bredde */
  --bh: 40px;                  /* knappens højde */
  --t: var(--pad);             /* afstand fra menuens top til knappen */
  --r: var(--pad);             /* afstand fra menuens højre kant til knappen */
  --l: var(--pad);             /* indre luft i venstre side */
  --ease-soft: cubic-bezier(.22, 1, .36, 1);
  position: absolute;
  z-index: 1;
  top: calc(var(--hdr-pad) - var(--t));
  left: calc(var(--gutter) - var(--l));
  right: calc(var(--gutter) - var(--r));
  display: grid;
  grid-template-rows: calc(var(--bh) + 2 * var(--t)) auto auto;
  padding: 0 var(--l) calc(var(--t) + 8px);
  background: var(--ice);
  color: var(--bg);
  visibility: hidden;
  /* lukket: præcis samme felt som knappen */
  clip-path: inset(var(--t) var(--r) calc(100% - var(--t) - var(--bh)) calc(100% - var(--r) - var(--bw)));
  transition: clip-path .6s var(--ease-soft), visibility 0s .6s;
}
.menu.is-active { visibility: visible; transition: clip-path .6s var(--ease-soft); }
.menu.is-wide { clip-path: inset(0 0 calc(100% - var(--bh) - 2 * var(--t)) 0); }
.menu.is-open { clip-path: inset(0 0 0 0); transition: clip-path .75s var(--ease-soft); }

.menu-logo { align-self: center; justify-self: start; line-height: 0; opacity: 0; transition: opacity .3s; }
.menu-logo img { height: clamp(24px, 2.3vw, 32px); width: auto; display: block; }
.menu.is-wide .menu-logo { opacity: 1; transition: opacity .6s var(--ease-soft) .2s; }

.menu-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  /* luft til siderne og forneden, så linkene ikke ligger ude ved kanten */
  padding: clamp(32px, 4.5vw, 72px) clamp(20px, 4vw, 72px) clamp(24px, 3.2vw, 52px);
  font-size: clamp(28px, 3.3vw, 56px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.menu-nav > *, .menu-mail {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .2s, transform 0s .2s;
}
.menu.is-open .menu-nav > *, .menu.is-open .menu-mail {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease-soft) calc(.3s + var(--i, 0) * .06s), transform .9s var(--ease-soft) calc(.3s + var(--i, 0) * .06s), color .3s ease;
}
.menu-nav > :nth-child(2) { --i: 1; }
.menu-nav > :nth-child(3) { --i: 2; }
.menu-nav > :nth-child(4) { --i: 3; }
.menu-nav > :nth-child(5) { --i: 4; }
.menu-mail { --i: 5; }
.menu-nav a { color: var(--bg); }
.menu-nav a:hover { color: rgba(var(--bg-rgb), .55); } /* stille markering ved hover – ingen streg */
/* e-mail i menuens øverste række (desktop) – til venstre for DA / EN */
.head-mail { display: none; font-size: 13px; letter-spacing: .02em; color: var(--bg); }
.menu-wide .head-mail { display: inline; animation: lang-in .5s ease .25s both; }
.menu-mail { display: none; } /* på mobil ligger e-mailen under linkene */
.menu-open { overflow: hidden; } /* siden står stille, mens menuen er åben */

.menu-logo .menu-logo-mark { display: none; }
/* desktop: menuen er én række – logomærket, linkene og til højre mail, sprog og "Luk".
   - Samme luft hele vejen rundt om indholdet (--pad), så alt står på én linje gennem midten af "Luk".
   - Mærket står præcis, hvor logoet står, når menuen er lukket.
   - Linkene har logoets skriftstørrelse, men krymper, hvis rækken ellers ville nå ind under mail og "Luk".
     21,1 em er de fem ord inkl. mellemrum; --room er pladsen til mærket, højre side og luft imellem. */
@media (min-width: 761px) {
  .menu {
    --pad: clamp(16px, 1.5vw, 22px);
    --logo-h: clamp(24px, 2.3vw, 32px);
    --right: 359px; /* mail + lys/mørk + sprog + "Luk" */
    --room: calc(var(--logo-h) * 2.3 + var(--right) + 56px);
    grid-template-columns: auto 1fr;
    grid-template-rows: calc(var(--bh) + 2 * var(--t));
    padding-bottom: 0;
  }
  .menu-logo .menu-logo-full { display: none; }
  .menu-logo .menu-logo-mark { display: block; height: calc(var(--logo-h) * 508 / 742); }
  .menu-nav {
    align-self: center;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0 .9em;
    padding: 0 0 0 calc(var(--logo-h) * .64);
    margin-bottom: .18em; /* løfter ordene en anelse, så små bogstaver – ikke linjeboksen – står midt i rækken */
    font-size: min(calc(var(--logo-h) * 1.348), (100vw - 2 * var(--gutter) - var(--room)) / 21.1);
    letter-spacing: -0.038em;
    line-height: 1.3;
    white-space: nowrap;
  }
  /* siden, man står på, er dæmpet – de andre er dem, man kan gå til */
  .menu-nav a[aria-current="page"] { color: rgba(var(--bg-rgb), .4); }
}
/* mindre desktop: mailen i menurækken skjules, så linkene kan blive større */
@media (min-width: 761px) and (max-width: 1199px) {
  .menu { --right: 229px; }
  .menu-wide .head-mail { display: none; }
}
@media (max-width: 760px) {
  /* samme boks som på desktop – kun så høj som indholdet, med luft til skærmkanterne */
  .menu { --pad: 8px; }
  .menu-nav { flex-direction: column; justify-content: flex-start; gap: 10px; padding: 24px 8px 4px; font-size: clamp(30px, 8.6vw, 40px); }
  .menu-wide .head-mail { display: none; }
  .menu-mail { display: block; justify-self: start; margin: 22px 8px 8px; font-size: 14px; color: rgba(var(--bg-rgb), .75); }
}
@keyframes lang-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .menu, .menu *, .burger i, .lang, .lang a, .lang-sep, .head-mail { transition: none !important; animation: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: sticky; /* bliver liggende, mens næste sektion kører op over den */
  top: 0;
  z-index: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(96px, 11vh, 132px) var(--gutter) clamp(20px, 3vh, 32px);
}

.hero-title {
  position: relative;
  margin: 0;
  align-self: center;
  text-align: center;
  font-weight: 500;
  font-size: clamp(40px, 11.6vw, 188px);
  line-height: .94;
  letter-spacing: -0.045em;
  color: var(--ice);
}
.hero-line { display: block; white-space: nowrap; }
.hero-title .ch { display: inline-block; will-change: transform; }

.hero-upper { display: block; }
.hero-line { position: relative; transform-origin: 0 100%; }
/* et ord der vippes må aldrig lægge sig over ordet under musen (ellers flimrer hover) */
.hero-upper .hero-line:first-child { z-index: 1; }
.hero-upper .hero-line:last-child { z-index: 2; }
.hero-words > .hero-line { z-index: 3; }
.hero-word { display: inline-block; }

/* symboler der dukker op over ordene ved hover */
.hero-symbols { position: absolute; inset: 0; pointer-events: none; }
.hero-symbol {
  position: absolute;
  left: 0;
  top: 0;
  width: .78em;
  height: .78em;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.hero-symbol--angular { stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 2; }
@media (hover: none) { .hero-word { cursor: pointer; } }

/* måleelement til startpositionen "inwema" */
.hero-measure {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  visibility: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-services {
  list-style: none;
  margin: clamp(28px, 5vh, 56px) 0 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  letter-spacing: .01em;
}
.hero-services a {
  position: relative;
  color: var(--ice);
  padding-bottom: 3px;
}
.hero-services a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.hero-services a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Udsagn: tekst til venstre, billedet i en ramme til højre (kører op over hero'en) ---------- */
.statement, .about {
  position: relative;
  z-index: 1; /* ligger over den sticky hero */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 96px);
  padding: clamp(72px, 11vw, 160px) var(--gutter);
  background: var(--bg);
}
.statement-media, .about-media { margin: 0; max-width: 100%; overflow: hidden; }
.statement-media img, .about-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.statement-media { justify-self: end; width: 100%; max-width: 520px; aspect-ratio: 4 / 5; }
.statement-media img { object-position: 72% 50%; } /* vinduet med flyet og den rejsende */
.statement-text {
  max-width: 19em;
  margin: 0;
  font-size: clamp(26px, 3vw, 46px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--muted);
  text-wrap: balance;
}
.statement-lead { color: var(--ice); }
@media (max-width: 760px) {
  .statement, .about { grid-template-columns: minmax(0, 1fr); }
  .statement-media { justify-self: stretch; max-width: none; aspect-ratio: 4 / 3; }
}

/* ---------- Ekspertise: låses fast, og områderne skifter mens man scroller ---------- */
.exp {
  --slow: 1.1s;
  --ease-soft: cubic-bezier(.22, 1, .36, 1);
  position: relative;
  z-index: 1; /* ligger over den sticky hero */
  height: calc(var(--steps, 3) * 85vh + 100vh); /* scroll-længde: ca. 85vh pr. område */
  background: var(--bg);
}
.exp-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 5vh, 64px);
  padding: clamp(32px, 6vh, 72px) var(--gutter);
}
.exp-title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: .98;
  letter-spacing: -0.035em;
  color: var(--ice);
}
:where(.exp h3) { margin: 0; font: inherit; } /* nul specificitet, så klasserne bestemmer størrelsen */
.exp ul { list-style: none; margin: 0; padding: 0; }

/* kantede ikoner: samme streg som symbolerne i hero'en, skarpe hjørner som vægten */
.exp-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  stroke-miterlimit: 2;
  overflow: visible;
  flex: none;
}
.exp-icon--round { stroke-linecap: round; stroke-linejoin: round; } /* globussen er rund som i hero'en */

.expC-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: start; /* boksen strækker sig ikke med listen */
}
.expC-nav { align-self: start; }
.expC-tabs { display: grid; align-content: start; }
.expC-tab {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 24px);
  padding: clamp(16px, 1.8vw, 28px) 0;
  color: var(--faint);
  font-size: clamp(28px, 3.6vw, 58px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  transition: color calc(var(--slow) * .8) var(--ease-soft), transform var(--slow) var(--ease-soft);
}
.expC-icon { width: .6em; height: .6em; }
.expC-tab.is-active { color: var(--ice); transform: translateX(14px); } /* forskydning ændrer ikke layoutet */

/* alle paneler ligger i samme felt: højden følger den længste liste og ændrer sig aldrig ved skift.
   Ingen boks – specialerne står som typografi direkte på baggrunden. */
.expC-panels { display: grid; }
.expC-panel {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: clamp(16px, 1.8vw, 28px); /* flugter med første område til venstre */
  color: var(--ice);
  opacity: 0;
  transition: opacity .5s ease; /* rolig overtoning mellem områderne */
}
.expC-panel.is-active { opacity: 1; transition: opacity .7s ease .15s; }
.expC-subs { display: grid; gap: .5em; font-size: clamp(20px, 2.1vw, 34px); line-height: 1.15; letter-spacing: -0.02em; }
.exp .sub-link { background: none; transition: opacity .3s ease; } /* ingen streg-animation her */
.exp .sub-link:hover { opacity: .65; } /* stille markering ved hover */
@media (prefers-reduced-motion: reduce) {
  .expC-panel { transition: none !important; }
}

@media (max-width: 760px) {
  .exp { height: calc(var(--steps, 3) * 70vh + 100vh); }
  .exp-sticky { justify-content: flex-start; padding-top: clamp(48px, 8vh, 72px); gap: 24px; }
  .exp-title { font-size: clamp(34px, 9vw, 48px); }
  .expC-wrap { grid-template-columns: 1fr; gap: 20px; }
  .expC-tab { font-size: clamp(20px, 6vw, 30px); padding: 12px 0; }
  .expC-subs { font-size: clamp(18px, 5vw, 24px); }
  .expC-panel { padding-top: 0; }
}

/* lav skærm, eller ingen JS: vis alle områder under hinanden i stedet */
@media (max-height: 600px) {
  .exp { height: auto; }
  .exp-sticky { position: static; height: auto; }
  .expC-wrap { grid-template-columns: 1fr; }
  .expC-nav { display: none; }
  .expC-panels { gap: 32px; }
  .expC-panel { grid-area: auto; opacity: 1; padding-top: 0; }
}

/* ---------- Om os: stort billede som hos Leome ---------- */
/* ---------- Om os på forsiden: billedet i en ramme til venstre, teksten til højre ---------- */
.about { padding-top: 0; }
.about-media { aspect-ratio: 3 / 2; }
.about-media img { object-position: 30% 50%; } /* personen på kajen */
.about-text { display: grid; gap: clamp(20px, 2.4vw, 32px); justify-items: start; min-width: 0; }
.about-title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ice);
  text-wrap: balance;
}
.about-lead { margin: 0; max-width: 32em; color: var(--text); font-size: clamp(16px, 1.2vw, 19px); line-height: 1.6; }
.about-link {
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  color: var(--ice);
  font-size: clamp(17px, 1.5vw, 22px);
  transition: color .3s;
}
.about-link:hover { color: var(--muted); } /* stille markering – ingen bevægelse i stregen */

/* ---------- Om os-siden ---------- */
.page-actions { margin: clamp(28px, 3vw, 44px) 0 0; }
.page-btn {
  display: inline-block;
  padding: 16px 28px;
  background: var(--ice);
  color: var(--bg);
  font-size: 16px;
  font-weight: 500;
  transition: opacity .3s ease;
}
.page-btn:hover { opacity: .85; }
.page-btn:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

/* ---------- Sider vi administrerer: domæner i grupper ---------- */
.page-text.sites-lead { max-width: 38em; margin-top: clamp(20px, 2.4vw, 32px); }
.sites { display: grid; gap: clamp(48px, 6vw, 88px); margin-top: clamp(48px, 7vw, 104px); }
.sites-group {
  display: grid;
  grid-template-columns: minmax(0, 17em) minmax(0, 1fr);
  gap: 20px clamp(28px, 5vw, 96px);
  padding-top: clamp(20px, 2.4vw, 32px);
  border-top: 1px solid var(--line);
}
.sites-head h2 { margin: 0; font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; color: var(--ice); }
.sites-head p { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.site-list {
  columns: 15em 3; /* alfabetisk nedad i kolonner */
  column-gap: clamp(20px, 3vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site {
  break-inside: avoid;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.site-name { color: var(--ice); font-size: 17px; }
.site-domains { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 12px; min-width: 0; font-size: 14px; }
.site-domains a { color: var(--muted); overflow-wrap: anywhere; transition: color .3s; }
.site--plain .site-domains { justify-content: flex-start; font-size: 17px; }
.site--plain .site-domains a { color: var(--ice); }
.site-domains a:hover { color: var(--ice); }
.site--plain .site-domains a:hover { color: var(--muted); }
@media (max-width: 760px) {
  .sites-group { grid-template-columns: minmax(0, 1fr); }
}

.page { padding: clamp(140px, 22vh, 220px) var(--gutter) clamp(64px, 10vh, 120px); }
.page-label {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.page-title {
  margin: 0;
  max-width: 14em;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ice);
}
.page-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 72px);
  max-width: 1100px;
  margin: clamp(40px, 6vw, 88px) 0 0; /* flugter med overskriften og knappen */
}
.page-text { margin: 0; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.6; color: var(--text); }
.page-back { margin: clamp(40px, 6vw, 72px) 0 0; }
.page-back a { color: var(--ice); border-bottom: 1px solid currentColor; padding-bottom: 4px; }
@media (max-width: 760px) {
  .page-cols { grid-template-columns: 1fr; }
}

/* ---------- Holdet på om os-siden: portrætgitter ---------- */
.team { --ease-soft: cubic-bezier(.22, 1, .36, 1); margin-top: clamp(96px, 14vw, 200px); }
.team ul { list-style: none; margin: 0; padding: 0; }
:where(.team h3, .team p) { margin: 0; }
.team-head { margin-bottom: clamp(32px, 4vw, 56px); }
.team-title { margin: 0; font-weight: 500; font-size: clamp(36px, 4.6vw, 72px); line-height: 1; letter-spacing: -0.035em; color: var(--ice); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 på første række, 3 på anden */
  gap: clamp(40px, 5vw, 72px) clamp(16px, 2vw, 28px);
}
/* fritlagte portrætter: ingen baggrund, og feltet har billedernes eget format (3:4), så intet beskæres */
.team-photo {
  position: relative;
  margin: 0 0 clamp(16px, 1.6vw, 24px);
  aspect-ratio: 672 / 900;
  overflow: hidden;
}
.team-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%; transition: transform 1.4s var(--ease-soft); }
.team-photo:has(img) .team-ph { display: none; } /* "Foto" vises kun, hvis billedet mangler */
.team-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.team-name { font-size: clamp(20px, 1.9vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; color: var(--ice); }
.team-role { margin-top: 6px !important; font-size: clamp(14px, 1.2vw, 18px); color: var(--text); }
@media (hover: hover) { .team-card:hover .team-photo img { transform: scale(1.03); } }

/* vendbare kort: forside med portræt, bagside med bio og kontakt */
.team-card { position: relative; perspective: 1600px; }
.team-turn { display: grid; transform-style: preserve-3d; transition: transform .9s var(--ease-soft); }
.team-front, .team-back { grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.team-back { transform: rotateY(180deg); container-type: inline-size; }
.team-card[data-flipped="true"] .team-turn { transform: rotateY(180deg); } /* vender kortet */
/* bagsiden: en isblå figur med præcis personens omrids (sporet fra portrættet som SVG) */
.team-shape { position: relative; aspect-ratio: 672 / 900; margin: 0 0 clamp(16px, 1.6vw, 24px); }
.team-shape-fill { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--ice); transform: scaleX(-1); } /* personens omrids som vektor (SVG) – spejlvendt, som når man vender et papkort */
/* teksten står i brystpartiet, under skuldrene (--torso beregnes pr. person) */
.team-shape-text {
  position: absolute;
  inset: var(--torso, 63%) 13% 5%; /* smallere end figuren, så linjerne holder sig inden for skuldrene */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75em;
  text-align: center;
  color: var(--bg);
  font-size: var(--fit, 15px); /* sættes af js/team.js, så teksten altid er inde i figuren */
}
.team-bio { margin: 0 !important; font-size: 1em; line-height: 1.35; text-wrap: balance; }
.team-contact {
  flex: none;
  padding: .55em 1em;
  background: var(--bg);
  color: var(--ice);
  font-size: .95em;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity .3s ease;
}
.team-contact:hover { opacity: .85; }
.team-contact:focus-visible { outline: 2px solid var(--bg); outline-offset: 3px; }
/* knappen i hjørnet: plus der drejer til et kryds */
.team-flip {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: var(--ice);
  color: var(--bg);
  cursor: pointer;
  transition: background .5s var(--ease-soft), color .5s var(--ease-soft);
}
.team-flip span { position: relative; width: 14px; height: 14px; transition: transform .6s var(--ease-soft); }
.team-flip span::before, .team-flip span::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; margin-top: -.75px; background: currentColor; }
.team-flip span::after { transform: rotate(90deg); }
.team-card[data-flipped="true"] .team-flip { background: var(--bg); color: var(--ice); }
.team-card[data-flipped="true"] .team-flip span { transform: rotate(45deg); }
.team-flip:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .team-turn, .team-flip, .team-flip span { transition: none; }
}
@media (max-width: 760px) {
  .team-flip { top: 8px; right: 8px; width: 36px; height: 36px; }
}
@media (max-width: 760px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Indholdssider: specialer, artikler og juridiske sider ---------- */
.article, .legal { --ease-soft: cubic-bezier(.22, 1, .36, 1); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 48px); font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--ice); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.crumbs a:hover { border-color: var(--ice); }
.art-head { max-width: 62rem; }
.art-title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(38px, 5.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ice);
}
.art-lead { margin: clamp(20px, 2.6vw, 36px) 0 0; max-width: 40em; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.5; color: var(--text); }
.art-figure { margin: clamp(40px, 6vw, 88px) 0 0; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-raised); }
.art-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }

.art-layout {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2.6fr);
  gap: clamp(32px, 6vw, 112px);
  margin-top: clamp(56px, 8vw, 120px);
  align-items: start;
}
.art-toc { position: sticky; top: 32px; font-size: 15px; }
.toc-label { margin: 0 0 14px; color: var(--muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.art-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.art-toc a { color: var(--soft); line-height: 1.35; transition: color .3s; }
.art-toc a:hover { color: var(--ice); }

.art-body { max-width: 46rem; }
.art-section { scroll-margin-top: 32px; }
.art-section + .art-section { margin-top: clamp(40px, 5vw, 64px); }
.art-section h2 { margin: 0 0 18px; font-weight: 500; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.15; letter-spacing: -0.02em; color: var(--ice); }
.art-section p { margin: 0 0 1em; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; color: var(--text); }
.art-list { list-style: none; margin: 4px 0 1em; padding: 0; display: grid; gap: .7em; }
.art-list li { position: relative; padding-left: 1.6em; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: var(--text); }
.art-list li::before { content: ""; position: absolute; left: 0; top: .8em; width: .9em; height: 1px; background: var(--ice); opacity: .6; }

.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 18px 40px 18px 0;
  list-style: none;
  cursor: pointer;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.4;
  color: var(--ice);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { /* plus der bliver til minus */
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform .5s var(--ease-soft);
}
.faq summary::after { transform: rotate(90deg); }
.faq[open] summary::after { transform: rotate(0deg); }
.faq p { padding-bottom: 18px; }

.art-sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.art-sources a { display: inline-flex; align-items: baseline; gap: 6px; color: var(--soft); font-size: 15px; line-height: 1.45; }
.art-sources a:hover { color: var(--ice); }
.ext { width: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; transform: translateY(1px); }

.art-cta { margin-top: clamp(48px, 6vw, 80px); padding: clamp(24px, 3vw, 40px); background: var(--ice); color: var(--bg); }
.art-cta-title { margin: 0 0 10px; font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.art-cta p:last-of-type { margin: 0; font-size: 17px; line-height: 1.55; }
.art-cta-btn { display: inline-block; margin-top: clamp(18px, 2vw, 26px); padding: 14px 24px; background: var(--bg); color: var(--ice); font-size: 16px; font-weight: 500; transition: opacity .3s ease; }
.art-cta-btn:hover { opacity: .85; }
.art-cta-btn:focus-visible { outline: 2px solid var(--bg); outline-offset: 3px; }

.related { margin-top: clamp(80px, 11vw, 160px); }
.related h2 { margin: 0 0 clamp(20px, 3vw, 32px); font-weight: 500; font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.03em; color: var(--ice); }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.related-list a {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  min-height: 140px;
  padding: 20px;
  border: 1px solid var(--line);
  color: var(--ice);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.25;
  isolation: isolate;
  overflow: hidden;
  transition: color .8s var(--ease-soft);
}
.related-list a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ice); transform: scaleY(0); transform-origin: bottom; transition: transform 1.1s var(--ease-soft); }
.related-list a:hover { color: var(--bg); }
.related-list a:hover::before { transform: scaleY(1); }
.related-list .arrow-box {
  display: grid; place-items: center; width: 40px; aspect-ratio: 1; flex: none;
  background: var(--ice); color: var(--bg);
  transition: background 1.1s var(--ease-soft), color 1.1s var(--ease-soft);
}
.related-list .arrow { width: 62%; fill: none; stroke: currentColor; stroke-width: 2.6; transition: transform 1.2s var(--ease-soft); }
.related-list a:hover .arrow-box { background: var(--bg); color: var(--ice); }
.related-list a:hover .arrow { transform: rotate(45deg); }

/* juridiske sider */
.legal-updated { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.legal-body { max-width: 46rem; margin-top: clamp(48px, 7vw, 96px); }
.legal-body section + section { margin-top: clamp(36px, 4.5vw, 56px); }
.legal-body h2 { margin: 0 0 16px; font-weight: 500; font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.02em; color: var(--ice); }
.legal-body p, .legal-body li, .legal-body address { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; color: var(--text); font-style: normal; }
.legal-body p { margin: 0 0 1em; }
.legal-body ul { margin: 0 0 1em; padding-left: 1.2em; display: grid; gap: .5em; }
.legal-body a { color: var(--ice); border-bottom: 1px solid var(--line); }
.legal-body a:hover { border-color: var(--ice); }
.legal-body strong { color: var(--ice); font-weight: 500; }

/* indsigter: kort som links, "Alle indsigter" og oversigtssiden */
a.insC-card { color: inherit; }
.ins-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.ins-top .ins-title { margin: 0; }
.ins-all { flex: none; color: var(--ice); font-size: clamp(16px, 1.4vw, 22px); border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.ins.ins--page { padding: 0; margin-top: clamp(48px, 7vw, 96px); background: none; }
.ins--page .insC-grid { row-gap: clamp(16px, 2vw, 28px); }
/* specialer-oversigten: ét afsnit pr. område */
.spec-area { scroll-margin-top: 32px; }
.ins.spec-area + .spec-area { margin-top: clamp(64px, 9vw, 128px); }
.spec-area-title { margin: 0 0 clamp(20px, 3vw, 36px); font-weight: 500; font-size: clamp(28px, 3.2vw, 48px); letter-spacing: -0.03em; color: var(--ice); }

/* specialerne på forsiden er links til deres sider */
.sub-link { color: inherit; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .8s var(--ease-soft); }
.sub-link:hover { background-size: 100% 1px; }

@media (max-width: 900px) {
  .art-layout { grid-template-columns: 1fr; }
  .art-toc { position: static; }
  .related-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .art-toc { display: none; }
  .related-list { grid-template-columns: 1fr; }
  .related-list a { min-height: 96px; }
}

/* fælles: elementer med data-reveal glider roligt frem, når de kommer i syne */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1.1s cubic-bezier(.22, 1, .36, 1), transform 1.4s cubic-bezier(.22, 1, .36, 1);
  }
  .js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- Seneste indsigter: tekstkort ---------- */
.ins {
  --slow: 1.1s;
  --ease-soft: cubic-bezier(.22, 1, .36, 1);
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: clamp(80px, 12vh, 140px) var(--gutter);
}
.ins-title {
  margin: 0 0 clamp(32px, 4vw, 56px);
  font-weight: 500;
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: .98;
  letter-spacing: -0.035em;
  color: var(--ice);
}
.ins article { cursor: default; }
:where(.ins h3, .ins p) { margin: 0; }

.ins-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 16px; }
.ins-tag {
  padding: 6px 10px;
  background: var(--tag);
  color: var(--ice);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
}
.ins-head {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ice);
  max-width: 22em;
}
.ins-excerpt {
  margin-top: 12px;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.5;
  color: var(--text);
  max-width: 32em;
}
/* pil i firkant (pynt) */
.ins .arrow-box {
  display: grid;
  place-items: center;
  width: clamp(40px, 3.2vw, 52px);
  aspect-ratio: 1;
  background: var(--ice);
  color: var(--bg);
  flex: none;
  transition: background var(--slow) var(--ease-soft), color var(--slow) var(--ease-soft);
}
.ins .arrow-box .arrow {
  width: 62%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  transition: transform calc(var(--slow) * 1.1) var(--ease-soft);
}

.insC-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.insC-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(340px, 30vw, 460px);
  padding: clamp(20px, 2.2vw, 32px);
  border: 1px solid var(--line);
  isolation: isolate;
  overflow: hidden;
}
.insC-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ice);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--slow) var(--ease-soft);
}
.insC-card .ins-meta { margin-top: 0; }
.insC-card .ins-head { margin-top: clamp(16px, 2vw, 28px); font-size: clamp(24px, 2.3vw, 34px); transition: color calc(var(--slow) * .8) var(--ease-soft); }
.insC-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.insC-card .ins-excerpt { transition: color calc(var(--slow) * .8) var(--ease-soft); }
.insC-card .ins-tag { transition: background calc(var(--slow) * .8) var(--ease-soft), color calc(var(--slow) * .8) var(--ease-soft); }
@media (hover: hover) {
  .insC-card:hover::before { transform: scaleY(1); }
  .insC-card:hover .ins-head, .insC-card:hover .ins-excerpt { color: var(--bg); }
  .insC-card:hover .ins-tag { background: rgba(var(--bg-rgb), .1); color: var(--bg); }
  .insC-card:hover .arrow-box { background: var(--bg); color: var(--ice); }
  .insC-card:hover .arrow { transform: rotate(45deg); }
}


@media (max-width: 900px) {
  .insC-grid { grid-template-columns: 1fr; }
  .insC-card { min-height: 280px; }
}

/* ---------- Footer ---------- */
.foot {
  position: relative;
  z-index: 1;
  background: var(--bg);
  color: var(--ice);
  padding: clamp(72px, 10vh, 120px) var(--gutter) clamp(20px, 3vh, 32px);
  font-size: clamp(18px, 1.6vw, 24px);
}
.foot p { margin: 0; }
.foot a { position: relative; color: var(--ice); }
.foot a::after { /* understregning der glider ind ved hover */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}
.foot a:hover::after { transform: scaleX(1); transform-origin: left; }
.f-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(24px, 4vh, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.f-bottom a { color: var(--muted); }
.f-bottom a:hover { color: var(--ice); }
.f-bottom .lang-foot a[aria-current] { color: var(--ice); }

/* opbygning som hos Leome: bånd | links | info – og et kæmpe "inwema" nederst */
.foot-top {
  display: grid;
  grid-template-columns: 2fr 1.15fr .85fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: end; /* alt står på linje lige over "inwema" */
}
.foot-mark { width: clamp(220px, 28vw, 460px); height: auto; display: block; margin-bottom: -.4%; }
.foot-nav {
  display: grid;
  gap: .35em;
  justify-items: start;
  font-size: clamp(24px, 2.4vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.foot-info { display: grid; gap: 1.2em; align-content: end; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.5; padding-bottom: .2em; }
.foot-word { display: block; width: 100%; height: auto; margin-top: clamp(28px, 4vw, 64px); }

/* tablet og mobil: båndene til venstre lige over "inwema", al tekst i højre kolonne */
@media (max-width: 900px) {
  .foot-top { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .foot-mark { grid-column: 1; grid-row: 1 / span 2; align-self: end; width: 100%; max-width: 380px; }
  /* teksten står op mod højre kant */
  .foot-nav { grid-column: 2; grid-row: 1; justify-items: end; text-align: right; }
  .foot-info { grid-column: 2; grid-row: 2; text-align: right; }
  .foot-word { margin-top: 32px; }
}
@media (max-width: 560px) {
  .foot-top { column-gap: 20px; row-gap: 22px; }
  .foot-nav { font-size: clamp(20px, 6vw, 26px); }
  .foot-info { font-size: 14px; gap: .9em; }
}

/* ---------- Intro: skjul indtil JS har sat startpositionerne ---------- */
@media (prefers-reduced-motion: no-preference) {
  .is-intro .hero-title,
  .is-intro .site-header,
  .is-intro .hero-services {
    visibility: hidden;
    animation: intro-failsafe 0s 4s forwards; /* vis alligevel, hvis JS fejler */
  }
}
@keyframes intro-failsafe { to { visibility: visible; } }

/* ---------- Responsivt ---------- */
@media (max-width: 760px) {
  .lang { display: none; }
  .menu-wide .lang { display: inline; animation: lang-in .5s ease .25s both; } /* vises kun i menuen på mobil */
  .hero-title { font-size: clamp(36px, 11.8vw, 72px); }
  .hero-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
  }
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(40px, 6vw, 120px);
  margin-top: clamp(48px, 7vw, 104px);
  align-items: start;
}
.contact-direct { display: grid; gap: clamp(28px, 3vw, 44px); }
.contact-key { margin: 0 0 8px; color: var(--muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.contact-big { color: var(--ice); font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -0.02em; transition: opacity .3s ease; }
.contact-big:hover { opacity: .65; }
.contact-text { margin: 0; color: var(--text); font-size: clamp(16px, 1.3vw, 20px); line-height: 1.5; }

.contact-form { display: grid; gap: clamp(18px, 1.8vw, 26px); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 1.8vw, 26px); }
.field { display: grid; gap: 8px; }
.field-label { color: var(--muted); font-size: 14px; }
.field-opt { color: var(--muted-2); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg-raised);
  color: var(--ice);
  font: inherit;
  font-size: 16px; /* undgår zoom på iPhone */
  transition: border-color .3s ease;
}
.field textarea { resize: vertical; min-height: 9em; line-height: 1.5; }
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cfe6f2' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ice); }
.contact-form.is-error .field :invalid { border-color: var(--error); }
.contact-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.contact-note a { color: var(--ice); border-bottom: 1px solid var(--line); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.contact-send {
  padding: 16px 28px;
  border: 0;
  background: var(--ice);
  color: var(--bg);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .3s ease;
}
.contact-send:hover { opacity: .85; }
.contact-send:disabled { opacity: .55; cursor: default; }
.contact-send:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.contact-status { margin: 0; color: var(--ice); font-size: 15px; }
.contact-form.is-error .contact-status { color: var(--error); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-send { width: 100%; }
}

/* ---------- Cookiebanner (js/consent.js) ---------- */
.consent {
  position: fixed;
  left: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 200;
  display: grid;
  gap: 12px;
  width: min(420px, calc(100vw - 24px));
  padding: clamp(20px, 2vw, 26px);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--ice);
  box-shadow: 0 18px 50px var(--shadow);
}
.consent[hidden] { display: none; }
.consent-title { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.consent-body { margin: 0; color: var(--text); font-size: 14px; line-height: 1.55; }
.consent-policy { justify-self: start; color: var(--ice); font-size: 14px; border-bottom: 1px solid var(--line); }
.consent-policy:hover { border-color: var(--ice); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.consent-btn {
  padding: 12px 14px;
  border: 1px solid var(--ice);
  background: transparent;
  color: var(--ice);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .3s ease;
}
.consent-btn--accept { background: var(--ice); color: var(--bg); }
.consent-btn:hover { opacity: .85; }
.consent-btn:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

/* ---------- Indsigtskort: billedet glider op ved hover i stedet for den isblå flade ---------- */
.insC-card .ins-img {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
  overflow: hidden;
  background: var(--bg-raised);
  clip-path: inset(100% 0 0 0);
  transition: clip-path var(--slow, 1.1s) var(--ease-soft, cubic-bezier(.22, 1, .36, 1));
}
.insC-card .ins-img img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(.42); /* jævn dæmpning, så teksten kan læses */ }
.insC-card.has-img::before { display: none; }
@media (hover: hover) {
  .insC-card.has-img:hover .ins-img { clip-path: inset(0 0 0 0); }
  .insC-card.has-img:hover .ins-head, .insC-card.has-img:hover .ins-excerpt { color: var(--ice); }
  .insC-card.has-img:hover .ins-tag { background: rgba(var(--bg-rgb), .6); color: var(--ice); }
  .insC-card.has-img:hover .arrow-box { background: var(--ice); color: var(--bg); }
}
@media (hover: none) { .insC-card .ins-img { display: none; } } /* telefon: ingen hover, intet billede */
@media (prefers-reduced-motion: reduce) { .insC-card .ins-img { transition: none; } }

/* Loaderens stil står direkte i siderne (tools/build_pages.py), så den kan vises, før denne fil er hentet. */

/* ---------- Lys tilstand ---------- */
/* knappen i headeren: sol i mørk tilstand (skift til lys), måne i lys tilstand (skift til mørk) */
.theme-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 -8px; /* ikonet flugter med teksten ved siden af; selve knappen er stor nok til en finger */
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted-2);
  cursor: pointer;
  transition: color .3s;
}
.theme-btn:hover { color: var(--ice); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.theme-btn .ico-moon, :root[data-theme="light"] .theme-btn .ico-sun { display: none; }
:root[data-theme="light"] .theme-btn .ico-moon { display: block; }
.menu-wide .theme-btn { color: rgba(var(--bg-rgb), .55); }
.menu-wide .theme-btn:hover { color: var(--bg); }
.lang { white-space: nowrap; }
/* telefon: med åben menu er der kun plads til sprog og "Luk" i toppen */
@media (max-width: 760px) { .menu-wide .theme-btn { display: none; } }

/* logoets mærke: de lyse bånd bliver mørke på lys baggrund (samme farver som logoet i menuen) */
:root[data-theme="light"] .brand [id$="Ribbon"] stop:nth-child(1) { stop-color: #37506e; }
:root[data-theme="light"] .brand [id$="Ribbon"] stop:nth-child(2) { stop-color: #2a3f5c; }
:root[data-theme="light"] .brand [id$="Ribbon"] stop:nth-child(3) { stop-color: #1d2f48; }
:root[data-theme="light"] .brand [id$="Ribbon"] stop:nth-child(4) { stop-color: #0e1a2b; }
:root[data-theme="light"] .brand [id$="leftGlow"] stop { stop-color: #4a6688; }
:root[data-theme="light"] .brand [id$="centerGlow"] stop { stop-color: #3d5778; }
:root[data-theme="light"] .brand [id$="topSheen"] stop:nth-child(1) { stop-color: #4a6688; }
:root[data-theme="light"] .brand [id$="topSheen"] stop:nth-child(2) { stop-color: #6b84a3; }
:root[data-theme="light"] .brand [id$="topSheen"] stop:nth-child(3) { stop-color: #0a1320; }
/* logoer som billedfiler: menuens (navy i lys tilstand) og footerens vendes – lyshed byttes, farvetonen bevares */
:root[data-theme="light"] :is(.menu-logo img, .foot-mark, .foot-word) { filter: invert(1) hue-rotate(180deg); }
/* skiftet mellem lys og mørk toner roligt over */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; animation-timing-function: ease; }
