/* Ingenieurbüro Dahl – site styles
   Structure: tokens · fonts · base · layout · components · pages · motion */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --brand: #008800;            /* logo green */
  --brand-600: #007400;
  --brand-700: #005f00;
  --brand-glow: #3fbf4a;       /* green on dark backgrounds */
  --brand-300: #7fd387;
  --brand-100: #d8eed8;
  --brand-50: #eef7ee;

  --ink-950: #061a20;
  --ink-900: #0b2229;
  --ink-800: #12303a;
  --ink-700: #1d4350;
  --text: #24363e;
  --muted: #5a6c74;
  --subtle: #8b9ba2;
  --line: #e2e9e7;
  --line-strong: #cfdad7;
  --bg: #ffffff;
  --bg-soft: #f3f7f5;

  --sky: #75a3c5;              /* secondary blue of the old site */
  --sky-50: #edf4f9;
  --sky-200: #cfe0ed;
  --sky-700: #2f6f9c;
  --amber-50: #fff7e6;
  --amber-200: #f4dcab;
  --amber-700: #b06f00;

  /* Energy efficiency scale A+ … H, used as a recurring accent */
  --scale: linear-gradient(90deg, #00843d 0%, #3aa935 17%, #9ccb3b 33%, #f2dc1f 50%, #f7a823 66%, #ed6a26 82%, #d8262e 100%);

  --font-sans: "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Barlow Semi Condensed", "Barlow", ui-sans-serif, system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgb(6 26 32 / .06), 0 2px 6px rgb(6 26 32 / .05);
  --shadow-md: 0 2px 6px rgb(6 26 32 / .06), 0 12px 28px -8px rgb(6 26 32 / .14);
  --shadow-lg: 0 4px 10px rgb(6 26 32 / .05), 0 28px 60px -20px rgb(6 26 32 / .28);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

@media (min-width: 64em) {
  :root { --header-h: 84px; }
}

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-semi-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-semi-condensed-700.woff2") format("woff2"); }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}

body {
  margin: 0;
  font: 400 1.0625rem/1.7 var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
p { margin: 0 0 1rem; }
h1, h2, h3 {
  margin: 0;
  overflow-wrap: break-word;
}
/* Long German compounds ("Eigenstromerzeugungsanlagen") need hyphenation on phones. */
@media (max-width: 47.99em) {
  h1, h2, h3 { hyphens: auto; hyphenate-limit-chars: 10 4 4; }
}
address { font-style: normal; }
sub { position: relative; bottom: -.22em; font-size: .68em; line-height: 0; vertical-align: baseline; }
strong { font-weight: 600; }
[hidden] { display: none !important; }
::selection { background: rgb(0 136 0 / .18); }

:focus-visible {
  outline: 3px solid var(--brand-300);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: .75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2 * var(--gutter), 1200px);
  margin-inline: auto;
}
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(4.5rem, 3rem + 6vw, 8rem); }
.section--soft { background: var(--bg-soft); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.section-title {
  font: 700 clamp(2.1rem, 1.4rem + 2.5vw, 3.25rem)/1.06 var(--font-display);
  letter-spacing: -.015em;
  color: var(--ink-900);
  text-wrap: balance;
}
.section-lead {
  margin: 1rem 0 0;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .9rem;
  font: 600 .8rem/1.2 var(--font-sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 3px;
  border-radius: 3px;
  background: var(--scale);
}
.eyebrow:has(.icon)::before { display: none; }
.eyebrow .icon { width: 1.2rem; height: 1.2rem; }
.eyebrow--light { color: var(--brand-glow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .9rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.1 var(--font-sans);
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease),
    box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .25s var(--ease); }
.btn:hover .icon--arrow-right { transform: translateX(3px); }
.btn--sm { padding: .65rem 1.1rem; font-size: .92rem; }
.btn--lg { padding: 1.05rem 1.7rem; font-size: 1.05rem; }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgb(0 136 0 / .8);
}
.btn--primary:hover {
  background: var(--brand-600);
  box-shadow: 0 14px 30px -12px rgb(0 136 0 / .9);
  transform: translateY(-1px);
}
.btn--ghost {
  color: #fff;
  border-color: rgb(255 255 255 / .35);
  background: rgb(255 255 255 / .06);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .6); }
.btn--outline {
  color: var(--ink-900);
  border-color: var(--line-strong);
  background: #fff;
}
.btn--outline:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--ink-900);
  background: rgb(255 255 255 / .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.6) blur(14px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  height: var(--header-h);
}

.brand { display: grid; margin-right: auto; }
.brand__logo { grid-area: 1 / 1; width: clamp(176px, 17vw, 218px); height: auto; }
.brand__logo--light { display: none; }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  position: relative;
  display: block;
  padding: .55rem .95rem;
  border-radius: 999px;
  color: inherit;
  font-weight: 500;
  transition: background-color .2s;
}
.main-nav a:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: .25rem;
  width: 1.25rem;
  height: 2px;
  margin-left: -.625rem;
  border-radius: 2px;
  background: var(--brand-glow);
}

.site-header__cta { display: none; }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.nav-toggle .icon { width: 1.35rem; height: 1.35rem; }

@media (min-width: 40em) {
  .site-header__cta { display: inline-flex; }
}
@media (min-width: 64em) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .site-header__cta { margin-left: .75rem; }
}

/* Transparent header over the dark page top that turns solid while scrolling.
   Pure CSS (scroll-driven animations); other browsers keep the solid header. */
@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-solid linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 140px;
  }
  .brand__logo--light { display: block; }
  .brand__logo--light, .brand__logo--color {
    animation: logo-fade linear both;
    animation-timeline: scroll(root block);
    animation-range: 30px 140px;
  }
  .brand__logo--light { animation-direction: reverse; }
}
@keyframes header-solid {
  from {
    color: #fff;
    background-color: rgb(255 255 255 / 0);
    border-bottom-color: rgb(255 255 255 / 0);
    box-shadow: none;
    backdrop-filter: saturate(1) blur(0);
  }
  to {
    color: var(--ink-900);
    background-color: rgb(255 255 255 / .94);
    border-bottom-color: var(--line);
    box-shadow: 0 12px 30px -20px rgb(6 26 32 / .45);
    backdrop-filter: saturate(1.6) blur(14px);
  }
}
@keyframes logo-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Mobile menu (Popover API, works without JavaScript) ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 1rem var(--gutter) 2rem;
  border: 0;
  overflow-y: auto;
  color: #fff;
  background:
    radial-gradient(70% 50% at 100% 0%, rgb(0 136 0 / .28), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgb(117 163 197 / .18), transparent 70%),
    var(--ink-950);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), overlay .3s allow-discrete, display .3s allow-discrete;
}
.mobile-nav:popover-open {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: none;
}
@starting-style {
  .mobile-nav:popover-open { opacity: 0; transform: translateY(-12px); }
}
html:has(.mobile-nav:popover-open) { overflow: hidden; }

.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--header-h) - 1rem);
}
.mobile-nav__top img { width: 184px; height: auto; }
.mobile-nav__close {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgb(255 255 255 / .25);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.mobile-nav__close .icon { width: 1.35rem; height: 1.35rem; }
.mobile-nav__list { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.mobile-nav__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 0;
  border-bottom: 1px solid rgb(255 255 255 / .1);
  color: #fff;
  font: 600 clamp(1.6rem, 1.2rem + 2vw, 2.1rem)/1.2 var(--font-display);
}
.mobile-nav__list a[aria-current="page"] { color: var(--brand-glow); }
.mobile-nav__contact { display: grid; gap: .6rem; margin-top: auto; padding-top: 2rem; }
.mobile-nav__contact a { display: inline-flex; align-items: center; gap: .75rem; color: #fff; font-weight: 500; }
.mobile-nav__contact .icon { color: var(--brand-glow); }
.mobile-nav__legal { display: flex; gap: 1.5rem; margin: 1.25rem 0 0; font-size: .9rem; }
.mobile-nav__legal a { color: rgb(255 255 255 / .6); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(620px, 94svh, 900px);
  padding-block: calc(var(--header-h) + 3rem) clamp(7.5rem, 13vw, 11rem);
  overflow: hidden;
  color: #fff;
  background: var(--ink-900);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 70% at 8% 92%, rgb(0 136 0 / .32), transparent 70%),
    linear-gradient(0deg, rgb(6 26 32 / .6) 0%, transparent 38%),
    linear-gradient(100deg, rgb(6 26 32 / .95) 0%, rgb(6 26 32 / .84) 32%, rgb(6 26 32 / .48) 60%, rgb(6 26 32 / .12) 100%);
}
.hero__inner > * { max-width: 46rem; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin: 0;
  padding: .45rem 1rem .45rem .8rem;
  border: 1px solid rgb(255 255 255 / .2);
  border-radius: 999px;
  background: rgb(255 255 255 / .08);
  backdrop-filter: blur(8px);
  font-size: .92rem;
  font-weight: 500;
}
.hero__pulse {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--brand-glow);
  box-shadow: 0 0 0 0 rgb(63 191 74 / .7);
}
.hero__title {
  margin-top: 1.5rem;
  font: 700 clamp(2.7rem, 1.1rem + 5.4vw, 5.2rem)/1 var(--font-display);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.hero__accent {
  display: block;
  padding-bottom: .08em;
  background: linear-gradient(90deg, #8be07c 0%, var(--brand-glow) 45%, #c4ea5c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  margin: 1.5rem 0 0;
  font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem);
  line-height: 1.5;
  color: rgb(255 255 255 / .84);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.5rem; }

.scale-bar {
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: var(--scale);
}

/* Sector cards overlapping the hero */
.sectors { position: relative; z-index: 2; margin-top: -4.5rem; }
.sectors__grid { display: grid; gap: 1rem; }
.sector-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.35rem 1.4rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  color: inherit;
  box-shadow: var(--shadow-lg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.sector-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.sector-card:hover { transform: translateY(-4px); box-shadow: 0 6px 14px rgb(6 26 32 / .06), 0 36px 70px -24px rgb(6 26 32 / .35); }
.sector-card:hover::after { transform: scaleX(1); }
.sector-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 16px;
  background: var(--brand-50);
  color: var(--brand);
}
.sector-card__icon .icon { width: 1.7rem; height: 1.7rem; }
.sector-card__title { display: block; font: 700 1.35rem/1.2 var(--font-display); color: var(--ink-900); }
.sector-card__text { display: block; margin-top: .15rem; font-size: .96rem; line-height: 1.45; color: var(--muted); }
.sector-card__arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-700);
  transition: background-color .3s, border-color .3s, color .3s;
}
.sector-card:hover .sector-card__arrow { background: var(--brand); border-color: var(--brand); color: #fff; }

@media (min-width: 64em) {
  .sectors { margin-top: -5.5rem; }
  .sectors__grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

/* ---------- Reasons ---------- */
.reasons__grid { display: grid; gap: 3.5rem; align-items: center; }
.reasons__media { position: relative; margin-right: 1rem; }
.reasons__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 40% 50%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.reasons__badge {
  position: absolute;
  right: -1rem;
  bottom: -1.5rem;
  margin: 0;
  padding: 1rem 1.35rem;
  border-radius: var(--radius);
  background: var(--ink-900);
  color: #fff;
  font: 600 1.15rem/1.25 var(--font-display);
  box-shadow: var(--shadow-lg);
}
.reasons__badge strong { display: block; color: var(--brand-glow); font-weight: 700; }
.reasons__list { display: grid; gap: .75rem; margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: reason; }
.reason {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: .95rem 1.25rem .95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  counter-increment: reason;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.reason:hover { border-color: var(--brand-100); box-shadow: var(--shadow-md); transform: translateX(4px); }
.reason::after {
  content: counter(reason, decimal-leading-zero);
  margin-left: auto;
  font: 600 .85rem/1 var(--font-sans);
  letter-spacing: .08em;
  color: var(--subtle);
}
.reason__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand) 0%, #23a234 100%);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgb(0 136 0 / .8);
}
.reason__icon .icon { width: 1.5rem; height: 1.5rem; }
.reason__title { font: 600 clamp(1.2rem, 1.1rem + .4vw, 1.4rem)/1.2 var(--font-display); color: var(--ink-900); }
.reason__title em { font-style: normal; color: var(--brand); }

@media (min-width: 64em) {
  .reasons__grid { grid-template-columns: 1.05fr 1fr; gap: 5.5rem; }
}

/* ---------- Feature rows ---------- */
.feature { display: grid; gap: 2.5rem; align-items: center; }
.feature + .feature { margin-top: clamp(4.5rem, 9vw, 7.5rem); }
.feature__title {
  margin: 0 0 1.25rem;
  font: 700 clamp(2rem, 1.4rem + 2vw, 2.75rem)/1.08 var(--font-display);
  letter-spacing: -.01em;
  color: var(--ink-900);
}
.feature__title--statement {
  font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.25rem);
  line-height: 1.18;
  text-wrap: balance;
}
.feature__highlight {
  margin: 1.5rem 0 2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--brand);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink-900);
}

.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.mosaic img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.mosaic .mosaic__main {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (min-width: 64em) {
  .feature { grid-template-columns: 1.1fr 1fr; gap: 5rem; }
  .feature--reverse .feature__media { order: 2; }
}

/* ---------- Call to action ---------- */
.cta {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4.5rem, 3rem + 6vw, 7.5rem);
  overflow: hidden;
  color: #fff;
  background: var(--ink-900);
}
.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(45% 110% at 100% 100%, rgb(0 136 0 / .38), transparent 70%),
    linear-gradient(90deg, rgb(6 26 32 / .97) 0%, rgb(6 26 32 / .9) 45%, rgb(6 26 32 / .66) 100%);
}
.cta__inner { display: grid; gap: 2.5rem; align-items: center; }
.cta__title {
  font: 700 clamp(1.9rem, 1.3rem + 2.2vw, 3rem)/1.1 var(--font-display);
  letter-spacing: -.01em;
  text-wrap: balance;
}
.cta__actions { display: grid; gap: .8rem; justify-items: start; }
.cta__actions .btn { margin-bottom: .4rem; }
.cta__link {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-width: min(100%, 300px);
  padding: .7rem 1.1rem .7rem .7rem;
  border: 1px solid rgb(255 255 255 / .12);
  border-radius: var(--radius);
  background: rgb(255 255 255 / .06);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background-color .25s, border-color .25s;
}
.cta__link:hover { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .24); }
.cta__link .icon {
  width: 2.6rem;
  height: 2.6rem;
  padding: .6rem;
  border-radius: 10px;
  background: rgb(63 191 74 / .16);
  color: var(--brand-glow);
}
.cta__link small {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgb(255 255 255 / .58);
}

@media (min-width: 64em) {
  .cta__inner { grid-template-columns: 1.35fr 1fr; gap: 4rem; }
  .cta__actions { justify-items: stretch; }
  .cta__actions .btn { justify-self: start; }
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)) clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  color: #fff;
  background: var(--ink-900);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(6 26 32 / .62) 0%, rgb(6 26 32 / 0) 38%),
    linear-gradient(0deg, rgb(6 26 32 / .55) 0%, transparent 55%),
    linear-gradient(90deg, rgb(6 26 32 / .92) 0%, rgb(6 26 32 / .68) 50%, rgb(6 26 32 / .35) 100%);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--scale);
}
.page-hero--plain {
  background:
    radial-gradient(60% 120% at 88% 0%, rgb(0 136 0 / .3), transparent 65%),
    radial-gradient(50% 100% at 0% 100%, rgb(117 163 197 / .22), transparent 65%),
    var(--ink-900);
}
.page-hero--plain::before {
  background-image:
    linear-gradient(rgb(255 255 255 / .06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .06) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 95%);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  font-size: .92rem;
  color: rgb(255 255 255 / .65);
}
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; }
.page-hero__title {
  max-width: 18ch;
  margin-top: 1rem;
  font: 700 clamp(2.5rem, 1.4rem + 4.2vw, 4.5rem)/1.02 var(--font-display);
  letter-spacing: -.015em;
  text-wrap: balance;
}
.page-hero__lead {
  max-width: 40rem;
  margin: 1.1rem 0 0;
  font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem);
  line-height: 1.45;
  color: rgb(255 255 255 / .86);
}

/* ---------- Service cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-grid--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin-top: 2rem; }
.service-card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  height: 100%;
  padding: 1.6rem 1.6rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  color: inherit;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
a.service-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--brand);
  transition: background-color .3s, color .3s;
}
.service-card__icon .icon { width: 1.6rem; height: 1.6rem; }
a.service-card:hover .service-card__icon { background: var(--brand); color: #fff; }
.service-card__title { font: 700 1.35rem/1.2 var(--font-display); color: var(--ink-900); }
.service-card__text { font-size: .98rem; line-height: 1.5; color: var(--muted); }
.service-card__more {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--brand);
}
.service-card__more .icon { width: 1.05rem; height: 1.05rem; transition: transform .25s var(--ease); }
a.service-card:hover .service-card__more .icon { transform: translateY(3px); }
.service-grid--compact .service-card { flex-direction: row; align-items: center; gap: 1rem; padding: 1rem 1.2rem; }
.service-grid--compact .service-card__icon { margin: 0; width: 2.75rem; height: 2.75rem; }
.service-grid--compact .service-card__title { font-size: 1.2rem; }

/* ---------- Service detail sections (Privat) ---------- */
.service { --duo-border: #fff; padding-block: clamp(4rem, 3rem + 4vw, 6.5rem); }
.service--alt { --duo-border: var(--bg-soft); background: var(--bg-soft); }
.service__grid { display: grid; gap: 2.75rem; }
.service__title {
  margin-bottom: 1.25rem;
  font: 700 clamp(2rem, 1.4rem + 2vw, 2.75rem)/1.08 var(--font-display);
  letter-spacing: -.01em;
  color: var(--ink-900);
}
.service__intro { font-size: 1.15rem; color: var(--ink-800); }
.service__highlight {
  margin: 1.5rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--brand);
  font-weight: 600;
  color: var(--ink-900);
}

.duo { display: grid; grid-template-columns: repeat(12, 1fr); max-width: 470px; }
.duo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.duo__a { grid-area: 1 / 1 / 2 / 10; }
.duo__b {
  grid-area: 1 / 5 / 2 / 13;
  margin-top: 46%;
  border: 6px solid var(--duo-border);
  border-radius: calc(var(--radius) + 6px) !important;
}

.topic { margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.topic__title {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
  font: 700 1.5rem/1.2 var(--font-display);
  color: var(--ink-900);
}
.topic__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand);
}
.topic__icon .icon { width: 1.35rem; height: 1.35rem; }

.checklist { display: grid; gap: .6rem; margin: 1.25rem 0 1.5rem; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 2.1rem; }
.checklist li::before {
  content: "";
  position: absolute;
  top: .2em;
  left: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008800' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / .85rem no-repeat;
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--sky-200);
  border-radius: var(--radius);
  background: var(--sky-50);
  color: var(--ink-800);
}
.callout p { margin: 0; }
.callout__icon { flex: none; color: var(--sky-700); }
.callout__icon .icon { width: 1.45rem; height: 1.45rem; }
.callout--important { border-color: var(--amber-200); background: var(--amber-50); }
.callout--important .callout__icon { color: var(--amber-700); }

.compare { display: grid; gap: 1rem; margin: 1.5rem 0; }
.compare__item {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  background: #fff;
}
.compare__item + .compare__item { border-top-color: var(--sky); }
.compare__title { margin-bottom: .5rem; font: 700 1.25rem/1.2 var(--font-display); color: var(--ink-900); }
.compare__item p { margin: 0; font-size: .98rem; }

.efficiency {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 3px;
  max-width: 470px;
  margin-top: 2.5rem;
}
.efficiency span {
  display: grid;
  place-items: center;
  height: 2.1rem;
  border-radius: 5px;
  font: 700 .9rem/1 var(--font-display);
  color: #fff;
}
.efficiency span:nth-child(1) { background: #00843d; }
.efficiency span:nth-child(2) { background: #2ea836; }
.efficiency span:nth-child(3) { background: #8cc63f; }
.efficiency span:nth-child(4) { background: #c9d92b; color: var(--ink-900); }
.efficiency span:nth-child(5) { background: #f9e11e; color: var(--ink-900); }
.efficiency span:nth-child(6) { background: #fbbf24; color: var(--ink-900); }
.efficiency span:nth-child(7) { background: #f7941d; }
.efficiency span:nth-child(8) { background: #ec5a2b; }
.efficiency span:nth-child(9) { background: #c8202f; }

.terms { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px dashed var(--line-strong); }
.terms__label {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .85rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.terms__label .icon { width: 1.15rem; height: 1.15rem; color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: .42rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-800);
  font-size: .92rem;
  font-weight: 500;
  transition: border-color .2s, color .2s, background-color .2s;
}
.chip:hover { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }

@media (min-width: 40em) {
  .compare { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64em) {
  .service__grid { grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; }
  .service__media { position: sticky; top: calc(var(--header-h) + 2.5rem); }
  .service--alt .service__grid { grid-template-columns: 7fr 5fr; }
  .service--alt .service__media { order: 2; }
  .service--alt .duo { margin-left: auto; }
  .service--alt .efficiency { margin-left: auto; }
}

/* ---------- Glossary ---------- */
.glossary__layout { display: grid; gap: 2.5rem; }
.glossary__sticky { display: flex; flex-direction: column; gap: 1rem; }
.glossary__search { position: relative; }
.glossary__search .icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}
.glossary__search input {
  width: 100%;
  padding: .85rem 1rem .85rem 2.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-900);
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.glossary__search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgb(0 136 0 / .14); }
.glossary__count { margin: 0; font-size: .9rem; color: var(--muted); }
.glossary__count:empty { display: none; }
.glossary__index {
  display: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  border-left: 2px solid var(--line);
}
.glossary__index a {
  display: block;
  margin-left: -2px;
  padding: .32rem 0 .32rem 1rem;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.35;
  transition: color .2s, border-color .2s;
}
.glossary__index a:hover { color: var(--ink-900); border-left-color: var(--line-strong); }
.glossary__index a.is-active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.glossary__group {
  margin-bottom: 1.5rem;
  font: 700 clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem)/1.1 var(--font-display);
  color: var(--ink-900);
}
.term {
  padding: 1.5rem 1.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color .4s, box-shadow .4s;
}
.term + .term { margin-top: 1rem; }
.term:target { border-color: var(--brand); box-shadow: 0 0 0 4px rgb(0 136 0 / .12); }
.term__title { margin-bottom: .6rem; font: 700 1.45rem/1.2 var(--font-display); color: var(--ink-900); }
.term p { margin: .6rem 0 0; }
.term__title + p { margin-top: 0; }
.term .checklist { margin: 1rem 0; }
.term__parts { margin: 0; }
.term__parts dt { margin-top: 1rem; font-weight: 600; color: var(--ink-900); }
.term__parts dt:first-child { margin-top: 0; }
.term__parts dd { margin: .2rem 0 0; }
.glossary__empty {
  padding: 2rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--muted);
}

@media (min-width: 64em) {
  .glossary__layout { grid-template-columns: 280px 1fr; gap: 4rem; align-items: start; }
  .glossary__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
  .glossary__sticky { max-height: calc(100vh - var(--header-h) - 3rem); }
  .glossary__index { display: block; min-height: 0; }
}

/* ---------- Contact ---------- */
.contact { display: grid; gap: 3rem; align-items: center; }
.contact-list { display: grid; gap: .75rem; margin: 2rem 0; padding: 0; list-style: none; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
a.contact-item:hover { border-color: var(--brand-100); box-shadow: var(--shadow-md); transform: translateX(3px); }
.contact-item__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand);
}
.contact-item__icon .icon { width: 1.45rem; height: 1.45rem; }
.contact-item__label {
  display: block;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-item__value { display: block; font: 600 1.25rem/1.3 var(--font-display); color: var(--ink-900); }
.contact__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.contact__map {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.contact__map img { width: 100%; }
.contact__map figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  padding: 1rem 1.25rem;
  font-size: .95rem;
}
.contact__map figcaption span { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); }
.contact__map figcaption span .icon { color: var(--brand); }
.contact__map figcaption a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.contact__map figcaption a .icon { width: 1rem; height: 1rem; }

@media (min-width: 64em) {
  .contact { grid-template-columns: 1fr 1.05fr; gap: 5rem; }
}

/* ---------- Legal pages ---------- */
.legal-card {
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.legal-card__head { display: flex; align-items: center; gap: 1.25rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.legal-card__head img { width: 44px; }
.legal-card__name { font: 700 clamp(1.7rem, 1.3rem + 1.5vw, 2.3rem)/1.1 var(--font-display); color: var(--ink-900); }
.legal-card__role { margin: .3rem 0 0; font-weight: 600; color: var(--brand); }
.legal-card__grid { display: grid; gap: 1.75rem; padding-top: 1.75rem; }
.legal-card__grid p { margin: 0; line-height: 1.8; }
.legal-card__label {
  margin-bottom: .5rem;
  font: 600 .78rem/1.2 var(--font-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 40em) {
  .legal-card__grid { grid-template-columns: 1fr 1fr; }
}

.prose h2 {
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font: 700 clamp(1.6rem, 1.3rem + 1vw, 2rem)/1.15 var(--font-display);
  color: var(--ink-900);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin: 2rem 0 .5rem; font: 700 1.25rem/1.25 var(--font-display); color: var(--ink-900); }
.prose ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--brand); }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose__caps { font-size: .9rem; }
.prose__address {
  margin-bottom: 1rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  background: var(--bg-soft);
  line-height: 1.75;
}
.prose__source { margin-top: 3rem; font-size: .9rem; color: var(--muted); }

.not-found { text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding-top: clamp(3.5rem, 6vw, 5rem);
  color: rgb(255 255 255 / .72);
  background: var(--ink-950);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--scale);
}
.site-footer a { color: rgb(255 255 255 / .74); transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; gap: 2.5rem; }
.site-footer__logo { display: inline-block; }
.site-footer__logo img { width: 218px; }
.site-footer__brand p { max-width: 24rem; margin: 1.25rem 0 1.5rem; }
.site-footer__title {
  margin-bottom: 1.1rem;
  font: 600 .78rem/1.2 var(--font-sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer ul { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.site-footer address { margin-bottom: 1rem; line-height: 1.75; }
.site-footer__contact a { display: inline-flex; align-items: center; gap: .6rem; }
.site-footer__contact .icon { color: var(--brand-glow); }
.seal {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.1rem .7rem .8rem;
  border: 1px solid rgb(255 255 255 / .14);
  border-radius: var(--radius);
  line-height: 1.3;
}
.site-footer .seal { color: #fff; }
.seal:hover { background: rgb(255 255 255 / .05); }
.seal .icon { width: 2rem; height: 2rem; color: var(--brand-glow); }
.seal strong { display: block; }
.seal small { display: block; font-size: .8rem; color: rgb(255 255 255 / .6); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / .1);
  font-size: .9rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; gap: 1.5rem; }

@media (min-width: 48em) {
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1.2fr; gap: 3rem; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .hero__media img { animation: hero-zoom 24s cubic-bezier(.2, .6, .3, 1) both; transform-origin: 70% 40%; }
  .hero__pulse { animation: pulse 2.4s ease-out infinite; }
  .hero__inner > * { animation: rise .9s var(--ease) both; }
  .hero__inner > :nth-child(2) { animation-delay: .08s; }
  .hero__inner > :nth-child(3) { animation-delay: .16s; }
  .hero__inner > :nth-child(4) { animation-delay: .24s; }
  .page-hero__inner > * { animation: rise .8s var(--ease) both; }
  .page-hero__inner > :nth-child(2) { animation-delay: .06s; }
  .page-hero__inner > :nth-child(3) { animation-delay: .12s; }

  /* site.js marks elements below the fold as pending and reveals them on scroll */
  .reveal-pending { opacity: 0; transform: translateY(28px); }
  .reveal-in { transition: opacity .9s var(--ease), transform .9s var(--ease); }

  .term:target { animation: highlight 1.8s ease-out; }
}

@keyframes hero-zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(63 191 74 / .7); }
  70%, 100% { box-shadow: 0 0 0 10px rgb(63 191 74 / 0); }
}
@keyframes highlight { from { background: var(--brand-50); } to { background: #fff; } }
