/* Hürbin + Frey AG – Variante B */

@font-face {
  font-family: 'Public Sans';
  src: url('../fonts/public-sans-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3f3f1;
  --bg-2: #e9e9e6;
  --card: #ffffff;
  --fg: #1a1a19;
  --text: #3b3b39;
  --muted: #74736f;
  --line: rgba(26, 26, 25, .11);
  --red: #e30613;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --radius: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--fg); }
::selection { background: var(--fg); color: #fff; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 999;
  background: var(--fg); color: #fff; padding: 10px 16px; border-radius: 999px;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 10px; vertical-align: 2px; }
.text-link { color: var(--fg); background: linear-gradient(var(--red), var(--red)) 0 100% / 100% 1px no-repeat; transition: background-size .4s var(--ease); }
.text-link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s var(--ease), border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(243, 243, 241, .82);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line);
}
.header.hidden { transform: translateY(-100%); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo svg { width: 84px; height: auto; display: block; }
.nav { display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.6); }
.nav a { font-size: 14px; padding: 8px 15px; border-radius: 999px; color: var(--text); transition: color .25s, background .25s; }
.nav a:hover { background: var(--bg-2); color: var(--fg); }
.nav a[aria-current] { background: var(--fg); color: #fff; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 15px/1 var(--sans);
  padding: 15px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .3s var(--ease), color .3s, border-color .3s;
  white-space: nowrap;
}
.btn .arrow { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: rotate(-45deg); }
.btn-dark { background: var(--fg); color: #fff; }
.btn-dark:hover { background: #333331; }
.btn-line { border-color: rgba(26,26,25,.25); color: var(--fg); background: transparent; }
.btn-line:hover { border-color: var(--fg); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.header .btn { padding: 11px 16px; font-size: 14px; }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--bg);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 100px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu a.big { font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; color: var(--fg); display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding: 10px 0; }
.mobile-menu a.big[aria-current] { color: var(--muted); }
.mobile-menu a.big small { font: 12px var(--mono); color: var(--muted); }
.mobile-menu .meta { margin-top: 28px; display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 15px; }

/* ---------- Hero ---------- */
.hero { padding: 120px 0 0; }
.hero.no-media { padding-bottom: 0; }
.hero.no-media + section { padding-top: clamp(32px, 4vw, 52px); }
.hero.no-lead .hero-grid { grid-template-columns: 1fr; }
.hero.sub.no-lead h1 { max-width: none; }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 32px 64px; align-items: end; }
.hero .label { margin-bottom: 24px; display: block; }
.hero h1 {
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 1.02; letter-spacing: -.045em; font-weight: 650;
  margin: 0;
}
.hero.sub:not(:has(.hero-media)) { padding-bottom: 0; }
.hero.sub h1 { font-size: clamp(36px, 4.4vw, 66px); line-height: 1.05; max-width: 16ch; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.loaded .hero h1 .line > span { transform: none; }
.hero h1 .line:nth-child(2) > span { transition-delay: .08s; }
.hero h1 .muted { color: var(--muted); }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-side p { margin: 0 0 28px; max-width: 480px; }
.hero-side p:last-child { margin-bottom: 0; }

.hero-media {
  margin-top: clamp(32px, 4vw, 48px);
  border-radius: var(--radius); overflow: hidden; position: relative;
  aspect-ratio: 16 / 7; background: var(--bg-2);
}
.hero-media.wide { aspect-ratio: 1440 / 420; }
.hero.home h1 { white-space: nowrap; }
.hero-media.tall { aspect-ratio: auto; height: clamp(320px, calc(100vh - 320px), 820px); height: clamp(320px, calc(100svh - 320px), 820px); margin-top: clamp(28px, 3vw, 40px); }
.hero.home .hero-actions { margin-top: 20px; }
.hero-media img { width: 100%; height: 118%; object-fit: cover; will-change: transform; position: absolute; top: -9%; left: 0; }
.hero-chips { position: absolute; left: 20px; bottom: 20px; right: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--fg); border-radius: 999px; padding: 9px 14px; font: 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; }

.fade { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease) .35s, transform .9s var(--ease) .35s; }
.loaded .fade { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
section { padding: clamp(48px, 6vw, 88px) 0; }
section.tight { padding: clamp(32px, 4vw, 52px) 0; }
section:not(.alt):not(.why) + section.cta-sec:not(.alt) { padding-top: 0; }
.cta-sec + .loc { padding-top: clamp(24px, 3vw, 40px); }
.alt { background: var(--bg-2); }
.sec-head { margin-bottom: clamp(28px, 3vw, 44px); }
.sec-head > .label { display: block; margin-bottom: 16px; }
.sec-head > div:last-child { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px 64px; align-items: end; }
.sec-head h2:only-child { grid-column: 1 / -1; }
.sec-head h2, .h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -.04em; font-weight: 600; margin: 0; }
@media (min-width: 1081px) { .sec-head h2.one-line { white-space: nowrap; } }
.sec-head h2 .muted, .h2 .muted { color: var(--muted); }
.sec-head p { margin: 0; max-width: 520px; }

.statement {
  font-size: clamp(22px, 2.5vw, 36px); line-height: 1.3; letter-spacing: -.025em; font-weight: 500;
  color: var(--fg); margin: 0; max-width: 34ch;
}
.statement .muted { color: var(--muted); }
.statement.small { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; letter-spacing: -.015em; font-weight: 450; max-width: 52ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.why { background: var(--bg-2); }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 16px 48px; }
.split.facts-split { grid-template-columns: 7fr 5fr; align-items: start; }

/* Services list */
.services { border-top: 1px solid var(--line); display: grid; grid-auto-rows: 1fr; }
.svc {
  display: grid; grid-template-columns: 80px 4fr 5fr auto; align-items: center; gap: 20px 40px;
  padding: 30px 20px; margin: 0 -20px; border-bottom: 1px solid var(--line);
  border-radius: 14px; transition: background .4s var(--ease), border-color .4s;
}
.svc .num { font: 13px var(--mono); color: var(--muted); transition: color .3s; }
.svc h3 { margin: 0; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.035em; font-weight: 600; }
.svc p { margin: 0; max-width: 460px; }
.svc .go { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--fg); transition: transform .5s var(--ease), background .3s, color .3s, border-color .3s; }
a.svc:hover { background: var(--card); border-bottom-color: transparent; }
a.svc:hover .num { color: var(--red); }
a.svc:hover .go { background: var(--fg); border-color: var(--fg); color: #fff; transform: rotate(-45deg); }
.svc.static { grid-template-columns: 80px 4fr 5fr; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.step { background: var(--card); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 32px; position: relative; overflow: hidden; }
.step .step-num { font: 13px var(--mono); color: var(--muted); display: flex; align-items: center; gap: 12px; }
.step .step-num::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.step h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.02em; font-weight: 600; line-height: 1.25; }
.step p { margin: 0; }
.step::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--red); transition: width 1.4s var(--ease); }
.step.in::before { width: 100%; }
.step:nth-child(2)::before { transition-delay: .15s; }
.step:nth-child(3)::before { transition-delay: .3s; }
.step:nth-child(4)::before { transition-delay: .45s; }

/* Bento / tiles */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.tile {
  background: var(--card); border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; justify-content: flex-start; gap: 24px;
  position: relative; overflow: hidden;
}
.tile-top { min-height: 116px; display: flex; align-items: flex-end; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.tile-top.sm { min-height: 0; padding-bottom: 16px; }
.tile h3 { font-size: 21px; letter-spacing: -.02em; margin: 0 0 8px; font-weight: 600; line-height: 1.25; }
.tile p { margin: 0; max-width: 380px; }
.tile .big { font-size: clamp(64px, 6.5vw, 100px); line-height: .9; font-weight: 600; letter-spacing: -.055em; color: var(--fg); }
.tile .big small { font-size: 18px; letter-spacing: -.01em; font-weight: 500; color: var(--muted); margin-left: 10px; }
.t1, .t2, .t3 { grid-column: span 4; }
.t4 { grid-column: span 12; padding: 0; min-height: 0; aspect-ratio: 21 / 7; }
.t4 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.t4:hover img { transform: scale(1.03); }
.t4 .chip { position: absolute; left: 20px; bottom: 20px; }
.tiles-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.icon-ring { width: 52px; height: 52px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; }
.icon-ring svg { width: 22px; height: 22px; stroke: var(--fg); fill: none; stroke-width: 1.5; }
.bar { height: 3px; background: var(--bg-2); border-radius: 3px; overflow: hidden; }
.bar b { display: block; height: 100%; width: 0; background: var(--red); transition: width 1.8s var(--ease) .2s; }
.in .bar b { width: 100%; }

/* Reference cards */
.ref { display: block; user-select: none; background: var(--card); border-radius: var(--radius); padding: 10px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.ref:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(26,26,25,.35); }
.ref .img { aspect-ratio: 4 / 3.4; border-radius: 13px; overflow: hidden; background: var(--bg-2); position: relative; }
.ref img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); pointer-events: none; }
.ref:hover img { transform: scale(1.05); }
.ref .meta { padding: 16px 8px 8px; }
.ref .tag { font: 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ref h3 { margin: 6px 0 2px; font-size: 19px; letter-spacing: -.02em; font-weight: 600; line-height: 1.25; }
.ref .place { font-size: 14px; color: var(--muted); }
.ref .status { position: absolute; top: 12px; left: 12px; }
.ref-all { display: flex; flex-direction: column; justify-content: space-between; padding: 28px; background: var(--fg); color: #fff; }
.ref-all strong { font-size: 26px; line-height: 1.15; letter-spacing: -.03em; font-weight: 600; max-width: 10ch; }
.ref-all .label { color: rgba(255,255,255,.6); }
.ref-all .circle { width: 56px; height: 56px; border-radius: 50%; background: var(--red); display: grid; place-items: center; transition: transform .5s var(--ease); }
.ref-all:hover .circle { transform: rotate(-45deg); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid .ref.is-hidden { display: none; }

.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.filters button {
  font: 500 14px/1 var(--sans); color: var(--text); background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; transition: background .3s, color .3s, border-color .3s;
}
.filters button:hover { border-color: rgba(26,26,25,.35); }
.filters button[aria-pressed="true"] { background: var(--fg); color: #fff; border-color: var(--fg); }
.filters button span { font: 11px var(--mono); color: inherit; opacity: .55; margin-left: 6px; }

.tag-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--card); color: var(--fg); border-radius: 999px; padding: 8px 14px 8px 12px; font: 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 4px rgba(31,157,85,.15); }
.status-pill.request::before { background: #d08a00; box-shadow: 0 0 0 4px rgba(208,138,0,.15); }

/* Slider */
.refs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(36px, 4vw, 56px); flex-wrap: wrap; }
.refs-head h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -.04em; font-weight: 600; margin: 14px 0 0; }
.slider-ctrl { display: flex; gap: 8px; align-items: center; }
.slider-ctrl button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; display: grid; place-items: center; font-size: 16px; transition: background .3s, color .3s, border-color .3s, opacity .3s; }
.slider-ctrl button:hover { background: var(--fg); color: #fff; border-color: var(--fg); }
.slider-ctrl button:disabled { opacity: .35; pointer-events: none; }
.progress { width: 100px; height: 2px; background: var(--line); margin-right: 12px; position: relative; overflow: hidden; }
.progress b { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(.2); transition: transform .3s; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(270px, 27vw, 380px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--gutter); scroll-padding: 0 var(--gutter);
  cursor: grab;
}
@media (min-width: 1472px) { .track { padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); } }
.track::-webkit-scrollbar { display: none; }
.track.dragging { cursor: grabbing; scroll-snap-type: none; }
.track .ref { scroll-snap-align: start; }

/* CTA */
.cta-box {
  background: var(--card); border-radius: 28px; padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; align-items: center;
}
.cta-box h2 { font-size: clamp(30px, 3.8vw, 56px); line-height: 1.06; letter-spacing: -.04em; font-weight: 600; margin: 14px 0 14px; }
.cta-box p { margin: 0; max-width: 460px; }
.alt .cta-box { background: var(--card); }
.magnet {
  width: 168px; height: 168px; border-radius: 50%;
  background: var(--fg); color: #fff; display: inline-grid; place-items: center; text-align: center;
  font-weight: 600; font-size: 15px; line-height: 1.35; transition: transform .5s var(--ease), background .3s;
}
.magnet:hover { background: var(--red); }
.magnet span { display: block; transition: transform .5s var(--ease); padding: 0 12px; }

/* Location */
.loc-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.loc h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -.04em; font-weight: 600; margin: 14px 0 32px; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--fg); }
.facts li .label { padding-top: 4px; }
.facts a { background: linear-gradient(var(--red), var(--red)) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.facts a:hover { background-size: 100% 1px; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 420px; position: relative; background: var(--bg-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding: 32px 32px 72px; }
.map-consent p { margin: 0; max-width: 42ch; }
.map-consent a { text-decoration: underline; }
.map .chip { position: absolute; left: 16px; bottom: 16px; z-index: 2; pointer-events: none; }

/* ---------- Detail pages ---------- */
.detail-head { padding: 136px 0 0; }
.crumbs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 36px; }
.crumbs a { color: var(--muted); transition: color .3s; }
.crumbs a:hover { color: var(--fg); }
.crumbs span[aria-hidden] { color: var(--line); color: rgba(26,26,25,.25); }
.crumbs [aria-current] { color: var(--fg); }
.detail-grid { display: grid; grid-template-columns: 6fr 5fr; gap: 28px 64px; align-items: end; }
.detail-grid h1 { font-size: clamp(34px, 4.2vw, 62px); line-height: 1.05; letter-spacing: -.045em; font-weight: 650; margin: 14px 0 10px; }
.detail-grid .place { color: var(--muted); font-size: 18px; margin: 0; }
.detail-text p { margin: 0 0 14px; }
.detail-text p:last-child { margin-bottom: 0; }
.detail-text p.lead { color: var(--fg); font-size: clamp(17px, 1.35vw, 19px); }

.cover { margin: clamp(40px, 5vw, 64px) 0 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; background: var(--bg-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.photo-pair { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photo-pair figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.photo-pair img { width: 100%; height: 100%; object-fit: cover; }

.gallery { columns: 3; column-gap: 14px; margin-top: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.gallery img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.zoomable { cursor: zoom-in; position: relative; }
.zoomable:hover img { transform: scale(1.03); }
.gallery-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.hint { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plans figure { margin: 0; background: var(--card); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.plans img { width: 100%; height: auto; border-radius: 8px; }
.plans figcaption { padding: 0 4px; }

.keyfacts { background: var(--card); border-radius: var(--radius); padding: clamp(8px, 1.5vw, 16px) clamp(24px, 3vw, 40px); margin: 0; }
.keyfacts div { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.keyfacts div:last-child { border-bottom: 0; }
.keyfacts dt { font: 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.keyfacts dd { margin: 0; color: var(--fg); font-weight: 500; font-size: 18px; }

.proj-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.proj-nav a { background: var(--card); border-radius: var(--radius); padding: 14px; display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.proj-nav a:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(26,26,25,.35); }
.proj-nav a.next { grid-template-columns: 1fr 120px; text-align: right; }
.proj-nav a.next .thumb { order: 2; }
.proj-nav .thumb { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.proj-nav .thumb img { width: 100%; height: 100%; object-fit: cover; }
.proj-nav strong { display: block; color: var(--fg); font-size: 19px; letter-spacing: -.02em; font-weight: 600; line-height: 1.25; margin-top: 6px; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.person { background: var(--card); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; }
.person .photo { aspect-ratio: 1; border-radius: 13px; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); transition: transform 1s var(--ease), filter .6s; }
.person:hover .photo img { transform: scale(1.04); filter: none; }
.person .photo svg { width: 64px; height: 64px; color: rgba(26,26,25,.25); }
.person .body { padding: 18px 10px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.person h3 { margin: 0; font-size: 21px; letter-spacing: -.02em; font-weight: 600; }
.person .role { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.person .mail { font-size: 15px; color: var(--fg); display: inline-flex; align-items: center; gap: 8px; }
.person .mail::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.person.open { background: var(--fg); color: rgba(255,255,255,.75); }
.person.open .photo { background: rgba(255,255,255,.06); }
.person.open .photo svg { color: rgba(255,255,255,.35); }
.person.open h3 { color: #fff; }
.person.open .role { color: rgba(255,255,255,.65); }
.person.open .mail { color: #fff; }

.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.logo-wall.two { grid-template-columns: repeat(2, 1fr); max-width: 480px; }
.logo-wall figure { margin: 0; background: var(--card); border-radius: 14px; aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 20px 22px; }
.logo-wall img { max-width: 100%; max-height: 54px; width: auto; object-fit: contain; }

/* ---------- Contact ---------- */
.contact-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.contact-tile { background: var(--card); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 40px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.contact-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(26,26,25,.35); }
.contact-tile strong { font-size: clamp(19px, 1.6vw, 23px); letter-spacing: -.02em; font-weight: 600; color: var(--fg); line-height: 1.3; }
.contact-tile .top { display: flex; justify-content: space-between; align-items: center; }
.contact-tile .go { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--fg); transition: transform .5s var(--ease), background .3s, color .3s; }
.contact-tile:hover .go { background: var(--fg); color: #fff; transform: rotate(-45deg); }

.form-card { background: var(--card); border-radius: 28px; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1fr 2fr; gap: 32px 64px; }
.form-card h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -.04em; font-weight: 600; margin: 14px 0 14px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font: 16px/1.5 var(--sans); color: var(--fg);
  background: var(--bg); border: 1px solid transparent; border-radius: 12px; padding: 14px 16px;
  transition: border-color .3s, background .3s, box-shadow .3s; width: 100%;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--fg); box-shadow: 0 0 0 4px rgba(26,26,25,.06); }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.form-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form-foot p { margin: 0; font-size: 14px; color: var(--muted); max-width: 460px; }
.form-foot p a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; border-radius: 12px; padding: 16px 18px; font-size: 15px; display: flex; gap: 12px; align-items: flex-start; }
.form-status.success { background: rgba(31,157,85,.1); color: #145c34; }
.form-status.error { background: rgba(227,6,19,.08); color: #8f0710; }

/* Notice */
.notice { background: var(--card); border-radius: var(--radius); padding: 24px 28px; display: flex; gap: 16px; align-items: flex-start; }
.notice::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-top: 9px; }
.notice p { margin: 0; color: var(--fg); }

/* Legal */
.legal-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 32px 64px; align-items: start; }
.legal-side { position: sticky; top: 110px; }
.legal-side h1 { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.05; letter-spacing: -.045em; font-weight: 650; margin: 14px 0 28px; }
.legal-body { max-width: 720px; }
.legal-body h2 { font-size: 22px; letter-spacing: -.02em; font-weight: 600; margin: 40px 0 10px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin: 0 0 14px; }
.legal-body a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(243,243,241,.97);
  display: grid; grid-template-rows: auto 1fr auto; padding: 16px var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox .lb-top { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.lightbox .lb-stage { display: grid; place-items: center; min-height: 0; position: relative; }
.lightbox .lb-stage img { max-width: 100%; max-height: calc(100vh - 200px); max-height: calc(100svh - 200px); border-radius: 14px; object-fit: contain; transform: scale(.97); transition: transform .5s var(--ease); }
.lightbox.open .lb-stage img { transform: none; }
.lightbox .lb-caption { text-align: center; color: var(--muted); font-size: 14px; min-height: 56px; padding-top: 14px; max-width: 640px; margin: 0 auto; }
.lightbox button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; font-size: 18px; display: grid; place-items: center; transition: background .3s, color .3s; }
.lightbox button:hover { background: var(--fg); color: #fff; }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lightbox .lb-prev { left: 0; }
.lightbox .lb-next { right: 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 88px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer h4 { margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer ul a:hover { color: var(--fg); }
.footer .intro { max-width: 320px; margin: 20px 0 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; margin-top: clamp(48px, 6vw, 80px); }
.footer-bottom a:hover { color: var(--fg); }

/* Reveal */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header .btn { display: none; }
  .burger { display: block; }
  .hero-grid, .detail-grid, .split, .split.facts-split, .legal-grid, .form-card { grid-template-columns: 1fr; }
  .legal-side { position: static; }
  .sec-head > div:last-child { grid-template-columns: 1fr; }
  .svc, .svc.static { grid-template-columns: 56px 1fr auto; }
  .svc p { grid-column: 2 / 3; grid-row: 2; }
  .t1, .t2, .t3 { grid-column: span 12; }
  .tile-top { min-height: 0; }
  .t4 { aspect-ratio: 16 / 8; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
  .gallery { columns: 2; }
  .loc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .hero { padding-top: 104px; }
  .hero.home h1 { white-space: normal; }
  .hero-media.tall { height: auto; aspect-ratio: 4 / 3.6; }
  .detail-head { padding-top: 104px; }
  .hero-media { aspect-ratio: 4 / 3.6; }
  .hero-media.wide { aspect-ratio: 16 / 9; }
  .hero-actions .btn, .btn-row .btn { flex: 1 1 auto; justify-content: center; }
  .svc, .svc.static { grid-template-columns: 1fr auto; gap: 10px 16px; padding: 24px 0; margin: 0; }
  a.svc:hover { background: transparent; }
  .svc .num { grid-column: 1 / -1; }
  .svc p { grid-column: 1 / -1; grid-row: auto; }
  .svc .go { width: 42px; height: 42px; grid-row: 2; grid-column: 2; }
  .t4 { aspect-ratio: 4 / 3; }
  .tiles-3, .steps, .card-grid, .card-grid.two, .contact-tiles, .plans, .photo-pair, .proj-nav { grid-template-columns: 1fr; }
  .step { gap: 32px; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .btn { white-space: normal; line-height: 1.25; }
  .person .body { padding: 14px 6px 8px; }
  .person h3 { font-size: 17px; }
  .person .role, .person .mail { font-size: 13px; }
  .person .mail { align-items: flex-start; }
  .person .mail::before { margin-top: 7px; flex: none; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .logo-wall figure { padding: 12px; }
  .cover { aspect-ratio: 4 / 3; }
  .gallery { columns: 2; column-gap: 8px; }
  .gallery figure { margin-bottom: 8px; border-radius: 10px; }
  .keyfacts div { grid-template-columns: 1fr; gap: 2px; }
  .proj-nav a, .proj-nav a.next { grid-template-columns: 84px 1fr; text-align: left; }
  .proj-nav a.next .thumb { order: 0; }
  .slider-ctrl .progress { display: none; }
  .track { grid-auto-columns: 80vw; }
  .cta-box { grid-template-columns: 1fr; }
  .magnet { width: 100%; height: auto; border-radius: 999px; padding: 18px; }
  .magnet br { display: none; }
  .form { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .map { min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: -64px; transform: none; }
  .lightbox .lb-prev { left: calc(50% - 56px); }
  .lightbox .lb-next { right: calc(50% - 56px); }
  .lightbox .lb-caption { padding-top: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .rv, .fade, .hero h1 .line > span { opacity: 1; transform: none; }
}

/* Kompakte Kacheln (Architektur-Leistungen) */
.tile.compact { gap: 12px; }
.tile-head { display: flex; align-items: center; gap: 12px; }
.tile-head h3 { margin: 0; }
.mini-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; }
.mini-icon svg { width: 18px; height: 18px; stroke: var(--fg); fill: none; stroke-width: 1.6; }

/* Kontakt: Bild links, Kontaktdaten rechts */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.contact-split .contact-tiles { grid-template-columns: 1fr; }
.contact-split .contact-tile { gap: 20px; }
.contact-photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); min-height: 320px; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 680px) {
  .contact-split { grid-template-columns: 1fr; }
  .contact-photo { min-height: 0; aspect-ratio: 4 / 3; }
}

/* Kategorie über dem Text, linksbündig */
.split.stack { grid-template-columns: 1fr; gap: 16px; }

/* =====================================================================
   WordPress: Blöcke an das Design von Variante B anpassen
   ===================================================================== */
.wp-block-group { box-sizing: border-box; }
figure.wp-block-image { margin: 0; }
.wp-block-image img { max-width: 100%; height: auto; vertical-align: bottom; }
.muted { color: var(--muted); }

/* Kleine Zeile mit rotem Punkt («Kategorie») */
p.label { margin: 0; }
p.label::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 10px; vertical-align: 2px; }
.sec-head > .label { margin-bottom: 16px; }
.sec-head h2 { margin: 0; }
.sec-head p:not(.label) { margin: 0; max-width: 520px; }
.split > .label { margin: 0; }

/* Knöpfe (Block «Buttons») */
.wp-block-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.wp-block-button { margin: 0; }
.wp-block-button__link {
  display: inline-flex; align-items: center; gap: 12px; font: 600 15px/1.2 var(--sans);
  padding: 15px 22px; border-radius: 999px; border: 1px solid transparent; text-decoration: none;
  background: var(--fg); color: #fff; transition: background .3s var(--ease), color .3s, border-color .3s;
}
.wp-block-button__link:hover, .wp-block-button__link:focus { background: #333331; color: #fff; }
.wp-block-button.btn-dark .wp-block-button__link::after {
  content: "→"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 12px; transition: transform .35s var(--ease);
}
.wp-block-button.btn-dark .wp-block-button__link:hover::after { transform: rotate(-45deg); }
.wp-block-button.btn-line .wp-block-button__link { background: transparent; color: var(--fg); border-color: rgba(26,26,25,.25); }
.wp-block-button.btn-line .wp-block-button__link:hover { background: transparent; color: var(--fg); border-color: var(--fg); }

/* Leistungen (Zeilen) */
.svc > p { margin: 0; }
.svc p.go { width: auto; height: auto; border: 0; }
.svc p.go a {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--fg); text-decoration: none; transition: transform .5s var(--ease), background .3s, color .3s, border-color .3s;
}
.svc.is-link { cursor: pointer; }
.svc.is-link:hover { background: var(--card); border-bottom-color: transparent; }
.svc.is-link:hover .num { color: var(--red); }
.svc.is-link:hover .go a { background: var(--fg); border-color: var(--fg); color: #fff; transform: rotate(-45deg); }

/* Kacheln */
.tile > h3 { margin: 0 0 8px; }
.tile > p { margin: 0; }
.tile-top p { margin: 0; }
.tile-top .big-unit { font-size: 18px; font-weight: 500; color: var(--muted); margin: 0 0 6px 10px; letter-spacing: -.01em; }
.tile-top.icon::before { content: ""; width: 52px; height: 52px; border-radius: 50%; background: var(--bg) var(--icon) center / 22px no-repeat; }
.tile.compact > h3 { display: flex; align-items: center; gap: 12px; margin: 0; }
.tile.compact > h3::before { content: ""; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--bg) var(--icon) center / 18px no-repeat; }
.tile.t4 figure { margin: 0; }
.tile.t4 .chip { margin: 0; }
.tile-num { margin: 0; font: 12px var(--mono); letter-spacing: .07em; color: var(--muted); }
.icon-person { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a19' stroke-width='1.5'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E"); }
.icon-house { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a19' stroke-width='1.6'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E"); }
.icon-tools { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a19' stroke-width='1.6'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.5 2.5-2.4-.6-.6-2.4z'/%3E%3C/svg%3E"); }
.icon-interior { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a19' stroke-width='1.6'%3E%3Cpath d='M4 20V10h16v10'/%3E%3Cpath d='M4 14h16'/%3E%3Cpath d='M9 10V6h6v4'/%3E%3C/svg%3E"); }

/* Schritte */
.step { gap: 0; }
.step .step-num { margin: 0 0 32px; }
.step > h3 { margin: 0 0 8px; }
.step > p:not(.step-num) { margin: 0; }

/* Aufruf-Box mit rundem Knopf */
.cta-box .wp-block-buttons { justify-content: center; }
.cta-box > div > p:not(.label) { margin: 0; max-width: 460px; }
.wp-block-button.magnet .wp-block-button__link {
  width: 168px; height: 168px; border-radius: 50%; padding: 0 18px; display: inline-grid; place-items: center;
  text-align: center; font-size: 15px; line-height: 1.35; background: var(--fg); color: #fff; transition: transform .5s var(--ease), background .3s;
}
.wp-block-button.magnet .wp-block-button__link:hover { background: var(--red); }

/* Seiten-Kopf, Logos, Kontakt */
.hero-chips .chip { margin: 0; }
.logo-wall figure.wp-block-image { margin: 0; }
.logo-wall figure img { height: auto; }
.contact-split figure.contact-photo { margin: 0; height: 100%; }
.contact-split figure.contact-photo img { height: 100%; }
.legal-body { max-width: 760px; }
.legal-body > .notice { margin-bottom: 40px; }
.legal-body h2 { font-size: 22px; letter-spacing: -.02em; font-weight: 600; margin: 40px 0 10px; }
.legal-body p { margin: 0 0 14px; }
.legal-body a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.status-pill.sold::before { background: var(--muted); box-shadow: 0 0 0 4px rgba(116,115,111,.15); }
.plans figcaption:empty { display: none; }
.footer-bottom button.cookie-link { all: unset; cursor: pointer; }
.footer-bottom button.cookie-link:hover, .footer-bottom button.cookie-link:focus-visible { color: var(--fg); }

/* Cookie-Banner (Google Analytics nur nach Zustimmung) */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px; margin-left: auto;
  background: var(--card); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 24px 60px -20px rgba(26,26,25,.35);
  border: 1px solid var(--line); transform: translateY(20px); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.consent.show { transform: none; opacity: 1; }
.consent h2 { font-size: 18px; letter-spacing: -.02em; margin: 0 0 6px; font-weight: 600; }
.consent p { margin: 0 0 16px; font-size: 15px; }
.consent p a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.consent .btn-row .btn { padding: 12px 18px; font-size: 14px; }

@media (max-width: 680px) {
  .svc p.go { grid-row: 2; grid-column: 2; }
  .svc p.go a { width: 42px; height: 42px; }
  .wp-block-button.magnet, .cta-box .wp-block-buttons { width: 100%; }
  .wp-block-button.magnet .wp-block-button__link { width: 100%; height: auto; border-radius: 999px; padding: 18px; }
  .consent { left: 10px; right: 10px; bottom: 10px; padding: 18px; }
  .consent .btn-row .btn { flex: 1 1 auto; justify-content: center; }
}
.doc-link { margin: 24px 0 0; }
.facts-split .wp-block-buttons { margin-top: 12px; }
.keyfacts { display: block; }
.keyfacts .kf { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.keyfacts .kf:last-child { border-bottom: 0; }
.keyfacts .kf p { margin: 0; }
.keyfacts .kf-label { font: 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.keyfacts .kf-value { color: var(--fg); font-weight: 500; font-size: 18px; }
.facts-split > div > p:not(.doc-link) { margin-top: 0; }
@media (max-width: 680px) { .keyfacts .kf { grid-template-columns: 1fr; gap: 2px; } }

/* Leistungs-Zeile: Nummer und Pfeil sind in WordPress ebenfalls Absätze – Plätze fest zuweisen */
@media (max-width: 1080px) {
  .svc p.num { grid-column: 1; grid-row: 1; }
  .svc h3 { grid-column: 2; grid-row: 1; }
  .svc p.go { grid-column: 3; grid-row: 1; }
}
@media (max-width: 680px) {
  .svc p.num { grid-column: 1 / -1; grid-row: auto; }
  .svc h3 { grid-column: 1; grid-row: auto; }
  .svc p.go { grid-column: 2; grid-row: 2; }
}

/* Knopf-Rahmen (Block «Button») selbst nicht einfärben – nur der Link ist der Knopf */
.wp-block-button.btn-dark, .wp-block-button.btn-line, .wp-block-button.magnet {
  background: none; border: 0; padding: 0; width: auto; height: auto; border-radius: 0; display: block; color: inherit;
}
.card-grid + .wp-block-buttons { margin-top: 32px; }

/* Detailseiten (Referenzen, Verkauf): Titel auf einer Zeile, Text linksbündig darunter */
.detail-grid { grid-template-columns: 1fr; align-items: start; gap: 18px; }
.detail-grid h1 { font-size: clamp(32px, 3.6vw, 52px); max-width: none; }
.detail-text { max-width: 760px; }
@media (max-width: 680px) { .wp-block-button.magnet { width: 100%; } }

/* Angemeldet: WordPress-Leiste oben nicht über die Navigation legen */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }

/* Detailseiten: Abstand zwischen Text und Bildern einheitlich 32px */
section.obj-media { padding-top: 32px; }
.obj-media .photo-pair { margin-top: 0; }
.detail-head .cover { margin-top: 32px; }
