/* ==========================================================================
   AB Byg & Montage - main stylesheet
   Skin "A · Quiet Workbench" canonical tokens (Skins.jsx).
   Pixel-fidelity to /AB Byg _ Montage Design System/site/styles.css
   ========================================================================== */

/* ----- Reset & root ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ----- Skin A canonical tokens ----- */
:root,
:root[data-skin="a"] {
  --bg: #F6F4EF;
  --bg-2: #ECE8E0;
  --bg-3: #E2DDD0;
  --surface: #FFFFFF;
  --ink: #1A1815;
  --ink-2: #5A554F;
  --ink-3: #8A857F;
  --accent: #7A3318;
  --accent-2: #A8552A;
  --rule: rgba(26,24,21,0.13);
  --char: #1A1815;
  --char-soft: #2A2520;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --display-weight: 300;
  --display-italic-weight: 400;
  --display-tracking: -0.045em;
  --display-leading: 0.96;
  --eyebrow-tracking: 0.28em;
  --button-radius: 0px;
  --card-radius: 0px;
  --charred-panel-density: 36px;
}

/* ----- Body ----- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ----- Container ----- */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 56px;
}

/* ----- Eyebrow / number tag ----- */
.eyebrow {
  font-size: 11px;
  letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow .num {
  color: var(--ink);
  font-weight: 700;
}
.eyebrow.on-dark        { color: rgba(255,255,255,0.55); }
.eyebrow.on-dark .num   { color: var(--bg); }
.eyebrow.accent .num    { color: var(--accent); }

/* ----- Display headlines ----- */
h1.display, h2.display, h3.display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
  margin: 0;
  color: inherit;
}
h1.display em, h2.display em, h3.display em {
  font-style: italic;
  font-weight: var(--display-italic-weight);
  color: var(--accent);
}
h1.display.on-dark em, h2.display.on-dark em {
  color: var(--accent-2);
}
h1.display { font-size: clamp(40px, 5.5vw, 76px); }
h2.display { font-size: clamp(40px, 5vw, 64px); }
h3.display { font-size: clamp(26px, 2.6vw, 32px); }

/* Body prose */
.lead {
  margin: 32px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 580px;
}
.lead.tight  { max-width: 460px; font-size: 16px; }
.lead.on-dark { color: rgba(255,255,255,0.75); }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: var(--ink); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--button-radius);
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, color .12s ease;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--char);
  color: var(--bg);
}
.btn-primary:hover { background: var(--char-soft); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--bg); }
.btn-light {
  background: var(--bg);
  color: var(--ink);
}
.btn-light:hover { background: var(--surface); }
.btn-ghost-dark {
  background: transparent;
  color: var(--bg);
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost-dark:hover { background: var(--bg); color: var(--ink); }
.btn-link {
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 13px 4px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-link:hover { color: var(--accent); }

/* ----- Section spacing ----- */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--rule);
  position: relative;
}
.section:first-child,
.section.no-top { border-top: none; }
.section.tight { padding: 64px 0; }
.section.flush { padding: 0; border-top: none; }
.section.bg-surface { background: var(--surface); }
.section.bg-2       { background: var(--bg-2); }
.section.bg-3       { background: var(--bg-3); }
.section.bg-char    { background: var(--char); color: var(--bg); border-top: none; }
.section.bg-char .lead { color: rgba(255,255,255,0.75); }
.section.bg-char a { color: var(--bg); }

/* Tabular numbers for phone, stats, dates */
.tabular { font-variant-numeric: tabular-nums; }

/* Visually-hidden helper for screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ----- Charred panel - vertical plank texture (Shou Sugi Ban) ----- */
.charred-panel {
  background: var(--char);
  position: relative;
  overflow: hidden;
  color: var(--bg);
}
.charred-panel::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg,
    var(--char) 0px,
    var(--char) calc(var(--charred-panel-density) - 2px),
    var(--char-soft) calc(var(--charred-panel-density) - 2px),
    var(--char-soft) calc(var(--charred-panel-density) - 1px),
    var(--char) calc(var(--charred-panel-density) - 1px),
    var(--char) var(--charred-panel-density));
  opacity: 0.95;
  pointer-events: none;
}
.charred-panel::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(255,255,255,0.04), transparent 50%),
    radial-gradient(ellipse at 75% 80%, rgba(255,255,255,0.03), transparent 40%);
  pointer-events: none;
}
.charred-panel > * { position: relative; z-index: 1; }

/* ----- Cor-ten patina ----- */
.corten-panel {
  background: var(--accent);
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(168,85,42,0.7) 0%, transparent 30%),
    radial-gradient(circle at 75% 70%, rgba(37,33,24,0.4) 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(20,17,14,0.2) 0%, transparent 45%);
  color: var(--bg);
}
.corten-panel::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg,
    transparent 0px, transparent 3px,
    rgba(0,0,0,0.04) 3px, rgba(0,0,0,0.04) 4px);
  pointer-events: none;
}
.corten-panel > * { position: relative; z-index: 1; }

/* ----- Photo placeholder cards (used when no image set) ----- */
.photo-slot {
  background: var(--bg-3);
  position: relative;
  overflow: hidden;
}
.photo-slot::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.05), transparent 40%),
    radial-gradient(ellipse at 40% 30%, rgba(0,0,0,0.06), transparent 50%);
  pointer-events: none;
}
.photo-slot .ph-tag {
  position: absolute; bottom: 16px; left: 16px;
  background: var(--surface); color: var(--ink);
  padding: 8px 12px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  z-index: 2;
}
.photo-slot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Subtle 1px border overlay on all photo slots (project cards, gallery, works grid) */
.photo-slot::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid var(--rule);
  z-index: 1;
  pointer-events: none;
}

/* ----- Fig. caption tag (used over panels) ----- */
.fig-tag {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bg);
  font-weight: 700;
  opacity: 0.55;
}
.fig-tag.bright { opacity: 0.85; }
.material-tag {
  background: var(--bg);
  color: var(--ink);
  padding: 14px 18px;
  max-width: 240px;
}
.material-tag .label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 4px;
}
.material-tag .body {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
}

/* ============================================================
   HEADER - sticky top nav, Urbanorth-style restraint
   ============================================================ */
.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  font-weight: 500;
}
.site-header__nav a:hover { color: var(--accent); }
.site-header__nav .sep { color: var(--ink-3); }
.site-header__nav .lang { color: var(--ink-3); }
.site-header__nav .lang a { padding: 0 4px; }
.site-header__nav .lang .current { color: var(--ink); font-weight: 700; }
.site-header__nav .btn { padding: 6px 14px; font-size: 12px; }
.menu-toggle {
  display: none;
  background: none; border: none;
  padding: 6px;
  color: var(--ink);
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ----- Logo ----- */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.site-logo .amp {
  color: var(--accent);
  font-style: italic;
  font-weight: 700;
}
.site-logo svg { flex: 0 0 auto; }
.site-logo:hover,
.site-logo a:hover { color: var(--ink); text-decoration: none; }

/* ----- Optional announcement bar (widget area) ----- */
.announcement-bar {
  background: var(--char);
  color: var(--bg);
  padding: 8px 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.announcement-bar a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   HERO - Skin A "text-led, off-white, single sienna italic"
   ============================================================ */
.hero {
  padding-top: 96px;
  padding-bottom: 64px;
  border-top: none;
}
.hero__eyebrow { margin-bottom: 36px; }
.hero__headline { max-width: 1200px; }
.hero__lead { margin-top: 32px; }
.hero__cta {
  display: flex;
  gap: 18px;
  margin-top: 44px;
  align-items: center;
  flex-wrap: wrap;
}

/* ============================================================
   PAGE HEAD - used on all subpages (charred or surface variant)
   ============================================================ */
.page-head {
  padding: 96px 0 64px;
  border-top: none;
}
.page-head .eyebrow { margin-bottom: 28px; }
.page-head .display { max-width: 1100px; }
.page-head .lead { margin-top: 28px; max-width: 620px; }
.page-head.dark { background: var(--char); color: var(--bg); }
.page-head.dark .lead { color: rgba(255,255,255,0.75); }

/* ============================================================
   APPROACH - numbered service grid (Hvad vi laver)
   ============================================================ */
.approach__head .display { max-width: 900px; margin-bottom: 64px; }
.approach__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border-top: 1px solid var(--rule);
}
.approach__cell {
  padding: 32px 28px 32px 32px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.approach__cell .num {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}
.approach__cell h3 {
  font-family: var(--font-display);
  font-weight: var(--display-italic-weight);
  font-style: italic;
  font-size: 26px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.approach__cell p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 320px;
}

/* ============================================================
   WORKS - projects magazine grid (1.4fr feature + 2 stacked)
   ============================================================ */
.works__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
  gap: 32px;
  flex-wrap: wrap;
}
.works__head .display { max-width: 720px; }
.works__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}
/* Left column: feature card (top) + landscape 4th card (bottom) */
.works__col-primary {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
/* Feature card (top-left): anchors column height */
.works__feature .photo-slot { aspect-ratio: 4/3; }
/* 4th card (bottom-left): most horizontal — fixed 21:9 aspect ratio */
.works__card--lower {
  display: flex;
  flex-direction: column;
}
.works__col-primary .works__card--lower .photo-slot {
  aspect-ratio: 21/9;
}
/* Right column: row 2 fixed by 4:3 photo (taller), row 1 fills rest (shorter).
   This guarantees bottom-right title aligns with bottom-left title. */
.works__col-secondary {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 40px;
  height: 100%;
}
.works__col-secondary .project-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
/* Top-right: photo fills its row (shorter, landscape) */
.works__col-secondary .project-card:first-child .photo-slot {
  flex: 1;
  min-height: 80px;
  aspect-ratio: auto;
}
/* Bottom-right: fixed 4:3 anchors row 2 — taller than top-right,
   and chosen so its title aligns with the bottom-left title */
.works__col-secondary .project-card:last-child .photo-slot {
  flex: none;
  aspect-ratio: 4/3;
}

.project-meta {
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.project-meta .tag {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}
.project-meta h3 {
  font-family: var(--font-display);
  font-weight: var(--display-italic-weight);
  font-style: italic;
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.project-meta .meta {
  font-size: 12px;
  color: var(--ink-3);
  text-align: right;
  max-width: 180px;
}

/* Photo gradient placeholders - used when projects have no thumbnail yet */
.photo-slot.tone-wood::after  { content: ''; position: absolute; inset: 0; opacity: 0.85;
  background: linear-gradient(180deg, #B8B0A2 0%, #B8B0A2 35%, #6B5238 35%, #6B5238 60%, #2A2520 60%, #2A2520 100%); }
.photo-slot.tone-rust::after  { content: ''; position: absolute; inset: 0; opacity: 0.85;
  background: linear-gradient(135deg, #8E3E1E 0%, #5A2810 60%, #1A1816 100%); }
.photo-slot.tone-stone::after { content: ''; position: absolute; inset: 0; opacity: 0.85;
  background: linear-gradient(180deg, #DDD3BE 0%, #75706A 50%, #2A2520 100%); }
.photo-slot.tone-sky::after   { content: ''; position: absolute; inset: 0; opacity: 0.85;
  background: linear-gradient(180deg, #E2DDD0 0%, #B8B0A2 60%, #6B5238 100%); }

/* ============================================================
   REUSE - genbrug, two-column with stat tiles
   ============================================================ */
.reuse__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: flex-end;
}
.reuse__copy .lead { max-width: 520px; }
.reuse__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.reuse__stat {
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.reuse__stat .num {
  font-family: var(--font-display);
  font-weight: var(--display-italic-weight);
  font-style: italic;
  color: var(--accent);
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 12px;
}
.reuse__stat .label {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.4;
}

/* ============================================================
   SOLROOF - split panel: charred half + illustration half
   ============================================================ */
.solroof {
  padding: 0;
  border-top: none;
}
.solroof__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 70vh;
}
.solroof__copy {
  padding: 88px 56px;
  display: flex; flex-direction: column; justify-content: center;
}
.solroof__copy .eyebrow {
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 28px;
}
.solroof__copy .eyebrow .num { color: var(--bg); margin-right: 12px; }
.solroof__copy .display {
  color: var(--bg);
  font-size: clamp(44px, 6vw, 80px);
  max-width: 520px;
}
.solroof__copy .display em { color: var(--accent-2); }
.solroof__copy .lead {
  color: rgba(255,255,255,0.75);
  max-width: 440px;
  font-size: 16px;
  margin-top: 28px;
}
.solroof__copy .cta-row { margin-top: 36px; }
.solroof__visual { background: var(--bg-2); position: relative; overflow: hidden; }
.solroof__visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.solroof__visual .fig-caption {
  position: absolute; bottom: 24px; left: 24px;
  background: var(--bg); padding: 12px 16px; z-index: 2;
}
.solroof__visual .fig-caption .label {
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 4px;
}
.solroof__visual .fig-caption .body { font-size: 12px; line-height: 1.4; color: var(--ink); }

/* ============================================================
   ABOUT - Anders Bonde
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 80px;
  align-items: flex-start;
}
.about__quote {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  color: var(--ink);
  max-width: 720px;
}
.about__bio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.about__bio p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

/* ============================================================
   TRUSTPILOT - review block
   ============================================================ */
.trustpilot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: flex-start;
}
.trustpilot__rating {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.trustpilot__rating strong { color: var(--ink); font-weight: 700; }
.trustpilot__rating .meta { font-size: 14px; color: var(--ink-2); }
.trustpilot__link {
  margin-top: 20px;
  display: inline-block;
  font-size: 12px;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.trustpilot__card {
  background: var(--surface);
  padding: 32px;
  border: 1px solid var(--rule);
}
.trustpilot__card .quote {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 20px 0 24px;
  color: var(--ink);
}
.trustpilot__card .footer {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--rule); padding-top: 16px;
}
.trustpilot__card .author { font-size: 13px; font-weight: 700; }
.trustpilot__card .meta-author { font-size: 11px; color: var(--ink-3); }
.trustpilot__card .date { font-size: 11px; color: var(--ink-3); }
/* Senja "Read more" — it's a <button class="border-none"> with a <span> inside */
.trustpilot__senja-wrap button.border-none,
.trustpilot__senja-wrap button.border-none span {
  color: var(--accent) !important;
}

/* Senja widget wrapper — matches card proportions, height follows content */
.trustpilot__senja-wrap {
  border-radius: var(--radius, 4px);
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.trustpilot__senja-wrap .senja-embed {
  flex: 1;
  border-radius: var(--radius, 4px);
}
/* Review Collector */
.trustpilot__collector {
  display: flex;
  align-items: center;
  margin-left: -8px; /* compensate TP iframe internal left padding */
}
.trustpilot__collector .trustpilot-widget {
  width: auto !important;
  max-width: 260px;
}

/* Manual quote (right column) */
.trustpilot__quote {
  display: flex;
  align-items: center;
}
.tp-quote {
  margin: 0;
  padding: 0;
  border: none;
}
.tp-quote__text {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 20px;
}
.tp-quote__author {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.trustpilot__left {
  display: flex;
  flex-direction: column;
}
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 18px; height: 18px; }

/* ============================================================
   CONTACT - final CTA on charred bg
   ============================================================ */
.contact-cta {
  background: var(--char);
  color: var(--bg);
  border-top: none;
}
.contact-cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 64px;
  align-items: flex-end;
}
.contact-cta__head .display {
  color: var(--bg);
  font-size: clamp(48px, 6vw, 88px);
  max-width: 880px;
}
.contact-cta__head .display em { color: var(--accent-2); }
.contact-cta__head .lead {
  margin-top: 28px;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  font-size: 16px;
}
.contact-cta__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-card {
  padding: 20px 24px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--bg);
  transition: background .12s ease, border-color .12s ease;
}
.contact-card:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.35); }
.contact-card .label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 700;
  margin-bottom: 6px;
}
.contact-card .value { font-size: 15px; font-weight: 600; }
.contact-card .arrow { font-size: 18px; }

/* ============================================================
   FOOTER - char-soft, four widget columns + meta row
   ============================================================ */
.site-footer {
  background: var(--char-soft);
  color: rgba(255,255,255,0.6);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.site-footer a:hover { color: var(--bg); }
.site-footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer__col h4 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bg);
  font-weight: 700;
  margin: 0 0 18px;
}
.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__col a { font-size: 14px; }
.site-footer__col p { font-size: 14px; color: rgba(255,255,255,0.6); margin: 0 0 14px; }
.site-footer__col .brand-mark {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  font-weight: 700;
  margin-bottom: 18px;
  display: inline-block;
}
.site-footer__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 32px;
  font-size: 11px;
}
.site-footer__meta .legal {
  display: flex; gap: 20px; flex-wrap: wrap;
  color: rgba(255,255,255,0.5);
}
.site-footer__meta .legal a { color: rgba(255,255,255,0.65); }
.site-footer__meta .legal .sep { color: rgba(255,255,255,0.3); }

/* ============================================================
   PAGE - generic page content (entry-content prose)
   ============================================================ */
.entry-content {
  max-width: 760px;
  margin: 0 auto;
}
.entry-content h2 {
  font-family: var(--font-display);
  font-weight: var(--display-italic-weight);
  font-style: italic;
  font-size: 36px;
  letter-spacing: -0.01em;
  margin: 56px 0 20px;
  color: var(--ink);
}
.entry-content h3 {
  font-family: var(--font-display);
  font-weight: var(--display-italic-weight);
  font-style: italic;
  font-size: 24px;
  margin: 36px 0 14px;
  color: var(--ink);
}
.entry-content p { font-size: 17px; line-height: 1.65; color: var(--ink-2); margin: 0 0 18px; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 22px; margin: 0 0 22px; }
.entry-content li { font-size: 17px; line-height: 1.65; color: var(--ink-2); margin-bottom: 8px; }
.entry-content blockquote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
}
.entry-content img { margin: 32px 0; border: 1px solid var(--rule); }
.entry-content figure { margin: 32px 0; }
.entry-content figcaption {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 8px;
  letter-spacing: 0.04em;
}
.entry-content code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 2px;
}

/* ----- Pagination ----- */
.pagination {
  display: flex; gap: 8px;
  margin-top: 64px;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: 8px 14px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--rule);
  color: var(--ink-2);
}
.pagination .current { background: var(--char); color: var(--bg); border-color: var(--char); }
.pagination a:hover { border-color: var(--ink); color: var(--ink); }

/* ============================================================
   PROJECT ARCHIVE & SINGLE
   ============================================================ */
.projects-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.project-card {
  display: block;
  background: transparent;
  color: inherit;
}
.project-card .photo-slot { aspect-ratio: 4/3; }
.project-card .project-meta { padding-top: 16px; }
.project-card:hover h3 { color: var(--accent); }

.project-detail__head {
  padding: 88px 0 56px;
  border-top: none;
}
.project-detail__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 48px 0 0;
}
.project-fact .label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.project-fact .value {
  font-family: var(--font-display);
  font-weight: var(--display-italic-weight);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.project-detail__body { max-width: 760px; }

/* Split layout: gallery (left 2/3) + description text (right 1/3) */
.project-detail__body-section {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-top: 48px;
}
.project-detail__body-section--split .project-detail__gallery-col { flex: 2; min-width: 0; }
.project-detail__body-section--split .project-detail__text-col   { flex: 1; min-width: 0; }
/* When only one element exists, go full-width */
.project-detail__gallery-col:only-child,
.project-detail__text-col:only-child { flex: 1; }
.project-detail__text-col .entry-content {
  max-width: none;
  margin: 0;
}

.project-detail__nav {
  display: flex;
  justify-content: space-between;
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.project-detail__nav .label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

/* ============================================================
   FORMS - Toolset / contact form 7 fallback styling
   ============================================================ */
.contact-form { display: grid; gap: 18px; }
.contact-form label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form input[type=tel],
.contact-form input[type=url],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(122,51,24,0.12);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .submit-row { margin-top: 8px; }

/* ============================================================
   404 / SEARCH
   ============================================================ */
.error-404 { padding: 120px 0; text-align: center; }
.error-404 .display { font-size: clamp(64px, 10vw, 128px); margin-bottom: 16px; }
.error-404 .lead { margin: 0 auto; max-width: 480px; }
.error-404 .cta-row { margin-top: 36px; justify-content: center; display: flex; gap: 18px; flex-wrap: wrap; }

.search-form { display: flex; gap: 0; max-width: 480px; }
.search-form input[type=search] {
  flex: 1; padding: 14px 16px;
  font: inherit;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-right: none;
  border-radius: 0;
}
.search-form button {
  background: var(--char); color: var(--bg);
  padding: 13px 22px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--char);
}

/* ============================================================
   COMMENTS - minimal styling for blog posts
   ============================================================ */
.comments-area { margin-top: 80px; padding-top: 48px; border-top: 1px solid var(--rule); }
.comments-area h2 { font-family: var(--font-display); font-style: italic; font-size: 28px; margin: 0 0 32px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 48px; }
.comment-body { padding: 24px 0; border-top: 1px solid var(--rule); }
.comment-body:first-child { border-top: none; }
.comment-meta { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.comment-content p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 14px 16px; font: inherit;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 0; margin-bottom: 16px;
}
.comment-form textarea { min-height: 140px; resize: vertical; }

/* ============================================================
   POST META + CARD (blog index)
   ============================================================ */
.post-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.post-card:hover h2 { color: var(--accent); }
.post-card h2 {
  font-family: var(--font-display);
  font-weight: var(--display-italic-weight);
  font-style: italic;
  font-size: 32px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
}
.post-card .meta {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700; margin-bottom: 14px;
}
.post-card .excerpt {
  font-size: 15px; line-height: 1.6; color: var(--ink-2);
  max-width: 720px;
}

/* ============================================================
   WP CORE - alignments, captions, gallery
   ============================================================ */
.alignleft  { float: left;  margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide  { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption {
  font-size: 12px; color: var(--ink-3); margin-top: 6px; letter-spacing: 0.04em;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin: 32px 0;
}
.gallery-item img { width: 100%; height: auto; display: block; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ----- Skip link ----- */
.skip-link {
  position: absolute; left: -9999px; top: -9999px;
  background: var(--char); color: var(--bg);
  padding: 12px 20px; z-index: 100;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.skip-link:focus {
  left: 12px; top: 12px;
}

/* ----- Selection ----- */
::selection { background: var(--accent); color: var(--bg); }

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ----- Print ----- */
@media print {
  .site-header, .site-footer, .contact-cta, .menu-toggle { display: none !important; }
  body { background: white; color: black; }
  .container { padding: 0; max-width: none; }
}

/* ============================================================
   HERO SPLIT - Skin D variant (split panel: text + materials)
   ============================================================ */
.hero-split {
  padding: 0;
  border-top: none;
}
.hero-split__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  min-height: 78vh;
}
.hero-split__copy {
  padding: 88px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface);
}
.hero-split__copy .eyebrow .num { color: var(--accent); }
.hero-split__headline {
  font-size: clamp(34px, 4.4vw, 60px);
  max-width: 580px;
}
.hero-split__copy .lead { max-width: 460px; font-size: 16px; margin-top: 28px; }
.hero-split__cta {
  display: flex;
  gap: 18px;
  margin-top: 36px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-split__panels {
  display: grid;
  grid-template-rows: 1.4fr 1fr;
}
.hero-split__panel-charred,
.hero-split__panel-corten {
  position: relative;
  padding: 28px;
  min-height: 280px;
}
.hero-split__panel-charred .fig-tag {
  position: absolute;
  top: 28px; left: 28px; z-index: 2;
}
.hero-split__panel-foot {
  position: absolute;
  bottom: 28px;
  left: 28px;
  right: 28px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.hero-split__panel-corten .fig-tag {
  position: absolute;
  top: 28px; left: 28px; z-index: 2;
}
.hero-split__corten-tag {
  position: absolute !important;
  top: auto !important;
  bottom: 28px;
  right: 28px;
  left: auto !important;
}

@media (max-width: 1080px) {
  .hero-split__grid { grid-template-columns: 1fr; }
  .hero-split__copy { padding: 64px 40px; }
  .hero-split__panels { grid-template-rows: 320px 240px; }
}
@media (max-width: 800px) {
  .hero-split__copy { padding: 56px 24px; }
  .hero-split__cta { gap: 12px; }
  .hero-split__panel-charred,
  .hero-split__panel-corten { min-height: 220px; }
}
@media (max-width: 560px) {
  .hero-split__copy { padding: 48px 20px; }
  .hero-split__headline { font-size: clamp(30px, 9vw, 44px); }
  .hero-split__panels { grid-template-rows: 240px 180px; }
}


/* ============================================================
   LINK FIXES - explicit colors so WP/plugin defaults don't leak
   ============================================================ */
.btn-link { color: var(--ink); }
.btn-link:hover { color: var(--accent); }
.btn-link.on-dark { color: var(--bg); }

/* Project cards wrap the entire tile in <a>; kill underline + reset color */
.project-card,
.project-card:visited,
.project-card:hover {
  text-decoration: none;
  color: inherit;
}
.project-card h3 { text-decoration: none; }

/* Trustpilot card link */
.trustpilot__link { color: var(--ink-2); }
.trustpilot__link:hover { color: var(--accent); }

/* Footer links — keep light on dark, no underline by default */
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--bg); text-decoration: none; }

/* Header nav — never underline, color stays ink */
.site-header__nav a {
  text-decoration: none;
  color: var(--ink);
}
.site-header__nav a:hover { color: var(--accent); }

/* Generic anchor reset INSIDE sections (excludes entry-content prose) */
.section a:not(.btn):not(.btn-link):not(.entry-content a) {
  color: inherit;
}


/* ============================================================
   SECTION RHYTHM - banded backgrounds (v1.2.0)
   Design system rhythm:
     Header  : --bg-2  (slightly darker than 01)
     01 Hero : --bg    (lightest)
     02 Approach : --bg-2
     03 Works    : --bg-3  (darkest off-white)
     04 Reuse    : --bg
     05 Solroof  : charred (dark, set on inner panel)
     06 Trustpilot : --bg-2
     07 About    : --bg
     Contact CTA : charred
   ============================================================ */

/* Header now sits on bg-2 so the hero pops slightly when scrolled into view */
.site-header { background: var(--bg-2); }

/* Re-skin the section parts. Inline styles in template parts are overridden
   by these higher-specificity selectors so we don't have to touch markup. */
.section.approach     { background: var(--bg-2); }
.section.works,
section.works         { background: var(--bg-3) !important; }
.section.reuse,
.section.reuse.bg-surface { background: var(--bg) !important; }
.section.trustpilot,
.section.trustpilot.bg-2  { background: var(--bg) !important; }
.section.about,
.section.about.bg-surface { background: var(--bg) !important; }

/* When the header sits on bg-2, the hero's bg shows through cleanly.
   No change needed for hero — it inherits body --bg. */


/* ============================================================
   HEADER NAV - spacing tune (v1.2.1)
   - Menu items further apart
   - Language picker gets breathing room on both sides
   ============================================================ */

/* Outer nav: more space between menu group and toggle */
.site-header__nav { gap: 36px; }

/* Inner items: become a proper flex row with generous gaps */
.menu-items {
  display: flex;
  align-items: center;
  gap: 32px;
}
.menu-items li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-items > a {
  white-space: nowrap;
}

/* The "·" divider before the lang picker - more visible, more spaced */
.menu-items .sep {
  color: var(--ink-3);
  margin: 0 4px;
  user-select: none;
}

/* Language picker: extra space on both sides so it doesn't crowd
   the last menu item OR the Kontakt button */
.menu-items .lang {
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.menu-items .lang a,
.menu-items .lang .current { padding: 0 2px; }

/* Add a touch more space before the Kontakt button */
.menu-items .btn { margin-left: 12px; }


/* ============================================================
   SOLROOF UPLOADED PHOTO (fallback to SVG when empty)
   ============================================================ */
.solroof__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ============================================================
   MOBILE NAV - clean Kontakt button styling inside open menu
   When Kontakt sits in the slide-down mobile menu, kill its border-box
   and render it as a clean inline link like the others.
   ============================================================ */
@media (max-width: 800px) {
  .site-header.menu-open .menu-items .btn,
  .site-header.menu-open .menu-items .btn-secondary {
    background: transparent !important;
    color: var(--ink) !important;
    border: none !important;
    border-bottom: 1px solid var(--rule) !important;
    padding: 14px 0 !important;
    width: 100%;
    justify-content: flex-start;
    font-size: 15px !important;
    letter-spacing: 0.04em;
    font-weight: 600;
    border-radius: 0 !important;
    margin-left: 0 !important;
  }
  .site-header.menu-open .menu-items .btn:hover {
    background: transparent !important;
    color: var(--accent) !important;
  }
  .site-header.menu-open .menu-items .btn:last-child {
    border-bottom: none !important;
  }
  /* Lang picker spacing in mobile menu */
  .site-header.menu-open .menu-items .lang {
    padding: 14px 0 !important;
    border-bottom: 1px solid var(--rule);
    width: 100%;
  }
}


/* ============================================================
   PROJECT GALLERY (single-projekt.php)
   ============================================================ */
.project-gallery {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.project-gallery__head {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 24px;
}
.project-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
/* 2-column gallery used in split layout (when description text is also present) */
.project-gallery__grid--2col {
  grid-template-columns: repeat(2, 1fr);
}
.project-gallery__item {
  display: block;
  overflow: hidden;
  cursor: zoom-in;
  text-decoration: none;
}
.project-gallery__item .photo-slot {
  aspect-ratio: 4/3;
  transition: opacity 0.2s ease;
}
.project-gallery__item:hover .photo-slot { opacity: 0.88; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.abm-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.abm-lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}
.abm-lightbox__img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  display: block;
  cursor: default;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.abm-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: rgba(246,244,239,0.8);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  transition: color 0.15s;
}
.abm-lightbox__close:hover { color: #fff; }
.abm-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(246,244,239,0.75);
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 20px 16px;
  user-select: none;
  transition: color 0.15s;
}
.abm-lightbox__nav:hover { color: #fff; }
.abm-lightbox__prev { left: 8px; }
.abm-lightbox__next { right: 8px; }
.abm-lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(246,244,239,0.5);
  font-size: 11px;
  letter-spacing: 0.12em;
}
